html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 63
51.8k
| body
stringlengths 0
36.2k
⌀ | comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/3310 | Fatal error condition occurred in aws-c-io | I have also had this issue since a few days, when running scripts using PyCharm in particular, but it does not seem to affect the script from running, only reporting this error at the end of the run. | ## Describe the bug
Fatal error when using the library
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('wikiann', 'en')
```
## Expected results
No fatal errors
## Actual results
```
Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS
Exiting Application
```
## Environment info
- `datasets` version: 1.15.2.dev0
- Platform: Windows-10-10.0.22504-SP0
- Python version: 3.8.12
- PyArrow version: 6.0.0
| 38 | Fatal error condition occurred in aws-c-io
## Describe the bug
Fatal error when using the library
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('wikiann', 'en')
```
## Expected results
No fatal errors
## Actual results
```
Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS
Exiting Application
```
## Environment info
- `datasets` version: 1.15.2.dev0
- Platform: Windows-10-10.0.22504-SP0
- Python version: 3.8.12
- PyArrow version: 6.0.0
I have also had this issue since a few days, when running scripts using PyCharm in particular, but it does not seem to affect the script from running, only reporting this error at the end of the run. | [
-0.4791854024,
-0.142034784,
-0.1136764213,
-0.0025797929,
0.0447750874,
-0.066775687,
0.1985339224,
0.1818035543,
0.275020957,
0.1701408029,
0.2111242861,
0.5673761964,
-0.043479763,
0.1107322723,
-0.128939718,
-0.0115248915,
0.1479744762,
0.268906951,
-0.3732091784,
0.2062390894,
-0.3859864771,
0.4023664892,
-0.370282501,
0.1370709091,
-0.1345875412,
-0.2536206245,
0.056578856,
0.2289717197,
0.0106186839,
-0.4034633636,
0.1275916249,
-0.2834484875,
0.2268954217,
0.381131947,
-0.0001127117,
-0.2257805318,
0.3720550537,
0.1198364645,
-0.2586518526,
-0.0769574121,
-0.2128653973,
0.0137513801,
0.1181524321,
-0.3348652422,
0.4016312063,
0.0999117047,
-0.0741684064,
-0.2412111908,
0.0556002073,
0.4946432114,
0.1995783299,
0.7413389683,
0.1638284028,
0.0582296811,
0.1824339479,
-0.1472989321,
-0.3072251976,
0.2420122176,
0.334094882,
-0.4156236649,
0.2282385826,
0.1807357073,
-0.3603060842,
0.1022276431,
0.1502911448,
-0.1593196988,
0.0587666184,
-0.2773908675,
0.2307749093,
0.0006792529,
0.3077190816,
-0.5627329946,
-0.1931155175,
0.1616731882,
0.1431617886,
-0.3116629422,
0.2777800858,
0.1986832321,
-0.0919287279,
0.1771293879,
0.1569925994,
0.3158819675,
-0.2339318842,
0.2493081838,
0.0418372564,
0.1570174694,
-0.08014597,
0.1201788336,
0.0381664596,
0.0232980326,
0.0367663279,
-0.127096653,
-0.1283677965,
0.1285525411,
-0.7083340883,
-0.0648554191,
0.019435497,
0.2501321435,
0.1786892563,
0.0393872447,
0.0150715485,
-0.1675837487,
0.2877755463,
0.2519626021,
0.0511229299,
-0.0030028387,
0.033528287,
0.1079313979,
0.3154446185,
0.1533074081,
0.0087991273,
-0.1250409633,
0.0652781278,
-0.3288880885,
0.2526639998,
0.0455345958,
0.4015016258,
-0.1599894315,
-0.4319002032,
0.6135215759,
-0.3617448211,
0.2169521749,
-0.0413640067,
0.3949684501,
0.1282060891,
-0.0161712598,
0.2806601524,
0.2051929533,
-0.435536176,
0.2398602813,
-0.0960188136,
0.1198266596,
-0.2440815568,
0.0296690576,
0.1597501189,
-0.1947546601,
0.2497188151,
0.2589448988,
0.2098851055,
-0.5270698667,
0.1316411197,
-0.0490947552,
-0.2060790658,
0.3769693971,
0.2269278765,
0.1544595063,
-0.0633352622,
0.0895888135,
0.1358073056,
0.3765552938,
-0.0908319503,
-0.2080106586,
-0.2852276564,
0.2249118984,
-0.1247654185,
0.1129204556,
-0.1361493915,
-0.3691583276,
0.2749228477,
-0.1583837569,
0.2870729566,
-0.4583542943,
0.1399252415,
-0.1471758187,
0.079383634,
0.1729771495,
-0.073123917,
0.1769351959,
-0.2226781547,
-0.0944831893,
-0.0193222053,
0.3282311559,
-0.1306028068,
0.0442602709,
-0.3444480896,
0.1071488038,
0.0848862976,
-0.0668214634,
-0.3346001208,
0.3022278547,
-0.1013253778,
-0.070489645,
-0.0146860341,
-0.0935497954,
-0.0606380627,
-0.1151220575,
-0.1451828182,
-0.3779449463,
0.0489635356,
0.1296026111,
-0.2453329414,
-0.3405120969,
-0.0717611089,
0.1778670251,
0.3056164086,
0.0060731294,
0.2868511379,
-0.0945266336,
0.3921923041,
-0.1286672056,
-0.0897936225,
0.206890434,
0.2117272317,
-0.1285727918,
0.09613318,
-0.1877956539,
-0.521189034,
0.1083129421,
0.2418377697,
0.1164525822,
-0.2558298409,
-0.1758490056,
-0.0746684074,
0.4000388086,
0.065001294,
-0.0160528217,
0.1132844612,
-0.0229908656,
-0.0873468742,
-0.0676550493,
-0.3384794593,
0.211126104,
-0.5657598376,
0.0877686962,
-0.2623396218,
0.1989607364,
-0.131317839,
-0.3776192367,
0.1214866117,
-0.0311978217,
0.2392780185,
0.1531326473,
-0.2926523685,
0.1196434498,
-0.0956439599,
0.4536782801,
-0.1366606504,
0.258644551,
-0.1406754404,
-0.2978079319,
0.1808813363,
0.0448332764,
0.1904877424,
0.0354590751,
0.3284251988,
0.2411427051,
-0.183731094,
0.283441186,
-0.1263307929,
-0.0548575372,
0.0407682247,
-0.1886774749,
-0.0256540142,
0.106384404,
0.4677765965,
0.2058623731,
0.2521986067,
-0.2844055891,
-0.4662553072,
-0.1063060164,
0.3031005859,
-0.0752125978,
0.2054307461,
-0.0311998501,
-0.1048574671,
0.106931895,
0.3299832046,
-0.0640468299,
0.7713695168,
0.0521607921,
-0.2158336043,
0.2277495265,
-0.0726143718,
-0.2595681846,
0.3379996717,
0.2300793529,
0.1137860268,
0.4744476676,
0.1555071324,
0.0010815412,
-0.3090662062,
-0.4727353454,
-0.0623049885,
0.2465938777,
-0.3728519976,
0.2268550545,
-0.0425031446,
0.138740316,
-0.0449631028,
0.2781442702,
0.1450017691,
-0.0213112142,
-0.0653409436,
0.4111674726,
-0.1583820581,
0.169431895,
-0.1695710123,
-0.04933827,
-0.0431162193,
0.0234289933,
-0.3310195804,
-0.188509509,
-0.0884661078,
0.0206346419,
0.2481110096,
-0.1352578104,
0.3291889727,
-0.0210503284,
-0.1812397391,
-0.241511777,
0.0192008317,
-0.0099427802,
0.0051449467,
0.2392564416,
0.2242083251,
0.2536938488,
-0.1433708668,
-0.3871110082,
0.0421224125,
-0.4059311152,
0.1123945341,
0.0083461301,
-0.1573898494,
-0.1196027547,
-0.259367764,
-0.3578799069,
-0.0927701071,
-0.4032630324,
-0.0277799238,
-0.2955779135,
0.0526295453,
-0.2391759008,
0.3516232371,
0.1465020329,
0.2252383977,
-0.2931292355,
-0.1781105697,
-0.1152039915,
0.0326706097,
-0.0931658223,
-0.1838274151,
0.2792047262,
0.209952563,
0.4480145574,
0.102248624,
-0.4258745313,
0.264452666,
-0.0477094688,
0.2898333371,
-0.2282146811,
0.0394707769,
0.153865248,
-0.1291718334,
0.0281214882,
-0.1493294835,
0.0195619483,
-0.2558822036,
-0.1847812533,
0.2140498608,
-0.0154597601,
0.5826196671,
0.1132246703,
0.5693055391,
0.1643059552,
-0.2671089768,
0.2545528114,
-0.0682192296,
0.0259048417,
-0.1731183678,
-0.1586556733,
0.1097614393,
-0.0717924759,
-0.4049123228,
0.0471887849,
-0.2258188128,
-0.3104001582,
-0.0513159744,
0.0316882022,
-0.4036335945,
-0.260558486,
0.1239632815,
0.1817711443,
0.2758505642,
-0.0796785876,
0.0705794096,
0.1138701886,
-0.0199546833,
-0.0269704424,
0.5054671168,
-0.1349576414,
-0.093437843,
-0.0712420344,
-0.2510989606,
-0.4707458317,
0.2959164083,
-0.1363616288,
0.425475657,
-0.0939514413,
0.1317660064,
0.0731912851,
-0.3397786915,
0.227169618,
-0.1371428668,
0.2724165618,
0.1264906675,
0.2831963599,
-0.110166885,
-0.1759406626,
-0.3124927878,
0.1769262701,
0.2192085832,
-0.0558431372,
-0.0398099944,
0.021564927,
0.1781325489,
-0.0922184438,
0.1367947012,
-0.4245506525,
-0.1499082744,
-0.388265729,
-0.4443897009,
0.3382485509,
-0.0018150517,
-0.1018996388,
-0.3692876399,
-0.328694135,
0.0581100099,
-0.0514469929,
0.028924061,
0.1192511842,
-0.1379858255,
-0.2728671432,
0.3387065232,
-0.1875678152,
-0.3908850551,
0.597499907,
0.1338426918,
0.2013120502,
-0.0555695556,
0.1974210292,
0.1190731823,
0.1820084751,
0.2273004353,
-0.3314227462,
0.0801589042,
0.1779055744,
0.2289231569,
0.046485506,
0.0952141806,
0.3494818807,
0.1929705888,
-0.0825132057,
0.0569581911,
0.4016370773,
-0.011894458,
-0.0097237919,
0.469901979,
-0.235279575,
-0.1803510189,
0.3446958065,
-0.0862037987,
0.6643449664,
0.1821543574,
-0.0547732674,
0.345009923,
-0.347229898,
0.2718539834,
-0.1129582524,
0.1214366779,
-0.4404164851,
0.252063781,
0.1087369174,
-0.1168341562,
0.3553833663,
0.0830226392,
0.0458498187,
0.0656000599,
-0.0050316029,
0.1113970578,
-0.0243229289,
0.1551991254,
-0.5489691496,
-0.2556326985,
-0.395801127,
0.1574818194,
-0.1166264117,
0.1731774211,
-0.2785883248,
0.1333166659,
0.0656257719,
-0.2896619737,
-0.4534826875,
0.2119658142,
-0.3212273419,
0.0729732588,
-0.3733406067,
-0.3667482436,
0.1701717377,
0.0282136854,
-0.073539637,
0.3267158866,
0.0004033695,
0.3371556401,
0.1330789179,
-0.0261140279,
0.1360172331,
-0.1541067511,
-0.0698848665,
-0.0055239373,
-0.2553296089,
0.1233793795,
-0.0960942879,
-0.0654661357,
0.2098034173,
-0.0104205385,
-0.0881323814,
-0.1205803752,
-0.1923398674,
-0.052446574,
-0.2316823453,
-0.2007281631,
0.2004234493,
0.0931543037,
-0.0743776634,
0.5128723979,
-0.4689988792,
-0.0729256198,
-0.1341203749,
0.3702632189,
-0.139930293,
-0.1258755922,
0.1472256631,
0.4843125045,
-0.0821713135,
-0.3258306682,
0.0648511499,
-0.2221401036,
-0.4078637064,
0.12049108,
0.1279316396,
0.1096223667,
0.2514872253,
0.2340041399,
-0.0623145662,
0.0707641169,
0.0523664728,
-0.3447406888,
-0.2446620613,
0.1861829162,
-0.0001346706,
0.4098975658,
0.4089804292,
0.1129925102,
-0.3644648194,
-0.206253022,
-0.2724942565,
0.0075176549,
-0.0427840315,
0.1144058257,
0.0752412155,
0.0884975642,
0.3379621804,
-0.160657227,
0.1017848551,
0.398758322,
-0.0616749525,
-0.2091930956,
-0.1433424503,
0.1160174385,
0.1818280369,
0.0514947139,
0.0275004916,
-0.2889812291,
0.052546829,
-0.0717215165,
0.5444952846,
0.0840125829,
-0.2398452461,
-0.033358153,
-0.0164794791,
0.0210531931,
-0.2110533118,
0.1176367179,
-0.0502106287,
0.1728789806,
-0.0315520987,
0.1904926151,
0.054508809,
0.0200970117,
-0.0229081716,
-0.0750112832,
-0.3043437302,
0.3807200193,
0.2925152481,
-0.2849721014,
-0.239005059,
-0.2732955515,
0.2994505763,
0.2330967784,
-0.2306940854,
-0.1883913279,
-0.0610225238,
0.2298755348,
-0.0165655389,
-0.0325043499,
-0.020908827,
0.0814965293,
-0.1017272919,
0.0823356509,
-0.0497955643,
-0.3425438106,
-0.0545055009,
0.0416274965,
0.4230906963,
-0.4592678249,
0.0314124189,
0.0776457563,
-0.0370973609,
0.1661608219,
-0.0156409126,
-0.1761005521,
0.3399187922,
0.4549157917,
-0.0952974781,
0.0680910349,
0.5646650791,
0.2320543975,
-0.0353037715,
-0.3191522658,
-0.415387392,
-0.1019425392,
-0.1564502567,
0.3281702399,
0.1240646914,
-0.1447252631,
0.0302013047,
0.0921337605,
-0.1872467548,
0.0737870485,
-0.3565633297,
0.0890223533,
-0.2486666739,
-0.052849669,
0.2169649601,
-0.0027761578,
-0.0350913927,
0.213962853,
0.3948683739,
0.2045371383,
-0.0489316396,
-0.2311514914,
-0.1126093715,
0.4087429643,
0.0772506595,
-0.1662668139,
-0.015459286,
0.215043053,
0.021783188,
-0.4616490602,
0.1113343909,
0.7915514708,
0.0143267317,
0.1097557172,
0.0730053484,
0.1319305599,
0.0743687078,
0.1113154143,
0.1282054335,
0.1956942081,
0.5089123845,
0.1341064572,
0.1621893197,
-0.171485737,
0.0821169168,
0.3413287103,
0.0579753295,
-0.1947855055,
-0.1379916072,
-0.1202981472,
-0.2397880107,
-0.2342400402,
0.3061213791,
-0.3678508699,
0.1598186344,
0.4887731075,
0.0419580862,
-0.036327593,
-0.1764902025,
0.0918217227,
-0.1340865195,
0.3707448542,
0.1804842055,
0.3499813676,
-0.4604696631,
-0.1199098006,
-0.1486262977,
0.2048616111,
-0.0537601411,
0.2070136964,
-0.0683425665,
-0.0542425178,
-0.2928383052,
-0.0355891734,
0.4646604061,
-0.0458971821,
0.1257221997,
0.744793117,
-0.1189864501,
-0.1809124798,
-0.1939855665,
-0.4551101029,
0.1367598027,
-0.3439600766,
-0.0067857718,
-0.2218829989,
-0.0153602706,
-0.36568591,
-0.1194265485,
0.1701371372,
-0.1208840013,
0.7393066883,
-0.0100622457,
0.3395698369,
-0.283323586,
-0.0344417021,
-0.30263412,
-0.3736174703,
0.1041530222,
0.1427950114,
-0.0441494957,
0.4158197939,
-0.0368069224,
-0.0108643696,
-0.0552715547,
-0.1814589053,
-0.2508596778,
-0.2814591527,
-0.0456613339,
0.0006196576,
-0.1697230786,
0.1351544261,
-0.1622930318,
0.4930019081,
0.1826519221,
0.2474506199,
-0.5032019019,
-0.2913762927,
0.2957419157,
-0.1681202948,
-0.1978683472,
-0.0126707321,
0.4553819299,
0.0479417443,
-0.0981444716,
-0.542684257,
0.0084322719,
0.1390712559,
-0.0092328722,
-0.2407186925,
0.1413856596,
0.1570989788,
0.0041137463,
0.1007604823,
0.1972350031,
0.1422407627,
-0.155780077,
0.3021903932,
-0.351542294
] |
https://github.com/huggingface/datasets/issues/3310 | Fatal error condition occurred in aws-c-io | I also get this issue, It appears after my script has finished running. I get the following error message
```
Fatal error condition occurred in /home/conda/feedstock_root/build_artifacts/aws-c-io_1637179816120/work/source/event_loop.c:72: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS
Exiting Application
################################################################################
Stack trace:
################################################################################
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_backtrace_print+0x59) [0x2aabe0479579]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_fatal_assert+0x48) [0x2aabe04696c8]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././././libaws-c-io.so.1.0.0(+0x13ad3) [0x2aabe0624ad3]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_ref_count_release+0x1d) [0x2aabe047b60d]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././././libaws-c-io.so.1.0.0(+0x113ca) [0x2aabe06223ca]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_ref_count_release+0x1d) [0x2aabe047b60d]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-crt-cpp.so(_ZN3Aws3Crt2Io15ClientBootstrapD1Ev+0x3a) [0x2aabe041cf5a]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././libaws-cpp-sdk-core.so(+0x5f570) [0x2aabe00eb570]
/lib64/libc.so.6(+0x39ce9) [0x2aaaab835ce9]
/lib64/libc.so.6(+0x39d37) [0x2aaaab835d37]
/lib64/libc.so.6(__libc_start_main+0xfc) [0x2aaaab81e55c]
python(+0x1c721d) [0x55555571b21d]
Aborted
```
I don't get this issue when running my code in a container, and it seems more relevant to PyArrow but thought a more complete stack trace might be helpful to someone
| ## Describe the bug
Fatal error when using the library
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('wikiann', 'en')
```
## Expected results
No fatal errors
## Actual results
```
Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS
Exiting Application
```
## Environment info
- `datasets` version: 1.15.2.dev0
- Platform: Windows-10-10.0.22504-SP0
- Python version: 3.8.12
- PyArrow version: 6.0.0
| 95 | Fatal error condition occurred in aws-c-io
## Describe the bug
Fatal error when using the library
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('wikiann', 'en')
```
## Expected results
No fatal errors
## Actual results
```
Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS
Exiting Application
```
## Environment info
- `datasets` version: 1.15.2.dev0
- Platform: Windows-10-10.0.22504-SP0
- Python version: 3.8.12
- PyArrow version: 6.0.0
I also get this issue, It appears after my script has finished running. I get the following error message
```
Fatal error condition occurred in /home/conda/feedstock_root/build_artifacts/aws-c-io_1637179816120/work/source/event_loop.c:72: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS
Exiting Application
################################################################################
Stack trace:
################################################################################
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_backtrace_print+0x59) [0x2aabe0479579]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_fatal_assert+0x48) [0x2aabe04696c8]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././././libaws-c-io.so.1.0.0(+0x13ad3) [0x2aabe0624ad3]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_ref_count_release+0x1d) [0x2aabe047b60d]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././././libaws-c-io.so.1.0.0(+0x113ca) [0x2aabe06223ca]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_ref_count_release+0x1d) [0x2aabe047b60d]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../../././libaws-crt-cpp.so(_ZN3Aws3Crt2Io15ClientBootstrapD1Ev+0x3a) [0x2aabe041cf5a]
/home/user_name/conda_envs/env_name/lib/python3.7/site-packages/pyarrow/../../.././libaws-cpp-sdk-core.so(+0x5f570) [0x2aabe00eb570]
/lib64/libc.so.6(+0x39ce9) [0x2aaaab835ce9]
/lib64/libc.so.6(+0x39d37) [0x2aaaab835d37]
/lib64/libc.so.6(__libc_start_main+0xfc) [0x2aaaab81e55c]
python(+0x1c721d) [0x55555571b21d]
Aborted
```
I don't get this issue when running my code in a container, and it seems more relevant to PyArrow but thought a more complete stack trace might be helpful to someone
| [
-0.5238192081,
0.0124545572,
-0.1510106623,
0.0529181547,
0.1022881716,
-0.056282755,
0.2720828652,
0.1647465974,
0.1394755095,
0.2164282054,
0.1449788809,
0.6392527819,
0.0272323303,
0.2679427564,
-0.1522212029,
0.0486653782,
0.0849769935,
0.2248355597,
-0.5182912946,
0.2776281834,
-0.3364137709,
0.403416872,
-0.2084617019,
0.0623175353,
-0.1796566397,
-0.1809756011,
-0.0179909579,
0.2800241113,
0.0241865665,
-0.2930752039,
0.2808554471,
-0.1740758121,
0.1775285155,
0.345548898,
-0.0001122971,
-0.1695671976,
0.3209400773,
0.095414862,
-0.2818971574,
-0.0759112686,
-0.2237414867,
0.1225465909,
-0.0184138585,
-0.3855494857,
0.2665083408,
0.2228141278,
-0.0351275541,
-0.3130324483,
0.0639876798,
0.3623969555,
0.2311107218,
0.6086918712,
0.2390033901,
0.1065836623,
0.1769786626,
0.0201966781,
-0.2600745261,
0.3164563179,
0.2072056532,
-0.3317072093,
0.2380838841,
0.2161259353,
-0.2167506665,
0.1238167137,
0.148098439,
-0.1799422354,
0.1517980844,
-0.2383636981,
0.225255996,
-0.017766716,
0.3117285967,
-0.5552000999,
-0.212227881,
0.2023417056,
0.0684069693,
-0.2899763286,
0.2288647294,
0.236918956,
-0.0690644532,
0.2507275045,
0.1910125911,
0.2601272464,
-0.2863742709,
0.1847881526,
0.0689175203,
0.1911076605,
-0.1828380972,
0.1061040461,
-0.035849981,
0.0187334213,
0.0074177245,
-0.1829013228,
-0.1297428161,
0.0905329958,
-0.6190881729,
-0.1297152787,
0.0512392372,
0.3003860116,
0.0847880915,
0.0357257389,
-0.0893478468,
-0.1897672713,
0.2961357236,
0.1864769161,
-0.0159307625,
-0.001925596,
-0.0480256379,
0.1399162561,
0.2084679306,
0.2280141562,
-0.0154905496,
-0.0808264539,
0.0770036727,
-0.3536374271,
0.1791577488,
0.2183007747,
0.5821422338,
-0.1923938394,
-0.5256129503,
0.5586884618,
-0.2727642357,
0.1181333289,
-0.0232029054,
0.3889778554,
0.0861149728,
-0.0477018654,
0.1652629226,
0.2172620893,
-0.3164324462,
0.1561410129,
-0.1200018153,
0.159081623,
-0.1640791744,
0.0092633888,
0.1845333427,
-0.2929286957,
0.2341204435,
0.2619325221,
0.0779033452,
-0.4948622286,
0.1453880966,
-0.0477274209,
-0.3259898424,
0.3115953207,
0.1820804328,
0.1288495511,
-0.0247573964,
0.1924549937,
0.1136577353,
0.3079917729,
-0.0596534982,
-0.3040206134,
-0.3930384815,
0.265378058,
-0.0842297152,
0.1074649021,
-0.1293652207,
-0.3998488188,
0.3742223084,
0.0534043498,
0.2311757505,
-0.2634416223,
0.0432297438,
-0.1469578147,
-0.0443530381,
0.3126034141,
-0.1966224313,
0.1726598442,
-0.2365849912,
-0.1387278289,
0.2632281184,
0.1787834615,
-0.1095555499,
0.12977916,
-0.3253769875,
0.0368281193,
0.0568409115,
-0.0487655066,
-0.2840591371,
0.4315976501,
-0.1971079558,
0.0049776989,
0.0662248582,
-0.1383138001,
-0.0531931296,
-0.2159403712,
-0.0415547788,
-0.3213525414,
0.0290035233,
0.1009669602,
-0.274282515,
-0.2974492908,
0.0292199533,
0.07409361,
0.2205688655,
-0.0281634349,
0.3067128658,
-0.0809551552,
0.3037677109,
-0.0793870166,
-0.020376699,
0.271591574,
0.3118673563,
-0.2359283268,
0.0105235698,
-0.1352689117,
-0.4974724948,
0.1576951742,
0.1554073542,
0.0694631562,
-0.1817340255,
-0.2130592912,
-0.2614331841,
0.3662574589,
0.0462982282,
-0.1079460531,
0.1434024125,
-0.023926748,
-0.009389733,
-0.1723454446,
-0.321077019,
0.2475385219,
-0.7090705633,
0.0266249646,
-0.2800891399,
0.1926077455,
-0.2058548629,
-0.3479899168,
0.0967651531,
-0.027068032,
0.2817364335,
0.0489111468,
-0.3139443398,
0.2076886296,
-0.1238792911,
0.4942330122,
-0.2492681295,
0.2949225307,
-0.1248091683,
-0.2893085182,
0.0072771129,
0.1047290415,
0.193604961,
0.0469896756,
0.3869610429,
0.301258415,
-0.2169073671,
0.1706785411,
-0.1525348276,
-0.1586356014,
0.0530843958,
-0.1401325166,
0.0421612523,
-0.0549663492,
0.3740572333,
0.1470424235,
0.1933876276,
-0.1575617194,
-0.3210005164,
-0.0652742311,
0.2160314471,
-0.0248105545,
0.1133153662,
-0.0327469669,
0.0655436516,
0.0147381183,
0.3507845402,
0.1520656645,
0.9047681689,
0.0021477747,
-0.2390838563,
0.1623970717,
-0.0188259445,
-0.2555152476,
0.4089321196,
0.0855127871,
0.2295683026,
0.3951899409,
0.0730721056,
0.0430449322,
-0.2154821754,
-0.5383493304,
-0.0007862512,
0.2184128463,
-0.2915556431,
0.2386299968,
-0.0260639954,
-0.0706562251,
-0.0330998674,
0.2069048584,
0.2976568043,
0.0203176066,
-0.0556264967,
0.396571964,
-0.2665336728,
0.0989783034,
-0.1440507323,
-0.0852192417,
-0.0112184435,
0.1877099127,
-0.4556871951,
-0.1737344265,
-0.0300919842,
0.0486782119,
0.1671337485,
-0.1494403481,
0.2685697675,
-0.0221603736,
-0.2396871597,
-0.3495423794,
-0.1085356846,
-0.077285178,
0.0053946003,
0.3346958458,
0.2625851929,
0.3028536141,
-0.1726219058,
-0.4945147932,
0.0347615369,
-0.2460219413,
0.0378754698,
-0.0304781049,
-0.2570069432,
-0.1170073599,
-0.3578951657,
-0.2480026484,
-0.0715724975,
-0.4674209952,
-0.1076239198,
-0.2539976835,
0.1292698979,
-0.1985677928,
0.2198302895,
0.0672135204,
0.3614295721,
-0.1912658662,
-0.2563484609,
-0.3309599459,
0.0219521709,
-0.1302228123,
-0.1844267845,
0.1995255649,
0.1468322128,
0.5444603562,
-0.0247788355,
-0.3840240836,
0.2265349329,
-0.1091856882,
0.1617456377,
-0.2423912436,
0.0887832046,
0.0484631509,
-0.0183692612,
0.0102661932,
-0.1978461444,
0.0946344584,
-0.1706688106,
-0.0472110212,
0.2006495446,
0.0310063008,
0.483789295,
0.0582157262,
0.5825474262,
0.1878431439,
-0.3849367797,
0.3777857125,
0.0994062871,
0.0670488849,
-0.0965984464,
-0.1637929082,
0.0623480305,
0.0077484665,
-0.2918418348,
0.0406869613,
-0.2753085494,
-0.3136051893,
-0.0452803895,
-0.0406659469,
-0.3752550781,
-0.2289005071,
0.0151675334,
0.004692228,
0.2785689831,
-0.0613070168,
-0.0229510926,
0.179374367,
0.0240657423,
-0.0098426249,
0.4919506311,
-0.1157773361,
-0.1560081095,
-0.0239486694,
-0.2760780156,
-0.5187690258,
0.3279685676,
-0.0253486354,
0.2782630622,
-0.0328689106,
0.2104163021,
0.0891345963,
-0.2289738059,
0.2019930333,
-0.156653896,
0.2690010965,
0.0864709467,
0.2614311576,
-0.0529894233,
-0.2135885209,
-0.3113918602,
0.2386854142,
0.2179857343,
-0.0334618464,
-0.1606633514,
-0.0417772755,
0.1574559361,
-0.1275548488,
0.1606027633,
-0.388302058,
-0.1766115725,
-0.3775692582,
-0.4743774235,
0.3095110059,
0.0701123402,
0.0368907601,
-0.289237529,
-0.3230838478,
-0.0242187325,
-0.0682019442,
0.0406351984,
0.0575013235,
-0.1503943503,
-0.1790417433,
0.2924630642,
-0.4043715894,
-0.4092670083,
0.5923691392,
0.2270703018,
0.2597564459,
0.0166086089,
0.2380072176,
0.1802305728,
0.1766861677,
0.2217022777,
-0.3340323567,
0.1090120152,
0.1383499652,
0.1718844175,
-0.0055428832,
0.1367426068,
0.1619846225,
0.1302963644,
-0.0665302649,
0.08863426,
0.2563491464,
-0.1784261167,
0.017448388,
0.5696473718,
-0.2160588056,
-0.1848124117,
0.2943898737,
-0.0368109941,
0.7101957798,
0.3098268807,
-0.1663193405,
0.291477561,
-0.3430126309,
0.2566577196,
-0.067971006,
0.1757596433,
-0.386674732,
0.1689337194,
0.1212034076,
-0.0878918096,
0.337251395,
0.0620264746,
0.0261982195,
0.068527028,
0.1072672531,
0.1109777242,
-0.0855463296,
0.1042408794,
-0.5484771729,
-0.1813619584,
-0.4504213631,
0.1582768261,
-0.1592633724,
0.2785452306,
-0.4195919931,
0.1076342687,
0.1888705194,
-0.3532424867,
-0.4090208411,
0.2453166693,
-0.4999910593,
0.1725767404,
-0.2842651308,
-0.2369260192,
0.0869158283,
0.1175545678,
-0.0490223132,
0.3551559448,
0.1695925444,
0.2930404246,
0.1083390042,
0.0221719611,
0.0378322527,
-0.1258707494,
-0.1034371704,
-0.0601526089,
-0.1936039329,
0.1123613492,
-0.1490299702,
-0.0663232803,
0.3501287997,
-0.0002158693,
-0.1167139634,
-0.1408972144,
-0.2008104771,
-0.0500735044,
-0.2579354942,
-0.1920101792,
0.2030674666,
0.0370582491,
-0.1579820663,
0.3377310932,
-0.52731359,
-0.0965809301,
-0.1853666157,
0.3383245468,
-0.1083707958,
-0.0580210201,
0.1440048367,
0.3721713424,
-0.073808752,
-0.295185864,
0.0767993107,
-0.2395216525,
-0.4395114779,
0.1279383451,
0.1247501001,
0.1512536854,
0.2879842222,
0.211497128,
0.0896753818,
0.2551242113,
0.1096626446,
-0.367836237,
-0.2351517379,
0.1042514592,
-0.0167780481,
0.4285413325,
0.3428312242,
0.0421702489,
-0.446901083,
-0.0906139985,
-0.3183850944,
-0.0145259164,
-0.1291848868,
0.153865099,
0.1759165972,
0.0948833823,
0.3161893785,
-0.0361584872,
0.1318811923,
0.3583147824,
-0.0570944995,
-0.2393100113,
-0.102122739,
0.1091170236,
0.1164763495,
-0.0323609188,
0.0299129672,
-0.1494511068,
0.0184386354,
0.013646719,
0.5354163051,
0.0209642611,
-0.2293890268,
-0.0367034189,
-0.0316402577,
0.1168324426,
-0.3775531948,
-0.0071973079,
-0.0786165521,
0.3597835302,
-0.0547496788,
0.1968142539,
0.1037128344,
-0.0424154624,
-0.0866780952,
-0.1896461844,
-0.1331108212,
0.3766674101,
0.2309834808,
-0.1849565208,
-0.2881334126,
-0.2044701874,
0.2568540573,
0.0885271281,
-0.1735089272,
-0.1757406741,
-0.0393707082,
0.2519860566,
0.0449152701,
0.0268144757,
0.0206518285,
0.0873302817,
-0.0478830151,
0.1774330735,
-0.0012933137,
-0.3099313974,
0.0864254385,
0.1583140194,
0.2867116928,
-0.3466148078,
0.1586057991,
0.1903893203,
-0.0244287457,
0.2015181184,
0.0038725033,
-0.0727150068,
0.377804786,
0.3323092163,
-0.0826957896,
0.1750134379,
0.5294489264,
0.2186548114,
0.011918827,
-0.3346420228,
-0.2941830754,
-0.0057084793,
-0.1412094086,
0.2912998497,
0.2560742497,
-0.2177957445,
0.0258249883,
0.0603950992,
-0.1354140937,
0.1729344428,
-0.38343665,
0.1030141488,
-0.2541013956,
0.0294721816,
0.1968173534,
-0.0282881036,
0.0195106138,
0.2599516511,
0.3505584598,
0.1939223707,
-0.0475664735,
-0.1808703691,
0.0783938691,
0.4270769954,
0.0859251097,
-0.1475231498,
0.034012679,
0.3218673766,
-0.0604933314,
-0.542997539,
0.2187452465,
0.7486249208,
0.0886434987,
0.0860164762,
0.1142684892,
0.3115687668,
0.0538850687,
0.1647620499,
0.1514170021,
0.0823175907,
0.3458634615,
0.1363114715,
0.1718890369,
-0.1930205226,
0.1185338646,
0.4082519412,
0.0774380416,
-0.0800230727,
-0.1430775821,
-0.2268598676,
-0.1432714313,
-0.1960860938,
0.3975715339,
-0.407941103,
0.0434554107,
0.4531761408,
-0.0029953739,
0.0224984027,
-0.1567258537,
0.1136435419,
-0.1096580774,
0.3035804331,
0.2503444254,
0.2127291858,
-0.5243701935,
-0.2192653865,
-0.0709754825,
0.2432933748,
-0.0002603541,
0.2503130734,
-0.131728977,
-0.0334065147,
-0.3243775666,
-0.0017006277,
0.4104088545,
-0.2521764338,
0.1003490016,
0.8069737554,
-0.1968463659,
-0.1059447527,
-0.221033603,
-0.5366701484,
0.1259062886,
-0.4087872505,
-0.099273473,
-0.225042209,
0.0007104958,
-0.3281885684,
-0.1482523531,
0.1319778115,
-0.309697181,
0.5868093371,
0.0522909686,
0.1903022677,
-0.3448286653,
-0.0492724478,
-0.1451998651,
-0.3112821877,
0.2182314396,
0.1221950576,
0.0217232797,
0.4597811401,
-0.0341559313,
-0.017774526,
-0.1722246855,
-0.121502474,
-0.2216754258,
-0.2491578758,
-0.0405769981,
0.0931970403,
-0.3625552654,
0.0567793772,
-0.1076192334,
0.3713841438,
0.170703873,
0.2806512117,
-0.4915652871,
-0.3505574167,
0.3209139109,
-0.1935874522,
-0.2412086278,
-0.0684851781,
0.4301102459,
0.0919015482,
0.0130245527,
-0.436837703,
0.1623489261,
0.1065452695,
-0.0233835522,
-0.202850759,
0.1516568512,
0.1247712746,
0.0392134227,
0.1027308106,
0.0945955664,
0.1161064208,
-0.0502758101,
0.2304681838,
-0.4084386826
] |
https://github.com/huggingface/datasets/issues/3310 | Fatal error condition occurred in aws-c-io | @CallumMcMahon Do you have a small reproducer for this problem on Linux? I can reproduce this on Windows but sadly not with linux. | ## Describe the bug
Fatal error when using the library
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('wikiann', 'en')
```
## Expected results
No fatal errors
## Actual results
```
Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS
Exiting Application
```
## Environment info
- `datasets` version: 1.15.2.dev0
- Platform: Windows-10-10.0.22504-SP0
- Python version: 3.8.12
- PyArrow version: 6.0.0
| 23 | Fatal error condition occurred in aws-c-io
## Describe the bug
Fatal error when using the library
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('wikiann', 'en')
```
## Expected results
No fatal errors
## Actual results
```
Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS
Exiting Application
```
## Environment info
- `datasets` version: 1.15.2.dev0
- Platform: Windows-10-10.0.22504-SP0
- Python version: 3.8.12
- PyArrow version: 6.0.0
@CallumMcMahon Do you have a small reproducer for this problem on Linux? I can reproduce this on Windows but sadly not with linux. | [
-0.4971722364,
-0.2210783511,
-0.0642463043,
0.1765671074,
0.0318543613,
-0.1087292433,
0.1770700812,
0.0373220481,
0.2282176167,
0.225035727,
0.1644743532,
0.6636955142,
-0.0692413151,
0.1272047609,
-0.1631724089,
-0.1083404645,
0.1769797504,
0.1298456937,
-0.6801725626,
0.082055442,
-0.1747648716,
0.4391159415,
-0.2951256037,
0.0238214117,
-0.2007176429,
-0.2174610496,
-0.1243984401,
0.1705572605,
0.115713276,
-0.1533326656,
0.3042348027,
-0.3391992748,
0.1236082092,
0.5622190833,
-0.0001124263,
-0.167745471,
0.3591160774,
0.1087242737,
-0.2666859329,
-0.1745543629,
-0.2416810095,
0.0075408658,
0.088530086,
-0.384210825,
0.3537594378,
0.115464285,
-0.0108282883,
-0.2205201536,
0.0820007473,
0.2766175568,
0.2125620544,
0.5830552578,
0.1947470605,
0.0748724416,
0.1517060697,
0.0618800521,
-0.3208602667,
0.152884528,
0.2221179456,
-0.3108470738,
0.2576709986,
0.2405780405,
-0.1925660074,
0.0092519177,
-0.0281226132,
-0.1240078062,
-0.0798909366,
-0.2105618268,
0.1713148057,
0.0140740871,
0.3097490072,
-0.4213240743,
-0.1427878588,
0.2894180715,
0.1346807778,
-0.1947116554,
0.3737765849,
0.2496000528,
-0.1357899606,
0.1493731588,
0.0880442932,
0.2445414364,
-0.3302844167,
0.34375,
-0.0637074262,
0.295314163,
-0.1070977226,
0.086881645,
-0.0091121709,
-0.0671786219,
-0.0411534905,
-0.2508845627,
-0.1044515073,
0.0821553171,
-0.7284795642,
-0.0583713874,
-0.0703178123,
0.3240497708,
0.068537347,
-0.0896081626,
0.0269975886,
-0.2046246082,
0.2174304128,
0.2488622665,
0.0102800773,
-0.1458491087,
-0.1105765253,
0.2551918328,
0.3134561479,
-0.0184553005,
-0.0818061829,
-0.1087910607,
0.0389895365,
-0.2712665796,
0.1726638973,
0.0814342052,
0.4826301336,
-0.1829051673,
-0.3514201045,
0.4767960906,
-0.4863788188,
0.2622302473,
0.0846957266,
0.3751206994,
0.0065926695,
-0.161688894,
0.1712467074,
0.1952330321,
-0.3567651212,
0.2068661749,
-0.1200267598,
0.0619114004,
-0.195119068,
-0.0454050004,
0.1687474251,
-0.279651314,
0.2228829414,
0.3305129409,
0.2694880664,
-0.4463106692,
0.173772499,
-0.1254404038,
-0.3136377931,
0.3841663003,
0.0921318233,
0.1243510768,
-0.0247929916,
0.2494843006,
0.1426857114,
0.325104475,
-0.1971885413,
-0.182093367,
-0.1820643097,
0.2366506606,
-0.0437933132,
0.0327574983,
-0.2009114474,
-0.2346860021,
0.2000062466,
-0.0514411181,
0.2320451289,
-0.3304466903,
0.1143445224,
-0.0647888035,
0.045548901,
0.1454086155,
-0.0468240529,
0.0915735215,
-0.2804614604,
-0.0152140195,
0.3730472326,
0.3103269339,
-0.006664122,
0.0152872372,
-0.3445256054,
0.0394352265,
0.1324072927,
0.0090871826,
-0.3413746357,
0.3993128836,
-0.0052946159,
-0.0703018606,
0.0062809587,
0.0240061153,
-0.0728095919,
-0.1616171598,
-0.1525372267,
-0.2635854185,
0.0767782629,
0.0557451434,
-0.2545362711,
-0.3842113614,
-0.0124045936,
0.1528313458,
0.2404974103,
0.0370742753,
0.416171819,
-0.095868282,
0.3665203154,
-0.1395184994,
-0.1105782986,
0.2166211754,
0.4201027155,
-0.2477775663,
0.0819138214,
-0.219824791,
-0.3767217696,
0.1796052903,
0.2147609293,
0.1382900625,
-0.0472022779,
-0.0727745965,
-0.0797362551,
0.2930420339,
0.1045539826,
0.0451181233,
0.1034782603,
-0.1232920066,
-0.0792542771,
-0.1165888533,
-0.2137741148,
0.2280020863,
-0.7132329345,
0.0826665014,
-0.1329380423,
0.2858531475,
-0.1397486031,
-0.2968963981,
0.0373138413,
-0.1497092396,
0.2280989885,
0.0576491244,
-0.3094611168,
0.1808056831,
-0.0139493635,
0.6140986681,
-0.1400346607,
0.2267438471,
-0.0744837821,
-0.2919131517,
0.0402401276,
0.2479783744,
0.1806980073,
-0.0238759462,
0.2635376155,
0.1343573332,
-0.1518614292,
0.1887817383,
-0.1832185388,
-0.012116516,
0.0273235757,
-0.0725387186,
0.0366686471,
0.1134906486,
0.5826762915,
0.0415991507,
0.2341854274,
-0.2023295164,
-0.5425604582,
-0.2884297967,
0.1802106947,
0.0044128448,
0.346357584,
0.1237448305,
-0.037786562,
0.1679445058,
0.3706901371,
0.1230581552,
0.7847377062,
0.0742019713,
-0.0909935385,
0.2033571601,
0.0691717565,
-0.2102231383,
0.4836144149,
0.159634307,
0.1099691615,
0.4181239307,
0.1432650387,
0.0634284243,
-0.3402437866,
-0.4502232373,
-0.0034488884,
0.2070602328,
-0.2114510983,
0.3344221413,
-0.1320063025,
0.2152188718,
0.0160258356,
0.302049458,
0.1067895666,
0.0307485815,
-0.0935601294,
0.3137026429,
-0.1597222537,
0.2479709685,
-0.0257424302,
-0.0777895302,
0.0986592025,
0.0154433139,
-0.4391575754,
-0.1824280173,
-0.1310597211,
0.0309767202,
0.2549409568,
-0.0392399877,
0.363778621,
0.04426945,
-0.204681471,
-0.2991780937,
-0.0884104446,
-0.0253145639,
0.0517747067,
0.2400112301,
0.2649962604,
0.2318094671,
-0.2738063037,
-0.3301583529,
0.0673337281,
-0.3510271311,
-0.0421218388,
0.0385894328,
-0.2114553005,
0.0541916154,
-0.2427961826,
-0.2259408832,
-0.1548724174,
-0.4721357524,
0.0159847364,
-0.1986336559,
0.1453645527,
-0.007130234,
0.3135763407,
0.0503639691,
0.3863614798,
-0.2150816023,
-0.2300468236,
-0.2559611201,
0.1507545263,
-0.0343344472,
-0.1940061897,
0.2101308405,
0.2624916732,
0.3747652769,
0.2373037338,
-0.5420316458,
0.3050325513,
-0.1387984008,
0.1483829021,
-0.2897320986,
0.216898635,
0.0317796953,
-0.1607586145,
0.0539981835,
-0.1752793938,
0.1519136578,
-0.1951245964,
0.0295259599,
0.2537396252,
0.0401964709,
0.4799323678,
0.0313793719,
0.5219052434,
0.1732299179,
-0.2272823453,
0.2573490143,
0.0497611947,
-0.0352588482,
-0.1655820012,
-0.1993864775,
0.1364510506,
0.0255603734,
-0.4722711742,
0.0219270941,
-0.1613679528,
-0.3259932697,
-0.063103199,
-0.0274605807,
-0.1920200586,
-0.2761786282,
-0.0211085342,
0.160553813,
0.3328936696,
-0.0855034068,
0.0352639146,
0.1418379992,
-0.0094593223,
0.117356427,
0.5136918426,
-0.2052508891,
-0.0896707401,
-0.0909598842,
-0.230455175,
-0.4990660548,
0.2941133976,
-0.170892179,
0.3440134823,
-0.1595764458,
0.1740071923,
0.1848860979,
-0.1829469353,
0.2574384511,
-0.1097773835,
0.1653362066,
0.0567543581,
0.1666014344,
-0.0124825276,
-0.1418440342,
-0.3958579302,
0.2952284813,
0.2250151485,
-0.0087901838,
-0.140863061,
0.0351379886,
-0.0057105562,
-0.0363551229,
0.1358419359,
-0.5125347376,
-0.1475126296,
-0.2508872747,
-0.2802930772,
0.3622225225,
-0.0491418913,
0.0084618516,
-0.2506296337,
-0.3330730796,
-0.181317538,
-0.0295450389,
0.0475899242,
0.0405998155,
-0.0329790451,
-0.3262056708,
0.3704556525,
-0.3941349089,
-0.4115211964,
0.6514695883,
0.1624241918,
0.1479879618,
0.1368550807,
0.289355278,
0.0538898557,
0.1205169186,
0.1382466108,
-0.3084461689,
0.1353786141,
0.1837263852,
0.2781151533,
-0.1006785408,
0.0922727138,
0.3022994101,
0.2459156513,
-0.1330445707,
0.0485873148,
0.3794791698,
-0.0677508935,
-0.0873102024,
0.6828842759,
-0.1439702511,
-0.212321803,
0.332867682,
-0.0667984113,
0.7166986465,
0.2203855067,
-0.0471621603,
0.2867046595,
-0.2364363819,
0.4139977396,
-0.0904700533,
0.1187686324,
-0.3827019036,
0.0902049243,
0.066807732,
-0.09143278,
0.444493562,
0.1288585216,
-0.0279999021,
0.0058209412,
0.0264436938,
0.099328883,
-0.1130819172,
-0.0566548519,
-0.5850750804,
-0.2331068516,
-0.6218173504,
0.1729544699,
-0.0762389153,
0.2592418492,
-0.3276539147,
0.1347264647,
0.1069720611,
-0.2743454576,
-0.3767907917,
0.1260066479,
-0.3432662785,
0.2123500556,
-0.2400950044,
-0.5442875624,
0.2285308093,
0.1115963683,
-0.0597660057,
0.3272481263,
0.0087501258,
0.3353110254,
0.0005474764,
0.0414927788,
0.0696998909,
-0.1758633852,
-0.2889883816,
-0.0258403346,
-0.1714427173,
0.091265358,
-0.1870322078,
-0.0867725164,
0.3532973528,
0.0722178593,
-0.1213947982,
0.0563991442,
-0.2445611507,
-0.0883308649,
-0.2110328525,
-0.2213013172,
0.2041537613,
0.0845673382,
-0.2060112059,
0.4453005493,
-0.3634861708,
-0.1007406116,
-0.0953133628,
0.3274371624,
-0.1120332778,
-0.0584224164,
0.175340265,
0.4117313027,
-0.0587791763,
-0.3319697678,
0.2507856488,
-0.3539334834,
-0.4662673473,
0.0187790375,
0.0993895382,
0.1593628824,
0.2544576824,
0.1764893979,
0.0391293839,
0.1991444826,
0.0191706941,
-0.312922895,
-0.2646103203,
0.0066214479,
-0.1536032856,
0.3218711615,
0.3112277389,
-0.0857943743,
-0.521281302,
-0.153203845,
-0.2747415304,
0.0859974027,
-0.1789285839,
0.0363511965,
0.1079932377,
0.0890410095,
0.3637374938,
-0.0527839661,
0.1025665775,
0.3131003678,
0.0093210377,
-0.2044148445,
-0.192187205,
0.128503412,
0.0745891705,
0.078084901,
0.0549629927,
-0.245425716,
-0.030943634,
-0.0608519092,
0.4805872738,
0.1512590647,
-0.2359473705,
-0.0994759649,
0.0613107756,
0.09040948,
-0.3775306046,
0.0819304287,
-0.0279196147,
0.1288778037,
-0.0752654597,
0.0689363629,
0.1515847594,
0.0091422061,
0.0373844244,
-0.0944801196,
-0.2033080012,
0.2129129469,
0.3003379703,
-0.1787633598,
-0.1483134329,
-0.162889123,
0.3332731128,
0.187179327,
-0.1353936493,
-0.1983163953,
0.1573025137,
0.2644127011,
-0.0343421921,
-0.1504431963,
0.0841487125,
0.1114900634,
-0.0810117424,
0.11470633,
-0.1408375055,
-0.3551225662,
-0.0345876627,
0.0975298509,
0.1517725736,
-0.3769625127,
0.151929915,
0.0795995221,
-0.0318665728,
0.2651674449,
-0.1620529741,
-0.1205717772,
0.2521956861,
0.4404045939,
-0.0805876404,
0.0874090493,
0.6006276608,
0.1925879568,
0.0193053596,
-0.4471467137,
-0.3521965444,
-0.0865673646,
-0.2421316803,
0.2684176266,
0.0905051976,
-0.1575123221,
-0.0010024421,
0.0410299934,
-0.1905341595,
0.0591960363,
-0.3275873065,
0.0169207808,
-0.2087941915,
0.0717317536,
0.2007025182,
-0.0661131591,
-0.0198271889,
0.2301663458,
0.290905267,
0.2702826858,
0.1112788469,
-0.3027260303,
-0.201617673,
0.5016777515,
0.0861876979,
-0.1830076277,
-0.0423527583,
0.23480542,
-0.0901152566,
-0.5622211099,
0.1726785749,
0.7151886225,
0.0335862897,
0.1062297374,
0.1442014128,
0.2548536062,
0.1438481063,
0.1059802026,
0.1368026584,
0.1968343705,
0.3459876478,
0.0823829696,
0.0922366604,
-0.1633139402,
0.0777099803,
0.3309631348,
-0.0053167366,
-0.2897478044,
-0.1735014319,
-0.2643961906,
-0.0233258791,
-0.2047168016,
0.3469545245,
-0.4899190366,
0.0891996846,
0.4869998097,
-0.0177993868,
0.027640054,
-0.0477859005,
0.0851845369,
-0.2579786777,
0.3107122481,
0.2166274488,
0.3355811536,
-0.4481999278,
-0.2201962322,
-0.0732342526,
0.2702798247,
-0.1249491125,
0.2865197062,
-0.2597182393,
-0.091783829,
-0.1833528727,
-0.0304938126,
0.4305408597,
-0.216629833,
0.180729419,
0.8772700429,
-0.2007004917,
-0.142154187,
-0.1965715438,
-0.4637053311,
0.0604620501,
-0.3382485211,
-0.0725048408,
-0.2525907159,
0.0183254238,
-0.3010952771,
-0.1238199174,
0.1075597703,
-0.0044797221,
0.5078191757,
0.0799741223,
0.32659778,
-0.2224462479,
-0.0979683623,
-0.0942572951,
-0.5059146285,
0.2835426331,
0.0872033611,
-0.1010604873,
0.3575588465,
-0.1267484128,
-0.2356316149,
-0.063663654,
-0.0830731466,
-0.2207816839,
-0.2969853282,
-0.0248445347,
0.0922694728,
-0.3229962587,
0.1568120271,
-0.0976853445,
0.4841342568,
0.2484843582,
0.0887903795,
-0.4254963994,
-0.2866845429,
0.2302613109,
-0.3645989001,
-0.2564731836,
-0.1760981977,
0.3744412959,
0.112628825,
0.0632322803,
-0.3321602345,
-0.030063834,
0.2001491636,
-0.1493713111,
-0.0891337991,
0.0608448796,
0.2016161531,
0.0282262582,
0.0947971046,
0.2054188102,
0.1563539952,
-0.1735742688,
0.3999472857,
-0.3545963168
] |
https://github.com/huggingface/datasets/issues/3308 | "dataset_infos.json" missing for chr_en and mc4 | Hi ! Thanks for reporting :)
We can easily add the metadata for `chr_en` IMO, but for mC4 it will take more time, since it requires to count the number of examples in each language | ## Describe the bug
In the repository, every dataset has its metadata in a file called`dataset_infos.json`. But, this file is missing for two datasets: `chr_en` and `mc4`.
## Steps to reproduce the bug
Check [chr_en](https://github.com/huggingface/datasets/tree/master/datasets/chr_en) and [mc4](https://github.com/huggingface/datasets/tree/master/datasets/mc4) | 35 | "dataset_infos.json" missing for chr_en and mc4
## Describe the bug
In the repository, every dataset has its metadata in a file called`dataset_infos.json`. But, this file is missing for two datasets: `chr_en` and `mc4`.
## Steps to reproduce the bug
Check [chr_en](https://github.com/huggingface/datasets/tree/master/datasets/chr_en) and [mc4](https://github.com/huggingface/datasets/tree/master/datasets/mc4)
Hi ! Thanks for reporting :)
We can easily add the metadata for `chr_en` IMO, but for mC4 it will take more time, since it requires to count the number of examples in each language | [
0.1193215549,
-0.1811270714,
-0.0279059187,
0.3837454915,
0.2158334255,
0.2018749863,
-0.0541832,
0.1573790461,
-0.3296636939,
0.248790428,
0.0808397904,
0.2499098778,
-0.0000339306,
0.0638483241,
0.0916150659,
-0.2367414087,
0.1538734585,
0.1002095193,
-0.1073533967,
-0.1524328887,
-0.024284631,
0.4124320447,
0.0565615706,
-0.203526631,
-0.3748120964,
0.0469446853,
-0.2703381479,
0.2079377174,
-0.1675268114,
-0.4068067074,
0.2105577886,
-0.0146266324,
-0.1257690042,
0.2369742692,
-0.0001112678,
-0.0546011962,
0.3018501997,
-0.1810428649,
-0.324441582,
-0.3433609903,
-0.0926190168,
-0.2126250118,
0.0039437483,
-0.030823689,
-0.2640377283,
-0.1946127117,
-0.0181689113,
-0.2268374264,
0.12093243,
0.0821636021,
0.2278029025,
0.2824182212,
0.2148011178,
-0.3420200348,
0.1941304505,
0.5780114532,
-0.1318907142,
0.2875227034,
0.2241056114,
0.1145950928,
0.15172939,
0.6877982616,
0.3535057902,
-0.1355721503,
0.2283668667,
0.0740439296,
-0.1485156566,
-0.222203508,
0.1996488273,
0.2306663394,
0.5932163596,
-0.2798848748,
-0.3809831142,
-0.3000253737,
0.1236770228,
-0.1046430245,
0.3523982167,
0.3148317337,
0.0463449657,
0.2625007927,
-0.1450374275,
-0.2272587717,
-0.0006873726,
0.2083141059,
0.2013882101,
0.2386237085,
-0.2148658931,
-0.0292358268,
0.0605980977,
-0.328076303,
-0.3839967251,
-0.0271491017,
-0.1804614812,
0.2966532707,
0.0135802347,
-0.1491825432,
0.2121861279,
-0.0034897237,
0.2484384775,
0.0752567202,
-0.242505312,
-0.1064766496,
-0.37929371,
0.1222191006,
0.2489959002,
-0.106447801,
0.3798608482,
0.1204056367,
0.3122030199,
0.0198868178,
0.2006632686,
-0.1601358503,
0.0213842839,
0.1518231183,
-0.1643212885,
0.1730430573,
0.2487296313,
-0.2049685121,
-0.0717972964,
0.1076734886,
-0.1795276403,
-0.2023599148,
-0.0260648206,
0.3868496716,
-0.0884040296,
-0.0587114692,
-0.067108281,
0.2046657801,
0.0177156981,
-0.3406269252,
-0.251080513,
0.2687723339,
-0.1956529319,
0.0524895228,
0.1921053082,
-0.2258432955,
0.5481263995,
0.1817260534,
0.1390344948,
-0.1172211021,
-0.0228277687,
0.1305701733,
-0.1848651022,
0.3069691062,
-0.0597690791,
0.2570518255,
0.0098849162,
-0.022046864,
-0.2031148672,
-0.1656277925,
-0.4809246361,
-0.1358824074,
-0.3452168405,
0.1878833324,
-0.1634820849,
0.009959829,
-0.324497968,
0.2666053772,
-0.0371730402,
-0.2021297216,
0.1548256576,
0.2236067206,
-0.0578846373,
-0.2138931155,
0.0813903958,
0.4128569961,
0.0589895919,
-0.3446295261,
0.0696128532,
-0.1907862872,
0.0530345216,
0.1858785748,
-0.2332054824,
0.0233478714,
-0.4853395522,
0.1824926138,
0.0219308324,
-0.5488517284,
-0.0954895318,
0.1201869398,
-0.0383854546,
0.1175683588,
0.2012643516,
-0.1380082816,
-0.1785741448,
0.0604792126,
0.0827649012,
0.0713416263,
0.0600412413,
0.0974197313,
-0.0396186002,
-0.073345758,
-0.0647599623,
0.1443773806,
-0.0318822451,
-0.038306579,
0.35796085,
0.0283375923,
0.2014331073,
-0.2049559951,
0.2378469557,
0.6841976047,
0.3482013941,
0.0346050151,
0.0710497424,
-0.2489078343,
-0.5154365897,
0.1611595899,
-0.0743732899,
0.2953652143,
-0.3217372894,
-0.2673014998,
-0.0825330243,
-0.077554822,
-0.1102838069,
-0.3542827964,
0.1500945687,
0.1817873716,
0.035179276,
0.3095543087,
-0.0300774276,
0.1848415732,
-0.0699386895,
0.1705302149,
-0.3724253476,
0.3791492581,
0.0437935777,
-0.0296859704,
0.1535904109,
0.2788449824,
0.1717961729,
-0.2337155044,
-0.065289095,
0.3591468334,
-0.0710259601,
0.3931177557,
0.1322191507,
0.2236454636,
0.3488708138,
-0.2989609241,
-0.0333375148,
-0.0048869778,
0.0161375068,
-0.0982156321,
-0.3874979317,
0.2912132144,
0.150457859,
0.057265386,
0.2523645163,
0.0599461384,
0.3484124243,
0.043017149,
-0.1385829449,
-0.3176913857,
0.290925324,
-0.186474219,
0.2855226994,
-0.0083635012,
-0.5867406726,
0.2233804166,
0.5968631506,
0.0432286002,
0.1201095209,
0.1551093757,
-0.2706757486,
-0.0222790204,
0.212842077,
-0.0235781968,
0.4980081618,
0.2257460505,
0.1730476469,
0.1647714078,
0.2046878636,
-0.0962159261,
0.1843805313,
-0.1017662734,
0.1345734745,
0.046271883,
0.3284330368,
0.0390431546,
-0.3137360811,
-0.1782305986,
-0.1366574764,
0.1610170752,
-0.2296226323,
0.0553830191,
-0.4809709489,
-0.1643846333,
-0.2558790147,
-0.3246999979,
-0.6033205986,
-0.1740271002,
0.1028318107,
-0.0481859483,
-0.2864330709,
0.095940724,
0.0613049157,
0.056757912,
-0.2098633647,
0.1539083719,
-0.1906552911,
-0.062019065,
-0.0786697865,
0.0109270643,
0.179150328,
-0.0136543782,
0.2818768919,
-0.5082934499,
0.0968237594,
-0.4300293624,
-0.636969924,
0.3471622467,
-0.0809746608,
0.0571914576,
0.2713415325,
0.0447915234,
-0.0883408636,
-0.2528660893,
0.2452532947,
0.002979697,
-0.4252369106,
0.0498950668,
-0.1399397999,
-0.1180934608,
-0.2913638055,
-0.3383161128,
-0.2559387982,
-0.2389941663,
0.5137597322,
-0.1320775598,
0.0884737223,
0.3606345057,
-0.2260386497,
0.0818516463,
-0.471400857,
0.235766232,
-0.2318332791,
-0.4851309359,
0.1645445228,
-0.4785115123,
-0.3209111989,
0.1714755595,
0.1657962501,
0.2538203001,
-0.2428957522,
-0.3088645339,
-0.2541129887,
-0.1149975359,
0.2546253204,
-0.3622247875,
0.2214076221,
0.3998951614,
-0.0263830256,
-0.0100293895,
-0.2857954502,
-0.1885298789,
0.0216892194,
-0.0395748354,
0.2764464319,
-0.3320566118,
0.3162095547,
0.0611448139,
0.4289125204,
0.2673665285,
0.0606609471,
0.2518680692,
-0.0188752227,
0.5700867176,
-0.1373772621,
-0.2471040934,
0.2332901955,
0.1218061671,
0.1690044552,
0.4192624688,
0.09579584,
0.0416794419,
-0.1682427973,
-0.2782531977,
-0.2658601105,
-0.0742130131,
-0.1315657794,
0.0776037648,
0.1407579482,
0.0602362268,
-0.0327449366,
-0.1133933961,
0.0034570291,
0.0785305649,
0.4961150885,
0.0602850951,
0.2374656349,
-0.6652284265,
-0.3082944453,
-0.2235592306,
0.0823252797,
0.0500143804,
0.1475542635,
-0.1960510164,
0.0823605359,
0.0098839486,
0.1115132421,
0.4417802989,
-0.170012638,
-0.0880179927,
-0.1247468144,
-0.0646504462,
-0.1139416844,
-0.0929533392,
-0.1008453965,
0.2908544838,
0.5494877696,
0.7155873179,
-0.3950731456,
-0.2245683521,
0.1473489553,
0.0269414429,
0.0172773376,
-0.2796008885,
-0.2274802029,
-0.130220294,
-0.1930677742,
0.03737,
0.2324789613,
0.1905123144,
0.0564833693,
0.0077909688,
0.2153469473,
0.0539748967,
0.1293185502,
0.2566177547,
0.3727653921,
0.1741946191,
0.2495166957,
0.1012099981,
0.2292176336,
0.5776634812,
0.7704752088,
-0.0148104914,
-0.4487679601,
0.0198232196,
-0.3560331762,
0.3420622647,
0.17497693,
0.05713493,
0.1281785667,
0.1141008511,
0.1159114987,
-0.3849574029,
0.0015186513,
0.1868233234,
0.0628431812,
-0.3189146519,
-0.0566164926,
0.373275578,
-0.0023257956,
0.0879084691,
0.1633207947,
0.3157937825,
-0.3510306478,
-0.0442155525,
-0.2099925876,
0.790024519,
0.3321490288,
0.0390292741,
-0.010544573,
-0.3009653687,
0.5891389847,
-0.3335653543,
-0.1475364864,
-0.1308133602,
-0.2977330983,
-0.0009726117,
0.0046766023,
0.1334765851,
0.0652576014,
-0.0885964856,
0.2705706656,
0.0569510162,
0.1611278206,
-0.1253409982,
0.1505915821,
-0.0634304956,
-0.2639858723,
-0.4116602242,
0.1504500508,
-0.1193225309,
0.3995607197,
-0.127231583,
-0.2939624488,
-0.2575971484,
-0.4743393362,
-0.3297377527,
0.0775064602,
-0.0306364,
0.0578723922,
0.424577266,
-0.0235939454,
0.1894036531,
-0.0743360594,
0.5635675788,
0.2291374058,
-0.3746676743,
0.2738150954,
-0.3299086988,
0.1164641827,
-0.1187604293,
0.061136812,
0.3113412261,
-0.2225160301,
-0.0971648693,
-0.0403153412,
-0.2386446446,
0.0662526339,
-0.2735412121,
-0.0672715157,
-0.6287527084,
0.1593897045,
-0.1023772135,
0.1144822463,
0.2045299709,
-0.3354284763,
0.1346748173,
0.3566689491,
-0.1668147743,
-0.155991599,
0.1223087087,
-0.1458065957,
-0.2943360507,
0.4091881216,
-0.0649015307,
-0.3508660197,
0.2302701473,
0.2205178589,
-0.162731126,
-0.1453750134,
0.1043112129,
0.3216434717,
-0.4105868638,
-0.0251917038,
0.0588183068,
0.0895611867,
-0.1843702644,
0.106858179,
0.1439840049,
-0.0924798548,
0.225807637,
-0.5110493302,
-0.3400794566,
0.2728289664,
-0.2996771634,
-0.1337763965,
0.1051040441,
0.1816126257,
0.1853517145,
0.1638638675,
-0.3463496566,
0.0165287219,
-0.1286512464,
-0.0375111513,
0.4320647717,
0.1294520646,
0.2505209744,
-0.199121654,
0.053307917,
-0.0707883164,
-0.092750296,
-0.0861438811,
-0.3264559209,
0.1129252762,
-0.0473599024,
0.2752314806,
0.2835216522,
0.0769091845,
0.0058548343,
-0.149484843,
0.1327071339,
0.0713350475,
0.0472989865,
0.3865475655,
-0.0060000247,
-0.020873636,
0.1189188585,
0.0146578336,
0.2993403077,
-0.04077968,
-0.0318630412,
0.079825446,
-0.2342115194,
0.0221133977,
0.1444566548,
-0.0393725708,
-0.3129689991,
0.0936418623,
0.2072430998,
-0.0699068606,
0.2103844434,
0.23298347,
0.2401497513,
-0.0374537036,
-0.2549634874,
0.3181156516,
0.27021873,
0.208915323,
-0.3490013778,
-0.2563429177,
0.2643752992,
0.2833018303,
-0.0188386329,
0.0336750336,
0.3663591444,
0.0477504991,
0.2204144895,
0.1987285763,
0.3185061514,
-0.0700753778,
0.1569637805,
0.1290914416,
-0.0325371698,
0.1083810553,
0.2680564821,
0.1818421185,
0.2624230385,
0.3137101829,
-0.1683362126,
0.3300522268,
0.1063137278,
-0.1310645938,
0.3275683224,
-0.2876777649,
-0.0308869984,
0.1065156311,
0.1677344739,
0.017240176,
-0.0303098895,
0.4524269402,
-0.0762042627,
-0.1546403766,
-0.1633358449,
0.2568469346,
-0.2763561308,
-0.1044380665,
0.0165461842,
-0.2222207338,
-0.1018038914,
-0.0971646011,
-0.035333693,
-0.0772919133,
0.251173377,
-0.0491902716,
0.0056858179,
-0.4204109609,
-0.1800728738,
0.2334012091,
0.160698086,
-0.3104561567,
0.2074462324,
0.2797964811,
-0.3987269998,
0.0231574755,
0.2046824247,
0.4403955936,
0.1027890518,
0.4060258865,
0.1541540623,
-0.1117920429,
-0.0725585148,
0.0252117552,
0.3852561712,
0.1913821399,
-0.2093117535,
0.0606598295,
0.1121761054,
-0.1707526743,
0.1888742298,
-0.0865017176,
0.1851038188,
-0.2293137163,
0.0108044548,
-0.4334694743,
-0.1068891957,
-0.1483212262,
0.0508411638,
-0.388050586,
-0.0212022215,
0.2759487033,
0.3257069886,
-0.0801228806,
-0.3447041214,
0.080809854,
0.094073385,
0.2906697989,
0.454782933,
-0.1871972531,
0.0397651456,
-0.3819750249,
-0.6043025255,
0.1345002204,
-0.1410902143,
0.0417902246,
-0.000696102,
0.0434674174,
0.2958082855,
-0.092637822,
0.2332066596,
0.0215232056,
0.0056203608,
-0.0721959695,
-0.4895460904,
-0.196060136,
-0.1499584168,
-0.0541430153,
0.1658876687,
0.2071987689,
0.1457411647,
0.0632682368,
-0.0203404184,
-0.3660803437,
0.2568998337,
-0.2019892782,
-0.1571641713,
0.2986477613,
0.2008789629,
0.4105628431,
-0.2839682102,
-0.3371954262,
-0.1485179961,
-0.3546048999,
0.0495457873,
0.4591661394,
-0.0394186229,
0.5634371638,
-0.2258884013,
-0.3948478699,
-0.2977180779,
0.2830793262,
-0.0095070368,
-0.209064126,
-0.3746061921,
0.4427291751,
-0.1715676337,
0.0849503279,
0.2060965896,
0.1651952267,
-0.0162848532,
-0.0730733424,
-0.1793826073,
-0.4153210521,
0.4122984409,
-0.3080168962,
-0.1143424287,
-0.1508445442,
0.2103747874,
0.0931509957,
-0.312032342,
-0.6579822898,
0.1301379204,
0.3454618454,
0.1567940563,
-0.1378491521,
0.0828646645,
-0.2027975321,
-0.021789467,
-0.0688247457,
0.2957906425,
0.2764258683,
-0.2811371684,
0.2681334019,
-0.2938846648
] |
https://github.com/huggingface/datasets/issues/3308 | "dataset_infos.json" missing for chr_en and mc4 | No problem. I am trying to do some analysis on the metadata of all available datasets. Is reading `metadata_infos.json` for each dataset the correct way to go?
I noticed that the same information is also available as special variables inside .py file of each dataset. So, I was wondering if `metadata_infos.json` has been deprecated?

| ## Describe the bug
In the repository, every dataset has its metadata in a file called`dataset_infos.json`. But, this file is missing for two datasets: `chr_en` and `mc4`.
## Steps to reproduce the bug
Check [chr_en](https://github.com/huggingface/datasets/tree/master/datasets/chr_en) and [mc4](https://github.com/huggingface/datasets/tree/master/datasets/mc4) | 55 | "dataset_infos.json" missing for chr_en and mc4
## Describe the bug
In the repository, every dataset has its metadata in a file called`dataset_infos.json`. But, this file is missing for two datasets: `chr_en` and `mc4`.
## Steps to reproduce the bug
Check [chr_en](https://github.com/huggingface/datasets/tree/master/datasets/chr_en) and [mc4](https://github.com/huggingface/datasets/tree/master/datasets/mc4)
No problem. I am trying to do some analysis on the metadata of all available datasets. Is reading `metadata_infos.json` for each dataset the correct way to go?
I noticed that the same information is also available as special variables inside .py file of each dataset. So, I was wondering if `metadata_infos.json` has been deprecated?

| [
0.2620973885,
-0.1249730512,
-0.1152999774,
0.4680540562,
0.0923609883,
0.1910523921,
0.0018954643,
0.2054129988,
-0.4593905509,
-0.0279044807,
-0.0281205755,
0.2110625207,
-0.1727291644,
-0.1559252888,
-0.1255878359,
0.0337350182,
0.2851157486,
0.0156849157,
0.1599001139,
-0.0855102986,
-0.2001863569,
0.3976736665,
-0.1283580661,
0.0855578706,
-0.061144162,
0.1830403507,
-0.2063980103,
-0.0442913026,
-0.15906021,
-0.4312532246,
0.235359177,
0.0398008302,
-0.1587903351,
0.2825771868,
-0.0001251126,
0.0179121438,
0.5310442448,
-0.113199383,
-0.3600984812,
-0.1971809417,
-0.1917228103,
-0.1516066343,
0.1934332699,
-0.1082562804,
-0.0064328345,
-0.2723473907,
-0.0451867394,
-0.3405557275,
-0.1059947088,
0.1045562625,
0.1024095342,
0.2527146041,
0.149894163,
0.0529036485,
0.3177397251,
0.6667824388,
-0.0130155263,
0.3299393952,
0.2802714705,
0.1628188193,
0.1691501737,
0.524482131,
0.1133878753,
0.0098665319,
0.4061582685,
0.0413054079,
0.0279081091,
-0.1611446738,
0.0385947973,
0.1137314364,
0.628185451,
-0.3180727065,
-0.6205503941,
-0.5171121359,
0.0421822518,
-0.1521088183,
0.1280653924,
0.228985399,
-0.220025748,
0.2265117019,
-0.1356837898,
-0.4401711524,
-0.0817164108,
0.171513617,
-0.0654916242,
0.4547347426,
-0.3320718706,
-0.0106925741,
0.0212471914,
-0.2276614904,
-0.2065889686,
-0.214169696,
-0.2002339065,
0.0740265995,
0.0194052029,
-0.1642445773,
0.1506363004,
-0.157479763,
0.3973383009,
0.2982671857,
-0.1552038938,
0.0142412055,
-0.4449212849,
0.1157402769,
0.5169010162,
-0.361848861,
0.2781921625,
0.1576845795,
0.4728693962,
-0.0293368828,
0.2413963974,
-0.076502867,
-0.0284861885,
0.1892189831,
-0.2269598246,
0.1307041496,
0.6962182522,
-0.3675426543,
-0.1355883181,
-0.0761678889,
-0.2798677087,
-0.4119054973,
-0.0627919585,
0.1697812378,
-0.1782139689,
0.1502874047,
-0.1597203314,
0.1952347904,
0.0888099372,
-0.1005081683,
-0.0876296163,
0.0836945251,
-0.0328967124,
0.0625369027,
0.0426958576,
-0.2426286191,
0.4524252415,
-0.0822954103,
0.234055534,
-0.2049575895,
-0.2488936037,
-0.0214337762,
0.0001368259,
0.4044773579,
-0.4001956284,
0.1185117364,
-0.0291416831,
0.1280533671,
-0.3230256438,
-0.0837714225,
-0.4856924713,
-0.3798882067,
-0.142720595,
0.0162611958,
-0.1413747966,
0.2141552269,
-0.4166167676,
0.2911399007,
0.066853486,
-0.1321335584,
0.303827554,
0.1542170942,
0.1118594036,
-0.3002677262,
0.0085795242,
0.5118291974,
-0.0537630878,
-0.2376081944,
0.1803427488,
-0.2361477911,
-0.0797796845,
0.1556488276,
-0.415384084,
-0.1338284463,
-0.4417451322,
-0.122756891,
0.0690643266,
-0.6692342758,
0.1083242223,
0.372620523,
0.2508389354,
0.1618166417,
0.1560869366,
-0.1157508865,
-0.2510971427,
-0.0705219582,
0.0475727916,
-0.1593423188,
0.1504765749,
-0.1640531123,
0.0610953011,
-0.2129563242,
0.097479783,
0.152343452,
0.064307563,
-0.0347952992,
0.2287400812,
0.1414570957,
0.4197343588,
0.0584721901,
0.0298484676,
0.7357286215,
0.2928809226,
0.1050538793,
0.1197196543,
-0.2456135154,
-0.4680992961,
0.1146323606,
0.1614962071,
-0.0197073724,
-0.3958984017,
-0.3824357688,
0.2775464654,
0.0394545905,
-0.0877647772,
-0.1406677514,
0.0110388566,
0.2245683372,
0.2000223398,
0.23114191,
-0.3343209624,
0.1732723862,
-0.1360769421,
0.2504481673,
-0.3837609589,
0.2933644056,
0.0711525679,
0.1327926517,
0.1786882877,
0.208908543,
0.0978738293,
-0.2458707094,
0.0504463352,
0.3593581021,
0.0906974226,
0.1442939788,
0.0086991461,
0.500424087,
0.4378517568,
-0.2424943,
0.1204488352,
0.0581670254,
0.1423220783,
-0.1385436803,
-0.3602181673,
0.3074885607,
0.2514769137,
0.1070790589,
0.3296177983,
-0.209849596,
0.105343543,
0.2566894591,
-0.4987868071,
-0.1778765619,
-0.0268711206,
-0.1746723652,
0.2450785041,
-0.021668978,
-0.4503362179,
0.0492837541,
0.4989846051,
-0.0814204812,
0.0144136874,
0.1777867973,
-0.1786667705,
-0.0681176782,
0.0934236869,
-0.0152564803,
0.6174107194,
0.0934222564,
0.2012538165,
0.0468402132,
0.2973654866,
-0.1294169575,
0.1444323361,
0.3667337,
0.1319390088,
0.056148909,
0.2394863814,
-0.017335102,
-0.1348873377,
-0.2219816297,
-0.1347406954,
0.160416469,
-0.2291047424,
0.2417924106,
-0.4512480497,
-0.3341362774,
-0.03560872,
-0.3057709336,
-0.5319719315,
-0.2984518707,
-0.2369557321,
-0.1162810028,
0.0021459504,
0.0409863107,
-0.1628409922,
0.1497613788,
-0.1716261357,
0.0342648886,
-0.3090720177,
-0.0230852365,
-0.0023278601,
-0.1156634986,
0.0679865256,
-0.0645964965,
0.0593398921,
-0.2022433132,
0.0673339292,
-0.4856490493,
-0.4524098039,
0.2845436335,
-0.0867382213,
0.0310208797,
0.3519078493,
-0.1099473462,
0.1494416595,
-0.0035051913,
0.0994458944,
-0.1475159228,
-0.2540701628,
-0.0845153555,
-0.0062658442,
-0.1104638129,
-0.2938988209,
-0.134600848,
-0.4714289904,
-0.1523194015,
0.4943175912,
-0.0069416356,
-0.0166135579,
0.4826887846,
-0.2995292544,
-0.0523027331,
-0.3712850809,
0.114136897,
-0.0537950695,
-0.4564823508,
0.0999687761,
-0.1567225754,
-0.0857933313,
0.2020002455,
0.3132756948,
0.2445063144,
-0.1075057089,
-0.3546914756,
-0.2441357821,
0.1118780896,
0.2759060562,
-0.3212594986,
0.0514586568,
0.2771969438,
0.0263225213,
0.2069663405,
-0.0632970408,
-0.2209656835,
-0.100232631,
-0.1999515444,
0.1400150657,
0.0582145415,
0.2952195108,
0.1928817034,
0.2937467396,
0.2225006819,
0.0840210393,
-0.0231545996,
-0.0824159682,
0.5923116207,
0.2202927023,
-0.199092254,
0.0527463034,
-0.1435521692,
0.0442743637,
0.1448711902,
0.1720126122,
0.0021099919,
-0.2522569299,
-0.0684580952,
-0.4109891057,
-0.0725438148,
-0.2776401043,
-0.0156114427,
0.1634651423,
0.0892953575,
0.2009961456,
-0.11758966,
-0.0201177225,
0.1153555736,
0.7202650905,
0.2063820809,
0.0408915877,
-0.5452537537,
-0.2039055973,
-0.1558527648,
0.1298969537,
-0.0746281445,
0.3980659544,
0.0236129407,
0.1247760952,
0.0592233725,
-0.2190455347,
0.2068775892,
0.0511508919,
-0.0098885754,
0.2385985851,
-0.0225307625,
-0.0559967235,
-0.2314698547,
-0.1782583296,
0.2984746993,
0.4763892591,
0.7797604799,
-0.3180673122,
-0.4996955693,
0.3425771594,
-0.1176653206,
-0.0110955499,
-0.2378403544,
-0.30946666,
-0.1359651238,
0.0865334198,
-0.1308920383,
0.116394408,
-0.0071755797,
0.0019178679,
0.1032837555,
0.2341472656,
-0.0301684942,
0.2731892467,
0.1213867217,
0.1551185101,
0.0337180421,
0.1004988924,
0.1583350003,
0.0671369508,
0.7611010075,
0.6404342651,
0.109369956,
-0.4346428812,
0.061149735,
-0.2297359258,
0.5101359487,
0.3053733706,
-0.269505918,
0.3110761642,
-0.0106636602,
-0.005174547,
-0.4788011014,
-0.1999131292,
0.3405103981,
-0.1038677469,
-0.3445065618,
-0.3150371313,
0.5648631454,
0.1352788359,
-0.0598581396,
0.0511569045,
0.2139803469,
-0.2920596302,
-0.1712673157,
-0.1243310794,
0.7352285981,
0.3284091949,
0.0734734312,
0.0943811163,
-0.264497757,
0.4632286727,
-0.4971750677,
0.0242377389,
-0.2651522756,
-0.0183081068,
-0.0512896925,
-0.1387104988,
0.4330312908,
0.1084201857,
0.0601366051,
0.3025307655,
0.0202283524,
0.2669470906,
-0.2155036628,
0.1270871758,
-0.1076169387,
0.0561054945,
-0.3816931248,
0.0695322901,
-0.1725700945,
0.4775745869,
-0.020363152,
-0.2616158128,
-0.236166507,
-0.215215072,
-0.5050367713,
-0.0266930256,
0.1980375648,
0.1814303249,
0.3335433006,
-0.0334547721,
0.0698463544,
-0.2302143574,
0.5409447551,
0.2555337548,
-0.3046875894,
0.1197603196,
-0.400236398,
-0.0161850564,
-0.129795,
0.2732646465,
0.1022453606,
0.000418291,
-0.1369439512,
0.2202603668,
-0.2452510744,
-0.2962170243,
-0.2965421081,
0.0169721302,
-0.3057908416,
0.1260429323,
-0.0841950923,
0.174043715,
0.1491024345,
-0.223097682,
-0.0017809733,
0.5192872286,
-0.1155295223,
-0.0530459732,
-0.1474210918,
-0.0586839207,
-0.2003005594,
0.2782106996,
0.0326430313,
-0.3696366549,
0.0557267331,
0.0653485879,
-0.1701294184,
-0.0301023312,
0.2681458294,
0.0794107541,
-0.1690193266,
-0.079362385,
0.0758116022,
0.3237250745,
-0.1071291193,
0.000267838,
0.2290992886,
-0.2093905807,
0.0593132563,
-0.5168052912,
-0.1934562773,
0.43819803,
-0.3364016712,
0.02125974,
-0.0108479168,
-0.0435653552,
0.0545495078,
-0.0258838814,
-0.1697151363,
0.1211489439,
0.055581145,
-0.2199409455,
0.4481060803,
0.0684882775,
0.1469546556,
-0.105510287,
-0.0344791189,
-0.1644144058,
-0.0924846455,
0.1027051359,
-0.0955546349,
0.223566696,
0.054419931,
0.2021989524,
0.1838609129,
-0.179084599,
-0.1388030797,
-0.0155704739,
0.1346118748,
0.2957223952,
0.1454218775,
0.5978708863,
0.0408153683,
-0.01783414,
0.1208817437,
0.2296871394,
0.3002162874,
0.2647588551,
0.0718060657,
0.3107699156,
-0.1809017807,
0.0095956754,
-0.2536801994,
0.1906192303,
-0.4190395772,
0.0123284459,
0.3985180259,
-0.2043352872,
0.3126244247,
0.0638783351,
0.2197347283,
0.5508998036,
-0.0727652609,
0.3816196024,
0.1714088172,
-0.0097672231,
-0.211249873,
-0.3671880364,
0.2006272376,
0.4919358194,
-0.134843424,
0.2351553291,
0.4128594697,
0.0987830013,
0.1803040057,
0.1258495897,
0.5869378448,
-0.0133736748,
0.062439274,
0.31549716,
0.2203697413,
-0.0504035726,
0.3113971949,
0.4509549141,
0.4185648561,
0.4565993845,
-0.0571741462,
0.2789823413,
0.1461013705,
-0.2166820765,
0.1822760105,
-0.3674078882,
-0.0895423964,
0.2427325398,
-0.0048659174,
0.1043313816,
-0.0902153403,
0.3191350102,
-0.0500130802,
-0.1114270687,
-0.164904356,
0.175683111,
-0.0660585836,
-0.3344301581,
0.1576896757,
-0.1923598647,
0.091486834,
-0.0842233822,
-0.0464385562,
-0.1937715262,
0.1211064085,
-0.1256684661,
0.0929478034,
-0.170880571,
0.0518098362,
0.0790124759,
0.2703847587,
-0.1728846729,
0.1068018228,
0.1274586171,
-0.087413229,
0.1894205362,
0.2118755877,
0.4029127061,
0.0325292088,
0.2554261386,
-0.0600024126,
-0.3678928018,
-0.0786174014,
0.1805630773,
0.3626787663,
0.1107972935,
-0.1422204375,
0.1291505396,
0.020241214,
0.0574653558,
0.2327838689,
-0.0103098564,
0.1023635194,
-0.618727386,
0.1618421972,
-0.408883512,
-0.1575876623,
0.0871008933,
0.1475585997,
-0.4820158482,
-0.4170601666,
0.420355022,
0.463578403,
0.0824996904,
-0.0119368127,
0.0093181944,
0.1115189791,
0.0423373207,
0.524209857,
-0.1027705371,
0.2084984034,
-0.2348320484,
-0.6246674657,
-0.0649827644,
0.0207070094,
-0.1156776771,
0.0854803398,
0.0717904568,
0.3407319188,
0.0563396886,
-0.0084850807,
-0.1349069178,
-0.0113325296,
-0.1357586086,
-0.4032661915,
-0.2300430685,
-0.2164478302,
-0.0281611364,
-0.0275721978,
0.0280490536,
0.0693522245,
-0.107182391,
-0.1920823902,
-0.414362371,
0.3315914869,
0.0133741433,
0.0214348882,
0.30116117,
0.0506955497,
0.2181418538,
0.0523970239,
-0.4671573937,
-0.2277246714,
-0.2548302114,
0.2564820945,
0.5719381571,
-0.1876922995,
0.4304620922,
-0.351972729,
-0.2234183103,
-0.2660478652,
0.1712100357,
-0.0964312702,
-0.331654042,
-0.3058353364,
0.4277644455,
-0.1735078394,
0.0167358033,
0.2730232477,
0.0955816507,
-0.084984988,
0.0141724478,
-0.2340133041,
-0.0681816041,
0.4452174008,
-0.3046569228,
-0.1223639473,
-0.0673868135,
0.2434082329,
-0.0611833967,
-0.2283504009,
-0.7964141369,
0.0088047963,
0.5533655882,
0.0522600748,
-0.1260059923,
-0.0430645645,
-0.1502169669,
-0.3289572895,
-0.1938061118,
0.1272483915,
-0.0012114194,
-0.2507058978,
0.1469369531,
-0.1967838705
] |
https://github.com/huggingface/datasets/issues/3308 | "dataset_infos.json" missing for chr_en and mc4 | The `dataset_infos.json` files have more information and are made to be used to analyze the datasets without having to run/parse the python scripts. Moreover some datasets on the Hugging face don't even have a python script, and for those ones we'll make tools to generate the JSON file automatically :) | ## Describe the bug
In the repository, every dataset has its metadata in a file called`dataset_infos.json`. But, this file is missing for two datasets: `chr_en` and `mc4`.
## Steps to reproduce the bug
Check [chr_en](https://github.com/huggingface/datasets/tree/master/datasets/chr_en) and [mc4](https://github.com/huggingface/datasets/tree/master/datasets/mc4) | 50 | "dataset_infos.json" missing for chr_en and mc4
## Describe the bug
In the repository, every dataset has its metadata in a file called`dataset_infos.json`. But, this file is missing for two datasets: `chr_en` and `mc4`.
## Steps to reproduce the bug
Check [chr_en](https://github.com/huggingface/datasets/tree/master/datasets/chr_en) and [mc4](https://github.com/huggingface/datasets/tree/master/datasets/mc4)
The `dataset_infos.json` files have more information and are made to be used to analyze the datasets without having to run/parse the python scripts. Moreover some datasets on the Hugging face don't even have a python script, and for those ones we'll make tools to generate the JSON file automatically :) | [
0.1424958259,
-0.3361807764,
-0.0471009165,
0.2993091345,
0.1907495558,
0.1461185366,
-0.0039605163,
0.2632821798,
-0.1192552075,
0.2591179013,
0.0356880352,
0.2333019227,
-0.0015295641,
0.1996409744,
0.0464101322,
-0.1968249679,
0.0915271938,
0.1346552968,
-0.0754049793,
-0.1017007902,
-0.1049375534,
0.4699756205,
0.0858602896,
-0.1786591709,
-0.3154149354,
0.0590284839,
-0.2107365131,
0.3361920416,
-0.0846948028,
-0.4393533766,
0.2027551234,
0.0034779403,
-0.1666437685,
0.2816445231,
-0.000106106,
-0.0060725096,
0.2696448863,
-0.0739201829,
-0.2553723454,
-0.2630664706,
0.0844729021,
-0.2256422341,
0.1437514275,
-0.1313947588,
-0.3203609884,
-0.1809981614,
0.0131729953,
-0.0993703306,
0.3814764023,
0.1023474336,
0.2819656134,
0.4294536114,
0.1330996305,
-0.2865592241,
0.1538780928,
0.4924038947,
-0.109361209,
0.1926050186,
0.0343287587,
0.0349540077,
0.0583286397,
0.5477879047,
0.3045516908,
-0.1641931683,
0.4170655012,
0.1234891117,
-0.1169151738,
-0.3034310639,
0.1149613559,
0.218361333,
0.3157054484,
-0.1759996563,
-0.350782454,
-0.3925176859,
-0.0190139804,
-0.0398296565,
0.2799795866,
0.2793487608,
-0.0127173951,
0.1991524398,
-0.260671109,
-0.081017442,
-0.0259158779,
0.0872217268,
0.1355640441,
0.0180541631,
-0.2172511369,
-0.027837541,
0.1450440586,
-0.256357491,
-0.4451674521,
0.0202325191,
-0.1696131527,
0.2132694125,
-0.0400005132,
-0.0967125297,
0.2374953628,
0.0845441893,
0.2250194848,
0.2796195447,
-0.1669894457,
-0.1321932524,
-0.1913730204,
0.0772250369,
0.2441520393,
-0.0601672381,
0.1747709066,
0.059622325,
0.3752615154,
0.2290588468,
0.1380756348,
-0.1329687685,
0.1391643435,
0.1297979653,
-0.1109471545,
-0.0088157821,
0.3034059405,
-0.1638903916,
-0.164965719,
0.1461029053,
-0.0308199581,
-0.0852246657,
-0.0393372178,
0.4535028636,
-0.1288313121,
-0.0464146696,
0.0771616846,
0.1292579025,
-0.0297959521,
-0.1345248222,
-0.3170726597,
0.218215242,
-0.1258867532,
0.0233714115,
0.2030951679,
-0.2486212403,
0.6153911948,
0.041725114,
0.2700638175,
-0.0830800012,
-0.1232194304,
0.2275481075,
-0.0449868627,
0.4646535218,
0.0088390671,
0.1197037548,
0.0400103666,
-0.0047548711,
-0.155844152,
-0.1206337363,
-0.3666447401,
-0.1110195369,
-0.1176160797,
0.2285212725,
-0.1689121425,
0.0989280194,
-0.245490998,
0.081454508,
-0.11451599,
-0.0856053159,
0.1747501642,
0.1252716631,
-0.1111764014,
-0.2524936199,
0.2494177073,
0.4359768927,
0.1716011912,
-0.3153612018,
0.1363249868,
-0.2063258737,
-0.0503522381,
0.2774619162,
-0.1221927181,
-0.165611282,
-0.4960055053,
0.0561899506,
-0.0617436096,
-0.4715715051,
-0.1198730022,
0.1386396289,
-0.130143553,
0.2527420521,
0.1399469376,
-0.0771146044,
-0.3010393679,
0.0806060955,
0.0142829316,
0.0412416272,
0.051004,
0.1577792466,
-0.1199480146,
-0.0448390655,
-0.0532649457,
0.1276278198,
-0.0439840555,
0.047415711,
0.201830402,
-0.1060444638,
0.2538097501,
-0.1004454643,
0.0638586953,
0.5631518364,
0.3067397475,
0.0713963732,
0.1317303032,
-0.1302058697,
-0.5370298028,
0.1643484682,
-0.0479242541,
0.2292905152,
-0.2705382407,
-0.3090184629,
-0.1379105598,
-0.0791641176,
-0.0730598196,
-0.5198671818,
0.1604949385,
0.1695913374,
0.1093208492,
0.2328283638,
-0.1283532083,
0.3243947625,
-0.0686607957,
0.2717541158,
-0.5003330708,
0.3355045617,
-0.0482041799,
-0.0248575564,
0.2090598792,
0.2361001372,
0.1704808325,
-0.2055143416,
-0.0627889559,
0.3651062846,
-0.0526082888,
0.3440017104,
-0.003584564,
0.1942671388,
0.2356307656,
-0.2958718836,
-0.1164617389,
0.0781711787,
0.048129335,
-0.0431900918,
-0.3058306575,
0.3658819795,
0.0232939143,
0.0796916336,
0.2937782407,
0.0950076059,
0.1761129349,
-0.0257315896,
-0.223358497,
-0.2430232018,
0.2614964843,
-0.0503083691,
0.3055373728,
-0.0354001559,
-0.6104288697,
0.2276849151,
0.5597066879,
-0.0000484334,
0.0330539569,
0.1441431493,
-0.1216791347,
-0.0502263419,
0.0947211236,
0.013016481,
0.3824593425,
0.220369488,
0.0513976216,
0.3452109396,
0.1740456969,
-0.1263324469,
0.1750158072,
-0.0163136963,
0.0321521685,
-0.035776902,
0.3045381308,
0.0294898227,
-0.321933955,
-0.1235160157,
-0.3826142848,
0.0731778443,
-0.3074984252,
0.0887141526,
-0.3216539621,
-0.1796951443,
-0.1393228918,
-0.221784234,
-0.4913485944,
-0.2273420691,
0.0481725112,
-0.00198126,
-0.2723238766,
0.0200437624,
-0.0047662868,
0.1845979244,
-0.1147755012,
0.2305108607,
-0.3864362538,
-0.0345270112,
-0.0390563905,
0.0528208353,
0.0423914157,
-0.0209298618,
0.2206418365,
-0.5669705272,
0.1162261739,
-0.3870072961,
-0.5942267179,
0.2708294094,
-0.235127002,
0.0948631987,
0.3736968935,
0.1556429267,
-0.0747883022,
-0.2025937289,
0.2638013661,
-0.251044929,
-0.4778465331,
-0.0682634562,
0.0389677547,
-0.1756722927,
-0.3727266788,
-0.3033909798,
-0.1065030769,
-0.2798737586,
0.6854407191,
-0.0130736427,
0.0814103261,
0.3911245167,
-0.2414184064,
0.1032520309,
-0.4235674143,
0.2506529391,
-0.1690108329,
-0.5865361691,
0.1989887506,
-0.5061447024,
-0.4614356458,
0.183116436,
0.1565694064,
0.1493282616,
-0.3004017472,
-0.3457941711,
-0.3192751706,
-0.2514827251,
0.2404765338,
-0.2481623888,
0.173403874,
0.267646879,
-0.0704103708,
-0.0813819841,
-0.3022874296,
-0.2336362302,
0.0820613727,
-0.0327842161,
0.0322819501,
-0.3306877613,
0.3886479735,
-0.0050533963,
0.2981333733,
0.2393922806,
0.0501120351,
0.247726649,
-0.1638700962,
0.6179239154,
-0.1866843253,
-0.3309558034,
0.169597432,
0.1775666475,
0.1398990601,
0.3473703861,
0.0965945274,
0.1197891235,
-0.2630628347,
-0.3082802892,
-0.2423063368,
-0.1241728738,
-0.2840002179,
0.2346452028,
0.0335878357,
0.0279064905,
0.0414479561,
-0.0102850292,
0.0537522286,
0.140740633,
0.5132210851,
0.1755140573,
0.1875167042,
-0.5803595185,
-0.2098620385,
-0.376309067,
0.0730933696,
-0.0569011606,
0.0262204967,
-0.152630657,
-0.0903271362,
0.031482026,
-0.0007821256,
0.5578318834,
0.0222981833,
0.023161063,
-0.1616132855,
-0.2865054905,
-0.2344225049,
-0.0217608269,
-0.0700416788,
0.1087141261,
0.3990343511,
0.6954741478,
-0.2787535787,
-0.3096908331,
0.2762257755,
0.0216788016,
-0.0154922111,
-0.202322647,
-0.343375355,
-0.2559010088,
-0.1225955188,
0.0340080447,
0.224633649,
0.1389667988,
-0.0081209801,
0.0191609487,
0.1602358222,
-0.0732558519,
0.0539379492,
0.3480270207,
0.3356033862,
-0.0022239964,
0.280393362,
0.2519356906,
0.2776210606,
0.4289751351,
0.8371366858,
-0.0339641385,
-0.4799681306,
0.0090925479,
-0.155612275,
0.2762206495,
0.2182538509,
-0.0537408777,
0.0325623192,
0.0438836291,
0.3220149279,
-0.359541893,
-0.0227352325,
0.2136485428,
0.0553771667,
-0.1681776792,
-0.1504227519,
0.3446768522,
-0.0773384571,
0.1238240302,
-0.0443787128,
0.4454682469,
-0.21649459,
0.019264821,
-0.1579264998,
0.7803648114,
0.2799540162,
0.1388207972,
0.2341477126,
-0.2958509028,
0.517893672,
-0.2061064094,
-0.0833914354,
-0.2093757391,
-0.3139956594,
0.0125392703,
-0.0005638314,
0.0829922184,
-0.0886452124,
-0.0258768089,
0.2602835298,
0.0323647894,
0.0765264258,
-0.1884049922,
0.2603085339,
-0.0669318214,
-0.1627900898,
-0.4220930338,
0.1807920039,
0.0144551722,
0.4514785409,
-0.0552013926,
-0.2324891835,
-0.205448091,
-0.444535315,
-0.1654572487,
0.1586459726,
-0.0148924133,
0.0139918691,
0.4325183928,
-0.0430408418,
0.0938328356,
0.0609078556,
0.4835085869,
0.2226582766,
-0.3132068217,
0.2293032706,
-0.3204055429,
0.0159586892,
-0.1390296519,
0.1215866879,
0.2628646195,
-0.2646039426,
-0.1123347729,
-0.1496284157,
-0.1452922225,
0.0654715598,
-0.2765262723,
0.0315936245,
-0.6600933075,
0.0477220342,
-0.1050554961,
-0.0575201139,
0.1828871965,
-0.2948880196,
0.1610946059,
0.2454770058,
-0.086018391,
-0.2893959582,
0.2537726462,
-0.279094547,
-0.2713336349,
0.3952866197,
-0.2046227902,
-0.1933173239,
0.266685158,
0.1680324972,
-0.15519768,
-0.1951291263,
0.0233662408,
0.4778145552,
-0.3488048315,
0.1051049009,
0.0159546249,
0.0734466314,
-0.1130237803,
0.2144357413,
0.0909054503,
-0.1913742125,
0.2240988016,
-0.4921650589,
-0.3857304752,
0.3054611087,
-0.2056602687,
-0.0325450785,
0.2039781362,
0.1593929976,
0.1693029702,
0.0710823238,
-0.4097501338,
-0.0040907147,
-0.1560808569,
-0.1505283117,
0.3529542387,
-0.0722323507,
0.3877953589,
-0.0837791413,
0.1407833695,
0.0303422567,
-0.2088561058,
-0.1517658532,
-0.2986662388,
0.0895304531,
-0.0996100903,
0.136532709,
0.1893390417,
0.1793116182,
-0.0671599954,
-0.160561651,
0.2763796449,
0.1230547428,
0.1398720741,
0.3298844695,
-0.0781186,
-0.0733314008,
0.1140057743,
0.0069959443,
0.1866731793,
-0.0682673752,
-0.0904839188,
-0.011466071,
-0.3827296197,
-0.0146010369,
0.2730407119,
0.0217058789,
-0.2266450375,
0.1400760114,
0.2579677701,
-0.0142246857,
0.0283734538,
0.0344385915,
0.3259713054,
0.0785122737,
-0.1968184561,
0.2491613925,
0.1738005728,
0.2351491153,
-0.3623125553,
-0.1483472288,
0.2977281511,
0.276216954,
0.1057339013,
0.1992933452,
0.2442320883,
0.0480234474,
0.059125945,
0.1868584156,
0.5156991482,
-0.0307373889,
0.0987260789,
0.1319065094,
-0.0575402007,
0.0505123511,
0.265874505,
0.2162436694,
0.3331035972,
0.264536351,
-0.1907952279,
0.3166839778,
-0.0089657027,
-0.0405702405,
0.3554950953,
-0.2426855564,
-0.0400870666,
0.0036035816,
0.0401232205,
0.0339547768,
-0.032885015,
0.4767708778,
-0.076910302,
-0.1169596985,
-0.1965153217,
0.3649603724,
-0.2629780471,
-0.1098708138,
0.0985528901,
-0.258287102,
-0.1255087107,
-0.0265911445,
0.0336708538,
-0.1838653088,
0.2227647603,
-0.065187864,
0.0391034484,
-0.2109190673,
-0.1947577447,
0.137393415,
0.2595913708,
-0.2410338819,
0.1373913288,
0.3467743695,
-0.3244531453,
0.0992321447,
0.1906928867,
0.5181170106,
0.0872778818,
0.2863638401,
0.1379891336,
-0.0374626257,
-0.1564951837,
-0.024814859,
0.2895637751,
0.0141698653,
-0.0882151499,
0.13823466,
0.1868051887,
-0.2274749875,
0.1190309823,
-0.1421824396,
0.2966620624,
-0.3028598428,
0.1005753577,
-0.4759503007,
-0.1408780068,
-0.1863828599,
0.0192340985,
-0.374951005,
-0.1402751356,
0.1288908273,
0.25321576,
-0.0079047121,
-0.3100047708,
0.1262705773,
0.0142912436,
0.4351421297,
0.4315031767,
-0.1202747151,
0.0975682959,
-0.2948061228,
-0.5276817679,
0.10542842,
0.0163348354,
-0.0587192252,
0.1097105518,
-0.005753811,
0.0798679218,
-0.1178255752,
0.2933398485,
0.0596247539,
0.007793704,
-0.1199827194,
-0.3680549264,
-0.1080179885,
-0.2014409304,
-0.1640540063,
0.228433758,
0.1854206026,
0.1097019762,
-0.0103067439,
0.0467988849,
-0.2210790813,
0.3301306367,
-0.2624945641,
-0.1991593093,
0.2126055509,
0.2012063563,
0.2986792326,
-0.2145846486,
-0.385277003,
-0.1105491966,
-0.2999134064,
-0.0214127768,
0.4388041496,
-0.0375538208,
0.5324211121,
-0.1566294283,
-0.4282567799,
-0.3385930061,
0.3199651539,
0.0592872165,
-0.1930423081,
-0.2662933469,
0.4129142761,
-0.1390131414,
0.1051695421,
0.2264946997,
0.2477057278,
-0.0808673054,
-0.0746387467,
-0.1928981543,
-0.4374338984,
0.6249935627,
-0.402282238,
-0.0661992058,
-0.0952592716,
0.2050005347,
0.0860749185,
-0.3290237486,
-0.5791945457,
0.0979300365,
0.2341238856,
0.1164495125,
-0.2330673188,
0.0876501128,
-0.2723295689,
-0.0590684004,
-0.015179079,
0.3719719052,
0.2932944,
-0.2310617715,
0.2665656507,
-0.2884835303
] |
https://github.com/huggingface/datasets/issues/3304 | Dataset object has no attribute `to_tf_dataset` | The issue is due to the older version of transformers and datasets. It has been resolved by upgrading their versions.
```
# upgrade transformers and datasets to latest versions
!pip install --upgrade transformers
!pip install --upgrade datasets
```
Regards! | I am following HuggingFace Course. I am at Fine-tuning a model.
Link: https://huggingface.co/course/chapter3/2?fw=tf
I use tokenize_function and `map` as mentioned in the course to process data.
`# define a tokenize function`
`def Tokenize_function(example):`
` return tokenizer(example['sentence'], truncation=True)`
`# tokenize entire data`
`tokenized_data = raw_data.map(Tokenize_function, batched=True)`
I get Dataset object at this point. When I try converting this to a TF dataset object as mentioned in the course, it throws the following error.
`# convert to TF dataset`
`train_data = tokenized_data["train"].to_tf_dataset( `
` columns = ['attention_mask', 'input_ids', 'token_type_ids'], `
` label_cols = ['label'], `
` shuffle = True, `
` collate_fn = data_collator, `
` batch_size = 8 `
`)`
Output:
`---------------------------------------------------------------------------`
`AttributeError Traceback (most recent call last)`
`/tmp/ipykernel_42/103099799.py in <module>`
` 1 # convert to TF dataset`
`----> 2 train_data = tokenized_data["train"].to_tf_dataset( \`
` 3 columns = ['attention_mask', 'input_ids', 'token_type_ids'], \`
` 4 label_cols = ['label'], \`
` 5 shuffle = True, \`
`AttributeError: 'Dataset' object has no attribute 'to_tf_dataset'`
When I look for `dir(tokenized_data["train"])`, there is no method or attribute in the name of `to_tf_dataset`.
Why do I get this error? And how to clear this?
Please help me. | 39 | Dataset object has no attribute `to_tf_dataset`
I am following HuggingFace Course. I am at Fine-tuning a model.
Link: https://huggingface.co/course/chapter3/2?fw=tf
I use tokenize_function and `map` as mentioned in the course to process data.
`# define a tokenize function`
`def Tokenize_function(example):`
` return tokenizer(example['sentence'], truncation=True)`
`# tokenize entire data`
`tokenized_data = raw_data.map(Tokenize_function, batched=True)`
I get Dataset object at this point. When I try converting this to a TF dataset object as mentioned in the course, it throws the following error.
`# convert to TF dataset`
`train_data = tokenized_data["train"].to_tf_dataset( `
` columns = ['attention_mask', 'input_ids', 'token_type_ids'], `
` label_cols = ['label'], `
` shuffle = True, `
` collate_fn = data_collator, `
` batch_size = 8 `
`)`
Output:
`---------------------------------------------------------------------------`
`AttributeError Traceback (most recent call last)`
`/tmp/ipykernel_42/103099799.py in <module>`
` 1 # convert to TF dataset`
`----> 2 train_data = tokenized_data["train"].to_tf_dataset( \`
` 3 columns = ['attention_mask', 'input_ids', 'token_type_ids'], \`
` 4 label_cols = ['label'], \`
` 5 shuffle = True, \`
`AttributeError: 'Dataset' object has no attribute 'to_tf_dataset'`
When I look for `dir(tokenized_data["train"])`, there is no method or attribute in the name of `to_tf_dataset`.
Why do I get this error? And how to clear this?
Please help me.
The issue is due to the older version of transformers and datasets. It has been resolved by upgrading their versions.
```
# upgrade transformers and datasets to latest versions
!pip install --upgrade transformers
!pip install --upgrade datasets
```
Regards! | [
-0.2293262035,
-0.0800562575,
0.0744439662,
0.1120376214,
0.6455809474,
0.2319770604,
0.1128883958,
0.2750467956,
-0.1273372471,
-0.0271429773,
-0.0409887768,
0.3272254467,
-0.3555476069,
0.3133002818,
0.173726812,
-0.2345678806,
0.1084550396,
0.0091280574,
-0.0873258784,
-0.0865574628,
-0.1162516922,
0.2614681423,
-0.068284072,
0.1360446215,
-0.4334417284,
-0.0992011577,
-0.016056044,
-0.308876574,
-0.1251864433,
-0.1724086702,
-0.0023635544,
-0.0347180665,
0.0345966704,
0.532907486,
-0.0001182142,
0.1845368445,
-0.1499794424,
-0.0263901092,
-0.0873746499,
-0.3173582554,
0.0251591336,
0.0267482139,
-0.1025344282,
-0.0619110242,
-0.1931450218,
-0.1696663946,
0.0341837183,
-0.0892672837,
0.2019152045,
0.4334090054,
0.1723872721,
0.3354494274,
0.3696627915,
0.0544139929,
-0.0428953655,
0.2692401707,
-0.1672407091,
0.1209967583,
-0.2285321802,
-0.2061606795,
0.3004025519,
0.1148083583,
0.0519636683,
-0.0057908315,
0.5629857183,
0.0233252123,
-0.1906665117,
-0.2989127338,
0.0094887288,
0.103206858,
0.2847783864,
-0.3382240534,
-0.4468052685,
-0.1033146977,
0.0883328021,
-0.0842738301,
-0.1897836328,
-0.1489566565,
0.0705453232,
0.1788672358,
-0.368465513,
-0.2368640453,
0.007489644,
0.1028250977,
-0.2789250612,
0.1730368435,
-0.1957015395,
0.1920982599,
-0.102073282,
-0.2049427181,
-0.5331300497,
0.0139093092,
0.0900308937,
0.3128388226,
-0.2858851254,
-0.212165907,
0.130050227,
-0.0943847895,
0.2533923388,
0.1559845954,
-0.1198950186,
-0.1171696633,
0.137619853,
0.0272276141,
-0.0451921597,
0.2059893608,
0.0173397586,
0.3120799959,
-0.2308117747,
-0.2683056593,
-0.3433366716,
-0.261176765,
-0.1681507677,
0.0170143209,
0.0185821932,
0.0384052992,
0.415969342,
0.0772092715,
-0.1363941282,
0.0688802004,
-0.2693957388,
0.0515271649,
-0.0109576872,
0.2210064679,
0.1345487982,
-0.0888343379,
-0.0228532311,
0.0503996089,
-0.0957752019,
-0.1939897686,
-0.2568035424,
0.0496061966,
-0.0163119137,
-0.0801968724,
-0.1525158286,
-0.1180927828,
0.0851841047,
-0.045672603,
0.1774117649,
0.0609520413,
0.0888318643,
-0.2155874074,
0.2996958196,
0.2359924167,
-0.1855131537,
0.2814009786,
0.4470246434,
-0.2328770012,
-0.2273545414,
-0.0959083214,
-0.4306269586,
-0.3704136908,
-0.281008929,
0.1334068328,
-0.1303569078,
-0.178753525,
-0.3799805939,
0.2853477895,
0.1515898556,
-0.1230422705,
0.0168739296,
-0.2900515199,
-0.4458045661,
-0.1477543116,
0.295681715,
0.379124999,
-0.2593315542,
-0.1402348578,
0.2020434588,
-0.1679739654,
0.0248435494,
0.0932269692,
0.1293508261,
0.4940904975,
-0.2435207963,
0.3543473482,
0.1212717071,
-0.2747250497,
-0.2544972897,
0.1811424196,
-0.2912669778,
0.0536268316,
-0.4289423227,
-0.1962472945,
0.2268232107,
-0.0404199027,
0.2778677642,
-0.0186853595,
-0.1386891007,
-0.0216597877,
-0.1110367924,
0.0307733975,
0.4620267153,
-0.2987313867,
-0.166442737,
0.2338288575,
-0.1596329659,
0.031720411,
-0.1366700679,
0.0800406784,
-0.001558232,
0.1126619652,
0.4320296049,
0.1128694266,
-0.1210551336,
-0.1972585917,
-0.1744859517,
0.0523061678,
0.6149033308,
0.2625882328,
-0.0553573109,
-0.1569518745,
-0.278698802,
0.1726815253,
-0.1202714369,
-0.2238597721,
0.0722861886,
-0.0434457436,
-0.0271867216,
0.2130498439,
-0.2445943207,
0.0355140045,
-0.1892383248,
0.1691903919,
-0.0280130487,
0.1719611585,
0.0871774554,
-0.1274136603,
-0.0312051345,
0.1592686623,
0.087785475,
-0.0205100812,
-0.0890098885,
0.2926641405,
0.0208744891,
-0.1042533889,
-0.1383145899,
0.4566975534,
0.1143923476,
-0.1799506992,
-0.5014653206,
-0.0513195768,
0.1898581535,
0.0168277062,
0.2308362126,
0.25213328,
0.3509411216,
0.2248947024,
0.1154348627,
0.2282951772,
-0.0370225422,
0.1305233538,
-0.0511289462,
-0.2564206719,
-0.0242879428,
-0.2934698462,
0.0516375415,
-0.0266232193,
-0.1577283889,
0.239172101,
0.5992741585,
-0.1008340269,
0.0263006929,
0.1606060266,
-0.2859293818,
0.0416294374,
0.0707364678,
0.2018863559,
0.3395394683,
0.1078305617,
-0.074349083,
-0.0160985645,
0.036327228,
0.3117972314,
0.1702324897,
-0.1002088636,
0.1712636948,
0.0786942765,
-0.101999253,
0.261533469,
-0.0969508588,
-0.3979199529,
0.0376943871,
0.5381566882,
-0.6530123353,
-0.1409337223,
-0.1507136673,
0.0415226854,
0.1054505408,
-0.0661405399,
-0.2123907954,
-0.4202544093,
-0.1619811803,
0.0063579674,
0.1500335038,
0.0670666024,
-0.3246255219,
0.0240376852,
0.165075168,
-0.1674222946,
-0.170380637,
-0.1963184327,
-0.2080311328,
-0.0067505408,
0.1711167842,
-0.1235587597,
0.1453471631,
-0.3283055723,
0.160804227,
-0.1800063103,
-0.441221267,
0.30334571,
-0.3880033195,
0.3335457742,
0.2092026323,
0.3714905083,
-0.4037845433,
-0.1171283573,
0.4053277075,
-0.3179013431,
-0.3682285547,
0.242765218,
0.0025503871,
-0.3134342134,
-0.0145391719,
-0.0550511517,
-0.1681717634,
-0.0528058223,
0.2039961219,
-0.1619164199,
0.0684747919,
0.4156086445,
0.161346361,
0.2640888691,
-0.2871159017,
-0.0478685722,
-0.1791812778,
-0.4011688232,
0.4648634493,
-0.3192688525,
-0.4173934758,
0.006362671,
0.1448965222,
0.0808490515,
0.0198490825,
-0.2945607901,
-0.2246269882,
-0.1476173103,
0.1118727997,
-0.1932276785,
-0.0793005005,
0.2335635573,
0.1140254512,
-0.0753257051,
-0.0915051401,
-0.3336330354,
0.128623426,
-0.0078600254,
0.0266864542,
-0.120047003,
0.3507544398,
0.226793617,
0.6952539086,
0.0209526997,
-0.2776004076,
0.1097612903,
-0.6389492154,
0.1539799124,
-0.1108513996,
-0.6453257203,
0.3058803082,
-0.0983917341,
0.0715975314,
0.1830412596,
-0.105599843,
0.4240206778,
0.0548792072,
0.0293164346,
-0.1553726345,
-0.3877214789,
-0.0405838341,
-0.069846347,
0.3185558021,
-0.0206566453,
0.049782943,
-0.3950723112,
-0.113916494,
0.2787217498,
0.3362692893,
0.2479371876,
0.2197848111,
-0.6356935501,
-0.1089704335,
-0.5784281492,
0.292716831,
0.0322371349,
0.5474889278,
-0.1727641225,
-0.116897285,
-0.0953649282,
0.1765534729,
0.7762383223,
0.0312690027,
0.0655277222,
0.0381929204,
-0.1423065513,
-0.2706384063,
0.1632022858,
-0.0921775624,
0.401953429,
0.01604986,
0.6377260685,
-0.1448619217,
-0.428176105,
0.0064358977,
-0.0153238652,
-0.1348003298,
0.2019915432,
-0.2125137597,
-0.2285232842,
-0.2626680732,
-0.1051483899,
0.2691271901,
0.2462778538,
0.3919821084,
0.1111996025,
-0.361169517,
-0.2408778965,
0.5431054831,
0.0008585253,
0.1889060736,
0.3502467573,
0.0525967628,
0.069402419,
0.0062150806,
0.3368285298,
0.0595629029,
-0.0633004233,
-0.4831040204,
0.0262832344,
0.2751844525,
0.4774962962,
-0.099430576,
-0.1966898441,
0.0719081461,
-0.1527972221,
0.2380695939,
-0.2888943553,
0.3571857214,
0.4226700068,
0.1305629611,
-0.4845699668,
-0.1793531328,
0.0305314716,
0.0002706403,
0.2559046149,
0.1591122299,
0.6125193238,
-0.1050654948,
0.2427388579,
0.1592738926,
0.935965538,
-0.1674965471,
0.0713273883,
0.2822941542,
-0.007241515,
0.5354685187,
-0.1937250197,
0.0384043045,
-0.1164945662,
-0.3329978585,
-0.0835319608,
0.0375938229,
0.1669140607,
0.2390470952,
0.013433476,
0.0560855195,
0.0413489752,
0.3612532914,
0.2264273614,
0.2583848834,
0.1124508828,
-0.0603637658,
-0.0269134548,
0.1580412388,
-0.1194416434,
0.4561332166,
0.1054126397,
-0.0751733333,
-0.135754481,
0.0364427827,
-0.2465918958,
-0.2451976389,
-0.4600925446,
0.0217925794,
0.2577928901,
-0.1476012617,
0.3256694376,
0.0383573994,
0.0460809954,
0.179225713,
-0.2641203701,
0.0089329574,
-0.1632569581,
0.0918396786,
-0.0673885942,
-0.1471596956,
0.5779262185,
0.0665810853,
-0.0679016635,
-0.007193123,
0.0767765939,
-0.0261316467,
0.0374967046,
-0.3128314018,
0.1035603881,
-0.4774745405,
-0.2303787917,
0.1180025116,
0.2217175961,
-0.0176559146,
0.0639982298,
-0.2085568607,
-0.2109261006,
-0.1219503507,
0.0776155889,
-0.2979884446,
0.0777944475,
0.3533915281,
-0.4285672605,
0.0872000679,
0.5535282493,
-0.050596647,
0.000628887,
-0.1161494106,
0.3125221729,
0.5194656253,
-0.4918960631,
0.2109208107,
0.010880528,
0.444840163,
-0.0799013749,
0.2097297758,
-0.0162682142,
-0.1478899121,
0.1064913869,
-0.3855439425,
-0.5000584722,
0.0227012411,
-0.0446291082,
0.0340419635,
0.0053598541,
0.6716352105,
-0.0663890019,
0.1198619306,
-0.3137305677,
-0.0916702896,
-0.1419641376,
0.0277130976,
0.2632125318,
-0.006929785,
0.1192216724,
-0.25013116,
0.1242376566,
0.0565739572,
0.0080148242,
-0.1837141365,
-0.2717595994,
0.162795946,
0.206790328,
-0.0738161057,
0.0949418545,
0.1564377546,
-0.2707033455,
-0.2153846622,
0.0140468311,
0.3547063172,
-0.1876252443,
0.3886853456,
0.1366281658,
0.1126903519,
-0.0754234567,
-0.2907107174,
0.2778284848,
0.1307960749,
0.2433926314,
0.0977149904,
-0.0033737884,
0.1360448301,
-0.1025042534,
0.180647999,
0.0365082398,
-0.247762844,
0.2610174119,
-0.1060252264,
0.0546978265,
0.0670926273,
-0.0379416645,
0.0477637984,
-0.2493946105,
-0.0292829592,
0.4399527311,
0.1186801717,
-0.2035201639,
0.2785142362,
0.4146143198,
-0.1956319809,
-0.0845872685,
-0.0268750377,
-0.26198259,
0.390404582,
-0.271494031,
0.033636108,
0.2199032754,
0.0388206653,
0.1407240927,
0.3593274057,
-0.1036082953,
0.2461723387,
0.19033885,
0.1625802219,
0.0500490554,
0.1910991222,
-0.0205127299,
0.2870125175,
-0.0922804698,
0.1429810673,
0.2876188457,
-0.4569848478,
0.0851387531,
0.1379238218,
0.1452100426,
0.2213633806,
-0.1732285619,
0.4037027657,
-0.0468661338,
-0.3101199865,
0.3032742441,
0.5697342753,
-0.1454818845,
-0.0634809658,
-0.020648798,
0.0282107592,
-0.1906457096,
-0.1684399098,
-0.1555228382,
-0.3877182305,
0.0069375276,
0.0752489269,
-0.0916533023,
-0.3091173172,
-0.3314406872,
0.1348936111,
0.2808573544,
-0.0273217168,
0.1039228961,
-0.1314258724,
-0.0038768041,
0.1026450023,
0.5000641346,
0.3986137509,
0.2150043696,
0.0586776212,
0.1742709875,
-0.0019900757,
-0.1387833208,
0.2043582201,
0.3265999258,
-0.1494724452,
-0.1023336872,
0.1132046655,
0.0195863489,
0.0061464659,
-0.2772144973,
-0.0425869972,
0.0741173178,
-0.1079163477,
0.527287364,
-0.1595056504,
-0.1164494529,
-0.1670023054,
0.1574112326,
-0.21311903,
-0.0480539985,
0.4270713925,
0.0133039467,
0.1078914031,
-0.270403266,
0.0538351759,
0.102913864,
0.2473572642,
0.5020462871,
0.0407695137,
-0.3427138627,
-0.0891706944,
-0.4245226085,
0.0942407325,
0.1383175254,
-0.0474698693,
-0.0260643698,
-0.123763226,
0.0779018998,
0.0666913539,
-0.0038151513,
-0.0373890623,
-0.2664249837,
0.311702013,
0.0588724501,
-0.1098046899,
-0.7312345505,
0.1966857314,
0.1845259666,
0.0291474964,
0.0745343491,
0.0462847315,
-0.0006794326,
-0.3156246543,
0.0990782157,
-0.0718787834,
-0.2315365523,
0.3813505769,
0.2329047024,
0.3923431635,
-0.0184485354,
0.1790888458,
0.1465365291,
0.1434986889,
-0.402284503,
0.4069003463,
-0.1385023445,
-0.0327325128,
0.1314093471,
-0.3231923282,
-0.1367646456,
-0.0805853382,
0.2757536769,
-0.0915428028,
-0.448359102,
0.4270206988,
-0.0916879401,
-0.1133503616,
0.205668509,
0.4166452289,
-0.0269471109,
0.3457524478,
-0.3870358467,
-0.3064311743,
0.5461068749,
-0.6123086214,
-0.2515884638,
0.1026578173,
0.0122738462,
0.2056040466,
-0.3973098099,
-0.6618757844,
-0.1347418725,
0.3900668621,
0.0487119146,
-0.0704308972,
0.340256989,
-0.2010795325,
0.1894570291,
-0.0003057951,
0.8013878465,
-0.0368626602,
-0.0160532463,
0.2352054119,
0.0916662291
] |
https://github.com/huggingface/datasets/issues/3303 | DataCollatorWithPadding: TypeError |
>
> Input:
>
> ```
> tokenizer = AutoTokenizer.from_pretrained(checkpoint)
> data_collator = DataCollatorWithPadding(tokenizer=tokenizer, return_tensors="tf")
> ```
>
> Output:
>
> ```
> TypeError Traceback (most recent call last)
> /tmp/ipykernel_42/1563280798.py in <module>
> 1 checkpoint = 'bert-base-uncased'
> 2 tokenizer = AutoTokenizer.from_pretrained(checkpoint)
> ----> 3 data_collator = DataCollatorWithPadding(tokenizer=tokenizer, return_tensors="pt")
> TypeError: __init__() got an unexpected keyword argument 'return_tensors'
> ```
>
The issue is due to the older version of transformers and datasets. It has been resolved by upgrading their versions.
`# upgrade transformers and datasets to latest versions`
`!pip install --upgrade transformers`
`!pip install --upgrade datasets`
Cheers! | Hi,
I am following the HuggingFace course. I am now at Fine-tuning [https://huggingface.co/course/chapter3/3?fw=tf](https://huggingface.co/course/chapter3/3?fw=tf). When I set up `DataCollatorWithPadding` as following I got an error while trying to reproduce the course code in Kaggle. This error occurs with either a CPU-only-device or a GPU-device.
Input:
```checkpoint = 'bert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
data_collator = DataCollatorWithPadding(tokenizer=tokenizer, return_tensors="tf")
```
Output:
```---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/tmp/ipykernel_42/1563280798.py in <module>
1 checkpoint = 'bert-base-uncased'
2 tokenizer = AutoTokenizer.from_pretrained(checkpoint)
----> 3 data_collator = DataCollatorWithPadding(tokenizer=tokenizer, return_tensors="pt")
TypeError: __init__() got an unexpected keyword argument 'return_tensors'
```
When I call `help` method, it too confirms that there is no argument `return_tensors`.
Input:
```
help(DataCollatorWithPadding.__init__)
```
Output:
```
Help on function __init__ in module transformers.data.data_collator:
__init__(self, tokenizer: transformers.tokenization_utils_base.PreTrainedTokenizerBase, padding: Union[bool, str, transformers.file_utils.PaddingStrategy] = True, max_length: Union[int, NoneType] = None, pad_to_multiple_of: Union[int, NoneType] = None) -> None
```
But, the source file *[Data Collator - docs](https://huggingface.co/transformers/main_classes/data_collator.html#datacollatorwithpadding)* says that there is such an argument. By default, it returns Pytorch tensors while I need TF tensors.
Where do I miss?
Please help me. | 100 | DataCollatorWithPadding: TypeError
Hi,
I am following the HuggingFace course. I am now at Fine-tuning [https://huggingface.co/course/chapter3/3?fw=tf](https://huggingface.co/course/chapter3/3?fw=tf). When I set up `DataCollatorWithPadding` as following I got an error while trying to reproduce the course code in Kaggle. This error occurs with either a CPU-only-device or a GPU-device.
Input:
```checkpoint = 'bert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
data_collator = DataCollatorWithPadding(tokenizer=tokenizer, return_tensors="tf")
```
Output:
```---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/tmp/ipykernel_42/1563280798.py in <module>
1 checkpoint = 'bert-base-uncased'
2 tokenizer = AutoTokenizer.from_pretrained(checkpoint)
----> 3 data_collator = DataCollatorWithPadding(tokenizer=tokenizer, return_tensors="pt")
TypeError: __init__() got an unexpected keyword argument 'return_tensors'
```
When I call `help` method, it too confirms that there is no argument `return_tensors`.
Input:
```
help(DataCollatorWithPadding.__init__)
```
Output:
```
Help on function __init__ in module transformers.data.data_collator:
__init__(self, tokenizer: transformers.tokenization_utils_base.PreTrainedTokenizerBase, padding: Union[bool, str, transformers.file_utils.PaddingStrategy] = True, max_length: Union[int, NoneType] = None, pad_to_multiple_of: Union[int, NoneType] = None) -> None
```
But, the source file *[Data Collator - docs](https://huggingface.co/transformers/main_classes/data_collator.html#datacollatorwithpadding)* says that there is such an argument. By default, it returns Pytorch tensors while I need TF tensors.
Where do I miss?
Please help me.
>
> Input:
>
> ```
> tokenizer = AutoTokenizer.from_pretrained(checkpoint)
> data_collator = DataCollatorWithPadding(tokenizer=tokenizer, return_tensors="tf")
> ```
>
> Output:
>
> ```
> TypeError Traceback (most recent call last)
> /tmp/ipykernel_42/1563280798.py in <module>
> 1 checkpoint = 'bert-base-uncased'
> 2 tokenizer = AutoTokenizer.from_pretrained(checkpoint)
> ----> 3 data_collator = DataCollatorWithPadding(tokenizer=tokenizer, return_tensors="pt")
> TypeError: __init__() got an unexpected keyword argument 'return_tensors'
> ```
>
The issue is due to the older version of transformers and datasets. It has been resolved by upgrading their versions.
`# upgrade transformers and datasets to latest versions`
`!pip install --upgrade transformers`
`!pip install --upgrade datasets`
Cheers! | [
0.0907466263,
-0.4077562094,
0.1217752174,
0.270572722,
0.399409622,
-0.1075448394,
0.3337470293,
0.2486715019,
-0.1562586725,
0.2049702853,
0.2183446139,
0.3773719668,
-0.1649317741,
0.1004556492,
-0.1292618066,
-0.246628508,
0.0724818334,
0.0992895141,
0.1067004874,
0.0274561085,
-0.1963100433,
0.2782024741,
-0.2563393414,
0.2940042019,
-0.4043157995,
-0.2832672,
0.0291371308,
-0.0872016102,
-0.0918927491,
-0.3554832637,
0.6174436212,
-0.188017115,
0.1952745169,
0.4655009806,
-0.0001232006,
0.0219990574,
0.1548156291,
-0.0510113947,
-0.0005346898,
0.0242755059,
0.440867722,
-0.0512314253,
0.0462748036,
-0.1565996259,
-0.1620861292,
-0.0035305389,
-0.2143930048,
0.0604214109,
0.558939755,
0.0414036401,
0.0911951736,
0.4949115813,
0.3962153494,
-0.0242936034,
-0.2705121934,
0.0034561553,
-0.1884236932,
0.2029719055,
0.1705468595,
-0.1687115729,
-0.0908138305,
0.1691511571,
0.0730624124,
-0.2814805508,
0.2705873847,
0.0964560062,
-0.3587113917,
-0.1768666357,
0.0322370157,
0.170357883,
0.3395695686,
-0.202943325,
-0.2085594088,
-0.4422969818,
0.0018387998,
0.0259853192,
0.3307409585,
-0.2059249133,
-0.4334164262,
-0.1711999178,
0.3541637659,
-0.1798383147,
-0.1218739823,
0.0467560627,
-0.1096844152,
0.3732097447,
-0.1727917045,
0.2091676593,
0.5126459002,
-0.1786213666,
-0.036049217,
0.0573122017,
0.3166139126,
0.3954916298,
-0.4223137796,
-0.3555786908,
0.0694395304,
-0.1636394709,
0.2097500563,
-0.1103914157,
0.1213408038,
-0.1288149804,
-0.0467257686,
0.1158412397,
0.1694358587,
0.3452315927,
0.2024917752,
0.1099786162,
0.1299539357,
0.1982384026,
0.278226167,
-0.2000220418,
-0.176692754,
-0.1543032229,
-0.0320666283,
-0.0421525948,
0.3779712021,
0.1100234315,
-0.1728263497,
-0.0064492491,
-0.1040927321,
0.0047323392,
-0.0478627309,
0.0970588028,
0.1122909337,
0.1333644092,
0.0384092443,
0.2623336613,
-0.0415549167,
-0.436365068,
-0.0969944671,
0.1700253636,
-0.1081814617,
0.0220607556,
-0.0003296079,
-0.1697547436,
0.0228502788,
0.2122536749,
0.3435996771,
0.0270417556,
-0.0242442656,
-0.0410793051,
-0.1517506838,
0.018910462,
-0.0570109151,
0.2212553322,
0.4395182133,
-0.3044878542,
-0.1533144712,
-0.1707792878,
-0.1489655375,
-0.2225078195,
-0.052010756,
0.0528022312,
0.0311573427,
-0.0890254676,
-0.423609525,
-0.0007559274,
0.4312829673,
-0.0400344916,
0.2274615169,
-0.0489529409,
0.1177733392,
-0.1909471303,
0.3168325424,
0.0691466555,
-0.24206236,
-0.3666189611,
-0.1178285107,
0.0137533927,
0.174419418,
0.4926893115,
-0.0867657289,
0.3146857321,
-0.329952836,
0.4854137301,
0.1965159625,
-0.4147769809,
-0.2897127867,
-0.0101735815,
-0.2051525712,
0.3168305755,
0.1806303412,
-0.311773628,
-0.0127949053,
0.1428424269,
0.18904154,
0.0790219828,
-0.190408051,
-0.0412070677,
-0.2551424503,
-0.1776948571,
0.6569881439,
0.0506027825,
0.1034616977,
0.0953819901,
-0.3824129701,
-0.0275841244,
0.1264632493,
-0.2209610343,
0.0087066609,
0.0319965929,
0.5663700104,
-0.1201406494,
0.0381580628,
0.1109019071,
-0.2424646765,
0.2036467195,
-0.1018570289,
0.2965624928,
-0.2458742708,
-0.2670748532,
-0.0842830539,
-0.0200710315,
-0.0400599428,
-0.3060690761,
0.0539812557,
-0.1549267173,
-0.1098371893,
0.0587448701,
-0.2268818021,
0.2349148989,
-0.0377192274,
0.3077705204,
-0.5516867042,
0.2547191083,
-0.1629538685,
-0.2400726676,
-0.1153527051,
0.1413487792,
0.2757761776,
-0.1646275073,
0.1821270734,
0.2024708241,
0.1198843643,
-0.0909275636,
-0.1581203789,
0.0244049858,
0.2112480402,
0.0059128739,
-0.4189532399,
0.0884561539,
0.064465493,
-0.1387279779,
0.4610746801,
0.6577062011,
0.1968320459,
0.2693300545,
-0.0706146881,
0.1529618949,
-0.0222526435,
0.0845628083,
-0.0093535576,
-0.0112246722,
0.169756934,
-0.3432087302,
0.3537116349,
-0.1991813928,
-0.2465912402,
-0.0964339972,
0.1527038068,
0.1610876918,
0.1404459625,
0.1483606696,
-0.0512009934,
-0.0225993171,
0.0682333261,
-0.3446061611,
0.2346529812,
-0.1055288166,
-0.2142850161,
0.1483989507,
-0.004788171,
-0.0758214071,
0.1342954189,
-0.0190485884,
-0.0054082093,
0.0477563068,
-0.1936972439,
0.2035297453,
-0.1643397063,
-0.1636388302,
-0.1068776399,
0.081619598,
-0.3217677772,
-0.0965908319,
-0.0752199218,
-0.3869909346,
-0.1305368096,
-0.11326617,
-0.4660361707,
-0.3192459047,
-0.1947764456,
0.1532655507,
0.0426862352,
0.2449622601,
0.2691885531,
0.6432508826,
0.1048963442,
0.0732061863,
-0.3248146772,
-0.2492858618,
-0.0805522501,
0.0139379241,
-0.1452998966,
-0.4239327013,
0.1055454463,
0.0519246683,
0.1372316778,
-0.0792299509,
-0.5207666159,
0.196749717,
-0.2193226814,
-0.083080411,
0.4242626131,
0.461063534,
-0.0797445178,
-0.673623085,
0.2233549058,
-0.1556911916,
-0.4157527983,
0.0293013081,
0.0810561255,
0.1730966419,
-0.0889957398,
0.2385455966,
-0.0645734668,
-0.2157790512,
0.3046573102,
-0.0546249598,
-0.2164396346,
0.0252493452,
0.024426667,
0.3068298995,
-0.0687968433,
0.0303840525,
-0.2571358681,
-0.1018220559,
0.2019557953,
0.0502390787,
-0.1549560577,
-0.1677276045,
-0.0627882481,
0.6279932261,
-0.2523978651,
-0.2657255232,
-0.3213008344,
-0.2551426589,
0.6211445332,
-0.2957863212,
0.2346429527,
0.218551293,
0.0044611376,
0.1288349777,
-0.0113765169,
-0.2497563511,
0.0866263434,
-0.0520949997,
0.1164827868,
-0.0024960823,
0.2689452469,
0.2244748175,
0.778062582,
0.2794657648,
-0.1199751645,
0.1822378039,
0.0604961254,
0.2687678337,
-0.0489407703,
-0.3533352017,
0.0842080712,
-0.0678712726,
0.0031165066,
-0.045025114,
-0.2374252528,
0.0854029059,
-0.2126556933,
-0.3462086022,
-0.0196555723,
-0.4299483895,
0.0561406612,
0.1394337863,
-0.0057582036,
-0.2130803615,
0.2232084572,
-0.1919587106,
0.1206946746,
0.3076992333,
0.3280953169,
0.1786123663,
-0.0816647112,
-0.2396969944,
-0.4212084115,
-0.6294116378,
0.2311067432,
0.0250541978,
0.3712744415,
-0.0443464592,
-0.1449893117,
0.033625979,
0.115995273,
0.7549407482,
0.1470723748,
-0.2791751027,
-0.0254883729,
-0.422625035,
-0.1437582374,
-0.087241523,
-0.0672995001,
-0.3492155969,
0.2215440571,
0.497420907,
-0.5513872504,
0.0829534605,
-0.3008811772,
-0.1092851087,
0.0018008851,
0.1568479985,
-0.2493546307,
-0.3876949549,
-0.2483949959,
0.2050798237,
0.1491021514,
0.3430169821,
0.1934638917,
0.5362880826,
-0.0105427271,
-0.3222863972,
-0.0130715715,
0.095433943,
0.0926724225,
-0.2958958745,
-0.0377116017,
0.1591726243,
-0.0248104818,
0.2429331243,
0.2088246197,
0.1948346496,
-0.7646281123,
-0.0005400967,
-0.0165308267,
0.3238658905,
0.2932482064,
-0.1457892656,
0.687086463,
0.0629150718,
0.087470457,
-0.3346993625,
0.146401763,
0.3924053013,
0.0837060064,
-0.3429115713,
-0.0958982781,
0.3542912602,
0.0818753839,
0.0682960078,
0.5084445477,
0.5426674485,
-0.3071073592,
0.3090921044,
0.1645624042,
0.9911664724,
0.278717339,
0.3655509651,
0.4588853717,
-0.1666001081,
0.7348276973,
-0.060315948,
0.0824372098,
-0.2089400738,
-0.418964684,
-0.1205102131,
-0.0344756842,
0.192853421,
-0.1954792291,
-0.4373590052,
-0.005834369,
-0.3979066312,
0.4619167447,
0.0770542398,
-0.0036902304,
-0.0583841987,
-0.1319780797,
-0.359062463,
-0.0424115658,
-0.1394263655,
0.3052075505,
-0.1262494326,
-0.1414210945,
0.0443784855,
-0.3598128259,
-0.3560241163,
-0.0922980905,
-0.3288885951,
0.1492131799,
0.7501134276,
-0.1801895797,
0.4522432983,
0.1913276017,
0.8269422054,
0.0392662808,
-0.2250926942,
0.068686828,
-0.0630125254,
-0.0163974725,
-0.0553628355,
-0.0237480327,
0.3713460863,
0.0598686226,
0.0547919758,
0.3431890309,
-0.0524429046,
-0.2808701396,
-0.2463846356,
-0.0235673934,
-0.5204839706,
-0.5347989202,
-0.0033603206,
-0.0010736214,
0.0897133574,
-0.2465543002,
-0.0044029513,
0.1328347772,
-0.2577242553,
-0.3613589108,
0.3302639127,
-0.1282959133,
-0.0394916609,
0.3940960169,
0.0741389766,
-0.3311496675,
0.5316456556,
0.0443321057,
-0.2108438611,
0.0105460789,
0.068988435,
0.7634471059,
-0.4126882255,
0.2052034289,
0.0164376311,
-0.1166302785,
-0.1611372828,
0.3419239521,
0.4009962082,
0.082499072,
-0.0189019218,
-0.0615254864,
-0.4540667236,
0.1927184016,
-0.1877705902,
-0.034630619,
0.1924093962,
0.5374540687,
-0.1147093922,
-0.0041926648,
-0.2055751383,
-0.0517847463,
-0.2345737815,
-0.05085513,
0.1201196089,
-0.2539322376,
-0.0059192809,
0.1995821148,
-0.0106268702,
0.3625774384,
-0.0330482535,
0.0044395523,
-0.3391445279,
0.1664742529,
0.2551544011,
-0.1999307871,
0.1681866199,
0.0992941111,
-0.0333091728,
-0.1738281846,
0.2607985437,
-0.0603012033,
0.0443332121,
0.3135591745,
-0.1996525824,
0.3994303048,
-0.423258096,
-0.0164116826,
-0.0472105742,
0.076574184,
0.3535860479,
0.0611958243,
-0.2441532761,
0.066675432,
0.1644287854,
0.3762447536,
0.119468078,
-0.1796633601,
0.1440006793,
-0.2786542773,
-0.0721056983,
-0.3363129199,
0.1120082811,
0.0864745602,
-0.3741234243,
-0.0453228168,
0.3375864923,
0.047686927,
-0.0515896231,
-0.1777190864,
0.0725795701,
-0.004143612,
0.0952153876,
0.3529762924,
-0.0192889702,
-0.0187736712,
0.107711181,
-0.0981082618,
0.522775948,
-0.1196338907,
0.322753638,
0.3677529097,
-0.205629006,
0.0964867473,
0.2662522495,
0.4331195354,
0.1812239736,
-0.0600018762,
-0.3329381347,
0.157031104,
-0.3183580041,
-0.1483884901,
0.2308096439,
-0.3717336357,
-0.090338245,
0.4665747881,
-0.2085076869,
0.0822024345,
-0.1276336163,
0.2792213559,
-0.2335278392,
-0.1359725744,
-0.0036105982,
0.0859780833,
-0.3561019599,
0.0274132509,
-0.0066102422,
-0.1260983795,
-0.3255430758,
-0.119083181,
0.0306187812,
-0.1929362416,
-0.0163872167,
-0.1776249558,
-0.089305602,
0.0648133904,
-0.0113760894,
0.1756048203,
0.3324853182,
-0.1696454287,
0.0640251338,
0.0691677406,
-0.1654606164,
-0.0663616434,
0.1270712018,
0.6384822726,
0.2373655587,
-0.1278538704,
0.2022467554,
-0.0600358248,
0.0487706847,
0.0761821568,
0.204434365,
0.2641129792,
0.1712564826,
0.2494168729,
0.0550627373,
-0.1264451593,
-0.1055604517,
-0.0250296332,
0.2850327194,
-0.2726088166,
-0.0401862673,
-0.5884950161,
-0.1264002919,
-0.1159950197,
0.1705621928,
-0.1317146569,
0.3570602536,
-0.0054280641,
0.2033507824,
-0.0190479755,
-0.0426427983,
0.0236878153,
0.0559463166,
0.4713174999,
0.5115926266,
-0.0841773301,
-0.1491285264,
-0.3376418352,
-0.1348954439,
0.2217453271,
0.2126969993,
-0.1792102754,
0.1005488262,
-0.071368292,
0.2328832746,
0.0216900818,
0.1003068984,
-0.1059437543,
0.0775827542,
-0.0728023946,
0.0410525724,
-0.238952592,
0.0315524079,
-0.2199939191,
0.0171224289,
0.1456888765,
0.1364048272,
0.0456172898,
0.0531765744,
-0.0188226327,
0.0716903061,
-0.1304973066,
-0.1460887641,
0.0573065281,
0.2087680101,
0.500443995,
-0.0458757207,
-0.0757117867,
0.1328605413,
-0.1350257695,
-0.3247207999,
-0.0339784697,
-0.0187312402,
0.3675746322,
0.1176917627,
-0.178896293,
-0.4809047282,
0.5495641232,
0.4431680143,
-0.2161997408,
-0.2468279898,
0.4737795889,
-0.0155203687,
-0.3245880604,
0.3716294169,
0.2142333388,
0.0142147196,
0.1044540852,
-0.2699837089,
-0.4127740562,
0.5534679294,
-0.2941609621,
-0.2818842232,
-0.1696605235,
0.033802826,
-0.0171321183,
-0.2489347011,
-0.7203691602,
-0.2051275223,
0.0666336343,
-0.051842466,
-0.4098239243,
-0.0111415358,
0.0587597191,
0.0291716065,
0.0142744482,
0.261816144,
0.154531464,
0.0891347304,
0.2595494688,
-0.2831253111
] |
https://github.com/huggingface/datasets/issues/3300 | ❓ Dataset loading script from Hugging Face Hub | Hi ! In the next version of `datasets`, your train and test splits will be correctly separated (changes from #3027) if you create a dataset repository with only your CSV files.
Also it seems that you overwrite the `data_files` and `data_dir` arguments in your code, when you instantiate the AGNewsConfig objects. Those parameters are not necessary since you already know which files you want to load.
You can find an example on how to specify which file the dataset has to download in this [example script](https://huggingface.co/datasets/lhoestq/custom_squad/blob/main/custom_squad.py#L101-L107):
```python
_URLS = {
"train": "train-v1.1.json", # you can use a URL or a relative path from the python script to your file in the repository
"dev": "dev-v1.1.json",
}
```
```python
def _split_generators(self, dl_manager):
downloaded_files = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
]
``` | Hi there,
I am trying to add my custom `ag_news` with its own loading script on the Hugging Face datasets hub. In particular, I would like to test the addition of a second configuration to the existing `ag_news` dataset. Once it works in my hub, I plan to make a PR to the original dataset. However, in trying to do so I have encountered certain problems as detailed below.
Issues I have encountered:
- Without a loading script, the train and test files are loaded together into a unique `dataset.Dataset` -> so I wrote a loading script. Also, I need a loading script otherwise I cannot specify multiple configurations
- Once my loading script is working locally, I do not manage to make it work on the hub. In particular, I would like to be able to load the dataset like this
```python
load_dataset("pietrolesci/ag_news", name="my_configuration")
```
Apparently, the `load_dataset` is able to pick up the loading script from the hub and run it. However, it errors because it is unable to find the files. The structure of my hub repo is the following
```
ag_news.py
train.csv
test.csv
```
and the loading script I specify `data_dir=Path(__file__).parent` and `data_files=DataFilesDict({"train": "train.csv", "test": "test.csv"})`. In the documentation I could not find info regarding loading a dataset from the hub using a loading script present on the hub.
Any suggestion is very much appreciated.
Best,
Pietro
Link to the hub repo: https://huggingface.co/datasets/pietrolesci/ag_news
BONUS: how can I make the data viewer work in this specific case? :) | 133 | ❓ Dataset loading script from Hugging Face Hub
Hi there,
I am trying to add my custom `ag_news` with its own loading script on the Hugging Face datasets hub. In particular, I would like to test the addition of a second configuration to the existing `ag_news` dataset. Once it works in my hub, I plan to make a PR to the original dataset. However, in trying to do so I have encountered certain problems as detailed below.
Issues I have encountered:
- Without a loading script, the train and test files are loaded together into a unique `dataset.Dataset` -> so I wrote a loading script. Also, I need a loading script otherwise I cannot specify multiple configurations
- Once my loading script is working locally, I do not manage to make it work on the hub. In particular, I would like to be able to load the dataset like this
```python
load_dataset("pietrolesci/ag_news", name="my_configuration")
```
Apparently, the `load_dataset` is able to pick up the loading script from the hub and run it. However, it errors because it is unable to find the files. The structure of my hub repo is the following
```
ag_news.py
train.csv
test.csv
```
and the loading script I specify `data_dir=Path(__file__).parent` and `data_files=DataFilesDict({"train": "train.csv", "test": "test.csv"})`. In the documentation I could not find info regarding loading a dataset from the hub using a loading script present on the hub.
Any suggestion is very much appreciated.
Best,
Pietro
Link to the hub repo: https://huggingface.co/datasets/pietrolesci/ag_news
BONUS: how can I make the data viewer work in this specific case? :)
Hi ! In the next version of `datasets`, your train and test splits will be correctly separated (changes from #3027) if you create a dataset repository with only your CSV files.
Also it seems that you overwrite the `data_files` and `data_dir` arguments in your code, when you instantiate the AGNewsConfig objects. Those parameters are not necessary since you already know which files you want to load.
You can find an example on how to specify which file the dataset has to download in this [example script](https://huggingface.co/datasets/lhoestq/custom_squad/blob/main/custom_squad.py#L101-L107):
```python
_URLS = {
"train": "train-v1.1.json", # you can use a URL or a relative path from the python script to your file in the repository
"dev": "dev-v1.1.json",
}
```
```python
def _split_generators(self, dl_manager):
downloaded_files = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
]
``` | [
-0.1013946682,
-0.2682317793,
0.0481378287,
0.2958106399,
0.005004223,
0.2030407935,
0.3185771704,
0.0778236687,
0.625675261,
0.1679820865,
-0.2501531839,
-0.0095644649,
-0.0821522623,
0.4151838124,
0.3813699484,
0.0784425512,
-0.0206500776,
0.0400116369,
0.188796103,
0.0250974819,
-0.1375532895,
0.3837663233,
0.0763820633,
0.0077811782,
-0.4933143258,
0.2128804028,
-0.285784483,
0.458276093,
0.074013263,
-0.3762184083,
0.2354925126,
0.4300836027,
0.2528781891,
0.6403616667,
-0.0001249452,
0.1098108739,
0.1591600329,
-0.1138906553,
-0.0956899822,
-0.2014765888,
0.0161560643,
-0.161892429,
0.130920887,
-0.0172266662,
-0.2424184531,
0.0468512774,
0.0032580837,
-0.0802225843,
0.3473280072,
0.2357401848,
0.0563454293,
0.2728609145,
-0.1312606037,
-0.443547368,
0.0174688473,
0.1517462581,
0.0274563376,
0.4189983308,
0.1316793114,
-0.1114431322,
-0.16560027,
-0.0508330353,
0.1466549337,
-0.2918339372,
0.3668186665,
0.1370622814,
0.0178306978,
-0.2287508249,
0.0040626405,
0.0872905254,
0.2422105223,
-0.4158919752,
-0.2001891881,
-0.5779345632,
0.1618514359,
-0.0635029748,
0.1972290576,
0.0502000041,
-0.2031316608,
0.3374125361,
-0.2349113375,
-0.4595693648,
-0.1967565715,
-0.060457848,
0.008396728,
-0.0212489814,
-0.0155868353,
0.0808270127,
0.2030258924,
0.1483365446,
0.0811842978,
-0.2024039179,
-0.0706203282,
0.2287310362,
-0.317768842,
-0.0517972894,
0.0448423922,
0.3959932327,
0.0897563845,
0.4525461197,
0.25056234,
0.111295715,
-0.2970137298,
-0.0461824834,
0.3673810661,
0.322373271,
0.1733671725,
0.0917073861,
0.080695726,
0.4579349756,
0.1037675664,
-0.0396954566,
-0.3316159844,
-0.236268729,
-0.1628956646,
-0.1623145044,
0.2077281475,
-0.1047009379,
0.0041195182,
0.0015736426,
0.3940435052,
0.0291358922,
0.2894949615,
0.5255854726,
-0.0274137072,
0.047953818,
-0.1072336957,
0.2523893714,
-0.2990720868,
0.0768011808,
-0.2405168265,
0.1202777922,
-0.1497952491,
0.4809414446,
0.35838449,
-0.1696155816,
0.2153218687,
-0.0652228817,
0.3285729885,
-0.1149158552,
-0.459931314,
0.1085849479,
-0.0644741207,
0.2236445248,
0.3786461949,
0.1802082956,
0.0079360753,
-0.218995288,
-0.2539782226,
0.0214603022,
-0.0544977114,
-0.4728630483,
0.1847883165,
0.0050881645,
-0.7560699582,
-0.0629070401,
-0.2755768895,
0.1090345085,
-0.292116195,
-0.0744952634,
-0.1007412747,
0.1818780005,
-0.0599885918,
-0.1431612521,
0.4176404476,
0.8053805828,
-0.2034863383,
-0.2937726378,
-0.0042490563,
-0.3307195604,
-0.2163160741,
0.0972280279,
-0.1506863236,
0.3602954149,
-0.3286342919,
0.054626707,
0.0492215604,
-0.5215247869,
-0.3752057552,
0.2202546895,
-0.3353922367,
0.3714183271,
0.1096293628,
0.1960270256,
-0.1123584732,
-0.0703784376,
-0.0425671041,
0.1427777857,
-0.0366841927,
-0.135393545,
0.0645265058,
-0.1079784632,
-0.1532411128,
0.3892447054,
0.0270756222,
0.2135209143,
-0.0074451622,
-0.1093638316,
0.3000407219,
0.059472058,
0.0122369397,
0.1202409416,
0.1604831219,
0.2635264993,
0.0272807758,
0.0868220702,
-0.7402229309,
0.4633336663,
-0.1300239116,
-0.0450163484,
0.0104141375,
-0.0262138546,
-0.5219830871,
-0.0874057934,
-0.271631211,
-0.1216755733,
-0.1100197285,
0.0981334895,
0.112366952,
-0.1416291595,
-0.3877283931,
0.734977901,
-0.0626963079,
0.2087917477,
-0.7360532284,
0.4157349467,
0.142688632,
-0.0849801376,
0.0858417451,
0.1710780859,
0.2040467113,
-0.1098992303,
0.1043978855,
0.4523721635,
0.2277487665,
0.5190564394,
0.2757502198,
-0.0180162229,
0.2021625489,
-0.1637680829,
0.1592126042,
-0.2898055613,
-0.0302265566,
-0.0812682509,
-0.3099772334,
0.3510705233,
-0.5239570737,
0.2236639857,
0.065235272,
-0.1092896685,
0.0808997899,
-0.0886813402,
-0.3720909953,
-0.2482618541,
-0.0348807834,
0.0981177017,
0.2039617896,
-0.0610641986,
-0.0636434704,
-0.0630118847,
0.0198127236,
-0.0643992797,
-0.1382510662,
0.0250937454,
-0.1255681366,
0.1586585194,
-0.0531278588,
0.1343679726,
0.332026124,
0.0388712138,
-0.1407307833,
0.4559980333,
0.1119205952,
-0.3129828572,
0.0189027041,
0.0208029728,
0.1360201538,
0.2509735525,
-0.2676663101,
-0.0899696201,
-0.1539710313,
-0.2001535445,
-0.040827021,
0.0058501046,
-0.4867646694,
-0.17517896,
-0.0555202998,
-0.0197868831,
-0.3336345851,
-0.4218893945,
-0.17550686,
-0.1395924389,
-0.0412913635,
0.2082532346,
0.0194427315,
-0.0283026192,
-0.0407069139,
0.4492770731,
-0.2328564227,
-0.183945477,
-0.1139630005,
-0.1410125792,
0.0106394514,
-0.0916095227,
0.0907451883,
0.3076320291,
0.086406365,
-0.3328332901,
0.1278091222,
-0.1610479802,
0.039386481,
0.1631689668,
-0.055835668,
0.2211681753,
0.1213875711,
0.1339347512,
0.1461731195,
-0.1343848258,
0.253277868,
-0.3192071319,
-0.0004726039,
-0.1416944414,
0.1233273968,
-0.090631634,
-0.0301184673,
-0.2680340111,
-0.1593876332,
-0.3183103204,
0.2426226139,
0.2899744809,
0.0265032798,
0.1644316912,
0.0738089159,
0.1179948375,
-0.0544224642,
-0.2988053858,
-0.1095833778,
-0.4293086827,
0.3634613752,
-0.2794692814,
-0.2455605119,
0.2353780419,
0.0157816336,
0.2005964518,
-0.2198474854,
-0.4327171445,
-0.2253529578,
-0.0251243543,
0.0810179114,
0.196066156,
0.0137755992,
0.1373703033,
-0.133047089,
0.1859572679,
-0.1363255382,
-0.4264880419,
0.1130925417,
0.1787564903,
-0.0578229837,
0.0464627631,
-0.0031340895,
-0.4186082482,
0.3957617879,
0.4464556277,
0.096857883,
0.2280033231,
-0.2569908202,
0.5039858818,
-0.1541683078,
-0.344573766,
-0.4087292254,
0.0733667463,
-0.1214640588,
0.4365050197,
0.1065508127,
0.3950846791,
-0.3810079396,
-0.1810251027,
-0.14446944,
-0.3149730265,
0.1343671381,
-0.0877382681,
-0.0015411032,
-0.1041359007,
0.1618738174,
-0.1911007166,
-0.0791774169,
0.2621852756,
0.3678864539,
0.3262763023,
0.0215788111,
-0.367818296,
-0.1184773371,
-0.4780658782,
0.1612696946,
-0.1960090846,
-0.0841710046,
-0.0317301229,
-0.0934395641,
0.0335588753,
0.101653181,
0.7479448915,
-0.2464235723,
-0.0613910072,
0.1227966398,
-0.3705800772,
-0.4211434722,
-0.0047629033,
0.0290129017,
0.0744429082,
-0.2353948802,
0.689114511,
-0.1408138871,
-0.2011665553,
0.0902805477,
0.0195899848,
-0.2905497849,
-0.4703490734,
-0.1026102751,
-0.0911377668,
-0.2333734781,
-0.1734979153,
-0.1513660401,
0.1867411286,
-0.2815553546,
0.0483616404,
0.2104846835,
0.0833205357,
0.1919872016,
0.3032792211,
0.307664454,
0.1857063621,
0.2591588497,
0.6313159466,
0.035148982,
0.1824300289,
0.8878267407,
-0.0406220853,
-0.5015826225,
0.1059996635,
0.0063900263,
0.2558026314,
0.7186611891,
0.1291628629,
-0.0864015296,
0.1402037591,
-0.0013889899,
-0.4406914413,
0.1970632523,
-0.055224549,
-0.1360990405,
-0.1925012767,
-0.558278501,
0.516556263,
0.0062844893,
-0.1505475938,
0.0037966582,
0.2654321194,
-0.2773964405,
0.1818229258,
-0.3862842619,
0.9579261541,
-0.1179577261,
0.0624007508,
0.3447213173,
-0.1434112042,
0.1331126839,
-0.2042338848,
-0.034587238,
-0.4405837655,
-0.0591911115,
0.0156738907,
-0.0093127517,
0.2199382931,
0.2521745265,
-0.0560454838,
0.3782595098,
-0.1077678874,
0.3122620583,
-0.110541001,
0.3601828516,
-0.2811858058,
-0.4501949847,
-0.4214548767,
-0.0273910798,
0.1428726912,
0.4941029847,
-0.062860474,
-0.0502564758,
-0.3140292168,
-0.0348582864,
-0.0841782242,
0.1498067677,
0.0704011545,
-0.2955006957,
0.06214647,
-0.151197806,
0.1389086097,
0.5656535625,
0.397765696,
-0.0458092801,
-0.370816648,
0.3505946994,
-0.2631499767,
-0.1298556924,
-0.1467567682,
-0.0495654978,
0.1404562742,
-0.0354949906,
-0.4672129452,
0.0437214226,
0.0316873342,
-0.1172212884,
-0.1481589973,
-0.0305853561,
0.3048702478,
-0.4622586668,
-0.2475633174,
-0.0363950729,
0.1183170155,
-0.0599024221,
0.0005656905,
0.1068531349,
-0.1382021606,
-0.0054601193,
0.0547481738,
-0.1614902169,
-0.1165389791,
0.2841571271,
-0.1879048049,
-0.4094677866,
0.3182847798,
0.1960243136,
0.1571995616,
-0.150055781,
-0.0752786845,
0.7526446581,
-0.5689373016,
0.0176029373,
0.1410894692,
-0.0419719443,
0.1584503055,
0.0933681577,
0.282325834,
-0.1799517423,
0.0354338214,
-0.2629112005,
-0.2301310599,
0.2650640011,
0.2975097001,
0.3377994001,
0.0882969871,
-0.0366668515,
-0.0932787582,
0.1167582422,
-0.1827723831,
0.0690899864,
-0.019718688,
-0.0577323847,
-0.1216068342,
0.029852733,
0.1309091449,
-0.2195139974,
-0.0424028151,
-0.1374196261,
-0.254862994,
-0.014804313,
-0.1043316424,
0.2167138457,
-0.0750745907,
-0.0144912815,
-0.191425845,
0.0576856546,
-0.0040536351,
-0.3568214774,
0.5437566638,
0.344761163,
0.066710867,
-0.0711172149,
0.4214607477,
0.0086356299,
-0.3747161925,
0.114020884,
0.0786066949,
0.3580071032,
0.2113795429,
-0.0414690971,
-0.3891548812,
0.0462373085,
0.3313813508,
0.3472361267,
0.6271303296,
0.2487189621,
0.2298588902,
-0.0418305472,
0.164083004,
0.0555338152,
0.3517376781,
0.2754548192,
-0.2366097122,
0.0655602813,
0.0705628321,
0.0062978785,
-0.1775453538,
0.0555321798,
0.4817702174,
-0.1988444626,
0.0074019628,
0.5083988905,
0.3268385231,
0.166519478,
-0.2460301965,
0.1247102916,
0.645475924,
0.2671373785,
0.2160113454,
0.3729612529,
-0.1652179211,
0.1306724101,
0.1728546768,
0.2324705869,
0.0450673588,
0.40079844,
-0.3069166243,
0.2258131057,
-0.2002269477,
0.2970216274,
0.2677374184,
-0.6404861808,
-0.1592725068,
0.0101706153,
-0.1061335206,
-0.1111202613,
-0.2171541005,
0.5575737357,
-0.2523976266,
0.2483783811,
-0.3053478301,
0.0989442915,
0.0936589018,
-0.0931610018,
-0.0466071106,
-0.17765145,
-0.2389391661,
0.0065065469,
0.0603481382,
-0.4196496904,
0.0026640245,
-0.0847640187,
-0.1872512698,
0.0725043491,
0.0523636527,
-0.0269298274,
0.125390783,
-0.0885646567,
0.132440567,
0.1195466742,
-0.0741169676,
0.4741601944,
0.0011550942,
0.2655446529,
0.032162115,
0.1274030507,
0.3342317641,
0.2157091349,
-0.0048532411,
0.0725519657,
0.0915409923,
-0.0995639712,
0.0992528498,
0.0618841574,
0.0957979038,
-0.0476509817,
-0.1217260882,
0.1357850432,
0.2539203167,
-0.2140951157,
0.6207367182,
-0.2180614918,
-0.0177206565,
-0.2734690905,
0.1418075562,
-0.2218836993,
-0.1932310462,
0.242809251,
0.0231604241,
0.0253450777,
0.0521208607,
-0.0095733264,
0.0678810924,
0.5452640057,
0.243564114,
0.016542526,
-0.2760339379,
-0.2891476154,
-0.6023461223,
0.0977401212,
0.2739218175,
-0.1786323637,
0.1269260198,
0.0272193737,
-0.0580277517,
-0.0178539176,
-0.0476374254,
-0.024303697,
0.0246422514,
0.0587039851,
-0.133384794,
-0.0798714384,
-0.1922411919,
0.2302069962,
0.0214095674,
0.0388579257,
-0.0165766086,
0.0901019648,
-0.2288943082,
0.237768352,
0.1136111543,
0.0937466994,
-0.3230378926,
0.3987577856,
-0.3234691918,
0.4906240702,
0.0603183061,
-0.0101100719,
-0.4316582382,
-0.2533502281,
-0.1655895561,
0.1801368743,
-0.0449037291,
0.2094181776,
-0.1844135076,
-0.14724572,
-0.1868539006,
-0.0609597415,
0.2162098289,
0.0318457894,
-0.0584542118,
0.0231076013,
-0.2652916908,
0.1667749286,
0.4285232127,
0.2393736541,
-0.1203837991,
0.151078552,
-0.0419619903,
-0.0767673403,
0.6778791547,
-0.022114424,
-0.1352966577,
-0.1433730274,
0.1889263839,
-0.1843501478,
-0.2607288361,
-0.4951049984,
0.2343458533,
0.0485034436,
-0.0300150327,
-0.0627991334,
0.261705935,
-0.1111248657,
-0.1717697382,
0.0354836285,
0.0139060281,
0.2582143843,
-0.0499896333,
-0.1608897448,
-0.1266322732
] |
https://github.com/huggingface/datasets/issues/3300 | ❓ Dataset loading script from Hugging Face Hub | Also I think the viewer will be updated when you fix the dataset script, let me know if it doesn't | Hi there,
I am trying to add my custom `ag_news` with its own loading script on the Hugging Face datasets hub. In particular, I would like to test the addition of a second configuration to the existing `ag_news` dataset. Once it works in my hub, I plan to make a PR to the original dataset. However, in trying to do so I have encountered certain problems as detailed below.
Issues I have encountered:
- Without a loading script, the train and test files are loaded together into a unique `dataset.Dataset` -> so I wrote a loading script. Also, I need a loading script otherwise I cannot specify multiple configurations
- Once my loading script is working locally, I do not manage to make it work on the hub. In particular, I would like to be able to load the dataset like this
```python
load_dataset("pietrolesci/ag_news", name="my_configuration")
```
Apparently, the `load_dataset` is able to pick up the loading script from the hub and run it. However, it errors because it is unable to find the files. The structure of my hub repo is the following
```
ag_news.py
train.csv
test.csv
```
and the loading script I specify `data_dir=Path(__file__).parent` and `data_files=DataFilesDict({"train": "train.csv", "test": "test.csv"})`. In the documentation I could not find info regarding loading a dataset from the hub using a loading script present on the hub.
Any suggestion is very much appreciated.
Best,
Pietro
Link to the hub repo: https://huggingface.co/datasets/pietrolesci/ag_news
BONUS: how can I make the data viewer work in this specific case? :) | 20 | ❓ Dataset loading script from Hugging Face Hub
Hi there,
I am trying to add my custom `ag_news` with its own loading script on the Hugging Face datasets hub. In particular, I would like to test the addition of a second configuration to the existing `ag_news` dataset. Once it works in my hub, I plan to make a PR to the original dataset. However, in trying to do so I have encountered certain problems as detailed below.
Issues I have encountered:
- Without a loading script, the train and test files are loaded together into a unique `dataset.Dataset` -> so I wrote a loading script. Also, I need a loading script otherwise I cannot specify multiple configurations
- Once my loading script is working locally, I do not manage to make it work on the hub. In particular, I would like to be able to load the dataset like this
```python
load_dataset("pietrolesci/ag_news", name="my_configuration")
```
Apparently, the `load_dataset` is able to pick up the loading script from the hub and run it. However, it errors because it is unable to find the files. The structure of my hub repo is the following
```
ag_news.py
train.csv
test.csv
```
and the loading script I specify `data_dir=Path(__file__).parent` and `data_files=DataFilesDict({"train": "train.csv", "test": "test.csv"})`. In the documentation I could not find info regarding loading a dataset from the hub using a loading script present on the hub.
Any suggestion is very much appreciated.
Best,
Pietro
Link to the hub repo: https://huggingface.co/datasets/pietrolesci/ag_news
BONUS: how can I make the data viewer work in this specific case? :)
Also I think the viewer will be updated when you fix the dataset script, let me know if it doesn't | [
-0.0634878948,
-0.3772728741,
0.0302897785,
0.2885511518,
-0.0027499553,
0.2052664161,
0.2930764854,
0.0706355721,
0.6545083523,
0.1745841205,
-0.1952072084,
-0.0231926274,
-0.1169418022,
0.4614902437,
0.4217408299,
0.0841495171,
-0.0183683634,
0.0301568788,
0.206361562,
0.0256050583,
-0.0949028805,
0.3189071715,
0.0982639045,
0.0101994751,
-0.4916897118,
0.216401279,
-0.2538009286,
0.4680258036,
0.0915841833,
-0.3888628483,
0.2848727405,
0.4426764846,
0.2778562307,
0.6220700741,
-0.0001243181,
0.0921311229,
0.1869231164,
-0.1220864579,
-0.0670300871,
-0.2239752561,
0.0719193369,
-0.1327444911,
0.152045846,
-0.0078204256,
-0.2323870361,
0.0776407495,
0.010228063,
-0.0701242536,
0.3036435544,
0.1806212962,
0.0712057799,
0.3437494934,
-0.1397357732,
-0.4088777006,
0.0026398215,
0.1909946799,
0.0640002564,
0.4242288172,
0.2178824991,
-0.1222176701,
-0.1281820685,
-0.0893549621,
0.1443926543,
-0.2840658426,
0.3795879483,
0.0991112813,
-0.0112556396,
-0.2207649499,
0.0252664909,
0.1004153267,
0.3430024981,
-0.4157219529,
-0.1925768256,
-0.5402805209,
0.1783438474,
-0.0329336263,
0.2079993486,
0.0523703583,
-0.207516104,
0.2962008715,
-0.1719384044,
-0.4468432963,
-0.1818875819,
-0.115530856,
0.0247958191,
-0.0762066767,
0.0055187638,
0.0693871975,
0.121264331,
0.0974360853,
0.174434945,
-0.147862792,
-0.0376437269,
0.2282917053,
-0.3013946414,
-0.0397124887,
0.0537267104,
0.4954049885,
0.0643910617,
0.4219445884,
0.2692455053,
0.1502824724,
-0.3338800967,
-0.0397346281,
0.3133462369,
0.3036459982,
0.189362362,
0.0412659273,
0.046490103,
0.4572282732,
0.1117106378,
-0.0254239924,
-0.3505481184,
-0.2144148499,
-0.1519808769,
-0.1986927837,
0.2020004839,
-0.0980804935,
-0.0205708276,
-0.0082060574,
0.4691555202,
0.033341065,
0.3001634181,
0.558607161,
-0.0461645722,
0.0347280353,
-0.0721004754,
0.1888151765,
-0.2701548934,
0.0825681016,
-0.2418521792,
0.1705593616,
-0.1245463118,
0.4425353408,
0.3378754556,
-0.2022978365,
0.2523195446,
-0.0737470984,
0.3210630119,
-0.0532011092,
-0.4667956531,
0.1455774456,
-0.0614240244,
0.1914666146,
0.363124758,
0.1660246104,
0.000266875,
-0.1599413753,
-0.2252588719,
0.0327349678,
-0.1017725393,
-0.4341976047,
0.1473715901,
0.0046195332,
-0.7663037777,
-0.0978908688,
-0.2535998225,
0.0454397202,
-0.3100189865,
-0.1255211532,
-0.0716835782,
0.1648118496,
-0.0735845864,
-0.1308713108,
0.4007675052,
0.8195937276,
-0.1989067644,
-0.3053065836,
0.077039741,
-0.329005152,
-0.2526715398,
0.0633037239,
-0.1515277326,
0.3571677208,
-0.3418977857,
-0.0317667834,
0.0411884114,
-0.5792850256,
-0.3932940066,
0.1791691929,
-0.359569639,
0.3707670867,
0.1488836408,
0.2267688364,
-0.1580028385,
-0.0830631256,
0.0367991403,
0.0947878882,
-0.0191134661,
-0.1611965895,
0.0509758815,
-0.0929460227,
-0.1447966397,
0.3905801475,
0.0309745502,
0.180499658,
-0.0221395828,
-0.092203714,
0.3019474447,
0.0638687685,
0.0191452205,
0.1204767227,
0.126097694,
0.2787184417,
0.0276431628,
0.0635907874,
-0.6943581104,
0.4752132595,
-0.1312727332,
-0.0721036345,
-0.0104077198,
-0.0239352584,
-0.4720480442,
-0.0723729432,
-0.2685343027,
-0.0895031914,
-0.1009138003,
0.0941565633,
0.0894193873,
-0.1412442774,
-0.4316526055,
0.7119863033,
-0.0558337308,
0.1753668487,
-0.747951448,
0.4127329886,
0.1925593764,
-0.0720933378,
0.0679191649,
0.180562526,
0.1934497505,
-0.0833371654,
0.1466277242,
0.4092908502,
0.1762472987,
0.5500426292,
0.3006317317,
-0.0429310687,
0.1978809536,
-0.1684966683,
0.1311920583,
-0.2865821421,
-0.0114253238,
-0.0735112131,
-0.2876136899,
0.3208206892,
-0.5872905254,
0.2075904608,
0.0737360567,
-0.1250961125,
0.0486564189,
-0.0322250165,
-0.3750938177,
-0.2243236154,
0.0527467951,
0.1509452164,
0.2364304513,
-0.0944446623,
-0.0894029215,
-0.0600841492,
-0.0080778031,
-0.0458319932,
-0.1097939983,
0.035622824,
-0.1140950173,
0.1695192307,
-0.0420466401,
0.0665360168,
0.3068881631,
0.0468735993,
-0.1697031856,
0.4388952851,
0.1204445958,
-0.300341785,
-0.0404046625,
-0.0079823099,
0.0453978889,
0.2346864045,
-0.2401923686,
-0.0768555328,
-0.1597321332,
-0.2262483686,
-0.0531041324,
-0.009994451,
-0.5045406818,
-0.2096558213,
-0.0875775442,
0.0123453364,
-0.3178382218,
-0.4304415584,
-0.1916946173,
-0.1326892227,
-0.054313302,
0.2189471126,
0.0704461336,
-0.0787017941,
-0.0061371457,
0.4126401842,
-0.2256942838,
-0.2235030085,
-0.124285683,
-0.1938889176,
0.0553080812,
-0.0858751237,
0.0617981926,
0.3034160733,
0.1130886003,
-0.3997171223,
0.1274841875,
-0.1744261235,
0.0240550321,
0.1484330744,
-0.0208713859,
0.2020639926,
0.1402763277,
0.160279125,
0.1350239813,
-0.085407123,
0.2335128784,
-0.3254773915,
0.0007385197,
-0.1702025682,
0.1053878367,
-0.0682689026,
0.0026923162,
-0.1798510253,
-0.18818672,
-0.3127848506,
0.2825603187,
0.3066028953,
0.0303383525,
0.0816189274,
0.0311329514,
0.1128473729,
-0.0963087231,
-0.2568864822,
-0.1191067547,
-0.5198366642,
0.324919939,
-0.2708291709,
-0.2799211442,
0.2453788817,
0.055642359,
0.2422201186,
-0.240735352,
-0.4060017169,
-0.2729051113,
0.0025108967,
0.1338157952,
0.1742479354,
0.0751239657,
0.1546719223,
-0.1173356473,
0.18259269,
-0.1169714183,
-0.4272062182,
0.0585780591,
0.1818850189,
-0.0435956456,
0.0726141185,
-0.0148713579,
-0.421849072,
0.3145146668,
0.3909513056,
0.0788651258,
0.2696300149,
-0.2685648501,
0.5273177028,
-0.1690003276,
-0.3203878403,
-0.4233084917,
0.0748851672,
-0.1283836812,
0.4016600549,
0.0927600041,
0.4719392061,
-0.41772452,
-0.2807238996,
-0.1413547546,
-0.2681584656,
0.1085631549,
-0.0862299576,
-0.0184593517,
-0.1069547161,
0.1216024086,
-0.2351459712,
-0.095142737,
0.3040483296,
0.3514191806,
0.3731436729,
0.0176720638,
-0.3761703074,
-0.1467375904,
-0.5114626288,
0.1643306166,
-0.1778594553,
-0.0663390383,
-0.060570389,
-0.0521298759,
0.0251824576,
0.0805091113,
0.7111003995,
-0.2112676501,
0.0010558553,
0.0687633306,
-0.3958456814,
-0.5226082206,
0.0116123399,
0.0441758968,
0.0894345269,
-0.3029284775,
0.6827740669,
-0.0916535705,
-0.1647212207,
0.0209111571,
0.0350850932,
-0.2958704233,
-0.5348508358,
-0.1352314651,
-0.1056580842,
-0.2350808978,
-0.1666242033,
-0.1723119467,
0.1756175756,
-0.2165446132,
0.0572102852,
0.1924576014,
0.0835922956,
0.1961232275,
0.2667803466,
0.2854648232,
0.1902224123,
0.2502408028,
0.634627521,
0.029003704,
0.194056958,
0.8947127461,
-0.0217360165,
-0.4298334122,
0.08543396,
0.0374209359,
0.2344629019,
0.6932312846,
0.1328535378,
-0.0219597183,
0.1040311158,
-0.00471413,
-0.4835225642,
0.1466954201,
-0.083507888,
-0.0977595001,
-0.2154396027,
-0.525290072,
0.5303321481,
-0.0091660852,
-0.1255390346,
0.0027046257,
0.2572781146,
-0.2699264586,
0.1754772663,
-0.3397408128,
0.913603723,
-0.1139948592,
0.0973970369,
0.3125094771,
-0.131425336,
0.1701847762,
-0.18149288,
-0.0806227326,
-0.4340747893,
-0.1162920594,
0.0051406925,
0.0201677661,
0.2115340382,
0.1708828062,
-0.0112416511,
0.3993952572,
-0.1211825162,
0.3213508129,
-0.0715057626,
0.341142863,
-0.2976260483,
-0.4208854437,
-0.4459133148,
-0.0328884609,
0.1373925656,
0.4917703569,
-0.1109486446,
-0.0236747526,
-0.273698926,
-0.0663624778,
-0.0859913751,
0.0953269601,
0.0785268843,
-0.3338252008,
0.0451562256,
-0.1176552102,
0.1567957103,
0.5612672567,
0.4323337674,
-0.0397490114,
-0.3976166546,
0.3622557819,
-0.2094009966,
-0.1818209141,
-0.1635607183,
-0.0185918193,
0.144306913,
-0.0419685841,
-0.4659316838,
0.086490117,
0.073650077,
-0.0901928768,
-0.1898199916,
-0.0118277753,
0.2031863034,
-0.417421788,
-0.3065143824,
-0.0759230033,
0.1414513886,
-0.0479886234,
0.0050854841,
0.1331319213,
-0.1434262991,
-0.0136701297,
0.0905875191,
-0.1486259699,
-0.1174410954,
0.3684080541,
-0.1959264874,
-0.4442834556,
0.3117113411,
0.1996203214,
0.1677692682,
-0.1252579689,
-0.0815010518,
0.7863452435,
-0.527146101,
-0.0106859664,
0.1830337942,
-0.0076933391,
0.1201144457,
0.0969860181,
0.29577896,
-0.1713811457,
0.0461120903,
-0.2631968856,
-0.2714251876,
0.2866126895,
0.3361231685,
0.3182147443,
0.1202270761,
-0.0383972153,
-0.0554310046,
0.1197703257,
-0.1883336753,
0.0851987973,
0.0142422896,
-0.0703886226,
-0.097533755,
0.0562198348,
0.1272662133,
-0.1940769106,
-0.0221771151,
-0.0902237296,
-0.2360648215,
-0.0277281422,
-0.0884342641,
0.2159914523,
-0.0930343047,
0.0431762822,
-0.1867013574,
0.0273178946,
0.0239544213,
-0.3372732103,
0.510001421,
0.383110255,
0.0484097376,
-0.0495824851,
0.4397953153,
0.0134564079,
-0.4097364545,
0.1539599299,
0.1135390028,
0.3280214965,
0.183403939,
-0.061489854,
-0.3989158869,
0.0677461922,
0.3151130676,
0.3482509851,
0.5724384785,
0.2515617907,
0.1794093847,
-0.0499746427,
0.1829255819,
0.0306452569,
0.3537760377,
0.2535022497,
-0.2434759587,
0.0685589388,
0.0596263818,
0.0119331032,
-0.1898653656,
0.0362718217,
0.4345336854,
-0.170433104,
-0.0001331064,
0.4920396209,
0.3487391472,
0.1178260967,
-0.2393207848,
0.1246688291,
0.6201635599,
0.1806590408,
0.1682849377,
0.3345797658,
-0.1414884478,
0.0965631306,
0.1638775617,
0.2595760226,
0.0344032086,
0.4128289819,
-0.2809066772,
0.2165720165,
-0.1766874343,
0.2848538756,
0.2268650085,
-0.6314474344,
-0.1043768749,
-0.0004920338,
-0.0462904684,
-0.1123205349,
-0.247172609,
0.5130733848,
-0.2249305546,
0.2788327932,
-0.296916157,
0.0887423083,
0.0684227571,
-0.1478727162,
-0.0386176258,
-0.2118537873,
-0.1959656924,
0.0197675284,
0.0564674549,
-0.3869976103,
-0.0544376038,
-0.0652395785,
-0.180485934,
0.0980676115,
-0.0081294738,
0.0299421642,
0.1127385274,
-0.0702374429,
0.1218744442,
0.1451372802,
-0.0850205943,
0.5155144334,
-0.0181612689,
0.2846590281,
0.043874871,
0.1161157638,
0.3556254506,
0.1547052115,
0.012871231,
0.0605346635,
0.0885005146,
-0.0739266276,
0.1459651887,
0.0601434335,
0.1166424677,
-0.0583008975,
-0.0897128209,
0.1095527336,
0.2792863548,
-0.2496889979,
0.5782235861,
-0.2088273168,
-0.0157847907,
-0.2841390073,
0.1808863729,
-0.2535471618,
-0.1923649758,
0.239325881,
0.0630487129,
0.0113754543,
0.0718478039,
-0.0065073757,
0.0206403062,
0.5731441975,
0.2706480622,
0.0225761514,
-0.2219999284,
-0.2548170686,
-0.5980224013,
0.109504953,
0.309025079,
-0.2046798468,
0.1563440263,
-0.0068815933,
-0.0819597319,
-0.0562602431,
-0.0205985047,
-0.0423980355,
0.0354096219,
0.0400620811,
-0.0799885094,
-0.0928120464,
-0.173562035,
0.2433111072,
0.0273672417,
0.0417613089,
-0.0084950346,
0.0378201157,
-0.2091381997,
0.1804578602,
0.1162309051,
0.0692603886,
-0.3549529612,
0.4379221201,
-0.3629800975,
0.5256336927,
0.0510615408,
-0.0044227648,
-0.4311907589,
-0.254270941,
-0.1367414594,
0.2009376287,
-0.0256609693,
0.201459825,
-0.1733909994,
-0.1834728122,
-0.1711706668,
-0.020937141,
0.1794637591,
0.0191331655,
-0.0629669502,
-0.0193898343,
-0.2296677232,
0.1379787028,
0.3813308179,
0.2680741251,
-0.1098360121,
0.1502826959,
-0.0385027379,
-0.0931834728,
0.6830955744,
-0.0696456432,
-0.110100165,
-0.1154635772,
0.1907211393,
-0.2068066001,
-0.2746685147,
-0.5116333365,
0.2922638655,
0.0562688038,
-0.0003379468,
-0.0384743996,
0.2561380565,
-0.1628679931,
-0.1146937981,
0.0289301965,
0.0009407416,
0.224669382,
-0.0388713926,
-0.2140154392,
-0.1277222782
] |
https://github.com/huggingface/datasets/issues/3300 | ❓ Dataset loading script from Hugging Face Hub | Hi @lhoestq,
Thanks a lot for the super quick answer!
Your suggestion solves my issue. I am now able to load the dataset properly 🚀
However, the dataviewer is not working yet.
Really, thanks a lot for your help and consideration!
Best,
Pietro | Hi there,
I am trying to add my custom `ag_news` with its own loading script on the Hugging Face datasets hub. In particular, I would like to test the addition of a second configuration to the existing `ag_news` dataset. Once it works in my hub, I plan to make a PR to the original dataset. However, in trying to do so I have encountered certain problems as detailed below.
Issues I have encountered:
- Without a loading script, the train and test files are loaded together into a unique `dataset.Dataset` -> so I wrote a loading script. Also, I need a loading script otherwise I cannot specify multiple configurations
- Once my loading script is working locally, I do not manage to make it work on the hub. In particular, I would like to be able to load the dataset like this
```python
load_dataset("pietrolesci/ag_news", name="my_configuration")
```
Apparently, the `load_dataset` is able to pick up the loading script from the hub and run it. However, it errors because it is unable to find the files. The structure of my hub repo is the following
```
ag_news.py
train.csv
test.csv
```
and the loading script I specify `data_dir=Path(__file__).parent` and `data_files=DataFilesDict({"train": "train.csv", "test": "test.csv"})`. In the documentation I could not find info regarding loading a dataset from the hub using a loading script present on the hub.
Any suggestion is very much appreciated.
Best,
Pietro
Link to the hub repo: https://huggingface.co/datasets/pietrolesci/ag_news
BONUS: how can I make the data viewer work in this specific case? :) | 43 | ❓ Dataset loading script from Hugging Face Hub
Hi there,
I am trying to add my custom `ag_news` with its own loading script on the Hugging Face datasets hub. In particular, I would like to test the addition of a second configuration to the existing `ag_news` dataset. Once it works in my hub, I plan to make a PR to the original dataset. However, in trying to do so I have encountered certain problems as detailed below.
Issues I have encountered:
- Without a loading script, the train and test files are loaded together into a unique `dataset.Dataset` -> so I wrote a loading script. Also, I need a loading script otherwise I cannot specify multiple configurations
- Once my loading script is working locally, I do not manage to make it work on the hub. In particular, I would like to be able to load the dataset like this
```python
load_dataset("pietrolesci/ag_news", name="my_configuration")
```
Apparently, the `load_dataset` is able to pick up the loading script from the hub and run it. However, it errors because it is unable to find the files. The structure of my hub repo is the following
```
ag_news.py
train.csv
test.csv
```
and the loading script I specify `data_dir=Path(__file__).parent` and `data_files=DataFilesDict({"train": "train.csv", "test": "test.csv"})`. In the documentation I could not find info regarding loading a dataset from the hub using a loading script present on the hub.
Any suggestion is very much appreciated.
Best,
Pietro
Link to the hub repo: https://huggingface.co/datasets/pietrolesci/ag_news
BONUS: how can I make the data viewer work in this specific case? :)
Hi @lhoestq,
Thanks a lot for the super quick answer!
Your suggestion solves my issue. I am now able to load the dataset properly 🚀
However, the dataviewer is not working yet.
Really, thanks a lot for your help and consideration!
Best,
Pietro | [
-0.0676700994,
-0.3583374023,
0.0224837773,
0.2893784642,
-0.0218640827,
0.1763964146,
0.3361327648,
0.0578268841,
0.6890067458,
0.1715690345,
-0.2108742446,
-0.0025720121,
-0.1206180453,
0.4642144442,
0.3857717812,
0.0706231296,
-0.0077106263,
0.0814232901,
0.2180109918,
0.033068426,
-0.1217049807,
0.2958473861,
0.0779977143,
0.0059164385,
-0.4545520246,
0.2256285101,
-0.2406782359,
0.4514046609,
0.0773641765,
-0.3909237981,
0.2707718015,
0.422449559,
0.2928937376,
0.6608335972,
-0.000124707,
0.1167878881,
0.1840603799,
-0.1401635706,
-0.0547032095,
-0.2289546579,
0.0721204504,
-0.1354357302,
0.1629095972,
-0.0342042781,
-0.2319943011,
0.0687705353,
-0.0081101414,
-0.0467206836,
0.2967295051,
0.1950974166,
0.0694539547,
0.3234811425,
-0.1156883985,
-0.3778451979,
0.0269154813,
0.1853326857,
0.0754594058,
0.4489682913,
0.2222301364,
-0.0859244019,
-0.1707754135,
-0.076897949,
0.1575177908,
-0.2441683114,
0.3451805115,
0.0982102975,
0.0004034513,
-0.2306094617,
0.0148605788,
0.0838884339,
0.3289599121,
-0.4393267334,
-0.1949295402,
-0.551559329,
0.1428820789,
-0.0239774585,
0.2215180248,
0.0286880247,
-0.217138797,
0.2816959918,
-0.1541316211,
-0.4457311034,
-0.2036883086,
-0.108465828,
0.0049267584,
-0.0649861321,
-0.0133746667,
0.0760053992,
0.126819998,
0.1091104448,
0.2025820613,
-0.1513467878,
-0.0202552583,
0.2291083485,
-0.3277091682,
-0.0614546798,
0.0289699417,
0.4854888022,
0.0128037194,
0.4018638134,
0.2886453569,
0.141542837,
-0.3395421207,
-0.0251340382,
0.2782111168,
0.328918606,
0.1996108294,
0.0359063223,
0.0595813803,
0.4861672223,
0.0984020457,
-0.0221720394,
-0.3461022079,
-0.217296645,
-0.177741155,
-0.1887257844,
0.202071324,
-0.1042877808,
-0.0285839606,
-0.0162694752,
0.4738216102,
0.0185870193,
0.3117920756,
0.5883270502,
-0.0510780923,
0.0562602095,
-0.060706377,
0.1780006737,
-0.2679522932,
0.0540557057,
-0.2189708352,
0.2042043358,
-0.1488319188,
0.4224180877,
0.3376396298,
-0.1997383237,
0.2639415562,
-0.0630712956,
0.3042193651,
-0.0252401866,
-0.4591216743,
0.1007453278,
-0.0707606524,
0.1876243353,
0.3827137947,
0.1503549665,
0.016785698,
-0.1893529743,
-0.208886683,
0.0589443371,
-0.0952133089,
-0.4064996541,
0.1760639101,
0.0109711187,
-0.7764010429,
-0.0851728544,
-0.2627550662,
0.0407811292,
-0.2931137383,
-0.1369096786,
-0.0386256054,
0.1463123709,
-0.0523249023,
-0.1374106854,
0.3844183981,
0.7989913225,
-0.2229917794,
-0.3160702884,
0.0598382987,
-0.3673124015,
-0.2459048331,
0.0468449369,
-0.156131655,
0.3962370455,
-0.3363685012,
-0.014780391,
0.0471942537,
-0.5521425009,
-0.4069004059,
0.1895689219,
-0.3559103012,
0.3716002107,
0.169650659,
0.2191875428,
-0.1106920093,
-0.0708038807,
-0.0009998828,
0.0986280963,
-0.006032628,
-0.1531994939,
0.0585985258,
-0.0934270695,
-0.1137411818,
0.4101996124,
0.0555171631,
0.1733880192,
0.0011320557,
-0.0878123716,
0.3085518479,
0.0320444852,
0.0386057831,
0.1170250103,
0.1090429574,
0.2475796342,
0.0517299622,
0.0632562935,
-0.7033698559,
0.4801930189,
-0.1473148316,
-0.0593091212,
-0.0095146634,
0.0074689682,
-0.4680339396,
-0.0515194796,
-0.3113441765,
-0.1127347276,
-0.0994273275,
0.1251734048,
0.1000092477,
-0.1572839022,
-0.4241781533,
0.7118452787,
-0.1108608097,
0.1794266403,
-0.7325814962,
0.4206785858,
0.2018688172,
-0.0721357912,
0.0353346281,
0.1582742184,
0.1825928092,
-0.0931842998,
0.1407066584,
0.3817424476,
0.2349176258,
0.5389655232,
0.285618037,
-0.0600035824,
0.1902741194,
-0.1519637108,
0.1442742348,
-0.2465512007,
0.0301570073,
-0.0951826274,
-0.2917489111,
0.3301780522,
-0.5647217631,
0.233221814,
0.0844822899,
-0.1560741067,
0.0608531572,
-0.0502566323,
-0.3495592177,
-0.2012443244,
0.0698111206,
0.1546068937,
0.2765921652,
-0.0764914304,
-0.0984982774,
-0.0695612952,
-0.0397842675,
-0.0536555275,
-0.1087137759,
0.0770689771,
-0.1327333748,
0.1685021669,
-0.0325622149,
0.0681508407,
0.3095424473,
0.0385343507,
-0.187199071,
0.4441896677,
0.1546765119,
-0.3010175228,
-0.0293303505,
0.0129765375,
0.0764780566,
0.2625553608,
-0.2623697817,
-0.0868185908,
-0.1497545391,
-0.2547959089,
-0.0215538125,
0.019128751,
-0.5106794834,
-0.2190676332,
-0.0431133434,
-0.0062742736,
-0.3114545345,
-0.447068274,
-0.1862240434,
-0.1135450676,
-0.0854098648,
0.2471441776,
0.0727056935,
-0.0662167892,
-0.0143950256,
0.4148198664,
-0.2172589004,
-0.24015899,
-0.1094672903,
-0.1774357557,
0.0662658364,
-0.0701447576,
0.0587624982,
0.2919688225,
0.0826995745,
-0.4009362161,
0.1427519619,
-0.1736677438,
0.013342985,
0.1661788076,
-0.0152303027,
0.2002141029,
0.1358053237,
0.1690762788,
0.1442179382,
-0.1001146361,
0.1916957796,
-0.334847033,
-0.0356960855,
-0.1661967039,
0.0811719149,
-0.0486711003,
0.0171816926,
-0.19802697,
-0.2105768025,
-0.3260780871,
0.2839104235,
0.3313008547,
0.04857466,
0.0561214499,
0.024511544,
0.1342152357,
-0.0738431886,
-0.2391315699,
-0.0987844914,
-0.5038404465,
0.3298660219,
-0.2541195452,
-0.2692651749,
0.222483173,
0.0362901427,
0.2439689487,
-0.2477841377,
-0.4332647026,
-0.2700276673,
-0.0043110349,
0.1112936214,
0.1868392229,
0.0812626705,
0.1534651369,
-0.1233949512,
0.1856254935,
-0.1118248701,
-0.4020266235,
0.0771547109,
0.1385294199,
-0.039202325,
0.1073003262,
0.0087827398,
-0.4347752929,
0.35147053,
0.3803658783,
0.0821370408,
0.2682640553,
-0.2472825199,
0.5148455501,
-0.164282456,
-0.3210816383,
-0.4268908501,
0.0419500731,
-0.1313918084,
0.428530246,
0.0639883652,
0.4453528523,
-0.4356301725,
-0.3407489359,
-0.1446682364,
-0.2608280182,
0.1454140395,
-0.0597321726,
-0.0243146438,
-0.1510205269,
0.1187297553,
-0.2166233361,
-0.1008057743,
0.2881550193,
0.3672354221,
0.337277323,
0.0056824931,
-0.3537130058,
-0.1371027678,
-0.4910603166,
0.1515496969,
-0.1856440902,
-0.0409806147,
-0.025945805,
-0.069475852,
0.0084489742,
0.0650476292,
0.7090401053,
-0.1563399285,
0.0188438222,
0.0581432506,
-0.4377689958,
-0.4721043706,
0.0133008668,
0.0131724905,
0.1353951246,
-0.295697093,
0.6850799918,
-0.0935353413,
-0.1385327131,
0.0192518216,
0.0378317647,
-0.3182044923,
-0.5554915071,
-0.1185817719,
-0.0676324666,
-0.268471241,
-0.1668070108,
-0.1988291591,
0.1642774194,
-0.2097537667,
0.1096514314,
0.18045412,
0.0592309944,
0.2110731006,
0.2832986414,
0.2562199235,
0.1803147048,
0.2341281772,
0.6170525551,
0.0348361135,
0.1562025845,
0.910130918,
-0.0202071127,
-0.4619753957,
0.1094265655,
0.0348126628,
0.2401594818,
0.6959239841,
0.1317435056,
0.0179377981,
0.111388959,
-0.0069360225,
-0.4725677669,
0.1581637561,
-0.0978196785,
-0.0896192417,
-0.2216411382,
-0.5231255293,
0.5495330095,
-0.040822003,
-0.1346086115,
-0.0091740936,
0.2593258917,
-0.2833808661,
0.1806002855,
-0.324082315,
0.9415817261,
-0.0810618326,
0.1149914786,
0.3357116282,
-0.1198269874,
0.1679558605,
-0.1720132679,
-0.0979576707,
-0.4337024987,
-0.1150277555,
-0.0003761448,
0.0002180075,
0.2300646454,
0.164643392,
-0.0132765593,
0.4078853726,
-0.1161286533,
0.3464183807,
-0.016692115,
0.3535628021,
-0.248350054,
-0.4333565533,
-0.4371417761,
-0.0408177413,
0.123038128,
0.4714486301,
-0.0991033241,
-0.0187860653,
-0.2710771263,
-0.0651819482,
-0.0545241982,
0.1044309363,
0.0738950297,
-0.313273102,
0.0168203302,
-0.1328640729,
0.15947707,
0.5359247327,
0.4012454152,
-0.061417859,
-0.3916370869,
0.3526568115,
-0.1959468275,
-0.1685167998,
-0.1373927146,
-0.039743904,
0.1843591034,
-0.0491769239,
-0.4606010914,
0.1138893515,
0.0675303861,
-0.1193892881,
-0.1529175788,
0.0110768415,
0.2086213082,
-0.4491287172,
-0.3280616105,
-0.0949054509,
0.0932156369,
-0.0481725149,
0.0041531185,
0.123834677,
-0.1750335544,
-0.0030093233,
0.0878081098,
-0.1767530441,
-0.1337598562,
0.373732239,
-0.1515287906,
-0.4461562335,
0.3385282159,
0.2296916097,
0.1287167221,
-0.1157097593,
-0.0782032833,
0.7985473871,
-0.536657393,
0.0008153327,
0.1733992398,
0.0007658968,
0.1001127139,
0.0804201886,
0.3176279664,
-0.1426395625,
0.016476687,
-0.3060690165,
-0.2886669338,
0.2783097923,
0.3340316415,
0.308342725,
0.1224756911,
-0.0437514558,
-0.045131173,
0.123854205,
-0.1897966713,
0.0870908126,
0.0034281376,
-0.0484399721,
-0.1127546877,
0.0589094758,
0.1193158031,
-0.1802060455,
-0.0179907829,
-0.1031360105,
-0.2080789208,
-0.0306233615,
-0.0850667581,
0.2186623812,
-0.0635382012,
0.0218500365,
-0.2035265416,
0.0132152876,
0.0345907845,
-0.313667506,
0.4906054139,
0.3620024621,
0.0279566925,
-0.0768875852,
0.4446756542,
-0.0153203337,
-0.4351868927,
0.1697103381,
0.0804473683,
0.3521597385,
0.1913266778,
-0.0342629701,
-0.3890990615,
0.0765362531,
0.3236714005,
0.3483485878,
0.5855824947,
0.2252559513,
0.1861932427,
-0.0689887702,
0.2059617192,
-0.0000969994,
0.3734201789,
0.2406567037,
-0.2722854316,
0.0619746186,
0.0642181262,
0.0068824901,
-0.2091930211,
0.0474408381,
0.4360181093,
-0.2050239295,
0.0173214693,
0.5102267265,
0.3409801722,
0.1294487119,
-0.2222094536,
0.1281646788,
0.6308112741,
0.2089113593,
0.1643367261,
0.3288337886,
-0.1601901352,
0.1153698117,
0.2093439847,
0.3064976037,
0.0256434828,
0.4291580617,
-0.2950915694,
0.215187192,
-0.1960404664,
0.2527141869,
0.224059999,
-0.6263984442,
-0.0846292675,
0.0235490501,
-0.0628512949,
-0.1302338392,
-0.2429125309,
0.4794946313,
-0.2187150717,
0.31585446,
-0.2851439714,
0.1009600982,
0.0571945868,
-0.1235194951,
-0.0539218038,
-0.2452806979,
-0.2285681963,
0.0129902326,
0.0333306417,
-0.4176717103,
-0.0710458383,
-0.0571493916,
-0.2145795673,
0.0916952938,
-0.0187198296,
0.0415858217,
0.0911551639,
-0.0906006545,
0.1277721375,
0.1701742411,
-0.0557806864,
0.5056627989,
-0.0108491667,
0.2714479268,
0.0568484254,
0.1026136279,
0.3440636694,
0.1469846517,
-0.0159400068,
0.05753728,
0.0969567522,
-0.0870042592,
0.1574655324,
0.0835376084,
0.1241014153,
-0.0708225742,
-0.0758415759,
0.1438448876,
0.2466395497,
-0.2206376642,
0.5691098571,
-0.1704716682,
0.001846737,
-0.277213335,
0.1698067188,
-0.2868381441,
-0.1805579513,
0.2345521748,
0.0338684544,
0.0239295252,
0.0697977692,
-0.0098186228,
0.0328428783,
0.57856673,
0.2656347454,
0.0574704781,
-0.2481999993,
-0.2535488605,
-0.589228034,
0.0985037535,
0.2970973253,
-0.239076212,
0.1504850984,
-0.02656582,
-0.0551822558,
-0.0529127084,
-0.0162856076,
-0.0015745942,
0.0183616783,
0.0144036626,
-0.0870132148,
-0.0973619372,
-0.168329522,
0.2732264102,
0.020876877,
0.0114675164,
0.0014035117,
0.0575892441,
-0.2050732374,
0.1680283397,
0.1211538464,
0.0901546851,
-0.3721247911,
0.4074499905,
-0.3733632565,
0.527962029,
0.0179850701,
0.0148098627,
-0.3788226247,
-0.2380472273,
-0.1722521186,
0.1857489794,
0.0006968942,
0.2069282681,
-0.1742290407,
-0.203518033,
-0.1698117107,
-0.0302595869,
0.1464073956,
0.0219821706,
-0.0774614513,
-0.0033487687,
-0.2299820334,
0.1251735389,
0.3762640059,
0.2382413,
-0.1229157224,
0.1292169094,
-0.0616663285,
-0.0887221098,
0.6807547808,
-0.0950958878,
-0.1028249338,
-0.1214583442,
0.1618496031,
-0.2246585041,
-0.2282420695,
-0.5156256557,
0.3053458333,
0.0681911707,
0.0060440754,
-0.0500607267,
0.228227213,
-0.1637029648,
-0.1081352755,
0.0053802091,
-0.0142524028,
0.2256664187,
-0.0392963104,
-0.2414473146,
-0.14629969
] |
https://github.com/huggingface/datasets/issues/3300 | ❓ Dataset loading script from Hugging Face Hub | @lhoestq I think I am having a related problem.
My call to load_dataset() looks like this:
```
datasets = load_dataset(
os.path.abspath(layoutlmft.data.datasets.xfun.__file__),
f"xfun.{data_args.lang}",
additional_langs=data_args.additional_langs,
keep_in_memory=True,
)
```
My _split_generation code is:
```
def _split_generators(self, dl_manager):
"""Returns SplitGenerators."""
downloaded_file = dl_manager.download_and_extract("https://guillaumejaume.github.io/FUNSD/dataset.zip")
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN, gen_kwargs={"filepath": f"{downloaded_file}/dataset/training_data/"}
),
datasets.SplitGenerator(
name=datasets.Split.TEST, gen_kwargs={"filepath": f"{downloaded_file}/dataset/testing_data/"}
),
]
```
However I get the error "TypeError: _generate_examples() got an unexpected keyword argument 'filepath'"
The path looks right and I see the data in the path so I think the only problem I have is that it doesn't like the key "filepath". However, the documentation (example [here](https://huggingface.co/datasets/lhoestq/custom_squad/blob/main/custom_squad.py#L101-L107)) seems to show that this is the correct parameter.
Here is the full stack trace:
```
Downloading and preparing dataset xfun/xfun.en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/caseygre/.cache/huggingface/datasets/xfun/xfun.en/0.0.0/96b8cb7c57f6f822f0ab37ae3be7b82d84ac57062e774c9361ccf0a4b9ef61cc...
Traceback (most recent call last):
File "/Users/caseygre/PycharmProjects/aegis-ml-new/unilm/venv-LayoutLM/lib/python3.9/site-packages/datasets/builder.py", line 574, in download_and_prepare
self._download_and_prepare(
File "/Users/caseygre/PycharmProjects/aegis-ml-new/unilm/venv-LayoutLM/lib/python3.9/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/Users/caseygre/PycharmProjects/aegis-ml-new/unilm/venv-LayoutLM/lib/python3.9/site-packages/datasets/builder.py", line 975, in _prepare_split
generator = self._generate_examples(**split_generator.gen_kwargs)
TypeError: _generate_examples() got an unexpected keyword argument 'filepath'
python-BaseException
``` | Hi there,
I am trying to add my custom `ag_news` with its own loading script on the Hugging Face datasets hub. In particular, I would like to test the addition of a second configuration to the existing `ag_news` dataset. Once it works in my hub, I plan to make a PR to the original dataset. However, in trying to do so I have encountered certain problems as detailed below.
Issues I have encountered:
- Without a loading script, the train and test files are loaded together into a unique `dataset.Dataset` -> so I wrote a loading script. Also, I need a loading script otherwise I cannot specify multiple configurations
- Once my loading script is working locally, I do not manage to make it work on the hub. In particular, I would like to be able to load the dataset like this
```python
load_dataset("pietrolesci/ag_news", name="my_configuration")
```
Apparently, the `load_dataset` is able to pick up the loading script from the hub and run it. However, it errors because it is unable to find the files. The structure of my hub repo is the following
```
ag_news.py
train.csv
test.csv
```
and the loading script I specify `data_dir=Path(__file__).parent` and `data_files=DataFilesDict({"train": "train.csv", "test": "test.csv"})`. In the documentation I could not find info regarding loading a dataset from the hub using a loading script present on the hub.
Any suggestion is very much appreciated.
Best,
Pietro
Link to the hub repo: https://huggingface.co/datasets/pietrolesci/ag_news
BONUS: how can I make the data viewer work in this specific case? :) | 173 | ❓ Dataset loading script from Hugging Face Hub
Hi there,
I am trying to add my custom `ag_news` with its own loading script on the Hugging Face datasets hub. In particular, I would like to test the addition of a second configuration to the existing `ag_news` dataset. Once it works in my hub, I plan to make a PR to the original dataset. However, in trying to do so I have encountered certain problems as detailed below.
Issues I have encountered:
- Without a loading script, the train and test files are loaded together into a unique `dataset.Dataset` -> so I wrote a loading script. Also, I need a loading script otherwise I cannot specify multiple configurations
- Once my loading script is working locally, I do not manage to make it work on the hub. In particular, I would like to be able to load the dataset like this
```python
load_dataset("pietrolesci/ag_news", name="my_configuration")
```
Apparently, the `load_dataset` is able to pick up the loading script from the hub and run it. However, it errors because it is unable to find the files. The structure of my hub repo is the following
```
ag_news.py
train.csv
test.csv
```
and the loading script I specify `data_dir=Path(__file__).parent` and `data_files=DataFilesDict({"train": "train.csv", "test": "test.csv"})`. In the documentation I could not find info regarding loading a dataset from the hub using a loading script present on the hub.
Any suggestion is very much appreciated.
Best,
Pietro
Link to the hub repo: https://huggingface.co/datasets/pietrolesci/ag_news
BONUS: how can I make the data viewer work in this specific case? :)
@lhoestq I think I am having a related problem.
My call to load_dataset() looks like this:
```
datasets = load_dataset(
os.path.abspath(layoutlmft.data.datasets.xfun.__file__),
f"xfun.{data_args.lang}",
additional_langs=data_args.additional_langs,
keep_in_memory=True,
)
```
My _split_generation code is:
```
def _split_generators(self, dl_manager):
"""Returns SplitGenerators."""
downloaded_file = dl_manager.download_and_extract("https://guillaumejaume.github.io/FUNSD/dataset.zip")
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN, gen_kwargs={"filepath": f"{downloaded_file}/dataset/training_data/"}
),
datasets.SplitGenerator(
name=datasets.Split.TEST, gen_kwargs={"filepath": f"{downloaded_file}/dataset/testing_data/"}
),
]
```
However I get the error "TypeError: _generate_examples() got an unexpected keyword argument 'filepath'"
The path looks right and I see the data in the path so I think the only problem I have is that it doesn't like the key "filepath". However, the documentation (example [here](https://huggingface.co/datasets/lhoestq/custom_squad/blob/main/custom_squad.py#L101-L107)) seems to show that this is the correct parameter.
Here is the full stack trace:
```
Downloading and preparing dataset xfun/xfun.en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/caseygre/.cache/huggingface/datasets/xfun/xfun.en/0.0.0/96b8cb7c57f6f822f0ab37ae3be7b82d84ac57062e774c9361ccf0a4b9ef61cc...
Traceback (most recent call last):
File "/Users/caseygre/PycharmProjects/aegis-ml-new/unilm/venv-LayoutLM/lib/python3.9/site-packages/datasets/builder.py", line 574, in download_and_prepare
self._download_and_prepare(
File "/Users/caseygre/PycharmProjects/aegis-ml-new/unilm/venv-LayoutLM/lib/python3.9/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/Users/caseygre/PycharmProjects/aegis-ml-new/unilm/venv-LayoutLM/lib/python3.9/site-packages/datasets/builder.py", line 975, in _prepare_split
generator = self._generate_examples(**split_generator.gen_kwargs)
TypeError: _generate_examples() got an unexpected keyword argument 'filepath'
python-BaseException
``` | [
-0.0687073544,
-0.3811146319,
0.0466552377,
0.3227541447,
0.0099622961,
0.1686694622,
0.3243077695,
0.0713837296,
0.6673383117,
0.2038330138,
-0.2203580588,
-0.0036798161,
-0.067635268,
0.4104301333,
0.4078681767,
0.0784859285,
0.0209657699,
0.0293771625,
0.1985020936,
-0.0212111808,
-0.1326786727,
0.3249165714,
0.1005782038,
0.0507372431,
-0.5055558681,
0.2073849291,
-0.2630452514,
0.500837028,
0.0945408866,
-0.3425163627,
0.2188706994,
0.4161889553,
0.2778623104,
0.6348178983,
-0.0001247538,
0.1073703468,
0.1700042486,
-0.1355925649,
-0.0933153182,
-0.2565151751,
0.0836202204,
-0.1391159296,
0.1484510452,
-0.0517433211,
-0.2248863578,
0.0747364312,
-0.0258333944,
-0.0958792344,
0.2998905778,
0.1945007145,
0.0733894184,
0.3699006736,
-0.1588222086,
-0.3921982944,
0.0161065664,
0.2067048848,
0.0424427055,
0.3906945586,
0.2207686007,
-0.0905674696,
-0.1425686628,
-0.0576214902,
0.1596905738,
-0.2743948996,
0.341001302,
0.1152088121,
-0.0136566525,
-0.2120606154,
0.0398125052,
0.1138233393,
0.3056764603,
-0.4165117741,
-0.2361231446,
-0.5492115617,
0.164478749,
-0.0490300842,
0.2420246452,
0.0641076937,
-0.2225863338,
0.2782556713,
-0.149254486,
-0.4457446933,
-0.1467926949,
-0.0999405682,
0.013441897,
-0.0400023758,
-0.0053968686,
0.0824935734,
0.1311319768,
0.0941426978,
0.1438908875,
-0.1851321608,
-0.0053943889,
0.2223145366,
-0.3184433281,
0.0097606443,
0.0696814135,
0.458882004,
0.0442937277,
0.3833854496,
0.2576042116,
0.1442044377,
-0.3668952882,
-0.0231065601,
0.2869678438,
0.3376139998,
0.1861390918,
0.0535354465,
0.0572033934,
0.4321701825,
0.0973458961,
-0.0312683694,
-0.3652655184,
-0.2201037258,
-0.1773604751,
-0.1647170633,
0.2137079388,
-0.1119706184,
-0.0263847206,
0.0206159875,
0.4543176293,
0.0254195742,
0.3166468143,
0.5609063506,
-0.0086842952,
0.0562907159,
-0.0617436022,
0.2057053149,
-0.3324811459,
0.0553646274,
-0.2353460789,
0.1793927401,
-0.1580760926,
0.4365592897,
0.3157142103,
-0.1924033165,
0.243403405,
-0.0899508297,
0.3111637831,
-0.0863915011,
-0.4890426099,
0.1210112721,
-0.062713556,
0.1773451418,
0.3434855938,
0.1568648517,
0.0252493639,
-0.1677125245,
-0.2320309728,
0.0475369059,
-0.099375546,
-0.4261004627,
0.1799601614,
0.0040102629,
-0.7843837738,
-0.070493415,
-0.2382363677,
0.0518801287,
-0.3201150298,
-0.0828370377,
-0.0346923321,
0.1233798563,
-0.0810023323,
-0.1204080433,
0.3979249299,
0.8179818988,
-0.2055469155,
-0.3096856177,
0.0982952639,
-0.3511708379,
-0.2442210615,
0.086023353,
-0.1583051383,
0.3768188059,
-0.3357266784,
0.0240459722,
0.0935792327,
-0.5804434419,
-0.3814991117,
0.1585713774,
-0.3816028237,
0.3934431076,
0.151445806,
0.2054951191,
-0.1499154121,
-0.0748274997,
0.0192685165,
0.1186420023,
0.0085612349,
-0.140798226,
0.0447786674,
-0.0917113945,
-0.1307628453,
0.3938097954,
0.0397869423,
0.1520830989,
0.0141233038,
-0.0932622701,
0.2983923852,
0.0242913738,
0.0215006154,
0.1544198394,
0.0933709368,
0.2889426351,
0.0212397352,
0.0950858295,
-0.6947935224,
0.4801171124,
-0.1414612979,
-0.0458273292,
-0.0326077826,
-0.0263054036,
-0.4431810975,
-0.0453926474,
-0.3001219928,
-0.0841116533,
-0.0962147862,
0.1292236447,
0.110669449,
-0.1350782365,
-0.4004236758,
0.6751950383,
-0.0943131968,
0.1713161916,
-0.7451927662,
0.3974262178,
0.194711864,
-0.0868467242,
0.0512025021,
0.20665057,
0.1903986037,
-0.0962102041,
0.1047343761,
0.4121129215,
0.2110672444,
0.558755815,
0.2877983749,
-0.0335304365,
0.2027518898,
-0.1274243444,
0.1423564553,
-0.2659286559,
-0.0002726591,
-0.0658710226,
-0.293730855,
0.3341748118,
-0.5461952686,
0.2396397442,
0.0831558332,
-0.1435398012,
0.0649277493,
-0.0296044927,
-0.3804563582,
-0.2112142742,
0.0880403742,
0.1811085939,
0.2727793157,
-0.0523218662,
-0.0888384581,
-0.0532316193,
0.0161198154,
-0.0561434031,
-0.0951897874,
0.0359995887,
-0.105636403,
0.1768859178,
-0.0211716555,
0.0434832349,
0.3026599288,
0.0415336043,
-0.1395223737,
0.4386950135,
0.092224963,
-0.314230144,
-0.0668739751,
0.0141318198,
0.0545437373,
0.2389416546,
-0.2327492982,
-0.0735132322,
-0.1850553453,
-0.2353787124,
-0.0154881533,
-0.0081197433,
-0.4920173585,
-0.1923987865,
-0.0970682204,
0.0108812442,
-0.3327928483,
-0.3969659209,
-0.1954512149,
-0.144861728,
-0.0755322948,
0.2021211088,
0.0469117127,
-0.0488798581,
-0.0252993386,
0.4038214684,
-0.2398244292,
-0.2427618206,
-0.1093614399,
-0.2060202807,
0.0052173594,
-0.0992937982,
0.0874168873,
0.3245896697,
0.1181853041,
-0.3871162832,
0.1491813958,
-0.2018146366,
0.0174569227,
0.1730304211,
-0.0197436363,
0.1845592111,
0.0942517668,
0.1213230193,
0.1275693625,
-0.0826065019,
0.2572710812,
-0.3273715079,
-0.0090721175,
-0.161056608,
0.1111124456,
-0.0915480256,
-0.0079704318,
-0.2030676454,
-0.204892531,
-0.3402988315,
0.2810353041,
0.2639713287,
0.0411635265,
0.0953518674,
0.0282962807,
0.1365262121,
-0.0915088803,
-0.2379804701,
-0.1322860569,
-0.4996320307,
0.3203164041,
-0.2762656212,
-0.2830872834,
0.2194438428,
0.0461466797,
0.2353375256,
-0.1763915122,
-0.4108129144,
-0.2771074474,
0.0160699263,
0.1432330757,
0.1844496131,
0.0899494886,
0.1665912569,
-0.1225304306,
0.1937918812,
-0.1271423548,
-0.4265620708,
0.0765509456,
0.1886967719,
-0.0391559899,
0.0599328019,
-0.0137685137,
-0.4099251926,
0.2823261917,
0.3782166541,
0.105217427,
0.2834402919,
-0.2523254156,
0.5351219177,
-0.1772911549,
-0.2876141965,
-0.4182084799,
0.0430523828,
-0.145289138,
0.4092369676,
0.1031551361,
0.4816666543,
-0.4349182248,
-0.2852452397,
-0.1627854407,
-0.2973940372,
0.147543475,
-0.0869899243,
0.0047628786,
-0.1313243061,
0.1663521081,
-0.2401711047,
-0.0662819073,
0.3122049868,
0.3499373496,
0.3679845333,
0.0262644645,
-0.4378611147,
-0.1701959819,
-0.5005728602,
0.1708435267,
-0.1541527808,
-0.0251797456,
-0.0724878684,
-0.0650562048,
0.0408974253,
0.0637761876,
0.6841914058,
-0.1887329668,
-0.0195712075,
0.096609354,
-0.436637044,
-0.5184405446,
-0.0107423058,
0.0204209816,
0.0945642516,
-0.292106092,
0.7118836045,
-0.1278328001,
-0.1795669645,
-0.0149776032,
0.0669555664,
-0.3077142537,
-0.5341207385,
-0.1238726303,
-0.1011568606,
-0.2607362866,
-0.1624410301,
-0.2175608575,
0.1906074435,
-0.229878366,
0.0954585522,
0.2031240016,
0.0990954787,
0.1969030648,
0.2801133394,
0.2978397906,
0.1896474212,
0.213023141,
0.6372421384,
0.0275461487,
0.1530687362,
0.9239004254,
-0.046832066,
-0.4602428973,
0.0704437941,
0.011451371,
0.2144637853,
0.7202293873,
0.1352735311,
-0.0231176652,
0.1002429128,
-0.0257846564,
-0.4798293412,
0.1955650002,
-0.0651327074,
-0.0694409683,
-0.1875548512,
-0.5182965398,
0.52712363,
-0.0157757532,
-0.1325381696,
0.0328877568,
0.2328213155,
-0.2658754885,
0.1896904707,
-0.3360586464,
0.94068712,
-0.1192092076,
0.1111035943,
0.3445007205,
-0.1220467836,
0.1802069992,
-0.1874605715,
-0.0840542689,
-0.4186710417,
-0.0936372206,
0.0174496025,
0.0198855549,
0.2217464447,
0.1753367186,
0.0181991905,
0.3917312622,
-0.0979969129,
0.3331782818,
-0.0658295527,
0.3596007526,
-0.2881469429,
-0.4684386551,
-0.4678598642,
-0.0313601494,
0.1303113103,
0.516160965,
-0.1084337831,
0.0006574921,
-0.3213737905,
-0.0538523234,
-0.0591961481,
0.1160226688,
0.0677680075,
-0.3043389916,
0.0126144588,
-0.1391739696,
0.0966510773,
0.5446280837,
0.4102607667,
-0.0549126677,
-0.3818917871,
0.3455413878,
-0.179897964,
-0.1451128721,
-0.1270912886,
-0.0435925871,
0.1572127491,
-0.0297554508,
-0.4575298131,
0.090129979,
0.0539882481,
-0.0938003734,
-0.1980830282,
-0.0392029472,
0.1921922565,
-0.4001140594,
-0.3024944365,
-0.0723106116,
0.1089074314,
-0.0383554697,
-0.0001453311,
0.1348375827,
-0.1660438776,
-0.0108957319,
0.0738091543,
-0.1745669544,
-0.1173521653,
0.3436457515,
-0.2097986937,
-0.4444483221,
0.3097706437,
0.2172401696,
0.1550846249,
-0.1097773165,
-0.0975662991,
0.7737318873,
-0.5514724851,
-0.0174979065,
0.1748966277,
-0.0409268439,
0.0647960752,
0.1181081533,
0.2929613888,
-0.1877999008,
0.0366028175,
-0.2655781507,
-0.2557933927,
0.2983637154,
0.3571999371,
0.333314687,
0.1391465217,
-0.0223506261,
-0.0705687255,
0.1161926165,
-0.1815273911,
0.0738835409,
-0.0014753824,
-0.0390495658,
-0.075765036,
0.0599426553,
0.1260180473,
-0.1750863045,
-0.0208101403,
-0.0950208604,
-0.2368923575,
-0.024167655,
-0.093781814,
0.2153734416,
-0.0674381182,
0.0254324339,
-0.1696825475,
-0.004356645,
0.0670331717,
-0.3750537932,
0.4920835495,
0.4089373648,
0.0178058483,
-0.0758010671,
0.4212132096,
0.0512712486,
-0.3927048147,
0.1919647306,
0.1015129313,
0.3376400471,
0.1837995201,
-0.0630839691,
-0.3563361168,
0.0784073621,
0.2738889456,
0.3155680895,
0.5840137005,
0.2642634809,
0.1886253059,
-0.0303344727,
0.21222803,
0.0308367498,
0.3636419475,
0.2789831758,
-0.2436842173,
0.073893562,
0.0531087555,
0.0166670997,
-0.1773863882,
0.0254023261,
0.4528544843,
-0.1886274666,
0.0080014113,
0.5091395974,
0.3761402369,
0.1376876235,
-0.2202732414,
0.0901476592,
0.6002036929,
0.2138186544,
0.1669730246,
0.3559327126,
-0.145129934,
0.1426290423,
0.1686367393,
0.2513789833,
0.0329633057,
0.4167581499,
-0.2745829523,
0.2178087384,
-0.1759044528,
0.3079808056,
0.219541207,
-0.6449376345,
-0.0940785408,
-0.0507528745,
-0.045776695,
-0.1015916765,
-0.278583914,
0.4785921872,
-0.2365756482,
0.2719183564,
-0.2777983248,
0.1164145768,
0.0377784818,
-0.1445249617,
-0.0371823125,
-0.2126279026,
-0.1965853274,
0.0263655819,
0.047147546,
-0.3676445186,
-0.078294754,
-0.0501958318,
-0.1760407239,
0.100522466,
-0.0312528051,
0.0229716171,
0.0862498134,
-0.0888631418,
0.1638616472,
0.1587536186,
-0.040790271,
0.5192745924,
-0.0297947414,
0.2703089118,
0.0813474655,
0.1048222631,
0.3239403665,
0.1540471613,
0.0349780172,
0.0429112092,
0.0518306643,
-0.0961506516,
0.1712155044,
0.1026493758,
0.1107038632,
-0.067204617,
-0.1166225001,
0.0935929567,
0.2494936883,
-0.255251646,
0.5723494291,
-0.203075856,
-0.0149673717,
-0.292861402,
0.151933834,
-0.2588769197,
-0.1510014683,
0.245126918,
0.0623827837,
0.0404308364,
0.064768374,
-0.0096926037,
0.0357494242,
0.5596624613,
0.2839493454,
0.0280303285,
-0.2593328655,
-0.2462727875,
-0.6321680546,
0.1345167458,
0.2703510523,
-0.2286105007,
0.1627491415,
-0.0104007069,
-0.0529045463,
-0.0320753828,
-0.0394314639,
-0.0420340598,
0.0229632501,
0.0348280892,
-0.0948015302,
-0.138098523,
-0.1663156301,
0.2208834738,
0.0179726016,
0.0056126104,
0.0052848384,
0.0692076162,
-0.2119024098,
0.1769545674,
0.1056461856,
0.0496785678,
-0.3759785891,
0.438100636,
-0.3384903967,
0.4965547025,
0.048298452,
-0.0066407528,
-0.4440835416,
-0.2576940656,
-0.133468464,
0.2288915068,
-0.0676167607,
0.2034165263,
-0.178079173,
-0.1754687428,
-0.1982627362,
-0.0344831906,
0.1834958494,
0.0224094763,
-0.0465481542,
-0.0120562576,
-0.2450477332,
0.1177884266,
0.4059952497,
0.3005674183,
-0.0973843858,
0.1472424567,
-0.0580697171,
-0.0776065737,
0.6615548134,
-0.0835036114,
-0.1371859014,
-0.1214312762,
0.1759648472,
-0.1822692305,
-0.266977787,
-0.5016802549,
0.2890625,
0.0685741231,
-0.0049372059,
-0.044311557,
0.226268068,
-0.1545589268,
-0.1412266791,
0.0159415994,
-0.0316936076,
0.2175301611,
-0.0204017647,
-0.1749589294,
-0.1276213676
] |
https://github.com/huggingface/datasets/issues/3300 | ❓ Dataset loading script from Hugging Face Hub | Hi ! The `gen_kwargs` dictionary is passed to `_generate_examples`, so in your case it must be defined this way:
```python
def _generate_examples(self, filepath):
...
```
And here is an additional tip: you can use `os.path.join(downloaded_file, "dataset/testing_data")` instead of `f"downloaded_file}/dataset/testing_data/"` to get compatibility with Windows and streaming.
Indeed Windows uses a backslash separator, not a slash, and streaming uses chained URLs (like `zip://dataset/testing_data::https://https://guillaumejaume.github.io/FUNSD/dataset.zip` for example) | Hi there,
I am trying to add my custom `ag_news` with its own loading script on the Hugging Face datasets hub. In particular, I would like to test the addition of a second configuration to the existing `ag_news` dataset. Once it works in my hub, I plan to make a PR to the original dataset. However, in trying to do so I have encountered certain problems as detailed below.
Issues I have encountered:
- Without a loading script, the train and test files are loaded together into a unique `dataset.Dataset` -> so I wrote a loading script. Also, I need a loading script otherwise I cannot specify multiple configurations
- Once my loading script is working locally, I do not manage to make it work on the hub. In particular, I would like to be able to load the dataset like this
```python
load_dataset("pietrolesci/ag_news", name="my_configuration")
```
Apparently, the `load_dataset` is able to pick up the loading script from the hub and run it. However, it errors because it is unable to find the files. The structure of my hub repo is the following
```
ag_news.py
train.csv
test.csv
```
and the loading script I specify `data_dir=Path(__file__).parent` and `data_files=DataFilesDict({"train": "train.csv", "test": "test.csv"})`. In the documentation I could not find info regarding loading a dataset from the hub using a loading script present on the hub.
Any suggestion is very much appreciated.
Best,
Pietro
Link to the hub repo: https://huggingface.co/datasets/pietrolesci/ag_news
BONUS: how can I make the data viewer work in this specific case? :) | 64 | ❓ Dataset loading script from Hugging Face Hub
Hi there,
I am trying to add my custom `ag_news` with its own loading script on the Hugging Face datasets hub. In particular, I would like to test the addition of a second configuration to the existing `ag_news` dataset. Once it works in my hub, I plan to make a PR to the original dataset. However, in trying to do so I have encountered certain problems as detailed below.
Issues I have encountered:
- Without a loading script, the train and test files are loaded together into a unique `dataset.Dataset` -> so I wrote a loading script. Also, I need a loading script otherwise I cannot specify multiple configurations
- Once my loading script is working locally, I do not manage to make it work on the hub. In particular, I would like to be able to load the dataset like this
```python
load_dataset("pietrolesci/ag_news", name="my_configuration")
```
Apparently, the `load_dataset` is able to pick up the loading script from the hub and run it. However, it errors because it is unable to find the files. The structure of my hub repo is the following
```
ag_news.py
train.csv
test.csv
```
and the loading script I specify `data_dir=Path(__file__).parent` and `data_files=DataFilesDict({"train": "train.csv", "test": "test.csv"})`. In the documentation I could not find info regarding loading a dataset from the hub using a loading script present on the hub.
Any suggestion is very much appreciated.
Best,
Pietro
Link to the hub repo: https://huggingface.co/datasets/pietrolesci/ag_news
BONUS: how can I make the data viewer work in this specific case? :)
Hi ! The `gen_kwargs` dictionary is passed to `_generate_examples`, so in your case it must be defined this way:
```python
def _generate_examples(self, filepath):
...
```
And here is an additional tip: you can use `os.path.join(downloaded_file, "dataset/testing_data")` instead of `f"downloaded_file}/dataset/testing_data/"` to get compatibility with Windows and streaming.
Indeed Windows uses a backslash separator, not a slash, and streaming uses chained URLs (like `zip://dataset/testing_data::https://https://guillaumejaume.github.io/FUNSD/dataset.zip` for example) | [
-0.0499408469,
-0.3830170929,
0.0404729098,
0.292393595,
0.0143705336,
0.2027331442,
0.2845098078,
0.0854050219,
0.6453068852,
0.2024909407,
-0.186206311,
0.0076824403,
-0.1077618524,
0.4451583326,
0.4212681055,
0.0472498462,
0.0251382291,
0.0623590723,
0.1722055823,
0.0322778821,
-0.1175384149,
0.3261954188,
0.0835316479,
0.029831592,
-0.4897893667,
0.2181456983,
-0.2584882677,
0.4616764188,
0.0781070888,
-0.3994253576,
0.2592483759,
0.4347686768,
0.2646139264,
0.6532837152,
-0.0001256706,
0.0983414799,
0.1831784993,
-0.1268396825,
-0.099591434,
-0.2488797903,
0.1088696793,
-0.1258211732,
0.1295740157,
-0.0412329473,
-0.2352453768,
0.0514738634,
0.0071594086,
-0.0854756832,
0.3432637155,
0.1919134706,
0.0557213724,
0.3130876422,
-0.1096156687,
-0.4004019797,
-0.0044505252,
0.2205821276,
0.0413919874,
0.4126245081,
0.1528258324,
-0.1070879027,
-0.1383879781,
-0.0515687689,
0.1415693015,
-0.286137104,
0.4048372507,
0.125398308,
0.0047110305,
-0.2478716075,
0.0267852768,
0.1079023853,
0.3163541257,
-0.4413034022,
-0.212583214,
-0.5557175875,
0.1657112688,
-0.0668985471,
0.1956506371,
0.0687862337,
-0.2638607621,
0.2915759385,
-0.2055280358,
-0.4065824449,
-0.2026361525,
-0.0919546634,
0.0366612114,
-0.0210407693,
0.0121213207,
0.0790686682,
0.167733252,
0.1014056653,
0.1810568571,
-0.1635069549,
-0.0307982266,
0.2440332472,
-0.2827417254,
-0.0422430262,
0.0737723932,
0.4556821883,
0.0851606056,
0.4001601338,
0.2814916968,
0.1281612813,
-0.3147525787,
-0.0243003536,
0.2842283249,
0.2892521322,
0.2115802914,
0.0681542531,
0.0441819057,
0.4761965573,
0.0837376937,
-0.0383363403,
-0.3607431352,
-0.206482783,
-0.1459322572,
-0.1868605018,
0.1739719212,
-0.0880524069,
0.005841211,
0.0174902957,
0.4186496437,
0.041983813,
0.2834315002,
0.5610795617,
-0.0514259152,
0.0488823391,
-0.058055196,
0.2198456079,
-0.2644791007,
0.0968307331,
-0.2174402922,
0.1693611741,
-0.1314844936,
0.4672180712,
0.3219361603,
-0.1758645922,
0.2732131481,
-0.0757856146,
0.3092550635,
-0.0647308007,
-0.4515857995,
0.1390289515,
-0.0642550364,
0.1981268376,
0.3595630825,
0.1519025415,
0.0077245613,
-0.1802499741,
-0.248064056,
0.0554382056,
-0.0489047132,
-0.4266541004,
0.1781183332,
-0.0076069841,
-0.7926706076,
-0.0813597143,
-0.2587617934,
0.0854091942,
-0.313785851,
-0.1358246505,
-0.0824059248,
0.1593906581,
-0.0859361961,
-0.141391933,
0.435566932,
0.8009179235,
-0.1905509979,
-0.291629225,
0.0452529751,
-0.2992217541,
-0.2481766641,
0.0575753525,
-0.1315384805,
0.3868304789,
-0.3284612596,
0.0025860679,
0.0877194181,
-0.5646018982,
-0.3841982186,
0.1859821975,
-0.3278986216,
0.3879548907,
0.1763523519,
0.1955647171,
-0.1890693605,
-0.0676633045,
-0.0095248753,
0.1224913523,
-0.010341146,
-0.128368482,
0.0492965505,
-0.1105655134,
-0.1392369419,
0.386675179,
0.0338394642,
0.1787729561,
-0.0216511916,
-0.0977854505,
0.3324012458,
0.0123426374,
0.0146468533,
0.1088446379,
0.1146215349,
0.2684595287,
0.0176604465,
0.0964812711,
-0.6864129305,
0.4811427295,
-0.1703355908,
-0.0456201211,
-0.0413909331,
-0.0487150513,
-0.5014395118,
-0.0474921502,
-0.2889678478,
-0.1028536931,
-0.0976987556,
0.0823429599,
0.1514165699,
-0.1251447797,
-0.3874191642,
0.6531110406,
-0.0577685758,
0.1640736014,
-0.7522265315,
0.4222581089,
0.1910496056,
-0.0732269585,
0.0355240181,
0.1866288036,
0.1886079907,
-0.0724654421,
0.1356274486,
0.383002758,
0.2247298658,
0.5510325432,
0.283606559,
-0.0467483476,
0.1749434173,
-0.1294295639,
0.1229722872,
-0.2638165057,
0.0029359437,
-0.0517250523,
-0.3186348677,
0.3298034966,
-0.5255205631,
0.2054547966,
0.0796158835,
-0.124832131,
0.0552208312,
-0.0334820747,
-0.3449563384,
-0.2087484747,
0.0328055248,
0.165678218,
0.2314490825,
-0.0868927389,
-0.0847055614,
-0.0520731024,
-0.017488692,
-0.0966446698,
-0.1223100945,
0.0658021793,
-0.1083948463,
0.1423853636,
-0.0437816344,
0.046491459,
0.3151605725,
0.0469905846,
-0.1237514019,
0.4232677221,
0.1169123277,
-0.2850213051,
-0.03293797,
0.0131738698,
0.1024231389,
0.2590565085,
-0.2402907163,
-0.0890000463,
-0.1493279487,
-0.2349272668,
-0.0348790176,
0.0356963612,
-0.4850830436,
-0.1717492044,
-0.0559364744,
0.0290639997,
-0.2937556505,
-0.409707129,
-0.1922965944,
-0.1449240446,
-0.0701436922,
0.2697347999,
0.0485945605,
-0.084128201,
-0.0067873592,
0.4119845033,
-0.2064612508,
-0.2137079537,
-0.1478280574,
-0.2036687285,
0.0264418256,
-0.0909143537,
0.1037979573,
0.3092050254,
0.1128839552,
-0.368663013,
0.1403097063,
-0.1770173758,
0.0093976073,
0.1316219121,
-0.0418954752,
0.2596684396,
0.1331245601,
0.1750511378,
0.0824608505,
-0.1286530942,
0.2352560759,
-0.3252561688,
0.00012985,
-0.1463752389,
0.0865161419,
-0.0457575582,
0.0063666399,
-0.1511627585,
-0.2069810778,
-0.3272566795,
0.3049990535,
0.3199059367,
0.0471819267,
0.1079927012,
0.0587994307,
0.1121713296,
-0.0597516447,
-0.243033573,
-0.112393111,
-0.5100331306,
0.3396885693,
-0.2841672897,
-0.2764907479,
0.2026758641,
-0.0071478821,
0.2625919282,
-0.2137931585,
-0.4428612888,
-0.2881093919,
0.0161233358,
0.1254367083,
0.1917484701,
0.0595664382,
0.1441065967,
-0.1118823439,
0.1896671802,
-0.1201141477,
-0.390684098,
0.0981812105,
0.1758269668,
-0.0466289148,
0.0906873792,
-0.040537212,
-0.404884547,
0.3249157369,
0.423622936,
0.1023937464,
0.2594900727,
-0.273727864,
0.5077312589,
-0.1687913686,
-0.3000267148,
-0.4541241229,
0.0571406633,
-0.1497905999,
0.4008108079,
0.1159558222,
0.4474008679,
-0.4258575737,
-0.2700093985,
-0.1876269728,
-0.3085500002,
0.1293947995,
-0.0831493735,
-0.0135536781,
-0.1324167401,
0.1616957486,
-0.2624965012,
-0.0976440609,
0.2928928435,
0.3459997475,
0.3730652332,
0.0339619033,
-0.3603354096,
-0.182997629,
-0.4896523356,
0.1732344776,
-0.1465616971,
-0.090293102,
-0.0432478078,
-0.0844821259,
0.0344096981,
0.0626105666,
0.7113107443,
-0.2299078405,
-0.0017382288,
0.0745482966,
-0.4131539762,
-0.4901143014,
0.0113875428,
0.051005777,
0.0334421657,
-0.3225869834,
0.6796743274,
-0.1417171955,
-0.1591252089,
0.0134420246,
0.069915995,
-0.2854762375,
-0.5247818232,
-0.1297508925,
-0.1107213423,
-0.2481801659,
-0.1810451448,
-0.1959559768,
0.1861420572,
-0.2418084145,
0.0799876079,
0.1844070256,
0.1043082923,
0.2088088095,
0.307913214,
0.3175483048,
0.186980769,
0.2180195451,
0.645617187,
-0.0268345308,
0.1363617331,
0.8795880079,
-0.0148508567,
-0.4421187341,
0.0609591193,
0.0388868637,
0.1951446831,
0.7170467973,
0.1315324605,
-0.0256130807,
0.1163188443,
0.0032519088,
-0.4727663398,
0.1829004288,
-0.059124507,
-0.1231546476,
-0.2160045356,
-0.5641527176,
0.5555518866,
-0.0051322365,
-0.137906611,
0.0419651605,
0.2436775118,
-0.2642455399,
0.1863526553,
-0.321827203,
0.9684004188,
-0.0989406109,
0.1322307587,
0.3893672526,
-0.0973052531,
0.1851002723,
-0.1819729954,
-0.0733706132,
-0.4428025484,
-0.1007792652,
-0.0064777276,
0.0244902652,
0.2048085928,
0.1823962927,
-0.0362353362,
0.3673222065,
-0.1057745144,
0.308986932,
-0.0730779096,
0.3299084902,
-0.3070313931,
-0.4310949147,
-0.5048843026,
-0.0389803424,
0.1411670446,
0.5012978911,
-0.0802688599,
-0.0544941761,
-0.3446277678,
-0.067668803,
-0.082321547,
0.0986981541,
0.0836652964,
-0.2896367311,
0.02030381,
-0.1577242762,
0.0974397138,
0.5933679938,
0.4133217633,
-0.0166673064,
-0.3972312212,
0.357288897,
-0.234489426,
-0.1720699668,
-0.1436875761,
-0.0353541933,
0.1482304335,
-0.0549483933,
-0.474429369,
0.1127444506,
0.055025328,
-0.079999283,
-0.1852840185,
-0.0574646778,
0.2126546651,
-0.4217096865,
-0.3011526763,
-0.0880760252,
0.1006580666,
-0.050177414,
-0.0086507173,
0.1277955621,
-0.1636476368,
-0.0275995508,
0.0601416118,
-0.1547931731,
-0.1065212935,
0.3472702503,
-0.2063246816,
-0.4415396154,
0.3167709708,
0.2023961842,
0.1500132531,
-0.1177441254,
-0.0376301408,
0.7548660636,
-0.5624109507,
0.0031724903,
0.214754343,
-0.0269921422,
0.1114628315,
0.1191546842,
0.3031579554,
-0.1812897772,
0.0575142577,
-0.2436355352,
-0.291177392,
0.3053274155,
0.320230633,
0.3409962654,
0.1165535301,
-0.0487389863,
-0.0755482465,
0.1105418354,
-0.1732308418,
0.0692994148,
0.0084458347,
-0.0496677794,
-0.0995871872,
0.0323583409,
0.1221897751,
-0.1998895705,
-0.020168215,
-0.1007113159,
-0.2590568662,
-0.013999166,
-0.1263514161,
0.2225222737,
-0.0702498853,
0.0231522843,
-0.1420102865,
0.0430380553,
0.0412801132,
-0.3660651445,
0.5198351145,
0.3572696149,
0.0410531908,
-0.0579294413,
0.4400666356,
0.0547927693,
-0.4154498875,
0.1507042348,
0.0785192326,
0.3482488394,
0.1926220059,
-0.064179115,
-0.3585241139,
0.0674516559,
0.3206261396,
0.3653208911,
0.5689325929,
0.2124127746,
0.2202976793,
-0.0332497731,
0.1921510994,
0.0167373139,
0.3635695577,
0.2682850957,
-0.2328218967,
0.0784208179,
0.0917676315,
0.0034388406,
-0.1774957478,
0.0315106921,
0.4286078215,
-0.2165808082,
0.0149821471,
0.5093249083,
0.3198598027,
0.1227200702,
-0.2463376224,
0.1218528226,
0.6115915775,
0.2125070244,
0.1845821291,
0.4006332159,
-0.1366078854,
0.1170963868,
0.1269213557,
0.2752058506,
0.0451727733,
0.4005480409,
-0.30059129,
0.1987741143,
-0.232823357,
0.2683520913,
0.2231562436,
-0.6401904821,
-0.1041670442,
-0.0214292202,
-0.0816478133,
-0.071497947,
-0.2321090996,
0.5196775198,
-0.2341000289,
0.2720042765,
-0.3178573847,
0.1001946554,
0.082923837,
-0.1273472756,
-0.0484587178,
-0.2252175212,
-0.2228276134,
0.0014426758,
0.0689353943,
-0.4192028046,
-0.0591974817,
-0.0468896143,
-0.1709162295,
0.1061334461,
-0.0087132379,
0.0287709422,
0.1327214688,
-0.1000335887,
0.1090400442,
0.1905753464,
-0.0907588229,
0.4890682697,
-0.0346256569,
0.3073062003,
0.0402641259,
0.0793144852,
0.3557798564,
0.1526215076,
0.0139874825,
0.0650832355,
0.0808897242,
-0.052957885,
0.1363115162,
0.0770662948,
0.1043726876,
-0.0628345981,
-0.1151266769,
0.1178670824,
0.2826099694,
-0.2492363453,
0.5772539377,
-0.2095239758,
-0.0169269238,
-0.2553087473,
0.1539368778,
-0.2826820612,
-0.1720623076,
0.1846873313,
0.0741226077,
0.0146952486,
0.0592238903,
-0.0140767945,
0.0357960872,
0.5791628361,
0.2448851764,
0.0563245229,
-0.2682632804,
-0.2534024119,
-0.6021998525,
0.0826104581,
0.2946022153,
-0.2347452492,
0.1588196307,
-0.0349889807,
-0.0568359978,
-0.0335374363,
-0.0866515636,
-0.0182788149,
0.0085471943,
0.1089530289,
-0.0906220376,
-0.0963050947,
-0.1576764286,
0.2331353575,
0.0102083674,
0.0019419487,
-0.0072055953,
0.0225651022,
-0.2089170367,
0.2163200527,
0.1184400991,
0.0685884729,
-0.3265172839,
0.3996221423,
-0.3388630748,
0.5439347625,
0.0259053241,
-0.0283994284,
-0.4252232313,
-0.2298514098,
-0.1578383744,
0.1870329529,
-0.0171452332,
0.2443436682,
-0.1587712318,
-0.2072677165,
-0.1671160907,
-0.0134008545,
0.2115856707,
0.0200393833,
-0.0715801865,
-0.0106614726,
-0.2460053265,
0.1477297097,
0.3915282488,
0.2480335385,
-0.1083214656,
0.1427832246,
-0.0404368117,
-0.1008394286,
0.6995907426,
-0.1004823744,
-0.1281141043,
-0.1402998418,
0.165830031,
-0.1972979158,
-0.2625654638,
-0.493928194,
0.3032598794,
0.0535524637,
0.002268435,
-0.0204372555,
0.2675697505,
-0.1754363477,
-0.1534373164,
0.0244574808,
-0.0030211436,
0.212538451,
-0.0452094711,
-0.1922706366,
-0.1445210129
] |
https://github.com/huggingface/datasets/issues/3300 | ❓ Dataset loading script from Hugging Face Hub | Thanks for you quick reply @lhoestq and so sorry for my very delayed response.
We have gotten around the error another way but I will try to duplicate this when I can. We may have had "filepaths" instead of "filepath" in our def of _generate_examples() and not noticed the difference. If I find a more useful answer for others I will add to this ticket so they know what the issue was.
Note: we do have our own _generate_examples() defined with the same def as Quentin has. (But one version does have "filepaths".)
| Hi there,
I am trying to add my custom `ag_news` with its own loading script on the Hugging Face datasets hub. In particular, I would like to test the addition of a second configuration to the existing `ag_news` dataset. Once it works in my hub, I plan to make a PR to the original dataset. However, in trying to do so I have encountered certain problems as detailed below.
Issues I have encountered:
- Without a loading script, the train and test files are loaded together into a unique `dataset.Dataset` -> so I wrote a loading script. Also, I need a loading script otherwise I cannot specify multiple configurations
- Once my loading script is working locally, I do not manage to make it work on the hub. In particular, I would like to be able to load the dataset like this
```python
load_dataset("pietrolesci/ag_news", name="my_configuration")
```
Apparently, the `load_dataset` is able to pick up the loading script from the hub and run it. However, it errors because it is unable to find the files. The structure of my hub repo is the following
```
ag_news.py
train.csv
test.csv
```
and the loading script I specify `data_dir=Path(__file__).parent` and `data_files=DataFilesDict({"train": "train.csv", "test": "test.csv"})`. In the documentation I could not find info regarding loading a dataset from the hub using a loading script present on the hub.
Any suggestion is very much appreciated.
Best,
Pietro
Link to the hub repo: https://huggingface.co/datasets/pietrolesci/ag_news
BONUS: how can I make the data viewer work in this specific case? :) | 93 | ❓ Dataset loading script from Hugging Face Hub
Hi there,
I am trying to add my custom `ag_news` with its own loading script on the Hugging Face datasets hub. In particular, I would like to test the addition of a second configuration to the existing `ag_news` dataset. Once it works in my hub, I plan to make a PR to the original dataset. However, in trying to do so I have encountered certain problems as detailed below.
Issues I have encountered:
- Without a loading script, the train and test files are loaded together into a unique `dataset.Dataset` -> so I wrote a loading script. Also, I need a loading script otherwise I cannot specify multiple configurations
- Once my loading script is working locally, I do not manage to make it work on the hub. In particular, I would like to be able to load the dataset like this
```python
load_dataset("pietrolesci/ag_news", name="my_configuration")
```
Apparently, the `load_dataset` is able to pick up the loading script from the hub and run it. However, it errors because it is unable to find the files. The structure of my hub repo is the following
```
ag_news.py
train.csv
test.csv
```
and the loading script I specify `data_dir=Path(__file__).parent` and `data_files=DataFilesDict({"train": "train.csv", "test": "test.csv"})`. In the documentation I could not find info regarding loading a dataset from the hub using a loading script present on the hub.
Any suggestion is very much appreciated.
Best,
Pietro
Link to the hub repo: https://huggingface.co/datasets/pietrolesci/ag_news
BONUS: how can I make the data viewer work in this specific case? :)
Thanks for you quick reply @lhoestq and so sorry for my very delayed response.
We have gotten around the error another way but I will try to duplicate this when I can. We may have had "filepaths" instead of "filepath" in our def of _generate_examples() and not noticed the difference. If I find a more useful answer for others I will add to this ticket so they know what the issue was.
Note: we do have our own _generate_examples() defined with the same def as Quentin has. (But one version does have "filepaths".)
| [
-0.0717485547,
-0.3505972624,
0.0383090451,
0.328047812,
0.0319311991,
0.1988090426,
0.3233024776,
0.1017355695,
0.6908878088,
0.2111232132,
-0.1766379327,
-0.0175198559,
-0.1154559851,
0.4286899865,
0.4041127563,
0.0324170031,
-0.0001025203,
0.0363319814,
0.1870840937,
0.0189163052,
-0.122962594,
0.3319467902,
0.1023662388,
0.0518043078,
-0.5313972831,
0.2066440582,
-0.2494580448,
0.4917791486,
0.0616671517,
-0.3541391194,
0.2583396137,
0.3971169293,
0.319855541,
0.6629229784,
-0.0001243056,
0.1237238869,
0.1746206731,
-0.1385750622,
-0.0852005109,
-0.2658959031,
0.0827093944,
-0.1128917336,
0.1628900319,
-0.0383759737,
-0.2247492075,
0.0760409236,
0.0034779392,
-0.086106874,
0.306593895,
0.2088812143,
0.0691946,
0.3475868106,
-0.132439658,
-0.4452583194,
0.0347783081,
0.1857174039,
0.04471628,
0.416231364,
0.2043057531,
-0.1209832951,
-0.1419691145,
-0.0762254745,
0.1272260696,
-0.2640424967,
0.3903525174,
0.1036339104,
-0.0398120433,
-0.225495562,
0.0415376015,
0.1174839437,
0.3514605165,
-0.4162595868,
-0.2069402039,
-0.5414787531,
0.1421429366,
-0.0105675375,
0.2338217795,
0.068677932,
-0.2433253229,
0.2881405652,
-0.1738775373,
-0.4040131271,
-0.1957554519,
-0.0995676145,
0.0653300881,
-0.1251263767,
-0.0037572973,
0.0759404525,
0.1369052678,
0.1348493844,
0.1721024364,
-0.1542003006,
0.0211611129,
0.2174008042,
-0.2800221443,
-0.0179256611,
0.0775534064,
0.4689212739,
0.0287844595,
0.392724514,
0.2778261006,
0.1054234505,
-0.3393213451,
-0.0097077554,
0.2878980041,
0.3157760799,
0.161741972,
0.0355035849,
0.0366151482,
0.4773263037,
0.0790033862,
-0.05932495,
-0.3967251778,
-0.2549377382,
-0.1834298074,
-0.174700439,
0.1804806143,
-0.0930660367,
-0.0486257561,
-0.0042531579,
0.4456155896,
0.0379284397,
0.3211870193,
0.5832653642,
0.0006399709,
0.0418340974,
-0.0633492246,
0.2077433616,
-0.2767314613,
0.0921917409,
-0.2363739312,
0.2126917541,
-0.1577061564,
0.442234993,
0.3562929332,
-0.1844428182,
0.2725761235,
-0.1091453508,
0.2959358394,
-0.0594244935,
-0.4431802928,
0.1322153658,
-0.0518547632,
0.2071539462,
0.3730877936,
0.1425226927,
0.0339812376,
-0.1856350005,
-0.2256069928,
0.0387308784,
-0.0983548984,
-0.4446665049,
0.1678171903,
-0.0013214456,
-0.7579590678,
-0.0677505359,
-0.2606962025,
0.0237948224,
-0.3291982412,
-0.129270941,
-0.0697281361,
0.1572114676,
-0.0443515182,
-0.1366102248,
0.3869754374,
0.8359969854,
-0.2197546065,
-0.2807494402,
0.0474633165,
-0.3041673601,
-0.2409350425,
0.1006200835,
-0.1625526845,
0.4139587581,
-0.3665864766,
-0.0024959645,
0.0470087864,
-0.589800477,
-0.3620824218,
0.1924864203,
-0.3666900694,
0.3581027091,
0.1930382252,
0.1897537261,
-0.1515367627,
-0.1213347465,
0.054346852,
0.0484384149,
-0.0082072616,
-0.1575737298,
0.045786079,
-0.1029074043,
-0.1410526484,
0.3700057864,
0.0390712433,
0.1953780502,
-0.0022858013,
-0.0881348103,
0.2912035882,
0.0215735193,
0.0149184242,
0.1352941245,
0.1052438542,
0.2769113183,
0.0327703282,
0.0820803866,
-0.673173666,
0.4726196229,
-0.1451391876,
-0.0747927576,
-0.0208549742,
-0.0187926609,
-0.4844641685,
-0.0757582411,
-0.267519176,
-0.0824900344,
-0.0886695683,
0.0719375834,
0.1065606847,
-0.1648088545,
-0.4099761844,
0.6543115377,
-0.1103368327,
0.1522451937,
-0.7318329811,
0.4408034682,
0.1761381179,
-0.0567427911,
0.0699295104,
0.1813008785,
0.2032769024,
-0.0794848949,
0.1408380568,
0.3896510899,
0.2042529136,
0.5383117795,
0.3462732136,
-0.0189683829,
0.1657628566,
-0.1739309728,
0.1629269421,
-0.2703406811,
0.0204524845,
-0.0473535806,
-0.297518611,
0.297924757,
-0.5891465545,
0.2173957676,
0.1241815463,
-0.1201953143,
0.0532172956,
-0.035548728,
-0.3529349566,
-0.1870609075,
0.0825930312,
0.1770012081,
0.25788486,
-0.06893792,
-0.084157072,
-0.0622256696,
0.005836152,
-0.0748082995,
-0.1027879268,
0.0715803802,
-0.1163085252,
0.155116722,
-0.0510937013,
0.090711005,
0.3250443935,
0.0546096936,
-0.1420339197,
0.4131687582,
0.1107394472,
-0.3293682337,
-0.0107839592,
0.0333986394,
0.0636412278,
0.2469015419,
-0.2849287987,
-0.0572531894,
-0.1804654896,
-0.2401589006,
-0.0568774864,
0.0020763695,
-0.492287457,
-0.1937585324,
-0.0686613023,
0.0338695496,
-0.3145112097,
-0.4024431407,
-0.1901721209,
-0.1208490431,
-0.0540410988,
0.2346516997,
0.0385146253,
-0.088980563,
-0.0102234427,
0.4278482497,
-0.2084944546,
-0.2107398659,
-0.1379933655,
-0.1947521716,
0.042085737,
-0.0867424309,
0.0940364152,
0.3118622303,
0.0848643482,
-0.3916740417,
0.1454078555,
-0.2211444825,
0.0490453765,
0.1562215239,
-0.0250067245,
0.2202173769,
0.1585193127,
0.1961460859,
0.1072449684,
-0.1115810275,
0.2155295312,
-0.3049223423,
0.012910896,
-0.125235036,
0.0895582959,
-0.0824309513,
0.0129771335,
-0.2128298283,
-0.1802696735,
-0.3353612721,
0.2832259238,
0.2986799181,
0.040462736,
0.0873340368,
0.0606222935,
0.1331112087,
-0.072747387,
-0.2273639888,
-0.1172125712,
-0.5437437892,
0.3262856901,
-0.2810083926,
-0.285527885,
0.2395117879,
0.0166909583,
0.2565174103,
-0.2250955254,
-0.3971224725,
-0.2715879381,
0.0171127319,
0.0989719182,
0.2026394904,
0.0731015727,
0.1833966523,
-0.1082955226,
0.1687831581,
-0.1505970657,
-0.3926456869,
0.1044905707,
0.1429700851,
-0.0393519662,
0.0741489604,
-0.022589514,
-0.3959669769,
0.3328291178,
0.3965248764,
0.1105421707,
0.2867385447,
-0.2517838776,
0.5248041749,
-0.2012888938,
-0.3014826775,
-0.4009758532,
0.0358767882,
-0.1743991822,
0.3919110298,
0.1214288026,
0.4695172608,
-0.4067409039,
-0.255990088,
-0.1826439798,
-0.294326067,
0.1282838136,
-0.0532163605,
-0.025374148,
-0.0998727158,
0.14093481,
-0.2551753223,
-0.0756915733,
0.3046295941,
0.3769239783,
0.4252521992,
0.0371373855,
-0.3649972677,
-0.1579366177,
-0.4895960689,
0.1387984306,
-0.1783261299,
-0.0555786416,
-0.0741900206,
-0.0667472184,
0.0192225892,
0.0869479999,
0.7183208466,
-0.212434113,
0.0120901689,
0.0579303093,
-0.4013902247,
-0.5072156191,
0.0179146565,
0.0380097814,
0.0937052816,
-0.3429344594,
0.6921226382,
-0.0868628398,
-0.1831234694,
0.0171450749,
0.056313552,
-0.2664823234,
-0.5241477489,
-0.1211712211,
-0.1161676198,
-0.2434622496,
-0.1957502663,
-0.152776137,
0.1726541072,
-0.2604469061,
0.0712582693,
0.2069264203,
0.0839114562,
0.2028476298,
0.2435446978,
0.3111887276,
0.1665825397,
0.2156133652,
0.6614496112,
0.0584454685,
0.1695818454,
0.8710237145,
-0.0480560958,
-0.4328409433,
0.1082536429,
0.0263469871,
0.1979407668,
0.7204563022,
0.0988343805,
-0.0469192825,
0.1193028241,
-0.029094195,
-0.4718880653,
0.1637235284,
-0.0719121918,
-0.1322477907,
-0.1926688701,
-0.5201931,
0.5345656872,
-0.0042991284,
-0.1238474995,
0.0473889261,
0.2323554158,
-0.2682558596,
0.1666518301,
-0.3359680474,
0.9343627691,
-0.1185901836,
0.1262374073,
0.3494654298,
-0.1014747173,
0.1458748877,
-0.1952824295,
-0.070093967,
-0.4207538962,
-0.142869845,
-0.0169180501,
0.0004871642,
0.1965436041,
0.2166085094,
-0.0059645623,
0.3914328516,
-0.1060010493,
0.3241326213,
-0.0551968403,
0.322589159,
-0.3026924729,
-0.4263547063,
-0.4768694043,
-0.0332152173,
0.1642561853,
0.5096517801,
-0.0936619639,
-0.0240869839,
-0.3082395792,
-0.0970883071,
-0.0628300533,
0.0914879888,
0.0623642765,
-0.29580006,
0.0296403207,
-0.1221651509,
0.1352725625,
0.5728513002,
0.3892603815,
-0.0418775715,
-0.4072183669,
0.3616273701,
-0.226445809,
-0.1975383013,
-0.1297482848,
-0.0433101095,
0.145907402,
-0.0354457721,
-0.4411227107,
0.0826238617,
0.0232363045,
-0.0947346017,
-0.1674104035,
-0.0413295217,
0.2313893586,
-0.4198221564,
-0.3168598413,
-0.1045799777,
0.0886205286,
-0.0544614568,
0.0028996025,
0.1387466043,
-0.1322805136,
-0.0568901189,
0.0723511204,
-0.1518039405,
-0.1072204635,
0.3512506485,
-0.2124640048,
-0.4336372614,
0.3110375404,
0.2295833975,
0.135288164,
-0.137509495,
-0.0606606528,
0.7895264626,
-0.5588035583,
0.0215235129,
0.2149347663,
-0.0155859692,
0.099326238,
0.1087003648,
0.3130755424,
-0.2001664937,
0.0280484576,
-0.2887372077,
-0.2754113674,
0.3105781376,
0.3117097914,
0.3244826794,
0.1079994887,
-0.0788905174,
-0.0364170335,
0.0485009477,
-0.1850601584,
0.0981228426,
-0.0256313421,
-0.0594092421,
-0.0730922744,
0.037595924,
0.1427935511,
-0.1839803457,
-0.0211035684,
-0.1113392934,
-0.2380743325,
-0.0249087159,
-0.0885000154,
0.2125351578,
-0.0713482723,
0.0360389017,
-0.1456602067,
0.0233834758,
0.0129781915,
-0.356649518,
0.4900662899,
0.3856278658,
0.043939773,
-0.0606987923,
0.4248226881,
-0.0006218951,
-0.4163567722,
0.1458562762,
0.1086282954,
0.3712058663,
0.1764727086,
-0.0762550831,
-0.3731950521,
0.0647606924,
0.2832170427,
0.3637689352,
0.5504499674,
0.2587735355,
0.192928642,
-0.0431271568,
0.1864989251,
0.0319703855,
0.3499257565,
0.2472792268,
-0.2436307073,
0.091423288,
0.0918992907,
0.0179514997,
-0.1972357482,
0.0373529308,
0.4336309731,
-0.1809655875,
0.0077911229,
0.476556927,
0.3312240541,
0.1022349969,
-0.2294606715,
0.1168767139,
0.6265634894,
0.1932772547,
0.182966575,
0.3590213358,
-0.1156797409,
0.1358139366,
0.1243700013,
0.2560590208,
0.0484988876,
0.4312347174,
-0.2946915329,
0.2055449486,
-0.214697063,
0.2901768982,
0.2095090002,
-0.6437671781,
-0.1069876775,
-0.0181174651,
-0.0601732358,
-0.1231175363,
-0.2850967348,
0.5004773736,
-0.2505135238,
0.3184941709,
-0.3202362061,
0.0605218709,
0.0637093037,
-0.1106882617,
-0.0563792549,
-0.2374500036,
-0.1910348088,
0.0042659133,
0.0499728173,
-0.3495114446,
-0.0721017495,
-0.0632644147,
-0.1528821141,
0.1142398193,
0.0221974608,
0.0332785659,
0.0866867602,
-0.0728517175,
0.1466434151,
0.163590923,
-0.0711097196,
0.506885469,
-0.0203790814,
0.3126238286,
0.0515187345,
0.1066220552,
0.3054394424,
0.1426202953,
0.0056416653,
0.0633401349,
0.0919764042,
-0.0743139163,
0.146610111,
0.0870841593,
0.1144758537,
-0.0595053509,
-0.1070111766,
0.129406482,
0.2687166035,
-0.2454087287,
0.5594803691,
-0.2285631448,
-0.020151617,
-0.2797247171,
0.152317062,
-0.2770725787,
-0.1804617792,
0.2319788784,
0.0661606938,
0.0164406691,
0.0671937242,
-0.0066882339,
0.0255530048,
0.5664000511,
0.2765065134,
0.0372395217,
-0.2740527689,
-0.2422359586,
-0.6043914557,
0.0912411511,
0.2904206514,
-0.1965690851,
0.1631875485,
-0.0232260432,
-0.0555343404,
-0.0462489799,
-0.0152243786,
-0.0316596106,
0.0267586056,
0.0658920631,
-0.067752488,
-0.1088068336,
-0.1396464705,
0.2466679215,
0.0131175518,
-0.0000762906,
-0.0227258261,
0.0413599238,
-0.2038923651,
0.1850923896,
0.1298030764,
0.0499878004,
-0.3528026342,
0.4086045623,
-0.3458428383,
0.5204710364,
0.0196476076,
-0.0141218379,
-0.4237785041,
-0.2581849396,
-0.1187272668,
0.1851411909,
-0.0387162641,
0.2074000537,
-0.1961244643,
-0.1804785877,
-0.1808872074,
-0.0518889837,
0.1755537689,
0.0443515629,
-0.1232902482,
-0.0021336391,
-0.2588749826,
0.1494117826,
0.4003756642,
0.2347140759,
-0.1251890361,
0.1311264783,
-0.0352303274,
-0.0955977961,
0.6918134093,
-0.1036657915,
-0.1249841601,
-0.1027019694,
0.1866307408,
-0.1942966282,
-0.2319167703,
-0.451153487,
0.2845415771,
0.0572363995,
0.0270281676,
-0.0299389753,
0.2111036628,
-0.1757718325,
-0.1353995353,
0.0365762711,
-0.0200491026,
0.2069451958,
-0.0587392487,
-0.1824021935,
-0.1375370324
] |
https://github.com/huggingface/datasets/issues/3298 | Agnews dataset viewer is not working | Hi ! Thanks for reporting
We've already fixed the code that generates the preview for this dataset, we'll release the fix soon :) | ## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/ag_news
Hi there, the `ag_news` dataset viewer is not working.
Am I the one who added this dataset? No
| 23 | Agnews dataset viewer is not working
## Dataset viewer issue for '*name of the dataset*'
**Link:** https://huggingface.co/datasets/ag_news
Hi there, the `ag_news` dataset viewer is not working.
Am I the one who added this dataset? No
Hi ! Thanks for reporting
We've already fixed the code that generates the preview for this dataset, we'll release the fix soon :) | [
-0.4043060839,
-0.0264237374,
0.0003687421,
0.1476446837,
0.0435507409,
0.1333729178,
0.3327427208,
0.3144618273,
0.0698371306,
0.1123041436,
-0.142061457,
0.0911887661,
0.022487497,
0.2090033889,
-0.0568054505,
0.0026442732,
0.2122282535,
0.0268218517,
-0.0084453551,
0.0673370212,
-0.3680133522,
0.2244419307,
-0.2016302049,
0.1170307025,
-0.1285113096,
0.1274002343,
-0.0965364277,
-0.1762244105,
-0.1552432775,
-0.2899172008,
-0.0025818322,
0.0842715353,
0.0311419796,
0.5217633247,
-0.000103283,
0.1010403335,
0.4334301054,
0.0796469823,
-0.0054648276,
-0.0565685555,
-0.3273558915,
-0.2871342301,
-0.1110612601,
-0.0053094244,
-0.3466715217,
-0.5621012449,
0.236357078,
-0.3918741941,
0.2673857212,
0.3300622702,
0.3060540259,
0.1413722932,
0.3151662946,
-0.4238251746,
-0.0901519507,
0.0550324135,
-0.388869971,
0.0009628103,
-0.2080655247,
0.104365088,
-0.0600089282,
0.5543717742,
0.1012793258,
0.0907468721,
0.008724669,
0.0239836965,
0.2227649093,
-0.2278691381,
0.2241932005,
0.1707644016,
0.5400007963,
-0.0770609677,
-0.1940050125,
0.0249310117,
0.0738199204,
0.0740616694,
0.2213905603,
0.193242535,
-0.038648054,
0.3256551325,
-0.163575232,
-0.1579023749,
-0.2056147456,
0.1984758228,
-0.1429050416,
0.4284209609,
-0.3121683002,
0.13516967,
0.2287363857,
-0.0011084068,
0.1863491386,
-0.0161248446,
-0.3225676715,
0.1072125584,
-0.3390472233,
0.0468218997,
0.0234406572,
0.1258300245,
0.0295711607,
0.1440170258,
-0.0462770835,
0.1701606661,
0.0971872211,
-0.0106013091,
0.1618148386,
-0.1307198703,
0.2196854353,
0.2602858543,
0.4180875421,
0.1968260109,
0.2015920728,
-0.1580488235,
-0.1890344322,
-0.2863472104,
-0.2726506591,
-0.4086323678,
0.4276471436,
-0.1937894523,
-0.197577849,
0.1207832098,
-0.1489068717,
-0.0789350942,
-0.1222295016,
0.3080993295,
0.0239812136,
0.0102169458,
0.0323977731,
0.3321221471,
0.0197959822,
-0.3442323804,
-0.195165202,
-0.2015163004,
-0.228324458,
0.1892244816,
0.2031849623,
0.0160019603,
0.0388625711,
-0.1406555623,
-0.0539308675,
-0.0944405347,
-0.0554337651,
-0.0203662496,
-0.2511415184,
0.2523831427,
0.1773940027,
0.275195688,
0.0841304287,
-0.1411180943,
0.0988957658,
0.2247789502,
0.0928967595,
-0.1489783823,
-0.3725585639,
0.2376053631,
-0.2715436518,
-0.0183712337,
-0.1430881321,
0.4308348894,
-0.0658247471,
-0.0525759086,
-0.1204632968,
0.3070562184,
-0.1352980733,
-0.0461306609,
0.2532790601,
0.3063926697,
-0.4178475142,
-0.1399856955,
-0.6139634848,
-0.4744593799,
-0.0395285264,
0.0777434632,
-0.0348406658,
-0.0204773024,
-0.2424955368,
0.054279238,
0.2566104531,
0.0221413355,
-0.5047338009,
0.1082393229,
-0.0137324398,
-0.0824420154,
0.0848849043,
0.0803004876,
-0.1122739762,
0.0075484519,
-0.5248636603,
0.148756057,
0.1957438737,
-0.0322810784,
-0.0347443596,
-0.105551064,
0.0936894342,
0.2343298793,
0.1948359907,
0.167234093,
0.1836382598,
-0.1863850653,
0.2712078989,
0.2072738409,
0.078185305,
0.0582352392,
0.3617714345,
-0.1008936465,
0.1430461109,
0.0856678188,
-0.4692255557,
0.0409458987,
-0.1643392742,
-0.0112383775,
0.0514373519,
-0.1175466925,
-0.5166199803,
0.0127551416,
-0.2683891058,
-0.3667939901,
0.1741591841,
0.2442960143,
-0.2183364034,
0.2154184133,
-0.0874721408,
0.3231902122,
-0.131071955,
-0.0249394197,
-0.2170348465,
0.2167330384,
-0.13530536,
0.021554254,
0.1239936054,
-0.1843410879,
0.2089676708,
-0.0563597009,
-0.1415093839,
0.3823753893,
-0.0211071987,
0.303470999,
0.2474967092,
0.0092635518,
0.0198997315,
-0.5866425037,
0.1919256449,
0.1496191025,
-0.030487448,
-0.0956990495,
-0.2983906865,
-0.0102495756,
0.2460939288,
-0.0889159516,
-0.2147472501,
0.2473531961,
0.1991446912,
-0.1084262282,
-0.0379110873,
-0.0808601454,
0.0237831455,
-0.2579249144,
0.0284743123,
-0.0743409246,
-0.2515740693,
-0.0562784411,
0.0670821592,
0.0209967289,
-0.0790636837,
0.0668591484,
-0.3679118752,
0.0745223835,
-0.0012825796,
0.1331475079,
0.3399639428,
0.1114623174,
-0.0005932801,
0.2851768136,
0.2826433182,
-0.2210225761,
0.1102270409,
0.1244456917,
0.2289280146,
0.054857187,
0.0124204215,
-0.1819653958,
-0.4193022549,
0.2969457209,
0.3087797761,
0.2405603379,
-0.2614527941,
0.014171131,
-0.00269476,
-0.6008552909,
-0.1600803137,
-0.1462114155,
-0.1507452875,
-0.4011118114,
-0.005883133,
0.1939718276,
-0.0246093944,
0.5094063282,
-0.1957164109,
0.3517082334,
0.0345942229,
0.4228998423,
-0.3400965631,
0.1087519079,
-0.0853861198,
0.2367571741,
0.2185900211,
0.0701103881,
0.2005785257,
-0.0160074439,
0.2493844032,
-0.5792791843,
-0.3162871599,
0.0914030522,
-0.0838792399,
0.4887748361,
-0.06282603,
-0.0546306893,
-0.1994387358,
-0.0360899046,
0.2228236794,
-0.3146908581,
-0.111810185,
-0.1585342735,
-0.0148683814,
-0.1253863722,
0.0550102927,
-0.2410697341,
-0.0911597461,
-0.3326107264,
0.0053245579,
-0.111273624,
0.0333807468,
0.1499275267,
-0.0529501587,
0.1028435156,
-0.1093769744,
-0.2059912533,
-0.3528786004,
-0.0459887907,
0.5451158881,
-0.3700010478,
-0.4866628647,
0.1486114264,
0.2420636117,
0.0680946931,
-0.2212516367,
-0.5363967419,
0.0459925868,
-0.1624045372,
-0.1443777382,
0.3565905392,
-0.2550382018,
-0.0463996232,
-0.2074222863,
-0.1452994943,
-0.2372573167,
-0.1098626703,
-0.0609682351,
-0.3252069056,
0.3312586844,
0.1203621849,
0.1616591215,
-0.0753027275,
0.4965874851,
0.4347256124,
-0.0178262889,
0.2590395212,
-0.3346521258,
0.4300282001,
-0.0242609493,
-0.4015443921,
0.0663296655,
0.1221526042,
0.2533542514,
0.2138503045,
0.011495458,
-0.3640226126,
-0.2370547056,
0.1996595562,
-0.2562686503,
-0.1543701142,
-0.1586743891,
-0.1773454398,
0.2103904039,
0.1326768696,
0.1766303182,
0.1605791301,
-0.3399994075,
0.0825043842,
0.3336370885,
0.1209603101,
-0.0494367518,
-0.1145855933,
0.2734475732,
-0.471657604,
0.4321663082,
-0.4474056363,
0.2207790017,
-0.2222662866,
-0.0402211808,
0.2409738898,
0.1253791451,
0.7070777416,
-0.28076002,
-0.2344200909,
0.2357543558,
0.1628859788,
-0.0845903456,
-0.0321356058,
-0.1308099926,
0.0910017192,
0.0535925627,
0.2927002907,
-0.0023051042,
-0.1827303171,
0.6155135632,
-0.3022319376,
-0.1716357172,
-0.3154504299,
-0.2251448184,
0.008807295,
-0.0512479022,
-0.2733464241,
-0.0605133735,
0.1170826778,
-0.1391900927,
0.0035254033,
-0.163292706,
0.0103640882,
-0.014387385,
0.2213817388,
0.3375141323,
0.1777579337,
0.3393444121,
0.5645810366,
0.3304396272,
0.056425184,
0.4561968744,
0.3069782257,
-0.6282654405,
0.3853085637,
-0.1740847826,
0.269584775,
0.2829572558,
-0.154452607,
-0.148553744,
0.2651328146,
0.1441147327,
-0.0787549764,
0.1512134671,
0.415786773,
-0.0557670295,
-0.4460713565,
-0.3202021718,
0.5309657454,
0.2056158036,
-0.0866385922,
0.222773537,
0.264121294,
-0.0178632494,
-0.2795117497,
-0.3280394971,
0.8730464578,
0.0530433953,
-0.3272611499,
0.2056654543,
-0.0754347816,
0.1267714351,
-0.0154161211,
0.1600875705,
-0.3315814435,
-0.3046473265,
-0.0790166929,
-0.1068205386,
0.5126744509,
0.1292121708,
-0.0810245797,
0.030236369,
0.212239027,
0.2468785495,
-0.0127160409,
0.1945518553,
-0.0784415901,
-0.0690156966,
-0.0645110086,
0.233186096,
0.0083850566,
0.3863322437,
-0.0559574291,
-0.1179605946,
0.0071180225,
0.007025985,
-0.463544637,
0.1799969822,
0.1275773495,
-0.0103850672,
0.2192675918,
-0.3866558373,
0.3637843728,
0.3308191299,
0.1086116657,
0.0876965076,
-0.3864605129,
0.3298898041,
-0.1652403921,
-0.201930359,
-0.1490153074,
0.0309796967,
-0.0995052755,
-0.1340849549,
-0.37111938,
0.2883550823,
0.0808191597,
-0.1713377237,
-0.262257427,
-0.1329072118,
0.2332358658,
-0.3351434767,
0.1606771052,
-0.0725943744,
-0.0076026446,
-0.201822117,
0.2504482865,
-0.0638189912,
-0.0230987426,
-0.0331304558,
0.0815952569,
-0.2810994685,
-0.111418888,
0.3390189409,
-0.0635480881,
-0.1710855365,
0.4200140536,
0.2514338493,
-0.2297893912,
-0.3208013177,
0.1674649268,
0.317398876,
-0.4948529899,
-0.1141127571,
-0.0582297109,
0.186556071,
0.2411263287,
0.1071161255,
-0.0033968701,
-0.1403569132,
0.0534435622,
-0.3999243975,
0.0138440588,
0.0209289994,
-0.2795648575,
0.2552592456,
-0.1991986036,
-0.2636372745,
0.3258983791,
0.0050854306,
-0.388725251,
-0.094034493,
0.0259475037,
-0.0454803593,
0.0564834587,
0.1748281568,
0.1462581605,
-0.150451377,
0.1325826794,
0.071557343,
-0.2317827344,
-0.2648428082,
-0.0214797873,
0.1345768571,
0.1514947861,
-0.2984319329,
-0.014912664,
-0.0656863675,
-0.375328809,
0.1359019428,
0.1327577084,
0.009873474,
0.0516695306,
-0.1724259108,
0.0503746085,
-0.248451069,
0.190278247,
-0.1718668938,
0.1236287132,
0.3299429119,
0.0222475547,
0.1513375193,
0.069349505,
0.0220378377,
0.1251207292,
0.0945529118,
0.2985677719,
0.0602209195,
0.3096641004,
-0.3039929569,
0.0260822587,
0.1269619167,
0.4874555469,
0.2161605209,
-0.3620653749,
-0.0192191917,
0.4101950228,
0.2071214318,
-0.4707291126,
-0.0039594537,
0.2516995966,
0.0384939685,
0.017817568,
-0.0635854229,
0.1358745694,
0.2101350874,
0.0294303633,
0.1838848889,
0.3818024993,
0.0794663057,
0.3542664647,
0.3056280613,
-0.1199121475,
0.1437158436,
0.3907767534,
0.1961760968,
-0.1285550445,
0.4958593845,
-0.0199885387,
0.1145737097,
-0.0090275453,
0.3798961639,
0.2309492975,
-0.3831744492,
-0.0722283274,
0.1147580966,
-0.4961723089,
0.0012527012,
0.1581346393,
0.3192991912,
-0.0259062964,
0.0617519431,
-0.4460950494,
0.2581150532,
0.0775823593,
0.0903025344,
-0.2068005651,
-0.0758956894,
-0.291665405,
0.0045151282,
0.0503363088,
-0.1200111434,
0.2848593593,
-0.0637063384,
-0.2399282753,
-0.1926570833,
0.2949608266,
0.0954399332,
0.3051394522,
-0.1887469143,
0.1078332439,
-0.1182866395,
0.1110774651,
0.2015484422,
0.6620810032,
0.1493611485,
-0.0701232627,
0.2266662568,
0.1195769683,
-0.0767492205,
-0.1811667979,
0.028711779,
0.4767847061,
0.3267298937,
-0.2668368816,
0.159034729,
0.1468504518,
-0.1496062428,
0.1836671382,
0.1085964888,
0.4271131456,
-0.1608485281,
0.1533447057,
-0.6978160739,
0.0790270269,
-0.257489711,
-0.3374701142,
-0.1293352693,
-0.0039795027,
0.2759688795,
-0.0753633827,
0.1178558618,
-0.3444032669,
0.1205010414,
0.1947196871,
0.4360727072,
0.297072351,
0.1944009364,
-0.1023231,
-0.6008682251,
-0.6018476486,
0.261906594,
0.0492229909,
0.206546098,
0.0489412807,
-0.2254826427,
0.0782928765,
0.2403108031,
0.3394354284,
0.1804721802,
-0.2594102025,
0.194357127,
-0.2791455388,
-0.0452163927,
-0.0197899248,
0.2097703964,
-0.1236595809,
-0.1391929239,
0.3214277625,
-0.0923542604,
0.0437539071,
0.0164620504,
-0.0416600555,
-0.1431427449,
-0.0225055199,
0.3022917807,
0.0457309224,
0.1887446046,
-0.0788635537,
0.0663153827,
-0.4441388845,
-0.4272594452,
-0.2454569191,
0.2290058285,
0.0802951902,
0.1840545088,
0.0580833703,
-0.2021904439,
-0.0963060558,
-0.1028287932,
0.0237763394,
0.1379330605,
-0.3005490303,
0.0042700889,
-0.1803808808,
-0.0489836968,
0.2318459302,
-0.1561176479,
-0.1032829508,
-0.064784877,
-0.1872537285,
-0.1734920889,
0.3598544598,
-0.1617291719,
-0.216839388,
-0.1876348108,
0.0484152921,
-0.0823904201,
-0.1810394526,
-0.4541170001,
0.0836648345,
0.3310291767,
0.0093948236,
0.2530812621,
0.2356225252,
-0.0220695473,
-0.1019709334,
-0.0662192404,
0.3902213573,
0.2245403677,
-0.0830594152,
0.0890816823,
-0.0478477255
] |
https://github.com/huggingface/datasets/issues/3297 | .map() cache is wrongfully reused - only happens when the mapping function is imported | Hi ! Thanks for reporting. Indeed this is a current limitation of the usage we have of `dill` in `datasets`. I'd suggest you use your workaround for now until we find a way to fix this. Maybe functions that are not coming from a module not installed with pip should be dumped completely, rather than only taking their locations into account | ## Describe the bug
When `.map` is used with a mapping function that is imported, the cache is reused even if the mapping function has been modified.
The reason for this is that `dill` that is used for creating the fingerprint [pickles imported functions by reference](https://stackoverflow.com/a/67851411).
I guess it is not a widespread case, but it can still lead to unwanted results unnoticeably.
## Steps to reproduce the bug
Create files `a.py` and `b.py`:
```python
# a.py
from datasets import load_dataset
def main():
squad = load_dataset("squad")
squad.map(mapping_func, batched=True)
def mapping_func(examples):
ID_LENGTH = 4
examples["id"] = [id_[:ID_LENGTH] for id_ in examples["id"]]
return examples
if __name__ == "__main__":
main()
```
```python
# b.py
from datasets import load_dataset
from a import mapping_func
def main():
squad = load_dataset("squad")
squad.map(mapping_func, batched=True)
if __name__ == "__main__":
main()
```
Run `python b.py` twice: In the first run you will see tqdm bars showing that the data is processed, and in the second run you will see "Loading cached processed dataset at...".
Now change `ID_LENGTH` to another number in order to change the mapping function, and run `python b.py` again. You'll see that `.map` loads from the cache the result of the previous mapping function.
## Expected results
Run `python a.py` twice: In the first run you will see tqdm bars showing that the data is processed, and in the second run you will see "Loading cached processed dataset at...".
Now change `ID_LENGTH` to another number in order to change the mapping function, and run `python a.py` again. You'll see that the dataset is being processed and that there's no reuse of the previous mapping function result.
## Workaround
Put the mapping function inside a dummy class as a static method:
```python
# a.py
class MappingFuncClass:
@staticmethod
def mapping_func(examples):
ID_LENGTH = 4
examples["id"] = [id_[:ID_LENGTH] for id_ in examples["id"]]
return examples
```
```python
# b.py
from datasets import load_dataset
from a import MappingFuncClass
def main():
squad = load_dataset("squad")
squad.map(MappingFuncClass.mapping_func, batched=True)
if __name__ == "__main__":
main()
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 61 | .map() cache is wrongfully reused - only happens when the mapping function is imported
## Describe the bug
When `.map` is used with a mapping function that is imported, the cache is reused even if the mapping function has been modified.
The reason for this is that `dill` that is used for creating the fingerprint [pickles imported functions by reference](https://stackoverflow.com/a/67851411).
I guess it is not a widespread case, but it can still lead to unwanted results unnoticeably.
## Steps to reproduce the bug
Create files `a.py` and `b.py`:
```python
# a.py
from datasets import load_dataset
def main():
squad = load_dataset("squad")
squad.map(mapping_func, batched=True)
def mapping_func(examples):
ID_LENGTH = 4
examples["id"] = [id_[:ID_LENGTH] for id_ in examples["id"]]
return examples
if __name__ == "__main__":
main()
```
```python
# b.py
from datasets import load_dataset
from a import mapping_func
def main():
squad = load_dataset("squad")
squad.map(mapping_func, batched=True)
if __name__ == "__main__":
main()
```
Run `python b.py` twice: In the first run you will see tqdm bars showing that the data is processed, and in the second run you will see "Loading cached processed dataset at...".
Now change `ID_LENGTH` to another number in order to change the mapping function, and run `python b.py` again. You'll see that `.map` loads from the cache the result of the previous mapping function.
## Expected results
Run `python a.py` twice: In the first run you will see tqdm bars showing that the data is processed, and in the second run you will see "Loading cached processed dataset at...".
Now change `ID_LENGTH` to another number in order to change the mapping function, and run `python a.py` again. You'll see that the dataset is being processed and that there's no reuse of the previous mapping function result.
## Workaround
Put the mapping function inside a dummy class as a static method:
```python
# a.py
class MappingFuncClass:
@staticmethod
def mapping_func(examples):
ID_LENGTH = 4
examples["id"] = [id_[:ID_LENGTH] for id_ in examples["id"]]
return examples
```
```python
# b.py
from datasets import load_dataset
from a import MappingFuncClass
def main():
squad = load_dataset("squad")
squad.map(MappingFuncClass.mapping_func, batched=True)
if __name__ == "__main__":
main()
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
Hi ! Thanks for reporting. Indeed this is a current limitation of the usage we have of `dill` in `datasets`. I'd suggest you use your workaround for now until we find a way to fix this. Maybe functions that are not coming from a module not installed with pip should be dumped completely, rather than only taking their locations into account | [
0.1023008078,
-0.1066755429,
0.023120366,
0.0879040956,
0.1407015622,
0.0473642983,
0.3940168917,
0.3197053075,
0.2703638077,
0.0267432407,
-0.299967438,
0.4735360444,
0.2265991718,
-0.3539206088,
0.0825730115,
0.2903339863,
0.0108863935,
-0.0799177513,
-0.2749255598,
-0.147531569,
-0.1313759834,
0.2969120443,
-0.1247688457,
-0.0275311433,
-0.3764390647,
-0.001955641,
-0.08252763,
0.2113380432,
0.1549105793,
-0.4368239939,
0.2179659456,
-0.0768812522,
-0.0357420146,
0.5390565395,
-0.0001100551,
0.0545335002,
0.0379483737,
-0.0895744637,
0.1387730539,
0.0670652464,
0.1007922664,
0.0094175749,
0.1730540693,
-0.3614327312,
0.0523518398,
0.2571271062,
-0.1392587274,
-0.568949163,
0.4473128915,
-0.0037706222,
0.2838268876,
0.1656334102,
-0.215028733,
0.0622949339,
0.1381409466,
-0.2155901194,
-0.0000413625,
0.2292878032,
0.3375445902,
-0.2384903878,
-0.245190531,
0.403909862,
-0.1638005972,
0.1910471618,
0.1889220178,
0.1947401613,
0.4208264053,
-0.308712244,
0.2491786778,
-0.0048501915,
-0.0411278531,
-0.3833578825,
-0.073246181,
-0.2187645286,
-0.1860322356,
-0.0557426251,
0.1161885485,
-0.1445250809,
0.0536532328,
0.1453247964,
-0.2832440138,
0.0408813246,
0.3707051277,
-0.0397305004,
-0.0063563474,
-0.0215356704,
-0.0381649807,
0.1183544695,
0.0615454614,
-0.1776632518,
0.0370399803,
-0.1760743558,
-0.0996763781,
0.2941997945,
-0.2233280838,
-0.0435089953,
0.4221668839,
-0.0841908008,
0.1055063903,
-0.0975933,
0.1274205148,
0.061025206,
-0.0292262547,
0.1775264889,
0.1327808201,
0.3556651473,
0.1741503626,
0.3096067607,
0.0534566268,
-0.2720611989,
-0.7355597019,
0.1215484738,
0.2828050852,
-0.1556486785,
0.7647553086,
0.0435126685,
0.1100473106,
-0.0121011976,
0.142991662,
-0.0049049063,
-0.0404309742,
-0.0808289647,
0.0796085745,
0.4066723287,
0.0131170945,
0.0054618409,
-0.0661452338,
-0.0505250581,
-0.1652624607,
0.0507576913,
-0.2683414519,
-0.0831431448,
-0.2520211339,
0.1520649046,
0.0607501864,
-0.2434805483,
0.3540921509,
0.1689270586,
0.1843656749,
-0.2418226302,
0.376031369,
-0.1699977219,
0.5994768739,
-0.055699002,
-0.1549903154,
0.139238894,
0.4073169827,
-0.2025327235,
-0.2129079998,
0.0729140267,
-0.5269343853,
-0.1555873901,
0.2404722422,
0.205458194,
-0.1899922937,
0.0706652403,
-0.0521670468,
0.0144050689,
0.341101259,
-0.2802275419,
0.1219004914,
-0.1810950041,
-0.3057304025,
-0.4941650033,
0.0235721972,
0.7083751559,
-0.0251597818,
-0.2736556828,
0.1357264668,
0.1535452008,
-0.036713846,
0.2652258575,
-0.3264648914,
0.0614332482,
-0.2804627419,
0.2015708089,
0.2636339366,
-0.7171671391,
-0.454888463,
0.166840598,
-0.0651703104,
0.2845686972,
-0.2433566302,
0.0279370919,
0.3499954641,
-0.1811999828,
0.2049413919,
0.2732794583,
0.0507870913,
0.1532680839,
-0.400744319,
-0.0890884027,
0.2792308331,
-0.2028529644,
0.0015272299,
0.0550461188,
0.196501717,
-0.3253094256,
0.0988279283,
-0.0005318711,
0.0689788982,
0.2172531486,
0.1347643733,
-0.0804613605,
0.0643633083,
-0.1296335459,
-0.4603278637,
0.3112496138,
-0.342024684,
-0.3884297013,
-0.0887217745,
-0.2269690484,
-0.0902561769,
-0.1058461219,
-0.372775048,
-0.1762911677,
0.1960374713,
0.071356602,
0.2777425945,
-0.1135746315,
0.0695925504,
0.0447207578,
0.168379426,
-0.04529991,
-0.17104128,
0.0201620683,
-0.0644973814,
-0.1186155006,
-0.3411667049,
0.0243052281,
0.3964196444,
-0.0268972684,
-0.134456113,
0.293636322,
0.1925897747,
0.2072056979,
0.0827478766,
0.162808001,
0.0171597656,
-0.0137484614,
0.0718889311,
0.2202792764,
0.1209198982,
-0.1912018657,
0.0350309499,
0.362755537,
-0.0067528835,
0.1249562278,
-0.1224876866,
-0.0963471681,
0.0098018739,
-0.029277632,
-0.0996891856,
-0.2967140079,
-0.2278398126,
0.0748536587,
0.3514560163,
0.2422678918,
-0.0494528823,
0.3744908869,
0.5678980947,
0.1662016362,
0.261220485,
-0.1951844692,
-0.1731957048,
-0.1958509088,
-0.1426640004,
0.0491835885,
0.4420597851,
0.0696124434,
0.203845039,
0.0566762649,
0.1787694842,
-0.0142814517,
0.0808538273,
-0.2015766054,
0.1448415071,
0.0276965424,
0.3325088024,
0.0253820699,
-0.1214538738,
0.0924009159,
0.0325667337,
-0.0607058927,
-0.1682353467,
0.1196251735,
-0.3712756634,
0.2542575598,
-0.254940778,
-0.2912464738,
-0.2036875039,
-0.3541096449,
0.0248078126,
0.0125803445,
-0.0154636269,
0.1974207908,
-0.058853168,
-0.0323935933,
0.0216250177,
-0.4866389036,
-0.0040561794,
-0.4126638472,
-0.0527536906,
0.0113446889,
0.0515436679,
-0.1608330607,
0.0378162749,
-0.1455169469,
-0.0390150249,
-0.286436528,
-0.3875304759,
0.0413322672,
-0.0202067439,
0.3479378521,
-0.1107774451,
-0.0229982398,
-0.2151870131,
-0.0272025187,
0.2387230396,
-0.4787365496,
-0.0853151679,
-0.1691828668,
-0.1532031447,
-0.0796974823,
-0.0748865008,
-0.2895052731,
-0.2095374465,
-0.2024312168,
-0.0054604136,
0.0684693009,
0.087927185,
0.2781621814,
-0.1255795658,
0.0414713137,
-0.0748353377,
0.1358405799,
-0.4412339628,
-0.5766789317,
0.2957418263,
-0.3659022152,
-0.1257681698,
0.0397186205,
-0.0344117805,
0.1966207027,
-0.0813056231,
-0.3888837993,
-0.501203537,
-0.0530579835,
0.5198507309,
-0.0083584171,
0.2223877609,
0.2656988502,
0.1025975421,
-0.0718000531,
-0.160039559,
-0.3034082651,
-0.0744129047,
0.1303092092,
0.1474382579,
0.0244804434,
-0.1155142486,
0.0212922543,
0.948680222,
0.4342633784,
-0.070230037,
0.2231627107,
-0.0248621833,
0.2981386185,
-0.2454478145,
-0.3688841462,
-0.1476978362,
-0.2928000689,
0.0067810565,
0.1085406467,
0.0752600133,
-0.1753757894,
-0.0250147302,
0.0825962424,
-0.4892017543,
-0.4031331539,
0.0856724679,
-0.1656900644,
0.0815576911,
0.2602030933,
0.2106183171,
-0.5321553946,
0.090220958,
0.1648782939,
-0.086190708,
0.2736441791,
0.0793530121,
-0.3683182895,
0.1268383116,
-0.1403351128,
0.2984192371,
0.1452913582,
0.0825682357,
0.0815269724,
-0.3150337338,
-0.0014725192,
0.0342596583,
0.4899467826,
-0.2179776132,
0.1401729733,
0.2552492023,
-0.3457439542,
-0.2329722941,
-0.0056292908,
0.2093844563,
0.1244715899,
0.4565181434,
0.1455522776,
-0.0683922172,
0.0668685585,
-0.1950419247,
0.1743953228,
-0.1298407316,
-0.1730643809,
-0.2616254389,
-0.1147988737,
-0.1935132295,
-0.0462613776,
-0.0219278652,
-0.0824718699,
0.2793247402,
-0.0040736897,
-0.087762706,
0.024900049,
0.0424338616,
0.3235796392,
0.4023792148,
0.112570703,
0.2466896027,
0.2877407074,
-0.0307033472,
-0.38175565,
0.5447897315,
-0.4847744405,
-0.0462716445,
-0.0436453708,
0.0513318293,
-0.1423597932,
0.3253247738,
-0.0430659615,
0.1085899919,
-0.2674945891,
-0.199077934,
0.0409595668,
-0.2823700011,
0.0216824189,
0.1458654404,
0.0429032259,
-0.3180771172,
0.2287162393,
0.1590021253,
-0.2414938807,
0.4337386489,
-0.4825403392,
-0.0513932966,
0.3319926858,
0.0136125097,
0.911062777,
-0.1734667122,
0.0500283092,
0.0128611466,
0.083323136,
0.1100179777,
0.092351228,
0.0350756198,
-0.2923757136,
-0.1833112687,
0.1781261414,
-0.2048472017,
-0.0319474638,
0.0359763317,
-0.2093027532,
0.2253980488,
-0.2427660674,
0.334143132,
-0.082099326,
0.0266064368,
0.2409805357,
-0.2079920769,
-0.0670745596,
0.2517900467,
0.1397496909,
0.1136321798,
0.0102985287,
0.0557530634,
0.0111022964,
-0.1658501923,
0.1101934686,
0.1955485046,
-0.4270869493,
0.4328399301,
0.2924582362,
0.039916575,
-0.2659755349,
0.4805099368,
0.0956839025,
0.0418473035,
-0.0778784156,
0.1883642972,
0.5420475602,
0.386085242,
-0.1087769866,
-0.0869288743,
0.2897640467,
0.0548853539,
-0.1755195558,
0.250972867,
-0.0736651942,
-0.2423166484,
-0.3938849568,
0.6141800284,
0.0613791533,
-0.1186024398,
-0.176048696,
0.1048596799,
0.0123784775,
-0.0758248195,
0.1647896022,
0.1462884545,
-0.179052785,
0.4457890391,
-0.2131090313,
-0.371899724,
0.0699273497,
0.4534683526,
0.173337549,
0.0093215005,
0.1376282871,
-0.0693816915,
-0.1626779586,
-0.1201680303,
0.0075104418,
-0.1902419478,
-0.1392311603,
0.1540091932,
-0.2027454972,
0.0300341155,
0.1061715111,
0.0916733667,
0.0586215705,
0.1371475011,
-0.1648327857,
-0.1693772227,
-0.3385593891,
0.0306353699,
-0.0441315956,
0.0213308241,
0.213618964,
0.1797361374,
-0.1157212108,
0.5498872399,
-0.3737624288,
0.3833234608,
0.0113043711,
0.2434284091,
0.0710150748,
-0.155437991,
0.1830004305,
-0.1407557726,
0.083108522,
0.322445184,
-0.4399214983,
-0.2872862518,
-0.1811475605,
0.1095013469,
-0.1156541631,
0.0402803198,
-0.0839764103,
-0.0463805422,
0.2319714129,
-0.406219691,
0.2383316606,
0.3710242808,
0.043802537,
0.0262883175,
0.0094773229,
-0.2384497672,
0.076466158,
0.0910535678,
-0.0477082916,
0.0135487961,
0.000951305,
0.0893179104,
-0.2228078097,
0.0061172782,
-0.0053830971,
0.0391432308,
0.0358549766,
-0.0248144716,
0.2994208932,
-0.1901062131,
-0.0239997227,
0.1953644156,
-0.020641366,
0.0140895825,
-0.2981206775,
0.0068757958,
-0.1363160312,
0.2421889305,
-0.1565819979,
-0.1843538135,
0.2601807415,
0.0566384085,
0.1862788945,
0.3639032841,
0.1249355748,
0.1763490438,
0.3144249022,
0.0346049517,
0.4242435396,
-0.443231672,
0.2529170811,
-0.0358358324,
0.1016535163,
-0.0755950287,
0.4201855361,
0.207725808,
-0.0101795541,
0.1366835535,
-0.0172004867,
0.2263930291,
-0.1037822068,
-0.1234441176,
0.0918118358,
-0.3116847277,
0.3174941242,
0.2845165431,
-0.1978763044,
0.3175809383,
0.0710053518,
0.2801993489,
-0.0857457593,
-0.2549969852,
0.0661237538,
0.3539601564,
-0.1984588504,
-0.2379936427,
0.2976208329,
-0.0826371536,
-0.0672833845,
0.0520726442,
0.0385338999,
-0.076493144,
0.639372766,
0.0912358016,
-0.0989949182,
-0.2896137536,
-0.3925938904,
-0.0220436212,
0.3696816564,
-0.3258839548,
0.1601226628,
-0.0890775099,
-0.1169674993,
0.0131449522,
0.1417804956,
0.3679866791,
0.2729372382,
-0.0335257985,
0.2223508507,
0.0193300284,
-0.0601364374,
-0.2175881863,
0.1953991354,
-0.0422963798,
-0.2627489567,
0.2431415468,
0.1970007718,
-0.231449455,
-0.1959876716,
0.0224140715,
0.3202004135,
-0.1956768036,
0.2799754143,
-0.1640453041,
0.0498093814,
-0.2007776201,
0.2425653636,
-0.3044302762,
-0.0074692667,
0.2847546041,
-0.0585044846,
0.181906864,
-0.332906425,
0.1330574304,
0.1462967694,
0.22972399,
0.2411388159,
-0.0535787754,
-0.3673236072,
0.1420622915,
-0.7182421088,
0.3956403434,
-0.2216785401,
0.2400405258,
0.0166970678,
0.3223978877,
-0.1166922972,
0.2464519888,
0.2427613437,
-0.0933392867,
0.1188472509,
0.0502185635,
-0.2349464744,
-0.0020498498,
-0.2285543084,
-0.1609757394,
0.3383446932,
-0.5207582116,
0.0567060746,
-0.0722480044,
0.1838356853,
-0.149276495,
-0.3342307806,
0.0971132815,
0.1433502585,
0.5966309309,
0.2692085803,
0.2411951423,
-0.0407939404,
-0.1440561414,
-0.1243849173,
-0.318366468,
0.0718066245,
0.0000585,
0.1226418018,
0.0638783872,
-0.2842817605,
-0.354937315,
-0.3247481585,
0.0923252255,
0.0893156007,
-0.0798208937,
-0.2577168047,
-0.0709114373,
-0.1522035748,
0.2547757328,
-0.0505948476,
0.7089009881,
-0.1233947277,
0.4982964694,
-0.1800351739,
-0.1781494021,
0.545095861,
-0.4846177101,
-0.2733749747,
-0.1113978252,
0.2527098358,
-0.0689054728,
-0.3204814494,
-0.4433936775,
-0.0313234068,
0.3066165745,
-0.0071089664,
-0.3616110981,
0.0303037837,
-0.3417621851,
0.1679231822,
-0.1015328616,
0.0731696337,
0.0824906304,
0.018058341,
0.1740787476,
-0.1989345253
] |
https://github.com/huggingface/datasets/issues/3297 | .map() cache is wrongfully reused - only happens when the mapping function is imported | I agree. Sounds like a solution for it would be pretty dirty, even [cloudpickle](https://stackoverflow.com/a/16891169) doesn't help in this case.
In the meanwhile I think that adding a warning and the workaround somewhere in the documentation can be helpful. | ## Describe the bug
When `.map` is used with a mapping function that is imported, the cache is reused even if the mapping function has been modified.
The reason for this is that `dill` that is used for creating the fingerprint [pickles imported functions by reference](https://stackoverflow.com/a/67851411).
I guess it is not a widespread case, but it can still lead to unwanted results unnoticeably.
## Steps to reproduce the bug
Create files `a.py` and `b.py`:
```python
# a.py
from datasets import load_dataset
def main():
squad = load_dataset("squad")
squad.map(mapping_func, batched=True)
def mapping_func(examples):
ID_LENGTH = 4
examples["id"] = [id_[:ID_LENGTH] for id_ in examples["id"]]
return examples
if __name__ == "__main__":
main()
```
```python
# b.py
from datasets import load_dataset
from a import mapping_func
def main():
squad = load_dataset("squad")
squad.map(mapping_func, batched=True)
if __name__ == "__main__":
main()
```
Run `python b.py` twice: In the first run you will see tqdm bars showing that the data is processed, and in the second run you will see "Loading cached processed dataset at...".
Now change `ID_LENGTH` to another number in order to change the mapping function, and run `python b.py` again. You'll see that `.map` loads from the cache the result of the previous mapping function.
## Expected results
Run `python a.py` twice: In the first run you will see tqdm bars showing that the data is processed, and in the second run you will see "Loading cached processed dataset at...".
Now change `ID_LENGTH` to another number in order to change the mapping function, and run `python a.py` again. You'll see that the dataset is being processed and that there's no reuse of the previous mapping function result.
## Workaround
Put the mapping function inside a dummy class as a static method:
```python
# a.py
class MappingFuncClass:
@staticmethod
def mapping_func(examples):
ID_LENGTH = 4
examples["id"] = [id_[:ID_LENGTH] for id_ in examples["id"]]
return examples
```
```python
# b.py
from datasets import load_dataset
from a import MappingFuncClass
def main():
squad = load_dataset("squad")
squad.map(MappingFuncClass.mapping_func, batched=True)
if __name__ == "__main__":
main()
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 38 | .map() cache is wrongfully reused - only happens when the mapping function is imported
## Describe the bug
When `.map` is used with a mapping function that is imported, the cache is reused even if the mapping function has been modified.
The reason for this is that `dill` that is used for creating the fingerprint [pickles imported functions by reference](https://stackoverflow.com/a/67851411).
I guess it is not a widespread case, but it can still lead to unwanted results unnoticeably.
## Steps to reproduce the bug
Create files `a.py` and `b.py`:
```python
# a.py
from datasets import load_dataset
def main():
squad = load_dataset("squad")
squad.map(mapping_func, batched=True)
def mapping_func(examples):
ID_LENGTH = 4
examples["id"] = [id_[:ID_LENGTH] for id_ in examples["id"]]
return examples
if __name__ == "__main__":
main()
```
```python
# b.py
from datasets import load_dataset
from a import mapping_func
def main():
squad = load_dataset("squad")
squad.map(mapping_func, batched=True)
if __name__ == "__main__":
main()
```
Run `python b.py` twice: In the first run you will see tqdm bars showing that the data is processed, and in the second run you will see "Loading cached processed dataset at...".
Now change `ID_LENGTH` to another number in order to change the mapping function, and run `python b.py` again. You'll see that `.map` loads from the cache the result of the previous mapping function.
## Expected results
Run `python a.py` twice: In the first run you will see tqdm bars showing that the data is processed, and in the second run you will see "Loading cached processed dataset at...".
Now change `ID_LENGTH` to another number in order to change the mapping function, and run `python a.py` again. You'll see that the dataset is being processed and that there's no reuse of the previous mapping function result.
## Workaround
Put the mapping function inside a dummy class as a static method:
```python
# a.py
class MappingFuncClass:
@staticmethod
def mapping_func(examples):
ID_LENGTH = 4
examples["id"] = [id_[:ID_LENGTH] for id_ in examples["id"]]
return examples
```
```python
# b.py
from datasets import load_dataset
from a import MappingFuncClass
def main():
squad = load_dataset("squad")
squad.map(MappingFuncClass.mapping_func, batched=True)
if __name__ == "__main__":
main()
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
I agree. Sounds like a solution for it would be pretty dirty, even [cloudpickle](https://stackoverflow.com/a/16891169) doesn't help in this case.
In the meanwhile I think that adding a warning and the workaround somewhere in the documentation can be helpful. | [
0.1023008078,
-0.1066755429,
0.023120366,
0.0879040956,
0.1407015622,
0.0473642983,
0.3940168917,
0.3197053075,
0.2703638077,
0.0267432407,
-0.299967438,
0.4735360444,
0.2265991718,
-0.3539206088,
0.0825730115,
0.2903339863,
0.0108863935,
-0.0799177513,
-0.2749255598,
-0.147531569,
-0.1313759834,
0.2969120443,
-0.1247688457,
-0.0275311433,
-0.3764390647,
-0.001955641,
-0.08252763,
0.2113380432,
0.1549105793,
-0.4368239939,
0.2179659456,
-0.0768812522,
-0.0357420146,
0.5390565395,
-0.0001100551,
0.0545335002,
0.0379483737,
-0.0895744637,
0.1387730539,
0.0670652464,
0.1007922664,
0.0094175749,
0.1730540693,
-0.3614327312,
0.0523518398,
0.2571271062,
-0.1392587274,
-0.568949163,
0.4473128915,
-0.0037706222,
0.2838268876,
0.1656334102,
-0.215028733,
0.0622949339,
0.1381409466,
-0.2155901194,
-0.0000413625,
0.2292878032,
0.3375445902,
-0.2384903878,
-0.245190531,
0.403909862,
-0.1638005972,
0.1910471618,
0.1889220178,
0.1947401613,
0.4208264053,
-0.308712244,
0.2491786778,
-0.0048501915,
-0.0411278531,
-0.3833578825,
-0.073246181,
-0.2187645286,
-0.1860322356,
-0.0557426251,
0.1161885485,
-0.1445250809,
0.0536532328,
0.1453247964,
-0.2832440138,
0.0408813246,
0.3707051277,
-0.0397305004,
-0.0063563474,
-0.0215356704,
-0.0381649807,
0.1183544695,
0.0615454614,
-0.1776632518,
0.0370399803,
-0.1760743558,
-0.0996763781,
0.2941997945,
-0.2233280838,
-0.0435089953,
0.4221668839,
-0.0841908008,
0.1055063903,
-0.0975933,
0.1274205148,
0.061025206,
-0.0292262547,
0.1775264889,
0.1327808201,
0.3556651473,
0.1741503626,
0.3096067607,
0.0534566268,
-0.2720611989,
-0.7355597019,
0.1215484738,
0.2828050852,
-0.1556486785,
0.7647553086,
0.0435126685,
0.1100473106,
-0.0121011976,
0.142991662,
-0.0049049063,
-0.0404309742,
-0.0808289647,
0.0796085745,
0.4066723287,
0.0131170945,
0.0054618409,
-0.0661452338,
-0.0505250581,
-0.1652624607,
0.0507576913,
-0.2683414519,
-0.0831431448,
-0.2520211339,
0.1520649046,
0.0607501864,
-0.2434805483,
0.3540921509,
0.1689270586,
0.1843656749,
-0.2418226302,
0.376031369,
-0.1699977219,
0.5994768739,
-0.055699002,
-0.1549903154,
0.139238894,
0.4073169827,
-0.2025327235,
-0.2129079998,
0.0729140267,
-0.5269343853,
-0.1555873901,
0.2404722422,
0.205458194,
-0.1899922937,
0.0706652403,
-0.0521670468,
0.0144050689,
0.341101259,
-0.2802275419,
0.1219004914,
-0.1810950041,
-0.3057304025,
-0.4941650033,
0.0235721972,
0.7083751559,
-0.0251597818,
-0.2736556828,
0.1357264668,
0.1535452008,
-0.036713846,
0.2652258575,
-0.3264648914,
0.0614332482,
-0.2804627419,
0.2015708089,
0.2636339366,
-0.7171671391,
-0.454888463,
0.166840598,
-0.0651703104,
0.2845686972,
-0.2433566302,
0.0279370919,
0.3499954641,
-0.1811999828,
0.2049413919,
0.2732794583,
0.0507870913,
0.1532680839,
-0.400744319,
-0.0890884027,
0.2792308331,
-0.2028529644,
0.0015272299,
0.0550461188,
0.196501717,
-0.3253094256,
0.0988279283,
-0.0005318711,
0.0689788982,
0.2172531486,
0.1347643733,
-0.0804613605,
0.0643633083,
-0.1296335459,
-0.4603278637,
0.3112496138,
-0.342024684,
-0.3884297013,
-0.0887217745,
-0.2269690484,
-0.0902561769,
-0.1058461219,
-0.372775048,
-0.1762911677,
0.1960374713,
0.071356602,
0.2777425945,
-0.1135746315,
0.0695925504,
0.0447207578,
0.168379426,
-0.04529991,
-0.17104128,
0.0201620683,
-0.0644973814,
-0.1186155006,
-0.3411667049,
0.0243052281,
0.3964196444,
-0.0268972684,
-0.134456113,
0.293636322,
0.1925897747,
0.2072056979,
0.0827478766,
0.162808001,
0.0171597656,
-0.0137484614,
0.0718889311,
0.2202792764,
0.1209198982,
-0.1912018657,
0.0350309499,
0.362755537,
-0.0067528835,
0.1249562278,
-0.1224876866,
-0.0963471681,
0.0098018739,
-0.029277632,
-0.0996891856,
-0.2967140079,
-0.2278398126,
0.0748536587,
0.3514560163,
0.2422678918,
-0.0494528823,
0.3744908869,
0.5678980947,
0.1662016362,
0.261220485,
-0.1951844692,
-0.1731957048,
-0.1958509088,
-0.1426640004,
0.0491835885,
0.4420597851,
0.0696124434,
0.203845039,
0.0566762649,
0.1787694842,
-0.0142814517,
0.0808538273,
-0.2015766054,
0.1448415071,
0.0276965424,
0.3325088024,
0.0253820699,
-0.1214538738,
0.0924009159,
0.0325667337,
-0.0607058927,
-0.1682353467,
0.1196251735,
-0.3712756634,
0.2542575598,
-0.254940778,
-0.2912464738,
-0.2036875039,
-0.3541096449,
0.0248078126,
0.0125803445,
-0.0154636269,
0.1974207908,
-0.058853168,
-0.0323935933,
0.0216250177,
-0.4866389036,
-0.0040561794,
-0.4126638472,
-0.0527536906,
0.0113446889,
0.0515436679,
-0.1608330607,
0.0378162749,
-0.1455169469,
-0.0390150249,
-0.286436528,
-0.3875304759,
0.0413322672,
-0.0202067439,
0.3479378521,
-0.1107774451,
-0.0229982398,
-0.2151870131,
-0.0272025187,
0.2387230396,
-0.4787365496,
-0.0853151679,
-0.1691828668,
-0.1532031447,
-0.0796974823,
-0.0748865008,
-0.2895052731,
-0.2095374465,
-0.2024312168,
-0.0054604136,
0.0684693009,
0.087927185,
0.2781621814,
-0.1255795658,
0.0414713137,
-0.0748353377,
0.1358405799,
-0.4412339628,
-0.5766789317,
0.2957418263,
-0.3659022152,
-0.1257681698,
0.0397186205,
-0.0344117805,
0.1966207027,
-0.0813056231,
-0.3888837993,
-0.501203537,
-0.0530579835,
0.5198507309,
-0.0083584171,
0.2223877609,
0.2656988502,
0.1025975421,
-0.0718000531,
-0.160039559,
-0.3034082651,
-0.0744129047,
0.1303092092,
0.1474382579,
0.0244804434,
-0.1155142486,
0.0212922543,
0.948680222,
0.4342633784,
-0.070230037,
0.2231627107,
-0.0248621833,
0.2981386185,
-0.2454478145,
-0.3688841462,
-0.1476978362,
-0.2928000689,
0.0067810565,
0.1085406467,
0.0752600133,
-0.1753757894,
-0.0250147302,
0.0825962424,
-0.4892017543,
-0.4031331539,
0.0856724679,
-0.1656900644,
0.0815576911,
0.2602030933,
0.2106183171,
-0.5321553946,
0.090220958,
0.1648782939,
-0.086190708,
0.2736441791,
0.0793530121,
-0.3683182895,
0.1268383116,
-0.1403351128,
0.2984192371,
0.1452913582,
0.0825682357,
0.0815269724,
-0.3150337338,
-0.0014725192,
0.0342596583,
0.4899467826,
-0.2179776132,
0.1401729733,
0.2552492023,
-0.3457439542,
-0.2329722941,
-0.0056292908,
0.2093844563,
0.1244715899,
0.4565181434,
0.1455522776,
-0.0683922172,
0.0668685585,
-0.1950419247,
0.1743953228,
-0.1298407316,
-0.1730643809,
-0.2616254389,
-0.1147988737,
-0.1935132295,
-0.0462613776,
-0.0219278652,
-0.0824718699,
0.2793247402,
-0.0040736897,
-0.087762706,
0.024900049,
0.0424338616,
0.3235796392,
0.4023792148,
0.112570703,
0.2466896027,
0.2877407074,
-0.0307033472,
-0.38175565,
0.5447897315,
-0.4847744405,
-0.0462716445,
-0.0436453708,
0.0513318293,
-0.1423597932,
0.3253247738,
-0.0430659615,
0.1085899919,
-0.2674945891,
-0.199077934,
0.0409595668,
-0.2823700011,
0.0216824189,
0.1458654404,
0.0429032259,
-0.3180771172,
0.2287162393,
0.1590021253,
-0.2414938807,
0.4337386489,
-0.4825403392,
-0.0513932966,
0.3319926858,
0.0136125097,
0.911062777,
-0.1734667122,
0.0500283092,
0.0128611466,
0.083323136,
0.1100179777,
0.092351228,
0.0350756198,
-0.2923757136,
-0.1833112687,
0.1781261414,
-0.2048472017,
-0.0319474638,
0.0359763317,
-0.2093027532,
0.2253980488,
-0.2427660674,
0.334143132,
-0.082099326,
0.0266064368,
0.2409805357,
-0.2079920769,
-0.0670745596,
0.2517900467,
0.1397496909,
0.1136321798,
0.0102985287,
0.0557530634,
0.0111022964,
-0.1658501923,
0.1101934686,
0.1955485046,
-0.4270869493,
0.4328399301,
0.2924582362,
0.039916575,
-0.2659755349,
0.4805099368,
0.0956839025,
0.0418473035,
-0.0778784156,
0.1883642972,
0.5420475602,
0.386085242,
-0.1087769866,
-0.0869288743,
0.2897640467,
0.0548853539,
-0.1755195558,
0.250972867,
-0.0736651942,
-0.2423166484,
-0.3938849568,
0.6141800284,
0.0613791533,
-0.1186024398,
-0.176048696,
0.1048596799,
0.0123784775,
-0.0758248195,
0.1647896022,
0.1462884545,
-0.179052785,
0.4457890391,
-0.2131090313,
-0.371899724,
0.0699273497,
0.4534683526,
0.173337549,
0.0093215005,
0.1376282871,
-0.0693816915,
-0.1626779586,
-0.1201680303,
0.0075104418,
-0.1902419478,
-0.1392311603,
0.1540091932,
-0.2027454972,
0.0300341155,
0.1061715111,
0.0916733667,
0.0586215705,
0.1371475011,
-0.1648327857,
-0.1693772227,
-0.3385593891,
0.0306353699,
-0.0441315956,
0.0213308241,
0.213618964,
0.1797361374,
-0.1157212108,
0.5498872399,
-0.3737624288,
0.3833234608,
0.0113043711,
0.2434284091,
0.0710150748,
-0.155437991,
0.1830004305,
-0.1407557726,
0.083108522,
0.322445184,
-0.4399214983,
-0.2872862518,
-0.1811475605,
0.1095013469,
-0.1156541631,
0.0402803198,
-0.0839764103,
-0.0463805422,
0.2319714129,
-0.406219691,
0.2383316606,
0.3710242808,
0.043802537,
0.0262883175,
0.0094773229,
-0.2384497672,
0.076466158,
0.0910535678,
-0.0477082916,
0.0135487961,
0.000951305,
0.0893179104,
-0.2228078097,
0.0061172782,
-0.0053830971,
0.0391432308,
0.0358549766,
-0.0248144716,
0.2994208932,
-0.1901062131,
-0.0239997227,
0.1953644156,
-0.020641366,
0.0140895825,
-0.2981206775,
0.0068757958,
-0.1363160312,
0.2421889305,
-0.1565819979,
-0.1843538135,
0.2601807415,
0.0566384085,
0.1862788945,
0.3639032841,
0.1249355748,
0.1763490438,
0.3144249022,
0.0346049517,
0.4242435396,
-0.443231672,
0.2529170811,
-0.0358358324,
0.1016535163,
-0.0755950287,
0.4201855361,
0.207725808,
-0.0101795541,
0.1366835535,
-0.0172004867,
0.2263930291,
-0.1037822068,
-0.1234441176,
0.0918118358,
-0.3116847277,
0.3174941242,
0.2845165431,
-0.1978763044,
0.3175809383,
0.0710053518,
0.2801993489,
-0.0857457593,
-0.2549969852,
0.0661237538,
0.3539601564,
-0.1984588504,
-0.2379936427,
0.2976208329,
-0.0826371536,
-0.0672833845,
0.0520726442,
0.0385338999,
-0.076493144,
0.639372766,
0.0912358016,
-0.0989949182,
-0.2896137536,
-0.3925938904,
-0.0220436212,
0.3696816564,
-0.3258839548,
0.1601226628,
-0.0890775099,
-0.1169674993,
0.0131449522,
0.1417804956,
0.3679866791,
0.2729372382,
-0.0335257985,
0.2223508507,
0.0193300284,
-0.0601364374,
-0.2175881863,
0.1953991354,
-0.0422963798,
-0.2627489567,
0.2431415468,
0.1970007718,
-0.231449455,
-0.1959876716,
0.0224140715,
0.3202004135,
-0.1956768036,
0.2799754143,
-0.1640453041,
0.0498093814,
-0.2007776201,
0.2425653636,
-0.3044302762,
-0.0074692667,
0.2847546041,
-0.0585044846,
0.181906864,
-0.332906425,
0.1330574304,
0.1462967694,
0.22972399,
0.2411388159,
-0.0535787754,
-0.3673236072,
0.1420622915,
-0.7182421088,
0.3956403434,
-0.2216785401,
0.2400405258,
0.0166970678,
0.3223978877,
-0.1166922972,
0.2464519888,
0.2427613437,
-0.0933392867,
0.1188472509,
0.0502185635,
-0.2349464744,
-0.0020498498,
-0.2285543084,
-0.1609757394,
0.3383446932,
-0.5207582116,
0.0567060746,
-0.0722480044,
0.1838356853,
-0.149276495,
-0.3342307806,
0.0971132815,
0.1433502585,
0.5966309309,
0.2692085803,
0.2411951423,
-0.0407939404,
-0.1440561414,
-0.1243849173,
-0.318366468,
0.0718066245,
0.0000585,
0.1226418018,
0.0638783872,
-0.2842817605,
-0.354937315,
-0.3247481585,
0.0923252255,
0.0893156007,
-0.0798208937,
-0.2577168047,
-0.0709114373,
-0.1522035748,
0.2547757328,
-0.0505948476,
0.7089009881,
-0.1233947277,
0.4982964694,
-0.1800351739,
-0.1781494021,
0.545095861,
-0.4846177101,
-0.2733749747,
-0.1113978252,
0.2527098358,
-0.0689054728,
-0.3204814494,
-0.4433936775,
-0.0313234068,
0.3066165745,
-0.0071089664,
-0.3616110981,
0.0303037837,
-0.3417621851,
0.1679231822,
-0.1015328616,
0.0731696337,
0.0824906304,
0.018058341,
0.1740787476,
-0.1989345253
] |
https://github.com/huggingface/datasets/issues/3295 | Temporary dataset_path for remote fs URIs not built properly in arrow_dataset.py::load_from_disk | Hi ! Good catch and thanks for opening a PR :)
I just responded in your PR | ## Describe the bug
When trying to build a temporary dataset path from a remote URI in this block of code:
https://github.com/huggingface/datasets/blob/42f6b1d18a4a1b6009b6e62d115491be16dfca22/src/datasets/arrow_dataset.py#L1038-L1042
the result is not the expected when passing an absolute path in an URI like `hdfs:///absolute/path`.
## Steps to reproduce the bug
```python
dataset_path = "hdfs:///absolute/path"
src_dataset_path = extract_path_from_uri(dataset_path)
tmp_dir = get_temporary_cache_files_directory()
dataset_path = Path(tmp_dir, src_dataset_path)
print(dataset_path)
```
## Expected results
With the code above, we would expect a value in `dataset_path` similar to:
`/tmp/tmpnwxyvao5/absolute/path`
## Actual results
However, we get a `dataset_path` value like:
`/absolute/path`
This is because this line here: https://github.com/huggingface/datasets/blob/42f6b1d18a4a1b6009b6e62d115491be16dfca22/src/datasets/arrow_dataset.py#L1041
returns the last absolute path when two absolute paths (the one in `tmp_dir` and the one extracted from the URI in `src_dataset_path`) are passed as arguments.
## Environment info
- `datasets` version: 1.13.3
- Platform: Linux-3.10.0-1160.15.2.el7.x86_64-x86_64-with-glibc2.33
- Python version: 3.9.7
- PyArrow version: 5.0.0
| 17 | Temporary dataset_path for remote fs URIs not built properly in arrow_dataset.py::load_from_disk
## Describe the bug
When trying to build a temporary dataset path from a remote URI in this block of code:
https://github.com/huggingface/datasets/blob/42f6b1d18a4a1b6009b6e62d115491be16dfca22/src/datasets/arrow_dataset.py#L1038-L1042
the result is not the expected when passing an absolute path in an URI like `hdfs:///absolute/path`.
## Steps to reproduce the bug
```python
dataset_path = "hdfs:///absolute/path"
src_dataset_path = extract_path_from_uri(dataset_path)
tmp_dir = get_temporary_cache_files_directory()
dataset_path = Path(tmp_dir, src_dataset_path)
print(dataset_path)
```
## Expected results
With the code above, we would expect a value in `dataset_path` similar to:
`/tmp/tmpnwxyvao5/absolute/path`
## Actual results
However, we get a `dataset_path` value like:
`/absolute/path`
This is because this line here: https://github.com/huggingface/datasets/blob/42f6b1d18a4a1b6009b6e62d115491be16dfca22/src/datasets/arrow_dataset.py#L1041
returns the last absolute path when two absolute paths (the one in `tmp_dir` and the one extracted from the URI in `src_dataset_path`) are passed as arguments.
## Environment info
- `datasets` version: 1.13.3
- Platform: Linux-3.10.0-1160.15.2.el7.x86_64-x86_64-with-glibc2.33
- Python version: 3.9.7
- PyArrow version: 5.0.0
Hi ! Good catch and thanks for opening a PR :)
I just responded in your PR | [
0.0369561575,
-0.0552982613,
0.0234630387,
0.2166193724,
0.2328248322,
-0.3071340919,
0.2497993112,
-0.0407906696,
-0.1296836734,
-0.0436530784,
0.1355844438,
0.1818683743,
0.0551710315,
-0.5092630386,
-0.0166563839,
-0.0110697905,
-0.0112729603,
-0.0280554593,
-0.1703246832,
-0.1938072294,
-0.2978545427,
0.3347130418,
-0.094657287,
0.0225326773,
-0.2919438183,
0.0611578971,
-0.1683163345,
0.1893927455,
-0.0131178517,
-0.2459223717,
0.5834463835,
0.0147814574,
0.2270723134,
0.3600234687,
-0.0001227418,
0.0625078157,
0.3336168826,
0.0004607897,
-0.5637124777,
-0.2367706746,
-0.3018203378,
0.1294184774,
-0.0014598363,
-0.3753426373,
0.1064545959,
-0.1972132176,
-0.145775944,
-0.2187372744,
0.0841312483,
0.2057498544,
0.0889070928,
0.3448931575,
-0.3692680001,
0.1144165248,
0.2438660413,
0.208225742,
-0.0852703303,
0.1335502416,
-0.1734142452,
0.0561628342,
0.3708866537,
0.1312757134,
0.0135383774,
-0.193622157,
0.2899789512,
0.2601417601,
-0.1697861403,
-0.0562076196,
-0.0245983992,
0.189515993,
0.2580568492,
-0.240349412,
-0.4915521145,
-0.0077886106,
-0.2396406978,
0.1951584369,
0.2667705119,
0.2356151193,
0.0226293802,
0.1711241305,
0.0542178005,
0.0049751243,
-0.2089629024,
0.4400538504,
0.0884067714,
-0.0375322774,
-0.0677343458,
0.180317089,
0.027008526,
-0.0706960633,
0.120004572,
-0.4672776163,
0.020076178,
0.4478993416,
-0.0029301052,
0.176529035,
-0.0494571179,
0.1900857836,
0.2520086765,
0.033767771,
0.1486415565,
-0.1374361515,
-0.214201957,
0.0503971055,
-0.0780338719,
0.2546058893,
0.0045733652,
0.3935505748,
0.0523617677,
0.1109183431,
-0.1036579534,
-0.1537830234,
0.0100212656,
-0.2739591897,
0.1387828439,
-0.1417107731,
0.2717999816,
0.0443906635,
-0.1289560646,
-0.0058011417,
0.0528483316,
0.1289087832,
0.2091084123,
0.1646004617,
0.1895270348,
0.1211814955,
0.0173147917,
0.2567891479,
-0.0901084468,
0.16722247,
-0.089305155,
-0.0424945392,
-0.1979613751,
0.0674479529,
-0.1602749527,
-0.1096054241,
0.3737945557,
-0.0243711807,
-0.387521565,
0.0111442218,
-0.0399082713,
-0.2159236819,
0.5142447352,
0.2119115442,
-0.0040558991,
0.2605877519,
-0.0347543769,
0.0922367275,
0.0739143118,
0.1262891144,
-0.250521481,
-0.3963762522,
-0.1564148366,
0.0417643748,
-0.1469447762,
0.1908768862,
-0.1882110685,
-0.1214519516,
0.2155371755,
0.159651801,
0.2525578141,
0.001450635,
-0.3045209348,
-0.0750218779,
0.3280438185,
0.6654709578,
-0.1814120859,
0.0188633539,
0.0941214785,
-0.1371849179,
0.0879538208,
0.5107911825,
-0.1098562703,
0.090542078,
-0.4615577161,
-0.0275868513,
0.3696825802,
-0.2799310684,
-0.2352555245,
0.557287693,
-0.2339682728,
0.0618095063,
0.2341724187,
0.1114202216,
0.0965799987,
-0.0272917114,
0.026007602,
0.5655298233,
0.0950028077,
-0.0088532371,
-0.4758118987,
-0.2010188252,
-0.0543937422,
-0.1776195168,
0.1362141967,
0.0394255668,
0.1685283333,
-0.2147461474,
0.6231132746,
0.1159622595,
0.060520757,
0.3416164815,
0.3216986656,
-0.0339145474,
0.1338916868,
-0.0237496234,
-0.4830398858,
0.2293232828,
0.023586221,
-0.1841334105,
-0.3704826236,
-0.0649405122,
-0.2364164293,
0.2524693608,
-0.2318085432,
0.0479815491,
-0.0089503368,
0.1475872993,
0.3812825084,
0.1038762927,
-0.1018508375,
0.0984435678,
-0.3267227113,
0.1440314204,
-0.1447345316,
0.5861157179,
0.1950217783,
0.0661326274,
-0.4032776058,
0.1983181238,
0.3066441417,
-0.2730872929,
-0.1848003864,
0.6214780807,
0.2610346973,
0.2618400455,
0.3044308424,
0.0028347694,
0.2820242345,
-0.0595907867,
-0.0444000326,
0.2906207144,
0.2024153173,
0.2073193789,
-0.0966881365,
0.4392253757,
-0.3264578879,
0.404785037,
0.1110228822,
0.1273135692,
0.0892011151,
0.0859244019,
-0.10335242,
-0.5248630047,
0.1138011739,
0.2804961205,
0.1325851679,
0.0345442705,
-0.1546175927,
0.2714358866,
0.155696407,
0.0191610288,
-0.1639264226,
0.1322444081,
-0.1035461575,
-0.0634359568,
0.1040899381,
0.5406010747,
0.2467709482,
0.0963679329,
0.102173917,
-0.2334135622,
-0.0207314733,
-0.1131184399,
0.6549537182,
0.0795143619,
-0.2248226553,
-0.106896989,
0.0565105081,
-0.061948996,
-0.0794577524,
-0.138313055,
0.129245013,
-0.0073968037,
-0.2870830595,
0.1309352815,
-0.2684375942,
-0.2801205814,
-0.3753237128,
-0.2892339528,
0.0683640167,
-0.2865794003,
-0.1475555748,
-0.1664262563,
-0.1738113612,
0.0462355204,
-0.1583982408,
-0.1879719347,
0.1065222323,
-0.6734470129,
-0.1528396457,
-0.0627658144,
-0.2968194783,
-0.0939886868,
0.1417087317,
0.0146886827,
-0.0066525089,
-0.1725387573,
-0.0115719028,
-0.7566298842,
-0.0303254724,
0.0893981606,
0.0487161763,
0.3711924851,
0.2645789385,
-0.0139244478,
-0.005418763,
0.1107797474,
0.2007709146,
-0.1442756355,
0.0902217254,
0.2392406017,
-0.0803695768,
-0.0881447271,
-0.1216317639,
-0.0663776547,
-0.2332569063,
0.0812882707,
0.0134568997,
-0.0644517988,
0.0940161198,
0.1859412193,
0.2846474051,
-0.08596351,
-0.2038819492,
-0.3004156053,
-0.0166554861,
-0.5483574271,
0.4213198125,
-0.2101542801,
-0.2728809416,
-0.2175577581,
-0.1899798214,
0.0908274129,
0.3819715977,
-0.5044758916,
-0.2342091054,
-0.1366603971,
0.6991261244,
-0.1179350615,
0.1372331232,
-0.0100587225,
-0.1950989068,
0.0905815586,
-0.199566707,
0.0626802146,
0.3449763358,
-0.1166480929,
0.2005582899,
0.2459792346,
0.3429849148,
0.0392787047,
0.8522263765,
-0.02656243,
-0.0542071126,
0.4391298592,
-0.42853719,
0.4026319385,
0.0163511876,
-0.1890103817,
-0.1155806854,
0.2197943628,
-0.3028893769,
0.0145442076,
0.3223402798,
0.2055884451,
0.0297423285,
-0.0655829832,
-0.1652834266,
-0.4775806069,
-0.136217311,
-0.2751296461,
0.1810417771,
0.3089031577,
0.1632851809,
-0.3162355423,
-0.0231189989,
0.1257670522,
0.1804458648,
0.204672873,
0.1634476185,
0.2010062486,
0.1622406095,
-0.212098226,
0.0851449743,
0.2142408937,
0.4085389674,
0.3559886813,
0.1633836329,
0.0939942151,
0.0662789717,
0.8046405911,
-0.0227079429,
0.3934676945,
0.0633151531,
0.2086756825,
-0.8243207335,
0.0477601141,
0.2371168733,
-0.0559390634,
-0.0616931058,
0.4179939032,
-0.1283585131,
-0.1372191757,
-0.0460744947,
0.3342016041,
-0.1191175357,
-0.249165833,
-0.2841235101,
-0.2320305854,
-0.0078371624,
-0.2664473653,
0.047449939,
0.0902369618,
0.1354917437,
-0.1199239865,
-0.0604419522,
-0.1882217824,
-0.3381052613,
-0.0461795032,
0.5384995341,
-0.4136062264,
0.2652691603,
0.088357091,
-0.132286489,
0.1796956658,
0.6699588895,
-0.4103561938,
0.1068325937,
-0.0242227893,
-0.047168538,
0.2545273304,
0.2977768779,
-0.28697595,
0.0369439833,
-0.0583970547,
0.1606439799,
0.0071253921,
0.0940581933,
0.2455443591,
-0.1252904534,
0.3470818102,
-0.496186614,
0.4860843122,
0.0824961811,
-0.1045569256,
0.5191006064,
0.6014655232,
-0.5262241364,
0.2791980207,
0.1667238325,
0.6307147741,
0.0306064561,
0.2069117129,
0.4575585127,
-0.3366644084,
0.1757577509,
-0.0861990005,
-0.3970142305,
-0.2474674582,
0.3043351173,
-0.0221914295,
-0.1662699282,
-0.2920485437,
0.0284059513,
0.154381603,
0.3084427714,
-0.0570212379,
0.4630051553,
0.2029827386,
0.1345716119,
-0.2748815119,
-0.2720050812,
-0.171169728,
0.0246593617,
0.3658472598,
-0.1756169498,
-0.0737723932,
-0.1667363346,
-0.0139320754,
-0.1895610243,
0.0642876402,
0.1757543832,
-0.7405603528,
0.2372128814,
-0.0680422261,
-0.3796141744,
-0.4063452184,
0.2590465248,
0.1380954385,
-0.1144058406,
-0.1056594998,
0.047843378,
0.067901887,
0.1470033377,
-0.2328219861,
-0.2448559403,
0.2137323171,
0.1201383173,
0.0767062306,
-0.2272394449,
-0.3225747049,
0.1985812485,
-0.0792896226,
-0.1867976189,
0.0378483199,
0.1897777319,
-0.309053123,
-0.1946619004,
-0.2141167223,
-0.1211253181,
-0.021065725,
-0.0034797066,
0.0076512555,
-0.0556368008,
-0.3301480711,
-0.1479559392,
0.0648543313,
0.3668279648,
-0.2200766206,
0.1373018026,
0.3823256791,
-0.2449396551,
0.0370846316,
-0.109157972,
0.3887397051,
0.1891884655,
-0.6400201321,
0.253834188,
-0.1048728079,
0.2076173127,
-0.1429193765,
0.0246492233,
0.1217664331,
0.0218072422,
-0.1722979248,
-0.3184289932,
-0.2735030353,
0.061258655,
-0.2432717234,
-0.0159210656,
-0.1775709093,
0.0554837361,
0.0869876891,
-0.5338543057,
-0.1750125885,
0.286809504,
0.1498092413,
0.0135347266,
-0.2922550738,
0.1451116651,
0.3496401608,
-0.0138080791,
0.0045503541,
0.0318660364,
0.0263365339,
-0.0370969474,
-0.3810772896,
0.1968622208,
0.1462280899,
-0.1379306763,
-0.1336079836,
-0.3653244376,
-0.1284651905,
-0.2273403555,
0.020665152,
0.3187432885,
-0.13908647,
0.0161335319,
-0.015472047,
-0.0013143037,
-0.4767417312,
0.1332359016,
-0.1475705951,
0.3038630486,
-0.0612166002,
0.3697856367,
-0.2825434506,
-0.111129567,
-0.1938458979,
-0.0100027462,
-0.1645583212,
0.1473630667,
0.2628373206,
-0.2777316272,
-0.1469551772,
-0.0498200059,
0.342607677,
0.264370501,
-0.2012743652,
-0.2235345989,
-0.0198266786,
0.0866852626,
-0.0211939216,
0.0977275968,
-0.3078224063,
0.0773723498,
0.0720625669,
0.3332687914,
0.3084588945,
-0.3047439754,
-0.0004671231,
-0.0858444944,
0.2566131055,
-0.2895602882,
-0.1264815331,
0.2774736285,
0.1690918952,
0.2783679664,
0.0199863389,
0.0988028124,
0.3051720262,
0.4799357653,
-0.2564874589,
0.4663787186,
0.3813983798,
-0.1218162924,
-0.0114852302,
-0.1072458923,
-0.1538336128,
-0.1749915034,
-0.210259378,
0.1481086314,
-0.1195926368,
0.4495499432,
-0.2031496912,
0.0287532806,
-0.0436509103,
0.0024394924,
0.0991444066,
-0.2607975006,
-0.3310010433,
-0.2841905951,
-0.1284861714,
-0.0643132105,
-0.0611834191,
-0.1727073789,
0.040366888,
0.2159777433,
0.1239327118,
-0.3829299808,
-0.0094091576,
0.4862304628,
0.176772356,
-0.4546720088,
0.2921339273,
0.3404011726,
-0.0666768029,
-0.0431863293,
-0.2205269039,
0.4036397636,
0.4103372693,
-0.0335789844,
-0.169784978,
0.3977210224,
-0.0802746192,
0.0791247413,
0.2190568447,
-0.0061372565,
-0.0271310005,
0.5444441438,
0.0693853647,
-0.0907634497,
0.1789720654,
0.3381936252,
0.6006694436,
-0.0960620567,
0.257163018,
-0.137724936,
0.062830925,
-0.238494426,
0.0459183827,
-0.2782210112,
0.0721773803,
0.3533574343,
-0.2051463872,
0.1026249081,
-0.1291594803,
0.0176642258,
0.0429745615,
0.4860708117,
0.2970610559,
0.144120276,
-0.6475787759,
-0.2131397128,
-0.4523508251,
-0.2013225257,
0.0046823155,
-0.0858937353,
-0.0943902507,
0.3138389885,
-0.1685612947,
-0.1313613057,
0.1572349519,
0.0433931053,
0.0876715779,
0.1925529987,
-0.1587174982,
-0.2059913278,
-0.1824808419,
0.1410438269,
0.0998092815,
-0.48771438,
-0.254091531,
-0.3078275919,
-0.0568165556,
-0.0568700954,
-0.0842134431,
0.233349517,
0.0520385131,
0.1857368648,
0.1316849738,
-0.1731232256,
0.1026747003,
-0.1493700147,
-0.4515224695,
-0.1688391715,
-0.2274619788,
-0.2047837675,
-0.0277584661,
0.265113622,
-0.1753426641,
-0.2223428637,
-0.4729718268,
-0.1251793653,
0.0515201017,
0.3005794287,
-0.1165866479,
0.2260486633,
-0.3240672946,
0.1199862063,
0.161247313,
0.262340337,
-0.101575762,
0.5284649134,
-0.1160083935,
-0.3621740937,
0.4604662359,
-0.2227962911,
-0.0286111441,
0.1801932156,
0.3792960346,
0.2365296334,
-0.0094770752,
-0.4844699502,
0.0630010143,
0.4716419578,
0.0099557415,
0.0186022688,
-0.2394858599,
0.2877708972,
0.393637836,
-0.0494218618,
0.1708224267,
0.0199847594,
-0.2172677368,
0.1805697531,
-0.2082880437
] |
https://github.com/huggingface/datasets/issues/3292 | Not able to load 'wikipedia' dataset | Hi ! Indeed it looks like the code snippet on the Hugging face Hub doesn't show the second parameter

Thanks for reporting, I'm taking a look
| ## Describe the bug
I am following the instruction for loading the wikipedia dataset using datasets. However getting the below error.
## Steps to reproduce the bug
from datasets import load_dataset
dataset = load_dataset("wikipedia")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs)
339 "Config name is missing."
340 "\nPlease pick one among the available configs: %s" % list(self.builder_configs.keys())
--> 341 + "\nExample of usage:\n\t`{}`".format(example_of_usage)
342 )
343 builder_config = self.BUILDER_CONFIGS[0]
ValueError: Config name is missing.
Please pick one among the available configs: ['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']
Example of usage:
`load_dataset('wikipedia', '20200501.aa')`
I think the other parameter is missing in the load_dataset function that is not shown in the instruction. | 27 | Not able to load 'wikipedia' dataset
## Describe the bug
I am following the instruction for loading the wikipedia dataset using datasets. However getting the below error.
## Steps to reproduce the bug
from datasets import load_dataset
dataset = load_dataset("wikipedia")
```
## Expected results
A clear and concise description of the expected results.
## Actual results
~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs)
339 "Config name is missing."
340 "\nPlease pick one among the available configs: %s" % list(self.builder_configs.keys())
--> 341 + "\nExample of usage:\n\t`{}`".format(example_of_usage)
342 )
343 builder_config = self.BUILDER_CONFIGS[0]
ValueError: Config name is missing.
Please pick one among the available configs: ['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']
Example of usage:
`load_dataset('wikipedia', '20200501.aa')`
I think the other parameter is missing in the load_dataset function that is not shown in the instruction.
Hi ! Indeed it looks like the code snippet on the Hugging face Hub doesn't show the second parameter

Thanks for reporting, I'm taking a look
| [
-0.0762499273,
0.1433965415,
-0.0506567694,
0.361487031,
0.1556535512,
0.3728308976,
0.3982861936,
0.2425004393,
0.1862864047,
0.0674075261,
0.1126710996,
0.3431457281,
0.0850702003,
-0.0809758008,
0.1471760273,
-0.1971467137,
-0.0270585194,
0.0480618328,
0.0294922721,
0.108122617,
-0.1571225673,
0.1489009559,
-0.2857777476,
0.099941425,
-0.3015491664,
0.1277659237,
-0.0241987538,
0.2004403174,
0.0275536794,
-0.5392947793,
0.3177029788,
-0.0027133008,
0.1395421624,
0.3887560964,
-0.0001088778,
-0.0040133246,
0.6608820558,
0.0011525807,
-0.4263212383,
-0.1657407135,
-0.3333564997,
-0.3038102388,
0.1459581852,
-0.4603995383,
-0.0372548513,
-0.1757347882,
0.0839183927,
-0.1995667517,
-0.0116899116,
0.1413781345,
0.2452875972,
-0.1219421551,
0.3861863911,
-0.1507188827,
0.0982674658,
-0.0181877837,
-0.0152354166,
0.2158155143,
-0.1008498222,
-0.0736297145,
0.0440182351,
0.1875633746,
-0.2082747221,
0.0532175452,
0.5087931156,
-0.0500109382,
-0.0143476436,
-0.3330171704,
0.3587856889,
0.3138601184,
0.8974268436,
-0.2420720756,
-0.1174362525,
-0.1413225979,
0.1418509185,
0.1661687493,
0.2689996064,
0.1020404026,
-0.3792630136,
-0.1333725899,
-0.043799825,
-0.4811695218,
-0.2208629102,
0.4064058065,
-0.1830918491,
0.2739248872,
-0.0501318201,
0.1974299997,
-0.2229760289,
-0.1009690464,
0.1023294404,
-0.3811612129,
0.1440518945,
0.2503111959,
-0.2573223412,
0.1561059058,
0.1723737419,
-0.0082620708,
0.1390540004,
-0.1924441457,
-0.3186343014,
-0.1789720207,
0.1592135131,
0.1971673369,
0.2543841004,
-0.0453175604,
0.0899201185,
0.3081810176,
0.2290578187,
0.3004584908,
-0.227966398,
-0.0432619452,
-0.0444213673,
-0.2414572239,
0.0622906983,
-0.0914028436,
0.3935388923,
-0.1665318608,
-0.064451471,
0.2788003683,
-0.1598672569,
-0.1446148902,
0.0326210782,
0.2899544239,
-0.3346847296,
-0.0866428614,
0.2921960354,
0.0758261383,
-0.0972869322,
0.0425466523,
-0.2056031376,
0.0275315754,
-0.1764674336,
0.0646431223,
0.2770914733,
-0.3871308565,
0.4450867474,
0.2117188275,
0.1712426841,
-0.136753872,
-0.1352374703,
0.0778246373,
-0.0894160345,
0.269875288,
0.1132349521,
0.2365855873,
0.0263855606,
-0.2652976215,
-0.0908162892,
0.2578475773,
-0.1971955895,
-0.2262066007,
-0.3039411902,
0.2417936772,
-0.1847665608,
-0.0876882076,
-0.0882266611,
0.022457134,
0.2084350735,
-0.3131102026,
-0.1747237891,
-0.041192878,
0.03369499,
-0.2673460841,
0.3951307535,
0.4149209857,
-0.2076656818,
-0.1178127602,
-0.0589747094,
0.1466472298,
0.0736878887,
-0.0532397144,
-0.270588547,
0.3825062513,
-0.1123158559,
-0.0693781972,
0.4443960488,
-0.1020063981,
-0.3050428033,
0.1014275923,
0.1648797691,
0.1072032303,
-0.0898692831,
-0.058683157,
0.1451798975,
0.1420225203,
0.2261272073,
0.3157557845,
-0.0013490521,
-0.0606463067,
-0.1497494727,
-0.2048336715,
0.2640186548,
0.2016723305,
0.2600150704,
0.0389704928,
0.0659276396,
0.1352382898,
0.2274320573,
-0.1065765545,
-0.0679878145,
0.3541466296,
-0.1541165709,
0.3320243359,
0.2752763033,
-0.1638209224,
-0.508169651,
0.3589698076,
0.1145787761,
0.190365389,
-0.1336482018,
0.000489251,
-0.3860522509,
0.0331835784,
-0.319797188,
-0.0479536504,
0.2004968822,
0.1718930304,
-0.1269347966,
0.0897181183,
-0.0490690954,
-0.0309708416,
-0.1140538231,
0.003124011,
-0.4020708799,
0.2683753967,
-0.2581434846,
0.0515186936,
-0.0388799198,
0.1456325501,
0.2769025266,
0.0678524971,
-0.1277254224,
0.1147894636,
0.1085088477,
-0.1217943057,
-0.0070834602,
-0.2365659922,
0.0957315341,
-0.3781540692,
0.195713535,
0.4140833318,
0.1699285954,
-0.1158527434,
-0.1152520776,
-0.0282833856,
0.0518142432,
0.2994950712,
-0.1055546179,
0.1787907332,
0.3160390556,
-0.0401726589,
0.0400570631,
-0.0876144543,
0.2812755108,
0.086244382,
0.1163825467,
-0.0680866614,
-0.3055632114,
-0.2052358836,
0.1828152388,
-0.0501881316,
-0.0358583778,
0.1251669675,
-0.2739663124,
-0.0369612388,
0.038525898,
-0.0518314987,
0.1107298657,
0.1819207519,
-0.1637375951,
-0.1179532483,
-0.156870693,
0.0091813551,
0.3547698855,
0.2460720241,
0.2839433551,
0.2029431462,
0.0543916449,
0.1607455313,
-0.1579761803,
-0.2648553252,
0.0597534068,
0.1771060526,
-0.4073268175,
0.0732983798,
-0.0970769003,
-0.2272070348,
0.0579413287,
-0.2466100156,
-0.3912616372,
-0.3991883397,
-0.1147289053,
0.0344351046,
0.0470112599,
0.292337656,
-0.0997907147,
-0.0256752614,
0.1458299309,
-0.3234952986,
-0.2285157442,
-0.3758781552,
-0.2756741643,
0.0454219021,
0.2205768228,
-0.0539904125,
0.239261955,
-0.099008657,
-0.1166928411,
-0.4501043558,
-0.3113399446,
0.1635795683,
-0.078037262,
0.4584930837,
0.1675859392,
0.3674376011,
0.2156600803,
-0.3337647915,
0.357052654,
0.0802816674,
0.0244858637,
0.2931557894,
-0.0788694546,
-0.244759053,
0.1158895865,
-0.2963207662,
-0.1140127257,
-0.2727454007,
-0.2193789631,
0.2467513978,
0.0532575212,
0.4353682101,
-0.0012494165,
0.0029925904,
0.1121122986,
0.2858233452,
-0.2634222209,
-0.1440223604,
0.4427885413,
-0.2935158014,
-0.3429141045,
0.0663546771,
0.0269072969,
0.1517429203,
-0.0191972218,
-0.4672428668,
0.3088128865,
0.055060003,
0.3868793249,
-0.244783029,
0.1319736689,
0.0719868094,
0.1632779539,
0.0522080362,
-0.1593940109,
-0.2360760719,
-0.1644302756,
-0.1190428585,
0.4106624424,
0.0564578623,
0.3606627285,
-0.2596127689,
0.7011088729,
0.233271867,
0.0301160533,
0.127359882,
-0.1630523056,
0.221976772,
-0.1452790201,
-0.5021956563,
0.0508692488,
0.0039184676,
-0.0705964193,
0.1741600782,
-0.1274311095,
-0.355212003,
-0.3355377614,
-0.0691030398,
-0.1582757384,
-0.2660822868,
-0.0325980335,
-0.1303666532,
0.3339734375,
0.1181677878,
0.0752612054,
-0.2220858485,
-0.2243528962,
0.1759122461,
0.3002291322,
0.0542820469,
-0.0382653661,
-0.0760166645,
-0.1788799018,
-0.3611299694,
0.1135650128,
-0.0044014808,
0.1310041398,
-0.0066402196,
0.2235793024,
0.1020100787,
0.2515491247,
0.4042395949,
-0.185748443,
0.1291404665,
0.4274494052,
0.2465022206,
-0.5051904321,
-0.0659937263,
-0.1023882106,
0.5418809652,
0.2383508384,
0.228354916,
-0.3856953382,
-0.1309486926,
0.4610505402,
0.4112975895,
-0.2030814439,
-0.4983717799,
-0.2539786696,
-0.1504779011,
-0.3062962592,
-0.1975273341,
-0.1103551537,
0.4979363978,
0.1474708766,
0.0024687175,
-0.0842687413,
0.25214836,
-0.1211365387,
0.1782149971,
0.2831379771,
0.217510879,
0.1594946384,
0.1804465801,
-0.025483815,
0.0297432039,
0.3601617515,
0.1821870804,
-0.4071613252,
-0.0529285595,
-0.043821197,
0.0348920934,
-0.0651450232,
-0.241658628,
-0.2427107543,
0.0427985303,
0.0656176433,
-0.0256588273,
-0.2186255008,
0.160584107,
0.0674024895,
-0.3333198726,
-0.4888307452,
0.7041279674,
-0.1159755215,
-0.0324326083,
0.4417915344,
0.0338759907,
-0.4245887399,
0.2556722462,
0.100598,
0.6184564829,
0.0779337958,
0.0587925352,
0.2924252152,
0.2034122497,
0.4223276973,
-0.0006723681,
0.0590899587,
-0.4173922539,
0.0898936167,
0.0163951553,
-0.0746879354,
0.10855335,
0.1111115366,
-0.2122323066,
0.319429189,
-0.1379640996,
0.1782358885,
0.1373496801,
0.2509926558,
0.1967233717,
-0.1825538576,
-0.1909705549,
0.1320291013,
-0.1504141837,
0.4101601839,
-0.1417462528,
0.1455659866,
-0.0337733217,
-0.1143648177,
-0.4278290868,
0.1117999852,
-0.3128311038,
0.4174285233,
0.0959899053,
-0.2793192863,
0.2722391486,
0.4079373479,
0.0093762847,
0.3503390253,
-0.2778099477,
0.2653893232,
-0.192826286,
-0.1600654721,
-0.0498733334,
0.0575070679,
0.2640189528,
-0.049412325,
-0.3694516122,
0.1802765876,
-0.278547585,
-0.2051872313,
-0.0422666259,
-0.0349904113,
0.0053276825,
-0.2756509185,
-0.3117148876,
-0.0903416947,
0.2370186001,
-0.1992264241,
0.1821175665,
0.0852742717,
-0.0854222924,
0.1716853678,
0.0946849957,
-0.1951341331,
0.1454757154,
0.1537447572,
0.0352612659,
0.0836740285,
0.5873228312,
0.3021098077,
-0.2761183977,
-0.0958686993,
-0.0021899303,
-0.4509397745,
-0.1380668283,
-0.0249582194,
0.0586950406,
0.2809746563,
-0.202765286,
0.1007726863,
0.1343241632,
-0.1264224648,
0.1416547894,
-0.5545524955,
-0.0766843781,
0.1654494852,
-0.1242706478,
0.0412740111,
0.2108889073,
-0.1964700818,
0.1447800547,
-0.1267898679,
-0.3145429194,
0.0856230408,
-0.2807079256,
0.1228870302,
0.2874765396,
0.1155424789,
-0.1431735009,
-0.2914201319,
0.2108362615,
-0.4300375581,
0.2132371366,
-0.2451292872,
-0.1035983935,
0.1026884466,
0.030761255,
-0.0718603805,
-0.1443972737,
-0.3866752386,
-0.0799495801,
-0.1067988202,
0.0741604418,
0.0607801937,
-0.0269912537,
0.3385417461,
-0.0416258648,
-0.1577266902,
-0.3129314184,
0.3995966315,
-0.0913822427,
0.2016511858,
0.2336551696,
0.2936463952,
0.1717708558,
-0.0239558779,
-0.23379457,
0.1751312464,
-0.476298213,
0.1548593342,
0.4341122806,
-0.3520617485,
0.1845674664,
0.4466385245,
0.0046520778,
0.3105725646,
-0.3362982273,
0.1401225626,
0.0233797263,
0.2343255728,
-0.4720907807,
-0.2575363517,
0.4297344983,
-0.0867109373,
-0.0076547712,
-0.0141752632,
0.0114406738,
-0.2316785157,
0.0057424279,
0.0837632641,
0.1140689626,
-0.0169861875,
0.3407058418,
0.2914638519,
0.0751191601,
0.1344754398,
0.2230386287,
0.3482096791,
-0.095328927,
0.3604417443,
0.0562632531,
-0.0786714852,
0.1129688546,
-0.0266714673,
0.0095025962,
-0.2950556576,
0.4079785645,
-0.0364143215,
-0.3305140138,
-0.085510619,
-0.1702900529,
0.0095476089,
-0.0032923622,
0.1653830856,
-0.1698826104,
0.0549490862,
-0.2413343489,
-0.1162447631,
-0.3485150933,
-0.2642696798,
0.2343386412,
-0.0138038956,
0.0039666924,
-0.3978194594,
-0.0025663511,
0.1768551916,
-0.3036004305,
-0.4856584966,
0.5605632663,
0.2303677499,
0.0759681463,
-0.2554729581,
0.0183920823,
-0.0106016826,
-0.1151348129,
-0.004691238,
0.3474290073,
0.4359173477,
0.1302093863,
-0.2944426239,
-0.0884461179,
0.0637793615,
-0.206480518,
-0.0021648163,
0.1633806676,
0.1010265499,
-0.0970166549,
0.2647856474,
0.1687251925,
-0.1771622896,
-0.2498700172,
0.3407153189,
0.1548037976,
-0.2175164521,
-0.1117453799,
-0.1600700617,
-0.2669673562,
-0.0327212289,
0.0484374315,
-0.3697042465,
-0.0593139157,
0.7955412269,
0.2854575217,
0.0417967066,
-0.148495093,
0.0800216794,
-0.1739333421,
0.5828049183,
0.2126785517,
0.1234092116,
-0.3108223379,
-0.1359241009,
-0.5117228031,
0.1726037711,
0.0224847868,
-0.3236041963,
0.4467242062,
0.1212194413,
-0.0736684799,
0.1047296971,
0.1857981831,
-0.1311265379,
0.1802458167,
0.2207226902,
-0.3023937345,
-0.3581089377,
0.1102189869,
0.1513612866,
-0.2193040401,
-0.2592402399,
0.1024261713,
-0.2166773379,
0.0444101728,
-0.2209196091,
0.0494964607,
0.3243723512,
0.0066019776,
0.3169939816,
-0.0624984205,
0.595115602,
-0.0331071764,
-0.0825691223,
-0.1595410556,
-0.2180833071,
-0.0251061022,
0.5132485032,
0.0292541478,
0.1247902438,
-0.0851342976,
-0.1892465204,
-0.228009969,
0.2200964391,
-0.0514727756,
-0.100116469,
-0.3402852118,
0.0469308719,
-0.0562030934,
0.3049970865,
-0.0439401753,
0.1016957685,
-0.2484977096,
0.1720051467,
-0.1828522384,
-0.4456843436,
0.4480863512,
-0.3026408851,
-0.463152796,
-0.2122716755,
0.1129515618,
-0.1537612528,
0.1415073723,
-0.3922457993,
0.0805288255,
0.5259362459,
-0.1660052985,
-0.2529403269,
0.0926158428,
-0.1095596477,
0.278375119,
-0.0392027609,
0.215473935,
0.0283204708,
-0.2352855206,
-0.3090519905,
-0.2268884629
] |
https://github.com/huggingface/datasets/issues/3285 | Add IEMOCAP dataset | The IEMOCAP dataset is private and available only on request.
```
To obtain the IEMOCAP data you just need to fill out an electronic release form below.
```
- [Request form](https://sail.usc.edu/iemocap/release_form.php)
- [License ](https://sail.usc.edu/iemocap/Data_Release_Form_IEMOCAP.pdf)
> We do not share the dataset for commercial purposes due to privacy concerns surrounding the participants of the research. The login details will only be emailed to the given academic email address.
I think it won't be possible to add this dataset to 🤗 datasets. | ## Adding a Dataset
- **Name:** IEMOCAP
- **Description:** acted, multimodal and multispeaker database
- **Paper:** https://sail.usc.edu/iemocap/Busso_2008_iemocap.pdf
- **Data:** https://sail.usc.edu/iemocap/index.html
- **Motivation:** Useful multimodal dataset
cc @anton-l
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 80 | Add IEMOCAP dataset
## Adding a Dataset
- **Name:** IEMOCAP
- **Description:** acted, multimodal and multispeaker database
- **Paper:** https://sail.usc.edu/iemocap/Busso_2008_iemocap.pdf
- **Data:** https://sail.usc.edu/iemocap/index.html
- **Motivation:** Useful multimodal dataset
cc @anton-l
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
The IEMOCAP dataset is private and available only on request.
```
To obtain the IEMOCAP data you just need to fill out an electronic release form below.
```
- [Request form](https://sail.usc.edu/iemocap/release_form.php)
- [License ](https://sail.usc.edu/iemocap/Data_Release_Form_IEMOCAP.pdf)
> We do not share the dataset for commercial purposes due to privacy concerns surrounding the participants of the research. The login details will only be emailed to the given academic email address.
I think it won't be possible to add this dataset to 🤗 datasets. | [
-0.397473067,
-0.1045239344,
-0.1626392454,
0.0194149353,
-0.0553386062,
-0.1147543192,
0.5808407664,
0.0518383682,
0.0989707932,
0.3002893031,
-0.4795856476,
0.0958077982,
-0.1967371255,
0.4536911547,
0.1594685018,
-0.0247065332,
-0.0657192394,
0.1287432909,
0.0163776595,
0.0037707989,
0.0428195596,
0.0552564748,
-0.0223839693,
-0.0564066805,
-0.1907221228,
0.0491648056,
-0.1851543039,
0.0417535827,
-0.2844050229,
-0.1643353403,
0.028180575,
0.3415521979,
-0.1763360202,
0.2900146842,
-0.0000974872,
-0.0472247563,
-0.1219653189,
-0.3168736696,
-0.0934412703,
0.058860559,
-0.3996445835,
0.093874611,
-0.3133709729,
-0.1003327593,
-0.3224112988,
-0.0918994993,
-0.2276781648,
-0.2974074483,
0.1359324902,
0.3855355382,
0.3168556988,
0.0318123177,
0.132597208,
-0.1405479461,
0.2937950194,
0.3015145063,
-0.2291443348,
-0.0079626599,
0.0914374441,
0.1443849057,
-0.0584492981,
0.3583850563,
-0.1107891127,
0.0481700189,
-0.1037904471,
0.0228635911,
0.1141306609,
-0.1054380536,
0.1625213325,
0.4214643538,
0.5761350393,
-0.3468239307,
-0.2958818972,
0.0910819918,
0.295096308,
-0.1853452176,
0.1303764433,
0.1522126794,
0.2014205903,
0.1935744584,
-0.0518915206,
-0.0593594648,
-0.1860747784,
0.1145190448,
-0.0618064776,
0.2257767022,
-0.3401400149,
-0.1609714776,
0.0187834296,
-0.264710784,
-0.0855719596,
0.2319496125,
-0.0095134843,
-0.0812553763,
-0.1240161434,
-0.1955130398,
-0.0465834066,
0.1206808314,
0.0745655596,
0.1428406835,
0.1880730689,
0.0600982197,
0.1922097206,
0.1587522477,
0.0740781277,
-0.4278228283,
-0.028165767,
-0.281188339,
0.4038632214,
0.1260293871,
-0.0819575712,
0.0422120839,
0.1543980986,
0.1268292367,
-0.1551383734,
-0.0943450928,
0.137254402,
-0.1460512877,
-0.3103977442,
-0.1310610324,
-0.0871470571,
-0.1315881014,
0.0602668375,
0.2727727294,
-0.0770404786,
0.2141496837,
-0.0198289156,
0.3079814315,
-0.0520646609,
-0.3060113192,
-0.1031977385,
0.0786528066,
-0.1309862584,
0.2466423064,
0.3833064139,
0.2544535995,
0.0175817423,
-0.0562823936,
0.0671899617,
-0.058595527,
0.225160569,
-0.1493901312,
0.1864888221,
0.0956900716,
0.2446404248,
-0.1005442366,
-0.1965135783,
-0.2140139341,
-0.2752706409,
-0.3338686824,
-0.0090578021,
-0.1298040897,
-0.3706522286,
0.3281068504,
0.0080052475,
-0.1325460523,
-0.0423210785,
0.3735109568,
-0.017597042,
-0.2558069229,
0.0362613834,
0.2573405802,
-0.4331174493,
-0.0616894141,
0.1306972355,
0.2101190686,
-0.1018632725,
-0.2151274681,
-0.2385183722,
-0.0504702516,
-0.2295741737,
0.1759162098,
-0.0021072095,
0.1390891373,
-0.2102533132,
0.1659365147,
0.0612417124,
-0.3258381486,
-0.3701396286,
-0.2355847657,
-0.1705554873,
-0.1734069586,
0.4858984947,
0.3162850738,
0.3446546495,
-0.3364909589,
0.2164063007,
0.3085619509,
-0.0907005221,
0.074243024,
0.0914181992,
-0.2873871326,
-0.20521456,
0.2619987726,
-0.0933020785,
-0.2307523042,
0.2690961659,
0.0112949563,
0.1067379415,
-0.1691335291,
0.3663846254,
0.0592353083,
0.3073550761,
0.1239266172,
-0.0555027872,
-0.5151282549,
0.0551022813,
-0.124432072,
-0.115504697,
0.2578992844,
0.0535441563,
-0.4508404434,
-0.2166954428,
-0.1120780334,
-0.2036852837,
-0.0455565527,
0.330103159,
0.3583928049,
-0.0219894834,
0.050292477,
-0.152647987,
-0.0272606649,
0.1640065014,
-0.1499967426,
-0.1567132026,
0.1836345047,
-0.159731254,
-0.0583026819,
0.1670951992,
0.3672917485,
-0.2413950115,
0.1169639975,
0.1638264954,
0.2458033264,
-0.083759591,
0.3472055793,
0.2530809939,
0.4615987837,
0.0365936235,
-0.6401764154,
0.3632579148,
-0.111180447,
0.0596844815,
-0.0718180314,
0.0502501652,
0.4042707682,
0.4181037843,
-0.1626324058,
0.0752157271,
0.0587886348,
0.4181023836,
-0.1553657502,
-0.1422190219,
-0.489795059,
-0.2529437542,
0.1109012514,
-0.0389244817,
-0.0332862139,
-0.2375076413,
0.1526479125,
0.464315176,
0.1970066577,
0.5026897192,
-0.0804419741,
-0.5265239477,
-0.1293875128,
0.0387696736,
-0.1580594778,
0.3450325727,
0.3945533037,
0.1465804428,
-0.1527083069,
0.1250336617,
-0.1553648561,
0.2702862918,
-0.1272278577,
-0.1730491966,
0.3177973926,
0.2377147675,
-0.2155911326,
-0.5438379049,
-0.2140275985,
-0.149603948,
-0.2476679236,
-0.2814971209,
-0.1900598407,
-0.0985492915,
-0.2753353417,
0.0664279163,
-0.3589453995,
0.0022896715,
0.0430156328,
0.2472321093,
0.1728017777,
-0.2325555235,
0.0980267152,
-0.0712131038,
0.4156302214,
0.083474569,
0.1059082299,
0.1688449234,
-0.0483940803,
-0.0500967242,
0.3064127564,
0.2266083211,
0.0236065369,
0.3768424094,
-0.1279221028,
0.1451694369,
-0.3564573526,
-0.2891183794,
0.2807350159,
-0.0852067545,
0.0286561232,
0.1189407036,
-0.1386023313,
0.123715505,
-0.1522825062,
0.2665054202,
-0.1488103271,
-0.0797716156,
0.0300226994,
-0.1951828003,
0.1086239368,
-0.1118048579,
-0.4838265479,
-0.3841775358,
-0.4040662348,
0.2613051534,
-0.0251934323,
0.0154522918,
0.0193770435,
-0.0764102116,
0.1895792633,
-0.111211203,
0.3517565131,
-0.4914852977,
-0.235644117,
0.3176611066,
-0.446801424,
-0.1779693365,
0.0228047315,
-0.2146839797,
0.1400447488,
-0.0900754184,
-0.233306095,
-0.1168568581,
0.0215701796,
-0.0592535175,
0.1374394596,
0.1405302584,
0.205644846,
0.1048657671,
-0.2610455453,
-0.1487959325,
-0.1936950684,
0.1677964777,
0.2412878871,
0.0453052036,
-0.1000492424,
0.0484152287,
0.121309422,
0.2675738037,
-0.0691098198,
0.0277773514,
0.4328354299,
-0.2018036991,
0.2844488323,
-0.0886183009,
-0.1172596142,
0.299951911,
-0.0569745153,
0.1372254193,
0.4742633402,
0.2228771895,
-0.1576312035,
-0.2196544707,
0.1525680721,
-0.0797026381,
-0.331790328,
-0.0470342822,
0.2541655302,
0.223164469,
-0.0997234434,
-0.2887153625,
-0.1796898842,
-0.2731396556,
0.334854126,
0.0904550105,
-0.2703235447,
-0.2442290783,
-0.2606801987,
0.1809896231,
-0.2430539578,
0.235451296,
0.2858831882,
0.0711824223,
-0.2999508679,
-0.1219339743,
-0.0110362843,
0.1397341192,
0.1006575152,
-0.557990551,
-0.1392741799,
0.1434813291,
0.282232672,
-0.1344896257,
0.0980242267,
-0.4188868403,
-0.0124984318,
0.1869643927,
0.0059276596,
-0.2577488422,
0.2048574239,
0.3244116306,
0.1399457753,
-0.0542960912,
0.0160858594,
-0.0455273129,
-0.1430273354,
-0.264911443,
0.1507560015,
-0.0352455787,
0.0781492814,
0.1553491056,
-0.2858371735,
0.1343497634,
-0.2547876537,
0.3361603022,
0.1228582785,
0.0023469473,
0.2627394795,
0.0826954767,
-0.0169826429,
-0.0592993163,
0.1547824144,
0.6335955262,
0.0597601086,
-0.0072075818,
0.1924527436,
-0.4623443782,
0.2109779716,
0.1756779701,
0.2797389328,
0.3724033237,
0.1451521218,
-0.0184792113,
-0.4336015582,
0.0703961924,
0.2507049739,
0.0357244499,
-0.0623316988,
-0.2000628412,
0.0328630544,
0.0715844482,
-0.05860034,
0.0778109059,
0.4010624886,
-0.3350760639,
-0.0174015295,
-0.0568394177,
0.894453764,
0.0794395655,
0.0634519979,
0.033602912,
0.1017305106,
-0.1032328978,
-0.0348128229,
0.0149910105,
0.0586872622,
-0.2454513758,
-0.1233083159,
0.0992885381,
-0.0471592434,
0.1005730107,
-0.3287434578,
-0.0345209874,
0.0513662212,
0.205861941,
-0.0529855751,
0.2465078235,
-0.1366478354,
-0.4210350811,
-0.2581469119,
0.2670423985,
0.1640018374,
-0.2421630472,
0.1923560351,
-0.1737290919,
-0.0879369155,
-0.0431154706,
-0.2796724737,
-0.0253794137,
-0.1232367083,
0.088899985,
-0.2245248109,
0.2173786312,
0.1403708011,
-0.1322364062,
0.2705149353,
0.0239367262,
-0.2660269141,
-0.092283681,
0.0041403412,
0.0346174613,
-0.1047485173,
-0.0123638287,
0.2601732612,
-0.0431208871,
-0.0821339935,
0.2546468079,
0.2551540434,
-0.1961476654,
-0.0057946523,
0.0437924936,
0.2605422139,
-0.1888699234,
0.2001861185,
0.11126028,
-0.1320664436,
-0.2430493683,
0.2258496135,
0.2328525931,
-0.138521567,
0.2011014819,
0.2012532651,
0.0141481236,
-0.1299381852,
0.3967588842,
0.2568973303,
-0.003850467,
0.1017231941,
-0.0344879068,
-0.0795755535,
-0.4123825431,
-0.1071898639,
0.0580333322,
-0.2591942847,
-0.0062124897,
0.1313108206,
-0.3399636745,
0.1082845181,
0.2022404373,
0.0976318493,
0.1042253301,
-0.2509819567,
-0.1425121576,
-0.1934945583,
0.3522287905,
0.0396076143,
0.1890356988,
0.003023165,
0.1631985456,
0.0591788739,
0.0177205,
-0.5013096333,
-0.0707176179,
-0.1255011559,
0.100610815,
0.2104343772,
-0.2621342838,
0.0721292347,
0.0209027957,
0.2453707606,
-0.2730431855,
-0.3545747995,
-0.3223334849,
-0.1422306448,
0.0949567482,
-0.1205127016,
0.1535696834,
0.0365100391,
-0.182234183,
-0.2683472037,
-0.1087358892,
0.2126737088,
0.1133439392,
-0.0797898918,
-0.2784675062,
-0.2677996457,
-0.1423511654,
-0.011471862,
-0.0199452061,
0.0585458986,
-0.1533456594,
-0.0331799798,
0.1603005081,
-0.2593302131,
-0.265049845,
0.2703015506,
0.3012410998,
0.3533756137,
-0.0786959454,
0.2319231182,
0.0914575309,
-0.1620364934,
0.4059540629,
0.4177333713,
0.06193785,
-0.179520607,
0.0818486363,
-0.0173041988,
0.3823647797,
-0.3306710422,
0.0428280346,
0.2814328671,
-0.2824196815,
0.4021789134,
0.2890292704,
0.604637146,
-0.1171670929,
0.037243329,
0.0534903966,
-0.2230865657,
-0.080953218,
-0.0753811672,
-0.1043583453,
-0.047428485,
0.1155179366,
0.3086721897,
-0.061795447,
0.4204491973,
0.3305358589,
-0.0013626305,
0.3978943229,
0.3012835681,
0.1370541006,
0.5029981136,
-0.0475119874,
0.4418823719,
-0.1398885101,
0.1416300833,
0.1202251762,
0.142989099,
0.3875336945,
-0.2038684487,
0.0519887656,
-0.2857377529,
0.1128656566,
-0.0706702024,
0.0419132672,
-0.0558614284,
-0.1062128171,
-0.3299148381,
-0.3208335936,
-0.0160325971,
0.1910331249,
0.1824172288,
-0.0228295028,
0.2025805414,
-0.2618236542,
-0.1558404416,
0.140942499,
0.2286279947,
-0.2876208425,
0.1914445311,
0.2405826598,
-0.1334647834,
0.2338010371,
0.3887110054,
0.2089300603,
-0.0379882231,
-0.0611420348,
0.2789339721,
0.085075736,
-0.2515781224,
-0.2293291986,
0.0755806416,
0.3441762328,
0.0170343425,
0.2709940672,
0.2908011079,
-0.2543141842,
-0.2817815542,
0.1229391396,
0.2110176384,
-0.0203558877,
-0.3916885257,
-0.0115125338,
0.0760776252,
-0.278536737,
-0.0993987173,
-0.612814188,
-0.2505466342,
0.2478651702,
-0.338437289,
0.157414794,
-0.1829815805,
0.1414764673,
0.2082013935,
0.1632898003,
0.2141270638,
0.1181028858,
0.2537258565,
-0.1934501976,
-0.6659448147,
0.2115071565,
0.0254150406,
-0.0612917542,
-0.217279762,
0.2560217381,
0.5015314221,
0.1712944657,
0.1525473744,
-0.1368760616,
0.1424888521,
-0.0323622115,
-0.4610907137,
0.037596114,
0.3549176753,
0.2455087751,
0.1160989404,
-0.095308952,
0.040231891,
-0.0645198524,
0.2264416814,
-0.1250361204,
-0.1664931178,
-0.2501350939,
-0.1149133295,
0.3129745126,
-0.0661239401,
0.4732053876,
-0.4689273536,
-0.013584096,
-0.1475495398,
0.0065014674,
-0.0883064494,
-0.0230400302,
0.3606345654,
0.4628283978,
-0.164247781,
0.1256798357,
0.2319476604,
0.3203161955,
0.0656853169,
0.3764353096,
-0.2429967523,
0.2465737313,
-0.0409465507,
-0.0151226642,
-0.1700503975,
-0.0475724712,
-0.0224098247,
-0.1090230122,
0.0968945101,
-0.4874631464,
0.3837770224,
-0.0556455664,
-0.2180573344,
-0.2589364946,
0.5093054175,
-0.0762650669,
0.2027125359,
-0.3562501371,
0.2770667374,
0.237226218,
0.1004230604,
-0.0171155501,
0.2522125542,
-0.1282339543,
-0.0532307215,
-0.2663212419,
0.1517973989,
0.0827780068,
-0.0994859114,
-0.2244001478,
-0.3219730258
] |
https://github.com/huggingface/datasets/issues/3285 | Add IEMOCAP dataset | Hi @dnaveenr ! We can contact the authors to see if they are interested in hosting the dataset on the Hub. In the meantime, feel free to work on a script with manual download. | ## Adding a Dataset
- **Name:** IEMOCAP
- **Description:** acted, multimodal and multispeaker database
- **Paper:** https://sail.usc.edu/iemocap/Busso_2008_iemocap.pdf
- **Data:** https://sail.usc.edu/iemocap/index.html
- **Motivation:** Useful multimodal dataset
cc @anton-l
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 34 | Add IEMOCAP dataset
## Adding a Dataset
- **Name:** IEMOCAP
- **Description:** acted, multimodal and multispeaker database
- **Paper:** https://sail.usc.edu/iemocap/Busso_2008_iemocap.pdf
- **Data:** https://sail.usc.edu/iemocap/index.html
- **Motivation:** Useful multimodal dataset
cc @anton-l
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Hi @dnaveenr ! We can contact the authors to see if they are interested in hosting the dataset on the Hub. In the meantime, feel free to work on a script with manual download. | [
-0.4055472612,
-0.2296994925,
-0.1807560772,
0.0004849705,
-0.0748526528,
-0.0578590706,
0.5305740237,
0.1825390905,
0.1652227938,
0.3068114519,
-0.3846266866,
0.0953106731,
-0.2732800543,
0.4907404482,
0.2245352566,
0.0488989539,
0.0969657227,
0.1993618011,
0.047155384,
-0.0007036318,
0.0354214162,
0.0814216584,
-0.0095013091,
-0.0823367462,
-0.3516685069,
0.1987453401,
-0.2206882089,
0.1411191523,
-0.2584030628,
-0.166272983,
0.0248800665,
0.3543214798,
-0.0716322213,
0.250512898,
-0.0000988241,
-0.1349209398,
-0.1685383618,
-0.2723160386,
-0.0688482225,
0.156423077,
-0.4463664293,
0.1763771921,
-0.2025397569,
-0.1563003957,
-0.2891266048,
0.0724959821,
-0.1692509353,
-0.0866119042,
0.1153778434,
0.3311149478,
0.2977017462,
0.0832868367,
0.0230067354,
-0.2019425184,
0.2292445749,
0.3164521456,
-0.1690035462,
0.1264692247,
0.3072812855,
0.0314929634,
-0.214800328,
0.3775686324,
-0.1979765147,
0.0314843468,
-0.0854486749,
-0.0065765246,
0.0647672266,
-0.0030064848,
0.185174495,
0.3269097507,
0.4735689759,
-0.3763047159,
-0.1249215901,
0.0618431754,
0.247508049,
-0.1194206923,
0.0768837482,
0.1236089319,
0.2185782939,
0.1993242651,
0.0220282506,
-0.1295690238,
-0.1449380368,
-0.0387142673,
-0.0749350339,
0.1915435046,
-0.2646914423,
-0.2479109019,
-0.1253506541,
-0.1869172156,
0.0348467641,
0.2196126729,
-0.0538338609,
-0.10817945,
-0.0485490449,
-0.2560433745,
-0.0764606148,
0.27247262,
-0.0114272442,
0.0949857756,
0.137502104,
0.1363194436,
0.1234645322,
0.1205243766,
0.0789366513,
-0.3586462736,
0.1238688454,
-0.3090037107,
0.3752695024,
0.2353312522,
-0.0860023871,
0.1102102771,
-0.0306679048,
0.1233010739,
-0.0785324946,
0.022208564,
0.0225742925,
-0.0593840256,
-0.343606025,
-0.1713921577,
0.0988274217,
-0.1552719325,
0.1637498587,
0.2435851395,
-0.1434525549,
0.2902777791,
-0.0691637695,
0.2632552087,
-0.1991917342,
-0.4034685493,
-0.1167277694,
0.2067019194,
-0.1226044819,
0.2311912179,
0.3377817869,
0.2325377613,
-0.0481077321,
-0.1232388243,
0.1114698276,
-0.1520930976,
0.1018459573,
-0.0232567266,
0.0188162532,
-0.0068928478,
0.3992340267,
-0.109239772,
-0.1855021417,
-0.2013190538,
-0.2476265132,
-0.3594686389,
0.0011559901,
-0.1896999031,
-0.32143718,
0.3434804678,
0.034022022,
-0.196564883,
-0.051380083,
0.2532114089,
-0.1513298154,
-0.2526369393,
-0.0342844725,
0.3833511472,
-0.333394438,
-0.1175923422,
0.0370697342,
0.373778224,
0.0398963019,
-0.1014184877,
-0.0957136527,
0.0644333512,
-0.3426504135,
-0.0412882678,
0.0872089714,
0.2325528711,
-0.158919856,
0.1980451792,
0.0807805359,
-0.4544116557,
-0.163468048,
-0.2395985723,
-0.1323942691,
-0.1751974374,
0.3849945962,
0.3145805001,
0.465541333,
-0.319522202,
0.2067503631,
0.4071233869,
-0.078127861,
0.2416631281,
0.1486249566,
-0.2205418199,
-0.378862381,
0.420278579,
0.0171060413,
-0.2494970411,
0.1035421118,
0.1765567362,
0.2102174461,
-0.1119006947,
0.4049964249,
0.0213758238,
0.2068486512,
0.0869244263,
-0.0814822018,
-0.6223567724,
-0.0077464296,
-0.1190183461,
-0.0644430891,
0.2219391614,
0.0643605366,
-0.4770544767,
-0.343380034,
-0.1354424059,
-0.2023055553,
0.0162551235,
0.3522592187,
0.240830645,
-0.083942309,
-0.074454248,
-0.1803762913,
0.0165676922,
0.2430273294,
-0.0577486567,
-0.1978215277,
0.2661644816,
-0.1099381968,
-0.1103333458,
0.2173750401,
0.2831484973,
-0.2027192265,
0.1049980596,
0.1774763465,
0.300660491,
-0.0133058541,
0.4332781136,
0.3335841596,
0.4334612191,
0.1204369366,
-0.4697783887,
0.4244591594,
-0.1389226913,
0.0034257059,
-0.1827394217,
0.0233676285,
0.3209548891,
0.2265755236,
-0.1985550672,
0.0035384251,
0.182918489,
0.2498596013,
-0.197456792,
-0.081685178,
-0.3488301039,
-0.2815344632,
0.1729867607,
-0.1304216534,
-0.094293952,
-0.0800544992,
0.1761648953,
0.3686723411,
0.0627936423,
0.4839062691,
-0.0252964292,
-0.4922382832,
-0.140531823,
0.0065091327,
-0.2567344904,
0.1706579775,
0.3487955928,
0.1394320726,
-0.1907062382,
0.1086374223,
-0.1629842967,
0.2993199527,
-0.2170402855,
-0.1901562214,
0.2443531603,
0.1448310763,
-0.2748008072,
-0.505482316,
-0.3829373121,
-0.1342468858,
-0.250417918,
-0.1790875196,
-0.2289923131,
-0.052440118,
-0.1857730895,
0.1580086052,
-0.4776259661,
0.0828110427,
0.071899876,
0.3356723189,
0.3286883235,
-0.1485678256,
-0.0269509349,
0.0581035502,
0.4890363514,
0.0734345764,
0.1486871541,
0.1484089196,
-0.1455917656,
-0.0494685955,
0.2992689908,
0.2804483175,
0.1579985321,
0.2720441222,
-0.3263392448,
0.2556181848,
-0.233349815,
-0.060398899,
0.235997811,
-0.0429899618,
-0.1228567362,
0.1706241667,
-0.0005421317,
0.0975899026,
-0.0702243075,
0.2617726326,
-0.0764031187,
0.0817030147,
0.1148872226,
-0.093624346,
0.0169030223,
0.0057235188,
-0.3566912115,
-0.328553468,
-0.4351166189,
0.0995486081,
-0.0229420196,
0.0495451912,
-0.1849091649,
0.0080049634,
0.0404211991,
-0.1627044231,
0.3002124131,
-0.2769975066,
-0.2064091861,
0.245848313,
-0.4126311243,
-0.1300029606,
-0.0228778813,
-0.2272145897,
0.2172921002,
-0.1698157042,
-0.1654430628,
-0.185323894,
0.0882230476,
-0.0150334127,
0.1486928165,
0.2058739066,
0.26893121,
0.2658362091,
-0.2360595018,
-0.0975315198,
-0.0793207884,
0.0726429671,
0.2509940267,
-0.1508810967,
-0.0396375209,
-0.1338959783,
0.0452428684,
0.0664419159,
-0.0035574711,
0.0808886662,
0.4724990129,
-0.1506199092,
0.1827833652,
-0.045533061,
-0.0320664756,
0.1512922794,
-0.045781374,
0.0955991298,
0.5500096083,
0.3425297737,
-0.1653380394,
-0.3250840604,
-0.0396071635,
-0.2435144037,
-0.3144950271,
0.0621869639,
0.0960650444,
0.1211627275,
-0.1034570187,
-0.2240440995,
-0.2056242228,
-0.2065679878,
0.3943927288,
0.0485672057,
-0.2483073175,
-0.2955391407,
-0.1183851212,
0.1168812364,
-0.1483272165,
0.2167292237,
0.302206099,
-0.1136697233,
-0.1245867237,
-0.1234584451,
-0.0214871503,
0.1192604378,
0.1099247336,
-0.5207674503,
-0.0258849282,
0.0376428738,
0.2439498603,
-0.1858888865,
0.0138134891,
-0.4543700814,
0.0484160073,
0.1123847961,
0.0414498337,
-0.2794030309,
0.1919059008,
0.2624437511,
0.1335406452,
-0.115944013,
0.0331913605,
0.0136828413,
-0.0530690663,
-0.286060214,
0.1687119752,
0.0095782662,
-0.0000298646,
0.1813516468,
-0.2613827884,
0.2113195062,
-0.2112770975,
0.2364448309,
0.2331839204,
0.0842816234,
0.1443208307,
0.052607242,
-0.0477205217,
-0.0729077607,
0.0665459484,
0.5232718587,
0.049204126,
0.0691184178,
0.1191560552,
-0.4321851432,
0.1983349174,
0.2375756651,
0.3866682947,
0.2365510762,
0.01091344,
-0.0200106427,
-0.5801272392,
-0.0638909861,
0.2075450718,
0.0492407046,
-0.0533051938,
-0.1494575739,
0.1045096666,
-0.0278596524,
-0.0632084534,
0.1298751831,
0.3515240848,
-0.266233772,
0.2079397142,
-0.1040736288,
0.8796001673,
0.0999502242,
0.0989966467,
0.0803325176,
0.1071278602,
-0.2397319078,
-0.2713314891,
0.0823100209,
-0.0723821595,
-0.1844487935,
-0.0960710496,
0.1639926285,
-0.206838131,
0.1932931244,
-0.4199969471,
-0.0037036089,
0.0491791181,
0.2583450973,
-0.0911844894,
0.1919008791,
-0.3752367795,
-0.4667198658,
-0.2077133358,
0.2733449042,
0.0923899859,
-0.1640571207,
0.017593259,
-0.1384405643,
0.0353766344,
-0.0460215621,
-0.2591649592,
-0.0004268518,
0.1276832521,
0.0357036367,
-0.206478402,
0.4065304697,
-0.0435470715,
-0.1172489375,
0.182052955,
0.0995322615,
-0.2683721781,
-0.0975023359,
-0.0205643382,
0.0318878219,
-0.052867379,
0.0352402739,
0.1412678808,
-0.0474875271,
-0.1663122773,
0.1099891737,
0.3173515797,
-0.0740579441,
0.0397398733,
0.0631999597,
0.2491279393,
-0.1868121028,
0.171681419,
0.1197930947,
-0.1591061801,
-0.2572602332,
0.2249724418,
0.1863029599,
-0.144530043,
0.320355624,
0.2400732338,
0.0795637071,
-0.1217512265,
0.3371178508,
0.3055968881,
-0.1599758416,
-0.0701135024,
0.0931571126,
-0.1468739957,
-0.4498512149,
-0.0933140814,
0.0346286632,
-0.315975219,
-0.0092154173,
0.02065254,
-0.4137459993,
0.1296179891,
0.1587508023,
0.1199813411,
0.2486942112,
-0.1860016584,
-0.1361137778,
-0.0375285298,
0.3938544691,
0.2548469305,
0.2201337516,
-0.037543755,
0.0512638763,
0.075402379,
-0.0297382176,
-0.5028821826,
-0.059593033,
-0.0832207426,
0.1099539176,
-0.0238980129,
-0.2242815197,
0.0978447869,
0.077732265,
0.2524753213,
-0.1815568954,
-0.2387236208,
-0.2930738032,
-0.0355160981,
0.0926001966,
-0.1812018752,
0.2202308774,
-0.0621178746,
-0.1670974642,
-0.2709015906,
-0.2004379034,
0.1910037994,
0.1517880708,
-0.0743918493,
-0.3201511204,
0.0400905423,
-0.1658027917,
-0.0289106127,
0.0176418684,
0.0872385725,
-0.0620153733,
-0.1795867383,
0.0601601899,
-0.1713784337,
-0.2828606963,
0.2636960149,
0.4070607722,
0.3926981688,
-0.0627350584,
0.2695823908,
0.2037270963,
-0.1352621764,
0.3711173534,
0.420381844,
0.0693483353,
-0.0678502619,
0.0387619808,
-0.003316642,
0.4218070805,
-0.2387832701,
-0.0424579382,
0.1989988536,
-0.3428208828,
0.3760181069,
0.3400179744,
0.4880687296,
-0.2157351375,
0.0477356613,
0.1402642578,
-0.1665829271,
0.0031215572,
-0.1648951918,
-0.1748732477,
-0.0084440392,
-0.0299253538,
0.2595983446,
-0.08689446,
0.3623688519,
0.3628041744,
-0.0105396174,
0.3579204082,
0.3473712802,
0.0644365698,
0.4634143114,
0.0317510068,
0.3376134336,
-0.2264311165,
0.1578002423,
0.0297666807,
0.0951083526,
0.3735418022,
-0.266687274,
0.0947094783,
-0.417116046,
0.1197877526,
-0.066770874,
0.1360672265,
-0.0444865413,
-0.1587393433,
-0.4300017059,
-0.2515349388,
0.0132176094,
0.1962917745,
0.1555584371,
0.057208579,
0.3185976744,
-0.1584598273,
-0.0882340148,
0.0754497349,
0.3173854947,
-0.3402511179,
0.0773744881,
0.3340547085,
-0.0667756647,
0.1889221519,
0.3742093742,
0.1722765267,
0.0007233846,
-0.2177392244,
0.2968821526,
-0.0162961874,
-0.2134944201,
-0.2238562405,
-0.0181633718,
0.2513011694,
0.1688931733,
0.1827323735,
0.3320680261,
-0.2838690579,
-0.3162466586,
0.0458364077,
0.0189005695,
0.1920744926,
-0.3468338251,
0.1202723235,
0.0331206396,
-0.3202399909,
-0.1561194211,
-0.7729853988,
-0.207420975,
0.1710404605,
-0.3408585787,
0.1619898528,
-0.1850642562,
0.1439894289,
0.2897076011,
0.1681762934,
0.3038939834,
0.0024697836,
0.1965274811,
-0.3403907418,
-0.4167824984,
0.2173416764,
0.0483485572,
-0.0996645689,
-0.1852235496,
0.1373931915,
0.4229538739,
0.1787372828,
-0.0270657297,
-0.0828284025,
0.1521654278,
0.106574133,
-0.4666777849,
0.1019313633,
0.4086844027,
0.2326112986,
0.1223928407,
-0.0741128474,
0.1158449724,
-0.0592509396,
0.2364482731,
-0.0989337489,
-0.2268046737,
-0.1373220235,
-0.3069999814,
0.2026705444,
-0.2413334548,
0.3963505328,
-0.4876079857,
-0.0856547654,
-0.1607751995,
0.0236776154,
0.0167295691,
-0.1385862529,
0.3542322516,
0.3391683102,
-0.1072131619,
0.1765169799,
0.1981738955,
0.2596864998,
0.0294950195,
0.5444543362,
-0.2679875493,
0.0726034343,
-0.0992793813,
0.0321806148,
-0.1498268843,
0.0699957088,
-0.1200465113,
-0.0473088771,
0.0779027343,
-0.4782299995,
0.3605420589,
0.027108606,
-0.3054075539,
-0.2823255658,
0.4641036689,
-0.1790649891,
0.2121737748,
-0.1948468834,
0.3310536444,
0.0809504315,
0.1324320585,
-0.0296132751,
0.322055608,
-0.0872039869,
-0.1296552718,
-0.2019494921,
0.05238254,
0.1041719019,
-0.0648676455,
-0.3130669594,
-0.3422791064
] |
https://github.com/huggingface/datasets/issues/3285 | Add IEMOCAP dataset | Hi @mariosasko . Thanks for your response. Sure, I will mail them and find out if they're open to this.
Work on a script with manual download ? This is new to me, any guidelines would be helpful here.
| ## Adding a Dataset
- **Name:** IEMOCAP
- **Description:** acted, multimodal and multispeaker database
- **Paper:** https://sail.usc.edu/iemocap/Busso_2008_iemocap.pdf
- **Data:** https://sail.usc.edu/iemocap/index.html
- **Motivation:** Useful multimodal dataset
cc @anton-l
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 39 | Add IEMOCAP dataset
## Adding a Dataset
- **Name:** IEMOCAP
- **Description:** acted, multimodal and multispeaker database
- **Paper:** https://sail.usc.edu/iemocap/Busso_2008_iemocap.pdf
- **Data:** https://sail.usc.edu/iemocap/index.html
- **Motivation:** Useful multimodal dataset
cc @anton-l
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Hi @mariosasko . Thanks for your response. Sure, I will mail them and find out if they're open to this.
Work on a script with manual download ? This is new to me, any guidelines would be helpful here.
| [
-0.396915406,
-0.0930215493,
-0.1669157296,
-0.0267273746,
-0.0511000119,
-0.0638297275,
0.4177331924,
0.0990112722,
0.184079811,
0.2257884145,
-0.3469266295,
0.0741997883,
-0.2861623466,
0.5310553908,
0.2502622604,
0.020621093,
0.0286565106,
0.2210894674,
-0.0193936657,
-0.0342249833,
-0.1075727791,
0.082339853,
0.0388758294,
-0.13915883,
-0.241622299,
0.1052129343,
-0.2594052553,
0.1583884209,
-0.3712252378,
-0.2218903303,
0.000294585,
0.392110765,
0.0019224243,
0.2867296934,
-0.0001013714,
-0.2679993808,
-0.2115187496,
-0.3301727176,
-0.001690805,
0.1131815836,
-0.4438702464,
0.0502614528,
-0.1627594531,
-0.2590409219,
-0.2212342918,
0.0757993013,
-0.1932433695,
-0.2303818464,
0.21203354,
0.3563754261,
0.2751033604,
-0.0283767562,
0.0547819622,
-0.1752994508,
0.3194934726,
0.3267849982,
-0.0809819251,
0.1051702648,
0.2375779003,
-0.0333682001,
-0.0797817186,
0.3542128801,
-0.1636051238,
0.0446816385,
0.0378147475,
0.0831312016,
0.0944201276,
-0.2007472366,
0.154498592,
0.3409000337,
0.6211651564,
-0.4425311089,
-0.1508384794,
0.1440997571,
0.3110225499,
-0.2312679887,
0.0633679256,
0.181144312,
0.2127950341,
0.158065781,
-0.0083904453,
-0.1627754718,
-0.2060210407,
-0.0524159446,
-0.0099367071,
0.0917360708,
-0.2849498391,
-0.2291079313,
0.0140375383,
-0.1749322861,
-0.179877609,
0.1817777008,
-0.0399344787,
0.0643592179,
0.0617098734,
-0.2692060471,
-0.1133362427,
0.1971513778,
0.0839745849,
0.18544361,
0.102668941,
0.0334879458,
0.1811249852,
0.0780190676,
0.0601677224,
-0.3585980833,
0.062652491,
-0.3617115617,
0.3205795288,
0.2156435549,
-0.0352201238,
0.1219043657,
-0.0380081199,
0.0002508086,
0.0060106809,
0.0138854021,
0.1657726467,
-0.2307114303,
-0.3142763078,
-0.1014424115,
0.0878852308,
-0.284466356,
0.0194304809,
0.2533009648,
-0.1349624991,
0.2052130252,
0.0263762791,
0.348377049,
-0.1978466362,
-0.3751406074,
-0.0196998511,
0.2373480201,
-0.1189158708,
0.2136594951,
0.3241894543,
0.3455125988,
-0.0774534941,
-0.0858005658,
0.0108398721,
-0.1446064711,
0.121250622,
-0.0648864508,
0.0285655148,
0.0225101206,
0.3870973885,
-0.0346974134,
-0.2153732032,
-0.1501208693,
-0.2511586547,
-0.1744600683,
0.1059409827,
-0.1492915154,
-0.3103207648,
0.346729368,
0.1038120165,
-0.268896848,
-0.0035395788,
0.3086498678,
-0.1000681743,
-0.2026958466,
-0.0017694458,
0.347731173,
-0.3861076534,
-0.1741274595,
0.0709751099,
0.5280353427,
-0.1576306075,
-0.0910871923,
-0.2031363994,
-0.1035579517,
-0.2131928056,
-0.0166155007,
0.0796668902,
0.2250282764,
-0.1604060084,
0.1076004282,
0.1533395052,
-0.3023419678,
-0.1417743713,
-0.115191251,
-0.2263762355,
-0.17524831,
0.499674648,
0.3168556988,
0.3891353309,
-0.3660932183,
0.0730746463,
0.4515552223,
-0.1232968569,
0.1418288648,
0.0547939315,
-0.21704261,
-0.2680400908,
0.367130667,
0.1057844535,
-0.1512227356,
0.1167725027,
-0.0384703949,
0.1187121123,
-0.0733993351,
0.3817496598,
0.0097718565,
0.2801238,
0.1226452664,
-0.130131498,
-0.5039892793,
-0.1474748254,
-0.1142162979,
-0.0969298482,
0.2268446982,
-0.0677014887,
-0.5169662237,
-0.358155489,
-0.2025207579,
-0.2271110862,
0.0173868872,
0.2786128521,
0.327557981,
-0.0516228527,
-0.0557220168,
-0.1906368732,
-0.1371147484,
0.2103082985,
0.0110426666,
-0.1770856678,
0.1792522818,
-0.1561468393,
-0.0744949505,
0.1433050931,
0.1806945354,
-0.1690898389,
-0.019978283,
0.1638211608,
0.3702624142,
-0.0164473541,
0.3401271701,
0.2754348516,
0.3599404097,
0.0830547661,
-0.4316744208,
0.4920529127,
-0.1361777782,
0.0803342387,
-0.2606783509,
-0.0067649717,
0.3448169529,
0.1452866793,
-0.2278191447,
0.0596058406,
0.0807916671,
0.1998198628,
-0.2511598468,
-0.0842584074,
-0.3644348085,
-0.3310299516,
0.1865650266,
-0.1105686277,
-0.1267839223,
-0.1775619686,
0.193475008,
0.4001107216,
0.0579452999,
0.3549287021,
0.0493721366,
-0.3316980302,
-0.015928736,
-0.1474429816,
-0.1226791665,
0.33488217,
0.372196883,
0.1259941906,
-0.0813443586,
0.1178437471,
-0.1657519042,
0.2891419828,
-0.1715040058,
-0.2135215998,
0.2059934586,
-0.0487155952,
-0.1479037851,
-0.4152378142,
-0.3969708979,
-0.1524871737,
-0.2210519761,
-0.2618440688,
-0.2738451958,
0.0493090302,
-0.2815858126,
-0.0019778321,
-0.4425512254,
0.1242285594,
0.1259911805,
0.2245978117,
0.2045456618,
-0.1970846504,
0.0436262302,
0.0185134336,
0.4539781809,
0.0051021944,
0.1179195493,
0.2281092852,
-0.0731734782,
-0.0658915564,
0.2811157107,
0.3851023018,
0.1261566728,
0.4242803156,
-0.4298039377,
0.1776680499,
-0.2471356094,
-0.0836124197,
0.1644073427,
-0.0686485693,
-0.1025957018,
0.1379188746,
-0.0081289504,
0.2118370384,
-0.1292063147,
0.2387502342,
-0.0955432281,
0.0649234429,
-0.0093469033,
-0.1082934514,
-0.1007668748,
-0.0822719783,
-0.5480558276,
-0.369206816,
-0.4141216874,
0.1445548981,
0.0880297273,
0.1281342059,
-0.1560534686,
0.0377066024,
0.021988567,
-0.1194249541,
0.4207764864,
-0.2095884085,
-0.1502070874,
0.2653984427,
-0.3291861117,
-0.1932363063,
0.1385260969,
-0.2451794893,
0.1451016068,
-0.0447459705,
-0.1438539773,
-0.1328065097,
0.0837300867,
0.0281755105,
0.0513853282,
0.3161880672,
0.346429348,
0.2921847403,
-0.2010070235,
-0.0467652567,
-0.0365488529,
0.1596926451,
0.1346780509,
-0.0575575791,
-0.0824517384,
0.1843441278,
-0.0701731369,
0.1292094141,
-0.0198150165,
0.0310267694,
0.4420988858,
-0.1871061623,
0.2990170717,
-0.0483284406,
-0.1102645844,
0.1050126031,
-0.0163164437,
0.0830277056,
0.5184848905,
0.2140041143,
-0.1470759958,
-0.3648507893,
0.1239800528,
-0.214935407,
-0.3151426017,
0.1248827949,
0.1508000493,
0.0978246853,
-0.1006053984,
-0.1821917295,
-0.1405238211,
-0.0927128047,
0.3525077999,
0.0532731377,
-0.1985976398,
-0.2715546787,
-0.1733030379,
0.2360585928,
-0.1722857058,
0.264518857,
0.3157857358,
-0.0737210959,
-0.1221406162,
-0.2228914946,
-0.0623892024,
0.1095589697,
0.1259896457,
-0.5076935887,
-0.0528251715,
0.1890064329,
0.3352872729,
-0.1704338193,
-0.0475638621,
-0.5023975372,
0.0749134123,
0.2579439878,
-0.1153042838,
-0.3378816843,
0.1898742169,
0.4515404999,
0.2163600624,
-0.0447999462,
0.0279399622,
-0.0211088583,
-0.1826489717,
-0.2839654088,
0.2440025657,
-0.0419829711,
-0.1145116463,
0.0783643574,
-0.2432291657,
0.2750233114,
-0.1405650824,
0.2692431211,
0.1212041751,
0.087598674,
0.2580690384,
0.2196705043,
-0.0935851634,
-0.1051940247,
0.1985121667,
0.669252634,
-0.1254367232,
-0.0008556119,
0.0676148906,
-0.5224431157,
0.2946971655,
0.2948224247,
0.3952288926,
0.1419933438,
0.0494920947,
0.0080318134,
-0.4998616278,
-0.0504225902,
0.30761531,
-0.0522548817,
-0.1159359962,
-0.3485081494,
0.0698342994,
-0.0258018821,
-0.0573641211,
0.1103594974,
0.3450299501,
-0.2690795958,
0.1127822921,
-0.1691528857,
0.9367126226,
0.0531091951,
0.0500480607,
0.1139729992,
0.0510931127,
-0.1899432987,
-0.1377229989,
-0.0594724715,
-0.0921772569,
-0.1364557445,
-0.1100942418,
0.0506208725,
-0.1089373231,
0.2431367934,
-0.4811780751,
0.1172586828,
-0.0056699994,
0.1993727237,
-0.0460869409,
0.3323899806,
-0.3299077749,
-0.4313535094,
-0.0654494688,
0.2300586998,
0.0858996138,
-0.1674097478,
-0.0155650293,
-0.2104498744,
0.0721270144,
-0.1148148477,
-0.1367718279,
0.0855941102,
-0.0744898096,
-0.0163235404,
-0.3292807043,
0.3878240287,
0.0834503397,
-0.0874192417,
0.1207001656,
0.0954592973,
-0.1245345622,
-0.1334007084,
0.0627686828,
0.0669710115,
0.0839710757,
0.0246336795,
0.2560869753,
-0.034572389,
-0.1572574228,
0.1055845991,
0.2551935911,
0.0209039748,
0.1142029837,
-0.027651716,
0.3773274124,
-0.2825296521,
0.0428924784,
0.1881523281,
-0.1930301636,
-0.2242645025,
0.2069048733,
0.2689768672,
-0.1770475954,
0.3677154779,
0.1337170154,
0.025269242,
-0.2038686126,
0.3516506553,
0.253498435,
-0.0913767889,
-0.0257339478,
0.0900412351,
-0.1337965429,
-0.4213104546,
-0.1307820082,
0.0250644237,
-0.4061614871,
-0.0113223046,
0.1200678274,
-0.2700432539,
0.1043584347,
0.1896639913,
0.1568919867,
0.1954056919,
-0.084325105,
-0.1520549655,
-0.1059508994,
0.333363831,
0.3116996884,
0.277649492,
-0.0101597933,
0.0860322565,
0.1402691901,
-0.0079431981,
-0.4942522049,
-0.0467036702,
0.0379854552,
0.1519542933,
0.2633661926,
-0.1488508284,
0.1098840758,
0.1051653549,
0.2304211706,
-0.2307921052,
-0.3326531649,
-0.240212664,
-0.0215272009,
0.125133127,
-0.2456041873,
0.0929167643,
0.073430568,
-0.2551425695,
-0.3645887971,
-0.0765745267,
0.1306919903,
0.0355745181,
-0.162448138,
-0.2611492872,
-0.0858624354,
-0.1779594868,
-0.05972258,
0.0183696747,
-0.0662470162,
-0.0508558191,
-0.1353524923,
0.1724325269,
-0.2416044474,
-0.3312048614,
0.2559360266,
0.2838864625,
0.4438029528,
-0.0682231486,
0.257704854,
0.0670849755,
-0.1563469619,
0.3285956681,
0.50153023,
0.2665767074,
-0.1061096117,
0.0435938761,
0.1248015538,
0.4240200222,
-0.323451668,
0.1294141263,
0.2047435939,
-0.2832026184,
0.3346546292,
0.3512764871,
0.4911214113,
-0.2174026072,
0.1155008078,
0.1312124133,
-0.0954848975,
0.0721279904,
-0.1089681983,
-0.1100127026,
-0.0689408407,
0.0231568106,
0.2522417903,
0.1292561442,
0.278249681,
0.2102547437,
-0.1303051859,
0.3329744637,
0.1922234446,
0.1127567589,
0.302799046,
-0.2311453372,
0.518358767,
-0.0578742251,
0.1480294019,
0.030635478,
0.2043055147,
0.4271582663,
-0.1665616333,
0.0394711569,
-0.3895266056,
0.1699688286,
-0.0348325558,
0.1743535697,
-0.0548848361,
-0.1839018017,
-0.4072493613,
-0.1703573018,
-0.0242803972,
0.195709765,
0.105632484,
0.1221911982,
0.3140335381,
-0.2377079278,
-0.1487451345,
-0.067610383,
0.3152198792,
-0.4716020226,
0.1160159111,
0.4091524482,
-0.0710658282,
0.2598215938,
0.3488366604,
0.2354585528,
0.1261885315,
-0.1601733118,
0.3318309784,
0.0782814547,
-0.1838814914,
-0.1656249762,
0.0169141106,
0.2672559321,
0.200988695,
0.1698521078,
0.2937999368,
-0.2910910249,
-0.2921227515,
0.0813561529,
0.012205244,
0.1178045869,
-0.3744096458,
0.1871524751,
-0.0248909239,
-0.413161099,
-0.1139539704,
-0.7682320476,
-0.2313352078,
0.1446914673,
-0.2962727845,
0.1189730465,
-0.219557941,
0.1344573945,
0.3375357091,
0.1523681283,
0.3179735541,
0.0928641111,
0.0850310326,
-0.286826998,
-0.6061635613,
0.1645284742,
0.1132915393,
-0.1703152657,
-0.1752626151,
0.2572585344,
0.4213063717,
0.1674474031,
0.0652763695,
-0.1748230159,
0.2028328627,
0.1193146259,
-0.5030268431,
0.0763737857,
0.3936772346,
0.201979503,
0.1253421307,
-0.1104815528,
0.0678681135,
-0.1840613782,
0.216072768,
-0.1687644273,
-0.2096651793,
-0.1635665596,
-0.2101059407,
0.3601460457,
-0.2171076536,
0.5904672742,
-0.4328199625,
-0.0853342563,
-0.1001298428,
0.1710422188,
-0.0334497243,
-0.0163496416,
0.4173831046,
0.3864502907,
-0.1446474493,
0.1928072125,
0.0181011707,
0.2854255438,
0.0000792234,
0.4753416479,
-0.3610514402,
0.0692979395,
-0.0593838803,
-0.0007054094,
-0.1148845404,
0.018396847,
-0.1542854458,
0.0141631281,
-0.0487892516,
-0.3595838845,
0.4191323817,
0.0661881566,
-0.2409021556,
-0.313378036,
0.5093716979,
-0.2507258952,
0.1583913267,
-0.2099379152,
0.3502801657,
0.0778108761,
0.0783578604,
-0.1005697101,
0.3999764621,
-0.2176844925,
-0.1204275638,
-0.1621675491,
0.1063473374,
0.040180292,
-0.0646472052,
-0.4395000935,
-0.4167704582
] |
https://github.com/huggingface/datasets/issues/3285 | Add IEMOCAP dataset | > Thanks for your response. Sure, I will mail them and find out if they're open to this.
It's best to leave this part to us because we have to explain how login would work and (potentially) set up a custom verification for the dataset.
> Work on a script with manual download ? This is new to me, any guidelines would be helpful here.
For instance, this is one of the scripts with manual download: https://huggingface.co/datasets/arxiv_dataset. Compared to the standard dataset, it has the `manual_download_instructions` attribute and uses `dl_manager.manual_dir` (derived from `load_dataset(..., data_dir="path/to/data")`) to access the dataset's data files. | ## Adding a Dataset
- **Name:** IEMOCAP
- **Description:** acted, multimodal and multispeaker database
- **Paper:** https://sail.usc.edu/iemocap/Busso_2008_iemocap.pdf
- **Data:** https://sail.usc.edu/iemocap/index.html
- **Motivation:** Useful multimodal dataset
cc @anton-l
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 100 | Add IEMOCAP dataset
## Adding a Dataset
- **Name:** IEMOCAP
- **Description:** acted, multimodal and multispeaker database
- **Paper:** https://sail.usc.edu/iemocap/Busso_2008_iemocap.pdf
- **Data:** https://sail.usc.edu/iemocap/index.html
- **Motivation:** Useful multimodal dataset
cc @anton-l
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
> Thanks for your response. Sure, I will mail them and find out if they're open to this.
It's best to leave this part to us because we have to explain how login would work and (potentially) set up a custom verification for the dataset.
> Work on a script with manual download ? This is new to me, any guidelines would be helpful here.
For instance, this is one of the scripts with manual download: https://huggingface.co/datasets/arxiv_dataset. Compared to the standard dataset, it has the `manual_download_instructions` attribute and uses `dl_manager.manual_dir` (derived from `load_dataset(..., data_dir="path/to/data")`) to access the dataset's data files. | [
-0.1976326704,
-0.1684255153,
-0.0636767149,
0.0175229982,
0.0493132584,
-0.0771767125,
0.3879881501,
-0.0209067725,
0.2226244658,
0.1589051038,
-0.3142955601,
0.1245032772,
-0.2589575052,
0.493137449,
0.3352160156,
0.0632353574,
-0.0690496713,
-0.0771609321,
0.0377372243,
-0.0911582485,
-0.0632697418,
-0.0694264174,
-0.0840998068,
-0.0880697444,
-0.0140773058,
0.0246877391,
-0.2020878643,
0.3520496488,
-0.2645573318,
-0.3052986562,
0.0457613654,
0.52681458,
0.1364200115,
0.3807056844,
-0.000103224,
-0.256670326,
-0.0528977066,
-0.3228550851,
-0.1185401082,
-0.1616394669,
-0.5238994956,
-0.0021765484,
-0.0208173785,
-0.3468748033,
-0.1160990149,
-0.0025784357,
-0.0293834861,
-0.2435606569,
0.2817174494,
0.2164753973,
0.2382119894,
0.0875722468,
0.0708474889,
-0.1171517819,
0.2240645438,
0.3444553018,
-0.0566493422,
0.3198431432,
0.3209724426,
0.0510376692,
-0.0246020071,
0.2910276949,
-0.1474362016,
0.0117049767,
0.2757398188,
0.1376940459,
-0.120239906,
-0.3202721477,
0.0580490567,
0.4468719065,
0.5915085077,
-0.5359822512,
-0.2713774145,
0.1146239638,
0.2571246624,
-0.043838609,
0.1080764905,
0.222952798,
0.1174224392,
0.1256690621,
-0.1580239087,
-0.2050722986,
-0.2792188227,
0.0261229705,
0.0203743502,
-0.0571509898,
-0.1541015357,
-0.1578655094,
0.1787209958,
-0.1125945672,
-0.2770732641,
0.14540115,
0.1116762161,
0.1842922121,
0.1946737915,
-0.1869059354,
-0.0544464178,
0.2351768166,
0.1994968951,
0.3310259879,
0.0735796615,
0.0475189388,
-0.0525379218,
0.129569456,
-0.0317280106,
-0.2770078778,
0.0054756547,
-0.3249991238,
0.4319004714,
0.4309078753,
-0.0160610005,
0.1148207113,
-0.1281748861,
0.0058695874,
0.014584152,
-0.0023724327,
0.0822764635,
-0.2254633009,
-0.0044429968,
-0.0616456196,
0.1489815414,
-0.1874994338,
-0.0764349997,
0.2098064572,
-0.1395394951,
0.0460447408,
0.1335280687,
0.4149433076,
-0.1095603406,
-0.2989902496,
0.0242630858,
0.2379426956,
-0.1652137637,
0.2074669302,
0.3909166157,
0.2631651759,
-0.0496511832,
-0.1334329993,
0.1173483804,
-0.0929875672,
0.2444828749,
-0.0918959528,
0.1462017,
0.1194770411,
0.4016453624,
-0.0025138166,
-0.1967030317,
-0.2368954271,
-0.2346502692,
-0.1512668282,
0.1929619312,
-0.234976396,
-0.0922974348,
0.2787577212,
-0.0158047993,
-0.2831822038,
-0.0890623257,
0.0811956376,
-0.1701706648,
-0.1720317155,
-0.1312030703,
0.2764295638,
-0.2441256046,
-0.2544766963,
0.1483356208,
0.678142786,
-0.1788538843,
0.0549139827,
-0.1871156394,
-0.1312101036,
-0.1773095876,
0.069228597,
0.0180260483,
0.1553892344,
-0.1149085239,
0.0754490942,
0.1109748781,
-0.5927892923,
-0.155904904,
-0.065944761,
-0.1140162349,
-0.0809075683,
0.4672364891,
0.2093617171,
0.3543651998,
-0.4699805975,
-0.0231810883,
0.3799634576,
-0.0976535305,
0.1353048831,
-0.1210099682,
-0.3332981467,
-0.252921313,
0.3960065842,
0.1864425391,
-0.3389749229,
0.152585119,
-0.1967844218,
0.1818381697,
-0.0723361671,
0.2912547886,
-0.1170285493,
0.1545643061,
0.1037476733,
-0.0992513895,
-0.2711991966,
-0.248510927,
0.0632817298,
-0.0818895251,
0.3185348213,
-0.1511426568,
-0.4841241837,
-0.2892690003,
-0.2207234204,
-0.173345983,
-0.0098062232,
0.2109934241,
0.3452808559,
-0.0068031522,
0.1196291596,
-0.2417902201,
-0.0344567485,
-0.0105192848,
0.1031964347,
-0.4642113447,
0.1071706265,
-0.1113419458,
0.0719306543,
-0.0121840928,
0.2176241577,
-0.2186335772,
-0.1566461772,
0.2098683119,
0.402413398,
0.0569475479,
0.3882932961,
0.3090574741,
0.5236167312,
0.191549018,
-0.4006142914,
0.4709196389,
-0.1676808596,
0.1722316891,
-0.2133634835,
-0.1886009723,
0.3207134008,
-0.0606703646,
-0.1985428333,
0.2029249966,
0.1023433357,
0.2361903787,
-0.2597976327,
-0.2368284613,
-0.3330621123,
-0.2395284176,
0.1701112837,
-0.165946424,
-0.2244151086,
-0.3015866578,
0.1305155009,
0.2815519273,
0.0890997574,
0.2475631833,
-0.0320409499,
-0.3158796728,
0.0958521068,
-0.0640590861,
0.0502536669,
0.2628038824,
0.3320060968,
0.1519378871,
0.1185595021,
0.0228423141,
-0.2155293226,
0.3094296157,
-0.1156774312,
-0.2972513437,
0.1328626275,
-0.1466003954,
0.0515925512,
-0.2338110059,
-0.3478032053,
-0.1313237995,
-0.21769692,
-0.4285704792,
-0.3046221137,
0.0136489226,
-0.32768628,
-0.1497454196,
-0.4673309326,
0.0554817803,
0.0102019971,
0.0981537104,
0.1984416395,
-0.2346384972,
-0.0153378192,
-0.0587679446,
0.4139855504,
-0.1392837316,
-0.0367141403,
0.1432079226,
-0.1316237748,
0.0231346209,
0.1889702827,
0.5069560409,
0.1217353269,
0.5541542768,
-0.4221608043,
0.14533858,
-0.2083279639,
-0.1573010385,
0.1173913181,
-0.0951167941,
-0.0710598603,
0.13009803,
-0.0297606066,
0.37549752,
-0.0097617898,
0.1779738367,
-0.0828719586,
0.0994585976,
-0.0176478736,
-0.1161000952,
-0.2043641955,
-0.1599424183,
-0.627009213,
-0.4028518796,
-0.3722588122,
0.1227521151,
0.1398555338,
0.177144751,
-0.0097331423,
-0.0149314124,
0.1728878021,
-0.0559048578,
0.3880946636,
-0.1865794808,
-0.1519857794,
0.2264165282,
-0.30396685,
-0.2754430771,
0.201883018,
-0.1584556252,
0.2468004674,
0.1102682352,
-0.254776299,
-0.3259899914,
0.064816989,
0.0175096113,
0.0779069811,
0.3397800624,
0.4312229753,
0.2177173942,
-0.1546649933,
0.0840409771,
-0.1067396477,
0.201796636,
0.1737605929,
-0.0987186432,
0.0177990943,
0.247984305,
0.0148397181,
0.3313099742,
-0.0007978583,
0.129554823,
0.2882398367,
-0.1439803243,
0.2774877548,
0.0586058609,
-0.1274113357,
0.141081363,
-0.0344078019,
0.0987789929,
0.4451434314,
0.1576612145,
-0.1267909557,
-0.3670936227,
0.0819853693,
-0.3051513135,
-0.4524597228,
0.2017976791,
0.0425544977,
0.0404410958,
-0.0475805476,
-0.0948117599,
-0.1140751019,
-0.2031548321,
0.2663151324,
0.3161601722,
-0.147721827,
-0.1618458033,
-0.0840731338,
0.2588604689,
-0.2437980175,
0.3376912177,
0.2562916875,
-0.0931803808,
-0.039614968,
-0.3114729524,
0.0670206845,
0.0416674167,
0.0660344884,
-0.5781223178,
0.0351600014,
0.2667047083,
0.1679253578,
-0.3163120449,
-0.0320255868,
-0.5297603607,
0.0731413886,
0.2804226875,
-0.0938603729,
-0.322375536,
0.0383724533,
0.2958123088,
0.120799087,
0.0183470305,
-0.0101213716,
0.0451494642,
-0.2610639036,
-0.3334212601,
0.1785410196,
-0.1816171706,
-0.2632942796,
-0.1938600987,
-0.1547241956,
0.2352510691,
0.0366022177,
0.406792134,
0.2406565845,
0.0873628482,
0.1482375562,
0.103505902,
0.1666502208,
-0.0296099149,
0.2094959021,
0.5911567211,
-0.1720800251,
0.0247451458,
0.0094695315,
-0.6265848875,
0.2162166387,
0.4176313281,
0.3337002397,
-0.02591056,
0.1010885537,
-0.012440634,
-0.6068962812,
-0.0551993437,
0.250159353,
-0.1236522943,
-0.2443304658,
-0.4680618048,
0.0491657071,
-0.0509042516,
-0.1979438961,
0.0967145786,
0.4788672924,
-0.3776338995,
0.1541630328,
-0.0488495752,
1.1137048006,
-0.0462598689,
0.2029408813,
0.1440470368,
0.0180307012,
-0.115664877,
-0.1951751411,
-0.1467494965,
-0.2059645951,
-0.070975855,
-0.1416771412,
-0.0014171995,
-0.1168391556,
0.1652668864,
-0.5419262052,
0.0828647017,
-0.0201734453,
0.1308634579,
-0.0835764706,
0.550352335,
-0.2736025453,
-0.4377482831,
-0.0134330671,
0.181957528,
0.262501657,
-0.1826036721,
-0.0451751761,
-0.2077298611,
-0.0431483723,
-0.0526276007,
-0.1708573401,
0.1334321946,
-0.0783896521,
-0.0805539787,
-0.3174212873,
0.3866500556,
0.2850014269,
0.0713703781,
0.2052564919,
0.1290618479,
-0.2315444201,
-0.1605083346,
0.0365118347,
-0.015371196,
0.2293365449,
-0.0443223752,
0.4814945161,
-0.1197831258,
-0.1699895561,
0.0787227526,
0.1871767193,
0.1021448672,
0.0358350426,
0.032034982,
0.4344356358,
-0.4078157544,
0.0070029194,
0.1469642967,
-0.289647609,
-0.0442595072,
0.174972415,
0.1928483695,
-0.0916429609,
0.5662813783,
0.1366199553,
-0.0428372324,
-0.1061560363,
0.2523659766,
0.1721317619,
-0.0064253681,
0.0457006767,
0.0948610753,
-0.0825301185,
-0.3923412859,
-0.0582932793,
-0.0492398962,
-0.5093317032,
-0.0254767127,
0.1245267466,
-0.1584995538,
0.1262625158,
0.1161555424,
0.1635190845,
-0.0757024437,
-0.1124900207,
-0.244097665,
-0.097756952,
0.3199990094,
0.3362780511,
0.2124477476,
-0.00509188,
0.0932284519,
0.1434737891,
0.0001557073,
-0.4779468775,
0.1385384202,
0.0775628313,
0.0025258607,
0.3781047165,
-0.0179554597,
0.2802058756,
-0.0384120047,
0.1806855053,
-0.223834008,
-0.4301250875,
-0.1880229264,
-0.1461582929,
0.1633283496,
-0.2949835956,
-0.0554458536,
0.1440243721,
-0.2513588369,
-0.3259927034,
-0.0419414379,
0.1739012599,
0.0489499494,
-0.1197255775,
-0.1592380106,
-0.1728234142,
0.042517256,
-0.0667985454,
0.1709180772,
-0.0681903362,
0.0269467104,
-0.04183558,
0.1210930869,
-0.3626922667,
-0.3876505792,
0.3871847987,
0.2993066609,
0.5341608524,
-0.016355494,
0.3246096373,
0.1539325267,
-0.0371828899,
0.2068669796,
0.4428345561,
0.2988260686,
-0.1866147667,
0.014248468,
0.0652033761,
0.3250355721,
-0.2017449886,
0.1706692278,
0.1633936167,
-0.0905112997,
0.29782933,
0.3626536131,
0.4658188522,
-0.0651246533,
0.0288209617,
-0.0240216739,
0.1209135726,
0.0354041569,
-0.1242408082,
-0.302306205,
-0.2298695296,
0.0298805926,
0.0936331525,
0.1927309036,
0.2460135072,
0.0393744372,
-0.0955842361,
0.2551628947,
0.0987481028,
0.1405228674,
0.3146074414,
-0.4183163047,
0.3792155385,
0.0621840507,
0.1654999852,
0.0894884914,
0.0577637106,
0.4844939113,
-0.0551170073,
0.0731487498,
-0.4067169428,
0.1206761003,
0.1153023988,
0.1007637978,
-0.076201342,
-0.2597860098,
-0.3636850417,
-0.2276628315,
-0.1134271622,
-0.012061079,
0.0627548769,
0.1698596776,
0.2735139728,
-0.3651982844,
-0.1445090324,
-0.136399135,
0.3456190228,
-0.4022471011,
0.1621551663,
0.4456560612,
-0.020891618,
0.2526615858,
0.2891665697,
0.3472768962,
0.1706089675,
-0.1297539026,
0.4433729649,
0.1383399665,
-0.0474977419,
-0.1466219723,
0.1132851839,
0.2965590358,
0.2801577449,
0.2467193604,
0.2407873273,
-0.2320980728,
-0.280477345,
0.0231118184,
-0.0872643515,
0.0945807844,
-0.2104994059,
0.220578149,
0.013154028,
-0.3635706007,
-0.1174181625,
-0.7062492967,
-0.1690185964,
0.2193268687,
-0.2155333608,
0.2048564553,
-0.2412214875,
0.1184269711,
0.3776077926,
0.331084311,
0.4238333106,
0.1766444147,
-0.0240516644,
-0.2569465339,
-0.7594285011,
0.202054292,
0.1615216583,
-0.2622398138,
-0.2115296274,
0.3564882278,
0.3972348869,
0.1331622154,
0.0378977917,
-0.217901662,
0.165859744,
0.1978226602,
-0.3235312998,
0.0624749772,
0.1701533645,
0.0472759306,
0.0451336093,
-0.1599908322,
0.0080882292,
-0.2360796481,
0.1175596565,
-0.0361364931,
0.0256392099,
-0.0688616261,
-0.1014026999,
0.5120300651,
-0.2098821551,
0.5884241462,
-0.3061163425,
-0.1912972331,
-0.2090911269,
0.3642340004,
-0.2289259583,
0.0733142123,
0.4110042155,
0.2953858972,
-0.1430189162,
0.1382296383,
-0.0051142159,
0.29672122,
-0.0535065308,
0.3414323926,
-0.3943786621,
-0.1200423688,
0.071991168,
-0.0391731411,
-0.0545988493,
0.1271069795,
-0.1921325624,
0.0586624406,
-0.095854789,
-0.3177281022,
0.5572209358,
0.0933166891,
-0.0803002492,
-0.2747315764,
0.4185739458,
-0.4174649715,
0.2277446836,
-0.3381070495,
0.3799241781,
0.0378400385,
-0.0111791743,
-0.0901116058,
0.2274471819,
-0.1481327266,
-0.0740124211,
-0.2826409042,
0.1260297894,
-0.0236006025,
-0.0695574358,
-0.4665426612,
-0.2879005671
] |
https://github.com/huggingface/datasets/issues/3285 | Add IEMOCAP dataset | > It's best to leave this part to us because we have to explain how login would work and (potentially) set up a custom verification for the dataset.
Yes. That would be perfect. Thanks.
----
Okay. Thanks for giving a reference. This is helpful. I will go through it.
| ## Adding a Dataset
- **Name:** IEMOCAP
- **Description:** acted, multimodal and multispeaker database
- **Paper:** https://sail.usc.edu/iemocap/Busso_2008_iemocap.pdf
- **Data:** https://sail.usc.edu/iemocap/index.html
- **Motivation:** Useful multimodal dataset
cc @anton-l
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 49 | Add IEMOCAP dataset
## Adding a Dataset
- **Name:** IEMOCAP
- **Description:** acted, multimodal and multispeaker database
- **Paper:** https://sail.usc.edu/iemocap/Busso_2008_iemocap.pdf
- **Data:** https://sail.usc.edu/iemocap/index.html
- **Motivation:** Useful multimodal dataset
cc @anton-l
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
> It's best to leave this part to us because we have to explain how login would work and (potentially) set up a custom verification for the dataset.
Yes. That would be perfect. Thanks.
----
Okay. Thanks for giving a reference. This is helpful. I will go through it.
| [
-0.2882090211,
-0.1497914493,
-0.1636939347,
-0.0070336401,
-0.0361263268,
-0.1127439961,
0.5733915567,
-0.0719576403,
0.1140567735,
0.2705541551,
-0.3042043746,
-0.0156050269,
-0.1448670328,
0.4219715893,
0.2603910267,
-0.018376451,
0.0353237353,
0.1186271533,
0.0649689436,
-0.0254528094,
0.0358385742,
-0.0189924147,
-0.0302008316,
-0.0551061593,
-0.2478061914,
0.0683168992,
-0.2235223651,
0.1611366123,
-0.3675456047,
-0.2540756464,
0.0062409565,
0.3478372097,
-0.2025490701,
0.3346053362,
-0.0000977415,
-0.1544601619,
-0.1393566877,
-0.1816322654,
-0.1915014088,
0.1342620701,
-0.6082988977,
0.1351190507,
-0.1683499068,
-0.1468511373,
-0.3847379982,
-0.0861249194,
-0.0933552831,
-0.2191459835,
0.3088783026,
0.4141252041,
0.3099031746,
-0.1327074915,
-0.013376426,
-0.0536597855,
0.1432593465,
0.3244232535,
0.0137347803,
0.0778456479,
0.1851031482,
-0.0441332124,
-0.0989490226,
0.285344243,
-0.0236775801,
0.0567797199,
-0.0097977491,
0.0435178429,
0.0298297368,
0.0043542818,
0.1107900068,
0.3291453421,
0.5085185766,
-0.3150944114,
-0.1635605842,
0.1282862127,
0.1657789946,
-0.1438337564,
0.2948939204,
0.0841269717,
0.2297071218,
0.1816807836,
-0.1292936653,
-0.0118962508,
-0.2328399867,
0.0517770164,
-0.0956785381,
0.0695666522,
-0.1730479896,
-0.196415633,
-0.0338485241,
-0.2167695165,
-0.1398920119,
0.2435199171,
-0.0419785343,
0.0498393849,
-0.0646488369,
-0.2275742441,
-0.0320413262,
0.277271986,
0.0363173671,
0.2403930277,
0.033558432,
0.1055351794,
0.1564271003,
0.1254791766,
0.0063321372,
-0.2708205581,
0.1027682722,
-0.340652436,
0.3184690773,
0.138139531,
-0.1255489886,
0.1262868941,
0.0330945402,
0.0008070003,
0.0091762813,
0.072367087,
0.0634139255,
-0.0886370689,
-0.1429929435,
-0.0709041953,
-0.0530227683,
-0.2351013124,
0.0772468001,
0.2391882092,
-0.1884256452,
0.0226842761,
-0.0084872516,
0.2388088107,
-0.2531659305,
-0.421692878,
-0.0978391171,
0.1543859243,
-0.1757081747,
0.2367401421,
0.3281202912,
0.2206700295,
-0.0210897531,
-0.0338116474,
-0.0309190527,
-0.1417396367,
0.3827450871,
-0.0616501831,
0.1402966529,
-0.0583948083,
0.2601813972,
-0.2056556046,
-0.1503284276,
-0.2748589218,
-0.1788003147,
-0.4043694735,
0.226542145,
-0.1874748617,
-0.4028674066,
0.3480196595,
0.1406855881,
-0.2190282941,
0.1273547411,
0.2332313955,
-0.064001739,
-0.209619537,
0.0001491169,
0.3871967494,
-0.2499527186,
-0.0645979494,
-0.0101773394,
0.2845594883,
-0.0442463905,
-0.1048956737,
-0.1699340045,
-0.2330090553,
-0.3442474604,
-0.0049630003,
-0.0098834867,
0.1982433796,
-0.0756674707,
0.175976634,
0.0668413863,
-0.4050114453,
-0.2201717198,
-0.2489608973,
-0.1223610491,
-0.1540903002,
0.4291626513,
0.2761203647,
0.4018415213,
-0.2846635282,
0.1940401644,
0.4086147547,
-0.1215829328,
0.2875222564,
0.010008242,
-0.1953141838,
-0.2304494828,
0.3554646969,
0.0047769565,
-0.3505118191,
0.2136557698,
0.0153554101,
0.1452624053,
-0.1712920368,
0.2785538733,
-0.0674746186,
0.3075232804,
0.0915323794,
-0.1462175101,
-0.3634189963,
0.1100034714,
-0.099706158,
0.0561713502,
0.3417162001,
0.1355080456,
-0.4364668429,
-0.2947012484,
-0.1499465108,
-0.2873440385,
-0.069236733,
0.3364545703,
0.4657510817,
-0.0200904962,
-0.0316331908,
-0.1509989351,
0.0388972908,
0.2145890296,
-0.0683058649,
-0.1832310557,
0.0911956504,
-0.1963231415,
0.0051648715,
0.0257427022,
0.2145412117,
-0.136134401,
0.0848371536,
0.1608144045,
0.3604382873,
0.0450687483,
0.311968565,
0.2387311906,
0.4614473879,
0.2378637344,
-0.5024255514,
0.3647432625,
-0.1102836579,
0.0368290022,
-0.1080628335,
0.0051391418,
0.3000050485,
0.3516967893,
-0.3198414445,
0.0706374794,
0.0714701265,
0.2570790946,
-0.3253781199,
-0.1075728834,
-0.3050057888,
-0.1871710271,
-0.028162865,
-0.1328027248,
-0.128382355,
-0.2122342139,
0.0797682106,
0.3497878015,
0.1250824332,
0.4317653775,
-0.1993883401,
-0.410166353,
-0.1541659236,
0.1080858558,
-0.098093763,
0.1881844848,
0.3141822219,
0.23385562,
-0.0406817049,
0.0454967394,
-0.0357837677,
0.3200832605,
-0.3611378968,
-0.2839462459,
0.1470883638,
0.0941843614,
-0.2224724144,
-0.4201080501,
-0.3293832541,
-0.1024088413,
-0.2618300319,
-0.3442917466,
-0.1544605494,
-0.0167971775,
-0.2940988243,
0.1507078856,
-0.5270518064,
0.0667923242,
0.0568581931,
0.3053345978,
0.2213297635,
-0.117912218,
0.0655164793,
0.0143480515,
0.4581187963,
0.0873769,
0.0583145991,
0.2077389508,
-0.1609340161,
-0.0374357775,
0.3066594005,
0.3671805859,
0.1229115948,
0.401461035,
-0.2959196866,
0.1255177557,
-0.220670253,
-0.2753944993,
0.2873979211,
-0.0307642929,
0.0849212408,
0.1754873097,
-0.0595258884,
0.1625629663,
-0.034527652,
0.2216859013,
-0.0201043468,
-0.1226554513,
0.0728488192,
-0.0904849917,
0.0500972718,
-0.0744891465,
-0.414608568,
-0.3219700754,
-0.2661839128,
0.1902809739,
0.0650252402,
0.1008639634,
-0.0274536647,
-0.0246710368,
0.1759126633,
-0.1400701553,
0.475618422,
-0.4204106927,
-0.3041451871,
0.1427916884,
-0.379678905,
-0.1819184124,
0.0162851159,
-0.2622573674,
0.1984723806,
-0.1203272268,
-0.2856613398,
-0.2798058987,
0.0266180895,
-0.0054042391,
0.0334948711,
0.1246365309,
0.3600057662,
0.1803608835,
-0.228774786,
-0.0183098987,
-0.2371973991,
0.1233064085,
0.2464037091,
0.065029867,
-0.1319216639,
0.0399059057,
0.0913204551,
0.2903527319,
-0.0705655143,
0.0075758109,
0.3430297971,
-0.1922487468,
0.1660250276,
-0.0231214352,
-0.1139985472,
0.2405008525,
-0.0016406656,
0.0976261944,
0.4373049736,
0.1724272817,
-0.1494181007,
-0.3250634372,
0.1106015444,
-0.2762273252,
-0.353828162,
0.0551578552,
0.0831145495,
0.1181407943,
-0.0942673683,
-0.1418857425,
-0.1878690869,
-0.1931177676,
0.2808370888,
0.1423519552,
-0.3428814411,
-0.2699595392,
-0.2451860607,
0.2329445034,
-0.0339550301,
0.1921564341,
0.2985526919,
-0.0254744105,
-0.2138442248,
-0.2191170454,
0.0316156745,
0.1285901219,
0.1252282709,
-0.5179086924,
-0.0553229041,
0.0929318815,
0.2786639333,
-0.0674677193,
0.115240559,
-0.3667914271,
-0.0603778735,
0.2335000038,
0.0073563275,
-0.2308904678,
0.2178026438,
0.2801277936,
0.0768184587,
-0.0712289289,
0.1032404527,
-0.0448734909,
-0.0534190945,
-0.253849417,
0.1814572811,
-0.1538441032,
-0.0657158196,
0.259036988,
-0.144736439,
0.0944732353,
-0.1460404098,
0.3648119867,
0.3131373227,
-0.0085460376,
0.133719191,
-0.024239393,
-0.0274109207,
0.0034236789,
0.0209475774,
0.576449275,
0.0033971614,
0.0701569989,
0.0861921161,
-0.3984620273,
0.2303977907,
0.2584076524,
0.3800280094,
0.2029173225,
0.1118546724,
-0.0402437747,
-0.4955487847,
0.0589589961,
0.1123228148,
0.0961192921,
-0.1252966374,
-0.1358931512,
-0.0813733488,
-0.1092502251,
-0.1385172158,
0.1313553751,
0.5484830737,
-0.3644969761,
0.0499388501,
0.0180231016,
0.9822061062,
0.0898331255,
0.0940016657,
0.0858124271,
0.0032608851,
-0.2280922532,
-0.1905436218,
0.1302424222,
-0.0722532868,
-0.2326457947,
-0.1194633767,
0.0804426372,
-0.0746271536,
0.1167520955,
-0.5081316233,
-0.1073154733,
0.1327520162,
0.099334389,
-0.137074098,
0.3826610148,
-0.2212986201,
-0.3417669833,
-0.1621658951,
0.3452264071,
0.1742041558,
-0.3229037523,
-0.0455959588,
-0.0760947168,
0.0526360869,
-0.0491358712,
-0.1316476315,
-0.0404993668,
-0.1120749041,
0.0355064198,
-0.0647108927,
0.3414598107,
0.0111223841,
-0.1709683836,
0.221130982,
0.0839188173,
-0.2424059808,
-0.1438252479,
0.0276141148,
0.1132360473,
-0.0589442849,
0.0014333052,
0.4071992636,
-0.1215850487,
-0.1687497199,
0.0759482309,
0.1862776428,
-0.2027994394,
0.0522026122,
0.1251294464,
0.3240662217,
-0.2863551676,
0.2800590694,
0.0907638147,
-0.1420063376,
-0.177777186,
0.2418393344,
0.0846453011,
-0.0795900151,
0.2582348883,
0.2657861114,
0.0436453857,
-0.0736827105,
0.2322778404,
0.1208696812,
-0.0732709989,
0.034214858,
0.0524051301,
-0.127640605,
-0.4712857008,
-0.1087808758,
-0.0296465661,
-0.0756921545,
-0.127712056,
-0.0033995586,
-0.3883219957,
0.1116508618,
0.169761166,
0.2497610748,
0.3104401827,
-0.041163899,
-0.1216728836,
-0.1679433584,
0.2654442191,
0.1732540429,
0.2532875836,
-0.0839804262,
0.1608240902,
0.1221124381,
0.0055976999,
-0.5199921727,
-0.0424761698,
-0.0991694927,
0.1920576841,
0.2107433677,
-0.2437238991,
0.164247483,
0.0277175214,
0.2917315066,
-0.2573570013,
-0.3202567101,
-0.3241311312,
-0.0383340158,
0.1003328487,
-0.0778515264,
0.0107703786,
0.0481032282,
-0.0645830259,
-0.1779818982,
-0.0500787981,
0.085970521,
0.0463166982,
-0.1415462196,
-0.1673208177,
-0.1900718659,
-0.0074215438,
-0.0520765409,
-0.1565181613,
0.0432709046,
-0.090776071,
-0.1576883793,
-0.0171895195,
-0.2644279301,
-0.3194684088,
0.2869663239,
0.4267248809,
0.524538815,
-0.043581184,
0.1966158748,
0.1795285791,
-0.1739312112,
0.3283191621,
0.3482710719,
-0.0055623832,
-0.2039081603,
0.0980764106,
0.0682050362,
0.4565090537,
-0.1893984973,
0.1800355613,
0.2380661219,
-0.2384559065,
0.3800088465,
0.2572380006,
0.3662472069,
-0.1662872434,
0.059345793,
0.1183484271,
-0.2841789424,
-0.0372207128,
-0.0970086083,
-0.224606052,
-0.3769102693,
-0.0885988399,
0.420711875,
-0.0515780374,
0.258405447,
0.2188024074,
-0.1526649892,
0.2980295718,
0.1957722902,
0.1218789071,
0.3614942133,
0.0468819626,
0.578389585,
-0.0882200971,
0.1372936368,
-0.0476080738,
0.2040700167,
0.4429053962,
-0.2492153496,
0.0600203238,
-0.4242061079,
0.0884922966,
-0.0319518894,
0.1505732238,
-0.0434379652,
-0.1600752771,
-0.3278727829,
-0.2669254839,
-0.0234959479,
0.0618567243,
0.1827880293,
0.0924149752,
0.2197523564,
-0.374314785,
-0.0501975864,
0.1150523871,
0.2475829571,
-0.3979045451,
0.1347484142,
0.3674438596,
-0.1084032804,
0.2485112399,
0.4054733217,
0.0433665253,
0.019952286,
-0.188795805,
0.3356981277,
0.046531219,
-0.1522303075,
-0.2335397601,
0.0372063704,
0.3607203066,
0.1659581363,
0.2269316763,
0.3062411249,
-0.249757573,
-0.2171576619,
0.0281538405,
-0.0690884665,
-0.0095736869,
-0.3427811861,
0.1602082849,
0.0446045361,
-0.3435828686,
-0.0545146652,
-0.744227767,
-0.3021191359,
0.1721241325,
-0.2577983737,
0.2609917819,
-0.2506439984,
0.1344041675,
0.3244225383,
0.0788777992,
0.3084239364,
0.0428655781,
0.1423528641,
-0.2729458213,
-0.5383739471,
0.2543631196,
0.0848006383,
-0.2348934859,
-0.3613141179,
0.310521841,
0.4373211563,
0.2371927053,
0.0545657985,
-0.1439295262,
0.1800515503,
0.0159547403,
-0.4752969146,
0.1393704563,
0.3888411224,
0.1305201799,
0.0909962505,
-0.0798902959,
0.1168219149,
-0.1636260897,
0.2834408283,
0.0185761489,
-0.2222521156,
-0.1624056995,
-0.0851107836,
0.3154605925,
-0.0425143056,
0.4748651087,
-0.4053320289,
-0.0134136705,
-0.0367231108,
0.1846080422,
-0.1279369295,
-0.0197444018,
0.393710196,
0.41933465,
-0.0347128212,
0.2384164333,
0.1205734611,
0.3251671493,
0.0542352498,
0.2824518979,
-0.3565242589,
0.0818414539,
0.0321679451,
-0.0421723463,
-0.1383830309,
0.0267976727,
-0.0490676276,
-0.0198288579,
0.0208599921,
-0.3975483775,
0.2596758306,
-0.1213639379,
-0.1767978072,
-0.2611325085,
0.5273245573,
-0.0923023224,
0.1240475476,
-0.2512643039,
0.2588486075,
0.1322459728,
0.0207360871,
-0.0260913372,
0.2989702821,
-0.0585922003,
0.0545043387,
-0.2450473458,
0.0580983944,
0.1100723594,
0.0021336044,
-0.3686178327,
-0.2897846103
] |
https://github.com/huggingface/datasets/issues/3282 | ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py | Hi ! Thanks for reporting :)
I think this is because the dataset is behind an access page. We can fix the dataset viewer
If you also have this error when you use the `datasets` library in python, you should probably pass `use_auth_token=True` to the `load_dataset()` function to use your account to access the dataset. | ## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)*
*The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.*
```
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
Am I the one who added this dataset ? No
Using the older version of [OSCAR](https://huggingface.co/datasets/oscar) I don't have any issues downloading languages with the dataset library. | 55 | ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)*
*The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.*
```
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
Am I the one who added this dataset ? No
Using the older version of [OSCAR](https://huggingface.co/datasets/oscar) I don't have any issues downloading languages with the dataset library.
Hi ! Thanks for reporting :)
I think this is because the dataset is behind an access page. We can fix the dataset viewer
If you also have this error when you use the `datasets` library in python, you should probably pass `use_auth_token=True` to the `load_dataset()` function to use your account to access the dataset. | [
-0.2027653456,
0.1993869096,
-0.0173747595,
0.3850066364,
0.2765265405,
0.172312215,
-0.005311287,
0.2269322276,
-0.1176276058,
0.1920671612,
-0.2589607239,
-0.0070933392,
0.1979573667,
-0.0506283343,
0.0628772229,
-0.2161213905,
-0.1084234416,
-0.0997951925,
-0.0893969536,
-0.0184965469,
-0.2720648348,
0.001220995,
-0.0487650111,
0.2938478589,
-0.0965317711,
-0.0145583656,
-0.0792538747,
0.0217267834,
-0.2849618196,
-0.4174493551,
0.2633958757,
-0.0164403878,
0.1208617762,
0.3305675685,
-0.0001076562,
-0.0294822641,
0.5196357965,
0.0876933485,
-0.3862409294,
-0.6431902647,
-0.0600778013,
-0.2329303473,
0.2182195783,
-0.0073610162,
-0.0681552291,
-0.2332941741,
0.2048518956,
-0.2722421288,
0.1073729321,
0.2153252512,
0.2902389169,
0.2496893406,
0.4348214567,
-0.320554316,
0.136788249,
-0.1673881114,
-0.1047596633,
0.2307301164,
0.1612736732,
0.1161321476,
0.1450680196,
0.1856274009,
0.1498710662,
-0.0734690204,
0.3786956072,
-0.0934253931,
-0.3029823899,
-0.424118638,
0.2797873616,
0.1503996849,
0.7434453368,
-0.1431633979,
-0.5065809488,
0.072490871,
0.1532175094,
-0.0758516043,
0.3953252137,
0.4010619223,
-0.0802651048,
0.0391814671,
-0.1685733944,
-0.2570514083,
-0.2772716284,
0.5193192959,
-0.1465914696,
0.163735792,
-0.1218130067,
0.1744397134,
0.1989201754,
-0.0688542277,
0.1120313257,
-0.1013832763,
0.0424800403,
0.2691731453,
-0.0772493109,
0.2899097502,
-0.0484630689,
0.3560127318,
0.136185661,
0.0476821139,
-0.0292357467,
0.1458168626,
-0.3487764299,
0.0662997216,
0.3788772821,
0.0657488108,
-0.1425421238,
0.0131474724,
0.3362300396,
0.3394885361,
0.1115781069,
-0.1672978103,
-0.1309716105,
-0.3140823543,
-0.1623689085,
-0.1545760781,
0.4265621901,
-0.178037107,
-0.0994529948,
0.1284579039,
-0.2840755284,
-0.1018088758,
0.0109457253,
0.4008489847,
-0.3027249873,
0.1324795485,
0.015946215,
0.1856576204,
-0.0733621642,
-0.1071999297,
-0.1907059252,
0.1186689436,
-0.3018152118,
-0.0835121572,
0.1537477821,
-0.4672885835,
0.1833639145,
-0.0959873423,
0.231822744,
-0.1408188939,
0.1524845511,
-0.1871026456,
-0.1300195307,
0.1926503181,
0.2402691394,
0.4431697428,
0.144887507,
-0.2493510991,
-0.0350491516,
-0.0177772995,
-0.2433141917,
-0.2388846129,
-0.1557489932,
0.214677617,
-0.0391367152,
-0.0189709812,
-0.1627590656,
-0.2201969922,
-0.1724716872,
0.0299976673,
-0.0218560807,
-0.0686084479,
-0.0802083388,
-0.193522498,
0.2517102361,
0.5226730108,
-0.297283709,
0.040227022,
-0.2712686956,
-0.2423309237,
-0.0353197195,
0.1291243434,
-0.2708786726,
0.0042395443,
-0.2984903455,
0.0750059038,
0.3271592855,
-0.4252154529,
-0.6005573273,
0.2239187956,
-0.0815635845,
0.0328177474,
-0.1335955709,
0.0962631404,
0.1569686234,
0.0009914535,
0.0051675593,
0.1270408481,
0.1342209429,
-0.0878776312,
-0.0318728313,
-0.1954678148,
0.0376805402,
0.1891186386,
0.1146785393,
0.0800287053,
0.2441412807,
0.0552347936,
0.2985983193,
-0.0280874055,
0.2217486799,
0.1158689633,
0.1207097694,
0.4673010409,
0.0116881123,
-0.140372619,
-0.0985393822,
0.1564440727,
0.0340967253,
0.3388131261,
-0.3569270372,
-0.090203695,
-0.3856533766,
-0.0072015063,
-0.3222622573,
0.003949129,
0.137561515,
0.1365198046,
0.1370217502,
0.3564324975,
-0.1535230577,
0.2270907164,
0.0697530508,
0.2000745237,
-0.4717861116,
0.1559893638,
-0.1643626094,
0.1504877061,
0.1082098782,
0.0283033941,
0.1852130145,
-0.1798798591,
-0.1612938643,
0.2995283604,
-0.0070310975,
0.283411026,
0.0524227321,
0.1394961327,
0.367792815,
-0.4319248796,
0.2029718459,
0.214785248,
0.2503561676,
0.1023979783,
0.2297946364,
0.1634099036,
-0.0049002008,
0.2317612916,
0.2110591829,
0.2715299428,
0.4035412371,
0.1901436299,
-0.1751831323,
-0.0753105283,
0.2559172809,
-0.0607587472,
0.2961603105,
-0.2085098326,
-0.3017111719,
-0.032553345,
0.1828527898,
-0.0303016137,
-0.0282579735,
0.2370918989,
-0.307289958,
0.1307978779,
-0.002703801,
0.2633734941,
0.2102099359,
0.0919415429,
0.0311959106,
0.3542659581,
0.0155070862,
-0.290153712,
0.1658256948,
0.1785584837,
0.0064776782,
-0.0664738864,
0.0198148657,
0.0218315087,
-0.2774798572,
-0.0073396298,
-0.201095283,
0.2857619226,
-0.194676891,
0.0868147612,
-0.3310255408,
-0.5319347978,
-0.1914970726,
-0.2879303098,
-0.2990101278,
-0.3978269696,
-0.2203559875,
0.1988134086,
0.0171069056,
0.0763074681,
-0.4694429338,
-0.0245686173,
-0.1042863503,
0.0703789741,
-0.0844593272,
-0.1499597579,
-0.1766345501,
0.1138737723,
0.2630018592,
-0.0152411237,
0.3576880693,
-0.1284128875,
0.1335320026,
-0.4239308834,
-0.1696910858,
0.0647767112,
0.0356578007,
0.0985873491,
0.1242661625,
0.3087801039,
-0.025257092,
-0.1692080349,
0.3450177312,
-0.0598762706,
-0.0684719309,
-0.1151295453,
0.0727189109,
-0.0330438837,
0.1429795176,
-0.4839428365,
-0.3743896484,
-0.3295212686,
0.240612179,
0.1000040993,
0.1643773168,
0.0726398304,
-0.1213571355,
0.2420025468,
-0.1916280389,
0.1328505427,
-0.2671848536,
-0.1641098261,
0.3513081372,
-0.3238591552,
-0.5939623713,
0.3540237546,
0.1044505313,
0.2606617808,
-0.051071465,
-0.3970605731,
-0.2901273966,
-0.2543045282,
-0.0388174281,
0.0765253305,
0.1076824814,
0.2036740631,
-0.1760222465,
-0.0530064814,
0.1342121661,
-0.1198038906,
-0.1831572652,
-0.2781972289,
0.2680686116,
-0.1000484973,
0.4044791162,
-0.0658354834,
0.4081811607,
0.2941122353,
0.1921269298,
0.5276878476,
0.0618738197,
0.2531734407,
-0.2463555932,
-0.5655335784,
0.0860581174,
-0.1419035792,
0.1010041162,
0.2214978635,
0.1131963879,
-0.1381407678,
-0.4108757079,
-0.2776781917,
-0.3991940618,
-0.248001352,
-0.1738719046,
-0.0342238694,
0.1786340326,
0.1913957894,
0.1320452094,
0.0192576088,
-0.299759686,
-0.0247038808,
0.4354976118,
0.1424433887,
0.1016647294,
-0.2474026829,
-0.0176435485,
-0.4690905809,
0.4094415307,
-0.0339202397,
0.3629892766,
-0.143775925,
0.1649920642,
0.2911028862,
0.0247843117,
0.6514784694,
-0.2232446373,
-0.0548198745,
-0.0125779156,
-0.1221976355,
-0.3620076478,
0.0290594287,
-0.1262090057,
0.2213311791,
0.2057196945,
0.2087735832,
-0.1914133877,
0.0823069662,
0.1059575751,
0.0406359248,
-0.1288429499,
-0.0764409378,
-0.226339519,
-0.5405517817,
-0.3553227186,
-0.0998104513,
-0.1196811572,
0.3752514124,
0.234889105,
-0.0680783615,
0.00196098,
0.040573325,
0.198986277,
0.0482795499,
-0.0140808811,
0.2411709726,
0.216484189,
0.3963952661,
0.3747822046,
0.2090196162,
0.522200644,
-0.0010371176,
-0.6040939093,
-0.0713460371,
-0.0727950186,
0.1547233015,
0.2073017359,
-0.0481878296,
0.1069162264,
0.2191959172,
-0.0607526191,
-0.2528817952,
0.0798717365,
0.3520022929,
0.1388469189,
-0.4737024009,
-0.6560758948,
0.2411292493,
-0.0445598848,
-0.0525486842,
0.2056574821,
0.3867133558,
-0.2261099666,
0.1173590049,
-0.1903141737,
1.0181241035,
-0.1897650957,
0.0060808756,
-0.0233939327,
-0.0927836001,
0.6583041549,
0.0183186233,
0.0960881487,
-0.3308034837,
-0.3378793001,
-0.2302725762,
-0.1292655617,
0.331173867,
-0.0790631846,
-0.0751758888,
0.3052085936,
-0.1910659224,
-0.0195989683,
0.0208483692,
0.3572911024,
-0.3503831625,
-0.1054780707,
-0.4207905233,
0.2840252221,
-0.0714091659,
0.5055630207,
-0.1008211598,
-0.0942497328,
-0.2653374672,
-0.1633041948,
-0.2888813019,
0.2955875397,
-0.1855820119,
0.0727878138,
-0.0404641964,
-0.1253949553,
0.3871290982,
0.1408926547,
0.4056631029,
0.1798727214,
-0.2594810128,
0.243628189,
-0.3418201208,
-0.3947605491,
0.2020109594,
0.1056913808,
0.0930694416,
-0.2047215104,
-0.4060965478,
0.3525589108,
0.1675456613,
-0.1555000097,
0.0279096384,
0.0757969841,
0.0057558105,
-0.1111099944,
-0.3660770059,
-0.2803848088,
-0.0008399321,
-0.0902452245,
0.1679748744,
0.0209178124,
-0.0412020087,
-0.0957903042,
0.2567304373,
-0.151237011,
-0.0587581694,
0.480835855,
-0.0936569422,
-0.1682794988,
0.508346498,
0.3387849629,
-0.2458730787,
-0.0586709082,
-0.1252747178,
-0.0354829766,
-0.4210470319,
-0.2328823805,
0.1310722083,
0.4402751029,
-0.3364322782,
0.1730742455,
0.0811142325,
-0.0190046187,
-0.0227701347,
-0.5439376831,
-0.061540354,
0.0987622887,
0.0361765027,
0.0533490516,
-0.0396459028,
0.0828386769,
0.2452264279,
-0.0835858583,
-0.3146151602,
0.0516176224,
-0.1455091983,
-0.0773601979,
0.2625419497,
0.0601497032,
0.124596715,
-0.10283719,
0.1270733029,
0.1569667011,
-0.2014985681,
-0.1962114573,
-0.0402604043,
0.1026633978,
0.0542191416,
-0.5077408552,
0.0457213968,
-0.2586626112,
0.0426404625,
0.0133411828,
-0.0356220454,
0.2997618914,
0.0585084558,
-0.1723718941,
0.0582319573,
-0.0979581773,
-0.0581174828,
0.2517308593,
-0.0372941904,
0.3661853671,
0.1096126661,
0.0470810197,
0.031360954,
-0.0597278439,
-0.2583079338,
-0.0580453202,
-0.0546780489,
0.0688666329,
0.3961093128,
-0.146588847,
0.2335756719,
0.3113302588,
0.4705087841,
0.2857411504,
-0.1449715346,
0.084119983,
0.2973069847,
0.1754376888,
-0.3279630244,
-0.0366815068,
0.239922151,
0.0673757344,
-0.1183640361,
0.0030339311,
0.0556810014,
0.0947456583,
-0.1727050543,
0.0186014436,
0.3691953123,
-0.0601460226,
0.3020561337,
0.1943980902,
-0.0641962588,
0.0268061403,
0.2465565503,
0.0851326957,
0.0064093838,
0.393915534,
-0.349190563,
0.0211285688,
-0.1223019138,
0.1646385193,
0.0509818271,
-0.3357005119,
0.0684502423,
0.1705140173,
-0.0409851968,
-0.0833802447,
-0.049314566,
0.3922656775,
-0.0923656747,
0.0527491979,
-0.3956130147,
0.3153193593,
0.1167876571,
-0.114164114,
-0.0771307424,
-0.3194997311,
-0.099348627,
0.0898852423,
-0.0683111027,
-0.3430681229,
0.0163362306,
0.0612807013,
-0.1505230665,
-0.4795590341,
0.1319544613,
-0.085096024,
0.1104673892,
-0.1193008646,
0.184834078,
0.0972968116,
0.1262243688,
0.0815603659,
0.4442241192,
0.3628687859,
0.2645368576,
0.2272173911,
0.2755540013,
-0.201624468,
-0.0028470422,
-0.0058968854,
0.1738108099,
0.3367473781,
0.1366569251,
0.3726294935,
0.1748615801,
-0.1758941412,
0.1672348082,
-0.161687851,
0.408205837,
-0.322712034,
0.4274560213,
-0.3950139582,
0.0635851175,
-0.3885420561,
0.0007793639,
-0.5760035515,
0.2408544421,
0.3682496548,
-0.0551079698,
0.0282986015,
-0.423298806,
0.0762611404,
-0.0254232697,
0.4548107088,
0.5182130933,
0.3565951288,
-0.1404853612,
-0.3263031542,
-0.8057560325,
0.2427209765,
-0.279588908,
0.1741754115,
-0.1474744976,
0.007860723,
-0.1050506607,
0.2398167998,
0.1475782096,
0.2543717921,
-0.1112859622,
0.0948128253,
-0.0176318157,
-0.180459559,
-0.0234866273,
0.1556695104,
-0.1203494817,
-0.0372145139,
0.2419958562,
-0.3993270695,
0.0491292514,
-0.0355069228,
0.0730275959,
-0.2762769759,
-0.1912792623,
0.4012409747,
0.2469209135,
0.5209873915,
0.0759193152,
-0.0872745141,
-0.4254633784,
-0.3901087344,
-0.1616862565,
0.3844792843,
0.0397968516,
0.2876715064,
0.0043068775,
-0.1280425787,
-0.2656307518,
0.4534430802,
-0.183701694,
-0.0439979024,
-0.1342782676,
-0.1269078255,
-0.1353481114,
-0.0695084035,
0.0419909097,
0.043427363,
0.0377088599,
0.0590299778,
-0.1768020391,
-0.388620019,
0.5000833869,
-0.3918817341,
-0.1674530357,
0.0254236162,
0.1383598149,
-0.0176713932,
-0.2948045731,
-0.3802294731,
0.2586956024,
0.3808040023,
0.0236042477,
-0.1434455961,
0.0639026016,
-0.3231340647,
-0.0264859255,
-0.1274125725,
0.2843325436,
0.0734907985,
-0.240044564,
0.2641965449,
0.0324604176
] |
https://github.com/huggingface/datasets/issues/3282 | ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py | Ah ok, I didn't realise about the login page. I'll try `use_auth_token=True` and see if that solves it.
Regards! | ## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)*
*The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.*
```
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
Am I the one who added this dataset ? No
Using the older version of [OSCAR](https://huggingface.co/datasets/oscar) I don't have any issues downloading languages with the dataset library. | 19 | ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)*
*The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.*
```
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
Am I the one who added this dataset ? No
Using the older version of [OSCAR](https://huggingface.co/datasets/oscar) I don't have any issues downloading languages with the dataset library.
Ah ok, I didn't realise about the login page. I'll try `use_auth_token=True` and see if that solves it.
Regards! | [
-0.1426579952,
0.1558704525,
0.0060984073,
0.3392142951,
0.2724205256,
0.1259438992,
-0.0063694865,
0.1940262616,
-0.1445149928,
0.2094283849,
-0.2114290446,
-0.1045742929,
0.2127493918,
0.0003539837,
0.1761928201,
-0.1613225639,
-0.0735768676,
-0.1723283082,
-0.0665445477,
-0.0726506263,
-0.2437771559,
0.0468154997,
-0.0527267754,
0.2419153005,
-0.1103380844,
0.0628055036,
-0.0879901424,
0.1248419955,
-0.3088071346,
-0.4200093448,
0.2564612627,
0.0710408092,
0.0663243234,
0.2381948382,
-0.0001099139,
-0.0292434283,
0.5209183097,
0.0833897144,
-0.3889164031,
-0.5973925591,
-0.0298811961,
-0.1741564721,
0.251676321,
0.030895032,
-0.1596906781,
-0.2020646781,
0.2909857631,
-0.1747125387,
0.135080874,
0.185719505,
0.2642936707,
0.1752739847,
0.4002278447,
-0.3170189261,
0.1665187925,
-0.0419937931,
-0.1010095701,
0.193335861,
0.1918206364,
0.0853468552,
0.1221676469,
0.1666827202,
0.2154127061,
-0.0940854773,
0.4747642279,
-0.1008793637,
-0.3567558229,
-0.4271945357,
0.2975762188,
0.19907628,
0.6796486974,
-0.0299577583,
-0.4646295607,
0.1472702473,
0.1338991076,
-0.0795760974,
0.4736991525,
0.2981299758,
-0.0606894158,
-0.0013070303,
-0.182672292,
-0.3463901579,
-0.343948096,
0.5416828394,
-0.1120351925,
0.2589779794,
-0.0376939103,
0.194614917,
0.2165978253,
-0.1218590662,
0.0505141206,
0.0301652569,
-0.0043818722,
0.2684003711,
-0.0627137125,
0.264752239,
-0.0557426251,
0.3592351973,
0.2194002569,
0.1044478193,
-0.0506290197,
0.2112495899,
-0.3843451142,
0.0313206427,
0.3504374623,
0.1282269359,
-0.070005618,
-0.0563918874,
0.4126917124,
0.309466809,
0.1102419198,
-0.1214647666,
-0.0997962356,
-0.3400830925,
-0.1649276614,
-0.1442171037,
0.3900933564,
-0.2699673772,
0.0616043471,
0.1003797799,
-0.2255772799,
-0.1480898559,
-0.0893240049,
0.4557421803,
-0.2500987649,
0.0686871111,
0.0305616315,
0.1907438338,
-0.1334605366,
-0.1558463573,
-0.1560449153,
0.1916093677,
-0.2711634636,
-0.1190525964,
0.1629333496,
-0.4172599316,
0.1404411048,
-0.1092694253,
0.2058040798,
-0.1701168716,
0.1836716831,
-0.0419153459,
-0.0397578329,
0.166718334,
0.2055384219,
0.4178037643,
0.065720737,
-0.2627521753,
0.0155913541,
-0.0149272447,
-0.2235048264,
-0.2401400805,
-0.2342891395,
0.1712269187,
-0.0171801914,
-0.0324052684,
-0.097073935,
-0.2013050169,
-0.1855214387,
0.0730488002,
-0.0739561915,
-0.0755740404,
-0.0004052183,
-0.2123302668,
0.2407439053,
0.5114320517,
-0.2561292052,
0.0139988428,
-0.201601848,
-0.2845815122,
-0.0466563292,
0.1912219822,
-0.276792556,
-0.0645694509,
-0.2945926189,
0.1345971525,
0.2801425457,
-0.5271686316,
-0.5403924584,
0.1749263853,
-0.1016477719,
-0.0045393882,
-0.0452522747,
0.135179922,
0.2007401735,
-0.0012246429,
-0.0463123359,
0.1220155731,
0.221570611,
-0.0852614641,
-0.0657259673,
-0.200421378,
0.0376720913,
0.2189532518,
0.1647021323,
0.0136570316,
0.2783848345,
0.0049806186,
0.3799569905,
-0.1239579469,
0.2251578122,
0.0996682793,
0.1351425201,
0.489167124,
0.0668976009,
0.0573305003,
-0.089336656,
0.1182382405,
0.0292589143,
0.4636808932,
-0.3552648127,
-0.1291736662,
-0.3622662127,
-0.0888175368,
-0.3391818404,
-0.063301757,
0.0917971805,
0.1674779058,
0.1115448773,
0.3894373178,
-0.1492939144,
0.2069070041,
0.0764919743,
0.2768449783,
-0.5142535567,
0.0994082168,
-0.1682477742,
0.1659314781,
0.1055117846,
-0.0185494889,
0.2656727135,
-0.3082679808,
-0.1576260626,
0.3220608532,
-0.0502144098,
0.3229683638,
0.0850548297,
0.0709249452,
0.4094828665,
-0.4273968637,
0.1099207625,
0.1484958231,
0.1885129213,
0.0437892005,
0.1856257915,
0.1640917212,
0.0701141506,
0.2006608248,
0.2201160789,
0.2539493144,
0.4390584826,
0.1340614259,
-0.1533952653,
-0.0351908132,
0.2800712585,
-0.053871505,
0.2288251221,
-0.3223937154,
-0.3359994292,
0.0001393761,
0.1727751493,
-0.0946430862,
-0.0417837054,
0.2228862345,
-0.291936487,
0.1159746721,
0.1470442265,
0.2446125299,
0.1220350042,
0.0647739843,
0.0381596349,
0.3802866042,
-0.0631827414,
-0.3046350479,
0.1787009984,
0.0222810339,
-0.1093918458,
-0.0868549719,
-0.0045938576,
-0.0907620564,
-0.3596237004,
0.0786580741,
-0.2090320438,
0.2652602196,
-0.2834216356,
0.0253339168,
-0.3236964941,
-0.5549079776,
-0.12827833,
-0.2587188482,
-0.3667633235,
-0.4716669917,
-0.199081704,
0.2129579335,
0.0010952692,
0.0430764034,
-0.303556174,
0.0255416725,
-0.1155347303,
0.1017437801,
-0.1069768742,
-0.1666284651,
-0.1623939723,
0.084953323,
0.2841728032,
0.0504961647,
0.3274034858,
-0.2320939153,
0.1414064467,
-0.4280903637,
-0.2585859895,
0.1104033142,
-0.001417787,
0.1184027418,
0.1160943285,
0.3185743093,
0.007492322,
-0.1616095752,
0.359918803,
-0.0397554189,
-0.1039865464,
-0.153184697,
0.0511822999,
-0.0478066131,
0.052787032,
-0.5101013184,
-0.3066567183,
-0.2633396983,
0.3358567655,
0.1852743924,
0.2290141433,
0.05044543,
-0.1327346563,
0.2589995265,
-0.2343083024,
0.142428875,
-0.323212117,
-0.218100965,
0.3821176887,
-0.3514837921,
-0.608412087,
0.4241508245,
0.1369228959,
0.2261755764,
-0.088532947,
-0.4297254682,
-0.3331388831,
-0.1811380535,
-0.0792054385,
0.0319264233,
0.0875473395,
0.2444503903,
-0.2791546583,
-0.0636888668,
0.1463400722,
-0.1846924722,
-0.1403798312,
-0.2090505064,
0.3378816545,
-0.1578998417,
0.3981998563,
-0.0570848882,
0.4537929595,
0.1372724771,
0.3040838838,
0.4874171019,
0.0346875638,
0.2897945642,
-0.2126445025,
-0.5094738007,
0.1383038759,
-0.191186443,
0.1245931834,
0.2039818317,
0.1921006441,
-0.0855158493,
-0.4341150224,
-0.3085100353,
-0.321968317,
-0.3169077337,
-0.1823267192,
0.0423973314,
0.0526200794,
0.2444624454,
0.2185754925,
-0.0194816384,
-0.3101737797,
0.0541888885,
0.5416945219,
0.1189879999,
0.0925793946,
-0.2769885063,
0.0312625468,
-0.5411680341,
0.443310231,
-0.0604256503,
0.2926097512,
-0.1884988695,
0.1062982902,
0.306879282,
-0.0546273738,
0.6967259645,
-0.2692339122,
-0.0005032262,
0.0008554496,
-0.1198098436,
-0.2806194127,
0.0536128432,
-0.0935668349,
0.1760162711,
0.329575628,
0.2037200928,
-0.2358027995,
0.0825640112,
0.0891622156,
-0.0429202616,
-0.1627482176,
-0.0196089968,
-0.1778291464,
-0.5895584822,
-0.3818704784,
-0.1256706864,
-0.1666635871,
0.3005024493,
0.2403243035,
-0.0484530814,
-0.0111166826,
-0.0226855911,
0.2375828922,
0.112079747,
-0.0605000071,
0.2620759606,
0.1398007721,
0.4807410836,
0.3525260091,
0.1407672614,
0.4834395647,
0.045650389,
-0.534673214,
-0.0930715874,
-0.1646064073,
0.1595961601,
0.3004734516,
-0.0428245887,
0.1309925318,
0.2624962032,
-0.0330984369,
-0.228848666,
0.119616732,
0.35019207,
0.1760290563,
-0.5311895609,
-0.5720811486,
0.1478510499,
-0.1369158477,
-0.1286240965,
0.2129907012,
0.4605544209,
-0.2392931134,
0.1459993273,
-0.2060374618,
1.0870058537,
-0.21739842,
0.0453976914,
-0.0575395934,
-0.1439448297,
0.6532504559,
0.00747792,
0.1238757744,
-0.3449160159,
-0.2248337865,
-0.2094384432,
-0.1484735459,
0.3304561973,
-0.1236231625,
-0.0916854143,
0.2830326557,
-0.1159008965,
0.0164360218,
-0.0394842736,
0.4840394855,
-0.2907786965,
-0.0427212752,
-0.2715913653,
0.244245708,
-0.0743517056,
0.507383883,
-0.0792503431,
-0.1953285933,
-0.3099106848,
-0.1980374157,
-0.2274867594,
0.2533027232,
-0.2209557891,
0.0614201799,
0.0070829703,
-0.1558320671,
0.3595385253,
0.0770708993,
0.4290902019,
0.1758618653,
-0.286732316,
0.2684000134,
-0.2440790534,
-0.4134089649,
0.1999771893,
0.1210090071,
0.1202677339,
-0.2287448049,
-0.3740220666,
0.3365308046,
0.1320706457,
-0.2685530484,
-0.0435179435,
0.064019002,
-0.0331122987,
-0.1156529188,
-0.3062665462,
-0.2108107358,
-0.09595263,
-0.1104992926,
0.142463997,
0.010812318,
-0.0410261229,
-0.1210777313,
0.3727418184,
-0.1075372472,
-0.0665517673,
0.4802022874,
-0.0631454885,
-0.1952745616,
0.5202473998,
0.2996325493,
-0.2178530395,
-0.0394977704,
-0.1326398402,
-0.0412698463,
-0.4034323692,
-0.2701365054,
0.112176694,
0.3536946476,
-0.2518192232,
0.1592339128,
0.0966964662,
0.0611611307,
0.0272650514,
-0.4566659927,
-0.08146853,
0.0320475809,
0.0483070016,
0.0990270972,
-0.0206078999,
0.1553637087,
0.2903241217,
-0.0712361485,
-0.2938938141,
0.0686528385,
-0.11009413,
-0.0953398868,
0.3282850981,
0.0726867318,
0.1351456046,
-0.100197807,
0.0920546576,
0.1304195225,
-0.300554961,
-0.1440053433,
-0.0738400891,
0.1123490036,
0.0891682655,
-0.5222026706,
0.0321251489,
-0.2427207083,
0.1072685942,
0.0727847368,
-0.0225585047,
0.2558439076,
-0.0026604705,
-0.2419984341,
0.0517316461,
-0.1040949598,
-0.0193425845,
0.2182451785,
0.0615230426,
0.4552663863,
0.0846668929,
0.0222631209,
-0.1612791419,
-0.07268437,
-0.1888750941,
-0.0600496233,
-0.0595837682,
0.0882455185,
0.3522054553,
-0.1442857087,
0.1630152017,
0.2429431528,
0.4300907254,
0.3109149337,
-0.2058712691,
0.132451117,
0.276186496,
0.1299904287,
-0.2620143592,
-0.0106679164,
0.2380569279,
0.0588336214,
-0.1528038681,
-0.0467019975,
0.0962883681,
0.0401279852,
-0.0731221065,
0.0245935284,
0.3203198314,
-0.1239904985,
0.2710296214,
0.042453751,
-0.3031833768,
-0.0354126468,
0.3068077862,
0.0433879234,
-0.050837364,
0.3909874856,
-0.3085221946,
-0.0046174284,
-0.1548956931,
0.2224063873,
0.0559806786,
-0.2362121195,
0.0564674996,
0.2003111392,
-0.0277405493,
-0.0686773732,
-0.0113113252,
0.4832143784,
-0.0904920921,
0.0033880586,
-0.4195866287,
0.3559606671,
0.0900614634,
-0.0893198177,
-0.027081117,
-0.340126574,
-0.0688811615,
0.0881488994,
-0.0948970243,
-0.4113791585,
-0.0154073955,
0.0960346386,
-0.1322018951,
-0.420486331,
0.1579636633,
-0.2569256127,
0.1604154408,
-0.106696099,
0.1941513419,
0.0945906565,
0.1241528392,
0.165505901,
0.3939618766,
0.3633102477,
0.2968070209,
0.2680906057,
0.2724123597,
-0.2060095072,
0.0433434658,
0.0537846759,
0.1880459189,
0.4151664674,
0.1425001472,
0.4078653157,
0.1222815663,
-0.1695597172,
0.2099619508,
-0.1587672383,
0.3979087174,
-0.2815395594,
0.3838862479,
-0.4261696637,
0.0665475354,
-0.4638000727,
-0.0468412712,
-0.6553524137,
0.2270144224,
0.2926934063,
-0.0328730643,
0.0443163328,
-0.4629852772,
0.0603717789,
-0.031892404,
0.5121111274,
0.4413842857,
0.2799349725,
-0.0826106593,
-0.350218147,
-0.8646225333,
0.2586250901,
-0.244981274,
0.1599661559,
-0.1774107367,
0.1234537736,
-0.0443224534,
0.2011204213,
0.2108839452,
0.2246767282,
-0.1243363693,
-0.0145649388,
-0.0013451584,
-0.0827983469,
0.0530764423,
0.1668205112,
-0.1041758507,
0.019349888,
0.3420328796,
-0.3745065331,
0.0244342927,
0.04823374,
0.1002003551,
-0.2633819282,
-0.1232608855,
0.4496952891,
0.2356955856,
0.5508692861,
0.1107978225,
-0.1127788052,
-0.3748799562,
-0.4284240007,
-0.1264220029,
0.3948406875,
0.0998969451,
0.3528148532,
0.087472558,
-0.1515470445,
-0.2221262604,
0.5140669346,
-0.2176371813,
-0.0905601531,
-0.14077048,
-0.0872658715,
-0.1190304756,
-0.0970522761,
0.0378896482,
0.0494024977,
0.0579611249,
-0.0301308092,
-0.243097201,
-0.3975869119,
0.5144389868,
-0.4344240129,
-0.1177504808,
0.0242301915,
0.1438241899,
0.0261011403,
-0.3029159307,
-0.3945886493,
0.2370141298,
0.2754211426,
0.0243092198,
-0.099030152,
0.0764091536,
-0.375461936,
-0.0165300462,
-0.152270481,
0.2555274069,
0.1846347302,
-0.2524824739,
0.1620371044,
0.0062273946
] |
https://github.com/huggingface/datasets/issues/3282 | ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py | Hi,
Using `use_auth_token=True` and downloading the credentials with `huggingface-cli login` (stored in .huggingface/token) solved the issue.
Should I leave the issue open until you fix the Dataset viewer issue? | ## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)*
*The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.*
```
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
Am I the one who added this dataset ? No
Using the older version of [OSCAR](https://huggingface.co/datasets/oscar) I don't have any issues downloading languages with the dataset library. | 29 | ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)*
*The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.*
```
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
Am I the one who added this dataset ? No
Using the older version of [OSCAR](https://huggingface.co/datasets/oscar) I don't have any issues downloading languages with the dataset library.
Hi,
Using `use_auth_token=True` and downloading the credentials with `huggingface-cli login` (stored in .huggingface/token) solved the issue.
Should I leave the issue open until you fix the Dataset viewer issue? | [
-0.1648682505,
0.1433244199,
0.0291342679,
0.3350146711,
0.2738420069,
0.074923791,
-0.0048634904,
0.1728971153,
-0.1965863854,
0.1607672423,
-0.2475940883,
-0.066174306,
0.0811842307,
0.0479792878,
0.1127685681,
-0.1378087401,
-0.0630305409,
-0.150430575,
-0.0512395576,
-0.0639648438,
-0.2606895268,
0.1049294323,
0.0775365159,
0.2319314182,
-0.1920364946,
-0.04876047,
-0.0160140656,
0.0920426771,
-0.3150018454,
-0.4188500643,
0.3254651427,
0.0952018276,
0.0847479478,
0.2827449739,
-0.000111393,
0.0213918872,
0.482018292,
0.0182661414,
-0.4163564444,
-0.5646926761,
0.0629136637,
-0.1423283368,
0.1999111623,
0.0616933405,
-0.1711205542,
-0.1302493513,
0.2096138597,
-0.2390469164,
0.1486417651,
0.1638735384,
0.2620609999,
0.2970890403,
0.4424206018,
-0.2402565777,
0.0660263598,
-0.0278595518,
-0.1177857369,
0.298856467,
0.1977043897,
0.1660830975,
0.05109993,
0.2248273045,
0.2431871295,
-0.1086459681,
0.4299421012,
-0.1444196105,
-0.3956691027,
-0.3789057732,
0.2582374811,
0.1838951707,
0.589125514,
-0.1021212339,
-0.5237857699,
0.043299377,
0.1704943776,
-0.0915138796,
0.4428963661,
0.269128412,
-0.0693952963,
0.0183862597,
-0.1929962784,
-0.3573025167,
-0.2812395096,
0.4102179408,
-0.1340914071,
0.1731860787,
-0.1093138978,
0.1661272347,
0.2565062046,
-0.1814713627,
-0.0526818596,
0.0150123332,
-0.024562249,
0.2357646227,
-0.0509742759,
0.2536646128,
0.0364054479,
0.4300182462,
0.1778437942,
0.0742613077,
-0.0849234462,
0.181888476,
-0.3433171809,
0.0361674279,
0.3593756557,
0.0639170408,
-0.0379125029,
-0.0684417188,
0.3963212669,
0.3541397452,
0.1739617139,
-0.1359797418,
-0.0653795451,
-0.263733983,
-0.2566167414,
-0.2029313892,
0.3955720663,
-0.2229737937,
-0.0703076795,
0.1011715606,
-0.2426472157,
-0.1286514401,
-0.0032868152,
0.4331557751,
-0.2515622675,
0.1249631196,
0.0209779106,
0.2003928423,
-0.1402843148,
-0.1055205688,
-0.1681614965,
0.1077100113,
-0.1562542468,
-0.0732609183,
0.1581323296,
-0.520247221,
0.130214259,
-0.1410982907,
0.2747986913,
-0.0853319839,
0.0253732,
-0.1109705046,
-0.1175156832,
0.135668993,
0.127894938,
0.4154250324,
0.0484782457,
-0.304825455,
-0.0221463814,
-0.1340859979,
-0.1579249948,
-0.2419449389,
-0.1772806793,
0.1835124195,
-0.1052708998,
0.0505564921,
-0.1933357269,
-0.1158524677,
-0.2452075183,
0.0524519831,
-0.0804943517,
-0.0147239538,
-0.094207257,
-0.195319593,
0.3287205994,
0.541390717,
-0.228070125,
-0.0735982656,
-0.1545089483,
-0.272624284,
-0.1404055953,
0.214254871,
-0.3014264703,
-0.024151586,
-0.3289578855,
0.0972642377,
0.1634201854,
-0.5110564232,
-0.5605504513,
0.1198499948,
-0.0942698717,
0.1299545318,
-0.0422298908,
0.0560756288,
0.2056978792,
-0.0923218131,
0.014588872,
0.0799280927,
0.1618836969,
-0.0954704508,
-0.1197212338,
-0.270976603,
-0.0339863747,
0.192076087,
0.1689329892,
-0.0296092629,
0.1959728599,
0.034833461,
0.3289231062,
-0.0548351668,
0.2571034729,
0.0724709705,
0.1943337917,
0.5006563067,
-0.0227250755,
-0.0636665896,
-0.2460807115,
0.1789493263,
0.0314435661,
0.3865859807,
-0.4239178598,
-0.1686967909,
-0.294808656,
-0.0511887297,
-0.3298170269,
-0.0533018,
0.1088370085,
0.1261514723,
0.140655905,
0.4854876697,
-0.1768909991,
0.2256996334,
0.102349706,
0.265280962,
-0.533207655,
0.1512330025,
-0.1307079643,
0.1265870929,
0.1184342504,
0.0518193655,
0.15667063,
-0.3374657333,
-0.1054838598,
0.3403727114,
-0.1075418442,
0.3886388242,
-0.0329752341,
0.0658948496,
0.4032430351,
-0.3652529716,
0.0743091479,
0.1194775626,
0.1768292487,
0.0560138598,
0.1215042993,
0.2094953358,
0.0639379323,
0.1965590864,
0.2126535177,
0.2024213821,
0.3590584397,
0.1498665959,
-0.2471624911,
-0.0817118585,
0.2315030843,
-0.0910442919,
0.2907904983,
-0.2016970366,
-0.3573431671,
-0.0615453795,
0.2457262725,
-0.0093013309,
-0.1367067248,
0.2730892301,
-0.2404754609,
0.1842944622,
0.1136497334,
0.1854681224,
0.1792413294,
0.0677397847,
-0.0365546159,
0.2788805664,
-0.0027006574,
-0.2560556233,
0.1319420785,
0.1012535244,
-0.0470340028,
-0.0443529338,
0.0117605133,
-0.0714909509,
-0.3670045435,
0.062292859,
-0.2273091376,
0.2873935997,
-0.2950815856,
0.0524021313,
-0.3244498968,
-0.52840662,
-0.1895984709,
-0.324827522,
-0.4328797162,
-0.3448531628,
-0.2005724013,
0.2038097084,
-0.0174270719,
0.0689126998,
-0.2604406178,
0.0276769716,
-0.1879905015,
0.1026783958,
-0.1437751353,
-0.1602578014,
-0.1744538993,
0.0850466862,
0.3098974228,
-0.0226446912,
0.4051018357,
-0.2517157495,
0.0962350592,
-0.3601127863,
-0.2911450565,
0.0663735271,
0.0347979069,
0.1243555918,
0.1953639388,
0.282122165,
-0.0836772099,
-0.2490983307,
0.4150029123,
-0.0329315886,
-0.1018270552,
-0.205519259,
0.069586426,
0.0299716238,
0.0890866295,
-0.401009798,
-0.3569521904,
-0.3483041525,
0.4968689978,
0.1176531538,
0.1508711427,
0.0544916429,
-0.1268782765,
0.2905275822,
-0.2951737344,
0.1024098843,
-0.272483319,
-0.2414036095,
0.3005031347,
-0.2692344189,
-0.5744299889,
0.3569946587,
0.1341262311,
0.256046325,
-0.0934820548,
-0.3751749694,
-0.2904053628,
-0.1713011712,
0.0619405583,
0.073330909,
0.0434214026,
0.2663613558,
-0.1995154768,
-0.0241616275,
0.1544013619,
-0.1280868798,
-0.0804488063,
-0.2449533045,
0.3054355979,
-0.0863480419,
0.3958966136,
-0.0426121652,
0.472537607,
0.1841079742,
0.1671895981,
0.4509142339,
0.0675524175,
0.3779690266,
-0.1688826382,
-0.5807822943,
0.1957685202,
-0.1397454292,
0.1532164812,
0.2312429696,
0.1666764021,
0.080437094,
-0.4232071936,
-0.2784768939,
-0.2693555057,
-0.3948411345,
-0.146205321,
0.0316063166,
0.1011690274,
0.2071918994,
0.1624240875,
0.0407253727,
-0.2452923954,
0.007550918,
0.5038944483,
0.134509787,
0.1400942355,
-0.2595255673,
0.0314326808,
-0.5529125929,
0.3652147055,
-0.0032449239,
0.3164381087,
-0.1362880468,
0.0888662264,
0.2612543106,
-0.0742370412,
0.677665472,
-0.1403195262,
-0.0393337421,
-0.0334548429,
-0.1072077826,
-0.356035769,
0.066746287,
-0.0557076782,
0.1752331853,
0.3612098098,
0.3590789139,
-0.3006411791,
0.029564565,
0.0772897303,
-0.0009572358,
-0.1662408262,
-0.0548614487,
-0.248269856,
-0.5621879697,
-0.3612450063,
-0.0540092178,
-0.0945478827,
0.3179280162,
0.2463694364,
0.0256827176,
-0.0199629758,
-0.0542160682,
0.2498359978,
0.0427213348,
-0.0065390789,
0.2764154077,
0.233950004,
0.5212615132,
0.3816525638,
0.2780670226,
0.5176005363,
0.0353924297,
-0.5716007352,
-0.1172394678,
-0.0324578024,
0.1751898825,
0.3358952701,
-0.0559502952,
0.1642017663,
0.2584610879,
0.0278189071,
-0.2722781599,
0.1223235428,
0.348872304,
0.1523320526,
-0.5117809176,
-0.4505417049,
0.1813017428,
-0.074278377,
-0.0661315545,
0.1404931843,
0.485923171,
-0.2489338219,
0.0856114998,
-0.1402250379,
1.0341752768,
-0.1703871042,
0.0570103563,
-0.0123086656,
-0.1666054875,
0.759010613,
-0.0236072615,
0.0376618393,
-0.2263227403,
-0.227452606,
-0.1655137837,
-0.0675290525,
0.3711971343,
-0.1817079335,
-0.0786572322,
0.2388757616,
-0.0630563349,
0.0191913694,
0.0063370671,
0.4314370453,
-0.3705942631,
-0.1414156705,
-0.3232073188,
0.2340749502,
-0.1258833408,
0.5126872063,
-0.0412854441,
-0.1883066893,
-0.2406067103,
-0.2344083786,
-0.2375843823,
0.1493562758,
-0.3146247864,
0.0224657152,
0.0268191006,
-0.1874881238,
0.3824214637,
0.0985643566,
0.3533399999,
0.1332750171,
-0.2754126787,
0.2880635858,
-0.249685958,
-0.3835186362,
0.2110583037,
0.0860756636,
0.1418720037,
-0.1656183451,
-0.276932627,
0.2772887051,
0.1158336326,
-0.1258101016,
-0.0821071044,
0.0158771593,
-0.016749654,
-0.1298579127,
-0.3028981388,
-0.2209511697,
-0.024728572,
-0.1102485955,
0.1430483758,
0.0329621993,
-0.0765499249,
-0.099550426,
0.2127725333,
-0.0458366722,
-0.1155873165,
0.54501158,
-0.0963817239,
-0.2174322754,
0.4796567261,
0.2900699377,
-0.2047101408,
-0.0106794201,
-0.117513679,
0.0263305586,
-0.5404434204,
-0.2250625193,
0.2394955158,
0.3284315765,
-0.2899576426,
0.2095126361,
0.1124419942,
-0.0864259377,
0.0461814515,
-0.3929322958,
-0.1746320873,
0.1132929772,
0.1306092143,
0.0748403594,
-0.0222357605,
0.2201452404,
0.2217718065,
-0.0243902747,
-0.2933351696,
0.0629668534,
-0.1479241103,
-0.1397109777,
0.3103699088,
0.022433335,
0.1954005957,
-0.1238295734,
0.0921672136,
0.2074043751,
-0.2528024316,
-0.1401382089,
-0.1419744492,
0.1011043116,
0.0582724549,
-0.4569299519,
0.1037411988,
-0.1409081668,
0.1497025639,
0.0611968488,
-0.0410255007,
0.3194541335,
0.0294504184,
-0.2329607308,
-0.0145181688,
-0.0653967783,
0.0530008823,
0.1880033016,
0.0789135545,
0.4356103539,
0.1155325249,
0.078963764,
-0.1573030055,
-0.0472279936,
-0.1455011815,
-0.0132614514,
-0.1095516831,
0.0506804287,
0.3181723356,
-0.1671923995,
0.1160271615,
0.2273861468,
0.525349915,
0.30893749,
-0.1713289618,
0.0484385788,
0.3962551951,
0.1423187256,
-0.3074449599,
-0.0049548824,
0.213005349,
0.0095178979,
-0.1199988499,
0.0022843308,
0.0570305027,
0.019210428,
-0.0371521339,
0.0235168748,
0.3894901872,
-0.0570484102,
0.3152111769,
0.0725074261,
-0.1843591183,
-0.0100056306,
0.3322509527,
0.1044544801,
0.091499202,
0.2825491428,
-0.37905249,
0.0128393127,
-0.278886497,
0.2749978006,
0.0828545913,
-0.3424516022,
0.0161618609,
0.2075745612,
-0.1031674594,
-0.008081492,
-0.0683921948,
0.6271146536,
-0.1702362299,
-0.084211655,
-0.3662063181,
0.4105288386,
0.0177472513,
-0.1056977808,
0.0160863679,
-0.2999867797,
-0.1085561737,
0.1314767599,
-0.0985020995,
-0.3913338482,
0.0094726151,
0.1273334473,
-0.0869689956,
-0.4630663693,
0.0300553776,
-0.2331489474,
0.226912573,
-0.1204008982,
0.2709854245,
0.1668312103,
0.0548106097,
0.1268181801,
0.4312552214,
0.3864715397,
0.2423293591,
0.3937190473,
0.3510099351,
-0.2336463034,
0.1165851355,
-0.0189206395,
0.1968515068,
0.358479619,
0.120618619,
0.4089505374,
0.1516290605,
-0.1967172474,
0.1207292974,
-0.2413966209,
0.3921582699,
-0.3245767951,
0.3602997065,
-0.517144084,
0.0717583448,
-0.4630167186,
-0.0451789871,
-0.5943783522,
0.25215289,
0.1769328266,
-0.0011836481,
0.0518123955,
-0.4338468611,
0.0603272729,
0.0282132477,
0.4808441699,
0.3991785944,
0.2416639626,
-0.11494039,
-0.4070919752,
-0.839381218,
0.1771040708,
-0.2000053078,
0.1794799864,
-0.1653338075,
0.1201291159,
-0.0381161459,
0.1127617583,
0.1230528578,
0.2048823088,
-0.0985667408,
-0.0696588978,
0.026627196,
-0.037156608,
-0.0351832137,
0.0849685296,
-0.0174840521,
0.0706766769,
0.2741047144,
-0.302870214,
0.0161573794,
-0.0613235384,
0.1372012347,
-0.305748105,
-0.238546595,
0.3014313579,
0.2496522665,
0.4558780789,
0.1273879558,
-0.1454794109,
-0.3733376563,
-0.3341653049,
-0.1806843728,
0.3709539473,
0.0757139549,
0.4197471738,
-0.0017335709,
-0.1812904179,
-0.3482564986,
0.4264791608,
-0.1331619769,
-0.0766351596,
-0.1514968276,
-0.0131285461,
-0.1196739972,
-0.1259957701,
0.0894841254,
0.2169825286,
0.0298500508,
-0.0134350862,
-0.2746106386,
-0.4000537694,
0.5648266077,
-0.3957749009,
-0.0445439257,
0.0821224824,
0.2035097927,
0.0708743036,
-0.3798574805,
-0.4390830696,
0.2272935957,
0.2930642664,
0.0788353607,
-0.1140683368,
0.0964612514,
-0.3941777647,
-0.1113791466,
-0.1483732313,
0.2289704084,
0.1763602495,
-0.2360809743,
0.3320279121,
0.0663044229
] |
https://github.com/huggingface/datasets/issues/3282 | ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py | Cool ! Yes let's keep this issue open until the viewer is fixed - I'll close it when this is fixed. Thanks | ## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)*
*The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.*
```
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
Am I the one who added this dataset ? No
Using the older version of [OSCAR](https://huggingface.co/datasets/oscar) I don't have any issues downloading languages with the dataset library. | 22 | ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)*
*The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.*
```
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
Am I the one who added this dataset ? No
Using the older version of [OSCAR](https://huggingface.co/datasets/oscar) I don't have any issues downloading languages with the dataset library.
Cool ! Yes let's keep this issue open until the viewer is fixed - I'll close it when this is fixed. Thanks | [
-0.229873836,
0.2996897995,
0.0159762148,
0.3480393291,
0.2428966463,
0.0843781531,
0.0289748609,
0.2151712775,
-0.1925186664,
0.1596948057,
-0.2004184127,
-0.04559879,
0.0961814597,
-0.0956305414,
0.0457461104,
-0.1347217262,
-0.0746337026,
-0.0802199244,
0.0109409932,
-0.0307846032,
-0.3309085071,
0.0190729108,
0.0264013391,
0.1898508221,
-0.1415975243,
-0.0024222829,
-0.0332416072,
-0.0317968875,
-0.3335892558,
-0.4994385242,
0.2556449473,
0.1001762003,
0.0713794678,
0.3133492768,
-0.000114235,
-0.0024442179,
0.5902072191,
0.0585046969,
-0.3949886858,
-0.5379757285,
0.000106118,
-0.1511710286,
0.231807217,
0.0361642726,
-0.0230170805,
-0.1827928722,
0.2449374497,
-0.2556039691,
0.0441403277,
0.0928488895,
0.24528265,
0.1593262106,
0.480545193,
-0.2739221454,
0.1688618511,
-0.0716562793,
-0.1480237097,
0.3112684488,
0.1860910356,
0.1541009992,
-0.0023199299,
0.2536829412,
0.1597193778,
-0.1254212707,
0.4019662142,
-0.1866609901,
-0.3489052057,
-0.3790023923,
0.2711660564,
0.1764309555,
0.782745719,
-0.0749663413,
-0.5295535326,
0.0869783685,
0.1829091012,
-0.0347933434,
0.4602308273,
0.344966948,
-0.0739648938,
0.0632544905,
-0.0966624692,
-0.4122805595,
-0.2963726819,
0.4830144942,
-0.2478577644,
0.2111052424,
-0.1058859229,
0.1706065536,
0.246601373,
-0.0315437578,
0.1761506498,
-0.0914612338,
0.0048046117,
0.1260885447,
-0.0610688441,
0.2419226766,
-0.0180106983,
0.3624856174,
0.0970338732,
0.022740474,
-0.0540759973,
0.1294177622,
-0.3970662653,
0.0786775649,
0.4425961971,
0.0277093928,
-0.1189465448,
-0.0337577313,
0.4811338484,
0.3868339956,
0.1491965652,
-0.1156435236,
-0.0798190162,
-0.3584302366,
-0.2400615066,
-0.1581088156,
0.5349321365,
-0.1813723743,
-0.1162184551,
0.10879419,
-0.2916100919,
-0.1362820119,
-0.027403377,
0.3910420537,
-0.304987669,
0.2576602697,
-0.0204776954,
0.1822949648,
-0.0843116567,
-0.1671700925,
-0.1410032064,
0.112572901,
-0.1958552748,
-0.1458218694,
0.1423449218,
-0.4720422029,
0.0342335142,
-0.1146540716,
0.2350501567,
-0.1282934844,
-0.00133471,
-0.1956865788,
-0.1687626094,
0.205084458,
0.1475643218,
0.4707226455,
0.0762192905,
-0.3385761976,
0.0200677253,
0.0948884636,
-0.1789735556,
-0.1761453897,
-0.2293180823,
0.1601922661,
-0.1160965264,
0.0063548135,
-0.141384691,
-0.1167230308,
-0.1953811795,
-0.0544835143,
-0.052862037,
-0.0422725752,
-0.0538645051,
-0.2697581351,
0.2780174315,
0.5737354755,
-0.4303102195,
0.0481966622,
-0.2930598855,
-0.249043569,
-0.0953379199,
0.1703754663,
-0.2750427127,
-0.0231069215,
-0.3633948267,
-0.0040177056,
0.3504535854,
-0.4137137532,
-0.6100947857,
0.2769261003,
-0.1028729752,
0.1056129932,
-0.0046198368,
0.1128519103,
0.1893274933,
-0.1758651286,
-0.067783609,
-0.0145006925,
0.0849080831,
-0.1552447975,
-0.0951095,
-0.2506187558,
0.0088326698,
0.1377208233,
0.1832074225,
0.0703220814,
0.229351297,
0.0483995341,
0.3863137066,
-0.0138913728,
0.3011806607,
0.0596945398,
0.2079658657,
0.4459072053,
0.0142934024,
-0.0650165603,
-0.2222707719,
0.1323155165,
0.0450819694,
0.2480804026,
-0.44214046,
-0.1549326926,
-0.367906034,
-0.0146227898,
-0.3030090332,
0.0011282822,
0.083315976,
0.1101338938,
-0.0796721727,
0.4337311983,
-0.1911395043,
0.112313956,
0.1220109984,
0.2302696556,
-0.4320511222,
0.1930647343,
-0.1497541815,
0.1702524871,
0.1020202935,
-0.0213247593,
0.1584688574,
-0.2534424067,
-0.1866255254,
0.3259758353,
-0.0055883219,
0.424167335,
0.0524661988,
0.0903124288,
0.3939425051,
-0.4461975396,
0.1471377164,
0.2177413702,
0.1981220394,
0.0223090369,
0.1740836501,
0.1357349902,
0.0480480902,
0.177725181,
0.1676747203,
0.2750812769,
0.3247307241,
0.1291669756,
-0.2120862454,
-0.0665141344,
0.2800679505,
0.0043928982,
0.2415408939,
-0.1920401305,
-0.3815712929,
-0.0298312735,
0.2416715771,
-0.0348476693,
-0.0620619729,
0.3564066291,
-0.2237990648,
0.1400135905,
0.0047086249,
0.2431884259,
0.17367661,
0.0483180098,
-0.0122870291,
0.3337803781,
0.020794671,
-0.3311941326,
0.1385885626,
0.2239212692,
0.0236389022,
0.0283532627,
-0.0003627848,
-0.0073172553,
-0.315852344,
0.0369077213,
-0.1662097722,
0.2568275034,
-0.2655580342,
0.0659251884,
-0.3369620144,
-0.5760099888,
-0.2453426272,
-0.2708000839,
-0.3468822837,
-0.4530677795,
-0.2076205164,
0.2880376577,
0.0124351066,
0.123261489,
-0.4658850133,
0.0824341774,
-0.187607035,
0.1517980099,
-0.134686172,
-0.2102778554,
-0.2040730715,
0.1001464725,
0.3019149601,
-0.1046403572,
0.3230872452,
-0.1504740417,
0.170093894,
-0.3949618936,
-0.2683958411,
0.0396355987,
0.1091021448,
0.1169107184,
0.251317054,
0.2735123038,
-0.0496766046,
-0.233420372,
0.3328442872,
-0.0249563064,
-0.0152824009,
-0.2255001366,
0.045531176,
0.0763457492,
0.1926183254,
-0.4399909675,
-0.3111250401,
-0.3987300992,
0.3509677947,
0.0363384262,
0.177180931,
-0.0410162769,
-0.1389438659,
0.1653312445,
-0.1535327286,
0.0197792947,
-0.2172438502,
-0.1484054774,
0.358803153,
-0.2915963531,
-0.5922044516,
0.3649148643,
0.0981984288,
0.1955281347,
-0.0963243693,
-0.4827670753,
-0.2340157926,
-0.11947456,
-0.0825555176,
0.1086976677,
-0.0253642928,
0.1528972238,
-0.1199377328,
-0.0326636806,
0.1164937764,
-0.0801121145,
-0.1925843954,
-0.2677548528,
0.3589242995,
-0.0354129449,
0.4343388081,
0.0076778876,
0.3766164184,
0.2034998685,
0.276750505,
0.5129263997,
0.0934119225,
0.3596449196,
-0.1912159175,
-0.5392754674,
0.1764731258,
-0.2576503158,
0.0666597858,
0.1839447767,
0.1064921841,
-0.1003628075,
-0.4389871061,
-0.2652626336,
-0.2773421109,
-0.3466956317,
-0.1182351112,
-0.0729220584,
0.099718757,
0.1974626184,
0.1351397336,
0.0742616877,
-0.2984588146,
0.0001019433,
0.4808004498,
0.2173208296,
0.0711866543,
-0.1845955253,
0.0718629882,
-0.4725922048,
0.4443209469,
-0.020515902,
0.3676881492,
-0.1126108021,
0.1788492948,
0.2795007527,
-0.0503296256,
0.8032036424,
-0.1711034179,
-0.0410804674,
0.0404978245,
0.0145253362,
-0.3354417682,
0.0553367399,
-0.0114484634,
0.2240329236,
0.2730060816,
0.1988808662,
-0.2019383758,
0.0819120854,
0.1819558293,
0.0289572142,
-0.2099181712,
-0.1513051391,
-0.204285562,
-0.4750510156,
-0.2919895053,
-0.1657134593,
-0.1061731502,
0.2860941291,
0.2178961039,
-0.0406098887,
-0.0349839889,
-0.0791370273,
0.1985184252,
-0.0699311793,
-0.054660026,
0.25312832,
0.1908755153,
0.5214025378,
0.38620314,
0.2551926076,
0.4625564814,
0.0017729386,
-0.6327350736,
-0.0158337206,
-0.0414677709,
0.1628111899,
0.3265703022,
-0.0610346235,
0.0640770867,
0.2948274612,
-0.0893483907,
-0.2535723746,
0.0818205103,
0.4198293388,
0.0527966879,
-0.6063325405,
-0.6154417992,
0.2778881192,
-0.0672729462,
-0.1125928909,
0.2476076931,
0.3734563291,
-0.1617936045,
0.0954187214,
-0.1841797233,
1.1131260395,
-0.1102509573,
0.0037549995,
-0.0303455796,
-0.245351553,
0.7026160359,
-0.0584070608,
0.0836051404,
-0.2956252992,
-0.316488117,
-0.252528578,
-0.1240596175,
0.4344369769,
-0.1457420439,
-0.1029111445,
0.293168515,
-0.1702426821,
0.0292914957,
0.1016817838,
0.3533729315,
-0.3073527515,
-0.0674791932,
-0.2622269988,
0.1897908002,
-0.1231797189,
0.4940406382,
-0.113270022,
-0.1779832393,
-0.17526187,
-0.2539745271,
-0.2935875058,
0.2297760248,
-0.2182714641,
0.0734373629,
-0.0330910087,
-0.20816347,
0.4366443455,
0.1291786879,
0.2842382789,
0.0947005674,
-0.1772042364,
0.4128146768,
-0.1889553368,
-0.320907712,
0.292321831,
0.1126544252,
0.1046382412,
-0.1614483446,
-0.3133452237,
0.3954047561,
0.1129694656,
-0.1815427542,
0.0076854215,
-0.0100294547,
0.0356675051,
-0.1191234961,
-0.2612527013,
-0.3014913201,
-0.016419623,
-0.160855934,
0.116325438,
0.0393466689,
0.0109279631,
-0.0410255678,
0.1771341413,
-0.0890543014,
-0.0898612887,
0.5933375359,
-0.034460295,
-0.2942813933,
0.5143272877,
0.2807087302,
-0.2683385909,
-0.0036779621,
-0.0236876495,
-0.0898658708,
-0.524820745,
-0.1636880636,
0.0872740075,
0.4021526873,
-0.2841863334,
0.1842650026,
0.1065953076,
0.0634382889,
-0.0462094098,
-0.5114607811,
-0.0539268628,
0.0741548836,
0.077420637,
0.0748472586,
-0.0605468825,
0.1324521303,
0.300987035,
-0.0170928314,
-0.2629275322,
0.0121891368,
-0.1009924486,
-0.1924439967,
0.1838292181,
0.0947672501,
0.1155117452,
-0.1126593575,
0.0882905051,
0.1392689198,
-0.2595665753,
-0.1104788259,
-0.10331963,
0.1331850439,
0.0176676642,
-0.3809986413,
0.0278983656,
-0.2445271164,
0.1307848245,
0.14582178,
-0.1565549225,
0.2336430401,
0.033029303,
-0.2768006027,
0.0201894734,
-0.152462244,
0.0323157832,
0.2858027816,
0.0332915969,
0.4748410285,
0.116418317,
0.1282938868,
-0.0287664495,
-0.1031427607,
-0.2453686148,
-0.0799234211,
-0.1588024646,
0.0484119244,
0.3509514034,
-0.2160549164,
0.1759758294,
0.2847868204,
0.5430665016,
0.3756450117,
-0.1791456491,
-0.0304877516,
0.3399629295,
0.1163178086,
-0.3530905545,
-0.0018462623,
0.2550407052,
0.1311692595,
-0.1649873257,
-0.0663632005,
0.0590498187,
0.0779970363,
-0.1327774376,
0.0712280348,
0.4416258335,
-0.1168789119,
0.4259809852,
0.245207876,
-0.1490371227,
0.0636050925,
0.2975072265,
0.155783087,
0.0961488262,
0.4094747305,
-0.3011285663,
-0.0630294606,
-0.1141682342,
0.18822743,
0.0920295641,
-0.3451959491,
0.0829236284,
0.2568252981,
-0.1226599514,
-0.077268824,
0.0181944482,
0.4215511382,
-0.0627136678,
0.0057120821,
-0.34616521,
0.3524468243,
0.1025396511,
-0.0964263827,
-0.0505217947,
-0.3273400664,
-0.1071382836,
0.0934409499,
-0.0880021378,
-0.2735387087,
0.0057935924,
0.1269888133,
-0.1079069674,
-0.4526588619,
0.0902963951,
-0.2414098233,
0.2086745501,
-0.1264802814,
0.1798934042,
0.1918991059,
0.1612014174,
0.1590430439,
0.4452040195,
0.3721195161,
0.3030995429,
0.3112209141,
0.25353387,
-0.2480196804,
0.0405976288,
0.0253091715,
0.0962592661,
0.4101727605,
0.1372618675,
0.4452572465,
0.1229507402,
-0.1497592777,
0.332428962,
-0.1725159138,
0.4331876934,
-0.3003734946,
0.4522468746,
-0.4396525323,
0.0520677678,
-0.3554668725,
-0.0616278574,
-0.5360230207,
0.1929387003,
0.2801314592,
-0.084345758,
0.009943489,
-0.3753027618,
0.0441159047,
0.083725296,
0.4359755218,
0.4304569662,
0.2908623517,
-0.1100595295,
-0.3925181031,
-0.8604518175,
0.265445143,
-0.1661128998,
0.186917752,
-0.104893215,
0.0426521897,
-0.0723411217,
0.18205899,
0.1102693155,
0.2451450676,
-0.1032431573,
0.1003263593,
0.0147965048,
-0.1198269948,
0.1042725593,
0.1849873364,
-0.1611718684,
-0.0095193386,
0.341095835,
-0.3345133662,
0.0015862721,
-0.0999247655,
0.0207154136,
-0.2290229648,
-0.1893052608,
0.3753868341,
0.2647731006,
0.5009150505,
0.0938998759,
-0.1256416887,
-0.4499050975,
-0.436942786,
-0.1506465077,
0.3031547368,
0.0917288661,
0.3368546963,
-0.0277848598,
-0.088313207,
-0.3073136508,
0.4242902398,
-0.2569081783,
0.0968438387,
-0.1882506311,
-0.1253021806,
-0.085316658,
-0.0829084367,
0.074695006,
0.0643381923,
0.0592752062,
0.0573355071,
-0.2598170638,
-0.4461222291,
0.5827847719,
-0.4052677751,
-0.1090065837,
0.0409156419,
0.162285164,
-0.0234179981,
-0.2404862642,
-0.3439912498,
0.1710403711,
0.4121435881,
0.0797624737,
-0.0682745948,
0.0159973018,
-0.3216104209,
-0.0765982121,
-0.1154727936,
0.2194115371,
0.1100316569,
-0.2925572991,
0.2049233019,
0.0246034861
] |
https://github.com/huggingface/datasets/issues/3282 | ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py | The error I get when trying to load OSCAR 21.09 is this
```
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
The URL I get in the browser is this
```
https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/blob/main/OSCAR-2109.py
```
Maybe URL is the issue? (resolve vs blob) | ## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)*
*The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.*
```
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
Am I the one who added this dataset ? No
Using the older version of [OSCAR](https://huggingface.co/datasets/oscar) I don't have any issues downloading languages with the dataset library. | 38 | ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)*
*The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.*
```
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
Am I the one who added this dataset ? No
Using the older version of [OSCAR](https://huggingface.co/datasets/oscar) I don't have any issues downloading languages with the dataset library.
The error I get when trying to load OSCAR 21.09 is this
```
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
The URL I get in the browser is this
```
https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/blob/main/OSCAR-2109.py
```
Maybe URL is the issue? (resolve vs blob) | [
-0.1634295881,
0.2305828333,
0.024413811,
0.3770050406,
0.0909549966,
0.030726349,
0.0639222562,
0.2214712799,
-0.2426067144,
0.2597850263,
-0.214044109,
-0.1690792143,
0.1428035945,
-0.0072289985,
0.1171832308,
-0.2361693233,
-0.0139901433,
0.0460932292,
0.138641879,
-0.0634482801,
-0.4308367372,
0.1030635461,
-0.1162413582,
0.1626308113,
-0.2272517532,
0.1512603909,
-0.1723883897,
0.1730082333,
-0.3458406329,
-0.3519816399,
0.3061038256,
0.0467174649,
0.2580541968,
0.2614613771,
-0.0001221176,
-0.1663711518,
0.6389613152,
0.0021847847,
-0.3595401049,
-0.5516809821,
-0.1629943699,
-0.1420710683,
0.2215952724,
0.0352183655,
0.0664144754,
-0.3831168413,
0.2749201059,
-0.0009587109,
-0.0898235813,
0.0673159212,
0.1336798817,
0.1013794094,
0.4491107464,
-0.2288143933,
0.3703536093,
-0.2455620021,
-0.1604395956,
0.3844380379,
0.3922197223,
0.0476536676,
-0.0890210271,
0.1451845467,
0.2911841869,
0.0660655722,
0.5376974344,
0.0679471269,
-0.2400942296,
-0.2774822414,
0.1975744516,
0.1158800572,
0.6147937775,
0.1687296927,
-0.5776149631,
0.0284372289,
0.0173434634,
-0.1774737239,
0.513348341,
0.2289520204,
0.0670123398,
-0.0167660974,
-0.205586955,
-0.2974629402,
-0.2819741666,
0.6054013968,
-0.3230802715,
0.3527911007,
-0.1962361634,
0.2045262158,
0.2549597919,
0.0984536111,
0.3903214037,
-0.2230047733,
0.1412421316,
0.1254834384,
0.0143261477,
0.3140039444,
0.0219130404,
0.3218464553,
0.056875594,
0.0144733824,
-0.0821171477,
0.0553204343,
-0.4408516884,
0.0847863108,
0.4427169859,
0.2962770164,
-0.1541590989,
-0.1357326806,
0.3526933193,
0.493868202,
0.1289407015,
-0.1192161143,
-0.0292483605,
-0.3672225177,
-0.1897693723,
-0.1800999194,
0.3398678303,
-0.294921577,
-0.187125966,
-0.0269256979,
-0.433429122,
-0.2115351856,
0.0075664404,
0.3699987829,
-0.4262367785,
0.2869896591,
-0.1006206647,
0.1194731146,
-0.0286209248,
0.0535572991,
-0.1387277097,
0.0904178768,
-0.2627215087,
-0.0804966241,
0.1040209383,
-0.4537067413,
0.1608716547,
-0.2464467287,
0.302562356,
-0.1223390475,
-0.084309116,
-0.2380046695,
0.0702583641,
0.1164898276,
0.2463525832,
0.3947826922,
-0.0582396314,
-0.3425536156,
-0.0584460087,
0.0900558904,
-0.1847832799,
-0.2601081729,
-0.1948119551,
0.0644980669,
-0.0511366017,
0.0380488932,
-0.0965150073,
-0.2384207696,
-0.2706736922,
-0.0451818146,
-0.0852118582,
-0.0166374445,
-0.0839581341,
-0.2407634556,
0.3611595929,
0.3513657749,
-0.3612563908,
0.0548721254,
-0.2463521361,
-0.1119351313,
0.0418572165,
0.1452337503,
-0.2280136049,
-0.0969442651,
-0.3065860868,
0.0702108592,
0.2733356953,
-0.424045682,
-0.6276170611,
0.3681552112,
-0.0900831446,
0.0636976808,
-0.0478733182,
0.2561640143,
0.3231488466,
-0.1684667319,
0.2948793769,
0.1055912301,
0.1991184801,
-0.1824543029,
-0.0499975197,
-0.2315443456,
-0.2791436911,
0.1502661258,
0.1715565026,
0.0536255874,
0.1141769961,
-0.175552994,
0.3752939701,
-0.0181814581,
0.1934535354,
0.0279346555,
0.1829764992,
0.4601311684,
-0.041046463,
0.0177006759,
-0.2865720689,
0.2255955189,
-0.0069106827,
0.1592564285,
-0.3726585507,
-0.0450392775,
-0.4383385181,
-0.0795213729,
-0.3449832499,
0.0699357167,
-0.0109431101,
0.2669700384,
0.118676722,
0.2282262594,
-0.2791146636,
0.0939926282,
0.0386985578,
0.1661512554,
-0.3229206204,
0.2021329254,
-0.223722294,
0.0892787725,
0.2197038978,
-0.0687499642,
0.2049536556,
-0.3210242093,
-0.1630333811,
0.3772005141,
-0.1500516385,
0.4110326171,
0.0095675681,
0.1068938449,
0.360029757,
-0.2728176117,
0.2592157722,
0.0368318558,
0.1584140062,
0.0051788972,
0.2963708043,
0.1289946288,
0.1352248341,
0.3052998185,
0.356033653,
0.1303754151,
0.2206304371,
0.1318729222,
-0.1680014431,
-0.2125704885,
0.1344109029,
-0.0140376659,
0.074889183,
-0.0695355237,
-0.2341628671,
-0.0483892113,
0.4954439402,
-0.1184337139,
-0.1240240857,
0.2452603728,
-0.2931433618,
0.0191134308,
0.1294872612,
0.4569977522,
0.3177912533,
0.0797534361,
0.0447040014,
0.2724915743,
-0.1029180661,
-0.3030646741,
0.1119557023,
0.1788747311,
0.0705453306,
-0.0568290167,
-0.1352139562,
0.0036982077,
-0.2112629712,
0.116618216,
-0.0405154042,
0.1121948957,
-0.2197897881,
0.0758474097,
-0.2576717734,
-0.3753139079,
-0.2693049014,
-0.3558134437,
-0.2070738226,
-0.5857595205,
-0.2034313381,
0.3858916759,
0.0385831781,
0.0061853123,
-0.4255997539,
-0.0345757753,
-0.2524451911,
0.0116228685,
0.0302855801,
-0.1720419228,
-0.3668591678,
0.0098703988,
0.2004253417,
-0.0594957694,
0.2204942703,
-0.3487722278,
0.234717533,
-0.387661159,
-0.2753637135,
0.1577804834,
0.1169599891,
0.081118457,
0.3173650503,
0.2408785224,
-0.0086914813,
-0.1354578137,
0.4267877042,
-0.0896479785,
-0.0288033169,
-0.3013635278,
0.1015486419,
-0.0189847834,
0.1883817315,
-0.475612849,
-0.2231466919,
-0.2780424654,
0.1963515729,
0.0548832752,
0.2075896412,
-0.0635753423,
-0.0256150737,
0.2208753377,
-0.1638637632,
0.112007916,
-0.1684302092,
-0.122788392,
0.3501001,
-0.2237000018,
-0.5654825568,
0.3075141609,
0.0532511026,
0.154144913,
0.1375072151,
-0.3897575736,
-0.2891306877,
-0.2945588529,
-0.2117603868,
0.1363911331,
0.0315997824,
0.1459655762,
-0.093576476,
-0.070441626,
0.1336494833,
-0.2094164342,
-0.164050281,
-0.1400977671,
0.5212137699,
0.1163583547,
0.36653319,
-0.0525101796,
0.5527786016,
-0.0427238718,
0.1107380763,
0.591760695,
0.1305333376,
0.288331002,
-0.1749943495,
-0.4224922955,
0.2311107665,
-0.2629131973,
0.0718628913,
0.3306380808,
0.1604148895,
-0.1168076545,
-0.4883953929,
-0.2464898527,
-0.3323276937,
-0.2595220804,
-0.0222060364,
0.0918796062,
0.1388484687,
0.1672901809,
0.1074487865,
0.1722062528,
-0.2115129381,
0.0625746027,
0.3670032024,
0.2910959125,
0.0172512736,
0.0810387433,
0.0756520256,
-0.4300095737,
0.4578008056,
0.0868822709,
0.4024478197,
-0.0795538127,
0.037188679,
0.2759137154,
-0.0484786443,
0.7247368693,
-0.1203780398,
-0.0190266091,
-0.1378781199,
-0.0324514695,
-0.4048889875,
-0.0108207865,
-0.1588102579,
0.3479042351,
0.1889443696,
0.3895726502,
-0.2218958735,
0.0383369289,
0.2408432811,
-0.0428388342,
-0.2054243684,
-0.1225596145,
-0.293238461,
-0.524345696,
-0.3998817801,
-0.3219172657,
-0.1558160335,
0.3797103763,
0.1556288302,
-0.2286067009,
-0.0596739613,
-0.1011329144,
0.160315603,
0.0357945301,
-0.1079745814,
0.2649629116,
0.0852088854,
0.4300047457,
0.5313315392,
0.2698997557,
0.2537383735,
-0.1675283015,
-0.4196019769,
-0.0262572691,
-0.0561640821,
0.2747474909,
0.3816271126,
-0.1128958836,
-0.1362451613,
0.3323344588,
-0.239735648,
-0.2046666145,
0.0976058915,
0.5041005611,
0.1455187649,
-0.5121804476,
-0.5765966773,
0.3634298742,
0.1752101481,
-0.164615348,
0.2393181473,
0.5097029805,
-0.1272095442,
-0.0102226622,
-0.1431044489,
1.0262522697,
-0.1591765285,
0.0729921162,
-0.005018454,
-0.1351366341,
0.4637084007,
0.2277610004,
0.2482178211,
-0.3010377884,
-0.5340768695,
-0.316523701,
-0.1734258384,
0.2922866642,
-0.0206890646,
0.0289552435,
0.4742509425,
-0.1353413612,
0.2125447839,
0.1938676834,
0.2102384567,
-0.3934943378,
-0.0662815347,
-0.5098779798,
0.0895089656,
-0.0432009324,
0.499304235,
-0.1148606986,
-0.1068938151,
-0.3027686179,
-0.1686736643,
-0.0161246452,
0.2476503849,
-0.2741920352,
0.0231957268,
-0.1595907062,
-0.1288626641,
0.1779928952,
0.0646962747,
0.2131404281,
-0.106359072,
-0.0782841444,
0.2863706946,
-0.2140086889,
-0.2752602994,
0.2968275547,
-0.0053138211,
0.0419125259,
-0.1731421053,
-0.3544389307,
0.3217106462,
0.1127479747,
-0.2798668742,
0.1413203478,
0.0827943981,
0.1288078576,
-0.0174051169,
-0.4786579013,
-0.364623636,
-0.1224587038,
-0.1193209663,
0.0298567563,
-0.1687490791,
0.0301555526,
-0.0615325384,
0.1932064742,
-0.1169680357,
-0.0025295233,
0.5698460937,
-0.1233152375,
-0.0564464964,
0.4804260433,
0.1971916556,
-0.1717447191,
0.1587289572,
-0.2449377775,
-0.1690521538,
-0.4616811574,
-0.0963454917,
0.0210937802,
0.3045748174,
-0.3936824203,
0.3638329506,
0.2524350584,
0.2176765651,
-0.0899614021,
-0.4430433214,
-0.0924060196,
0.2001658082,
0.1530091166,
0.1475267857,
-0.0820783302,
-0.0958391204,
0.3837404251,
-0.2158270329,
-0.1771037579,
0.0572698265,
-0.1480303407,
-0.0724882632,
0.1019923314,
0.1340183467,
0.23524414,
-0.0230142232,
-0.0369015336,
0.1808621585,
-0.0813714564,
-0.0308426376,
-0.0219863094,
0.1640623361,
0.1192099899,
-0.4050223231,
-0.0819543228,
-0.1924125701,
0.0898732543,
0.0478989668,
0.0037512567,
0.1981081814,
0.0644220933,
-0.302618742,
0.1462774128,
-0.1497848481,
0.0316667743,
0.3375516832,
-0.0274940617,
0.6893863678,
0.2506344616,
0.0827906653,
-0.0247579757,
-0.1172983721,
-0.0925762579,
-0.1158723831,
-0.1649328768,
0.058711689,
0.2196732908,
-0.2023475617,
0.1128678471,
0.1975183636,
0.5268088579,
0.4224812388,
-0.0508109182,
-0.1060781032,
0.1857702434,
0.0405966416,
-0.1568853259,
0.0785515979,
0.112488769,
0.0460705273,
-0.1317555755,
0.0017306684,
-0.0456153825,
0.0992644057,
-0.2847962081,
0.041894529,
0.2507210374,
0.0705424622,
0.3252260387,
0.2722931504,
-0.1284999549,
0.2475646585,
0.3724260926,
-0.0111144511,
0.0150742419,
0.2119069099,
-0.2828551531,
-0.0366100483,
-0.1995866597,
0.3891252875,
0.2126890719,
-0.2579138279,
-0.0499423929,
0.4151477516,
0.0947069526,
-0.0190445241,
0.0294140521,
0.5372030735,
-0.0279273018,
0.0985443592,
-0.3293503821,
0.3271508515,
0.1552627236,
-0.1712591946,
-0.1753400266,
-0.3186665177,
-0.1533389091,
0.1892053336,
-0.1542168707,
-0.3018728197,
0.0371634252,
0.1227875501,
-0.13269943,
-0.4304354191,
0.1401227415,
-0.1881927997,
0.2353277206,
-0.0318399705,
0.2938390076,
0.2466567159,
0.3501257598,
0.2214226872,
0.384908855,
0.318387866,
0.4585000873,
0.3265124261,
0.0310006402,
-0.154589057,
-0.0290230587,
-0.0323563516,
0.0686629713,
0.4245797694,
0.0343418159,
0.4268368483,
0.0601011924,
-0.1053413227,
0.3026691377,
-0.1152679175,
0.5090910792,
-0.1091876179,
0.6304512024,
-0.4631066918,
0.0285769179,
-0.4036021233,
0.0807737932,
-0.6474547386,
0.0714799166,
0.1496755332,
-0.2233002782,
0.0223585926,
-0.264878422,
-0.0126130935,
-0.103745304,
0.502502501,
0.5063301325,
0.284172684,
-0.0879698098,
-0.3987814486,
-0.7934679389,
0.1550204754,
-0.1241277829,
0.229815498,
-0.1569654197,
0.120161891,
-0.2739428282,
0.0783440843,
0.1604619026,
0.4976492226,
-0.0097076083,
0.0535641015,
0.0021457102,
-0.2214375734,
0.0593146756,
0.1387772709,
-0.1906300932,
-0.0969155952,
0.1976035684,
-0.348328352,
-0.084459573,
-0.1330636144,
0.0529599302,
-0.3343113065,
-0.221533671,
0.4905227125,
0.2460427135,
0.5047020912,
-0.0049384939,
-0.3017255664,
-0.3434288204,
-0.2359445393,
-0.0311226062,
0.3236280382,
0.0938475505,
0.2934499979,
0.0707095042,
0.2588203251,
-0.3293578625,
0.4483804405,
-0.1890802234,
-0.1080893204,
-0.1119180396,
-0.2465041876,
-0.135817349,
-0.2474435419,
0.115418613,
0.0579493456,
0.0709779188,
-0.0335220881,
-0.2648582757,
-0.4440562427,
0.5721877217,
-0.2811409831,
-0.0266933031,
0.1526483744,
0.0518947579,
0.0623630323,
-0.2348860651,
-0.2815862894,
0.206443578,
0.3062711954,
0.0314374715,
0.0195377413,
0.0261669122,
-0.280890584,
-0.0012589917,
-0.1509031951,
0.089052178,
0.1390046328,
-0.3686946332,
0.0158616379,
-0.002806443
] |
https://github.com/huggingface/datasets/issues/3282 | ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py | > The error I get when trying to load OSCAR 21.09 is this
>
> ```
> ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
> ```
>
> The URL I get in the browser is this
>
> ```
> https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/blob/main/OSCAR-2109.py
> ```
>
> Maybe URL is the issue? (resolve vs blob)
You need to download your login credentials. See `huggingface-cli login` documentation and when loading the dataset use `use_auth_token=True`:
`
load_dataset(corpus, language, split=None, use_auth_token=True, cache_dir=cache_folder)` | ## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)*
*The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.*
```
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
Am I the one who added this dataset ? No
Using the older version of [OSCAR](https://huggingface.co/datasets/oscar) I don't have any issues downloading languages with the dataset library. | 75 | ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
## Dataset viewer issue for '*oscar-corpus/OSCAR-2109*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/oscar-corpus/OSCAR-2109)*
*The dataset library cannot download any language from the oscar-corpus/OSCAR-2109 dataset. By entering the URL in your browser I can access the file.*
```
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
```
Am I the one who added this dataset ? No
Using the older version of [OSCAR](https://huggingface.co/datasets/oscar) I don't have any issues downloading languages with the dataset library.
> The error I get when trying to load OSCAR 21.09 is this
>
> ```
> ConnectionError: Couldn't reach https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/resolve/main/OSCAR-2109.py
> ```
>
> The URL I get in the browser is this
>
> ```
> https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/blob/main/OSCAR-2109.py
> ```
>
> Maybe URL is the issue? (resolve vs blob)
You need to download your login credentials. See `huggingface-cli login` documentation and when loading the dataset use `use_auth_token=True`:
`
load_dataset(corpus, language, split=None, use_auth_token=True, cache_dir=cache_folder)` | [
-0.1638737023,
0.1031891331,
0.0558867417,
0.4317854941,
0.1487074941,
0.0859395117,
-0.0256002247,
0.2220758349,
-0.2109852135,
0.2274253517,
-0.2897391021,
-0.163197577,
0.113761127,
0.0779962242,
0.1040889546,
-0.3276954889,
-0.071785979,
-0.0296839159,
0.0155164571,
-0.0434336551,
-0.3552164733,
0.1934068948,
-0.1150128916,
0.170919016,
-0.1509551257,
0.0495017581,
-0.1499511749,
0.1361217201,
-0.335298121,
-0.3501963913,
0.2912428975,
0.0222268328,
0.2644069493,
0.2784634233,
-0.0001186652,
-0.1524903774,
0.5552988052,
-0.0016187818,
-0.3989951909,
-0.6619231701,
-0.0655462593,
-0.1310496479,
0.2420236319,
0.1166837588,
-0.0942818746,
-0.371589154,
0.2253266722,
-0.0853223875,
0.0703276321,
0.1241560131,
0.1639689356,
0.1869799644,
0.4523052275,
-0.2966717482,
0.1996554583,
-0.2064194977,
-0.1360335946,
0.3594053984,
0.3711139858,
0.0397751629,
-0.024457844,
0.1873430908,
0.2935540676,
0.0187482871,
0.5615561604,
-0.0365995318,
-0.2769491971,
-0.3839033842,
0.2437503934,
0.1617871523,
0.5894255042,
0.0410234965,
-0.5316884518,
0.0120507721,
0.093027018,
-0.2431796938,
0.4912884533,
0.2625536025,
-0.0021324654,
-0.0444884226,
-0.2387974858,
-0.2721303105,
-0.3040900826,
0.5619140863,
-0.1553153843,
0.2651642263,
-0.1763464212,
0.1811927706,
0.3177568913,
-0.0435286164,
0.1631723642,
-0.1085592806,
0.0544791035,
0.2445484251,
0.0142364716,
0.2707106769,
-0.025917042,
0.4211364388,
0.1431509405,
0.0676780716,
-0.1729705334,
0.097086221,
-0.3271924257,
0.0430441834,
0.4541618824,
0.2891751826,
-0.0779118612,
-0.0842083991,
0.2599659562,
0.4737868607,
0.1451327503,
-0.1357612163,
-0.0365358442,
-0.3163924515,
-0.2014552355,
-0.2010497749,
0.3045390546,
-0.2892730236,
-0.0983849093,
-0.0228186343,
-0.3946242929,
-0.1880671531,
0.0390623659,
0.4054935277,
-0.3853672743,
0.1950222701,
-0.0636260286,
0.162112698,
-0.0369288102,
0.0097281449,
-0.1503056884,
0.1138707027,
-0.2700100541,
0.0570522361,
0.1357751191,
-0.5649886131,
0.1742140353,
-0.2156410962,
0.4063636661,
-0.1137603223,
-0.0300893225,
-0.1594505012,
0.0669999793,
0.0941548944,
0.2535078824,
0.3764216602,
0.0069881808,
-0.3268053532,
-0.0933071524,
-0.0754028186,
-0.1621756256,
-0.2903397083,
-0.1791299433,
0.0825050697,
-0.033458557,
0.0411547869,
-0.2018692642,
-0.171142906,
-0.266000241,
0.0378685892,
-0.0441481993,
-0.0165260136,
-0.1180149689,
-0.1374869198,
0.3825650215,
0.4791224897,
-0.2760547101,
-0.0286445189,
-0.1624875069,
-0.1619928777,
-0.0689477846,
0.1087108627,
-0.2244350165,
-0.1267281324,
-0.34141469,
0.0469030514,
0.141464442,
-0.4778726995,
-0.5335482359,
0.2529318929,
-0.0220861714,
0.127972737,
-0.0600143,
0.1213073432,
0.3195920289,
-0.1123640314,
0.2323303968,
0.0619162209,
0.2045116425,
-0.153580606,
-0.0603132099,
-0.2424407452,
-0.2765577734,
0.1993156224,
0.1609693915,
0.033774104,
0.0843532383,
-0.1612841487,
0.3363700807,
-0.0219700839,
0.2061428726,
0.026077617,
0.161676228,
0.5748984814,
-0.0294567384,
-0.0085740527,
-0.3116135299,
0.2600065768,
0.0041435924,
0.2780253589,
-0.296508491,
-0.0609763339,
-0.3611246347,
-0.1246612146,
-0.3472210169,
0.0224053878,
0.0306388903,
0.1922318488,
0.2306402475,
0.2870872915,
-0.2578285933,
0.2457548231,
0.0826614797,
0.1794148982,
-0.4501203597,
0.1599957794,
-0.1998928487,
0.0957448855,
0.1899533272,
-0.0172961336,
0.1881589741,
-0.3220213652,
-0.1128204986,
0.4024179578,
-0.1760047525,
0.3776150644,
-0.0596353263,
0.1169612408,
0.3719925284,
-0.3467189074,
0.1667098552,
-0.0219067726,
0.1395219415,
0.0601877607,
0.2389684767,
0.1789378673,
0.1229729056,
0.2920712233,
0.3384953141,
0.2025623024,
0.2432576865,
0.1267202049,
-0.2560130954,
-0.2201180458,
0.1954763383,
-0.1696825176,
0.1095983386,
-0.1609072685,
-0.2752625346,
-0.0527812019,
0.3305515051,
-0.0293473639,
-0.1515727341,
0.2198268622,
-0.3700799346,
0.0941970572,
0.116945453,
0.3748261333,
0.2833869457,
0.0712117776,
-0.006821759,
0.3066983521,
-0.054674048,
-0.2504385412,
0.1439350396,
0.1520755142,
0.0965407863,
-0.120397158,
-0.1467904449,
0.0069655725,
-0.2197113186,
0.1224720329,
-0.1018743813,
0.1518096477,
-0.2213496715,
0.0616705492,
-0.2506424487,
-0.4344054163,
-0.231284529,
-0.3254252374,
-0.27496171,
-0.4291351736,
-0.2184772938,
0.3423596621,
0.1013740599,
0.0370918252,
-0.3319621086,
-0.0006294252,
-0.2469500452,
0.0236602016,
-0.0688268989,
-0.1568855941,
-0.2824933827,
0.0185845345,
0.2548471391,
-0.0629087016,
0.3189647198,
-0.3134773374,
0.1675520539,
-0.3799768686,
-0.2709616721,
0.1830039173,
0.0381710567,
0.044858411,
0.233981505,
0.2578592896,
-0.0928999633,
-0.1637967378,
0.4195310473,
-0.1043772697,
-0.0419290699,
-0.2291509509,
0.0845359117,
-0.0058033084,
0.1331644505,
-0.4578540027,
-0.2821191251,
-0.2767313123,
0.3250189424,
0.1260529757,
0.1727057695,
0.0877134427,
-0.0060204635,
0.2521424592,
-0.3269657195,
0.1249876395,
-0.2305597663,
-0.1944039017,
0.3160631657,
-0.2967838645,
-0.5885466337,
0.3663971424,
0.0906330422,
0.2255311012,
0.0109062064,
-0.3837218583,
-0.3466085494,
-0.2625720203,
-0.1392282099,
0.1117810905,
0.026319731,
0.2449186891,
-0.1679566503,
-0.0444672331,
0.1994952559,
-0.2043112516,
-0.1254384518,
-0.1883741468,
0.4283424318,
0.0235782079,
0.3803785443,
-0.0415242501,
0.6155350208,
0.1147156209,
0.1107643694,
0.5615172386,
0.1457320154,
0.3035131395,
-0.1391307563,
-0.5145663023,
0.2051338404,
-0.2187766135,
0.1826862693,
0.2715017796,
0.1765982956,
-0.1134977266,
-0.5078957081,
-0.1886404008,
-0.2955523431,
-0.2789086998,
-0.09370552,
0.0244061165,
0.170606479,
0.2142791748,
0.1259471476,
0.1239190996,
-0.2550671995,
0.0611473992,
0.4170917273,
0.2514705956,
0.0868766159,
-0.0237098318,
0.0388186052,
-0.4734135866,
0.4031013846,
0.0555175021,
0.3156029284,
-0.1265026331,
-0.0070763808,
0.2877580225,
0.0081624826,
0.6918699741,
-0.107470572,
-0.0468345955,
-0.1112872139,
-0.1032557487,
-0.395671159,
0.0088744992,
-0.1296664178,
0.2157320827,
0.2446566373,
0.4961045384,
-0.2109110951,
-0.0256629903,
0.166031912,
-0.0320022367,
-0.207611382,
-0.1059993505,
-0.2836362422,
-0.5521221161,
-0.4263900518,
-0.1991311014,
-0.1237459034,
0.4470529854,
0.1784415841,
-0.1081943288,
-0.0113308663,
-0.0645425692,
0.1884296238,
0.0884950534,
-0.0143693173,
0.3379426003,
0.1799258441,
0.4593262374,
0.463169843,
0.2746869922,
0.3007162213,
-0.1498897672,
-0.4527130723,
-0.0854112282,
0.0333976671,
0.2585292161,
0.3070262671,
-0.1030543745,
-0.1124167144,
0.2602846622,
-0.1072163954,
-0.276556164,
0.1127022877,
0.3840619326,
0.1682964265,
-0.463110745,
-0.5098258257,
0.2803749144,
0.1625546217,
-0.0974009857,
0.2194934934,
0.6238234043,
-0.1861371994,
-0.0034920594,
-0.1027806476,
1.0224281549,
-0.2147533149,
0.0556159839,
-0.0158827286,
-0.0922834203,
0.5733136535,
0.2224164605,
0.1967388541,
-0.2728749514,
-0.5277780294,
-0.2561401725,
-0.1369491965,
0.3031299114,
-0.0664320514,
-0.0463045165,
0.3830076158,
-0.0466593318,
0.0919431821,
0.0728217438,
0.2567049265,
-0.4446934164,
-0.1568427235,
-0.4579536319,
0.145394057,
-0.0195017494,
0.5534863472,
-0.0587284006,
-0.1239100248,
-0.2474768907,
-0.1428290457,
-0.0889350176,
0.2342309058,
-0.2903169692,
-0.0108071556,
-0.0509050153,
-0.155037865,
0.3037399352,
0.0671475902,
0.2894289196,
-0.0603266954,
-0.155626297,
0.263279736,
-0.2308024615,
-0.4227691293,
0.2099783868,
0.0050542634,
0.0945993215,
-0.1978521496,
-0.2727019191,
0.2973115146,
0.1516824216,
-0.1672246009,
0.0095534278,
0.0617122948,
0.0579551794,
-0.0362338647,
-0.408991307,
-0.3035202026,
-0.0686182454,
-0.0938148275,
0.0615275875,
-0.1160691455,
-0.0537454262,
-0.0949495584,
0.2155760676,
-0.1008752957,
0.0090514272,
0.5578497648,
-0.15852727,
-0.1273311675,
0.473885268,
0.3729888201,
-0.1341491342,
0.0929608047,
-0.2681693435,
-0.0878407136,
-0.5615877509,
-0.1686321646,
0.1954656094,
0.356511265,
-0.373644501,
0.3470606506,
0.1755760759,
0.0572806448,
0.0545226708,
-0.3990423977,
-0.1378535032,
0.1864273846,
0.0984894931,
0.1333809048,
-0.0312420633,
-0.070370622,
0.3378228843,
-0.0770710483,
-0.2139449418,
0.0391706116,
-0.1497325748,
-0.1274405569,
0.2855220735,
0.0845499858,
0.2457816601,
-0.0457130857,
-0.0108308587,
0.230871141,
-0.1331276149,
-0.0788744688,
-0.017099252,
0.133883208,
0.1200946495,
-0.4907940328,
-0.0393107161,
-0.115914993,
0.1044656932,
-0.0199949443,
-0.0060076737,
0.2808656394,
0.0539581776,
-0.2299831063,
0.049265556,
-0.0577072687,
0.0563973226,
0.2413495481,
0.0927058533,
0.570330143,
0.2031874061,
0.0408244208,
-0.0699756667,
-0.1128571928,
-0.1612750441,
-0.0550044253,
-0.1258047819,
0.0163662881,
0.2472214997,
-0.1139954478,
0.0957052261,
0.2363523394,
0.5004775524,
0.3374628723,
-0.0714453384,
-0.000846674,
0.283403933,
0.0613895208,
-0.2099183947,
0.0890586227,
0.1091364324,
0.0480430387,
-0.1176960096,
0.0463458486,
-0.0550931878,
0.0823659524,
-0.1902553886,
0.0389456451,
0.2751539648,
0.0454015993,
0.3583619297,
0.1862548143,
-0.0887465179,
0.0819611698,
0.3653737903,
0.0956787392,
0.0406216495,
0.1410730034,
-0.354046464,
-0.0010983102,
-0.3645054996,
0.4137089849,
0.2151242197,
-0.2821831405,
-0.0907872617,
0.3514784276,
0.0761802569,
-0.0226027798,
-0.102071844,
0.6308679581,
-0.1063367724,
-0.0175433662,
-0.3698098361,
0.3411746323,
0.1692856401,
-0.1261390597,
-0.1164610609,
-0.2991593778,
-0.1556329429,
0.1546235234,
-0.0816227049,
-0.4262964129,
0.1400439888,
0.1067856252,
-0.1342484802,
-0.426794529,
0.0317505486,
-0.0662566125,
0.2117765695,
-0.0060471147,
0.326802671,
0.2123970687,
0.2148432583,
0.0825715959,
0.3973468244,
0.3262504637,
0.3355168104,
0.3540506661,
0.2128529996,
-0.1666606069,
0.0215983298,
0.0207761247,
0.1145189404,
0.3913696408,
0.0198519025,
0.3757519424,
0.0868120119,
-0.1318573207,
0.173821643,
-0.2276563644,
0.5522860885,
-0.1705008298,
0.5857917666,
-0.4417149425,
0.0861675665,
-0.4371980727,
0.0549183972,
-0.6440973282,
0.1447126418,
0.1543435454,
-0.1119009256,
-0.0066858805,
-0.401048243,
0.006338771,
-0.0534966961,
0.5198125839,
0.4829201698,
0.2082773596,
-0.1471260637,
-0.4261905551,
-0.8168037534,
0.1394351572,
-0.1326397657,
0.2452445328,
-0.1903714091,
0.1630227715,
-0.2052717954,
0.106913358,
0.1207500249,
0.4620143771,
0.0020131981,
0.0231382437,
0.0196468551,
-0.1432050318,
-0.025556257,
0.1239733994,
-0.0944389328,
0.043306578,
0.1812284291,
-0.3895861208,
-0.0572577119,
-0.0771159679,
0.0971527249,
-0.3859860897,
-0.2447938323,
0.4426620007,
0.2145055383,
0.4457118511,
0.0871010348,
-0.2524326742,
-0.3541600406,
-0.2375872135,
-0.103549771,
0.3200240135,
0.0705827475,
0.28817752,
0.0109837139,
0.0757708251,
-0.3425340652,
0.4268172383,
-0.1739311367,
-0.2182514071,
-0.0732449815,
-0.1454266608,
-0.0928359404,
-0.1766773909,
0.1696826369,
0.1427675188,
0.0621030107,
-0.0388103761,
-0.2924517393,
-0.4276086688,
0.576703012,
-0.3602354228,
-0.0215283111,
0.1057002842,
0.0689182803,
0.1066009998,
-0.3799291253,
-0.3560456336,
0.2615276575,
0.2472052127,
0.054247573,
0.0014035276,
0.0483251959,
-0.3379428387,
-0.0190975834,
-0.1910610497,
0.1517837942,
0.2033170164,
-0.2886876166,
0.1497714967,
0.06318371
] |
https://github.com/huggingface/datasets/issues/3272 | Make iter_archive work with ZIP files | Hi ! Sure this is open for any contributor. If you're interested feel free to self-assign this issue to you by commenting `#self-assign`. Then if you have any question or if I can help, feel free to ping me.
To begin with, feel free to take a look at both implementations of `iter_archive` for local downloads and for data streaming:
In the `DownloadManager` for local dowloads:
https://github.com/huggingface/datasets/blob/dfa334bd8dc6cbc854b170379c7d2cb7e3d3fe4f/src/datasets/utils/download_manager.py#L218-L242
In the `StreamingDownloadManager` to stream the content of the archive directly from the remote file:
https://github.com/huggingface/datasets/blob/dfa334bd8dc6cbc854b170379c7d2cb7e3d3fe4f/src/datasets/utils/streaming_download_manager.py#L502-L526
Notice the call to `xopen` that opens and streams a file given either an URL or a local path :) | Currently users can use `dl_manager.iter_archive` in their dataset script to iterate over all the files of a TAR archive.
It would be nice if it could work with ZIP files too ! | 103 | Make iter_archive work with ZIP files
Currently users can use `dl_manager.iter_archive` in their dataset script to iterate over all the files of a TAR archive.
It would be nice if it could work with ZIP files too !
Hi ! Sure this is open for any contributor. If you're interested feel free to self-assign this issue to you by commenting `#self-assign`. Then if you have any question or if I can help, feel free to ping me.
To begin with, feel free to take a look at both implementations of `iter_archive` for local downloads and for data streaming:
In the `DownloadManager` for local dowloads:
https://github.com/huggingface/datasets/blob/dfa334bd8dc6cbc854b170379c7d2cb7e3d3fe4f/src/datasets/utils/download_manager.py#L218-L242
In the `StreamingDownloadManager` to stream the content of the archive directly from the remote file:
https://github.com/huggingface/datasets/blob/dfa334bd8dc6cbc854b170379c7d2cb7e3d3fe4f/src/datasets/utils/streaming_download_manager.py#L502-L526
Notice the call to `xopen` that opens and streams a file given either an URL or a local path :) | [
-0.5271627307,
0.1634646654,
-0.0882295221,
0.1586410999,
-0.091050826,
-0.0960064158,
0.1364819556,
0.4259112179,
-0.0266859457,
0.0931349471,
-0.0515030548,
0.6554415226,
-0.1210887358,
0.4705846012,
-0.0370961763,
0.0497757569,
-0.2543893158,
0.3523830771,
-0.4338114858,
0.117051281,
-0.1553303003,
0.139904812,
0.0251187515,
-0.1207087189,
0.3196019828,
0.1476028562,
-0.0903765708,
0.214992851,
-0.2577503622,
-0.4663319886,
0.2648331821,
0.1839057952,
0.4860052764,
0.3807250857,
-0.0001018898,
-0.01323302,
0.2184486985,
-0.0306419004,
-0.3586069345,
-0.523424685,
-0.1917722523,
-0.1938413382,
0.0293166228,
-0.2377526313,
0.1755680889,
-0.1182795539,
0.132822901,
-0.1687224805,
0.3739844859,
0.1940905452,
0.2256555855,
0.3935413957,
0.0342693627,
-0.0655988082,
0.3931240439,
0.2336292565,
-0.2398004234,
0.3011564016,
0.2305230647,
-0.0569457263,
-0.2225752175,
0.1532353908,
-0.0256223623,
0.2302401513,
0.2761278749,
-0.0466439724,
-0.2669267952,
-0.1487557739,
-0.2510716319,
0.1707333177,
0.6428149343,
-0.4028428495,
-0.3676694334,
-0.0833093971,
-0.286847949,
-0.3921363652,
0.282622546,
0.2115219384,
-0.2021244168,
0.2111466676,
-0.0168209244,
0.0678933635,
-0.2679747939,
0.0913361832,
-0.1561859399,
0.5876101255,
-0.1569520086,
-0.1187318638,
0.5183103681,
-0.0751709342,
0.6211432219,
0.0702009574,
-0.1161407977,
-0.1386107802,
-0.1741614342,
-0.3171594739,
-0.026145976,
0.0057805581,
0.1836365014,
0.4942644536,
0.2009917051,
0.1524989307,
-0.0054410347,
0.1234273463,
0.3155822158,
0.2565485537,
0.2426477522,
0.1778858006,
0.2892775238,
0.3290779293,
0.2590236068,
-0.2413897067,
-0.0546821021,
0.0373719856,
-0.1341750175,
0.0991795287,
0.0225421079,
-0.0470215827,
0.1330258399,
-0.2533316612,
0.0639218017,
-0.4127047956,
0.0058116703,
-0.015988281,
-0.1320155263,
0.2903730869,
-0.391946435,
0.0872249901,
0.2396387458,
-0.1170321405,
0.0727517158,
0.0799738541,
-0.1035425961,
0.083103396,
0.3216744661,
-0.2207287848,
0.110091351,
-0.2038956434,
-0.0091079185,
0.3727921546,
0.3598786294,
-0.1966824234,
0.3351739347,
0.0514220819,
0.0667119026,
0.1031911299,
-0.0155371455,
-0.0532330312,
-0.2440444529,
-0.0414964631,
-0.1204272881,
-0.2244502008,
-0.0018876172,
0.191121012,
-0.2609452307,
-0.1237302348,
-0.0020652267,
-0.1235106289,
-0.2806326747,
-0.4027179778,
-0.0579924323,
0.2240041345,
-0.2275243104,
-0.1100082323,
0.1459627301,
0.4979760647,
-0.6566016078,
0.2179649025,
-0.3574216068,
0.0438685045,
0.1641238332,
-0.0355740376,
-0.2093661577,
0.1113674417,
-0.3522227705,
0.1473276168,
0.3078065813,
-0.241211623,
-0.3783233464,
0.6909527183,
-0.243099615,
0.2401983738,
0.1695817858,
0.0003236668,
0.3103083968,
-0.3186674118,
-0.2762653828,
0.37376073,
-0.0640216842,
0.0319529735,
-0.0704011768,
-0.2144975811,
0.1358138472,
0.2773146331,
-0.0240746327,
0.20106107,
-0.1014485359,
-0.3788158596,
0.1642209589,
-0.0113553759,
0.2451966703,
0.0633149222,
0.0693059936,
0.2129593045,
-0.0214894172,
-0.0337444767,
-0.1767002642,
0.1574034095,
-0.1406187415,
-0.1823748797,
-0.2724439204,
-0.0777291879,
-0.0888859183,
0.0532151349,
-0.2255097032,
-0.1187287197,
0.2174460292,
0.4845648408,
0.3232108951,
0.0037966098,
-0.3451394737,
0.1737531275,
0.3744062185,
0.067766197,
-0.3528164923,
0.0665207729,
-0.0544546805,
0.0075446083,
0.1576261073,
-0.2225648463,
-0.0550995208,
-0.3260387778,
-0.0743695423,
0.1854180694,
-0.4222799242,
-0.0523834303,
0.3067638576,
0.1259945184,
0.2551634312,
-0.1726117879,
0.2334454358,
0.2393032759,
0.1463115364,
-0.1086449102,
-0.3874174058,
0.2007955015,
-0.1367947459,
0.4228149652,
-0.0114522353,
0.0907884762,
0.1067223325,
-0.1880363822,
-0.1766634881,
0.1731514484,
-0.1320405155,
0.0467730016,
0.438349247,
-0.0839764774,
0.1748831272,
0.122631833,
0.1639256179,
0.0592885427,
-0.2266849577,
0.386133641,
-0.1707720011,
0.1364410967,
0.2209421843,
0.6206463575,
0.3971897364,
0.1972800344,
0.3054275513,
-0.0511693582,
0.3163580894,
-0.2141162604,
-0.0649573952,
0.1159184873,
-0.134512946,
0.1104798168,
-0.1745247543,
0.0046916022,
-0.1926429272,
-0.1396150887,
-0.0830711052,
0.1154237688,
0.1555060148,
0.1730687171,
-0.3750018179,
-0.5810016394,
0.1314027756,
0.0819250792,
-0.0748572275,
-0.2305569649,
-0.0509774163,
0.4028927982,
-0.1065443754,
-0.010951451,
0.4208865464,
0.1838428378,
-0.0063161235,
-0.1260395497,
-0.1868383884,
-0.2244648933,
-0.0986493602,
0.2292298377,
0.3748161197,
-0.1534874588,
0.3059160709,
-0.1933231503,
0.0605879575,
-0.5222426653,
0.228891775,
0.1726195514,
0.0354888104,
0.0150934132,
0.0846082196,
0.2433119267,
0.0013855948,
-0.1439165026,
0.0658170059,
0.0214115921,
0.0632369444,
-0.0222702511,
0.0591132604,
0.0913819149,
-0.159338966,
-0.072987169,
-0.3485812247,
-0.6411197186,
0.5931684375,
0.0152190737,
0.2974223793,
-0.1092364639,
0.1253543645,
-0.1252326071,
-0.0665414557,
-0.1924315989,
0.0858523026,
-0.6903443933,
0.4563925862,
-0.3439545631,
-0.3164693415,
0.0854330659,
0.1286398619,
0.1272042543,
0.0629171655,
-0.3114650249,
-0.1554633826,
-0.1371446997,
0.273756206,
0.0500024334,
0.3798842132,
0.2604947686,
0.0478866957,
-0.0883070678,
0.1361581683,
-0.1443155706,
0.2660084367,
-0.1457962841,
0.1602845341,
0.6300448179,
0.2263748348,
0.0876350701,
0.1180236638,
0.0999110788,
0.180159241,
0.4505482316,
-0.1196086183,
0.2838405967,
0.1534223109,
-0.245663479,
-0.0859762952,
-0.1731604338,
0.0266095232,
0.1403533518,
-0.0710092038,
-0.2451707572,
-0.5072768331,
0.0229652394,
-0.1004021317,
-0.283855617,
0.1920850724,
-0.1389443427,
-0.1155092046,
-0.1366225332,
0.0100554042,
-0.1499671191,
0.0124024637,
0.2389998436,
0.1092914715,
0.1071172133,
0.0390448198,
-0.1599377543,
0.0676304325,
-0.318974942,
0.1076068357,
0.0600416325,
0.0025913091,
0.0186859593,
-0.3042126894,
-0.1988710761,
-0.1583610326,
0.5377818346,
-0.2775845528,
-0.1767272651,
0.1544436961,
-0.2189523727,
0.1617811322,
-0.0572318994,
-0.1623833776,
0.0960540697,
-0.2508108616,
0.1171181425,
-0.3166572154,
-0.0351080485,
0.098995842,
0.137534216,
-0.0553016923,
-0.4262464941,
0.2236255705,
-0.1176379398,
-0.2754820883,
-0.2622303367,
-0.253308028,
-0.2522372603,
-0.053674072,
0.0124432417,
0.0894739479,
0.0535649844,
0.1997281611,
0.002888236,
0.1242300496,
-0.188188687,
0.1492074281,
0.3422457874,
0.2146971375,
0.0887438357,
0.4182577431,
-0.0754856095,
-0.1195181385,
0.1193064526,
-0.1425545216,
0.0659073964,
0.1734358072,
0.0209823195,
-0.0442313887,
-0.1935590357,
0.1850610077,
-0.2070487291,
0.0256012231,
0.1821523011,
-0.2491756529,
-0.0518875532,
-0.5617215633,
0.2494062334,
0.0738598704,
0.067726545,
0.4109148979,
-0.3907842338,
0.2015155554,
0.0754272491,
-0.2313456684,
0.6504806876,
0.0736463517,
0.0881635621,
0.1487649381,
0.1117282808,
0.2965191305,
-0.3508907259,
-0.0294310693,
-0.2505011559,
-0.3472850025,
-0.1095188484,
0.0057195323,
-0.0755163059,
0.2037743628,
-0.4529171288,
0.2717235684,
0.0804134011,
0.1007682681,
0.1423414946,
0.1922057569,
-0.432220161,
-0.477658093,
-0.0934280381,
0.2776035964,
-0.0358083881,
0.0977325067,
0.0071889553,
-0.4889372885,
0.2239519656,
-0.0698533431,
-0.0951441899,
0.2951118052,
-0.1394354701,
-0.0527404249,
-0.0592896231,
-0.149300769,
-0.1711424291,
-0.0017290097,
0.0456528626,
0.1290908754,
-0.0667388886,
-0.2347840816,
0.0996149853,
0.1690749526,
-0.0828699693,
0.0163716432,
-0.0160748065,
-0.090581812,
-0.0313158855,
0.2125653327,
-0.0223668814,
-0.2972494364,
0.3352220058,
0.1112993807,
0.1879847795,
-0.0241350159,
0.1233859956,
-0.0559423454,
-0.2772537172,
-0.1366435438,
0.2002326846,
-0.0011516527,
-0.1057825089,
0.1996786147,
-0.3057188392,
0.1168637127,
-0.0856274739,
0.2722876072,
-0.2928911746,
-0.1833309978,
0.0966349617,
0.108486332,
-0.1224908754,
-0.2051959187,
-0.0109002544,
-0.1528221965,
-0.2289034873,
0.1328242868,
-0.1085980162,
-0.0145628992,
0.0461222827,
0.105678454,
0.3143288791,
-0.082648322,
-0.1129460558,
-0.2226027399,
-0.1757501811,
-0.0217928383,
0.0609348044,
0.1874446571,
-0.0528292954,
-0.3012268245,
0.1146491095,
-0.1556029618,
-0.4133701622,
-0.1647641361,
0.0047679399,
-0.0826894268,
0.2117822617,
0.0214845464,
0.2862414718,
0.0922109261,
0.0864796862,
0.3474911451,
-0.1729051918,
-0.2952421606,
-0.1305459589,
0.036587324,
0.0136514213,
-0.3033669293,
0.0475080349,
-0.0766532272,
-0.1181805134,
-0.1469289064,
-0.0423743203,
-0.1797285676,
-0.1646388918,
0.0980867967,
0.3660687208,
-0.095124498,
-0.1975915432,
0.2122174799,
0.175721705,
0.4080310464,
-0.2142138034,
0.270359695,
-0.2747429907,
-0.1833761185,
0.008937519,
0.014299836,
0.2654149532,
0.0006209314,
0.5387876034,
-0.0729613528,
0.0540821142,
0.1276042908,
0.4856711626,
0.5763189793,
0.1162580028,
0.0633078218,
0.339278549,
0.2424702197,
-0.0149096632,
-0.1612721086,
-0.1451042891,
0.0817667693,
0.2144080549,
0.1754504293,
0.0635586679,
-0.1381352097,
0.1159015894,
-0.0612343661,
0.3221624494,
0.0464808904,
-0.0363398083,
0.3382008672,
-0.0906510055,
-0.0342283249,
0.0050206338,
0.2192101628,
0.2096402943,
0.0058657615,
-0.2238498181,
0.1948433369,
0.0777190328,
-0.0499833599,
-0.1037765294,
-0.5497683287,
-0.0261819791,
-0.0489131473,
0.4095352888,
0.1543281823,
0.2216167152,
0.3841308057,
-0.1885715425,
-0.0846783444,
-0.1591365188,
0.2543068826,
0.383684814,
0.1781924218,
-0.1679788381,
-0.1260277778,
-0.314984262,
0.067160368,
0.1537359804,
-0.0729959533,
0.4923074543,
0.1915844679,
0.1606827974,
-0.0661255717,
-0.1000318453,
-0.0972291976,
0.0908069164,
-0.3492743969,
0.0032695131,
0.3558558822,
-0.0915076286,
-0.1735153645,
0.1804721057,
0.2603228986,
0.4065502584,
0.1490021795,
0.267193675,
-0.4751037359,
-0.0750655085,
-0.1550795734,
-0.0344022028,
-0.2542771101,
-0.1303252131,
0.358589232,
0.2303626984,
-0.2132804543,
0.2875923216,
-0.2637987435,
0.3117209375,
-0.0585546717,
-0.2164425552,
0.4053499997,
0.0186492968,
-0.0651969314,
-0.2625106275,
-0.5676860213,
0.1010158807,
0.2122395933,
-0.0338516533,
0.1072403863,
-0.121642977,
0.1438966244,
0.1543099731,
0.4144613147,
0.3949384391,
0.0361761153,
-0.2469789535,
-0.3624832034,
-0.5733827353,
-0.0951141343,
-0.123916395,
-0.0341777653,
-0.1210253015,
0.2090029866,
0.1049380526,
0.3277128041,
-0.1910976321,
-0.0840968862,
-0.0529956631,
0.2399805486,
-0.3115416765,
-0.2180087715,
0.3811359107,
0.2422380745,
0.1788340956,
-0.3247345984,
0.1042404324,
-0.1712533683,
0.1709053516,
0.0398565531,
-0.1185323969,
-0.0539968461,
-0.4025967717,
0.282833904,
-0.0958732218,
0.0321706943,
-0.1776843667,
-0.0675871894,
-0.0553044565,
0.2258166522,
-0.1633225828,
-0.230779022,
0.105618678,
0.2309889793,
-0.1671705991,
0.3053312302,
-0.4869304299,
0.0720099807,
-0.1621164829,
0.0994070172,
-0.2005355805,
-0.0375053734,
0.0685533136,
0.0619378984,
0.0487973467,
0.0328513682,
-0.02453514,
0.0016896974,
-0.3895681202,
-0.2227325141,
0.2665092051,
-0.117208533,
-0.1949549019,
0.1183553487,
-0.0996253788,
-0.1284735501,
-0.0420602523,
-0.1198609173,
0.0525237024,
0.0201056749,
-0.0780211836,
0.1701494902,
0.0423086137,
-0.0696830601,
0.0823124573,
-0.1889218241,
0.2643685341,
0.2618149519,
-0.3311000466,
-0.149653241,
-0.0341496877
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | Hi @ZhaofengWu, thanks for reporting.
Unfortunately, I'm not able to reproduce your bug:
```python
In [1]: from datasets import load_dataset
In [2]: ds = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.91MB/s]
Downloading: 1.79kB [00:00, 1.79MB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to .cache\coqa\default\1.0.0\553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 49.0M/49.0M [00:06<00:00, 7.17MB/s]
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9.09M/9.09M [00:01<00:00, 6.08MB/s]
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:12<00:00, 6.48s/it]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 333.26it/s]
Dataset coqa downloaded and prepared to .cache\coqa\default\1.0.0\553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0. Subsequent calls will reuse this data.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 285.49it/s]
In [3]: ds
Out[3]:
DatasetDict({
train: Dataset({
features: ['source', 'story', 'questions', 'answers'],
num_rows: 7199
})
validation: Dataset({
features: ['source', 'story', 'questions', 'answers'],
num_rows: 500
})
})
```
Could you please give more details about your development environment? You can run the command `datasets-cli env` and copy-and-paste its output:
```
- `datasets` version:
- Platform:
- Python version:
- PyArrow version:
```
It might be because you are using an old version of `datasets`. Could you please update it (`pip install -U datasets`) and confirm if the problem parsists? | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 180 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
Hi @ZhaofengWu, thanks for reporting.
Unfortunately, I'm not able to reproduce your bug:
```python
In [1]: from datasets import load_dataset
In [2]: ds = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.91MB/s]
Downloading: 1.79kB [00:00, 1.79MB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to .cache\coqa\default\1.0.0\553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 49.0M/49.0M [00:06<00:00, 7.17MB/s]
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9.09M/9.09M [00:01<00:00, 6.08MB/s]
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:12<00:00, 6.48s/it]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 333.26it/s]
Dataset coqa downloaded and prepared to .cache\coqa\default\1.0.0\553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0. Subsequent calls will reuse this data.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 285.49it/s]
In [3]: ds
Out[3]:
DatasetDict({
train: Dataset({
features: ['source', 'story', 'questions', 'answers'],
num_rows: 7199
})
validation: Dataset({
features: ['source', 'story', 'questions', 'answers'],
num_rows: 500
})
})
```
Could you please give more details about your development environment? You can run the command `datasets-cli env` and copy-and-paste its output:
```
- `datasets` version:
- Platform:
- Python version:
- PyArrow version:
```
It might be because you are using an old version of `datasets`. Could you please update it (`pip install -U datasets`) and confirm if the problem parsists? | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | I'm getting the same error in two separate environments:
```
- `datasets` version: 1.15.1
- Platform: Linux-5.4.0-84-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.11
- PyArrow version: 6.0.0
```
```
- `datasets` version: 1.15.1
- Platform: macOS-10.16-x86_64-i386-64bit
- Python version: 3.9.5
- PyArrow version: 6.0.0
``` | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 43 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
I'm getting the same error in two separate environments:
```
- `datasets` version: 1.15.1
- Platform: Linux-5.4.0-84-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.11
- PyArrow version: 6.0.0
```
```
- `datasets` version: 1.15.1
- Platform: macOS-10.16-x86_64-i386-64bit
- Python version: 3.9.5
- PyArrow version: 6.0.0
``` | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | I'm sorry, but don't get to reproduce the error in the Linux environment.
@mariosasko @lhoestq can you reproduce it? | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 19 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
I'm sorry, but don't get to reproduce the error in the Linux environment.
@mariosasko @lhoestq can you reproduce it? | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | I also can't reproduce the error on Windows/Linux (tested both the master and the `1.15.1` version). | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 16 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
I also can't reproduce the error on Windows/Linux (tested both the master and the `1.15.1` version). | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | Maybe the file had issues during the download ? Could you try to delete your cache and try again ?
By default the downloads cache is at `~/.cache/huggingface/datasets/downloads`
Also can you check if you have a proxy that could prevent the download to succeed ? Are you able to download those files via your browser ? | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 56 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
Maybe the file had issues during the download ? Could you try to delete your cache and try again ?
By default the downloads cache is at `~/.cache/huggingface/datasets/downloads`
Also can you check if you have a proxy that could prevent the download to succeed ? Are you able to download those files via your browser ? | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | I got the same error in a third environment (google cloud) as well. The internet for these three environments are all different so I don't think that's the reason.
```
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-1022-gcp-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 6.0.0
```
I deleted the entire `~/.cache/huggingface/datasets` on my local mac, and got a different first time error.
```
Python 3.9.5 (default, May 18 2021, 12:31:01)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.19MB/s]
Downloading: 1.79kB [00:00, 712kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.36MB/s]
50%|████████████████████████████████████████████████████████████████████████████████████████████████████████████▌ | 1/2 [00:00<00:00, 2.47it/s]Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/Users/zhaofengw/.cache/huggingface/modules/datasets_modules/datasets/coqa/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0/coqa.py", line 70, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
mapped = [
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 217, in <listcomp>
_single_map_nested((function, obj, types, None, True))
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 152, in _single_map_nested
return function(data_struct)
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json
>>> dataset = load_dataset("coqa")
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 6.26it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1087.45it/s]
50%|████████████████████████████████████████████████████████████████████████████████████████████████████████████▌ | 1/2 [00:45<00:45, 45.60s/it]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
I can access the URL using my browser, though I did notice a redirection -- could that have something to do with it? | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 380 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
I got the same error in a third environment (google cloud) as well. The internet for these three environments are all different so I don't think that's the reason.
```
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-1022-gcp-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 6.0.0
```
I deleted the entire `~/.cache/huggingface/datasets` on my local mac, and got a different first time error.
```
Python 3.9.5 (default, May 18 2021, 12:31:01)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.19MB/s]
Downloading: 1.79kB [00:00, 712kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.36MB/s]
50%|████████████████████████████████████████████████████████████████████████████████████████████████████████████▌ | 1/2 [00:00<00:00, 2.47it/s]Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/Users/zhaofengw/.cache/huggingface/modules/datasets_modules/datasets/coqa/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0/coqa.py", line 70, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
mapped = [
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 217, in <listcomp>
_single_map_nested((function, obj, types, None, True))
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 152, in _single_map_nested
return function(data_struct)
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json
>>> dataset = load_dataset("coqa")
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 6.26it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1087.45it/s]
50%|████████████████████████████████████████████████████████████████████████████████████████████████████████████▌ | 1/2 [00:45<00:45, 45.60s/it]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
I can access the URL using my browser, though I did notice a redirection -- could that have something to do with it? | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | I can run your notebook fine, but if I create one myself, it has that error: https://colab.research.google.com/drive/107GIdhrauPO6ZiFDY7G9S74in4qqI2Kx?usp=sharing.
It's so funny -- it's like whenever you guys run it it's fine but whenever I run it it fails, whatever the environment is. | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 41 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
I can run your notebook fine, but if I create one myself, it has that error: https://colab.research.google.com/drive/107GIdhrauPO6ZiFDY7G9S74in4qqI2Kx?usp=sharing.
It's so funny -- it's like whenever you guys run it it's fine but whenever I run it it fails, whatever the environment is. | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | I guess it must be some connection issue: the data owner may be blocking requests coming from your country or IP range... | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 22 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
I guess it must be some connection issue: the data owner may be blocking requests coming from your country or IP range... | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | I mean, I don't think google colab sends the connection from my IP. Same applies to google cloud. | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 18 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
I mean, I don't think google colab sends the connection from my IP. Same applies to google cloud. | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | Hello, I am having the same error with @ZhaofengWu first with "social bias frames" dataset. As I found this report, I tried also "coqa" and it fails as well.
I test this on Google Colab.
```
- `datasets` version: 1.15.1
- Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.12
- PyArrow version: 3.0.0
```
Then another environment
```
- `datasets` version: 1.15.1
- Platform: macOS-12.0.1-arm64-arm-64bit
- Python version: 3.9.7
- PyArrow version: 6.0.1
```
I tried the notebook @albertvillanova provided earlier, and it fails...
| ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 82 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
Hello, I am having the same error with @ZhaofengWu first with "social bias frames" dataset. As I found this report, I tried also "coqa" and it fails as well.
I test this on Google Colab.
```
- `datasets` version: 1.15.1
- Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.12
- PyArrow version: 3.0.0
```
Then another environment
```
- `datasets` version: 1.15.1
- Platform: macOS-12.0.1-arm64-arm-64bit
- Python version: 3.9.7
- PyArrow version: 6.0.1
```
I tried the notebook @albertvillanova provided earlier, and it fails...
| [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | Hi, still not able to reproduce the issue with `coqa`. If you still have this issue, could you please run these additional commands ?
```python
>>> import os
>>> from hashlib import md5
>>> from datasets.utils import DownloadManager, DownloadConfig
>>> path = DownloadManager(download_config=DownloadConfig(use_etag=False)).download("https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json") # it returns the cached file
>>> os.path.getsize(path)
9090845
>>> m = md5()
>>> m.update(open(path, "rb").read())
>>> m.hexdigest()
`95d427588e3733e4ebec55f6938dbba6`
>>> open(path).read(500)
'{\n "version": "1.0",\n "data": [\n {\n "source": "mctest",\n "id": "3dr23u6we5exclen4th8uq9rb42tel",\n "filename": "mc160.test.41",\n "story": "Once upon a time, in a barn near a farm house, there lived a little white kitten named Cotton. Cotton lived high up in a nice warm place above the barn where all of the farmer\'s horses slept. But Cotton wasn\'t alone in her little home above the barn, oh no. She shared her hay bed with her mommy and 5 other sisters. All of her sisters w'
```
This way we can know whether you downloaded a corrupted file or an error file that could cause the `NonMatchingChecksumError` error to happen | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 169 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
Hi, still not able to reproduce the issue with `coqa`. If you still have this issue, could you please run these additional commands ?
```python
>>> import os
>>> from hashlib import md5
>>> from datasets.utils import DownloadManager, DownloadConfig
>>> path = DownloadManager(download_config=DownloadConfig(use_etag=False)).download("https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json") # it returns the cached file
>>> os.path.getsize(path)
9090845
>>> m = md5()
>>> m.update(open(path, "rb").read())
>>> m.hexdigest()
`95d427588e3733e4ebec55f6938dbba6`
>>> open(path).read(500)
'{\n "version": "1.0",\n "data": [\n {\n "source": "mctest",\n "id": "3dr23u6we5exclen4th8uq9rb42tel",\n "filename": "mc160.test.41",\n "story": "Once upon a time, in a barn near a farm house, there lived a little white kitten named Cotton. Cotton lived high up in a nice warm place above the barn where all of the farmer\'s horses slept. But Cotton wasn\'t alone in her little home above the barn, oh no. She shared her hay bed with her mommy and 5 other sisters. All of her sisters w'
```
This way we can know whether you downloaded a corrupted file or an error file that could cause the `NonMatchingChecksumError` error to happen | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | ```
>>> import os
>>> from hashlib import md5
>>> from datasets.utils import DownloadManager, DownloadConfig
>>> path = DownloadManager(download_config=DownloadConfig(use_etag=False)).download("https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json") # it returns the cached file
>>> os.path.getsize(path)
222
>>> m = md5()
>>> m.update(open(path, "rb").read())
>>> m.hexdigest()
'1195812a37c01a4481a4748c85d0c6a9'
>>> open(path).read(500)
'<html>\n<head><title>503 Service Temporarily Unavailable</title></head>\n<body bgcolor="white">\n<center><h1>503 Service Temporarily Unavailable</h1></center>\n<hr><center>nginx/1.10.3 (Ubuntu)</center>\n</body>\n</html>\n'
```
Looks like there was a server-side error when downloading the dataset? But I don't believe this is a transient error given (a) deleting the cache and re-downloading gives the same error; (b) it happens on multiple platforms with different network configurations; (c) other people are getting this error too, see above. So I'm not sure why it works for some people but not others. | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 114 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
```
>>> import os
>>> from hashlib import md5
>>> from datasets.utils import DownloadManager, DownloadConfig
>>> path = DownloadManager(download_config=DownloadConfig(use_etag=False)).download("https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json") # it returns the cached file
>>> os.path.getsize(path)
222
>>> m = md5()
>>> m.update(open(path, "rb").read())
>>> m.hexdigest()
'1195812a37c01a4481a4748c85d0c6a9'
>>> open(path).read(500)
'<html>\n<head><title>503 Service Temporarily Unavailable</title></head>\n<body bgcolor="white">\n<center><h1>503 Service Temporarily Unavailable</h1></center>\n<hr><center>nginx/1.10.3 (Ubuntu)</center>\n</body>\n</html>\n'
```
Looks like there was a server-side error when downloading the dataset? But I don't believe this is a transient error given (a) deleting the cache and re-downloading gives the same error; (b) it happens on multiple platforms with different network configurations; (c) other people are getting this error too, see above. So I'm not sure why it works for some people but not others. | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | `wget https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json` does work. So I suspect there might be some problem in `datasets`' networking code? Can you give me some snippet that simulates how `datasets` requests the resource which I can run on my end? | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 36 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
`wget https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json` does work. So I suspect there might be some problem in `datasets`' networking code? Can you give me some snippet that simulates how `datasets` requests the resource which I can run on my end? | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | Ok This is an issue with the server that hosts the data at `https://nlp.stanford.edu/nlp/data` that randomly returns 503 (by trying several times it also happens on my side), hopefully it can be fixed soon. I'll try to reach the people in charge of hosting the data | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 46 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
Ok This is an issue with the server that hosts the data at `https://nlp.stanford.edu/nlp/data` that randomly returns 503 (by trying several times it also happens on my side), hopefully it can be fixed soon. I'll try to reach the people in charge of hosting the data | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3269 | coqa NonMatchingChecksumError | You're right. I just opened a PR that would show this error if it happens again:
```python
ConnectionError: Couldn't reach https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json (error 503)
``` | ```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
``` | 24 | coqa NonMatchingChecksumError
```
>>> from datasets import load_dataset
>>> dataset = load_dataset("coqa")
Downloading: 3.82kB [00:00, 1.26MB/s]
Downloading: 1.79kB [00:00, 733kB/s]
Using custom data configuration default
Downloading and preparing dataset coqa/default (download: 55.40 MiB, generated: 18.35 MiB, post-processed: Unknown size, total: 73.75 MiB) to /Users/zhaofengw/.cache/huggingface/datasets/coqa/default/1.0.0/553ce70bfdcd15ff4b5f4abc4fc2f37137139cde1f58f4f60384a53a327716f0...
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.38MB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 222/222 [00:00<00:00, 1.32MB/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.91it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1117.44it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/Users/zhaofengw/miniconda3/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://nlp.stanford.edu/data/coqa/coqa-train-v1.0.json', 'https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json']
```
You're right. I just opened a PR that would show this error if it happens again:
```python
ConnectionError: Couldn't reach https://nlp.stanford.edu/data/coqa/coqa-dev-v1.0.json (error 503)
``` | [
-0.2934430242,
-0.1696564257,
-0.237728551,
0.1443958431,
0.175302878,
-0.0322034322,
0.1085318327,
0.3469724655,
0.1612990946,
0.3450761735,
-0.1242234036,
0.0163034536,
0.132706821,
0.3179681301,
-0.2400150299,
0.410885632,
-0.0373039171,
0.1308017224,
-0.1365240365,
-0.0846401453,
-0.1620350033,
0.1659810841,
-0.0158252139,
-0.2111381888,
0.0286177136,
-0.1091401726,
0.1012178212,
0.1480059475,
-0.2446722388,
-0.2835564315,
0.0949821621,
0.1372841001,
-0.2691482902,
0.3023280203,
-0.0001078333,
-0.0027386425,
0.3951041698,
-0.0393310003,
-0.3947452903,
0.1491571218,
-0.5660780668,
-0.3265204728,
-0.0497069918,
-0.1700812876,
-0.0475755557,
0.2368939817,
-0.065808244,
-0.0895459056,
0.2255400419,
0.3060498238,
0.3302009106,
0.5339955688,
-0.1040196791,
-0.1637517959,
0.0723611116,
0.0312910341,
-0.1243561655,
0.2001533061,
0.2160927206,
0.1913789809,
-0.2725892663,
0.3140356541,
-0.0051483084,
0.0948442072,
-0.1797522455,
-0.1449497938,
0.1295253336,
-0.1041831002,
0.5087621212,
0.284276247,
0.2749398947,
-0.1762847006,
-0.2551175654,
-0.0769869685,
-0.2005286515,
-0.3510761261,
0.24585253,
0.1496862769,
-0.3402377367,
-0.1736996025,
-0.2658526003,
0.3822208345,
0.0357887261,
-0.1117658615,
-0.2776522636,
-0.0641214922,
-0.145925656,
-0.1076812074,
0.1980188787,
-0.186810106,
0.1026506349,
-0.1099826097,
-0.2069360167,
0.0390763506,
-0.5156918168,
-0.1497012675,
0.3126576245,
0.3797364533,
0.341391176,
0.2298101783,
0.1898248196,
0.2144636661,
0.0262920111,
-0.0213103648,
-0.1556118131,
0.3892469108,
0.0111364517,
-0.2469293326,
0.2272473425,
0.3603816926,
-0.0843030363,
0.0355640538,
0.0979840681,
-0.3103550076,
0.1675388664,
0.253408432,
0.0696225315,
-0.4281232953,
-0.434135139,
0.1496005207,
0.1567329019,
0.0682204813,
0.181706205,
0.5912111402,
-0.0307602361,
-0.063899599,
-0.1661641598,
0.004891451,
-0.3066589534,
-0.134027198,
-0.3710194528,
0.0318624601,
-0.1445314139,
-0.0073272297,
0.1801052988,
-0.1121242866,
0.2391832918,
-0.1675235778,
0.3385013342,
-0.0212340895,
0.0217904095,
-0.2919426858,
0.0382426493,
0.402638346,
-0.0166558139,
0.0475690328,
0.2840786278,
-0.0009176481,
-0.1435099095,
-0.0387286097,
-0.032404542,
-0.2684519589,
0.1098729968,
0.3479249179,
-0.0760672316,
-0.002159222,
0.2647091746,
-0.2092482001,
0.3453939557,
-0.0610554144,
0.1354072392,
0.0132578742,
-0.1695468277,
-0.2886041105,
0.1636694819,
0.4162477553,
-0.0739363655,
0.032691773,
0.0389645696,
-0.1275648177,
0.173093453,
0.1494191587,
0.0685005561,
0.0992115214,
-0.2140761465,
-0.1019614935,
0.2160826623,
-0.3309717476,
-0.6776992679,
0.0996281877,
0.045031514,
0.1138059795,
0.155923605,
0.0215120781,
0.0979758352,
-0.0356187634,
0.073812589,
-0.0027296613,
0.0310514458,
0.1135118678,
-0.3921762705,
-0.3178521097,
-0.0096484795,
0.1058152616,
0.1630400568,
-0.0572238602,
0.2945694029,
-0.4578174055,
0.2040491849,
-0.0922111273,
-0.0113182217,
0.1265554875,
0.1832434684,
-0.2032737136,
-0.0444227755,
0.0047911778,
-0.2321655601,
0.2732805312,
-0.4459484816,
0.0604503043,
-0.1888538748,
-0.2607714534,
-0.3654575944,
-0.0270659998,
-0.2108933479,
-0.1442323178,
0.3075667918,
0.2736819983,
0.2748443186,
0.0727433711,
0.1172344089,
0.4088439643,
-0.1587980092,
-0.0446122289,
-0.3123232424,
0.0431372523,
-0.0987406746,
-0.0775051862,
-0.0335516669,
0.3281103671,
0.1500928998,
-0.0227374267,
-0.07894665,
0.3007959425,
0.1749035567,
0.1836466193,
-0.0894928575,
0.1273786426,
-0.0025925376,
0.0491321646,
0.0637914836,
0.1695272774,
0.0761690214,
-0.0143558169,
-0.2190439999,
0.4914735854,
-0.1414712369,
0.1785105914,
0.1221495122,
-0.1497724205,
0.245729208,
-0.1566765159,
-0.1108926833,
-0.1186989546,
0.2318891585,
0.1775550842,
0.044596415,
0.1038220301,
-0.1184021458,
0.1138404459,
0.3319090307,
-0.0649760589,
0.0596817397,
0.1184133142,
0.0995198563,
-0.0922823325,
0.0749604702,
0.3611771464,
0.4361036122,
0.1948367953,
0.1704946607,
-0.0578174144,
-0.0070517855,
-0.1699599922,
0.1295238286,
0.1215305626,
-0.038229458,
0.4889441431,
0.2384732366,
-0.1947402358,
-0.4842347801,
-0.1763323247,
-0.0725153461,
0.2050755322,
-0.2900424898,
0.0486945063,
-0.1766153872,
-0.2451493889,
0.0188160464,
-0.2312793881,
0.0636471212,
-0.4028051496,
0.1215568036,
0.1883774251,
-0.0681356043,
0.2474040389,
-0.3666555882,
0.170792222,
0.2022455186,
-0.2321037352,
-0.181701839,
0.2013235688,
-0.1045291349,
0.2084092945,
0.1824285984,
0.0490029268,
0.5008369684,
-0.3371621072,
0.0265547261,
-0.2955659628,
-0.2231433094,
-0.0428611971,
-0.0206171926,
0.0258955825,
0.2395589799,
0.1678853929,
-0.0973241106,
-0.1612112969,
0.1723998189,
-0.0325508602,
-0.4242857695,
0.0756642595,
-0.2023721784,
0.0788615644,
-0.1848689616,
-0.0412909612,
-0.2166951448,
-0.4261757731,
0.1051653251,
0.166456908,
0.2115246505,
0.2834844291,
0.0309406035,
0.183701843,
0.0693151057,
0.2948220372,
-0.3551122546,
-0.6185639501,
0.3038220704,
-0.118510209,
-0.3948781192,
-0.0802290887,
-0.2994074821,
0.525164783,
-0.0534646325,
-0.2560552955,
-0.2709776759,
-0.4396079183,
0.1916177869,
0.0583117642,
-0.0937014371,
0.4126137495,
-0.0196928438,
-0.3062775731,
-0.0540689938,
-0.1069870517,
0.1014085039,
-0.077489242,
0.257738024,
-0.2263452709,
0.4307520092,
0.0870747715,
0.3716138303,
0.3967953026,
-0.0432464033,
0.2767595649,
-0.0012932388,
0.3667162657,
-0.2927216291,
-0.3451110721,
0.110485971,
-0.01012058,
-0.1081388295,
0.1703723222,
-0.0490061231,
0.1882526726,
-0.0010119332,
-0.0459562987,
-0.3217918873,
-0.2026648521,
-0.0299575087,
-0.011170893,
0.2061980218,
-0.0590059794,
0.1796007454,
-0.0741926804,
-0.0533303246,
0.0754493624,
0.2305395454,
-0.1735406667,
-0.2223844379,
-0.1799038947,
0.0211428013,
-0.5448864102,
0.3739604652,
0.1448878944,
0.1916565746,
-0.1822149754,
-0.2147836536,
0.2275916785,
-0.2760963738,
0.5989826918,
0.019277567,
0.0691467077,
0.0613022484,
-0.0501546077,
-0.1057773605,
-0.0557770096,
-0.0333673693,
-0.0936838835,
0.2060309052,
-0.0033684019,
-0.4297481775,
0.0066290381,
0.1548218429,
0.192213729,
-0.0730449334,
-0.0864098594,
-0.4429221451,
-0.4385753572,
-0.403309375,
0.2203483433,
-0.1963851303,
0.3476667106,
-0.2539180815,
-0.0484050661,
0.0242639668,
-0.100658372,
0.269505471,
0.1647170633,
0.2291473001,
0.1105966046,
0.2266195565,
-0.2442920059,
0.1307040006,
0.1984191835,
0.5014004707,
0.0498897284,
-0.0383313075,
0.0411422811,
-0.09934818,
-0.0847575217,
0.151436165,
-0.0793081298,
0.0613130964,
0.0819389075,
0.1797144711,
0.00780715,
0.0676836744,
0.1910931617,
0.0790443122,
-0.4913079143,
0.0001257442,
0.1833234131,
-0.1703172177,
-0.1291859001,
0.2233826816,
-0.0733984113,
-0.066630356,
0.1043284684,
0.1540920436,
0.9350463748,
-0.0141390264,
0.0586125888,
0.2932868898,
-0.0798035711,
0.1242979839,
-0.2610678077,
0.091599986,
-0.3085730672,
-0.410500437,
-0.0824930519,
-0.1305320859,
0.2970251739,
-0.1436820179,
-0.1895328015,
0.2311277837,
-0.0813200846,
0.1133311018,
0.0087500988,
0.030756209,
-0.4008615315,
-0.0407151878,
0.0171798375,
0.2892784774,
0.133419767,
0.2058302611,
-0.1205151975,
0.058274176,
-0.1015843824,
-0.2489908189,
-0.1387998909,
-0.0394940078,
-0.1946359128,
0.0359967835,
0.1683906764,
-0.1722527742,
-0.238809377,
0.0383977816,
0.2140369117,
0.1849023402,
-0.1543779522,
0.1547949761,
0.3190516829,
0.2688972354,
0.1050469875,
-0.1284434348,
0.0714566037,
-0.1266547143,
-0.2375262678,
0.1787440479,
-0.0314926952,
-0.194130078,
0.0898925215,
0.2007212192,
0.1391054988,
-0.3949235082,
-0.0590672269,
-0.1932722181,
-0.0683519021,
-0.2689080834,
0.2183005512,
0.1249439344,
-0.1642825156,
0.3021155,
-0.2200938612,
-0.3816448748,
-0.1955352724,
0.4039524496,
0.0598184727,
-0.0554731749,
0.3984763622,
-0.1549909115,
-0.3118522167,
-0.3498164117,
-0.0850600675,
-0.2027031183,
-0.1755754948,
0.0584947579,
-0.0307369791,
-0.150759697,
-0.020298453,
0.5994765759,
0.06018693,
0.199202463,
0.0252664015,
-0.4625315666,
-0.427421689,
-0.061735183,
0.0370672904,
0.3987520337,
-0.1591625512,
0.1644561291,
0.0129474821,
-0.0042927493,
-0.4359677136,
0.0313072875,
-0.4266007841,
-0.0180367995,
-0.0843428448,
0.0238499325,
0.3092127144,
0.213083446,
0.292349577,
0.1279960424,
-0.3021944165,
-0.3937189281,
0.0865337923,
0.0900887996,
-0.1484636366,
-0.0934305489,
0.1611850262,
0.1144799739,
-0.0896553546,
-0.1671104878,
0.1375494599,
0.0974414051,
-0.0577676035,
-0.0011658303,
0.0331801996,
0.113571085,
0.0654411688,
0.0381095707,
-0.1249890924,
-0.0648960173,
0.0818472728,
0.0623306558,
-0.3164996505,
-0.0626520365,
0.2179889232,
0.2692117393,
0.176572606,
-0.2573846877,
0.1840887964,
-0.0802133754,
-0.2830423713,
0.1289840341,
0.2626401782,
0.1055786684,
-0.1039329544,
-0.0585353523,
-0.0069693862,
0.3814463913,
-0.2459751964,
0.062213026,
-0.1910578609,
-0.1188846529,
0.3324759007,
0.2027128637,
0.0376776978,
-0.4949340522,
0.7025291324,
-0.003279794,
0.0985263735,
-0.2750313878,
0.0699715465,
0.3853772283,
-0.0948828235,
0.0658303946,
0.3065244853,
-0.2056849003,
0.0029286148,
0.1775145084,
-0.1299330145,
0.3608566523,
-0.3100310266,
0.2230666131,
-0.2110107541,
-0.5824345946,
0.4352261126,
0.1991280764,
-0.189480111,
-0.1579815149,
0.2114368975,
0.0067305546,
0.123810418,
0.1221540794,
-0.5876334906,
0.054521583,
-0.183152616,
-0.2643302083,
0.0463313051,
-0.259043932,
0.0653783977,
0.0878832936,
0.1754553169,
-0.0345999971,
0.1482846737,
-0.0659703612,
-0.0713205636,
-0.2589383125,
-0.0503297225,
0.0569070466,
-0.0195627138,
-0.2265185267,
0.3146122694,
0.3966417611,
0.1099560931,
0.0653283969,
0.2692409456,
0.4736743569,
0.3089515567,
0.0783888847,
0.1179268658,
-0.1571086794,
-0.0698158965,
-0.2973883152,
0.5326288342,
0.0560899079,
0.1240232885,
0.3892198205,
0.3386824429,
-0.3511866629,
-0.1018039435,
-0.0049909553,
-0.2602483332,
-0.2527104616,
0.4092099667,
0.041401349,
0.1165076569,
-0.1890029758,
0.0863114372,
-0.4327800274,
-0.127989918,
-0.1297753453,
-0.1007032022,
0.263833195,
-0.0474277511,
0.1359547377,
-0.1330425441,
0.3954503536,
0.1150843203,
0.2237358689,
-0.3540232182,
-0.2997911274,
-0.4439298511,
0.2721992135,
0.110125877,
-0.0883072466,
-0.2889267802,
0.400169462,
-0.1344104558,
0.0054162126,
0.3089108765,
0.203141883,
0.2190781385,
0.0123162502,
-0.159269169,
0.1776185185,
-0.1612561792,
-0.1766408384,
-0.0006083038,
-0.4943608642,
0.2499809414,
0.0121271415,
0.2927894592,
0.0369374231,
-0.080229193,
-0.0858589411,
0.1793815792,
0.2793872356,
0.2242033333,
0.4025241435,
-0.2606060207,
-0.1163611859,
-0.1769798398,
0.1117724776,
0.0072359778,
0.1602901965,
0.1738743931,
0.2379710376,
0.1937273443,
-0.0022484856,
-0.0570097193,
0.6293025017,
0.3451422155,
-0.171321854,
0.0061197029,
0.2479421496,
-0.0495764799,
0.0593612976,
-0.0218347367,
0.1271123737,
0.1617436558,
0.2288959175,
-0.2351589054,
-0.291995436,
0.3922100961,
-0.3292051256,
-0.2399608493,
-0.168235153,
0.4680684209,
-0.2205518633,
-0.083651796,
-0.4472206533,
0.2353636622,
0.3340348005,
0.0017694505,
-0.1009071246,
0.3955877423,
-0.21015203,
0.0460621193,
-0.140016228,
0.2575280666,
0.1515213251,
-0.0527010337,
-0.0923732147,
-0.2995963991
] |
https://github.com/huggingface/datasets/issues/3268 | Dataset viewer issue for 'liweili/c4_200m' | Hi ! I think the issue comes from this [line](https://huggingface.co/datasets/liweili/c4_200m/blob/main/c4_200m.py#L87):
```python
path = filepath + "/*.tsv*"
```
You can fix this by doing this instead:
```python
path = os.path.join(filepath, "/*.tsv*")
```
Here is why:
Locally you can append `"/*.tsv*"` to your local path, however it doesn't work in streaming mode, and the dataset viewer does use the streaming mode.
In streaming mode, the download and extract part is done lazily. It means that instead of using local paths, it's still passing around URLs and [chained URLs](https://filesystem-spec.readthedocs.io/en/latest/features.html#url-chaining)
Therefore in streaming mode, `filepath` is not a local path, but instead is equal to
```python
zip://::https://huggingface.co/datasets/liweili/c4_200m/resolve/main/data.zip
```
The `zip://` part means that we navigate inside the remote ZIP file.
You must use `os.path.join` to navigate inside it and get your TSV files:
```python
>>> os.path.join(filepath, "/*.tsv*")
zip://*.tsv*::https://huggingface.co/datasets/liweili/c4_200m/resolve/main/data.zip
```
`datasets` extends `os.path.join`, `glob.glob`, etc. in your dataset scripts to work with remote files. | ## Dataset viewer issue for '*liweili/c4_200m*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/liweili/c4_200m)*
*Server Error*
```
Status code: 404
Exception: Status404Error
Message: Not found. Maybe the cache is missing, or maybe the ressource does not exist.
```
Am I the one who added this dataset ? Yes
| 149 | Dataset viewer issue for 'liweili/c4_200m'
## Dataset viewer issue for '*liweili/c4_200m*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/liweili/c4_200m)*
*Server Error*
```
Status code: 404
Exception: Status404Error
Message: Not found. Maybe the cache is missing, or maybe the ressource does not exist.
```
Am I the one who added this dataset ? Yes
Hi ! I think the issue comes from this [line](https://huggingface.co/datasets/liweili/c4_200m/blob/main/c4_200m.py#L87):
```python
path = filepath + "/*.tsv*"
```
You can fix this by doing this instead:
```python
path = os.path.join(filepath, "/*.tsv*")
```
Here is why:
Locally you can append `"/*.tsv*"` to your local path, however it doesn't work in streaming mode, and the dataset viewer does use the streaming mode.
In streaming mode, the download and extract part is done lazily. It means that instead of using local paths, it's still passing around URLs and [chained URLs](https://filesystem-spec.readthedocs.io/en/latest/features.html#url-chaining)
Therefore in streaming mode, `filepath` is not a local path, but instead is equal to
```python
zip://::https://huggingface.co/datasets/liweili/c4_200m/resolve/main/data.zip
```
The `zip://` part means that we navigate inside the remote ZIP file.
You must use `os.path.join` to navigate inside it and get your TSV files:
```python
>>> os.path.join(filepath, "/*.tsv*")
zip://*.tsv*::https://huggingface.co/datasets/liweili/c4_200m/resolve/main/data.zip
```
`datasets` extends `os.path.join`, `glob.glob`, etc. in your dataset scripts to work with remote files. | [
-0.2454840243,
0.1612445265,
-0.0047895024,
0.3759571612,
0.2006412297,
0.0835294798,
0.017746523,
0.261454463,
-0.2173461169,
0.0912251621,
-0.3134583533,
0.1573549211,
0.0079844957,
0.2152266353,
0.2205264717,
0.0133887595,
-0.1173203066,
0.2433596104,
-0.2229032665,
0.0875222385,
-0.0819816887,
0.2039628923,
0.0571883991,
-0.1722358912,
-0.2705697417,
0.1907846928,
-0.1488795727,
0.288214922,
-0.1111177579,
-0.6126881838,
0.2664822936,
-0.0049950015,
0.2889631689,
0.6885042787,
-0.0001105496,
0.1075363085,
0.2653591335,
-0.0911097378,
-0.4746024907,
-0.3467018008,
-0.1072273031,
-0.1676361859,
0.0859416723,
-0.0260310974,
-0.1511453837,
-0.0661419481,
0.0234842654,
-0.4599922895,
0.0990450382,
0.3113710284,
0.2359667867,
0.3971328139,
0.1139574274,
0.0240680389,
0.2344637662,
-0.149262175,
-0.1920458674,
0.2605820298,
0.1034300998,
0.2880614698,
0.1849692017,
0.3973649144,
0.0660350248,
0.1345081627,
0.2715277672,
0.087343052,
-0.3370212018,
-0.2380257398,
0.2264808714,
0.3325202465,
0.8139746785,
-0.2377407998,
-0.4480223358,
0.0392179899,
-0.0614193194,
-0.1135832742,
0.3953276575,
0.246643126,
0.0243917946,
0.3263281882,
-0.3484249413,
-0.1097134948,
-0.1798069626,
0.1515510976,
-0.111345768,
-0.0297595225,
-0.1103073806,
0.0269332062,
0.1527386904,
0.0888518468,
0.1609348059,
-0.1575240195,
0.0598140173,
0.1952261627,
-0.1826792508,
0.1605295837,
0.1444554478,
0.2999970317,
-0.0695824027,
0.0858400017,
0.0276502278,
-0.0381890796,
-0.3342806697,
0.0905795246,
0.0306444541,
0.2244124115,
-0.0235125441,
-0.1109426767,
0.2421593517,
0.157148242,
0.1814278811,
-0.1500177681,
0.0412574559,
-0.3092351258,
-0.3614298999,
-0.1372087449,
0.2456946522,
-0.2373045534,
-0.2536388338,
-0.0308153592,
-0.3394399285,
-0.1163482144,
0.0803876147,
0.4967272878,
-0.1258448511,
0.1490928978,
0.0518406406,
0.0117993644,
-0.1121576205,
-0.2160286158,
-0.2339533269,
-0.0507330149,
0.0415923595,
0.1851875633,
0.3104327619,
-0.5659939647,
0.2881627083,
-0.1249833182,
0.1115773991,
0.1561856866,
-0.004457037,
-0.0467589684,
0.0550034195,
0.2260519564,
0.158030808,
0.1581003666,
0.1557210833,
-0.2379746884,
-0.0251482632,
0.2053191662,
-0.1124523208,
-0.4792703986,
0.0265551526,
0.1625932455,
-0.3067869544,
-0.0527427197,
0.0482937694,
-0.1826136857,
-0.0551618971,
-0.1551411897,
-0.0999036431,
0.0098418174,
0.0465080105,
-0.21194534,
0.4221867025,
0.6251421571,
-0.7402746081,
-0.1058003008,
-0.1539007127,
-0.2142883688,
0.0332041495,
0.2141154855,
-0.1373027116,
-0.0332334824,
-0.3130739331,
0.1756114513,
0.2344188392,
-0.2659931183,
-0.6945864558,
0.3194250464,
-0.1403551251,
0.2352463156,
0.0914319679,
0.153769955,
-0.0617270917,
0.0669155419,
-0.2347424477,
0.0279858764,
0.0708603114,
-0.0777240247,
-0.3708675206,
-0.402387619,
0.2579991817,
0.1307425201,
0.0056605549,
-0.1212603971,
0.2856404781,
-0.2988799214,
0.4411122203,
-0.1474775672,
0.2673712373,
0.2194083035,
0.4051005542,
0.4267843068,
0.1570571512,
0.084329389,
-0.440669924,
0.3292780221,
0.0247235764,
0.1238875538,
-0.194661513,
-0.1100014225,
-0.248488158,
-0.1181234643,
-0.5552070141,
-0.2829395235,
0.1190056354,
0.2603209913,
0.0121087572,
0.1973341256,
-0.145919621,
0.1805493981,
0.0335316025,
0.0463067144,
-0.0383249857,
0.479268223,
-0.245231688,
-0.0198539998,
-0.1840586513,
-0.0131954066,
0.259634316,
-0.3770011067,
-0.2263392061,
0.4625578225,
-0.1251427531,
0.3128393292,
0.1454188675,
0.0555390343,
0.3521646559,
-0.3442874551,
0.1222265512,
0.3471747935,
0.1304809302,
0.0616361573,
-0.1801156849,
0.0026028119,
-0.4072600603,
0.2052416056,
0.1562404186,
0.1027370989,
0.4724954367,
0.0081077889,
0.0113703925,
-0.2205152661,
0.2582205832,
-0.3360018134,
0.3408622146,
-0.1546720713,
-0.1999176294,
0.3199419081,
0.2369764745,
0.0630916953,
-0.1968609244,
0.1369347274,
-0.165464133,
-0.0401046053,
0.3162789941,
0.4821521044,
0.373218894,
0.2158772796,
0.1355071813,
0.1857836992,
0.2586970329,
-0.2502014935,
0.2445153892,
-0.1284417808,
-0.105774492,
0.1538605094,
-0.0356163867,
0.0043190545,
-0.3857914805,
-0.1517292857,
-0.0047382866,
0.153087467,
-0.2330509871,
-0.111381568,
-0.6035801172,
-0.4227342308,
-0.1828662455,
-0.2892679572,
-0.3214909732,
-0.2378347069,
-0.0128635587,
0.1000827998,
-0.1851278096,
0.161405623,
-0.2108591348,
0.026597701,
-0.0488274768,
-0.1665710807,
-0.1567877084,
-0.070924595,
-0.2606438398,
0.068119593,
0.3430027068,
-0.194180727,
0.265948683,
-0.4196541011,
0.1470489949,
-0.7221472263,
-0.3414035738,
0.2202931345,
0.074872531,
0.1748154312,
0.0252282489,
0.2790076435,
0.031238202,
-0.202636525,
0.2610623538,
-0.0638501719,
-0.0238122717,
-0.1245520264,
0.0995024815,
-0.0550383218,
-0.1268588603,
-0.5566672683,
-0.4597981274,
-0.3991239667,
0.2498492897,
0.036099799,
0.0845150501,
0.0740626529,
0.1194673106,
0.1557634026,
0.0123088285,
-0.0885645524,
-0.2019214332,
-0.4414688051,
0.3702635765,
-0.356122613,
-0.4673225582,
0.415723294,
0.1684619784,
0.3881692886,
0.0728007182,
-0.64199543,
0.0526856743,
-0.1532004029,
0.3386891484,
0.0391766764,
0.0418382809,
0.3414313793,
0.085838154,
0.0237915497,
-0.1448867172,
-0.0742543489,
0.081370838,
-0.088331677,
0.5060950518,
-0.0077698254,
0.4312692881,
0.2839893401,
0.7230981588,
0.2288050801,
0.1070844978,
0.5675195456,
-0.0094823977,
0.5693777204,
-0.1736670583,
-0.339989841,
0.2069441676,
-0.186617285,
-0.0186331179,
0.3823512495,
0.3032042086,
-0.0890395418,
-0.2848818004,
-0.1012679189,
-0.3744971156,
-0.1814376861,
-0.0628139973,
0.039103739,
0.2648047805,
0.2186574191,
0.0195020735,
-0.1088100225,
-0.2818929553,
-0.0135828722,
0.5231145024,
0.2701670825,
0.209432587,
-0.0477631241,
-0.0996828973,
-0.4960175753,
0.3334945142,
0.1564785838,
0.0044943937,
-0.1412497312,
0.0400505736,
0.1563711315,
-0.1316234767,
0.546186626,
-0.1170695722,
0.0566799566,
0.1141376719,
-0.0486199148,
-0.2306219935,
-0.0497400537,
0.1120980531,
0.1214596778,
0.251400888,
0.0865308493,
-0.1678770036,
-0.0385653041,
0.0270979907,
0.2438961416,
-0.1280999482,
-0.2301671505,
-0.0506069586,
-0.2098640352,
-0.249066487,
-0.2564645708,
-0.2888320684,
0.0436065122,
-0.0473744161,
-0.0759948269,
0.2186348289,
-0.0184329636,
-0.0535949506,
0.1134519279,
0.4182209074,
0.0640940666,
0.2413075864,
0.4030177891,
0.3016622961,
0.4529573023,
0.557311058,
-0.2621689439,
-0.1403181255,
0.033224266,
-0.0868473947,
0.0080743572,
0.3015256226,
-0.0774845853,
-0.0001098934,
0.260391295,
0.1266153157,
-0.0770615712,
0.2330211401,
0.2273353487,
-0.0780640617,
-0.0526152626,
-0.5054689646,
0.4379642904,
-0.1317827553,
0.0323980488,
0.2948631942,
0.4223416746,
-0.1109615192,
-0.1223700866,
-0.2053895742,
0.8755206466,
0.0799959078,
0.0815345943,
0.3889015913,
-0.3008064032,
0.2681527436,
-0.411778599,
0.1987235099,
-0.0620908104,
-0.1168080047,
-0.1146165207,
-0.0796122327,
0.0461454615,
0.1146462783,
-0.2114367634,
0.2280839533,
0.0045371219,
0.1950341016,
0.0671843961,
0.2627464533,
-0.2319978774,
-0.0462177172,
-0.1702460647,
0.2536069751,
0.0605153851,
0.2377001345,
-0.1949465424,
-0.2261714488,
-0.1996270418,
-0.0951002389,
-0.1166917384,
0.136924088,
-0.411398977,
0.2141548693,
-0.2299104035,
-0.4066408277,
0.0544881411,
0.1813397855,
-0.0885644108,
0.0093017146,
-0.3550715446,
0.3009901941,
-0.0844901055,
0.011178988,
-0.0420332775,
0.0418386571,
-0.0789468512,
-0.1512598246,
-0.1845842004,
0.026849471,
-0.195830375,
-0.3915213048,
0.1806480139,
0.0216539502,
0.0617417917,
-0.0075390567,
-0.0062231524,
0.1076372862,
0.0381051078,
-0.1594858319,
0.1365118921,
0.0294908118,
-0.1626266688,
-0.1377041489,
-0.022669943,
0.0182427,
-0.1946407706,
0.4557733238,
-0.1516561806,
-0.0140383914,
0.5119035244,
0.2053074539,
-0.296979785,
-0.049850475,
0.0660005808,
-0.0885878205,
-0.3451422453,
-0.1350028217,
-0.0678185672,
0.1427019686,
-0.1133425906,
0.127914831,
0.2415684611,
0.0424124599,
-0.3165278733,
-0.3778786361,
-0.2508815229,
0.0926713124,
-0.0523243435,
0.3345432878,
-0.0417387187,
0.2935631275,
0.1805315614,
-0.0233756155,
-0.3176187575,
0.0530884452,
-0.019009728,
-0.0269835405,
0.2837825119,
-0.0061707795,
0.3018493652,
-0.180270955,
0.0508506894,
0.0566438586,
-0.3191369176,
-0.1373322159,
-0.0552637652,
0.1463152021,
0.1140019,
-0.3739011884,
-0.1412378997,
-0.0617654361,
-0.0865210146,
-0.0561583638,
0.0443680398,
0.066733636,
-0.0622649603,
-0.2162053287,
-0.0499629043,
-0.3077642322,
-0.2433761805,
0.144256264,
0.0932539031,
0.3983980119,
0.037814755,
0.1326184124,
-0.1306424588,
-0.0122736227,
0.1517981589,
-0.0481886677,
-0.0938427597,
0.0588178374,
0.3359798193,
-0.4196594059,
0.1527192146,
0.0971250385,
0.5122680664,
0.1493302137,
-0.0020618206,
0.015215762,
0.4144241512,
0.1840685159,
-0.2855257988,
-0.1783572435,
0.248361811,
0.0729177073,
0.1275535077,
-0.1231617033,
0.0626772717,
-0.0406336747,
0.210095033,
0.2427464575,
0.5329881907,
-0.0761462897,
0.2506955564,
0.2454528809,
-0.1253074855,
0.2497253418,
0.0766402781,
0.0221801139,
0.0588275641,
0.3469718993,
-0.4952676296,
0.0235378314,
-0.103578195,
0.1521076858,
0.0918716192,
-0.4523669481,
-0.2719516754,
-0.1527855694,
-0.1896135211,
-0.0314500853,
0.0055972966,
0.5174595118,
-0.2773379683,
-0.1631738693,
-0.2432804555,
0.3747977614,
-0.0523928925,
0.1566112041,
0.148382172,
-0.3060133159,
-0.0917822495,
0.1495713145,
0.0185892154,
-0.117861636,
-0.0424818955,
0.0766930953,
-0.0860335678,
-0.3575823605,
0.0214336999,
0.0879143551,
0.0006229317,
-0.0594567396,
0.2622990906,
0.4097225964,
-0.0675176084,
-0.1543851644,
0.1776066273,
0.3530317545,
0.2489057928,
0.2885737121,
0.0723995864,
0.0108060231,
-0.0919845924,
-0.1321658194,
0.0145222303,
0.0126971761,
-0.2070727944,
0.2857815325,
0.1376548856,
-0.208240971,
0.129444629,
-0.1128363237,
0.500625968,
-0.245405212,
0.1004070416,
-0.3472149968,
-0.0396518633,
-0.1990645379,
-0.1355858743,
-0.4916965365,
0.3141357899,
0.3138158917,
-0.1338679641,
0.1169182658,
-0.181977421,
0.0635223314,
0.1801819354,
0.3871394098,
0.1848432124,
0.2681214809,
-0.2327085137,
-0.3551609814,
-0.8897017837,
0.0439492576,
-0.1522124261,
0.2330158502,
-0.2807316184,
0.2144454271,
-0.1364539862,
0.041698847,
0.5383713841,
0.262187928,
0.2402580231,
0.0260003265,
-0.1610635519,
-0.1707495898,
0.0867245272,
0.0424334928,
-0.0242710561,
-0.2306757122,
0.1548723429,
-0.0613383874,
0.0409008749,
-0.001428153,
-0.0353917666,
-0.2065705806,
-0.2462572306,
0.4118387401,
0.1399494857,
0.3093689084,
-0.0024494999,
-0.0433326811,
-0.3437122405,
-0.3007763922,
-0.0881835073,
-0.0693150684,
0.0487047397,
0.4224618375,
-0.2589189708,
-0.2547077835,
-0.4773995876,
0.4096323848,
0.0821041614,
0.1851917654,
0.0050787134,
0.0154175228,
-0.3350095749,
0.152435407,
0.264520973,
0.1972029656,
-0.0759531111,
-0.0304747093,
-0.2711276412,
-0.2204905003,
0.5597354174,
-0.4937855303,
0.1156323254,
-0.0189832225,
0.0746249333,
0.3552240431,
-0.1251362115,
-0.2186249942,
0.0702718198,
0.3338104784,
0.1145558357,
-0.1382755339,
0.040690314,
-0.1965130866,
-0.0696859062,
-0.0153711606,
0.2571994066,
0.3441185057,
-0.3156803846,
0.1266836971,
-0.2195519507
] |
https://github.com/huggingface/datasets/issues/3268 | Dataset viewer issue for 'liweili/c4_200m' | hi @lhoestq ! thanks for the tip! i've updated the line of code but it's still not working. am i doing something else wrong? thank you! | ## Dataset viewer issue for '*liweili/c4_200m*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/liweili/c4_200m)*
*Server Error*
```
Status code: 404
Exception: Status404Error
Message: Not found. Maybe the cache is missing, or maybe the ressource does not exist.
```
Am I the one who added this dataset ? Yes
| 26 | Dataset viewer issue for 'liweili/c4_200m'
## Dataset viewer issue for '*liweili/c4_200m*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/liweili/c4_200m)*
*Server Error*
```
Status code: 404
Exception: Status404Error
Message: Not found. Maybe the cache is missing, or maybe the ressource does not exist.
```
Am I the one who added this dataset ? Yes
hi @lhoestq ! thanks for the tip! i've updated the line of code but it's still not working. am i doing something else wrong? thank you! | [
-0.2048722357,
0.3397707641,
-0.0439794511,
0.453977108,
-0.0323567651,
0.1852270961,
0.2257338762,
0.132736668,
-0.1553967148,
0.1312171519,
-0.1871982366,
0.0623998195,
-0.0724006072,
0.0393495634,
0.2863667309,
0.0551078729,
0.0001893812,
0.3673495948,
-0.0825177953,
0.0408880599,
-0.1322362721,
0.1274661571,
0.1093325913,
-0.11814861,
-0.394123435,
0.1422854066,
-0.2493028045,
0.1846634001,
-0.1072235331,
-0.5770615935,
0.4048388302,
0.0409674086,
0.1327852458,
0.5260575414,
-0.0001129135,
0.0550980233,
0.3158531189,
-0.0628620163,
-0.2738539279,
-0.0322614163,
-0.3334214389,
-0.157742247,
0.0199066997,
-0.0058859074,
-0.231791839,
-0.0223552417,
0.029537132,
-0.4109072089,
-0.177369684,
0.2109531462,
0.2552070022,
0.037418589,
0.2777433693,
-0.0880986825,
0.2361397445,
-0.159309715,
-0.1366510242,
0.1717812419,
0.1250499636,
0.34046489,
0.1657675207,
0.336320132,
0.0685637072,
0.1015636548,
0.1613706499,
0.0147444615,
-0.0567289367,
-0.311095506,
0.3234443963,
0.4259088635,
1.0086327791,
-0.1596556306,
-0.182196945,
0.1577796787,
0.0264526904,
-0.0356679335,
0.3250221014,
0.0174009632,
0.1640674025,
0.2543433011,
-0.1935996115,
-0.3147673011,
-0.1341320425,
0.1571154743,
-0.0777185559,
0.0233906358,
-0.0591348745,
0.0415536799,
0.1453623325,
0.0051329685,
0.1077368408,
-0.100859426,
-0.1756089628,
0.1881386638,
-0.1503510475,
0.0262026601,
0.031647522,
0.3358708322,
0.0130889928,
0.1098906025,
-0.1315609068,
-0.0250517577,
-0.3255392611,
-0.0005615582,
-0.0852281004,
0.220477283,
0.0166281611,
-0.1995026916,
0.2707871199,
-0.1139376834,
0.2405610383,
-0.0439553894,
-0.0537728854,
-0.2539817393,
-0.2263044417,
-0.1722316742,
0.2297487855,
-0.2043186575,
-0.3384668529,
0.0619577765,
-0.4313412905,
-0.3143395782,
0.1425850838,
0.4864597619,
-0.0231621936,
0.0346581191,
0.0651972517,
-0.0570587963,
-0.1482506245,
-0.4258021414,
-0.2372844815,
0.1039374173,
0.0467430279,
0.1587613374,
0.2824328542,
-0.4163475037,
0.1914354116,
-0.1234560758,
0.0803626031,
0.0883773193,
0.000386493,
-0.0385153331,
-0.1677869558,
0.1041900143,
0.0192428306,
0.099142909,
0.0690490976,
-0.2787953913,
0.0832877904,
0.3198286891,
-0.0508652851,
-0.362547338,
-0.2402846366,
0.1697337031,
-0.2351992428,
-0.1519471258,
0.0526066087,
0.0715866014,
0.0877997056,
-0.1823082864,
0.0104639288,
0.1913970858,
0.1962026507,
-0.2433095127,
0.2753797472,
0.6847068667,
-0.8575761318,
-0.0645468831,
-0.3746863008,
-0.2956605852,
-0.1132887751,
-0.0262858588,
-0.0792926997,
0.1603051126,
-0.246602878,
0.0961681008,
0.395093888,
-0.168641299,
-0.7296183109,
-0.089668788,
-0.1179727614,
0.0382090174,
0.0388400368,
0.2587750852,
-0.0439007021,
-0.0245997179,
-0.313896656,
-0.2207811475,
0.0821025521,
-0.2556655705,
-0.2414046824,
-0.4024442732,
0.2327148467,
0.1665410548,
0.2135136873,
-0.0416935682,
0.3270436823,
-0.1655867398,
0.3146349788,
-0.1481227577,
0.2848623395,
0.1528060585,
0.4937236607,
0.4150797427,
0.2384996414,
0.072680451,
-0.2617343068,
0.2346218973,
0.022771934,
0.0939586014,
0.1159986556,
-0.0149984341,
-0.3226870596,
-0.1462877393,
-0.6239020228,
-0.3042358458,
0.1195198447,
0.2918019593,
-0.0782615915,
0.199517414,
-0.1679522991,
0.2367848307,
-0.0580736771,
0.0001177663,
-0.0089893723,
0.3300352991,
-0.2128497809,
0.026945794,
-0.2829589546,
0.1242419109,
0.3206023872,
-0.2916025817,
-0.097470291,
0.3694753349,
-0.216920048,
0.0800158978,
0.2317296565,
0.0138286566,
0.3024757504,
-0.5033228993,
0.2809159756,
0.1099464297,
0.1187463254,
-0.1578791738,
0.0920363516,
-0.1091099009,
-0.0981987268,
0.0000261425,
-0.0787720904,
0.1155531928,
0.3489159942,
0.0360681936,
0.1822998375,
-0.2661881149,
0.360340625,
-0.4597924948,
0.3849903643,
-0.2043879181,
-0.1554348022,
0.1876187325,
0.0977058485,
-0.0256987233,
0.0553842559,
0.0270379875,
-0.1442009658,
0.0466017202,
0.2425390184,
0.2145341039,
0.3274312317,
0.233787179,
-0.0986171812,
0.0172703769,
0.2810682654,
-0.1537163556,
0.1213995069,
-0.1242417395,
0.0249148048,
-0.0024618113,
0.0330068432,
-0.0848755464,
-0.4058821499,
-0.1250521988,
0.1864902228,
0.2319679111,
-0.1977392286,
-0.0924723297,
-0.3771802485,
-0.3416558504,
-0.0381683335,
-0.3886727989,
-0.2931241691,
-0.2251180112,
0.0409285016,
0.0242750142,
0.1285749227,
0.1746924967,
-0.3331783116,
0.3201798499,
-0.0751714632,
0.0246697422,
-0.1758146435,
0.047669027,
-0.3795058727,
0.1338646263,
0.2005195171,
-0.2732551992,
0.2606117427,
-0.3598277867,
0.408506304,
-0.6811459064,
-0.4405822456,
0.2074213922,
0.0757717341,
0.1575275064,
-0.0284919813,
0.1345667094,
0.0431202725,
-0.1280988306,
0.1332270652,
0.0137639511,
-0.0514022335,
-0.1474151015,
-0.062531665,
0.0202065669,
0.0768694282,
-0.4956463277,
-0.45013991,
-0.2082398087,
0.1185905486,
0.0841677189,
0.0203951579,
-0.0850854814,
0.0295733381,
0.2879752815,
0.1091538519,
-0.0643555224,
-0.3191486895,
-0.2505699396,
0.3353729546,
-0.392893821,
-0.3237984478,
0.3501982093,
0.0587562434,
0.2683015764,
-0.1648421884,
-0.6797571778,
-0.0057587712,
-0.0360541642,
0.1790384948,
0.0517874248,
-0.1050387397,
0.3662234247,
0.0355204344,
0.0622178987,
-0.181702733,
-0.2415735275,
0.0817044601,
-0.1403159648,
0.6115556359,
-0.1261705905,
0.4719202816,
0.050438311,
0.7219994068,
0.1288026869,
0.0362595282,
0.5672438145,
-0.0392664857,
0.513487637,
-0.1630889773,
-0.3909626305,
0.289560169,
-0.0259106457,
0.0995254889,
0.166132316,
0.2395840436,
-0.2429136932,
-0.2511481047,
-0.1186321452,
-0.3814889193,
0.0093112346,
-0.2380151004,
-0.1410277337,
0.1246012449,
0.1221951991,
0.0956048071,
-0.0643466264,
-0.3522054553,
-0.0850583762,
0.5368471742,
0.2296917886,
0.1221343875,
0.0012880898,
0.0015725389,
-0.4258663356,
0.5277129412,
-0.0196217597,
0.0221066959,
-0.3548612893,
0.1501169652,
0.1506623328,
-0.0843533799,
0.601223588,
-0.2865400016,
-0.143484205,
0.1363822371,
0.1061996818,
0.014155956,
-0.0081675546,
0.1807976365,
0.2553685904,
0.2903603613,
-0.0664090887,
-0.1516021937,
0.1591324955,
0.3507811427,
0.0259850491,
-0.2778206766,
-0.3171444535,
-0.1265507191,
-0.2926402688,
-0.1504396796,
-0.1719290763,
-0.427320689,
0.1752749532,
0.1463872641,
-0.0257969666,
0.1362541467,
-0.1193333119,
0.1011635214,
0.1364450306,
0.2794183195,
0.2179690301,
0.1161898673,
0.4548293948,
0.1163921505,
0.5532749891,
0.2870534658,
-0.2565660477,
0.0483644493,
0.2351649404,
-0.1622996628,
0.1694763601,
0.2165124416,
0.0180863198,
-0.0180229805,
0.2630312145,
-0.1031637415,
-0.0040853098,
0.0834887922,
0.2231789827,
-0.089638792,
-0.5047664046,
-0.6223272681,
0.4840914607,
-0.0813785121,
0.0199261103,
0.3094951808,
0.565936327,
-0.062793158,
-0.1952166706,
-0.1057330966,
0.99132514,
-0.0160791054,
-0.1965350658,
0.233611986,
-0.2651095986,
0.364356488,
-0.6154970527,
0.17984429,
-0.1497525573,
0.1036153883,
-0.1377864629,
-0.1161076277,
0.19744955,
0.0819201171,
-0.2402338386,
0.2374802679,
-0.1402630806,
0.0088444753,
0.094100289,
0.2730472386,
-0.1451104879,
0.1286444515,
0.0951253027,
0.2775749266,
0.0415495932,
0.314016521,
-0.365416497,
-0.1171741709,
-0.1841175407,
-0.0354120359,
-0.2816341519,
0.0947076976,
-0.2186401039,
0.2257873118,
-0.1598515958,
-0.5868874192,
0.1419634968,
0.0936156511,
0.1124198809,
-0.0643347725,
-0.2543389499,
0.3241487145,
-0.0264068078,
-0.0310766511,
-0.0709092468,
-0.0329195708,
-0.0782884285,
-0.0905523524,
-0.2867883742,
0.1418087929,
-0.0840450525,
-0.6618635058,
-0.0719308928,
0.0518043451,
0.0364074707,
-0.0104131661,
0.1496278793,
0.2464256436,
0.133459717,
-0.1559007913,
0.1233711839,
0.2709727287,
-0.1432784945,
-0.1666332036,
0.0822914541,
0.0273039993,
-0.2617928386,
0.2022902369,
-0.0225878526,
-0.030554289,
0.4420388341,
0.1990191042,
-0.2478853166,
-0.0880011469,
0.0226832312,
0.157274887,
-0.4112479389,
-0.3679233789,
-0.052447509,
0.139618203,
-0.0160086881,
0.099914737,
0.0824362412,
0.1950359046,
-0.1914124936,
-0.3782984316,
-0.2536958456,
0.0097993026,
-0.1608873904,
0.4084818959,
0.0193703622,
0.1435046345,
0.2425450385,
0.2324110866,
-0.2817927301,
-0.0271382388,
-0.1400305629,
-0.164548859,
0.2178179175,
0.1373069584,
0.2544158697,
-0.0608337,
0.0315725282,
0.0880199894,
-0.3017505705,
-0.0904498622,
0.1038038954,
0.144525677,
0.0617209598,
-0.23219724,
-0.2086698413,
-0.1112700924,
-0.0628265217,
0.1433227062,
-0.0212848596,
-0.0665220246,
-0.0527882464,
-0.1744550765,
0.0936328918,
-0.4461225569,
-0.2536545992,
0.045054201,
0.2263813466,
0.3015650511,
0.1460801065,
0.2148478776,
0.065328382,
-0.0516982004,
0.1913934499,
0.1004713625,
0.0239752214,
-0.0755713508,
0.1382220238,
-0.5198962688,
0.2907068729,
0.2523241043,
0.2842793465,
0.0599181391,
-0.1363854855,
0.1443214566,
0.336574465,
0.166087389,
-0.2752486467,
-0.1051355079,
0.4213023782,
0.1937190443,
-0.0075375601,
-0.0096651316,
0.099416554,
0.0331308059,
0.1865073293,
0.3102160394,
0.5358119607,
-0.210754171,
0.2447408289,
0.0804389268,
-0.3329815865,
0.3378942311,
0.5476818085,
0.0603511669,
-0.1129479483,
0.4942584634,
-0.3852372468,
0.1233463064,
-0.0020897652,
0.0824874192,
0.1934291124,
-0.3953888118,
-0.0044807214,
0.0199431237,
-0.0707321092,
-0.1696601212,
0.0893721655,
0.4243672192,
-0.1136395708,
-0.0066355723,
-0.4290581048,
0.2241682261,
-0.2444659919,
0.3082274795,
0.299595952,
-0.3940207958,
0.1184782311,
-0.0106399339,
0.0860726908,
-0.170389697,
-0.0851988792,
-0.0951609612,
-0.3248037994,
-0.3828372061,
0.1295568645,
0.1020721719,
-0.0468562059,
-0.0296464358,
0.2299109399,
0.2619512081,
-0.1158652604,
0.0298259147,
0.3530754745,
0.2068159431,
0.1964505613,
0.327201575,
0.1110228822,
-0.0414089859,
-0.1708516032,
-0.1324750632,
0.1746818572,
0.2718398273,
-0.167372629,
0.1065310687,
0.1378183067,
-0.1679004729,
0.209422946,
0.0956971794,
0.590901196,
-0.4388545156,
0.1073558629,
-0.524710238,
-0.0877725035,
-0.2590425313,
-0.1102892384,
-0.355022341,
0.4335713089,
0.422890991,
-0.0725020915,
-0.0700551271,
-0.1729252636,
0.047611434,
0.2043323219,
0.1515916884,
0.1358723193,
0.2503068149,
-0.1575838774,
-0.3340062201,
-0.7697469592,
0.1648017317,
-0.2427684516,
0.4092876613,
-0.2648099065,
0.2225734442,
0.0198684856,
0.0120473504,
0.7389401793,
0.1085389182,
0.2983811796,
0.0229348764,
-0.1844319105,
-0.1465776116,
0.212736994,
0.0920740888,
-0.0756061301,
-0.0553838052,
0.1704785079,
0.1376753747,
0.0266323015,
-0.1436164677,
-0.1943932176,
-0.046756912,
-0.1470849514,
0.5251267552,
0.1352969706,
0.5072580576,
0.0986432731,
0.0698436946,
-0.2906362116,
-0.3584823608,
-0.0552236363,
-0.0795456171,
0.0483169109,
0.2748275697,
-0.2677263319,
-0.2131236792,
-0.2992332876,
0.4326147437,
-0.0213294402,
0.478158623,
-0.230303511,
-0.075330399,
-0.3281157613,
-0.0513417237,
0.2934398949,
0.032726068,
0.0273144133,
-0.0769647732,
-0.2074054182,
0.0237873755,
0.3501954079,
-0.5527085662,
0.037946023,
-0.2067852765,
0.11359521,
0.2439968884,
-0.2600232065,
-0.1859581918,
0.0004769529,
0.4419416189,
0.2254397571,
-0.041136954,
0.0872079358,
-0.1191455722,
-0.0315927193,
-0.0377910323,
0.1694400758,
0.2602788806,
-0.1257966161,
0.1477807164,
-0.2468400747
] |
https://github.com/huggingface/datasets/issues/3268 | Dataset viewer issue for 'liweili/c4_200m' | Hi ! Your dataset code is all good now :)
```python
In [1]: from datasets import load_dataset
In [2]: d = load_dataset("liweili/c4_200m", streaming=True)
Downloading: 100%|█████████████████████████████████████████████| 2.79k/2.79k [00:00<00:00, 4.83MB/s]
Using custom data configuration default
In [3]: next(iter(d["train"]))
Out[3]:
{'input': 'Bitcoin is for $7,094 this morning, which CoinDesk says.',
'output': 'Bitcoin goes for $7,094 this morning, according to CoinDesk.'}
```
Though the viewer doesn't seem to be updated, I'll take a look at what's wrong | ## Dataset viewer issue for '*liweili/c4_200m*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/liweili/c4_200m)*
*Server Error*
```
Status code: 404
Exception: Status404Error
Message: Not found. Maybe the cache is missing, or maybe the ressource does not exist.
```
Am I the one who added this dataset ? Yes
| 73 | Dataset viewer issue for 'liweili/c4_200m'
## Dataset viewer issue for '*liweili/c4_200m*'
**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/liweili/c4_200m)*
*Server Error*
```
Status code: 404
Exception: Status404Error
Message: Not found. Maybe the cache is missing, or maybe the ressource does not exist.
```
Am I the one who added this dataset ? Yes
Hi ! Your dataset code is all good now :)
```python
In [1]: from datasets import load_dataset
In [2]: d = load_dataset("liweili/c4_200m", streaming=True)
Downloading: 100%|█████████████████████████████████████████████| 2.79k/2.79k [00:00<00:00, 4.83MB/s]
Using custom data configuration default
In [3]: next(iter(d["train"]))
Out[3]:
{'input': 'Bitcoin is for $7,094 this morning, which CoinDesk says.',
'output': 'Bitcoin goes for $7,094 this morning, according to CoinDesk.'}
```
Though the viewer doesn't seem to be updated, I'll take a look at what's wrong | [
-0.4007691443,
0.5141014457,
-0.0849969238,
0.3988128901,
0.090029344,
0.1364438236,
0.1792555749,
0.3091340363,
-0.2108911425,
0.0321359485,
-0.1187349558,
0.0765216053,
-0.150267601,
0.1407317966,
0.0565299392,
0.0477423333,
-0.0537077226,
0.2665194273,
0.0039401096,
-0.000212158,
-0.0424508899,
-0.0146691445,
-0.1056321338,
-0.2330270708,
-0.3087045848,
0.0646814331,
-0.0496256836,
0.1228485629,
-0.2014478743,
-0.7416373491,
0.4144557714,
0.1476270407,
0.2129898667,
0.6299412251,
-0.0001087017,
-0.0401062854,
0.3618807197,
-0.0846241787,
-0.3333464563,
-0.2459665686,
-0.19241485,
-0.3108965456,
0.1801443845,
-0.0852207169,
-0.1757209599,
-0.0382546149,
0.0203839447,
-0.3884212077,
-0.0526738986,
0.3199623823,
0.2671204805,
-0.0494042262,
0.1281651407,
0.0025558565,
0.0641007721,
-0.3388642669,
-0.048760552,
0.2593750656,
-0.0729214251,
0.3572562337,
0.007751768,
0.3772917092,
-0.0870320499,
0.0585580543,
0.0065954626,
-0.0363972262,
-0.0399336703,
-0.3320508003,
0.212707296,
0.3526160121,
0.894167304,
-0.3157356083,
-0.2543492913,
0.0053005689,
0.0572921932,
-0.2602579296,
0.2728717625,
0.1214186922,
0.0847512335,
0.2360837013,
-0.2256267071,
-0.0489891209,
-0.1151347235,
0.2003809065,
-0.3122190535,
0.012279138,
-0.0654952005,
-0.0101911724,
0.1154809669,
0.0144778863,
0.3160977662,
-0.1034333855,
-0.000766391,
0.1107822284,
-0.348300904,
0.1237277463,
0.0599027202,
0.2145540118,
-0.2226830274,
0.0713194758,
-0.079592444,
0.049331028,
-0.2725151479,
0.0363456942,
-0.0339741632,
0.2329732329,
-0.0809714794,
-0.0758844018,
0.1555359066,
0.0057218801,
0.1435495019,
-0.0044123768,
-0.1303433031,
-0.3305182755,
-0.2120182365,
-0.0507207513,
0.2255907804,
-0.1655936837,
-0.3701296747,
0.1691510081,
-0.5444762111,
-0.2087196708,
0.1050817668,
0.4254767597,
-0.1124469936,
0.3648328781,
0.0641034916,
0.0098191416,
-0.072243996,
-0.3663850725,
-0.2442452908,
0.0218717121,
-0.0235075727,
0.0375764817,
0.3109260499,
-0.4175085425,
0.2665303648,
-0.0317552797,
0.1457662582,
-0.0396662429,
-0.0007462479,
-0.1232738122,
-0.085999392,
0.1506648809,
-0.0320207477,
0.1858267784,
0.1180952117,
-0.2619408965,
-0.00548608,
0.2602053583,
-0.033869911,
-0.2370219827,
-0.104570657,
0.2064983696,
-0.2634814382,
-0.2337580174,
0.050081227,
0.1319769919,
0.1192133278,
-0.134599641,
-0.0123530617,
-0.0737967119,
0.1800500602,
-0.323254019,
0.3480352461,
0.6132745147,
-0.9262832403,
-0.0187641419,
-0.2667139173,
-0.2094074935,
0.0923389569,
-0.0024526676,
-0.1684655547,
0.0984992981,
-0.0833005533,
0.0779532045,
0.3039766848,
-0.3614034951,
-0.8733251691,
0.0454146005,
-0.0198434647,
0.2030911595,
0.0372782983,
0.20592089,
0.0493115298,
0.0079669589,
-0.2171863616,
-0.1717074513,
-0.0293436814,
-0.1829205006,
-0.3870014548,
-0.4867548645,
0.3363809586,
0.1442977935,
0.2828352451,
-0.2033630759,
0.0824625567,
-0.0863003656,
0.4526152313,
0.0043515144,
0.1636689603,
-0.0335736796,
0.4336575866,
0.3732979596,
0.1016986072,
0.0855093002,
-0.2266171575,
0.2366595417,
0.165737167,
0.1417651922,
0.1294611394,
0.050528191,
-0.3766456842,
-0.1410567164,
-0.5314281583,
-0.2501837015,
0.1991771907,
0.2147832811,
-0.2256977707,
0.2824048102,
-0.2276833802,
0.3112385273,
-0.1312548667,
0.0564800277,
0.1150320992,
0.3152307272,
-0.1867695749,
-0.0201519709,
-0.1843325347,
-0.0064435541,
0.37073645,
-0.1074999273,
-0.2069385648,
0.454105556,
-0.0903069153,
0.1619393677,
0.0338729993,
0.1695692688,
0.3195776045,
-0.2937662303,
0.2485750169,
0.3134574294,
0.111901477,
-0.0909819677,
0.0667257085,
-0.0103040738,
-0.0411590114,
-0.0123736234,
-0.1136778742,
0.0776781887,
0.445722729,
-0.0351026542,
0.0739104003,
-0.2375185639,
0.2543022633,
-0.6323578358,
0.4947145879,
-0.2080085278,
-0.1823912859,
0.1969218254,
0.1253865361,
0.0055403854,
-0.0213776566,
0.0606496148,
-0.2208243161,
-0.0052802116,
0.2202163041,
0.3471493721,
0.1560805738,
0.1406861544,
-0.0528995134,
0.1107910499,
0.2280642986,
-0.2104670107,
0.1399738193,
0.002063723,
0.0098752417,
0.08446116,
0.0909621716,
0.0426734537,
-0.2264442444,
-0.1706038862,
0.103625983,
0.220041573,
-0.1866649836,
-0.1593716741,
-0.5042421222,
-0.2797982395,
-0.0793123841,
-0.4231538773,
-0.0841436908,
-0.3479718268,
-0.1076208949,
0.0762193277,
-0.0129182506,
0.2375876009,
-0.4154028594,
0.0808466226,
0.0732967556,
-0.0230666343,
-0.1814447641,
-0.0418186188,
-0.2727792561,
0.1365589201,
0.246808067,
-0.223326996,
0.2426947504,
-0.3069505394,
0.1823765486,
-0.3909950554,
-0.4228444695,
0.1924048662,
0.0669285581,
0.0989277214,
-0.0644483045,
0.0297017768,
0.0723498762,
-0.1181467101,
0.0610016212,
0.0426201448,
0.1655790359,
-0.0921206176,
0.0266343988,
0.0430305675,
0.1588583738,
-0.5491918325,
-0.5089229345,
-0.3816441298,
-0.0231663622,
0.096776709,
0.0261077732,
-0.0010659266,
0.1853343248,
0.2213648856,
0.2258445174,
-0.0989126414,
-0.2020875514,
-0.2103348225,
0.2865548432,
-0.2234374136,
-0.2747686505,
0.2888683677,
0.0271667931,
0.1455505937,
-0.0059722723,
-0.7311404347,
0.2397738099,
-0.0806098282,
0.2536819279,
0.0644016862,
-0.2422810793,
0.1995660961,
0.1901162118,
0.0283396095,
-0.1819541305,
-0.140039444,
0.0113084959,
-0.0808282644,
0.4545099437,
-0.116231367,
0.5022856593,
0.2070988566,
0.6270976663,
0.2700491846,
-0.0923426226,
0.4450855851,
0.0806220099,
0.4189706445,
-0.1422595978,
-0.2870387733,
0.1567460299,
0.0457887128,
-0.0427734628,
0.2128659785,
0.1051011905,
-0.3060905337,
-0.215579614,
-0.0574416406,
-0.4368913174,
-0.1031551138,
-0.0775442347,
-0.2512281537,
0.192621395,
0.1151946932,
0.291138649,
-0.0049620504,
-0.3811871707,
-0.1500401795,
0.3774241805,
0.1239538044,
-0.0009830006,
0.1056321785,
0.1284547448,
-0.4887757301,
0.3757806122,
0.0200841166,
0.1082084924,
-0.0665957406,
0.1378044188,
0.1041067541,
-0.0433521345,
0.4051376581,
-0.1876377463,
-0.0777636617,
0.2312219888,
0.0445993505,
-0.0210874993,
-0.1840169877,
-0.0398170054,
0.1949440241,
0.3307615817,
-0.1231153458,
-0.1036638692,
0.0809422806,
0.301833421,
0.1472765207,
-0.2135757506,
-0.296426177,
0.0037217012,
-0.205992192,
-0.1556787193,
-0.2230429798,
-0.4476835728,
0.1071077287,
-0.170694679,
-0.0149876326,
0.1244108453,
-0.0491820648,
0.1252943724,
0.0965149328,
0.3741153777,
0.1322985888,
0.212964192,
0.3048303723,
-0.0509405993,
0.6935528517,
0.2880514264,
-0.0243035387,
0.0144473379,
0.0734505504,
-0.0449925438,
-0.0113637587,
0.2757407725,
-0.1295677125,
-0.1206288114,
0.1926152259,
0.1094917953,
-0.0633428395,
0.3135071397,
0.2965992093,
-0.1292610317,
-0.5085879564,
-0.7286775708,
0.5894798636,
-0.2002887577,
-0.0282218028,
0.2893044651,
0.3461817801,
-0.0837111622,
0.0019776525,
-0.0532430522,
0.8695740104,
0.0640973896,
-0.1983280033,
0.4195343852,
-0.3048590422,
0.2822243571,
-0.60403651,
0.2115070522,
-0.2099772096,
0.0881082416,
-0.0974400416,
-0.0419915617,
0.1145391241,
0.1604060531,
-0.3240553737,
0.2225020528,
-0.2450004816,
-0.0110758962,
0.1269181222,
0.2083703429,
-0.1986204535,
0.1144060269,
-0.0436458364,
0.2955186665,
-0.0395780765,
0.1379757971,
-0.3077525198,
-0.131257087,
-0.2347894013,
0.0807680711,
-0.4409796298,
0.1441320628,
-0.1873412281,
0.2906535864,
-0.3447117507,
-0.5678398609,
0.0255097076,
0.0575260185,
0.0551002398,
0.0080385534,
-0.1998833865,
0.3649142981,
0.0248273052,
-0.0334271975,
0.1895520985,
0.0323042944,
0.0865827277,
-0.061459206,
-0.3181421161,
0.2148942351,
-0.021279823,
-0.4861513674,
0.0835376754,
0.1234237477,
0.199692592,
-0.1227817982,
0.0682548955,
0.1794670969,
0.1019899324,
-0.1585814804,
0.1777318567,
0.1180424318,
-0.0234174524,
-0.0240004435,
0.002770005,
-0.065320529,
-0.2930860519,
0.2372866124,
0.031197818,
-0.0694280714,
0.5149761438,
0.2045094818,
-0.3138454854,
-0.0916672871,
0.0049022851,
0.0311353672,
-0.2439240813,
-0.1731846035,
-0.1728411168,
0.0955944583,
0.0090450505,
0.0351610221,
0.1367571354,
0.122424446,
-0.2614124417,
-0.3782849014,
-0.1083071753,
0.0159886796,
-0.0213433504,
0.289834708,
-0.0757402629,
0.1840744317,
0.1189375669,
0.0619746931,
-0.3328258693,
0.0307836328,
-0.2001328468,
-0.0244524479,
0.1048388556,
0.1715039313,
0.1836497188,
-0.0587369241,
0.1001819447,
0.0153585691,
-0.2760672271,
-0.1886512786,
-0.0300932191,
0.1330619007,
0.1471354514,
-0.2672970295,
-0.1519842893,
-0.0518782139,
-0.1376942247,
-0.0285585579,
-0.1267620921,
0.1337461323,
-0.0100726122,
0.0986947343,
0.0731853843,
-0.106150195,
-0.0781567842,
0.0974058658,
0.0937932879,
0.4345570803,
0.1389658898,
0.2634285092,
0.1039513946,
0.0714341477,
0.1353450269,
0.0003625656,
-0.0765129924,
0.0307386462,
0.2975710034,
-0.5424274206,
0.3301218748,
0.3295894861,
0.3709895611,
0.2204817533,
-0.2287064642,
-0.1593248695,
0.3729062378,
0.2305036485,
-0.2387954295,
0.038321536,
0.3261186481,
0.2276124954,
0.1249942407,
-0.0788755268,
0.0710788816,
-0.1235379651,
0.1852968335,
0.3096028864,
0.6344681382,
-0.1872633547,
0.4167390168,
0.1882612407,
-0.2578780949,
0.2116711289,
0.2196152508,
0.0244085677,
0.0629672408,
0.4976765811,
-0.250392437,
0.0608612187,
0.041100394,
-0.0186263248,
0.078181386,
-0.3878728151,
-0.0967886075,
0.1074322611,
-0.3216648102,
0.0044836123,
0.0590403378,
0.2660897076,
-0.0496600084,
0.0138459252,
-0.3498149514,
0.1879591495,
-0.1230768263,
0.3161242902,
0.2326710075,
-0.244696185,
0.0121877315,
0.0375446863,
-0.0084263254,
-0.1048439741,
-0.0237155687,
0.1043193638,
-0.4113991857,
-0.4587666988,
0.0902785659,
0.0660595819,
0.0717627928,
-0.1405312717,
0.1138135269,
0.5268631577,
-0.0963069499,
-0.069272615,
0.3148775697,
0.2491451055,
0.4245713055,
0.0946031585,
0.0817945972,
0.196444571,
-0.1015757024,
-0.0450310372,
0.0487521924,
0.2404607683,
0.0103839077,
0.1827941835,
0.1945767552,
-0.2612311244,
0.0988267139,
0.0899306014,
0.5038878918,
-0.3446151018,
0.1198500395,
-0.2939148247,
0.0583830327,
-0.1140777394,
-0.2107892185,
-0.4530501068,
0.2818596065,
0.4197988808,
-0.1277757436,
0.0565659441,
-0.0535859242,
0.0898294151,
0.1683780849,
0.27801314,
0.104759559,
0.2540171444,
-0.2565112412,
-0.2423230112,
-0.7238150835,
0.1403271556,
-0.2195659727,
0.2744811773,
-0.2951423228,
0.30916664,
-0.074977085,
0.1490271389,
0.5499955416,
0.08434508,
0.203684181,
0.1321219504,
-0.1914093345,
-0.1256869733,
0.133813709,
0.0413710251,
-0.067573905,
-0.2148193568,
0.145177722,
-0.1240692511,
0.1316034794,
-0.1046979725,
-0.2968870103,
0.0415826328,
-0.1727851629,
0.5804511309,
0.1849232018,
0.452948153,
0.1154162139,
-0.0307439566,
-0.4064677954,
-0.2451215982,
-0.1469118744,
-0.0520583652,
-0.0396045819,
0.3578313291,
-0.188180998,
-0.2600325644,
-0.2950921655,
0.5019373298,
0.0346611962,
0.1491298229,
-0.2242400646,
-0.1697304994,
-0.2041907161,
0.0609596558,
0.1697355509,
0.0687519237,
0.0120527903,
0.1632201523,
-0.2194856554,
-0.152013883,
0.4486582577,
-0.5803486705,
-0.0057719448,
-0.1908623427,
0.0046935058,
0.3160573542,
0.1015334502,
-0.2718507946,
0.0587872751,
0.410610497,
0.1737457216,
-0.1368990391,
0.032523796,
-0.0328289606,
-0.0702377111,
0.0159384571,
0.2746639252,
0.2846561372,
-0.2792107463,
-0.0463044345,
-0.2190882564
] |
https://github.com/huggingface/datasets/issues/3265 | Checksum error for kilt_task_wow | Using `dataset = load_dataset("kilt_tasks", "wow", ignore_verifications=True)` may fix it, but I do not think it is a elegant solution. | ## Describe the bug
Checksum failed when downloads kilt_tasks_wow. See error output for details.
## Steps to reproduce the bug
```python
import datasets
datasets.load_datasets('kilt_tasks','wow')
```
## Expected results
Download successful
## Actual results
```
Downloading and preparing dataset kilt_tasks/wow (download: 72.07 MiB, generated: 61.82 MiB, post-processed: Unknown size, total: 133.89 MiB) to /root/.cache/huggingface/datasets/kilt_tasks/wow/1.0.0/57dc8b2431e76637e0c6ef79689ca4af61ed3a330e2e0cd62c8971465a35db3a...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 5121.25it/s]
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1527.42it/s]
Traceback (most recent call last):
File "kilt_wow.py", line 30, in <module>
main()
File "kilt_wow.py", line 27, in main
train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
dataset = self.load_dataset()
File "kilt_wow.py", line 21, in load_dataset
return datasets.load_dataset('kilt_tasks','wow')
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['http://dl.fbaipublicfiles.com/KILT/wow-train-kilt.jsonl', 'http://dl.fbaipublicfiles.com/KILT/wow-dev-kilt.jsonl']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-4.15.0-161-generic-x86_64-with-glibc2.10
- Python version: 3.8.3
- PyArrow version: 4.0.1
| 19 | Checksum error for kilt_task_wow
## Describe the bug
Checksum failed when downloads kilt_tasks_wow. See error output for details.
## Steps to reproduce the bug
```python
import datasets
datasets.load_datasets('kilt_tasks','wow')
```
## Expected results
Download successful
## Actual results
```
Downloading and preparing dataset kilt_tasks/wow (download: 72.07 MiB, generated: 61.82 MiB, post-processed: Unknown size, total: 133.89 MiB) to /root/.cache/huggingface/datasets/kilt_tasks/wow/1.0.0/57dc8b2431e76637e0c6ef79689ca4af61ed3a330e2e0cd62c8971465a35db3a...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 5121.25it/s]
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1527.42it/s]
Traceback (most recent call last):
File "kilt_wow.py", line 30, in <module>
main()
File "kilt_wow.py", line 27, in main
train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
dataset = self.load_dataset()
File "kilt_wow.py", line 21, in load_dataset
return datasets.load_dataset('kilt_tasks','wow')
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['http://dl.fbaipublicfiles.com/KILT/wow-train-kilt.jsonl', 'http://dl.fbaipublicfiles.com/KILT/wow-dev-kilt.jsonl']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-4.15.0-161-generic-x86_64-with-glibc2.10
- Python version: 3.8.3
- PyArrow version: 4.0.1
Using `dataset = load_dataset("kilt_tasks", "wow", ignore_verifications=True)` may fix it, but I do not think it is a elegant solution. | [
-0.0128258085,
-0.2781217992,
-0.0930913538,
0.2878222167,
0.3997595906,
-0.0828802958,
0.2399520427,
0.5319925547,
0.3643353581,
0.1832444221,
0.0476305783,
0.3454276621,
0.0678310692,
0.3870452642,
-0.0282226354,
0.1116022542,
0.0441304035,
-0.1036070883,
-0.0944887027,
0.0759406015,
-0.2435695976,
0.0066941478,
-0.2141815126,
-0.1075401083,
-0.1100084558,
-0.1466597319,
0.114092283,
0.2089680284,
-0.172258541,
-0.3939288855,
0.3610928655,
-0.1468096673,
-0.2470577359,
0.4836381376,
-0.0001109908,
0.0874135718,
0.4979124665,
-0.094658725,
-0.3257263005,
0.2187439948,
-0.2208337188,
-0.392575562,
-0.1766951233,
-0.5591235757,
0.1095197052,
0.3231534958,
-0.1512697637,
0.0166533198,
0.0793447122,
0.1912072748,
0.2628454864,
0.5959455371,
0.2259002328,
-0.1648680121,
0.334274739,
-0.2491685599,
-0.2119429559,
0.4761386812,
0.079815343,
0.0839704201,
-0.0806194916,
0.2674737871,
-0.0862876326,
0.0745856091,
-0.0623313859,
-0.2316990346,
0.2357163578,
-0.1239103079,
0.26316908,
0.2116382867,
0.0131387906,
-0.3023892641,
-0.3866115808,
-0.1624422818,
0.1638469547,
-0.0242626369,
0.2983596623,
0.2701293826,
-0.2362079173,
-0.2640855312,
-0.2942134142,
0.2515364885,
-0.0140555585,
-0.0136045339,
-0.0416358747,
0.1932385117,
0.0531323887,
0.0917290151,
0.1218989193,
0.1144481972,
-0.0156163936,
0.0501722507,
-0.1965697855,
0.0878201947,
-0.6071635485,
-0.2512291074,
0.0340557545,
0.1496303082,
0.3839890063,
0.1059774682,
0.0410789512,
0.0374563336,
0.1584222615,
0.0566388592,
-0.0171031337,
0.2904165983,
0.0940264463,
-0.1082722694,
0.1896018535,
0.4522923231,
-0.2431430221,
0.0651864856,
-0.2118526995,
-0.2496043742,
0.1051945463,
0.1319537312,
0.0374169685,
-0.0672406852,
-0.3496275842,
0.2294098735,
0.1588986665,
0.2358555645,
0.2828548849,
0.2968423367,
-0.3891031146,
0.0931928903,
-0.0465096906,
0.3047627807,
0.040067438,
0.0398540646,
-0.2344686985,
0.148016423,
-0.2909499705,
-0.1988755018,
0.2057025582,
-0.4085453153,
0.4943645298,
-0.0837448835,
0.2511698604,
-0.3185098171,
-0.0275850501,
-0.1374470592,
-0.1532080173,
0.4017928839,
-0.050031025,
0.0725838467,
0.2177205235,
0.3343732953,
-0.0546420291,
0.0821977481,
-0.4420628846,
-0.0571910255,
-0.137177065,
0.2104993463,
-0.2309620231,
0.0125409607,
-0.268912524,
-0.4179104269,
0.4113924503,
-0.273580879,
0.1810569316,
-0.0960633531,
-0.2016113549,
-0.4305160344,
0.2610640228,
0.0877297372,
-0.1757514179,
0.0467117056,
-0.2709529996,
-0.2940074205,
0.1010697335,
0.1193907335,
-0.1870777011,
0.5738447309,
-0.1130401492,
-0.0081109656,
0.0014032291,
-0.5044888258,
-0.6426458955,
-0.0658599213,
-0.0756246746,
0.1515776217,
-0.0899426863,
0.0706601441,
0.0440538637,
-0.0837415755,
0.0144667383,
0.0935856849,
-0.0298684146,
0.225946635,
-0.3437547088,
-0.3017332554,
0.0772283971,
0.1929337233,
0.2797106802,
-0.1758480519,
0.3025606871,
0.3612269759,
0.1699945927,
0.0790377483,
0.0787123367,
0.0994150564,
0.2066201866,
-0.2813220918,
0.0432323739,
-0.1722419709,
-0.2846133709,
0.4127876759,
-0.2276905626,
0.009458255,
-0.0272185467,
-0.1355573088,
-0.4488739371,
0.0707698762,
-0.1877658069,
-0.2652890682,
0.2193031311,
-0.0864303857,
0.2091259509,
-0.0262704939,
-0.0770981759,
0.0785584226,
-0.4619821608,
0.0101320259,
-0.0109652253,
0.213428244,
0.0142191164,
-0.1702804565,
-0.1117766127,
0.2550697327,
0.0391685218,
0.0254470054,
-0.1915007979,
0.4578006864,
0.0657746717,
0.0850697756,
0.3547762036,
-0.2345827371,
0.0772708207,
-0.0705752522,
-0.0538467392,
0.207399562,
0.1462939233,
-0.0788003579,
0.0117745232,
0.4415224791,
-0.0940737054,
-0.0080812667,
-0.1512877643,
-0.0672111884,
0.007343689,
-0.2070638388,
-0.0780212879,
0.1805804819,
0.1815249026,
-0.1155861244,
-0.072316438,
-0.1447074115,
0.0641325936,
-0.1356380731,
0.4521493912,
0.0771959424,
0.1171917841,
-0.0103694545,
0.1338866949,
0.054617893,
-0.0911714658,
0.3222326636,
0.4426186383,
0.0551940985,
0.1465142518,
0.0251179468,
-0.1807835847,
-0.0666824579,
0.0458556488,
0.1736731678,
0.2500109971,
0.4820315838,
0.1924391389,
-0.0239535999,
-0.1193850562,
0.1691375226,
0.2175244689,
0.2131068408,
-0.0167400092,
-0.2323629558,
-0.078427881,
-0.1616696864,
-0.0877587944,
-0.0425416417,
-0.1546122134,
-0.259536624,
-0.0062626372,
0.1712180078,
-0.1001775414,
0.2672737241,
-0.3696242571,
0.0906299576,
0.3246645927,
-0.4286693633,
0.0408192761,
-0.0976965055,
0.0449512787,
0.094701685,
0.4179496467,
-0.2572260201,
0.536355257,
-0.0860768482,
-0.0606416985,
-0.2047611177,
-0.2904703319,
-0.0598197654,
-0.1043633148,
0.29212901,
0.1008936316,
0.4968917966,
-0.2957883775,
-0.2212337852,
0.4083016217,
-0.2789634466,
-0.2948337197,
0.0946154892,
0.1188264117,
0.0558083765,
-0.3278342783,
-0.1349571198,
-0.0236363523,
-0.3361681998,
-0.1312641799,
-0.0823910758,
0.1631363481,
0.2060045153,
0.2732996643,
0.3915458322,
0.0997621343,
0.0926077962,
-0.144623667,
-0.6678729057,
0.2433636934,
-0.0873007476,
-0.452177465,
0.0486312993,
-0.1096474901,
0.4888756275,
0.0911077932,
-0.4867102504,
-0.2733827829,
-0.0066137393,
0.2153506726,
0.0214940421,
-0.0024960507,
0.0939633846,
-0.2705866396,
-0.1402052194,
-0.2706997693,
0.1098222733,
0.1001069173,
-0.049319692,
0.5106631517,
-0.0548373312,
0.0889035538,
0.181440115,
0.5321947336,
0.3698290884,
0.1716741025,
0.3536888063,
0.0106154056,
0.1630487889,
-0.0863212496,
-0.3648348749,
0.2911826372,
-0.1914527267,
0.0581453033,
0.1354125589,
-0.0564164557,
-0.0050189821,
-0.0837476924,
-0.1307545602,
-0.4241702855,
-0.2956396341,
0.0324498974,
-0.0749622881,
0.1063113511,
-0.1865644604,
0.0577609316,
-0.1246065795,
-0.1543662995,
0.2453449517,
0.1521897614,
-0.2079528272,
-0.0233823471,
-0.2534613609,
-0.3950665295,
-0.0084852781,
0.0488045923,
0.1407691687,
0.2005422562,
0.0092099896,
0.0048699579,
0.033273574,
-0.2446439564,
0.6753028035,
-0.0888502821,
0.2909526825,
-0.2168642133,
0.0988597646,
-0.2175585479,
-0.2775553167,
-0.0856699944,
-0.3238003254,
0.5570373535,
0.4324874878,
-0.4728830457,
0.2385778725,
0.1862647533,
0.3385672867,
-0.0520418771,
-0.1320116818,
-0.3523636758,
-0.4857138097,
-0.6219678521,
0.3324493468,
0.1016177759,
0.596637547,
-0.0034009838,
-0.0524991266,
-0.0377730466,
0.0888324603,
-0.0398963392,
0.0720181689,
0.3407588303,
0.085328497,
0.3357996643,
-0.0902155861,
-0.1750656664,
0.165071696,
0.6797143817,
0.1000375077,
0.2110523731,
-0.0902859941,
-0.0913116187,
0.071198605,
0.3483096957,
-0.2642265558,
0.0673509017,
0.0312346984,
0.0548943542,
0.0173837021,
0.202649042,
0.2437805235,
-0.1899095923,
-0.2394899875,
-0.2049423456,
0.1822313815,
-0.1330811679,
0.174426049,
0.3062015474,
-0.1403937936,
-0.0729961619,
-0.196603924,
0.3140939176,
0.912765801,
-0.0148909083,
-0.0404997133,
0.3089274466,
-0.0072766487,
0.0442468897,
0.0139881605,
0.0487515554,
-0.489420265,
-0.2676780224,
0.1124164909,
-0.1645139456,
0.0994342864,
-0.1210369542,
-0.0105525348,
0.0562177449,
0.0188061371,
0.1624786556,
-0.0944531634,
0.1397337914,
-0.2828187644,
-0.1165762767,
-0.1173802093,
0.2048284113,
-0.1263251752,
0.2341127098,
-0.1091644987,
-0.1045215949,
-0.2076223642,
-0.2671166658,
-0.2936421633,
0.143863067,
-0.1771523356,
0.0470378138,
0.3640767932,
-0.1628456265,
-0.228227511,
0.1803667098,
-0.0722553059,
0.4440911412,
-0.1363047212,
0.1350961775,
0.0845985487,
0.0512254983,
0.0691729859,
0.0556621067,
0.3490368724,
-0.2920282781,
-0.2485523373,
0.0792520642,
-0.2398925275,
-0.2072193623,
0.2692494094,
0.0792314261,
-0.0377779789,
-0.2034461945,
-0.2223376483,
-0.2957213521,
-0.0104946736,
-0.2804277241,
0.1702608764,
0.224435553,
-0.2182363868,
0.2552292347,
-0.0215289108,
-0.1854026616,
-0.1744305044,
0.3820165098,
-0.0714738667,
-0.131868422,
0.4333045483,
-0.0418663062,
-0.1785487682,
-0.2247381657,
0.1301099807,
-0.1613603085,
-0.2732703388,
-0.0128093222,
-0.0142020276,
-0.0666098893,
-0.1600300074,
0.3254968226,
0.3013855815,
0.0965215191,
0.1635766625,
-0.7460657358,
-0.3938939571,
0.3170651197,
0.2173994184,
0.4283658266,
-0.2577969432,
0.2833601236,
0.0906677768,
-0.0615352578,
-0.3278464675,
0.0680090636,
-0.3784822822,
0.1518351585,
-0.2168707997,
0.1344902962,
0.403226018,
0.0292628836,
0.1479199082,
0.22600618,
-0.1174650341,
-0.2547969222,
-0.2748432159,
0.1113099754,
0.1127266511,
0.072404258,
0.3635854125,
-0.2159924358,
-0.1276825666,
-0.0560466684,
0.0853961557,
-0.0989312008,
-0.0525673628,
0.0470942706,
0.3842283487,
0.3878114223,
0.0655781999,
0.0630514771,
-0.1209971607,
-0.0537938587,
-0.054392837,
0.021221621,
0.0954487473,
0.0250811558,
0.1554396451,
-0.0537186638,
-0.0855356082,
0.0845451578,
0.255605638,
-0.1584444046,
-0.1879191101,
0.3148201108,
0.2792293429,
0.3297681808,
-0.3652881086,
-0.0719787553,
0.199144721,
0.2292848229,
-0.353911221,
0.0860582814,
-0.0904960185,
-0.0417124629,
0.0084928405,
0.1727674156,
-0.1353271604,
-0.2922621667,
0.2095811367,
0.0212050304,
0.2108550817,
-0.3285641074,
0.0852015838,
0.330989033,
-0.0687152669,
0.0001750427,
0.1874009222,
-0.3161803186,
-0.076817289,
0.2871351838,
0.0685694218,
0.243886292,
-0.0930559337,
-0.0934740975,
-0.1211193725,
-0.1969801784,
0.1558849812,
0.2837243974,
-0.2733985484,
0.0605427139,
0.012996682,
0.4671797752,
-0.2582709491,
-0.0795688629,
-0.4062424302,
0.2013594806,
-0.1711080819,
0.085633181,
-0.3096655011,
-0.2636016607,
0.0938565508,
0.1396972388,
0.1729987115,
0.1102163494,
0.3649654388,
0.1715028435,
-0.2376599163,
-0.2350210547,
-0.2375861555,
0.284828037,
0.0519454926,
-0.3388266563,
0.0929983556,
0.3620938361,
0.0903644636,
-0.0620247312,
0.3303189874,
0.2697940171,
0.3318766057,
0.1540994793,
-0.1488151103,
0.2252564281,
0.0914630964,
-0.1504566818,
0.466840744,
0.3692866266,
0.1774428338,
0.4598397315,
0.1724113077,
-0.2536035478,
-0.2277555615,
-0.1114611924,
-0.3247655928,
-0.049841322,
0.7239419818,
-0.1353026628,
-0.0130404178,
-0.1965537816,
0.058885511,
-0.3145705462,
0.0200504437,
-0.0790297166,
0.2127576619,
0.2388379425,
-0.1687498689,
0.0927502811,
-0.1293296516,
0.5125470161,
0.1489021331,
0.0075722397,
-0.3973799348,
-0.0962232202,
-0.6778886318,
0.2711643577,
-0.0548247397,
0.0547450148,
0.0478428453,
-0.0138702039,
-0.3356514871,
0.1808523387,
0.364415139,
-0.480502218,
0.2303344756,
0.1335691363,
-0.2220817953,
-0.0891776681,
-0.0438407362,
-0.3323345482,
0.1424788237,
-0.4114668965,
0.2331302017,
-0.2657676935,
0.133243084,
0.1295605153,
-0.3359618783,
0.0367130823,
-0.1942839772,
0.1509385109,
-0.1440362185,
0.636259973,
-0.2161979973,
-0.1354991049,
-0.2612704337,
-0.0208829809,
-0.1121940538,
0.2381794304,
-0.0155580724,
0.5562106967,
0.2307515144,
-0.0877098516,
-0.14632532,
0.416375488,
0.1929424852,
-0.1839290112,
0.0430410951,
-0.0225390531,
0.0230966639,
-0.1379972845,
0.1602534652,
0.1347419918,
-0.039041549,
0.3268689811,
-0.3576345146,
-0.3692804873,
0.4346891344,
-0.2992685437,
-0.3855253756,
0.0007674838,
0.2614839673,
-0.3448122144,
-0.0961380079,
-0.7570762634,
0.1063818708,
0.2049052119,
0.0726168007,
-0.1194311753,
0.2222843021,
-0.2249277383,
0.1355229318,
0.1756156683,
0.1341632605,
-0.1550636441,
-0.1811256558,
0.1479706466,
-0.1670133173
] |
https://github.com/huggingface/datasets/issues/3265 | Checksum error for kilt_task_wow | Hi @slyviacassell, thanks for reporting.
Yes, there is an issue with the checksum verification. I'm fixing it.
And as you pointed out, in the meantime, you can circumvent the problem by passing `ignore_verifications=True`. | ## Describe the bug
Checksum failed when downloads kilt_tasks_wow. See error output for details.
## Steps to reproduce the bug
```python
import datasets
datasets.load_datasets('kilt_tasks','wow')
```
## Expected results
Download successful
## Actual results
```
Downloading and preparing dataset kilt_tasks/wow (download: 72.07 MiB, generated: 61.82 MiB, post-processed: Unknown size, total: 133.89 MiB) to /root/.cache/huggingface/datasets/kilt_tasks/wow/1.0.0/57dc8b2431e76637e0c6ef79689ca4af61ed3a330e2e0cd62c8971465a35db3a...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 5121.25it/s]
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1527.42it/s]
Traceback (most recent call last):
File "kilt_wow.py", line 30, in <module>
main()
File "kilt_wow.py", line 27, in main
train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
dataset = self.load_dataset()
File "kilt_wow.py", line 21, in load_dataset
return datasets.load_dataset('kilt_tasks','wow')
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['http://dl.fbaipublicfiles.com/KILT/wow-train-kilt.jsonl', 'http://dl.fbaipublicfiles.com/KILT/wow-dev-kilt.jsonl']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-4.15.0-161-generic-x86_64-with-glibc2.10
- Python version: 3.8.3
- PyArrow version: 4.0.1
| 33 | Checksum error for kilt_task_wow
## Describe the bug
Checksum failed when downloads kilt_tasks_wow. See error output for details.
## Steps to reproduce the bug
```python
import datasets
datasets.load_datasets('kilt_tasks','wow')
```
## Expected results
Download successful
## Actual results
```
Downloading and preparing dataset kilt_tasks/wow (download: 72.07 MiB, generated: 61.82 MiB, post-processed: Unknown size, total: 133.89 MiB) to /root/.cache/huggingface/datasets/kilt_tasks/wow/1.0.0/57dc8b2431e76637e0c6ef79689ca4af61ed3a330e2e0cd62c8971465a35db3a...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 5121.25it/s]
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1527.42it/s]
Traceback (most recent call last):
File "kilt_wow.py", line 30, in <module>
main()
File "kilt_wow.py", line 27, in main
train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
dataset = self.load_dataset()
File "kilt_wow.py", line 21, in load_dataset
return datasets.load_dataset('kilt_tasks','wow')
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 679, in _download_and_prepare
verify_checksums(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['http://dl.fbaipublicfiles.com/KILT/wow-train-kilt.jsonl', 'http://dl.fbaipublicfiles.com/KILT/wow-dev-kilt.jsonl']
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-4.15.0-161-generic-x86_64-with-glibc2.10
- Python version: 3.8.3
- PyArrow version: 4.0.1
Hi @slyviacassell, thanks for reporting.
Yes, there is an issue with the checksum verification. I'm fixing it.
And as you pointed out, in the meantime, you can circumvent the problem by passing `ignore_verifications=True`. | [
-0.0128258085,
-0.2781217992,
-0.0930913538,
0.2878222167,
0.3997595906,
-0.0828802958,
0.2399520427,
0.5319925547,
0.3643353581,
0.1832444221,
0.0476305783,
0.3454276621,
0.0678310692,
0.3870452642,
-0.0282226354,
0.1116022542,
0.0441304035,
-0.1036070883,
-0.0944887027,
0.0759406015,
-0.2435695976,
0.0066941478,
-0.2141815126,
-0.1075401083,
-0.1100084558,
-0.1466597319,
0.114092283,
0.2089680284,
-0.172258541,
-0.3939288855,
0.3610928655,
-0.1468096673,
-0.2470577359,
0.4836381376,
-0.0001109908,
0.0874135718,
0.4979124665,
-0.094658725,
-0.3257263005,
0.2187439948,
-0.2208337188,
-0.392575562,
-0.1766951233,
-0.5591235757,
0.1095197052,
0.3231534958,
-0.1512697637,
0.0166533198,
0.0793447122,
0.1912072748,
0.2628454864,
0.5959455371,
0.2259002328,
-0.1648680121,
0.334274739,
-0.2491685599,
-0.2119429559,
0.4761386812,
0.079815343,
0.0839704201,
-0.0806194916,
0.2674737871,
-0.0862876326,
0.0745856091,
-0.0623313859,
-0.2316990346,
0.2357163578,
-0.1239103079,
0.26316908,
0.2116382867,
0.0131387906,
-0.3023892641,
-0.3866115808,
-0.1624422818,
0.1638469547,
-0.0242626369,
0.2983596623,
0.2701293826,
-0.2362079173,
-0.2640855312,
-0.2942134142,
0.2515364885,
-0.0140555585,
-0.0136045339,
-0.0416358747,
0.1932385117,
0.0531323887,
0.0917290151,
0.1218989193,
0.1144481972,
-0.0156163936,
0.0501722507,
-0.1965697855,
0.0878201947,
-0.6071635485,
-0.2512291074,
0.0340557545,
0.1496303082,
0.3839890063,
0.1059774682,
0.0410789512,
0.0374563336,
0.1584222615,
0.0566388592,
-0.0171031337,
0.2904165983,
0.0940264463,
-0.1082722694,
0.1896018535,
0.4522923231,
-0.2431430221,
0.0651864856,
-0.2118526995,
-0.2496043742,
0.1051945463,
0.1319537312,
0.0374169685,
-0.0672406852,
-0.3496275842,
0.2294098735,
0.1588986665,
0.2358555645,
0.2828548849,
0.2968423367,
-0.3891031146,
0.0931928903,
-0.0465096906,
0.3047627807,
0.040067438,
0.0398540646,
-0.2344686985,
0.148016423,
-0.2909499705,
-0.1988755018,
0.2057025582,
-0.4085453153,
0.4943645298,
-0.0837448835,
0.2511698604,
-0.3185098171,
-0.0275850501,
-0.1374470592,
-0.1532080173,
0.4017928839,
-0.050031025,
0.0725838467,
0.2177205235,
0.3343732953,
-0.0546420291,
0.0821977481,
-0.4420628846,
-0.0571910255,
-0.137177065,
0.2104993463,
-0.2309620231,
0.0125409607,
-0.268912524,
-0.4179104269,
0.4113924503,
-0.273580879,
0.1810569316,
-0.0960633531,
-0.2016113549,
-0.4305160344,
0.2610640228,
0.0877297372,
-0.1757514179,
0.0467117056,
-0.2709529996,
-0.2940074205,
0.1010697335,
0.1193907335,
-0.1870777011,
0.5738447309,
-0.1130401492,
-0.0081109656,
0.0014032291,
-0.5044888258,
-0.6426458955,
-0.0658599213,
-0.0756246746,
0.1515776217,
-0.0899426863,
0.0706601441,
0.0440538637,
-0.0837415755,
0.0144667383,
0.0935856849,
-0.0298684146,
0.225946635,
-0.3437547088,
-0.3017332554,
0.0772283971,
0.1929337233,
0.2797106802,
-0.1758480519,
0.3025606871,
0.3612269759,
0.1699945927,
0.0790377483,
0.0787123367,
0.0994150564,
0.2066201866,
-0.2813220918,
0.0432323739,
-0.1722419709,
-0.2846133709,
0.4127876759,
-0.2276905626,
0.009458255,
-0.0272185467,
-0.1355573088,
-0.4488739371,
0.0707698762,
-0.1877658069,
-0.2652890682,
0.2193031311,
-0.0864303857,
0.2091259509,
-0.0262704939,
-0.0770981759,
0.0785584226,
-0.4619821608,
0.0101320259,
-0.0109652253,
0.213428244,
0.0142191164,
-0.1702804565,
-0.1117766127,
0.2550697327,
0.0391685218,
0.0254470054,
-0.1915007979,
0.4578006864,
0.0657746717,
0.0850697756,
0.3547762036,
-0.2345827371,
0.0772708207,
-0.0705752522,
-0.0538467392,
0.207399562,
0.1462939233,
-0.0788003579,
0.0117745232,
0.4415224791,
-0.0940737054,
-0.0080812667,
-0.1512877643,
-0.0672111884,
0.007343689,
-0.2070638388,
-0.0780212879,
0.1805804819,
0.1815249026,
-0.1155861244,
-0.072316438,
-0.1447074115,
0.0641325936,
-0.1356380731,
0.4521493912,
0.0771959424,
0.1171917841,
-0.0103694545,
0.1338866949,
0.054617893,
-0.0911714658,
0.3222326636,
0.4426186383,
0.0551940985,
0.1465142518,
0.0251179468,
-0.1807835847,
-0.0666824579,
0.0458556488,
0.1736731678,
0.2500109971,
0.4820315838,
0.1924391389,
-0.0239535999,
-0.1193850562,
0.1691375226,
0.2175244689,
0.2131068408,
-0.0167400092,
-0.2323629558,
-0.078427881,
-0.1616696864,
-0.0877587944,
-0.0425416417,
-0.1546122134,
-0.259536624,
-0.0062626372,
0.1712180078,
-0.1001775414,
0.2672737241,
-0.3696242571,
0.0906299576,
0.3246645927,
-0.4286693633,
0.0408192761,
-0.0976965055,
0.0449512787,
0.094701685,
0.4179496467,
-0.2572260201,
0.536355257,
-0.0860768482,
-0.0606416985,
-0.2047611177,
-0.2904703319,
-0.0598197654,
-0.1043633148,
0.29212901,
0.1008936316,
0.4968917966,
-0.2957883775,
-0.2212337852,
0.4083016217,
-0.2789634466,
-0.2948337197,
0.0946154892,
0.1188264117,
0.0558083765,
-0.3278342783,
-0.1349571198,
-0.0236363523,
-0.3361681998,
-0.1312641799,
-0.0823910758,
0.1631363481,
0.2060045153,
0.2732996643,
0.3915458322,
0.0997621343,
0.0926077962,
-0.144623667,
-0.6678729057,
0.2433636934,
-0.0873007476,
-0.452177465,
0.0486312993,
-0.1096474901,
0.4888756275,
0.0911077932,
-0.4867102504,
-0.2733827829,
-0.0066137393,
0.2153506726,
0.0214940421,
-0.0024960507,
0.0939633846,
-0.2705866396,
-0.1402052194,
-0.2706997693,
0.1098222733,
0.1001069173,
-0.049319692,
0.5106631517,
-0.0548373312,
0.0889035538,
0.181440115,
0.5321947336,
0.3698290884,
0.1716741025,
0.3536888063,
0.0106154056,
0.1630487889,
-0.0863212496,
-0.3648348749,
0.2911826372,
-0.1914527267,
0.0581453033,
0.1354125589,
-0.0564164557,
-0.0050189821,
-0.0837476924,
-0.1307545602,
-0.4241702855,
-0.2956396341,
0.0324498974,
-0.0749622881,
0.1063113511,
-0.1865644604,
0.0577609316,
-0.1246065795,
-0.1543662995,
0.2453449517,
0.1521897614,
-0.2079528272,
-0.0233823471,
-0.2534613609,
-0.3950665295,
-0.0084852781,
0.0488045923,
0.1407691687,
0.2005422562,
0.0092099896,
0.0048699579,
0.033273574,
-0.2446439564,
0.6753028035,
-0.0888502821,
0.2909526825,
-0.2168642133,
0.0988597646,
-0.2175585479,
-0.2775553167,
-0.0856699944,
-0.3238003254,
0.5570373535,
0.4324874878,
-0.4728830457,
0.2385778725,
0.1862647533,
0.3385672867,
-0.0520418771,
-0.1320116818,
-0.3523636758,
-0.4857138097,
-0.6219678521,
0.3324493468,
0.1016177759,
0.596637547,
-0.0034009838,
-0.0524991266,
-0.0377730466,
0.0888324603,
-0.0398963392,
0.0720181689,
0.3407588303,
0.085328497,
0.3357996643,
-0.0902155861,
-0.1750656664,
0.165071696,
0.6797143817,
0.1000375077,
0.2110523731,
-0.0902859941,
-0.0913116187,
0.071198605,
0.3483096957,
-0.2642265558,
0.0673509017,
0.0312346984,
0.0548943542,
0.0173837021,
0.202649042,
0.2437805235,
-0.1899095923,
-0.2394899875,
-0.2049423456,
0.1822313815,
-0.1330811679,
0.174426049,
0.3062015474,
-0.1403937936,
-0.0729961619,
-0.196603924,
0.3140939176,
0.912765801,
-0.0148909083,
-0.0404997133,
0.3089274466,
-0.0072766487,
0.0442468897,
0.0139881605,
0.0487515554,
-0.489420265,
-0.2676780224,
0.1124164909,
-0.1645139456,
0.0994342864,
-0.1210369542,
-0.0105525348,
0.0562177449,
0.0188061371,
0.1624786556,
-0.0944531634,
0.1397337914,
-0.2828187644,
-0.1165762767,
-0.1173802093,
0.2048284113,
-0.1263251752,
0.2341127098,
-0.1091644987,
-0.1045215949,
-0.2076223642,
-0.2671166658,
-0.2936421633,
0.143863067,
-0.1771523356,
0.0470378138,
0.3640767932,
-0.1628456265,
-0.228227511,
0.1803667098,
-0.0722553059,
0.4440911412,
-0.1363047212,
0.1350961775,
0.0845985487,
0.0512254983,
0.0691729859,
0.0556621067,
0.3490368724,
-0.2920282781,
-0.2485523373,
0.0792520642,
-0.2398925275,
-0.2072193623,
0.2692494094,
0.0792314261,
-0.0377779789,
-0.2034461945,
-0.2223376483,
-0.2957213521,
-0.0104946736,
-0.2804277241,
0.1702608764,
0.224435553,
-0.2182363868,
0.2552292347,
-0.0215289108,
-0.1854026616,
-0.1744305044,
0.3820165098,
-0.0714738667,
-0.131868422,
0.4333045483,
-0.0418663062,
-0.1785487682,
-0.2247381657,
0.1301099807,
-0.1613603085,
-0.2732703388,
-0.0128093222,
-0.0142020276,
-0.0666098893,
-0.1600300074,
0.3254968226,
0.3013855815,
0.0965215191,
0.1635766625,
-0.7460657358,
-0.3938939571,
0.3170651197,
0.2173994184,
0.4283658266,
-0.2577969432,
0.2833601236,
0.0906677768,
-0.0615352578,
-0.3278464675,
0.0680090636,
-0.3784822822,
0.1518351585,
-0.2168707997,
0.1344902962,
0.403226018,
0.0292628836,
0.1479199082,
0.22600618,
-0.1174650341,
-0.2547969222,
-0.2748432159,
0.1113099754,
0.1127266511,
0.072404258,
0.3635854125,
-0.2159924358,
-0.1276825666,
-0.0560466684,
0.0853961557,
-0.0989312008,
-0.0525673628,
0.0470942706,
0.3842283487,
0.3878114223,
0.0655781999,
0.0630514771,
-0.1209971607,
-0.0537938587,
-0.054392837,
0.021221621,
0.0954487473,
0.0250811558,
0.1554396451,
-0.0537186638,
-0.0855356082,
0.0845451578,
0.255605638,
-0.1584444046,
-0.1879191101,
0.3148201108,
0.2792293429,
0.3297681808,
-0.3652881086,
-0.0719787553,
0.199144721,
0.2292848229,
-0.353911221,
0.0860582814,
-0.0904960185,
-0.0417124629,
0.0084928405,
0.1727674156,
-0.1353271604,
-0.2922621667,
0.2095811367,
0.0212050304,
0.2108550817,
-0.3285641074,
0.0852015838,
0.330989033,
-0.0687152669,
0.0001750427,
0.1874009222,
-0.3161803186,
-0.076817289,
0.2871351838,
0.0685694218,
0.243886292,
-0.0930559337,
-0.0934740975,
-0.1211193725,
-0.1969801784,
0.1558849812,
0.2837243974,
-0.2733985484,
0.0605427139,
0.012996682,
0.4671797752,
-0.2582709491,
-0.0795688629,
-0.4062424302,
0.2013594806,
-0.1711080819,
0.085633181,
-0.3096655011,
-0.2636016607,
0.0938565508,
0.1396972388,
0.1729987115,
0.1102163494,
0.3649654388,
0.1715028435,
-0.2376599163,
-0.2350210547,
-0.2375861555,
0.284828037,
0.0519454926,
-0.3388266563,
0.0929983556,
0.3620938361,
0.0903644636,
-0.0620247312,
0.3303189874,
0.2697940171,
0.3318766057,
0.1540994793,
-0.1488151103,
0.2252564281,
0.0914630964,
-0.1504566818,
0.466840744,
0.3692866266,
0.1774428338,
0.4598397315,
0.1724113077,
-0.2536035478,
-0.2277555615,
-0.1114611924,
-0.3247655928,
-0.049841322,
0.7239419818,
-0.1353026628,
-0.0130404178,
-0.1965537816,
0.058885511,
-0.3145705462,
0.0200504437,
-0.0790297166,
0.2127576619,
0.2388379425,
-0.1687498689,
0.0927502811,
-0.1293296516,
0.5125470161,
0.1489021331,
0.0075722397,
-0.3973799348,
-0.0962232202,
-0.6778886318,
0.2711643577,
-0.0548247397,
0.0547450148,
0.0478428453,
-0.0138702039,
-0.3356514871,
0.1808523387,
0.364415139,
-0.480502218,
0.2303344756,
0.1335691363,
-0.2220817953,
-0.0891776681,
-0.0438407362,
-0.3323345482,
0.1424788237,
-0.4114668965,
0.2331302017,
-0.2657676935,
0.133243084,
0.1295605153,
-0.3359618783,
0.0367130823,
-0.1942839772,
0.1509385109,
-0.1440362185,
0.636259973,
-0.2161979973,
-0.1354991049,
-0.2612704337,
-0.0208829809,
-0.1121940538,
0.2381794304,
-0.0155580724,
0.5562106967,
0.2307515144,
-0.0877098516,
-0.14632532,
0.416375488,
0.1929424852,
-0.1839290112,
0.0430410951,
-0.0225390531,
0.0230966639,
-0.1379972845,
0.1602534652,
0.1347419918,
-0.039041549,
0.3268689811,
-0.3576345146,
-0.3692804873,
0.4346891344,
-0.2992685437,
-0.3855253756,
0.0007674838,
0.2614839673,
-0.3448122144,
-0.0961380079,
-0.7570762634,
0.1063818708,
0.2049052119,
0.0726168007,
-0.1194311753,
0.2222843021,
-0.2249277383,
0.1355229318,
0.1756156683,
0.1341632605,
-0.1550636441,
-0.1811256558,
0.1479706466,
-0.1670133173
] |
https://github.com/huggingface/datasets/issues/3264 | Downloading URL change for WikiAuto Manual, jeopardy and definite_pronoun_resolution | #take
I am willing to fix this. Links can be replaced for WikiAuto Manual and jeopardy with new ones provided by authors.
As for the definite_pronoun_resolution URL, a certificate error seems to be preventing a download. I have the files on my local machine. I can include them in the dataset folder as the files are <1MB in size total. | ## Describe the bug
- WikiAuto Manual
The original manual datasets with the following downloading URL in this [repository](https://github.com/chaojiang06/wiki-auto) was [deleted](https://github.com/chaojiang06/wiki-auto/commit/0af9b066f2b4e02726fb8a9be49283c0ad25367f) by the author.
```
https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/train.tsv
```
- jeopardy
The downloading URL for jeopardy may move from
```
http://skeeto.s3.amazonaws.com/share/JEOPARDY_QUESTIONS1.json.gz
```
to
```
https://drive.google.com/file/d/0BwT5wj_P7BKXb2hfM3d2RHU1ckE/view?resourcekey=0-1abK4cJq-mqxFoSg86ieIg
```
- definite_pronoun_resolution
The following downloading URL for definite_pronoun_resolution cannot be reached for some reasons.
```
http://www.hlt.utdallas.edu/~vince/data/emnlp12/train.c.txt
```
## Steps to reproduce the bug
```python
import datasets
datasets.load_datasets('wiki_auto','manual')
datasets.load_datasets('jeopardy')
datasets.load_datasets('definite_pronoun_resolution')
```
## Expected results
Download successfully
## Actual results
- WikiAuto Manual
```
Downloading and preparing dataset wiki_auto/manual (download: 151.65 MiB, generated: 155.97 MiB, post-processed: Unknown size, total: 307.61 MiB) to /root/.cache/huggingface/datasets/wiki_auto/manual/1.0.0/5ffdd9fc62422d29bd02675fb9606f77c1251ee17169ac10b143ce07ef2f4db8...
0%| | 0/3 [00:00<?, ?it/s]Traceback (most recent call last):
File "wiki_auto.py", line 43, in <module>
main()
File "wiki_auto.py", line 40, in main
train, dev, test = dataset.generate_k_shot_data(k=16, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 24, in generate_k_shot_data
dataset = self.load_dataset()
File "wiki_auto.py", line 34, in load_dataset
return datasets.load_dataset('wiki_auto', 'manual')
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wiki_auto/5ffdd9fc62422d29bd02675fb9606f77c1251ee17169ac10b143ce07ef2f4db8/wiki_auto.py", line 193, in _split_generators
data_dir = dl_manager.download_and_extract(my_urls)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
mapped = [
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 217, in <listcomp>
_single_map_nested((function, obj, types, None, True))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 152, in _single_map_nested
return function(data_struct)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 592, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/train.tsv
```
- jeopardy
```
Using custom data configuration default
Downloading and preparing dataset jeopardy/default (download: 12.13 MiB, generated: 34.46 MiB, post-processed: Unknown size, total: 46.59 MiB) to /root/.cache/huggingface/datasets/jeopardy/default/0.1.0/25ee3e4a73755e637b8810f6493fd36e4523dea3ca8a540529d0a6e24c7f9810...
Traceback (most recent call last):
File "jeopardy.py", line 45, in <module>
main()
File "jeopardy.py", line 42, in main
train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
dataset = self.load_dataset()
File "jeopardy.py", line 36, in load_dataset
return datasets.load_dataset("jeopardy")
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/jeopardy/25ee3e4a73755e637b8810f6493fd36e4523dea3ca8a540529d0a6e24c7f9810/jeopardy.py", line 72, in _split_generators
filepath = dl_manager.download_and_extract(_DATA_URL)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 206, in map_nested
return function(data_struct)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://skeeto.s3.amazonaws.com/share/JEOPARDY_QUESTIONS1.json.gz
```
- definite_pronoun_resolution
```
Downloading and preparing dataset definite_pronoun_resolution/plain_text (download: 222.12 KiB, generated: 239.12 KiB, post-processed: Unknown size, total: 461.24 KiB) to /root/.cache/huggingface/datasets/definite_pronoun_resolution/plain_text/1.0.0/35a1dfd4fba4afb8ba226cbbb65ac7cef0dd3cf9302d8f803740f05d2f16ceff...
0%| | 0/2 [00:00<?, ?it/s]Traceback (most recent call last):
File "definite_pronoun_resolution.py", line 37, in <module>
main()
File "definite_pronoun_resolution.py", line 34, in main
train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
dataset = self.load_dataset()
File "definite_pronoun_resolution.py", line 28, in load_dataset
return datasets.load_dataset('definite_pronoun_resolution')
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/definite_pronoun_resolution/35a1dfd4fba4afb8ba226cbbb65ac7cef0dd3cf9302d8f803740f05d2f16ceff/definite_pronoun_resolution.py", line 76, in _split_generators
files = dl_manager.download_and_extract(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
mapped = [
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 217, in <listcomp>
_single_map_nested((function, obj, types, None, True))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 152, in _single_map_nested
return function(data_struct)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://www.hlt.utdallas.edu/~vince/data/emnlp12/train.c.txt
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-4.15.0-161-generic-x86_64-with-glibc2.10
- Python version: 3.8.3
- PyArrow version: 4.0.1
| 60 | Downloading URL change for WikiAuto Manual, jeopardy and definite_pronoun_resolution
## Describe the bug
- WikiAuto Manual
The original manual datasets with the following downloading URL in this [repository](https://github.com/chaojiang06/wiki-auto) was [deleted](https://github.com/chaojiang06/wiki-auto/commit/0af9b066f2b4e02726fb8a9be49283c0ad25367f) by the author.
```
https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/train.tsv
```
- jeopardy
The downloading URL for jeopardy may move from
```
http://skeeto.s3.amazonaws.com/share/JEOPARDY_QUESTIONS1.json.gz
```
to
```
https://drive.google.com/file/d/0BwT5wj_P7BKXb2hfM3d2RHU1ckE/view?resourcekey=0-1abK4cJq-mqxFoSg86ieIg
```
- definite_pronoun_resolution
The following downloading URL for definite_pronoun_resolution cannot be reached for some reasons.
```
http://www.hlt.utdallas.edu/~vince/data/emnlp12/train.c.txt
```
## Steps to reproduce the bug
```python
import datasets
datasets.load_datasets('wiki_auto','manual')
datasets.load_datasets('jeopardy')
datasets.load_datasets('definite_pronoun_resolution')
```
## Expected results
Download successfully
## Actual results
- WikiAuto Manual
```
Downloading and preparing dataset wiki_auto/manual (download: 151.65 MiB, generated: 155.97 MiB, post-processed: Unknown size, total: 307.61 MiB) to /root/.cache/huggingface/datasets/wiki_auto/manual/1.0.0/5ffdd9fc62422d29bd02675fb9606f77c1251ee17169ac10b143ce07ef2f4db8...
0%| | 0/3 [00:00<?, ?it/s]Traceback (most recent call last):
File "wiki_auto.py", line 43, in <module>
main()
File "wiki_auto.py", line 40, in main
train, dev, test = dataset.generate_k_shot_data(k=16, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 24, in generate_k_shot_data
dataset = self.load_dataset()
File "wiki_auto.py", line 34, in load_dataset
return datasets.load_dataset('wiki_auto', 'manual')
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wiki_auto/5ffdd9fc62422d29bd02675fb9606f77c1251ee17169ac10b143ce07ef2f4db8/wiki_auto.py", line 193, in _split_generators
data_dir = dl_manager.download_and_extract(my_urls)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
mapped = [
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 217, in <listcomp>
_single_map_nested((function, obj, types, None, True))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 152, in _single_map_nested
return function(data_struct)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 592, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/train.tsv
```
- jeopardy
```
Using custom data configuration default
Downloading and preparing dataset jeopardy/default (download: 12.13 MiB, generated: 34.46 MiB, post-processed: Unknown size, total: 46.59 MiB) to /root/.cache/huggingface/datasets/jeopardy/default/0.1.0/25ee3e4a73755e637b8810f6493fd36e4523dea3ca8a540529d0a6e24c7f9810...
Traceback (most recent call last):
File "jeopardy.py", line 45, in <module>
main()
File "jeopardy.py", line 42, in main
train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
dataset = self.load_dataset()
File "jeopardy.py", line 36, in load_dataset
return datasets.load_dataset("jeopardy")
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/jeopardy/25ee3e4a73755e637b8810f6493fd36e4523dea3ca8a540529d0a6e24c7f9810/jeopardy.py", line 72, in _split_generators
filepath = dl_manager.download_and_extract(_DATA_URL)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 206, in map_nested
return function(data_struct)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://skeeto.s3.amazonaws.com/share/JEOPARDY_QUESTIONS1.json.gz
```
- definite_pronoun_resolution
```
Downloading and preparing dataset definite_pronoun_resolution/plain_text (download: 222.12 KiB, generated: 239.12 KiB, post-processed: Unknown size, total: 461.24 KiB) to /root/.cache/huggingface/datasets/definite_pronoun_resolution/plain_text/1.0.0/35a1dfd4fba4afb8ba226cbbb65ac7cef0dd3cf9302d8f803740f05d2f16ceff...
0%| | 0/2 [00:00<?, ?it/s]Traceback (most recent call last):
File "definite_pronoun_resolution.py", line 37, in <module>
main()
File "definite_pronoun_resolution.py", line 34, in main
train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
dataset = self.load_dataset()
File "definite_pronoun_resolution.py", line 28, in load_dataset
return datasets.load_dataset('definite_pronoun_resolution')
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/definite_pronoun_resolution/35a1dfd4fba4afb8ba226cbbb65ac7cef0dd3cf9302d8f803740f05d2f16ceff/definite_pronoun_resolution.py", line 76, in _split_generators
files = dl_manager.download_and_extract(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
mapped = [
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 217, in <listcomp>
_single_map_nested((function, obj, types, None, True))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 152, in _single_map_nested
return function(data_struct)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://www.hlt.utdallas.edu/~vince/data/emnlp12/train.c.txt
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-4.15.0-161-generic-x86_64-with-glibc2.10
- Python version: 3.8.3
- PyArrow version: 4.0.1
#take
I am willing to fix this. Links can be replaced for WikiAuto Manual and jeopardy with new ones provided by authors.
As for the definite_pronoun_resolution URL, a certificate error seems to be preventing a download. I have the files on my local machine. I can include them in the dataset folder as the files are <1MB in size total. | [
0.1274089813,
-0.1285836399,
0.0336005911,
0.0952002481,
0.1693069786,
0.0601077378,
0.2048466653,
0.2117162645,
-0.2019648105,
0.3956473768,
-0.0465765931,
0.0693233907,
0.163928777,
-0.1324874759,
0.0800741613,
-0.3333909512,
-0.0439454466,
-0.1293078065,
0.1895739138,
-0.0911255851,
-0.3678210378,
0.087070711,
-0.3614554703,
-0.0264684036,
-0.0438275933,
0.105112426,
-0.0500895754,
0.0153140286,
-0.1008496657,
-0.4323174059,
0.1448833942,
0.1143423766,
0.1059086695,
0.338555336,
-0.0001115378,
-0.0094137155,
0.2700734735,
-0.0819867328,
-0.5365571976,
-0.124486424,
-0.5981211066,
0.0144769968,
-0.0473802462,
-0.3203182518,
-0.0003079596,
0.402895242,
0.0933872983,
-0.1322325319,
0.1947435141,
0.6222038865,
0.2032654136,
0.0447217226,
0.0913917571,
-0.0178730506,
0.1893321723,
-0.1646443158,
-0.1972950846,
0.2965211868,
-0.1400245279,
0.1177107915,
0.0533956587,
0.4021209776,
0.1708796322,
-0.0917855352,
-0.0564774722,
0.0954062492,
0.15156506,
-0.1696896702,
0.4046264887,
0.3269164264,
0.5513576865,
-0.0963583589,
-0.3186915219,
-0.0678909272,
0.3135263026,
-0.1409618258,
0.4568141699,
0.2807404101,
-0.0899092034,
0.0021865605,
-0.1422176212,
-0.2625917494,
-0.2591567039,
0.1594661623,
-0.1103814468,
0.6913446188,
0.0393010899,
0.0258609112,
-0.2234939635,
-0.1198866218,
0.0794393942,
-0.1248970926,
0.1670906246,
0.0989007428,
-0.1130944043,
-0.0177113228,
-0.0376865864,
0.0473585948,
0.1010989845,
-0.3097600341,
0.4962767959,
-0.0611923672,
-0.2192539573,
-0.1327756941,
0.0298336819,
0.5464052558,
0.0487199314,
0.0949229598,
0.1561984122,
0.757801652,
0.0920690447,
0.1227594241,
-0.0266498085,
-0.2039468288,
-0.1632308811,
0.1810675412,
0.2267389745,
-0.1090891138,
-0.2119569778,
0.1016970277,
-0.3092086017,
0.1155112982,
-0.290032208,
0.1739518493,
-0.468116492,
0.3308086693,
0.0365074873,
0.131298095,
-0.3229938745,
0.1867271513,
-0.1060149372,
0.1031575277,
-0.082485579,
0.1901243627,
0.1086654887,
0.1292642355,
0.3938516974,
0.111966677,
0.0305504873,
-0.1637238264,
-0.3638500273,
0.0598979667,
-0.1780910045,
0.0081058275,
-0.0594822839,
0.0193167701,
-0.1101832464,
-0.4052195251,
0.0673991144,
0.2459144443,
-0.1449954659,
-0.1565336287,
0.0782274082,
0.221791476,
0.1491992474,
-0.3199025691,
-0.215295583,
0.1093323156,
-0.0603171773,
-0.1255051345,
0.1506299227,
-0.1182941496,
-0.225995779,
-0.1791524887,
0.2652066946,
0.202222243,
-0.2052332461,
-0.0848975331,
0.0525282994,
0.1963837296,
0.2605561316,
0.201584816,
-0.045069091,
-0.0392936841,
-0.0994711667,
0.3200988472,
-0.0356215797,
-0.6613450646,
-0.2944654226,
-0.0810036585,
-0.2047013044,
0.2935247421,
0.0467961766,
-0.3464064896,
-0.1910436451,
0.09924943,
0.2076384723,
0.2389194965,
0.1993886679,
0.0739802346,
-0.4987149239,
-0.3489388227,
-0.2077018917,
-0.1053580791,
0.1842184067,
-0.0405001156,
-0.0500633083,
0.0307939015,
0.668290019,
-0.0228086635,
0.1097545922,
0.1725940108,
0.2791417241,
0.0660692006,
0.0038898019,
0.0336854011,
-0.3063523471,
0.161487326,
-0.2444596738,
0.3172652721,
-0.2633829713,
-0.2884165049,
-0.4617546499,
-0.1467322111,
-0.357714355,
-0.3360907733,
0.1774285138,
0.3326924741,
0.2330955863,
0.1839558035,
0.1679843813,
-0.1568388939,
-0.2305638194,
0.0160497744,
-0.2550229728,
0.0253911857,
-0.2314938754,
0.1949636638,
-0.0984319374,
0.111722976,
0.2032299787,
0.0645611584,
-0.3432500958,
0.4482423365,
-0.0400169231,
0.4258108437,
0.2569478452,
0.0094798058,
0.3121983409,
-0.1555702686,
0.0253658965,
0.2017522752,
0.2093173116,
0.2155269384,
-0.3212680221,
0.3201152384,
-0.2278440595,
0.2955269516,
0.2124638259,
0.0061410712,
0.4060686827,
-0.134026289,
-0.0270408057,
-0.1601206213,
-0.1623489559,
0.5956907868,
-0.3482043147,
-0.1624639332,
-0.4324277043,
-0.0166552048,
0.1807424277,
-0.0621192046,
0.2663133144,
0.2878283262,
-0.226950556,
-0.3052479625,
0.1471708268,
0.3281194866,
0.1712151915,
0.1615497768,
0.2940359712,
0.2110918164,
-0.0548055582,
-0.3781978488,
0.4756670892,
0.2027466148,
-0.0630634353,
0.3314949572,
0.2529738843,
0.0753825903,
-0.173291266,
0.104192391,
-0.1466293931,
0.0015547213,
-0.2683824599,
-0.0435176082,
-0.3165048659,
0.1406208277,
-0.3399681747,
-0.0564710721,
-0.0953714475,
-0.4581068158,
0.3413339555,
0.0953323245,
-0.29636693,
0.1810438335,
-0.1188158169,
0.0406522974,
-0.1452874094,
-0.0211259555,
-0.2247059643,
-0.4174307585,
-0.4545576572,
0.1591987461,
-0.0793910623,
-0.1410232931,
-0.0416881666,
-0.3193745613,
-0.0390768722,
-0.3910272419,
-0.3622365892,
-0.2352756113,
0.0022660461,
0.0839124769,
0.0299546812,
0.3136541843,
-0.2385760546,
-0.372027874,
0.1207820997,
0.0243625343,
-0.0321704522,
-0.1460865438,
0.0056191976,
0.3455111384,
0.1182343364,
-0.6243348718,
-0.1572630405,
-0.2604809999,
0.2051133662,
0.2315014452,
0.0082741678,
0.501930356,
0.1165751666,
0.0651929677,
0.0638767928,
0.3580875695,
-0.2012390047,
-0.2027282119,
0.1608871073,
-0.2689363956,
-0.3275577426,
-0.1447927356,
-0.114200294,
0.5140969157,
0.2077137977,
-0.4951129258,
0.0321059711,
-0.1570852697,
0.2840757966,
0.0344161503,
0.0387399457,
0.2489306033,
0.269559741,
-0.1904112399,
-0.0844818056,
0.056694299,
-0.0853250697,
0.2235333323,
0.2495166361,
-0.0362066887,
0.1373958886,
0.2706840336,
0.9664536715,
-0.115679495,
0.3077650368,
0.3761499822,
-0.0739279464,
0.0019605116,
-0.1339910626,
-0.0082327807,
0.1862278283,
-0.1524355859,
0.0489511974,
0.5215192437,
0.0106038461,
-0.1152689233,
-0.2232351303,
-0.0832970589,
-0.5792000294,
-0.6617068052,
-0.0367245749,
0.1728710681,
0.1859076172,
0.2907689214,
0.0911868662,
-0.2571698427,
-0.2154917121,
0.2661765516,
0.2443419695,
-0.1537129432,
-0.1346803755,
-0.1354198903,
-0.0790071711,
-0.3023167253,
0.1961431801,
0.2417013943,
0.4538921714,
0.0489912815,
-0.1897675097,
0.0455903895,
0.0121309031,
0.1679385304,
-0.2414257228,
0.2499939948,
-0.0544806756,
-0.0154090254,
-0.4090688825,
-0.1416644603,
-0.222323522,
-0.1104344353,
0.270229727,
0.1934850067,
-0.2408283055,
0.0765570775,
0.2549525797,
0.0240479242,
-0.0466222987,
0.020063838,
-0.2226959467,
-0.1977200806,
-0.3052577972,
0.0600652955,
-0.0718583614,
0.5199756026,
-0.315192163,
0.0000088271,
-0.0021517524,
-0.0960550755,
-0.2257724106,
-0.0567388125,
-0.0111917611,
0.4150168896,
-0.1778978854,
0.160256058,
0.2152214646,
-0.0239672177,
0.1760238856,
-0.0983687714,
-0.3449984789,
-0.3201703727,
0.1639988422,
0.0233588293,
0.5003486872,
0.0673071668,
-0.1101673767,
0.1981787831,
0.1023639217,
-0.1196367219,
0.3836560249,
0.2594541907,
0.1061985642,
-0.1762624383,
-0.3233326077,
0.6220655441,
0.0672179833,
-0.1863102019,
0.2987990379,
0.3287211955,
-0.6315211654,
0.0324848369,
0.2258873582,
1.1548788548,
0.2015390992,
0.2203842551,
0.3651152551,
-0.0598140694,
0.0627617687,
-0.1972204745,
0.3283076286,
-0.0938851163,
0.0111087831,
0.0214261506,
0.1732387692,
0.0855687708,
-0.2139574885,
-0.3625115454,
0.3910605609,
-0.2234110087,
0.0461122952,
0.1199931726,
0.0927142203,
-0.212710917,
0.0435869917,
-0.2854973078,
0.0654151216,
0.1592781544,
0.271233201,
-0.0405812375,
-0.0188705698,
-0.1721078157,
-0.0288075916,
-0.1778155863,
0.1614278406,
-0.6074104309,
0.2391122729,
-0.5020614266,
-0.2115968615,
-0.2050061226,
0.6945424676,
0.1260488033,
0.3090693951,
-0.4552487731,
0.4203499854,
-0.0599946007,
-0.0523364767,
0.1048927084,
0.1840184927,
0.0071834186,
-0.3033621311,
-0.2587825358,
0.0466397293,
-0.094151713,
0.112995021,
-0.138831377,
-0.2332613021,
0.1927653104,
-0.1352504492,
-0.1536799371,
-0.1895307153,
-0.217656076,
-0.3867836595,
0.1402006447,
-0.2809526622,
-0.082183823,
-0.0714108795,
0.3150914311,
-0.3939554095,
-0.1367758662,
0.6774895191,
0.0961466134,
0.1654587388,
0.5063609481,
0.0145763215,
-0.1935417056,
-0.1702415943,
-0.0675557107,
-0.2357181162,
-0.3545147479,
-0.0239441991,
0.0729911327,
0.0056258091,
-0.2144187987,
0.3801522255,
0.1468062848,
-0.0841361731,
-0.058548741,
-0.1744581759,
-0.0106766168,
0.1476253569,
0.0025315487,
0.2168030292,
0.1135445386,
-0.0845225826,
0.221066758,
0.0581220426,
-0.3318823278,
0.1064310297,
-0.3553637862,
0.1106998548,
-0.0675599203,
0.0738906488,
0.226564765,
0.2995596826,
0.2257023454,
-0.0237497818,
0.0671038926,
-0.2144571245,
-0.3487209678,
0.1123968363,
0.1498257667,
-0.1024756432,
0.0060117128,
0.0172741842,
0.0531538762,
-0.1225618944,
-0.0207309984,
0.0204039738,
0.0511247106,
0.3066371381,
0.1817649901,
0.1325946748,
0.089830853,
0.1969380826,
-0.1138424426,
0.2344732136,
0.0179294124,
0.1738428175,
0.0069107674,
-0.2223800421,
-0.1870966256,
-0.047137592,
-0.0066129034,
0.173280865,
-0.0274503585,
-0.1552415341,
-0.0937569886,
0.040099144,
-0.1674086601,
0.2841892242,
-0.0493765771,
-0.2318073064,
0.0924318284,
0.2828340232,
-0.2781327963,
0.0211368706,
-0.0634824485,
-0.1563845426,
0.1662683785,
-0.1138845608,
0.0021827049,
-0.253067255,
-0.1293298751,
0.2048796862,
-0.2892476618,
-0.3238627315,
0.2740726769,
0.3919840455,
-0.0345009007,
0.0938773528,
-0.1556531042,
-0.1290396154,
0.0725151375,
0.219475165,
-0.1652543545,
0.2849086821,
-0.1185928956,
0.1179758832,
0.2299995124,
-0.1182865128,
0.0218833257,
0.1741928756,
-0.5195319057,
0.180612132,
0.2513343394,
0.0583956614,
0.0476414375,
0.2068674713,
-0.2022235245,
0.0266719088,
-0.1213645488,
-0.5013462901,
-0.3697774112,
-0.320926249,
-0.012007934,
0.0854001492,
-0.0905691758,
0.0739397779,
0.1005009636,
0.014724208,
-0.1949761361,
-0.4649897814,
0.1441385001,
0.0700244382,
0.4222433269,
-0.1844696105,
0.0093114935,
0.3629682362,
0.0858972296,
0.0572360121,
0.1822353005,
0.3926510215,
0.0905984268,
-0.2340473235,
0.0101073757,
0.126529783,
-0.0121658305,
0.0314342491,
0.1742974818,
0.4323421717,
0.1120816544,
0.2960330844,
0.2616358399,
-0.2319068611,
0.0885008276,
0.0783338174,
-0.0432933159,
-0.197522223,
0.2876853049,
0.0370519795,
-0.0898617953,
-0.1380820274,
0.1160766408,
-0.2859367132,
0.4122089744,
0.007755911,
0.1055087149,
0.0883228853,
-0.2452595532,
0.0758774951,
0.3126210868,
0.5698589683,
0.3061134219,
-0.1216649413,
-0.2455407232,
-0.0217311736,
-0.2760879993,
0.0448037386,
0.2635917962,
0.038645301,
0.0479475185,
0.2240024507,
-0.2557328641,
0.1743839532,
-0.0841760784,
0.1110977978,
0.2494130582,
0.306630671,
-0.2915227115,
0.0750200525,
0.2262121588,
0.0416802019,
0.0864350274,
-0.2950240672,
0.1276067048,
-0.302184999,
-0.0049781865,
-0.0458436273,
0.175883159,
0.16798383,
0.1451665163,
0.3681225479,
0.0545699373,
0.2655354738,
-0.2286917269,
-0.3297985494,
-0.2506535649,
-0.0821341351,
-0.1919881254,
-0.0261792559,
-0.0805584565,
0.2559635639,
0.1514983177,
-0.0541723557,
0.0125686647,
0.3862356246,
0.1194410771,
0.2334880978,
-0.122462742,
-0.2189365178,
0.2996988595,
-0.1363359094,
0.1514805853,
0.2575664222,
-0.137418896,
0.1704433709,
-0.2772274315,
-0.77171278,
0.5231630802,
-0.2375460565,
-0.1985194981,
-0.1515467912,
0.2437643111,
-0.1496373862,
-0.0033865294,
-0.7100702524,
0.2491111308,
0.376311034,
0.1635764986,
-0.1430080384,
0.1247078553,
0.0730727538,
0.1290373057,
-0.1290815771,
0.2870170474,
0.1077605933,
-0.1614105999,
-0.1057338342,
-0.3256071508
] |
https://github.com/huggingface/datasets/issues/3264 | Downloading URL change for WikiAuto Manual, jeopardy and definite_pronoun_resolution | > #take I am willing to fix this. Links can be replaced for WikiAuto Manual and jeopardy.
>
> As for the definite_pronoun_resolution URL, a certificate error seems to be preventing a download. I have the files on my local machine. Anyone has opinions on whether it is preferable for me to host them somewhere (e.g. personal GDrive account) or upload them to the dataset folder directly and use github raw URLs? The files are <1MB in size.
I am planning to fix it next few days. But my to-do list is full and I do not have the cache of definite_pronoun_resolution. I am glad that you can take this. Thanks a lot! | ## Describe the bug
- WikiAuto Manual
The original manual datasets with the following downloading URL in this [repository](https://github.com/chaojiang06/wiki-auto) was [deleted](https://github.com/chaojiang06/wiki-auto/commit/0af9b066f2b4e02726fb8a9be49283c0ad25367f) by the author.
```
https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/train.tsv
```
- jeopardy
The downloading URL for jeopardy may move from
```
http://skeeto.s3.amazonaws.com/share/JEOPARDY_QUESTIONS1.json.gz
```
to
```
https://drive.google.com/file/d/0BwT5wj_P7BKXb2hfM3d2RHU1ckE/view?resourcekey=0-1abK4cJq-mqxFoSg86ieIg
```
- definite_pronoun_resolution
The following downloading URL for definite_pronoun_resolution cannot be reached for some reasons.
```
http://www.hlt.utdallas.edu/~vince/data/emnlp12/train.c.txt
```
## Steps to reproduce the bug
```python
import datasets
datasets.load_datasets('wiki_auto','manual')
datasets.load_datasets('jeopardy')
datasets.load_datasets('definite_pronoun_resolution')
```
## Expected results
Download successfully
## Actual results
- WikiAuto Manual
```
Downloading and preparing dataset wiki_auto/manual (download: 151.65 MiB, generated: 155.97 MiB, post-processed: Unknown size, total: 307.61 MiB) to /root/.cache/huggingface/datasets/wiki_auto/manual/1.0.0/5ffdd9fc62422d29bd02675fb9606f77c1251ee17169ac10b143ce07ef2f4db8...
0%| | 0/3 [00:00<?, ?it/s]Traceback (most recent call last):
File "wiki_auto.py", line 43, in <module>
main()
File "wiki_auto.py", line 40, in main
train, dev, test = dataset.generate_k_shot_data(k=16, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 24, in generate_k_shot_data
dataset = self.load_dataset()
File "wiki_auto.py", line 34, in load_dataset
return datasets.load_dataset('wiki_auto', 'manual')
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wiki_auto/5ffdd9fc62422d29bd02675fb9606f77c1251ee17169ac10b143ce07ef2f4db8/wiki_auto.py", line 193, in _split_generators
data_dir = dl_manager.download_and_extract(my_urls)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
mapped = [
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 217, in <listcomp>
_single_map_nested((function, obj, types, None, True))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 152, in _single_map_nested
return function(data_struct)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 592, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/train.tsv
```
- jeopardy
```
Using custom data configuration default
Downloading and preparing dataset jeopardy/default (download: 12.13 MiB, generated: 34.46 MiB, post-processed: Unknown size, total: 46.59 MiB) to /root/.cache/huggingface/datasets/jeopardy/default/0.1.0/25ee3e4a73755e637b8810f6493fd36e4523dea3ca8a540529d0a6e24c7f9810...
Traceback (most recent call last):
File "jeopardy.py", line 45, in <module>
main()
File "jeopardy.py", line 42, in main
train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
dataset = self.load_dataset()
File "jeopardy.py", line 36, in load_dataset
return datasets.load_dataset("jeopardy")
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/jeopardy/25ee3e4a73755e637b8810f6493fd36e4523dea3ca8a540529d0a6e24c7f9810/jeopardy.py", line 72, in _split_generators
filepath = dl_manager.download_and_extract(_DATA_URL)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 206, in map_nested
return function(data_struct)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://skeeto.s3.amazonaws.com/share/JEOPARDY_QUESTIONS1.json.gz
```
- definite_pronoun_resolution
```
Downloading and preparing dataset definite_pronoun_resolution/plain_text (download: 222.12 KiB, generated: 239.12 KiB, post-processed: Unknown size, total: 461.24 KiB) to /root/.cache/huggingface/datasets/definite_pronoun_resolution/plain_text/1.0.0/35a1dfd4fba4afb8ba226cbbb65ac7cef0dd3cf9302d8f803740f05d2f16ceff...
0%| | 0/2 [00:00<?, ?it/s]Traceback (most recent call last):
File "definite_pronoun_resolution.py", line 37, in <module>
main()
File "definite_pronoun_resolution.py", line 34, in main
train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
dataset = self.load_dataset()
File "definite_pronoun_resolution.py", line 28, in load_dataset
return datasets.load_dataset('definite_pronoun_resolution')
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/definite_pronoun_resolution/35a1dfd4fba4afb8ba226cbbb65ac7cef0dd3cf9302d8f803740f05d2f16ceff/definite_pronoun_resolution.py", line 76, in _split_generators
files = dl_manager.download_and_extract(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
mapped = [
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 217, in <listcomp>
_single_map_nested((function, obj, types, None, True))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 152, in _single_map_nested
return function(data_struct)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://www.hlt.utdallas.edu/~vince/data/emnlp12/train.c.txt
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-4.15.0-161-generic-x86_64-with-glibc2.10
- Python version: 3.8.3
- PyArrow version: 4.0.1
| 113 | Downloading URL change for WikiAuto Manual, jeopardy and definite_pronoun_resolution
## Describe the bug
- WikiAuto Manual
The original manual datasets with the following downloading URL in this [repository](https://github.com/chaojiang06/wiki-auto) was [deleted](https://github.com/chaojiang06/wiki-auto/commit/0af9b066f2b4e02726fb8a9be49283c0ad25367f) by the author.
```
https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/train.tsv
```
- jeopardy
The downloading URL for jeopardy may move from
```
http://skeeto.s3.amazonaws.com/share/JEOPARDY_QUESTIONS1.json.gz
```
to
```
https://drive.google.com/file/d/0BwT5wj_P7BKXb2hfM3d2RHU1ckE/view?resourcekey=0-1abK4cJq-mqxFoSg86ieIg
```
- definite_pronoun_resolution
The following downloading URL for definite_pronoun_resolution cannot be reached for some reasons.
```
http://www.hlt.utdallas.edu/~vince/data/emnlp12/train.c.txt
```
## Steps to reproduce the bug
```python
import datasets
datasets.load_datasets('wiki_auto','manual')
datasets.load_datasets('jeopardy')
datasets.load_datasets('definite_pronoun_resolution')
```
## Expected results
Download successfully
## Actual results
- WikiAuto Manual
```
Downloading and preparing dataset wiki_auto/manual (download: 151.65 MiB, generated: 155.97 MiB, post-processed: Unknown size, total: 307.61 MiB) to /root/.cache/huggingface/datasets/wiki_auto/manual/1.0.0/5ffdd9fc62422d29bd02675fb9606f77c1251ee17169ac10b143ce07ef2f4db8...
0%| | 0/3 [00:00<?, ?it/s]Traceback (most recent call last):
File "wiki_auto.py", line 43, in <module>
main()
File "wiki_auto.py", line 40, in main
train, dev, test = dataset.generate_k_shot_data(k=16, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 24, in generate_k_shot_data
dataset = self.load_dataset()
File "wiki_auto.py", line 34, in load_dataset
return datasets.load_dataset('wiki_auto', 'manual')
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wiki_auto/5ffdd9fc62422d29bd02675fb9606f77c1251ee17169ac10b143ce07ef2f4db8/wiki_auto.py", line 193, in _split_generators
data_dir = dl_manager.download_and_extract(my_urls)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
mapped = [
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 217, in <listcomp>
_single_map_nested((function, obj, types, None, True))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 152, in _single_map_nested
return function(data_struct)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 592, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/train.tsv
```
- jeopardy
```
Using custom data configuration default
Downloading and preparing dataset jeopardy/default (download: 12.13 MiB, generated: 34.46 MiB, post-processed: Unknown size, total: 46.59 MiB) to /root/.cache/huggingface/datasets/jeopardy/default/0.1.0/25ee3e4a73755e637b8810f6493fd36e4523dea3ca8a540529d0a6e24c7f9810...
Traceback (most recent call last):
File "jeopardy.py", line 45, in <module>
main()
File "jeopardy.py", line 42, in main
train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
dataset = self.load_dataset()
File "jeopardy.py", line 36, in load_dataset
return datasets.load_dataset("jeopardy")
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/jeopardy/25ee3e4a73755e637b8810f6493fd36e4523dea3ca8a540529d0a6e24c7f9810/jeopardy.py", line 72, in _split_generators
filepath = dl_manager.download_and_extract(_DATA_URL)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 206, in map_nested
return function(data_struct)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://skeeto.s3.amazonaws.com/share/JEOPARDY_QUESTIONS1.json.gz
```
- definite_pronoun_resolution
```
Downloading and preparing dataset definite_pronoun_resolution/plain_text (download: 222.12 KiB, generated: 239.12 KiB, post-processed: Unknown size, total: 461.24 KiB) to /root/.cache/huggingface/datasets/definite_pronoun_resolution/plain_text/1.0.0/35a1dfd4fba4afb8ba226cbbb65ac7cef0dd3cf9302d8f803740f05d2f16ceff...
0%| | 0/2 [00:00<?, ?it/s]Traceback (most recent call last):
File "definite_pronoun_resolution.py", line 37, in <module>
main()
File "definite_pronoun_resolution.py", line 34, in main
train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
dataset = self.load_dataset()
File "definite_pronoun_resolution.py", line 28, in load_dataset
return datasets.load_dataset('definite_pronoun_resolution')
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/definite_pronoun_resolution/35a1dfd4fba4afb8ba226cbbb65ac7cef0dd3cf9302d8f803740f05d2f16ceff/definite_pronoun_resolution.py", line 76, in _split_generators
files = dl_manager.download_and_extract(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
downloaded_path_or_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
mapped = [
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 217, in <listcomp>
_single_map_nested((function, obj, types, None, True))
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 152, in _single_map_nested
return function(data_struct)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
output_path = get_from_cache(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://www.hlt.utdallas.edu/~vince/data/emnlp12/train.c.txt
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-4.15.0-161-generic-x86_64-with-glibc2.10
- Python version: 3.8.3
- PyArrow version: 4.0.1
> #take I am willing to fix this. Links can be replaced for WikiAuto Manual and jeopardy.
>
> As for the definite_pronoun_resolution URL, a certificate error seems to be preventing a download. I have the files on my local machine. Anyone has opinions on whether it is preferable for me to host them somewhere (e.g. personal GDrive account) or upload them to the dataset folder directly and use github raw URLs? The files are <1MB in size.
I am planning to fix it next few days. But my to-do list is full and I do not have the cache of definite_pronoun_resolution. I am glad that you can take this. Thanks a lot! | [
0.1274089813,
-0.1285836399,
0.0336005911,
0.0952002481,
0.1693069786,
0.0601077378,
0.2048466653,
0.2117162645,
-0.2019648105,
0.3956473768,
-0.0465765931,
0.0693233907,
0.163928777,
-0.1324874759,
0.0800741613,
-0.3333909512,
-0.0439454466,
-0.1293078065,
0.1895739138,
-0.0911255851,
-0.3678210378,
0.087070711,
-0.3614554703,
-0.0264684036,
-0.0438275933,
0.105112426,
-0.0500895754,
0.0153140286,
-0.1008496657,
-0.4323174059,
0.1448833942,
0.1143423766,
0.1059086695,
0.338555336,
-0.0001115378,
-0.0094137155,
0.2700734735,
-0.0819867328,
-0.5365571976,
-0.124486424,
-0.5981211066,
0.0144769968,
-0.0473802462,
-0.3203182518,
-0.0003079596,
0.402895242,
0.0933872983,
-0.1322325319,
0.1947435141,
0.6222038865,
0.2032654136,
0.0447217226,
0.0913917571,
-0.0178730506,
0.1893321723,
-0.1646443158,
-0.1972950846,
0.2965211868,
-0.1400245279,
0.1177107915,
0.0533956587,
0.4021209776,
0.1708796322,
-0.0917855352,
-0.0564774722,
0.0954062492,
0.15156506,
-0.1696896702,
0.4046264887,
0.3269164264,
0.5513576865,
-0.0963583589,
-0.3186915219,
-0.0678909272,
0.3135263026,
-0.1409618258,
0.4568141699,
0.2807404101,
-0.0899092034,
0.0021865605,
-0.1422176212,
-0.2625917494,
-0.2591567039,
0.1594661623,
-0.1103814468,
0.6913446188,
0.0393010899,
0.0258609112,
-0.2234939635,
-0.1198866218,
0.0794393942,
-0.1248970926,
0.1670906246,
0.0989007428,
-0.1130944043,
-0.0177113228,
-0.0376865864,
0.0473585948,
0.1010989845,
-0.3097600341,
0.4962767959,
-0.0611923672,
-0.2192539573,
-0.1327756941,
0.0298336819,
0.5464052558,
0.0487199314,
0.0949229598,
0.1561984122,
0.757801652,
0.0920690447,
0.1227594241,
-0.0266498085,
-0.2039468288,
-0.1632308811,
0.1810675412,
0.2267389745,
-0.1090891138,
-0.2119569778,
0.1016970277,
-0.3092086017,
0.1155112982,
-0.290032208,
0.1739518493,
-0.468116492,
0.3308086693,
0.0365074873,
0.131298095,
-0.3229938745,
0.1867271513,
-0.1060149372,
0.1031575277,
-0.082485579,
0.1901243627,
0.1086654887,
0.1292642355,
0.3938516974,
0.111966677,
0.0305504873,
-0.1637238264,
-0.3638500273,
0.0598979667,
-0.1780910045,
0.0081058275,
-0.0594822839,
0.0193167701,
-0.1101832464,
-0.4052195251,
0.0673991144,
0.2459144443,
-0.1449954659,
-0.1565336287,
0.0782274082,
0.221791476,
0.1491992474,
-0.3199025691,
-0.215295583,
0.1093323156,
-0.0603171773,
-0.1255051345,
0.1506299227,
-0.1182941496,
-0.225995779,
-0.1791524887,
0.2652066946,
0.202222243,
-0.2052332461,
-0.0848975331,
0.0525282994,
0.1963837296,
0.2605561316,
0.201584816,
-0.045069091,
-0.0392936841,
-0.0994711667,
0.3200988472,
-0.0356215797,
-0.6613450646,
-0.2944654226,
-0.0810036585,
-0.2047013044,
0.2935247421,
0.0467961766,
-0.3464064896,
-0.1910436451,
0.09924943,
0.2076384723,
0.2389194965,
0.1993886679,
0.0739802346,
-0.4987149239,
-0.3489388227,
-0.2077018917,
-0.1053580791,
0.1842184067,
-0.0405001156,
-0.0500633083,
0.0307939015,
0.668290019,
-0.0228086635,
0.1097545922,
0.1725940108,
0.2791417241,
0.0660692006,
0.0038898019,
0.0336854011,
-0.3063523471,
0.161487326,
-0.2444596738,
0.3172652721,
-0.2633829713,
-0.2884165049,
-0.4617546499,
-0.1467322111,
-0.357714355,
-0.3360907733,
0.1774285138,
0.3326924741,
0.2330955863,
0.1839558035,
0.1679843813,
-0.1568388939,
-0.2305638194,
0.0160497744,
-0.2550229728,
0.0253911857,
-0.2314938754,
0.1949636638,
-0.0984319374,
0.111722976,
0.2032299787,
0.0645611584,
-0.3432500958,
0.4482423365,
-0.0400169231,
0.4258108437,
0.2569478452,
0.0094798058,
0.3121983409,
-0.1555702686,
0.0253658965,
0.2017522752,
0.2093173116,
0.2155269384,
-0.3212680221,
0.3201152384,
-0.2278440595,
0.2955269516,
0.2124638259,
0.0061410712,
0.4060686827,
-0.134026289,
-0.0270408057,
-0.1601206213,
-0.1623489559,
0.5956907868,
-0.3482043147,
-0.1624639332,
-0.4324277043,
-0.0166552048,
0.1807424277,
-0.0621192046,
0.2663133144,
0.2878283262,
-0.226950556,
-0.3052479625,
0.1471708268,
0.3281194866,
0.1712151915,
0.1615497768,
0.2940359712,
0.2110918164,
-0.0548055582,
-0.3781978488,
0.4756670892,
0.2027466148,
-0.0630634353,
0.3314949572,
0.2529738843,
0.0753825903,
-0.173291266,
0.104192391,
-0.1466293931,
0.0015547213,
-0.2683824599,
-0.0435176082,
-0.3165048659,
0.1406208277,
-0.3399681747,
-0.0564710721,
-0.0953714475,
-0.4581068158,
0.3413339555,
0.0953323245,
-0.29636693,
0.1810438335,
-0.1188158169,
0.0406522974,
-0.1452874094,
-0.0211259555,
-0.2247059643,
-0.4174307585,
-0.4545576572,
0.1591987461,
-0.0793910623,
-0.1410232931,
-0.0416881666,
-0.3193745613,
-0.0390768722,
-0.3910272419,
-0.3622365892,
-0.2352756113,
0.0022660461,
0.0839124769,
0.0299546812,
0.3136541843,
-0.2385760546,
-0.372027874,
0.1207820997,
0.0243625343,
-0.0321704522,
-0.1460865438,
0.0056191976,
0.3455111384,
0.1182343364,
-0.6243348718,
-0.1572630405,
-0.2604809999,
0.2051133662,
0.2315014452,
0.0082741678,
0.501930356,
0.1165751666,
0.0651929677,
0.0638767928,
0.3580875695,
-0.2012390047,
-0.2027282119,
0.1608871073,
-0.2689363956,
-0.3275577426,
-0.1447927356,
-0.114200294,
0.5140969157,
0.2077137977,
-0.4951129258,
0.0321059711,
-0.1570852697,
0.2840757966,
0.0344161503,
0.0387399457,
0.2489306033,
0.269559741,
-0.1904112399,
-0.0844818056,
0.056694299,
-0.0853250697,
0.2235333323,
0.2495166361,
-0.0362066887,
0.1373958886,
0.2706840336,
0.9664536715,
-0.115679495,
0.3077650368,
0.3761499822,
-0.0739279464,
0.0019605116,
-0.1339910626,
-0.0082327807,
0.1862278283,
-0.1524355859,
0.0489511974,
0.5215192437,
0.0106038461,
-0.1152689233,
-0.2232351303,
-0.0832970589,
-0.5792000294,
-0.6617068052,
-0.0367245749,
0.1728710681,
0.1859076172,
0.2907689214,
0.0911868662,
-0.2571698427,
-0.2154917121,
0.2661765516,
0.2443419695,
-0.1537129432,
-0.1346803755,
-0.1354198903,
-0.0790071711,
-0.3023167253,
0.1961431801,
0.2417013943,
0.4538921714,
0.0489912815,
-0.1897675097,
0.0455903895,
0.0121309031,
0.1679385304,
-0.2414257228,
0.2499939948,
-0.0544806756,
-0.0154090254,
-0.4090688825,
-0.1416644603,
-0.222323522,
-0.1104344353,
0.270229727,
0.1934850067,
-0.2408283055,
0.0765570775,
0.2549525797,
0.0240479242,
-0.0466222987,
0.020063838,
-0.2226959467,
-0.1977200806,
-0.3052577972,
0.0600652955,
-0.0718583614,
0.5199756026,
-0.315192163,
0.0000088271,
-0.0021517524,
-0.0960550755,
-0.2257724106,
-0.0567388125,
-0.0111917611,
0.4150168896,
-0.1778978854,
0.160256058,
0.2152214646,
-0.0239672177,
0.1760238856,
-0.0983687714,
-0.3449984789,
-0.3201703727,
0.1639988422,
0.0233588293,
0.5003486872,
0.0673071668,
-0.1101673767,
0.1981787831,
0.1023639217,
-0.1196367219,
0.3836560249,
0.2594541907,
0.1061985642,
-0.1762624383,
-0.3233326077,
0.6220655441,
0.0672179833,
-0.1863102019,
0.2987990379,
0.3287211955,
-0.6315211654,
0.0324848369,
0.2258873582,
1.1548788548,
0.2015390992,
0.2203842551,
0.3651152551,
-0.0598140694,
0.0627617687,
-0.1972204745,
0.3283076286,
-0.0938851163,
0.0111087831,
0.0214261506,
0.1732387692,
0.0855687708,
-0.2139574885,
-0.3625115454,
0.3910605609,
-0.2234110087,
0.0461122952,
0.1199931726,
0.0927142203,
-0.212710917,
0.0435869917,
-0.2854973078,
0.0654151216,
0.1592781544,
0.271233201,
-0.0405812375,
-0.0188705698,
-0.1721078157,
-0.0288075916,
-0.1778155863,
0.1614278406,
-0.6074104309,
0.2391122729,
-0.5020614266,
-0.2115968615,
-0.2050061226,
0.6945424676,
0.1260488033,
0.3090693951,
-0.4552487731,
0.4203499854,
-0.0599946007,
-0.0523364767,
0.1048927084,
0.1840184927,
0.0071834186,
-0.3033621311,
-0.2587825358,
0.0466397293,
-0.094151713,
0.112995021,
-0.138831377,
-0.2332613021,
0.1927653104,
-0.1352504492,
-0.1536799371,
-0.1895307153,
-0.217656076,
-0.3867836595,
0.1402006447,
-0.2809526622,
-0.082183823,
-0.0714108795,
0.3150914311,
-0.3939554095,
-0.1367758662,
0.6774895191,
0.0961466134,
0.1654587388,
0.5063609481,
0.0145763215,
-0.1935417056,
-0.1702415943,
-0.0675557107,
-0.2357181162,
-0.3545147479,
-0.0239441991,
0.0729911327,
0.0056258091,
-0.2144187987,
0.3801522255,
0.1468062848,
-0.0841361731,
-0.058548741,
-0.1744581759,
-0.0106766168,
0.1476253569,
0.0025315487,
0.2168030292,
0.1135445386,
-0.0845225826,
0.221066758,
0.0581220426,
-0.3318823278,
0.1064310297,
-0.3553637862,
0.1106998548,
-0.0675599203,
0.0738906488,
0.226564765,
0.2995596826,
0.2257023454,
-0.0237497818,
0.0671038926,
-0.2144571245,
-0.3487209678,
0.1123968363,
0.1498257667,
-0.1024756432,
0.0060117128,
0.0172741842,
0.0531538762,
-0.1225618944,
-0.0207309984,
0.0204039738,
0.0511247106,
0.3066371381,
0.1817649901,
0.1325946748,
0.089830853,
0.1969380826,
-0.1138424426,
0.2344732136,
0.0179294124,
0.1738428175,
0.0069107674,
-0.2223800421,
-0.1870966256,
-0.047137592,
-0.0066129034,
0.173280865,
-0.0274503585,
-0.1552415341,
-0.0937569886,
0.040099144,
-0.1674086601,
0.2841892242,
-0.0493765771,
-0.2318073064,
0.0924318284,
0.2828340232,
-0.2781327963,
0.0211368706,
-0.0634824485,
-0.1563845426,
0.1662683785,
-0.1138845608,
0.0021827049,
-0.253067255,
-0.1293298751,
0.2048796862,
-0.2892476618,
-0.3238627315,
0.2740726769,
0.3919840455,
-0.0345009007,
0.0938773528,
-0.1556531042,
-0.1290396154,
0.0725151375,
0.219475165,
-0.1652543545,
0.2849086821,
-0.1185928956,
0.1179758832,
0.2299995124,
-0.1182865128,
0.0218833257,
0.1741928756,
-0.5195319057,
0.180612132,
0.2513343394,
0.0583956614,
0.0476414375,
0.2068674713,
-0.2022235245,
0.0266719088,
-0.1213645488,
-0.5013462901,
-0.3697774112,
-0.320926249,
-0.012007934,
0.0854001492,
-0.0905691758,
0.0739397779,
0.1005009636,
0.014724208,
-0.1949761361,
-0.4649897814,
0.1441385001,
0.0700244382,
0.4222433269,
-0.1844696105,
0.0093114935,
0.3629682362,
0.0858972296,
0.0572360121,
0.1822353005,
0.3926510215,
0.0905984268,
-0.2340473235,
0.0101073757,
0.126529783,
-0.0121658305,
0.0314342491,
0.1742974818,
0.4323421717,
0.1120816544,
0.2960330844,
0.2616358399,
-0.2319068611,
0.0885008276,
0.0783338174,
-0.0432933159,
-0.197522223,
0.2876853049,
0.0370519795,
-0.0898617953,
-0.1380820274,
0.1160766408,
-0.2859367132,
0.4122089744,
0.007755911,
0.1055087149,
0.0883228853,
-0.2452595532,
0.0758774951,
0.3126210868,
0.5698589683,
0.3061134219,
-0.1216649413,
-0.2455407232,
-0.0217311736,
-0.2760879993,
0.0448037386,
0.2635917962,
0.038645301,
0.0479475185,
0.2240024507,
-0.2557328641,
0.1743839532,
-0.0841760784,
0.1110977978,
0.2494130582,
0.306630671,
-0.2915227115,
0.0750200525,
0.2262121588,
0.0416802019,
0.0864350274,
-0.2950240672,
0.1276067048,
-0.302184999,
-0.0049781865,
-0.0458436273,
0.175883159,
0.16798383,
0.1451665163,
0.3681225479,
0.0545699373,
0.2655354738,
-0.2286917269,
-0.3297985494,
-0.2506535649,
-0.0821341351,
-0.1919881254,
-0.0261792559,
-0.0805584565,
0.2559635639,
0.1514983177,
-0.0541723557,
0.0125686647,
0.3862356246,
0.1194410771,
0.2334880978,
-0.122462742,
-0.2189365178,
0.2996988595,
-0.1363359094,
0.1514805853,
0.2575664222,
-0.137418896,
0.1704433709,
-0.2772274315,
-0.77171278,
0.5231630802,
-0.2375460565,
-0.1985194981,
-0.1515467912,
0.2437643111,
-0.1496373862,
-0.0033865294,
-0.7100702524,
0.2491111308,
0.376311034,
0.1635764986,
-0.1430080384,
0.1247078553,
0.0730727538,
0.1290373057,
-0.1290815771,
0.2870170474,
0.1077605933,
-0.1614105999,
-0.1057338342,
-0.3256071508
] |
https://github.com/huggingface/datasets/issues/3261 | Scifi_TV_Shows: Having trouble getting viewer to find appropriate files | Hi ! I think this is because `iter_archive` doesn't support ZIP files yet. See https://github.com/huggingface/datasets/issues/3272
You can navigate into the archive this way instead:
```python
# in split_generators
data_dir = dl_manager.download_and_extract(url)
train_filepath = os.path.join(data_dir, "all-sci-fi-data-train.txt")
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"filepath": train_filepath,
},
),
...
])
# in generate_examples
with open(filepath, encoding="utf-8") as f:
...
``` | ## Dataset viewer issue for '*Science Fiction TV Show Plots Corpus (Scifi_TV_Shows)*'
**Link:** [link](https://huggingface.co/datasets/lara-martin/Scifi_TV_Shows)
I tried adding both a script (https://huggingface.co/datasets/lara-martin/Scifi_TV_Shows/blob/main/Scifi_TV_Shows.py) and some dummy examples (https://huggingface.co/datasets/lara-martin/Scifi_TV_Shows/tree/main/dummy), but the viewer still has a 404 error ("Not found. Maybe the cache is missing, or maybe the ressource does not exist."). I'm not sure what to try next. Thanks in advance!
Am I the one who added this dataset? Yes
| 56 | Scifi_TV_Shows: Having trouble getting viewer to find appropriate files
## Dataset viewer issue for '*Science Fiction TV Show Plots Corpus (Scifi_TV_Shows)*'
**Link:** [link](https://huggingface.co/datasets/lara-martin/Scifi_TV_Shows)
I tried adding both a script (https://huggingface.co/datasets/lara-martin/Scifi_TV_Shows/blob/main/Scifi_TV_Shows.py) and some dummy examples (https://huggingface.co/datasets/lara-martin/Scifi_TV_Shows/tree/main/dummy), but the viewer still has a 404 error ("Not found. Maybe the cache is missing, or maybe the ressource does not exist."). I'm not sure what to try next. Thanks in advance!
Am I the one who added this dataset? Yes
Hi ! I think this is because `iter_archive` doesn't support ZIP files yet. See https://github.com/huggingface/datasets/issues/3272
You can navigate into the archive this way instead:
```python
# in split_generators
data_dir = dl_manager.download_and_extract(url)
train_filepath = os.path.join(data_dir, "all-sci-fi-data-train.txt")
return [
datasets.SplitGenerator(
name=datasets.Split.TRAIN,
gen_kwargs={
"filepath": train_filepath,
},
),
...
])
# in generate_examples
with open(filepath, encoding="utf-8") as f:
...
``` | [
-0.2578959167,
0.1072367281,
0.0246642418,
0.3973902464,
0.0099126967,
0.1714859754,
-0.0949604958,
0.4377739429,
0.1972424686,
-0.0376981497,
-0.2437501848,
0.063755326,
-0.3711235821,
0.2452094555,
-0.040027488,
-0.0794992521,
0.0521552414,
0.2073266804,
0.0781619027,
0.2033524215,
-0.2079743445,
0.3911235929,
-0.0313334092,
-0.2373571694,
-0.1876863986,
-0.0280496255,
0.0155401155,
0.2262311876,
0.023883516,
-0.3913228512,
0.2353392541,
0.0427778251,
0.4197859764,
0.7335674763,
-0.0001276379,
0.0809556693,
0.3195189536,
-0.0181425903,
-0.4663246572,
-0.1888997108,
0.1702177525,
0.0487787612,
0.0425791442,
-0.0538721159,
-0.1028236076,
0.052500017,
0.2677485645,
-0.1538627595,
0.0061224778,
0.3192889988,
0.0828134641,
0.2735302448,
0.010463886,
-0.2287346572,
0.4890915751,
0.3731175661,
-0.2077360749,
0.0871038884,
0.1566838771,
0.1850287914,
-0.0160041098,
0.4463409483,
-0.0170691498,
-0.101778917,
0.3687834442,
-0.0672898218,
-0.3932143748,
-0.4466495812,
0.0255659427,
0.3387856185,
0.5310291648,
-0.1485630721,
-0.4226602316,
-0.2255579829,
-0.2095417231,
-0.1006522998,
0.2175366879,
0.0890910998,
-0.3664667904,
0.2260032296,
0.0676978678,
-0.3486118019,
-0.2834874392,
0.2729130089,
0.0370482132,
0.3228665292,
0.0548537299,
0.0028790473,
0.2106060833,
0.0226810705,
0.2822704613,
-0.0072303568,
0.1758869439,
-0.0097871507,
-0.1510289758,
-0.0945626721,
-0.1204462647,
0.2064312547,
-0.1256585568,
0.2221328169,
-0.0332031995,
0.0494687818,
0.0776141286,
0.1084155887,
0.2282465547,
0.1460648179,
-0.1346295327,
0.1688771993,
0.2716704011,
0.4088220596,
0.0020297733,
-0.1103710458,
-0.3172843158,
-0.2496581972,
-0.3006455004,
-0.3927914202,
0.0207531936,
-0.1035968214,
-0.1257266402,
-0.0598448887,
-0.2303460687,
-0.2292768061,
0.2490150779,
0.4678492844,
-0.1048476845,
0.4186836481,
0.0057774112,
0.1184514835,
-0.1403540522,
-0.1456429958,
-0.0856435075,
0.1607933789,
-0.0309083201,
0.2858819366,
0.3926171958,
-0.5056765079,
0.1785641015,
-0.3372623324,
0.0751553252,
0.0304092504,
0.2440629154,
0.0060961479,
0.0162494425,
0.3095265329,
0.184651643,
0.3829261065,
0.2068051994,
-0.2023783624,
-0.318244189,
0.2405106425,
-0.1215678081,
-0.4125753343,
-0.0523171164,
-0.0041409275,
-0.468655169,
-0.0510481484,
-0.0552972406,
-0.1254820675,
-0.0827938169,
-0.4818353653,
-0.1165748835,
0.0382915363,
0.1049359366,
-0.1364407539,
0.3249084353,
0.7214382291,
-0.444727689,
0.1429485232,
-0.4849502742,
0.0500024855,
0.0886023566,
0.1371070296,
0.0801324099,
0.0836390778,
-0.5120589733,
0.2723554373,
0.5785638094,
-0.3217737079,
-0.2816599309,
0.3629770279,
-0.0768719688,
0.4380814433,
0.5256972313,
0.3733140528,
0.063411817,
-0.3842641711,
-0.294000715,
-0.1326646656,
0.1311859637,
-0.1941579282,
-0.220365122,
-0.058528088,
0.096033141,
0.1801026464,
0.3626597524,
0.0302791856,
0.1264558434,
-0.2705591619,
0.3209875524,
0.0356334709,
0.2168771625,
0.2308593541,
0.2646618783,
0.5334532261,
0.0931183919,
-0.1208277196,
-0.1746961325,
0.1955043226,
0.0105832731,
-0.0557915904,
0.0375233516,
-0.0863699168,
-0.3083828092,
-0.0417571552,
-0.2223614752,
-0.2265760452,
-0.0774389356,
0.219237864,
-0.0481107458,
-0.0653529391,
-0.2463284135,
-0.0946355835,
0.2513388693,
0.4335048199,
-0.6260388494,
0.5654381514,
-0.1402244419,
-0.1495991945,
0.1000296697,
0.0948540941,
0.0169316046,
-0.1590842754,
0.0600766018,
0.3398338556,
0.0335995965,
0.0985723287,
0.2573947608,
0.3039028049,
0.1439930052,
-0.3934431076,
0.0688291118,
0.1676243544,
0.05415795,
0.0827470347,
-0.2595915496,
-0.0725023672,
-0.0516381972,
0.2287971228,
0.1747176051,
0.2206406295,
0.1303991228,
0.0633634999,
-0.0629921854,
-0.2146696299,
0.3059152365,
0.0933824554,
0.0489952415,
0.0552855209,
-0.404554069,
0.2208794504,
0.1372687072,
-0.1543723792,
0.0057918755,
0.4339849651,
-0.4639262259,
0.0177673213,
0.2727705836,
0.3250292838,
0.261310935,
0.1279109716,
-0.0060095801,
-0.000188054,
0.0813320875,
-0.449426204,
0.1320921481,
0.0515073054,
0.0224739145,
0.1612873077,
-0.175695613,
0.0750631467,
-0.164633885,
-0.2243390828,
-0.1672367454,
0.0204784721,
-0.3165847659,
-0.0761037245,
-0.180272311,
-0.3412850201,
-0.3080720603,
-0.0824608281,
-0.1179265529,
-0.3886753917,
0.1323525012,
0.3958557248,
-0.113383919,
0.1494420022,
-0.0731743202,
0.059227854,
-0.062887989,
-0.0890972763,
-0.1962450594,
-0.2040670812,
-0.2020331174,
-0.0344626978,
0.344250083,
-0.0252171792,
0.1098709628,
-0.3777251244,
0.2430650592,
-0.5242525339,
-0.3552802801,
0.1425972432,
-0.0017211444,
0.3345701396,
0.1826108694,
0.3637594581,
-0.1438212395,
-0.3509582877,
0.1178061441,
0.0961275175,
0.2360790372,
0.0384036042,
-0.0696413517,
-0.1848307997,
0.0981094614,
-0.3498834968,
-0.1904249191,
-0.507861197,
0.2289799303,
0.192032367,
0.1417489797,
-0.0592133068,
0.2662878036,
-0.1135597154,
-0.0601441301,
-0.079598479,
0.0331129581,
-0.4984275699,
0.9225261211,
-0.4772052169,
-0.3955016136,
0.3990316391,
-0.0850762799,
0.2232205719,
0.0329406448,
-0.6755886674,
-0.0617452748,
-0.0890464485,
-0.1240518391,
0.1886921376,
-0.0126879951,
0.2287768424,
0.0191511493,
0.1004242152,
0.0250537246,
-0.1733038574,
0.0618408285,
-0.3782382905,
0.1799628288,
0.1180034578,
0.1025741696,
0.1669879109,
0.5997539163,
0.3769125342,
0.214936763,
0.4265277684,
-0.0667659119,
0.4888867438,
0.1062672362,
-0.2140328288,
0.392052263,
-0.1471905559,
-0.0915777832,
0.3976427019,
0.3115189672,
0.0630127639,
-0.2656400204,
0.0476527177,
-0.3787528276,
-0.2751904726,
0.123190932,
-0.1098456755,
0.1285320073,
-0.1404270828,
0.0695447326,
-0.1769115925,
-0.4095572233,
0.093123883,
0.6218012571,
0.430600822,
0.1633239537,
-0.1701023579,
-0.1417004466,
-0.2350003272,
0.2891920209,
-0.0341807529,
-0.0806798488,
-0.1350644082,
-0.0862565637,
0.2272746563,
0.2269203961,
0.9540442228,
-0.0645751283,
-0.0187263712,
-0.2875204086,
-0.0161162689,
-0.4420796931,
0.0145101855,
0.0797332376,
-0.1521081626,
0.1135307178,
0.3921188116,
-0.2639664114,
0.1765305549,
0.0429099798,
0.1702270359,
-0.1201412529,
-0.337066412,
0.1568937153,
-0.1701387465,
-0.454390049,
-0.5232819319,
0.0872029737,
-0.0485166237,
-0.0114096329,
-0.1434968263,
0.0332204551,
-0.1878248304,
0.320853442,
0.0290045142,
0.323012203,
-0.0241595171,
0.0653010383,
0.5728347301,
0.2810587585,
0.1753016263,
0.5070974231,
-0.3426687121,
-0.5103123784,
0.2120830268,
0.169718042,
0.168475017,
0.360354811,
-0.1417330503,
-0.2184080184,
0.1302580386,
0.1682597846,
-0.144478336,
0.2560932934,
0.2402636558,
-0.1730166972,
-0.4079532325,
-0.5461958647,
0.2481415421,
0.2352039367,
0.0081782378,
0.2157654166,
0.203250885,
0.0205662902,
0.2073972076,
-0.1899050027,
1.1590880156,
-0.2051502466,
0.1049529016,
0.3685400486,
0.0000878152,
0.4898834527,
-0.5621076226,
0.12303482,
-0.2473479658,
-0.44605425,
-0.0803926811,
-0.0122695556,
0.1241366789,
0.2231272459,
-0.4264648259,
0.4465715289,
0.0806597248,
0.1359013021,
0.0973146036,
0.267475605,
-0.2658928037,
-0.1710737795,
-0.018900875,
0.0238464009,
-0.015268608,
0.3941733539,
-0.065078564,
-0.0715933293,
-0.1776924729,
-0.2550997138,
-0.285303086,
0.0692447722,
-0.3530647755,
-0.2197475135,
0.2646273077,
-0.4973821342,
-0.0192372557,
0.6790009141,
-0.0062104645,
0.1208742708,
-0.2512016892,
0.1761658043,
0.0560248233,
-0.4599106014,
0.1834045649,
0.0415110849,
0.2908084691,
-0.1083820984,
0.0018797952,
0.1790194958,
0.0158873126,
-0.1622032821,
0.0541225709,
-0.2603781819,
-0.0059058131,
-0.1310099512,
-0.0656238347,
-0.3139174581,
-0.3034493625,
-0.1838787943,
0.0217204131,
-0.0079056481,
-0.0627357513,
-0.1570580453,
-0.1389870495,
0.0930476114,
-0.1031027362,
0.330291599,
-0.2529163361,
-0.1059190333,
0.4319318533,
0.5062090755,
-0.336620003,
-0.0477881059,
-0.1594231129,
-0.0267445669,
-0.6364167929,
-0.0826498941,
0.0995290801,
-0.0663467497,
-0.0450212471,
-0.0058935103,
0.2509751022,
-0.284750253,
-0.1893883795,
-0.3407220542,
0.0886036605,
0.2637628317,
0.1123125628,
0.3407939076,
-0.212918818,
-0.0691921115,
0.1011155173,
-0.025863383,
-0.1630071402,
0.0646389201,
0.0743289664,
-0.1155146882,
0.2694995999,
0.1921707541,
0.1514785439,
-0.0946744457,
-0.0434938185,
-0.0562239289,
-0.1990950406,
0.0344876014,
0.0067516272,
0.1628062874,
0.0254735947,
-0.4036128223,
-0.0670313761,
0.0473747887,
0.0716917738,
-0.3771180809,
-0.2658543289,
0.1507008225,
-0.1289485097,
-0.057615459,
-0.0476453453,
-0.2900969684,
-0.138068229,
0.4070123434,
0.0308485646,
0.5485035777,
0.156731084,
0.069933638,
-0.1241021752,
-0.1579688787,
0.0529257357,
0.2559564412,
0.0836289749,
0.1400222778,
0.5828831792,
-0.1968996674,
0.0638725907,
0.3734335303,
0.2050078958,
0.0466357917,
-0.0406822562,
0.0472214296,
0.2911176085,
-0.0070307148,
-0.2175207287,
0.0552723855,
0.1856354624,
0.2117568851,
0.03298885,
0.2738466859,
0.0530663133,
-0.1910835654,
0.1883859932,
0.1987122595,
0.4670715928,
0.1973935068,
0.5422309041,
0.4006673992,
0.0722113922,
0.0559626669,
-0.1884127408,
0.223761633,
0.0664946958,
-0.0698863566,
-0.2797976732,
0.2328459471,
-0.1768426746,
0.0755613074,
0.0232342463,
-0.4362847209,
-0.1277344674,
0.2264995426,
0.0952885076,
0.0562279858,
-0.18341811,
0.4394948781,
-0.0757169649,
0.2019463927,
-0.2041415125,
0.173925519,
0.2736944854,
0.2540516257,
-0.1244509965,
-0.1550618708,
-0.339625895,
-0.2287995666,
0.2662854195,
-0.2876719236,
-0.0643041953,
0.190687865,
0.1330375522,
0.0313933678,
0.1489229947,
-0.1990309507,
0.1812471449,
-0.0380316377,
0.4384077191,
0.2248153389,
-0.0278387219,
0.4072408974,
0.0230563767,
0.3788072765,
0.2339006215,
0.0133442013,
0.1613384336,
-0.1202319339,
-0.2298111022,
0.0162418932,
0.0081776474,
-0.1818754524,
-0.0509997644,
0.1129434109,
-0.0016163634,
-0.2158363312,
0.2323888093,
-0.1261029392,
0.451230675,
-0.2016043365,
0.1720462441,
-0.2920413315,
-0.2863093615,
-0.0837372914,
-0.6213547587,
-0.6549378633,
0.0307138059,
0.2062052041,
-0.430139184,
0.0481752567,
-0.2101670355,
-0.0022181415,
0.2260823399,
0.257846117,
0.3558718562,
0.0829546377,
-0.2466626465,
-0.3829974532,
-0.7103985548,
0.1702456027,
-0.0057921084,
-0.1040894389,
0.0201578159,
-0.1705209315,
-0.1132427007,
0.1235374212,
0.1166433543,
-0.2089066803,
-0.0978562385,
0.1893578321,
0.0142518785,
-0.2170463502,
0.1677996963,
0.179776758,
0.0364648402,
0.0944413021,
0.0340918452,
-0.1650344729,
-0.0712232962,
0.0360632725,
-0.0153229116,
-0.1697012335,
-0.4381462038,
0.2227581143,
-0.0675577074,
0.2514039278,
-0.0212905016,
-0.0637661964,
-0.1752920747,
-0.1998069882,
-0.0797465965,
-0.0080122072,
0.0430703163,
0.5551011562,
-0.4413222075,
-0.1375077367,
-0.2791353762,
-0.037101794,
-0.0060635591,
0.2420902252,
-0.2723397911,
0.1913047731,
-0.4297557771,
0.2016831785,
0.4566583633,
0.2606056631,
0.09036275,
0.1607861519,
-0.1486358792,
-0.3447376192,
0.3793512583,
-0.4298012555,
0.028188983,
0.1348242462,
-0.1058264822,
0.0222947448,
0.1407731473,
-0.3440101743,
0.1116296649,
0.1776315868,
0.1903180778,
0.193310082,
-0.0910906643,
-0.0306078512,
-0.1569271237,
0.0069135767,
0.3568555415,
0.171386838,
-0.1936422586,
0.0523104593,
-0.0195865966
] |
https://github.com/huggingface/datasets/issues/3257 | Use f-strings for string formatting | Hi, I would be glad to help with this. Is there anyone else working on it? | f-strings offer better readability/performance than `str.format` and `%`, so we should use them in all places in our codebase unless there is good reason to keep the older syntax.
> **NOTE FOR CONTRIBUTORS**: To avoid large PRs and possible merge conflicts, do 1-3 modules per PR. Also, feel free to ignore the files located under `datasets/*`. | 16 | Use f-strings for string formatting
f-strings offer better readability/performance than `str.format` and `%`, so we should use them in all places in our codebase unless there is good reason to keep the older syntax.
> **NOTE FOR CONTRIBUTORS**: To avoid large PRs and possible merge conflicts, do 1-3 modules per PR. Also, feel free to ignore the files located under `datasets/*`.
Hi, I would be glad to help with this. Is there anyone else working on it? | [
-0.2523805499,
-0.0726950392,
-0.2729312778,
-0.1937378496,
0.318089515,
-0.2330752015,
-0.077431418,
0.4338004291,
-0.0401994474,
0.1741474271,
-0.0738548711,
0.2662830949,
-0.1548373699,
0.3264695108,
-0.1182607561,
0.0868057758,
0.1632619053,
0.3807905018,
-0.2161478251,
0.1693059951,
-0.1103710532,
0.0779971033,
0.0519921035,
0.1348971277,
-0.2487014979,
0.0858763084,
0.119212836,
0.1374289989,
-0.1395835876,
-0.4347900748,
-0.1817260683,
0.3069977462,
0.0703025758,
0.2222206742,
-0.0000949828,
0.0271606166,
0.231179595,
0.0436981209,
-0.3314351737,
0.1232456863,
-0.2109093219,
-0.0344888493,
0.1456176341,
-0.0889317691,
0.0142956721,
-0.1392343789,
0.0569385067,
-0.5099319816,
0.1787343919,
0.231183365,
0.4003539681,
0.0390703231,
-0.0411495939,
-0.0085342871,
0.3425306082,
0.4041208327,
0.0323723741,
-0.008592221,
0.3203763068,
0.1296601743,
-0.1589417011,
0.4138070643,
-0.1006369218,
-0.1551903784,
0.3147902489,
0.0559469685,
-0.0841061547,
-0.0789851025,
0.1109193563,
-0.0525076725,
0.3667659461,
-0.3560486138,
-0.2523085475,
0.0077937916,
-0.3357441723,
-0.407168597,
0.1172589809,
0.1212318763,
-0.0416348353,
0.3417414725,
-0.065264903,
-0.2393431813,
-0.2610688508,
-0.0572888255,
0.201726526,
0.2606602311,
-0.1484228522,
-0.195321992,
0.0315597951,
-0.1053340882,
-0.1411297768,
-0.1018763483,
-0.0661113933,
-0.2071028352,
0.2120877653,
-0.1300715506,
-0.2775654197,
-0.0484672114,
0.2807565331,
0.0879694521,
-0.083231397,
0.3163676858,
0.0217469987,
-0.0778666288,
-0.1153594553,
-0.0517898239,
0.4173861146,
-0.0149951708,
0.6906052828,
-0.2916192114,
-0.0370159857,
-0.1014227942,
-0.0344507284,
-0.0819746479,
-0.1306414008,
0.0481674597,
-0.1955223382,
-0.3250894547,
0.1298602223,
-0.0903258622,
0.2885595262,
-0.1552815139,
0.0800227299,
0.2853537798,
0.1700579673,
0.2377198637,
-0.1029120013,
0.0018689494,
0.0789580271,
-0.2446170896,
-0.1412576437,
0.1635718793,
-0.324472338,
-0.2156782448,
0.0995386392,
-0.1933210045,
-0.072533153,
0.0278778784,
0.0152132222,
0.1314662695,
0.2343837321,
0.0066515831,
0.1630245,
0.2241339087,
-0.2724484205,
-0.0538956001,
-0.22282435,
-0.0302417595,
-0.1230868325,
0.1548330933,
-0.0935556963,
-0.1604486555,
-0.3816610873,
0.339741677,
0.0367383473,
-0.1087877303,
-0.0419679582,
0.1809030324,
-0.0041746218,
-0.2614740133,
-0.020242488,
0.1684083492,
0.029190056,
-0.2304302305,
0.079551667,
0.1248811185,
-0.2709437311,
0.0624703206,
0.3029824495,
-0.2159648091,
0.3210732639,
0.2360385656,
-0.0507488623,
0.0081344377,
-0.0407546945,
0.0845089108,
0.4870295823,
-0.2552317083,
0.1137885898,
0.4544899166,
0.0785807595,
-0.5273435712,
0.2474670261,
-0.1118506715,
-0.0055812467,
-0.1227645725,
0.0083143171,
0.2160336524,
0.0163006969,
0.2410146743,
-0.3616276085,
-0.2695987821,
-0.0348246843,
0.2020908296,
0.0282683652,
-0.2691054046,
0.2428242564,
0.0072917636,
0.2419555634,
-0.3977920115,
0.0467243679,
-0.0060116095,
0.2769955099,
0.2032003999,
-0.1717053652,
-0.4671602547,
-0.2583186924,
-0.3357977569,
-0.0382923409,
-0.1996406913,
-0.0342071876,
-0.1837275177,
0.0809222534,
-0.1600524187,
0.1284907609,
0.2244882733,
0.2927680016,
0.2583980262,
0.0515106581,
0.0482319035,
-0.4219649136,
0.2521481216,
-0.0330409594,
0.1054750681,
0.1087581739,
0.0594390444,
-0.1089082509,
-0.1827624589,
0.0322768912,
0.2674097419,
-0.0017353178,
-0.0496786088,
0.0314771645,
0.4911629856,
0.1431981921,
-0.0489951484,
0.2378768772,
0.3370938301,
0.1942790896,
0.03291649,
0.1932028234,
0.0149546396,
-0.0270446725,
0.2025069594,
-0.4407248795,
0.3134264052,
0.0566796847,
-0.0144988475,
0.2287246436,
-0.0862164423,
0.016561497,
0.0005648645,
-0.1443877965,
-0.3633646667,
0.2022378296,
-0.0165705048,
0.0054343082,
0.3159426451,
-0.5020893812,
-0.0126334727,
0.4482558668,
-0.0608072169,
0.3093239665,
0.2447480559,
-0.0109683499,
-0.1958026886,
0.0208224673,
-0.0678589642,
-0.0140535356,
0.3974094093,
-0.0730311722,
-0.1436098963,
0.1030322537,
-0.1678657234,
0.4159822464,
0.1735007167,
-0.112342976,
0.0796340331,
0.0042997748,
0.1630781442,
-0.2459085286,
-0.3674094677,
-0.3713026941,
-0.0532900356,
-0.2728942931,
-0.0523956791,
-0.35141927,
-0.1832726449,
-0.0892420858,
-0.0387912877,
-0.0084331622,
-0.1786410213,
0.0953983217,
-0.2165447474,
-0.3625358641,
0.2765782475,
-0.1983662844,
0.385635078,
-0.1718422174,
0.1374526322,
-0.2796768248,
-0.0118132355,
-0.1352491677,
0.2184859067,
0.4806119502,
0.1296232939,
0.3343778849,
-0.1490810364,
0.1792383492,
-0.1480834037,
-0.4984084666,
0.1922454983,
-0.0153188705,
-0.0083462326,
0.341681987,
-0.0738731325,
-0.0095986752,
-0.3237276971,
0.0131800957,
-0.2174908668,
-0.1368460506,
0.0699635148,
-0.0918374732,
0.0036706387,
-0.4460922778,
-0.1731782407,
-0.2620762885,
-0.3655595183,
0.1358653307,
-0.0839880779,
0.2033453733,
0.2190558463,
-0.2323927432,
0.036201153,
-0.2326080799,
0.197731778,
-0.0213632975,
-0.3789438903,
0.3082565069,
-0.2724910975,
-0.2259396315,
-0.0975699648,
0.0620755367,
-0.4477415085,
0.0770054236,
0.0325415768,
-0.2286520004,
-0.3055326045,
0.0094232811,
0.031317763,
0.1510059685,
-0.0738129169,
0.2571244538,
-0.3282738626,
0.0424604602,
0.068931073,
0.0979539007,
-0.2458868176,
-0.1237248927,
0.1354769617,
0.0077511836,
0.1225876436,
0.0309301373,
0.0096103335,
0.0722228736,
-0.093976371,
-0.0320577137,
0.3903195262,
-0.1885405481,
-0.0032376209,
0.3276163042,
0.0433640592,
0.0290566925,
0.4676077366,
0.0404278561,
0.1984706223,
-0.0042532147,
0.0126011549,
-0.1484609097,
-0.1003247872,
0.2925685048,
-0.1007036716,
0.2086903155,
-0.1701102704,
-0.0478110388,
0.0850591958,
0.0533849634,
0.2270132303,
0.2775001824,
-0.0621605143,
-0.1686649024,
-0.4207883775,
0.0064995983,
-0.2438651025,
0.3461133838,
0.1286688298,
0.0691724941,
-0.07497973,
-0.156983465,
-0.0424980484,
-0.0965342224,
0.2721276283,
-0.1113873869,
-0.2686118782,
-0.1981491745,
-0.034833625,
0.0540310703,
0.1463074833,
-0.3157157898,
0.0142781958,
-0.0480349399,
0.3288191557,
-0.2505940497,
-0.4201363921,
0.2262046039,
0.0061442857,
0.0227763895,
0.0438887589,
-0.0623465478,
-0.2005048394,
-0.2370786667,
0.0044163936,
0.046602387,
-0.064415358,
0.1549361795,
-0.0053820708,
0.0952791497,
-0.218306154,
0.3851633072,
0.0613638908,
0.2151704729,
-0.0373105258,
-0.1781350374,
0.1667330712,
0.0682517588,
0.3780592084,
-0.0405039079,
-0.4289465845,
0.044088807,
0.0280455686,
-0.4861612022,
0.6652918458,
0.2382799536,
-0.0515215993,
0.1217363253,
-0.1001422405,
0.0775140226,
-0.2276478857,
0.0266480297,
-0.1174654216,
0.0895949528,
-0.3025550544,
-0.4479770064,
0.1119387373,
0.1411822736,
-0.128060326,
0.1129333302,
0.1178168803,
-0.2979939282,
0.3864697814,
0.2857665122,
0.8768881559,
-0.001780121,
0.1908530444,
-0.0602167472,
-0.5522877574,
0.3023542762,
-0.3466931283,
-0.0504448563,
-0.2673936486,
-0.1652010679,
0.0080737285,
0.0245361086,
0.2898572385,
0.0486179553,
-0.2972404063,
0.1057052463,
-0.0761260316,
0.0396534428,
0.0438190289,
0.4348646998,
0.1154032052,
-0.3886328936,
-0.224686712,
0.2585795224,
-0.2843562663,
-0.4214138389,
-0.0009981542,
-0.157113567,
0.0647724792,
-0.1362899989,
0.0508355908,
-0.2665423453,
-0.1134468913,
0.1241863444,
-0.0332583822,
-0.1517928839,
0.0254390948,
0.0649665147,
0.5133607388,
0.3230528831,
0.1142096221,
-0.054445941,
0.0780429691,
0.4979194701,
-0.2031776905,
-0.0064817076,
0.2112915069,
-0.1895405054,
0.1327445507,
-0.1303119212,
0.0405702889,
-0.1567407101,
-0.0528009795,
-0.1156870872,
0.0879887789,
-0.1570089757,
0.0810087323,
-0.0144854654,
-0.2276713699,
-0.0914338231,
0.2757862508,
0.1278986037,
-0.058417242,
0.3311252296,
0.2951975167,
-0.1412664056,
-0.2239811122,
-0.1905855983,
-0.1225672737,
-0.1490405649,
0.0830497742,
0.0087438114,
-0.5282694101,
-0.44267115,
0.2453299612,
0.1368183196,
-0.0413544886,
0.2504987717,
-0.0423383489,
-0.2946299016,
-0.0659776554,
0.4174997509,
0.2018391341,
-0.0480569117,
0.0334878862,
0.0207289439,
-0.4841067791,
0.2133650482,
-0.2199033201,
0.3061169088,
0.0281872172,
0.1475781649,
-0.1309393793,
-0.0484874547,
-0.5514651537,
-0.0147234192,
0.0799358562,
0.0290328525,
-0.1547558159,
-0.1989953369,
0.0996865705,
-0.0301527604,
0.2772102356,
0.2709278166,
-0.1627637595,
-0.3372883499,
-0.1440688372,
0.0763329118,
-0.1983793378,
0.0312616564,
0.1532126963,
0.2286929339,
-0.0699686259,
-0.0200758092,
-0.0148805659,
0.1364290118,
-0.0063027963,
0.4241190553,
0.0942169726,
-0.2167764306,
0.1219464764,
0.0249457974,
0.14621979,
0.1942895949,
0.10063456,
0.1913557053,
-0.2884186804,
-0.2435234487,
0.4463487864,
0.3173647523,
0.1458355784,
0.1603000611,
0.003611265,
-0.0936416313,
-0.0245177206,
0.3722591102,
0.1578390896,
0.2607586682,
-0.1609454602,
-0.1052945629,
0.1225308403,
0.4104196429,
-0.0452851318,
0.070392929,
0.0531867184,
-0.158981815,
0.0451643988,
0.3025205731,
0.3525937796,
0.0220160317,
0.2058378756,
0.1290322244,
0.1744820625,
-0.012840624,
-0.1189066991,
0.2277159542,
0.1451888531,
-0.1419425011,
0.2437594533,
0.2914798558,
-0.0600481369,
0.5283064842,
-0.0050885626,
0.2120741606,
0.2640062571,
0.0723128244,
-0.058724042,
-0.170030266,
0.3056177497,
0.1668457836,
0.024728734,
0.0284806676,
0.3070342839,
0.2158952355,
0.0427589975,
-0.317569077,
0.2951324582,
0.0538259856,
-0.1155062392,
-0.2004894912,
-0.2500433922,
0.0199545566,
-0.2284044921,
-0.0450509489,
-0.1591902077,
0.0595265515,
0.287866652,
0.2713485956,
0.3996475637,
-0.0606112815,
0.1323088855,
-0.2446421683,
0.4118626118,
-0.2839642167,
0.1319918483,
0.1503565013,
0.0591905378,
0.3682965636,
-0.0168328229,
0.3472533226,
0.192519635,
-0.1951922923,
-0.109408766,
-0.4035618603,
-0.0448387936,
-0.0916913077,
0.1926599592,
0.3673119545,
0.3243021667,
0.2689302564,
0.3161050379,
-0.2521336377,
0.1052320898,
0.0555526465,
-0.3921231031,
-0.0425456911,
-0.050656151,
0.6449181437,
-0.2733343244,
0.0087721813,
-0.2236597687,
-0.3084056675,
-0.2158231288,
0.250367105,
-0.0687505081,
-0.0748775303,
-0.0379390158,
0.1769080609,
0.5599716306,
0.4471057355,
0.2278952301,
0.0848101899,
-0.0978254005,
-0.3583950996,
-0.2564663291,
-0.1911739409,
0.1371771544,
0.2685959935,
0.1212200373,
-0.0125369485,
0.2303310633,
0.0366072543,
0.0951870307,
0.011005016,
-0.2473982275,
-0.1544206142,
-0.3119347394,
0.2894161046,
0.2628742456,
0.1414257735,
0.0224663094,
-0.122797519,
0.2422757149,
0.00620399,
0.2835980058,
-0.2273051292,
0.06952966,
0.1616474241,
-0.0832975581,
0.135127008,
0.0924420282,
0.2335007042,
-0.2483506799,
-0.3387182355,
0.1500359178,
0.0890476331,
-0.2700145543,
0.1921262592,
0.1275247931,
0.2844806314,
-0.108532317,
-0.2846517563,
-0.2184166461,
0.2256061286,
-0.1124261618,
0.2588980198,
-0.275470823,
0.1831343174,
0.1750069112,
-0.2392033339,
-0.0247919485,
0.2555220127,
-0.0149532026,
0.0250060968,
-0.4105738997,
-0.336546123,
0.2008601129,
-0.029111445,
-0.4095870852,
-0.0823280215,
0.1376096606,
0.4277684689,
0.149958238,
-0.4739387929,
0.0591348968,
0.1480672061,
0.0361640863,
-0.2803321481,
0.1969218701,
-0.0088706603,
-0.0540927052,
-0.0965080932,
0.1816629767,
0.002738043,
-0.237019524,
-0.3313075602,
-0.3958212733
] |
https://github.com/huggingface/datasets/issues/3257 | Use f-strings for string formatting | Hi @Carlosbogo,
would you be interested in replacing the `.format` and `%` syntax with f-strings in the modules in the `datasets` directory since @Mehdi2402 has opened a PR that does that for all the other directories? | f-strings offer better readability/performance than `str.format` and `%`, so we should use them in all places in our codebase unless there is good reason to keep the older syntax.
> **NOTE FOR CONTRIBUTORS**: To avoid large PRs and possible merge conflicts, do 1-3 modules per PR. Also, feel free to ignore the files located under `datasets/*`. | 36 | Use f-strings for string formatting
f-strings offer better readability/performance than `str.format` and `%`, so we should use them in all places in our codebase unless there is good reason to keep the older syntax.
> **NOTE FOR CONTRIBUTORS**: To avoid large PRs and possible merge conflicts, do 1-3 modules per PR. Also, feel free to ignore the files located under `datasets/*`.
Hi @Carlosbogo,
would you be interested in replacing the `.format` and `%` syntax with f-strings in the modules in the `datasets` directory since @Mehdi2402 has opened a PR that does that for all the other directories? | [
-0.2773165107,
-0.0062523508,
-0.2638719678,
-0.2012526393,
0.352601558,
-0.2338513881,
-0.0026533506,
0.3380841613,
-0.1398147792,
0.1589685231,
-0.0092811594,
0.3141451776,
-0.1093443111,
0.2844198942,
-0.1453707367,
0.0645593554,
0.0962566212,
0.3454552889,
-0.2286487669,
0.1621787846,
-0.064756304,
0.0216483306,
0.0164890233,
0.1344254464,
-0.3462027609,
0.1120242849,
0.1308509558,
0.1923982501,
-0.0933238566,
-0.4705905616,
-0.1409295648,
0.2727009952,
0.1589163989,
0.2255077511,
-0.0000964029,
0.0431053229,
0.2230279744,
0.006499731,
-0.3922264874,
0.1654273421,
-0.2178722918,
-0.1118053049,
0.1537133008,
-0.1107005998,
-0.0160883423,
-0.1601373106,
0.022189457,
-0.5188578963,
0.0598466471,
0.1956133842,
0.3933537602,
0.1359619647,
-0.0390291885,
0.031965293,
0.2628338039,
0.4316640198,
0.0034723363,
0.1714199334,
0.3038401008,
0.2500909567,
-0.0075213881,
0.3953905106,
-0.1569812596,
-0.0825043097,
0.4277826548,
0.0713802278,
-0.0343157202,
-0.082300514,
0.1197506562,
-0.1035732105,
0.4359423518,
-0.3023335338,
-0.2618737519,
-0.1082613915,
-0.3387668133,
-0.3906794488,
0.1259232014,
0.0985450968,
0.027379334,
0.3594385684,
-0.0776871368,
-0.2695730627,
-0.1576694548,
-0.0389496908,
0.1048180684,
0.2621433437,
-0.1781179905,
-0.1184933558,
-0.1107015312,
-0.1968021542,
-0.1003941074,
-0.1562151313,
-0.1192772835,
-0.2484000623,
0.2824899256,
-0.0701693073,
-0.2967850566,
-0.0178713594,
0.1715270579,
0.0781386644,
-0.1455417573,
0.3011858463,
0.0250598565,
-0.0728644505,
-0.0917059034,
-0.0374991708,
0.4903723001,
0.1400834024,
0.6557164192,
-0.2786904275,
-0.0740929246,
-0.0848158672,
-0.0106657865,
-0.1318600327,
-0.1168140918,
0.0820507407,
-0.1512689888,
-0.2880860269,
0.0652329326,
-0.0630732477,
0.2093473077,
-0.2144214064,
0.0392837711,
0.2863618433,
0.2291795462,
0.3211303949,
-0.0682086945,
-0.0825760663,
0.0996075049,
-0.2190793604,
-0.1353490204,
0.1241707355,
-0.3585177362,
-0.2125965059,
0.0490647703,
-0.3000223041,
-0.0886076465,
0.0267009307,
0.0519631244,
0.1181790531,
0.1938053519,
-0.002817974,
0.1527670771,
0.2664492726,
-0.3139648736,
0.0443452001,
-0.2262585908,
0.0200707074,
-0.026916679,
0.2498442531,
-0.2054643035,
-0.1035783738,
-0.2537426949,
0.3349480629,
-0.0598157197,
-0.1121722385,
-0.0624524541,
0.0766742751,
0.0292071048,
-0.2434670776,
0.0739053339,
0.0855386406,
0.153829962,
-0.2729383707,
0.0348984525,
0.2200523913,
-0.306456089,
0.0600604415,
0.3117333949,
-0.2062149942,
0.3134837747,
0.2618445158,
-0.0385055542,
0.066082038,
-0.0431493334,
0.0167026892,
0.5649346113,
-0.278611362,
0.1335186362,
0.5079829693,
0.1005508974,
-0.498282969,
0.1840941161,
-0.1650189161,
-0.002629556,
-0.1093121767,
0.0998900905,
0.1563738436,
0.106072247,
0.2727991045,
-0.3800602555,
-0.2395651489,
-0.0147012016,
0.2018727511,
-0.0185174812,
-0.1883576661,
0.1622099131,
0.0341531895,
0.2665069401,
-0.3893022239,
0.0523171276,
-0.0077970745,
0.2614921629,
0.2361307442,
-0.2009631842,
-0.5001105666,
-0.2550663054,
-0.2584880292,
-0.0568837672,
-0.2633844018,
0.0005153831,
-0.1382172108,
0.1211205423,
-0.2116447836,
0.1195987538,
0.1687563509,
0.2641733885,
0.2271762192,
0.0209677089,
0.0768587813,
-0.4421521425,
0.22644566,
0.0155637115,
0.1343679428,
0.151091069,
0.1145249978,
-0.1076779589,
-0.2151969373,
-0.0888351426,
0.2626713216,
0.0449291617,
-0.1022860706,
-0.0154264653,
0.5806491971,
0.1256978214,
-0.0301900916,
0.1626925766,
0.2532302439,
0.1305967271,
0.1287717521,
0.1698157638,
-0.0448724106,
-0.0129762078,
0.2402295023,
-0.3975747824,
0.2945052981,
0.0873997062,
-0.0190997459,
0.1848158389,
-0.0861100256,
-0.0463222377,
0.048528742,
-0.0793330148,
-0.4739488363,
0.132286638,
0.0805753171,
0.0233362615,
0.3324820101,
-0.4395859241,
-0.0524034686,
0.4432690144,
-0.0689902678,
0.2728599906,
0.1660462767,
-0.0529639237,
-0.130460307,
0.0676125363,
-0.0293058082,
0.1037501916,
0.3986206353,
-0.0356228761,
-0.1042348891,
0.1733064651,
-0.1819036752,
0.4123671055,
0.2072542906,
-0.1929921657,
0.0844465792,
0.0582439937,
0.1501815617,
-0.1483563185,
-0.333789587,
-0.3622510433,
-0.0641164407,
-0.3206167817,
-0.0197058674,
-0.362052381,
-0.1367676407,
-0.1412172318,
-0.0819026306,
-0.0593475513,
-0.2100988179,
0.0444881059,
-0.3224188983,
-0.3296023905,
0.2354355454,
-0.1352746189,
0.2653687596,
-0.231573239,
0.0919554904,
-0.3378703892,
0.0629969314,
-0.1751653701,
0.1965324581,
0.441149801,
0.1879895926,
0.3359063268,
-0.1202879325,
0.1120058298,
-0.2491746843,
-0.354555428,
0.2150993198,
-0.0458376743,
-0.021988973,
0.4210177958,
-0.0598675273,
0.1241619512,
-0.2448570728,
0.1431280673,
-0.1505612582,
-0.0186473709,
0.0030731605,
-0.0777510777,
-0.014284852,
-0.4594922066,
-0.1522587389,
-0.2369544804,
-0.3785194457,
0.0921913832,
-0.060149841,
0.1050594151,
0.1752322465,
-0.2197510004,
-0.0180317461,
-0.2431262136,
0.1235659495,
-0.0468817875,
-0.3524090052,
0.290187031,
-0.2394015491,
-0.1191400215,
-0.0713963658,
0.1501868963,
-0.4855622947,
0.1078352779,
0.0681963488,
-0.2905304134,
-0.2971718013,
-0.0600971766,
0.0517933927,
0.2384478897,
-0.1359242946,
0.2513189018,
-0.3263928294,
0.0726667941,
0.0167834982,
0.039526742,
-0.1422210783,
-0.1281166673,
0.1391807944,
-0.0336905867,
0.0430015549,
0.049973648,
0.0926780999,
-0.0852153897,
-0.0853642374,
-0.0394734256,
0.4183884263,
-0.1670800745,
-0.0077998503,
0.302526474,
0.0544693135,
0.026188612,
0.3566532135,
-0.0079613691,
0.2686124742,
-0.0069730389,
-0.0181961264,
-0.0737579465,
-0.1445904672,
0.3297466636,
-0.1414911598,
0.3233837187,
-0.1517097354,
0.0565089434,
0.0163983051,
0.1031434163,
0.1955511123,
0.2980969846,
-0.0353787355,
-0.1084164828,
-0.420539856,
-0.0508014672,
-0.1765191853,
0.4163728654,
0.1428686678,
0.1851055771,
-0.0963111818,
-0.1172786951,
0.0075987796,
-0.0935358405,
0.230959475,
-0.2808736861,
-0.3068263233,
-0.1836949289,
0.0701651499,
0.0177358482,
0.0349832773,
-0.2937366068,
0.0827375203,
-0.0618494675,
0.2572002709,
-0.236087054,
-0.4882369637,
0.1964830011,
0.0308689699,
-0.0539647155,
0.0319911167,
-0.1508384347,
-0.1767994314,
-0.2082224935,
-0.0321145393,
0.012449773,
-0.1046435907,
0.1699638069,
0.073243767,
0.1267496496,
-0.1217596158,
0.3400371075,
0.0430077761,
0.2580911517,
-0.028309403,
-0.238407895,
0.2507736981,
0.1180092618,
0.4559541941,
-0.003693382,
-0.4924713969,
0.1497188061,
0.0409266911,
-0.5246245861,
0.6474844217,
0.3508768082,
-0.0622101426,
0.1184524298,
-0.1054855809,
0.1413928121,
-0.1782165319,
-0.0154607585,
-0.0433600359,
0.0509847142,
-0.3237245083,
-0.5745086074,
0.0676322728,
0.1398035884,
-0.0628030375,
-0.0069535109,
0.113340281,
-0.2688908279,
0.4105671644,
0.2540037334,
0.8523499966,
0.029210519,
0.1980984062,
-0.1220963523,
-0.4593200684,
0.3659485877,
-0.324564755,
-0.1185456961,
-0.2989279032,
-0.0765484199,
-0.0042328695,
-0.0461653098,
0.3074061573,
-0.0007514029,
-0.2445528805,
0.1784118116,
-0.1704706252,
0.0505980477,
0.0977867991,
0.39712888,
0.0529680625,
-0.2970474958,
-0.2947382927,
0.2382157594,
-0.2806640863,
-0.3752517402,
-0.0389031731,
-0.1723575443,
-0.0101512372,
-0.1827738136,
-0.024823403,
-0.3181138933,
-0.087836653,
0.1101858243,
0.0005062069,
-0.1420978457,
0.1036679074,
0.1331927478,
0.5213011503,
0.3268896341,
0.1475374848,
-0.0426465385,
0.0019156506,
0.5297319889,
-0.1871535629,
0.0208513774,
0.1384422034,
-0.1507769674,
0.090489611,
-0.0873552412,
-0.052993454,
-0.1362794936,
-0.1500235498,
0.0165628102,
0.1119670197,
-0.2617967129,
0.031654045,
0.004810852,
-0.1639345586,
-0.019456761,
0.2620089352,
0.0930464715,
0.0416518599,
0.3690769374,
0.2295731604,
-0.1471520513,
-0.1988775283,
-0.1677995622,
-0.1862524897,
-0.1793810129,
0.0265485216,
-0.0251709856,
-0.4954954982,
-0.391353339,
0.3492427766,
0.0514938422,
-0.0698063821,
0.2359688431,
0.0332001522,
-0.2162139863,
-0.0565313548,
0.3846892416,
0.1481738985,
-0.0756365061,
-0.1132668257,
0.0552508347,
-0.4046130478,
0.1588872671,
-0.1790795922,
0.2494983375,
-0.0034326054,
0.2522683144,
-0.1882976443,
-0.2108116746,
-0.5396789312,
0.0412348993,
0.1074856296,
0.0898173675,
-0.1302492619,
-0.1685562283,
0.084709689,
-0.0695276409,
0.2572597265,
0.2110737562,
-0.1747325808,
-0.3372733295,
-0.1363421679,
0.0771207139,
-0.215718776,
0.0195277687,
0.1560466588,
0.2165404409,
0.0060730046,
-0.0639480799,
0.0625831038,
0.1253094524,
0.0010958695,
0.441003114,
0.0985754952,
-0.2169215232,
0.0764957443,
0.0523467362,
0.0614973903,
0.1403398514,
0.1079603955,
0.2189075798,
-0.3559092879,
-0.2166818827,
0.3945861459,
0.2529783547,
0.0973173529,
0.3142729998,
-0.0421473347,
-0.1272698045,
0.0071771909,
0.2810889184,
0.1662541926,
0.4122027159,
-0.1856634021,
-0.0993926674,
0.0673845857,
0.4060671628,
0.0767622665,
0.0309334975,
0.0354682319,
-0.1134984419,
0.0798159018,
0.3526954353,
0.3490889966,
0.0080014635,
0.142655313,
0.1289532483,
0.2487705499,
-0.0171641111,
-0.1655715853,
0.277521044,
0.2105754614,
-0.0302542485,
0.2773044109,
0.2136290371,
-0.0650269389,
0.5815942883,
0.1256763041,
0.2634923458,
0.3493139446,
-0.0383608118,
-0.0678709447,
-0.2430008948,
0.2708839476,
0.1413448602,
0.1150979027,
0.0220714062,
0.3209574223,
0.1856767982,
-0.0616410188,
-0.349868536,
0.3900877237,
-0.0116549637,
-0.1255874634,
-0.198555693,
-0.1835216284,
0.0193360839,
-0.2084123194,
-0.0646598786,
-0.2259226292,
0.0781385824,
0.3033037484,
0.2414074242,
0.3192389607,
-0.120484218,
0.0684698448,
-0.2375448644,
0.3540509343,
-0.2975060642,
0.120015651,
0.1641907245,
0.0614770427,
0.3408089578,
-0.0503222942,
0.4556775391,
0.2678747177,
-0.1105641201,
-0.1264197081,
-0.3949783742,
0.0041769622,
-0.0878136903,
0.1693387032,
0.2285663188,
0.2708120942,
0.2787389457,
0.3664296567,
-0.2411272377,
0.0324792936,
-0.0324882828,
-0.2990780175,
-0.0456542596,
0.0417542383,
0.578222096,
-0.2087975442,
0.0286422707,
-0.2392296642,
-0.3867053688,
-0.1322499365,
0.2500050664,
-0.0235762354,
-0.0621984042,
-0.0320919417,
0.1706793606,
0.5303399563,
0.468390286,
0.2221415788,
0.1677530706,
-0.1087682843,
-0.2799250782,
-0.3098226488,
-0.222889334,
0.079680264,
0.2107800394,
0.0697317049,
-0.0312892981,
0.2318204641,
0.0000466875,
0.1619651616,
0.1492160261,
-0.2778660655,
-0.0996598303,
-0.2920434475,
0.2075606883,
0.2191400528,
0.1128506884,
0.0029036424,
-0.1545437276,
0.2325949222,
0.0069172876,
0.2643062472,
-0.2637899816,
0.0307373777,
0.2244685888,
-0.0847610086,
0.239029333,
0.0695097372,
0.2878043652,
-0.134291783,
-0.383220613,
0.0407288149,
0.1360973865,
-0.2138047069,
0.1450020671,
0.0712686479,
0.2977678478,
-0.126418978,
-0.2780176401,
-0.3151756525,
0.249452129,
-0.0780339614,
0.3505956233,
-0.2580042779,
0.2028382272,
0.2166731656,
-0.2371340245,
-0.1302662492,
0.2300435305,
0.0152101051,
0.0069881724,
-0.5228838921,
-0.258675307,
0.2389025986,
-0.0568841435,
-0.4414851964,
-0.0650185868,
0.1292537451,
0.4313695133,
0.0780421048,
-0.4421368539,
0.0137296068,
0.2145688087,
-0.0161712207,
-0.4667535424,
0.154485181,
-0.0277109817,
-0.0509212092,
-0.0982235447,
0.1845564097,
-0.0973316208,
-0.3066055477,
-0.3300441504,
-0.3174587488
] |
https://github.com/huggingface/datasets/issues/3253 | `GeneratorBasedBuilder` does not support `None` values | Hi,
thanks for reporting and providing a minimal reproducible example.
This line of the PR I've linked in our discussion on the Forum will add support for `None` values:
https://github.com/huggingface/datasets/blob/a53de01842aac65c66a49b2439e18fa93ff73ceb/src/datasets/features/features.py#L835
I expect that PR to be merged soon. | ## Describe the bug
`GeneratorBasedBuilder` does not support `None` values.
## Steps to reproduce the bug
See [this repository](https://github.com/pavel-lexyr/huggingface-datasets-bug-reproduction) for minimal reproduction.
## Expected results
Dataset is initialized with a `None` value in the `value` column.
## Actual results
```
Traceback (most recent call last):
File "main.py", line 3, in <module>
datasets.load_dataset("./bad-data")
File ".../datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File ".../datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File ".../datasets/builder.py", line 697, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File ".../datasets/builder.py", line 1103, in _prepare_split
example = self.info.features.encode_example(record)
File ".../datasets/features/features.py", line 1033, in encode_example
return encode_nested_example(self, example)
File ".../datasets/features/features.py", line 808, in encode_nested_example
return {
File ".../datasets/features/features.py", line 809, in <dictcomp>
k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
File ".../datasets/features/features.py", line 855, in encode_nested_example
return schema.encode_example(obj)
File ".../datasets/features/features.py", line 299, in encode_example
return float(value)
TypeError: float() argument must be a string or a number, not 'NoneType'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-5.4.0-81-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 6.0.0 | 38 | `GeneratorBasedBuilder` does not support `None` values
## Describe the bug
`GeneratorBasedBuilder` does not support `None` values.
## Steps to reproduce the bug
See [this repository](https://github.com/pavel-lexyr/huggingface-datasets-bug-reproduction) for minimal reproduction.
## Expected results
Dataset is initialized with a `None` value in the `value` column.
## Actual results
```
Traceback (most recent call last):
File "main.py", line 3, in <module>
datasets.load_dataset("./bad-data")
File ".../datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File ".../datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File ".../datasets/builder.py", line 697, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File ".../datasets/builder.py", line 1103, in _prepare_split
example = self.info.features.encode_example(record)
File ".../datasets/features/features.py", line 1033, in encode_example
return encode_nested_example(self, example)
File ".../datasets/features/features.py", line 808, in encode_nested_example
return {
File ".../datasets/features/features.py", line 809, in <dictcomp>
k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
File ".../datasets/features/features.py", line 855, in encode_nested_example
return schema.encode_example(obj)
File ".../datasets/features/features.py", line 299, in encode_example
return float(value)
TypeError: float() argument must be a string or a number, not 'NoneType'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-5.4.0-81-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 6.0.0
Hi,
thanks for reporting and providing a minimal reproducible example.
This line of the PR I've linked in our discussion on the Forum will add support for `None` values:
https://github.com/huggingface/datasets/blob/a53de01842aac65c66a49b2439e18fa93ff73ceb/src/datasets/features/features.py#L835
I expect that PR to be merged soon. | [
-0.3755475879,
-0.0556597337,
0.017514525,
0.362069726,
0.2084514201,
-0.0467278734,
0.2878645062,
0.3196857572,
-0.0551303513,
0.4114516973,
-0.0919492543,
0.2093870789,
-0.0303598605,
0.1589505821,
-0.0881237835,
-0.1058660746,
-0.0093904072,
0.4736220539,
-0.1599651277,
-0.1481879056,
-0.281665653,
0.3852760792,
-0.1525927931,
0.0162907261,
-0.3656911552,
-0.0074278913,
-0.020998409,
0.2703852654,
-0.1603848934,
-0.4201868176,
0.1774463505,
0.1656192988,
-0.3027569056,
0.3090288043,
-0.0001119799,
0.1557040364,
0.4087575376,
0.0456009433,
-0.3536455929,
-0.2457539141,
0.0721886978,
-0.175773412,
-0.2164089978,
-0.2013085634,
-0.3425666988,
-0.2993764579,
-0.2032786161,
-0.0639349669,
0.3508856297,
0.0354737751,
0.2294411361,
0.3646340966,
0.0870418027,
-0.1591674387,
0.3845465183,
0.3267623782,
-0.1977268308,
-0.0396499857,
-0.0824362934,
0.0106160138,
0.0736944675,
0.3534074128,
-0.2314939201,
-0.1012742519,
0.3139730096,
0.2191482037,
0.1395629793,
-0.2853600383,
0.3522202671,
0.3000059724,
0.0422228985,
-0.106370531,
-0.422347486,
-0.2927532494,
0.0187927131,
-0.4310064614,
0.1601583958,
0.0639996007,
-0.3690939546,
0.1437054873,
-0.1686567068,
-0.1183268279,
-0.0970866829,
-0.0958186835,
-0.2280774564,
0.1279596686,
-0.1591738462,
-0.0342781506,
0.2492371053,
0.0524249412,
-0.1444494873,
-0.246826455,
-0.2079758048,
0.1133108959,
-0.186072588,
-0.1647471488,
0.2346265316,
0.2474596798,
0.3685048521,
0.0273487195,
-0.0617432334,
-0.0931948125,
-0.0168580431,
0.1942132413,
0.0464161746,
-0.1052772701,
0.3198726475,
-0.1273212731,
0.3373363614,
0.2841593921,
0.2452004105,
-0.0162834171,
0.1121447906,
-0.147688508,
0.0471511036,
0.0960347131,
0.4349989891,
-0.0542628393,
-0.2283269167,
0.1049944162,
0.1429232508,
0.1430878937,
0.0955244675,
0.424346298,
-0.0563368946,
-0.110740073,
-0.0271077827,
0.1991812885,
-0.1170894876,
-0.567845583,
-0.4084661305,
-0.1203009784,
-0.0415419415,
-0.0713088661,
0.1508461982,
-0.4424678981,
0.3402927518,
0.3902486861,
-0.0468726568,
0.0752528161,
0.0555640757,
-0.2253488749,
0.1543739587,
0.3932979107,
-0.1248080805,
0.0906130075,
0.1714508533,
-0.2468485087,
0.0950004384,
0.2942014039,
-0.015819855,
-0.2071359158,
-0.1477656364,
0.1986861974,
-0.2223284394,
0.3990357518,
-0.298635602,
0.275162667,
0.0705728382,
-0.0931566209,
-0.1180657297,
0.050560113,
-0.3167054951,
-0.2622914016,
0.6293166876,
0.7424443364,
-0.221649155,
-0.2276985794,
-0.0847895816,
-0.2480289042,
0.1308168918,
-0.0773383602,
0.0004022482,
0.0801470727,
-0.2883952856,
0.0804916173,
0.2500951886,
0.0589098111,
-0.3071283698,
0.2837046087,
-0.1025525033,
0.0465809517,
0.1905657053,
-0.1080015972,
-0.0924427882,
-0.0004111586,
0.0871849656,
0.0975345001,
-0.0293314252,
0.1038311869,
-0.3773462474,
-0.2787607908,
0.0872240365,
0.0262914449,
0.0524034724,
0.0965093374,
-0.1343647838,
-0.1027717441,
0.1811460406,
-0.2304435521,
0.0601640604,
0.2059482932,
0.1822031736,
-0.116264388,
0.0575181469,
-0.1648100466,
-0.6513999701,
0.3667996824,
-0.4075235128,
0.0476343594,
-0.2009484917,
-0.2698303163,
-0.0974811018,
0.1023579836,
-0.2258038521,
-0.2962966561,
0.1696781516,
0.0879049301,
0.037481647,
-0.0975193903,
-0.3238753378,
0.0562140867,
0.1103862971,
0.2662496865,
-0.4766644537,
0.3119674325,
-0.0222586859,
-0.0636571571,
-0.0740658939,
0.4305322468,
0.2377888411,
-0.0195402596,
0.1481740624,
0.3820674419,
-0.0104702786,
0.0823354572,
-0.3049314022,
-0.302628547,
0.1902380884,
0.0920054018,
0.144403249,
0.0003468308,
0.1574744433,
0.0395605862,
0.1896131635,
0.3644085526,
-0.0244386289,
0.1436267197,
0.0049169185,
-0.1079016402,
0.0771585703,
-0.024709899,
0.0319672562,
-0.3617340028,
0.0808831975,
0.2178249508,
0.2825892866,
0.2107717246,
-0.2946118712,
0.1965194792,
0.2486257255,
-0.1464686692,
0.0722485781,
-0.0655767769,
-0.2734431624,
-0.1348511577,
0.1162290573,
0.1953471601,
0.3297396004,
0.2199228704,
-0.0564793497,
0.1154174283,
0.0587956496,
-0.1067689881,
0.3183569014,
-0.0983766243,
0.0008358703,
0.4370104969,
0.0407287665,
-0.0954496115,
-0.436879456,
0.0067375312,
0.0139789376,
0.2513409257,
-0.2729532719,
-0.0329152606,
-0.1499966532,
0.027140623,
0.0986128226,
-0.0159705579,
-0.4622295499,
-0.29227826,
0.0987336412,
0.1764290631,
-0.2557472885,
0.1585585624,
0.0666980445,
0.167574048,
-0.0395486131,
0.1131351665,
-0.4298529029,
0.0131982444,
-0.2794489264,
0.0465927012,
-0.0070640622,
0.0212636422,
0.175488174,
-0.1727860421,
-0.3081014752,
-0.1617883593,
-0.1477695256,
0.2050217539,
-0.2430809587,
0.3718705177,
0.5029798746,
0.1906331629,
0.1493020356,
-0.0795187578,
0.369025588,
-0.2231033444,
-0.2848537862,
0.1857450455,
0.0545426831,
0.2075449526,
-0.4394904077,
-0.0951007456,
-0.0041939658,
-0.3338496089,
0.1456009299,
0.1017209738,
0.275033325,
0.4047111571,
0.2043797374,
0.1245007068,
-0.2244339585,
0.0804509223,
-0.140711233,
-0.3035986125,
0.3421367109,
-0.1803033203,
-0.2238967419,
0.0293071959,
-0.3016878664,
0.2244320363,
-0.1195722893,
-0.1867699325,
-0.0532187112,
-0.064995937,
0.2919776142,
-0.0516751111,
0.2561917007,
0.0521018505,
0.3433224261,
-0.1422457695,
-0.0862029418,
0.0194364302,
0.1826760322,
-0.3563958704,
-0.00966872,
0.1934416294,
0.3018574715,
-0.1547957361,
0.4621320665,
0.3235419691,
0.1011507958,
0.2983315289,
-0.1317045689,
0.4643145502,
-0.2260092944,
-0.3710765839,
-0.1370819807,
0.4127303958,
-0.0946719274,
0.1686098129,
-0.0523277558,
0.3291663527,
-0.1426894218,
-0.2325528264,
-0.0802593231,
-0.3305813968,
-0.0521648005,
-0.062307395,
0.0631261915,
-0.170706436,
0.2170430422,
-0.2157460302,
0.1044957712,
0.0493068993,
-0.1174136475,
0.2543881238,
-0.1544595063,
-0.0602448471,
0.1573828757,
-0.7502714396,
0.2768679857,
-0.0991412103,
-0.2937221229,
0.0103480062,
-0.0578890219,
0.0223358627,
-0.0278193485,
0.7188821435,
-0.1386255771,
0.277568996,
0.1054139286,
-0.206798017,
-0.0980205238,
-0.0865525305,
-0.1354307085,
0.0643567219,
0.0382600576,
0.3995771408,
-0.5299599767,
-0.3162815273,
0.419226855,
0.0963118151,
-0.0074086268,
0.0066191643,
-0.372879982,
-0.3196873367,
-0.0705813542,
-0.1795617789,
-0.0571334288,
0.4005846977,
-0.2132145017,
-0.1375768483,
-0.2145483196,
0.0335864648,
0.0444468334,
0.2133466154,
0.538759768,
-0.2697907984,
0.0259356648,
0.2882077396,
-0.0883547068,
0.1700211763,
0.535718143,
0.0090008155,
-0.2898903191,
-0.0304246377,
-0.1578856409,
0.1297794282,
0.3173119724,
-0.3651439548,
0.1165383905,
0.0612610318,
0.4283701181,
-0.0918967724,
-0.1744350046,
0.5550496578,
-0.1289584935,
-0.1197101176,
-0.3594292104,
0.461145848,
-0.0169529561,
0.0727380216,
0.0394596606,
0.4241113663,
-0.1297599524,
0.4143430591,
0.0369665734,
0.7066834569,
0.3960485458,
0.0854373425,
0.4826751649,
0.1267905682,
0.690456748,
-0.0919954628,
0.1924571693,
-0.5881832838,
-0.3698317111,
-0.0614553466,
0.0602855086,
0.2588380277,
0.230011493,
-0.0701406077,
0.2161949277,
-0.1239230186,
0.2660216689,
-0.0906010792,
-0.1874862313,
-0.2484667152,
-0.0324236639,
-0.2924647331,
0.0667380542,
-0.0127957361,
0.1801026165,
0.0672301725,
-0.1901772767,
-0.0375784338,
-0.2821382284,
-0.1300369501,
0.1027692482,
-0.3269586563,
-0.1235734895,
0.4235095382,
-0.1838996112,
-0.0195561238,
0.3333492875,
0.3441445231,
0.3253097832,
-0.1571516991,
-0.0548512638,
-0.104655169,
0.2615532875,
-0.1564861238,
0.0692080781,
0.2895717323,
-0.0172103923,
-0.3263886571,
0.0572766587,
-0.1901541203,
0.2113087326,
0.2661556005,
-0.1867795885,
-0.2266566753,
-0.2016075104,
-0.0912595242,
-0.1540227234,
0.3836882412,
-0.2439314872,
0.1502386928,
0.1944173127,
-0.4217925072,
-0.2908529043,
-0.1744988412,
-0.2232471108,
-0.0774134994,
0.4684916437,
0.0714963824,
0.1732073724,
0.5340836048,
0.0100889122,
-0.0787325799,
-0.2098317295,
-0.0313007012,
0.5287860632,
-0.7309108377,
0.3699906766,
0.4297935367,
-0.0861090347,
-0.007585526,
0.4857405722,
-0.1285228282,
0.1574684978,
-0.1245705709,
-0.0617443211,
-0.089912571,
0.1094036102,
-0.1111946106,
0.2934347391,
0.4488594532,
-0.1387888938,
0.0177258812,
0.0607162565,
-0.3639404774,
-0.141254738,
-0.205133155,
-0.0414626114,
-0.0188135803,
-0.1550063193,
0.1555331945,
0.0379516669,
0.248108536,
-0.0177025627,
-0.3295954764,
-0.2393367141,
-0.2261946052,
0.1344715953,
-0.0590891503,
-0.0696300045,
0.1854830235,
0.0652915612,
-0.2509457767,
-0.1436001062,
0.5973539948,
-0.0381974913,
0.0617121607,
0.2687296867,
0.1613527387,
0.3694497943,
-0.2853315175,
-0.00315136,
-0.0017675326,
-0.0394817106,
0.0286769439,
0.0991587043,
-0.2863085568,
-0.142201975,
0.1259347796,
0.1933668405,
-0.2932657897,
-0.021752581,
0.5164858699,
-0.3041340709,
-0.1888160259,
0.1525487751,
0.3320966363,
0.0931178033,
0.009076966,
-0.060278561,
-0.1111421511,
0.2361133993,
-0.4211198092,
-0.2864966393,
0.1198418066,
0.0131079312,
0.336748153,
0.2831457853,
0.0528157428,
-0.036561951,
0.0549345352,
-0.040510647,
0.2094897628,
-0.2819781601,
0.2238015532,
0.7196063995,
-0.0342159867,
0.2155272365,
0.3135765493,
0.1860196143,
0.1779782474,
0.3556379974,
-0.0974911079,
0.1766984314,
-0.297226578,
-0.1959243864,
-0.0380768888,
-0.6658616662,
0.2152010649,
0.2066677064,
0.0021643569,
-0.0633053333,
-0.1409518272,
0.2432770282,
-0.2602155209,
-0.0797220543,
-0.2487316728,
0.4084259272,
-0.2606950104,
-0.1966335177,
-0.293929249,
-0.2115264535,
-0.3823315501,
-0.0803694874,
-0.0996270776,
-0.2000602633,
0.1699247807,
-0.0040387544,
-0.0690082386,
-0.1877381057,
0.2101110071,
0.1434671581,
0.0481039211,
-0.0682448,
0.370387435,
0.3376594484,
0.0778268054,
0.0114650968,
0.5842633247,
0.491927892,
0.1889010668,
0.1499478519,
-0.052910123,
-0.0539152287,
-0.2117016613,
-0.2060441077,
0.0676416606,
-0.2576855719,
0.2573748529,
0.2944088876,
0.1593295038,
-0.1884415895,
-0.2261493504,
0.1040390953,
0.2480859011,
-0.2063732594,
0.5950450301,
-0.0613098778,
-0.1866553724,
-0.1887064576,
-0.1532595456,
-0.4571032822,
-0.3058363795,
0.1870406866,
0.1295012534,
0.0791697353,
-0.2626666725,
0.1085935012,
-0.0696562156,
0.2943904996,
0.2400183231,
-0.0118164858,
-0.4260427654,
0.0362069383,
-0.4812344611,
0.0857628137,
0.0862296447,
0.1189709753,
0.1089034602,
0.0602779686,
-0.0495870821,
-0.0704675019,
0.0310855079,
0.1133229584,
0.2190475464,
0.1508105099,
-0.1269536763,
-0.0568636693,
-0.0722192079,
-0.2527864575,
-0.1659357101,
-0.2988428473,
0.1576958746,
-0.0512110777,
0.0397479832,
0.1304897368,
0.0755695105,
0.0226173457,
-0.2187199742,
0.0671489909,
0.1750955731,
-0.1250853091,
-0.0572633706,
-0.2177614272,
-0.1510316133,
0.1998391747,
-0.2858732045,
0.0886728838,
0.2082186639,
0.4128174782,
0.1582143158,
-0.2526278794,
-0.3065581024,
0.2225321084,
0.2507050931,
0.3021031916,
-0.3586416245,
0.4038521051,
-0.2100450099,
-0.0369265042,
0.2311045676,
-0.1419187039,
0.0071739326,
0.1177905053,
-0.5138911009,
-0.4277825356,
0.3971991539,
-0.2544789016,
-0.1380829364,
-0.2534402907,
0.4060929418,
0.4022113681,
-0.3601574004,
-0.4025782049,
0.0936905369,
0.2449050397,
-0.2159924805,
-0.1823357344,
0.2166918814,
-0.0937297791,
0.112117134,
-0.1295922697,
0.3449483812,
0.1551659554,
-0.118826285,
0.11421372,
-0.2579200566
] |
https://github.com/huggingface/datasets/issues/3247 | Loading big json dataset raises pyarrow.lib.ArrowNotImplementedError | Hi,
this issue is similar to https://github.com/huggingface/datasets/issues/3093, so you can either use the solution provided there or try to load the data in one chunk (you can control the chunk size by specifying the `chunksize` parameter (`int`) in `load_dataset`).
@lhoestq Is this worth opening an issue on Jira? Basically, PyArrow doesn't allow casts that change the order of the struct fields because they treat `pa.struct` as an ordered sequence. Reordering fields manually in Python is probably too slow, so I think this needs to be fixed by them to be usable on our side. | ## Describe the bug
When trying to create a dataset from a json file with around 25MB, the following error is raised `pyarrow.lib.ArrowNotImplementedError: Unsupported cast from struct<b: int64, c: int64> to struct using function cast_struct`
Splitting the big file into smaller ones and then loading it with the `load_dataset` method did also not work.
Creating a pandas dataframe from it and then loading it with `Dataset.from_pandas` works
## Steps to reproduce the bug
```python
load_dataset("json", data_files="test.json")
```
test.json ~25MB
```json
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
...
```
working.json ~160bytes
```json
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
```
## Expected results
It should load the dataset from the json file without error.
## Actual results
It raises Exception `pyarrow.lib.ArrowNotImplementedError: Unsupported cast from struct<b: int64, c: int64> to struct using function cast_struct`
```
Traceback (most recent call last):
File "/Users/m/workspace/xxx/project/main.py", line 60, in <module>
dataset = load_dataset("json", data_files="result.json")
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/load.py", line 1627, in load_dataset
builder_instance.download_and_prepare(
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/builder.py", line 697, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/builder.py", line 1159, in _prepare_split
writer.write_table(table)
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/arrow_writer.py", line 428, in write_table
pa_table = pa.Table.from_arrays([pa_table[name] for name in self._schema.names], schema=self._schema)
File "pyarrow/table.pxi", line 1685, in pyarrow.lib.Table.from_arrays
File "pyarrow/table.pxi", line 630, in pyarrow.lib._sanitize_arrays
File "pyarrow/array.pxi", line 338, in pyarrow.lib.asarray
File "pyarrow/table.pxi", line 304, in pyarrow.lib.ChunkedArray.cast
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/pyarrow/compute.py", line 309, in cast
return call_function("cast", [arr], options)
File "pyarrow/_compute.pyx", line 528, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 327, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 120, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Unsupported cast from struct<b: int64, c: int64> to struct using function cast_struct
```
## Environment info
- `datasets` version: 1.14.0
- Platform: macOS-12.0.1-arm64-arm-64bit
- Python version: 3.9.7
- PyArrow version: 6.0.0
| 94 | Loading big json dataset raises pyarrow.lib.ArrowNotImplementedError
## Describe the bug
When trying to create a dataset from a json file with around 25MB, the following error is raised `pyarrow.lib.ArrowNotImplementedError: Unsupported cast from struct<b: int64, c: int64> to struct using function cast_struct`
Splitting the big file into smaller ones and then loading it with the `load_dataset` method did also not work.
Creating a pandas dataframe from it and then loading it with `Dataset.from_pandas` works
## Steps to reproduce the bug
```python
load_dataset("json", data_files="test.json")
```
test.json ~25MB
```json
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
...
```
working.json ~160bytes
```json
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
```
## Expected results
It should load the dataset from the json file without error.
## Actual results
It raises Exception `pyarrow.lib.ArrowNotImplementedError: Unsupported cast from struct<b: int64, c: int64> to struct using function cast_struct`
```
Traceback (most recent call last):
File "/Users/m/workspace/xxx/project/main.py", line 60, in <module>
dataset = load_dataset("json", data_files="result.json")
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/load.py", line 1627, in load_dataset
builder_instance.download_and_prepare(
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/builder.py", line 697, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/builder.py", line 1159, in _prepare_split
writer.write_table(table)
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/arrow_writer.py", line 428, in write_table
pa_table = pa.Table.from_arrays([pa_table[name] for name in self._schema.names], schema=self._schema)
File "pyarrow/table.pxi", line 1685, in pyarrow.lib.Table.from_arrays
File "pyarrow/table.pxi", line 630, in pyarrow.lib._sanitize_arrays
File "pyarrow/array.pxi", line 338, in pyarrow.lib.asarray
File "pyarrow/table.pxi", line 304, in pyarrow.lib.ChunkedArray.cast
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/pyarrow/compute.py", line 309, in cast
return call_function("cast", [arr], options)
File "pyarrow/_compute.pyx", line 528, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 327, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 120, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Unsupported cast from struct<b: int64, c: int64> to struct using function cast_struct
```
## Environment info
- `datasets` version: 1.14.0
- Platform: macOS-12.0.1-arm64-arm-64bit
- Python version: 3.9.7
- PyArrow version: 6.0.0
Hi,
this issue is similar to https://github.com/huggingface/datasets/issues/3093, so you can either use the solution provided there or try to load the data in one chunk (you can control the chunk size by specifying the `chunksize` parameter (`int`) in `load_dataset`).
@lhoestq Is this worth opening an issue on Jira? Basically, PyArrow doesn't allow casts that change the order of the struct fields because they treat `pa.struct` as an ordered sequence. Reordering fields manually in Python is probably too slow, so I think this needs to be fixed by them to be usable on our side. | [
-0.2685220242,
0.2580777109,
0.0205112435,
0.4228529036,
0.4146388471,
-0.0655422807,
0.101144582,
0.4812646806,
-0.1803747267,
0.008806997,
0.0041477215,
0.5188928246,
-0.0924273357,
-0.111740388,
-0.1435553432,
-0.2028794736,
0.0869870931,
0.2631750405,
0.0699901059,
0.1292941719,
-0.2368170917,
0.0460879207,
-0.0061393743,
0.0719873607,
0.0432655588,
-0.0293613356,
0.0836513266,
0.253216207,
-0.3475858271,
-0.3850035965,
0.083001636,
-0.4241949916,
0.1509582549,
0.5695898533,
-0.0001192965,
0.1421800107,
0.5012947321,
0.03936892,
-0.083095856,
-0.1483766437,
-0.0636545867,
-0.4736350477,
0.3391486406,
-0.1288606822,
0.0356663615,
-0.5867007971,
-0.1891466826,
0.1355917901,
0.2464378774,
0.2395009398,
0.1346130669,
0.1101539135,
0.2780793607,
0.1649094373,
0.3936541677,
0.1557919085,
-0.1783212572,
0.305873394,
0.1480370611,
0.2375491709,
-0.3036322892,
-0.2557927072,
-0.0930507109,
0.0695973188,
0.0903158858,
-0.1165800914,
-0.1900128424,
-0.1901443899,
0.0098575661,
0.319016695,
0.4243134856,
-0.3391805589,
-0.3169638813,
-0.18631275,
0.0034614913,
-0.0595803969,
0.10949637,
0.447941035,
-0.1134481058,
-0.0377002656,
-0.1303180456,
0.0987614915,
-0.2722645998,
0.2214359641,
-0.0550524406,
-0.2019574791,
-0.0511678681,
0.1271333098,
0.257728219,
-0.2757378817,
-0.1884003282,
-0.1501567662,
-0.2618080676,
0.0223374851,
-0.1313219815,
0.0113663208,
0.0361465774,
-0.2236246616,
0.3101903796,
0.0913932547,
0.0724494755,
0.0932885408,
0.1582743526,
0.0947149768,
0.3063272238,
0.0885875523,
-0.5824143291,
-0.2200242579,
0.2057944387,
0.0697412938,
-0.1005162075,
0.0394754522,
-0.0648143366,
-0.2751742899,
0.0000688706,
-0.225643754,
0.2499530166,
-0.2675620019,
-0.1892109364,
0.0899533927,
-0.5890735388,
-0.0335571133,
0.0088576153,
0.3720732629,
-0.0945335776,
0.3057661951,
-0.1382991523,
0.3054495156,
-0.1420544982,
-0.0197706092,
-0.1285653859,
0.1015661731,
-0.0892655477,
-0.1492343843,
0.2270133048,
-0.0150334388,
0.0213336386,
0.0332888104,
0.1203245446,
-0.2610334456,
0.0920686871,
-0.2314284295,
-0.0581746809,
0.3493136168,
-0.0013035227,
0.1033119932,
-0.0734438524,
-0.0910250172,
-0.2422918528,
0.4289924502,
-0.2333782464,
-0.2951592803,
-0.2863197029,
0.085525386,
-0.5299460888,
0.2376466393,
-0.4791770875,
0.0042560394,
0.0619006604,
-0.0818743557,
0.0763116106,
-0.2806209028,
0.1774021387,
-0.4298686087,
0.1278262138,
0.1132827252,
-0.4788973927,
0.0926822051,
-0.1563924551,
-0.169928059,
0.1558205038,
0.3822105825,
-0.3199699223,
0.2593444288,
-0.1228201911,
0.3051095009,
0.4267434776,
0.0423608795,
-0.6494883299,
0.4930002689,
-0.1894932836,
0.2284259647,
0.1868216395,
0.0262263678,
-0.0644265115,
0.0438666269,
-0.1537662446,
0.4341380894,
-0.1161025986,
0.280620873,
-0.1995605528,
-0.4987267554,
0.1391731799,
0.2696712911,
0.0380240716,
-0.0301614609,
0.2997681499,
-0.0839594454,
0.2386300862,
-0.3696407676,
0.1763293892,
0.2626355886,
0.2047849894,
-0.4225412011,
0.054629229,
0.033828117,
-0.5099051595,
0.1065415218,
0.0370159671,
0.0688611194,
-0.452009201,
0.1035877541,
-0.0059707626,
0.0643658191,
0.0028594644,
0.3198992312,
-0.0224401299,
0.1289111227,
0.1393745095,
-0.0421879441,
-0.0068835146,
-0.1958379894,
-0.0877290815,
0.1557198912,
-0.1760000437,
0.4071507454,
0.1976325661,
-0.4245959222,
0.0399938859,
0.0539633557,
-0.0806507394,
-0.2285002023,
-0.1663181186,
0.007416652,
0.0412055068,
0.0505227782,
-0.6076710224,
0.0562126972,
-0.0417435355,
-0.2169117033,
0.0704316348,
0.175539732,
0.1755519062,
-0.1702138484,
0.243699491,
0.5796764493,
-0.0815130398,
0.261723578,
0.1455421746,
-0.2649807632,
0.2262676209,
-0.0666745007,
0.1393550485,
-0.0700979978,
0.0926596001,
0.2939118445,
0.1974776834,
0.2254300416,
-0.3671553731,
-0.1319166124,
0.4628181756,
-0.230550915,
0.0238520969,
0.3291140497,
-0.2515146434,
-0.0697556436,
0.0825080574,
-0.0062674517,
0.3583765924,
0.1827452779,
-0.1263876408,
-0.0665089786,
0.2242860794,
-0.088100411,
-0.000928816,
0.2303708494,
0.4838811457,
0.2976939678,
0.4089710414,
-0.0894896016,
-0.2215611786,
-0.2169478387,
0.1238435879,
0.3499281406,
-0.3754756749,
0.130184859,
-0.1577125341,
0.0471369289,
-0.1864224225,
-0.3461135328,
0.0273021497,
-0.1249871776,
-0.192753762,
0.3371632993,
-0.1664113402,
0.0543794632,
-0.3019798994,
-0.1199356541,
-0.0022656301,
-0.5406534672,
-0.0226872787,
-0.0458863787,
-0.1391053647,
0.0380123295,
0.4958114028,
0.0464252979,
-0.168803364,
0.1020649597,
0.1502207816,
0.035819903,
-0.2770984471,
0.1178665161,
-0.136341542,
0.2586500645,
-0.081969358,
-0.0651820824,
-0.1262759417,
-0.324367106,
0.1793095469,
0.063639231,
-0.4108582437,
0.5533517599,
-0.3100534976,
0.088380456,
0.0823093131,
-0.1188382953,
0.002202722,
-0.3583167195,
0.5482566953,
0.2384314388,
0.1114583686,
-0.2210858762,
0.4352263808,
0.2901586592,
0.1765003055,
0.1455475539,
0.1661316752,
0.0287318416,
0.4048547447,
-0.0072119781,
-0.3473062813,
-0.011162363,
-0.2408524156,
-0.0148006445,
0.1576978415,
-0.5960517526,
0.1868940592,
-0.2525781989,
0.3005272746,
-0.1920443475,
-0.2490921468,
0.1181919798,
0.0705573708,
0.0570303202,
0.0594882742,
-0.0551495105,
-0.1332009435,
0.1077123359,
0.0573403314,
-0.107927762,
0.6231410503,
-0.0720256642,
0.4573734999,
0.1389310509,
-0.2987990081,
0.3068773746,
0.0290629975,
0.0592464134,
-0.1996177882,
-0.0690100193,
0.1345568895,
-0.0236682594,
0.0225280747,
0.128873989,
-0.0550871417,
-0.3561263382,
0.1157639846,
-0.3237044513,
-0.1599725485,
-0.1860861927,
0.3704102039,
-0.0584700257,
-0.2679121792,
-0.2486449629,
-0.0165057201,
0.0306789167,
-0.2874138653,
-0.0141679673,
-0.0179689191,
0.0221819952,
-0.0059269248,
-0.1743802875,
-0.1985153258,
-0.1493975669,
0.1610430181,
0.1855039448,
0.267493695,
0.2703180611,
-0.2835988104,
0.1569941342,
-0.4202298522,
0.5183316469,
0.14331159,
0.0024786848,
0.2012726218,
0.0692661777,
-0.5328446627,
0.0698222294,
-0.0523272008,
0.369272083,
0.3501310647,
0.1549123377,
-0.3959111869,
-0.0389381237,
0.1814171672,
0.6997187734,
-0.0566008426,
-0.1836167425,
-0.4048805237,
-0.4905878305,
-0.2914452851,
0.1112674549,
-0.0768707693,
0.3997332454,
-0.028131688,
0.0594494566,
-0.2662244737,
-0.2288062423,
-0.0609284975,
0.1909555942,
0.3065466285,
-0.2724769115,
0.4031528533,
-0.3662187457,
0.0769136399,
0.5814673305,
0.718903482,
0.4540403187,
-0.3751365542,
0.1190130115,
0.1802288592,
0.2369766235,
-0.0026741773,
-0.00903231,
0.0826805755,
0.0064455834,
0.1389137506,
-0.0594005622,
-0.1205461472,
0.2265768945,
-0.2391131073,
-0.3542603254,
0.0418464951,
0.4192454517,
0.1157566085,
0.079084076,
0.1978783309,
0.2051642686,
-0.0760578439,
0.5302882791,
0.0659635365,
0.8859290481,
-0.10565494,
0.0664264634,
0.4594254792,
-0.0463623479,
0.4098956287,
-0.17749466,
0.0730112121,
-0.4897326529,
0.1445762664,
0.1106807366,
-0.3465613425,
0.0567026399,
0.1504383683,
-0.1278711259,
0.011788494,
-0.1555472761,
0.3719790578,
0.0508350022,
0.453006953,
-0.0241831243,
-0.1967389733,
-0.2791593075,
0.0001414267,
-0.1414348632,
-0.2088222057,
0.1387618035,
-0.1782097667,
-0.2122178227,
-0.1424038708,
-0.2396523058,
0.3395575285,
0.0401401147,
0.0962287039,
0.204584077,
-0.4202941358,
0.2657181919,
0.0990221277,
-0.2261357158,
-0.0365215354,
-0.1295830607,
0.1764200181,
0.0660093874,
0.0028073543,
0.2299598455,
-0.1529751867,
0.3401190341,
0.0020445557,
-0.2298494577,
0.1296858937,
-0.0617983676,
-0.1958315223,
0.2371831536,
0.1970630884,
-0.3386358917,
-0.3792069256,
-0.2948134243,
-0.0795139298,
0.0571426339,
-0.1824834645,
0.0818515792,
0.1439379454,
-0.0241891313,
0.2633374333,
0.0604428798,
-0.409945339,
-0.2175552249,
0.3092063069,
0.3331571817,
0.0604122803,
0.5279704928,
0.378379941,
-0.1301309168,
-0.1571398228,
0.0673434362,
0.3799340427,
-0.6480804086,
0.1621014923,
-0.1102435291,
0.1306240708,
0.0918773934,
0.1348342597,
-0.006859303,
0.1170401052,
-0.0211775731,
-0.3381136656,
-0.4775927663,
0.4723866284,
0.2119935453,
-0.0298608206,
-0.0213628206,
0.1150216386,
-0.0950757042,
0.0574431829,
-0.1649051011,
0.2853135169,
-0.0612534769,
0.0478852242,
-0.2172210217,
0.1037812531,
0.1870516986,
0.0249172058,
0.0637704208,
0.174686715,
-0.0298228431,
-0.1164669022,
-0.1402027905,
0.1493340731,
0.2494973987,
-0.1668880731,
-0.0661544949,
-0.2624721825,
0.0654230937,
-0.1428449005,
0.190879181,
-0.015715396,
-0.1521165967,
-0.1686822176,
0.250723511,
-0.2690745294,
-0.1662301123,
0.1969949603,
-0.3167072833,
0.5652083158,
0.1015155762,
0.3407484591,
0.2415449619,
0.137323752,
-0.1996002346,
0.1334419399,
0.1156498268,
0.0749980584,
0.2470451295,
-0.3672657609,
-0.135040015,
-0.364779979,
0.3119335771,
0.4778415263,
-0.1815411001,
-0.0502193309,
0.2567848265,
0.0977465808,
-0.1289899349,
-0.2381282449,
0.2585065961,
-0.1929341704,
-0.0747639462,
0.3284265399,
-0.0631036237,
-0.2182822227,
-0.1890335083,
0.0553402156,
0.3352066576,
0.3988947272,
-0.1944918483,
0.4730493128,
-0.1820680052,
-0.1891537905,
0.364446938,
0.1368463486,
0.4947358668,
0.1811102778,
-0.1695108265,
0.1317642629,
-0.0523599498,
-0.0265124068,
-0.1668846607,
-0.4091277719,
0.1779728532,
0.3772818148,
0.1270656139,
-0.090509586,
0.199899435,
0.4426051974,
0.434261173,
0.0329542346,
-0.2512908876,
0.1257109493,
-0.1543751359,
-0.1213839725,
-0.2652425468,
-0.2745140493,
-0.0158565678,
0.3273976147,
-0.2525946796,
-0.1353753805,
0.2296530902,
0.2060013562,
-0.0991841182,
-0.2617723644,
0.3764150143,
0.1190797761,
-0.0995668918,
-0.2930069268,
0.2562091053,
0.2898381054,
-0.1506805569,
0.0672231913,
-0.1332330257,
0.4848890007,
0.2877313495,
-0.2140849978,
-0.1609228402,
0.0348173752,
-0.1770016551,
-0.1040722877,
0.3921209276,
0.1869120002,
0.2005164921,
0.264857471,
0.0892287865,
-0.1917438656,
-0.0394550711,
0.2314441055,
0.0949561,
-0.1141230315,
0.2561665177,
-0.1302597076,
-0.3716925979,
-0.1244448721,
-0.1621437818,
-0.1113911718,
-0.1598913819,
0.2288479358,
-0.1852499992,
-0.0656456053,
-0.0996435657,
0.0280486792,
-0.1641991138,
0.4934845567,
0.1920721084,
0.2258993387,
-0.1874026656,
0.0141193531,
-0.3436738253,
0.3701604903,
-0.517221272,
0.0496601276,
-0.0021891473,
0.3380774558,
-0.0170162078,
0.1800931394,
-0.0221953411,
0.5129303932,
-0.0026821857,
0.1750781536,
-0.2437994331,
-0.2422272265,
0.2177300155,
0.069003053,
-0.2157935649,
-0.3911520243,
0.1924408525,
-0.2204640359,
0.0752121583,
-0.1729612797,
-0.2985742986,
-0.0754244328,
-0.0451403223,
0.6414812207,
0.0583867282,
0.3539222181,
-0.0217734929,
-0.2547588348,
-0.097429879,
-0.2943766713,
-0.103497915,
0.3660995066,
-0.1306568682,
0.4478862584,
-0.0087360777,
0.3997733593,
-0.2625897229,
-0.2758161426,
-0.4083907306,
0.1774117053,
-0.0681760609,
0.3243943155,
-0.3698831201,
0.2990090847,
-0.168570444,
0.0592801645,
0.1004168019,
0.2200831175,
-0.3211766779,
-0.2933603525,
0.3125699461,
-0.5614191294,
-0.2352317125,
0.2763909101,
0.0467400514,
-0.0783314854,
-0.2908193767,
-0.3214634061,
0.2452921718,
0.2959290445,
0.2006674111,
-0.2109577805,
-0.0222065113,
-0.2514028251,
-0.067949973,
-0.1359181255,
0.2792750001,
0.0290594902,
-0.3098992705,
-0.1873945445,
-0.1476472616
] |
https://github.com/huggingface/datasets/issues/3247 | Loading big json dataset raises pyarrow.lib.ArrowNotImplementedError | I agree I would expect PyArrow to be able to handle this, do you want to open the issue @mariosasko ?
Although maybe it's possible to fix struct casting on our side without hurting performance too much, if it's simply a matter of reordering the arrays in the StructArray | ## Describe the bug
When trying to create a dataset from a json file with around 25MB, the following error is raised `pyarrow.lib.ArrowNotImplementedError: Unsupported cast from struct<b: int64, c: int64> to struct using function cast_struct`
Splitting the big file into smaller ones and then loading it with the `load_dataset` method did also not work.
Creating a pandas dataframe from it and then loading it with `Dataset.from_pandas` works
## Steps to reproduce the bug
```python
load_dataset("json", data_files="test.json")
```
test.json ~25MB
```json
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
...
```
working.json ~160bytes
```json
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
```
## Expected results
It should load the dataset from the json file without error.
## Actual results
It raises Exception `pyarrow.lib.ArrowNotImplementedError: Unsupported cast from struct<b: int64, c: int64> to struct using function cast_struct`
```
Traceback (most recent call last):
File "/Users/m/workspace/xxx/project/main.py", line 60, in <module>
dataset = load_dataset("json", data_files="result.json")
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/load.py", line 1627, in load_dataset
builder_instance.download_and_prepare(
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/builder.py", line 697, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/builder.py", line 1159, in _prepare_split
writer.write_table(table)
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/arrow_writer.py", line 428, in write_table
pa_table = pa.Table.from_arrays([pa_table[name] for name in self._schema.names], schema=self._schema)
File "pyarrow/table.pxi", line 1685, in pyarrow.lib.Table.from_arrays
File "pyarrow/table.pxi", line 630, in pyarrow.lib._sanitize_arrays
File "pyarrow/array.pxi", line 338, in pyarrow.lib.asarray
File "pyarrow/table.pxi", line 304, in pyarrow.lib.ChunkedArray.cast
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/pyarrow/compute.py", line 309, in cast
return call_function("cast", [arr], options)
File "pyarrow/_compute.pyx", line 528, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 327, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 120, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Unsupported cast from struct<b: int64, c: int64> to struct using function cast_struct
```
## Environment info
- `datasets` version: 1.14.0
- Platform: macOS-12.0.1-arm64-arm-64bit
- Python version: 3.9.7
- PyArrow version: 6.0.0
| 49 | Loading big json dataset raises pyarrow.lib.ArrowNotImplementedError
## Describe the bug
When trying to create a dataset from a json file with around 25MB, the following error is raised `pyarrow.lib.ArrowNotImplementedError: Unsupported cast from struct<b: int64, c: int64> to struct using function cast_struct`
Splitting the big file into smaller ones and then loading it with the `load_dataset` method did also not work.
Creating a pandas dataframe from it and then loading it with `Dataset.from_pandas` works
## Steps to reproduce the bug
```python
load_dataset("json", data_files="test.json")
```
test.json ~25MB
```json
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
...
```
working.json ~160bytes
```json
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
{"a": {"c": 8, "b": 5}}
```
## Expected results
It should load the dataset from the json file without error.
## Actual results
It raises Exception `pyarrow.lib.ArrowNotImplementedError: Unsupported cast from struct<b: int64, c: int64> to struct using function cast_struct`
```
Traceback (most recent call last):
File "/Users/m/workspace/xxx/project/main.py", line 60, in <module>
dataset = load_dataset("json", data_files="result.json")
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/load.py", line 1627, in load_dataset
builder_instance.download_and_prepare(
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/builder.py", line 697, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/builder.py", line 1159, in _prepare_split
writer.write_table(table)
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/datasets/arrow_writer.py", line 428, in write_table
pa_table = pa.Table.from_arrays([pa_table[name] for name in self._schema.names], schema=self._schema)
File "pyarrow/table.pxi", line 1685, in pyarrow.lib.Table.from_arrays
File "pyarrow/table.pxi", line 630, in pyarrow.lib._sanitize_arrays
File "pyarrow/array.pxi", line 338, in pyarrow.lib.asarray
File "pyarrow/table.pxi", line 304, in pyarrow.lib.ChunkedArray.cast
File "/opt/homebrew/Caskroom/miniforge/base/envs/xxx/lib/python3.9/site-packages/pyarrow/compute.py", line 309, in cast
return call_function("cast", [arr], options)
File "pyarrow/_compute.pyx", line 528, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 327, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 120, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Unsupported cast from struct<b: int64, c: int64> to struct using function cast_struct
```
## Environment info
- `datasets` version: 1.14.0
- Platform: macOS-12.0.1-arm64-arm-64bit
- Python version: 3.9.7
- PyArrow version: 6.0.0
I agree I would expect PyArrow to be able to handle this, do you want to open the issue @mariosasko ?
Although maybe it's possible to fix struct casting on our side without hurting performance too much, if it's simply a matter of reordering the arrays in the StructArray | [
-0.2685220242,
0.2580777109,
0.0205112435,
0.4228529036,
0.4146388471,
-0.0655422807,
0.101144582,
0.4812646806,
-0.1803747267,
0.008806997,
0.0041477215,
0.5188928246,
-0.0924273357,
-0.111740388,
-0.1435553432,
-0.2028794736,
0.0869870931,
0.2631750405,
0.0699901059,
0.1292941719,
-0.2368170917,
0.0460879207,
-0.0061393743,
0.0719873607,
0.0432655588,
-0.0293613356,
0.0836513266,
0.253216207,
-0.3475858271,
-0.3850035965,
0.083001636,
-0.4241949916,
0.1509582549,
0.5695898533,
-0.0001192965,
0.1421800107,
0.5012947321,
0.03936892,
-0.083095856,
-0.1483766437,
-0.0636545867,
-0.4736350477,
0.3391486406,
-0.1288606822,
0.0356663615,
-0.5867007971,
-0.1891466826,
0.1355917901,
0.2464378774,
0.2395009398,
0.1346130669,
0.1101539135,
0.2780793607,
0.1649094373,
0.3936541677,
0.1557919085,
-0.1783212572,
0.305873394,
0.1480370611,
0.2375491709,
-0.3036322892,
-0.2557927072,
-0.0930507109,
0.0695973188,
0.0903158858,
-0.1165800914,
-0.1900128424,
-0.1901443899,
0.0098575661,
0.319016695,
0.4243134856,
-0.3391805589,
-0.3169638813,
-0.18631275,
0.0034614913,
-0.0595803969,
0.10949637,
0.447941035,
-0.1134481058,
-0.0377002656,
-0.1303180456,
0.0987614915,
-0.2722645998,
0.2214359641,
-0.0550524406,
-0.2019574791,
-0.0511678681,
0.1271333098,
0.257728219,
-0.2757378817,
-0.1884003282,
-0.1501567662,
-0.2618080676,
0.0223374851,
-0.1313219815,
0.0113663208,
0.0361465774,
-0.2236246616,
0.3101903796,
0.0913932547,
0.0724494755,
0.0932885408,
0.1582743526,
0.0947149768,
0.3063272238,
0.0885875523,
-0.5824143291,
-0.2200242579,
0.2057944387,
0.0697412938,
-0.1005162075,
0.0394754522,
-0.0648143366,
-0.2751742899,
0.0000688706,
-0.225643754,
0.2499530166,
-0.2675620019,
-0.1892109364,
0.0899533927,
-0.5890735388,
-0.0335571133,
0.0088576153,
0.3720732629,
-0.0945335776,
0.3057661951,
-0.1382991523,
0.3054495156,
-0.1420544982,
-0.0197706092,
-0.1285653859,
0.1015661731,
-0.0892655477,
-0.1492343843,
0.2270133048,
-0.0150334388,
0.0213336386,
0.0332888104,
0.1203245446,
-0.2610334456,
0.0920686871,
-0.2314284295,
-0.0581746809,
0.3493136168,
-0.0013035227,
0.1033119932,
-0.0734438524,
-0.0910250172,
-0.2422918528,
0.4289924502,
-0.2333782464,
-0.2951592803,
-0.2863197029,
0.085525386,
-0.5299460888,
0.2376466393,
-0.4791770875,
0.0042560394,
0.0619006604,
-0.0818743557,
0.0763116106,
-0.2806209028,
0.1774021387,
-0.4298686087,
0.1278262138,
0.1132827252,
-0.4788973927,
0.0926822051,
-0.1563924551,
-0.169928059,
0.1558205038,
0.3822105825,
-0.3199699223,
0.2593444288,
-0.1228201911,
0.3051095009,
0.4267434776,
0.0423608795,
-0.6494883299,
0.4930002689,
-0.1894932836,
0.2284259647,
0.1868216395,
0.0262263678,
-0.0644265115,
0.0438666269,
-0.1537662446,
0.4341380894,
-0.1161025986,
0.280620873,
-0.1995605528,
-0.4987267554,
0.1391731799,
0.2696712911,
0.0380240716,
-0.0301614609,
0.2997681499,
-0.0839594454,
0.2386300862,
-0.3696407676,
0.1763293892,
0.2626355886,
0.2047849894,
-0.4225412011,
0.054629229,
0.033828117,
-0.5099051595,
0.1065415218,
0.0370159671,
0.0688611194,
-0.452009201,
0.1035877541,
-0.0059707626,
0.0643658191,
0.0028594644,
0.3198992312,
-0.0224401299,
0.1289111227,
0.1393745095,
-0.0421879441,
-0.0068835146,
-0.1958379894,
-0.0877290815,
0.1557198912,
-0.1760000437,
0.4071507454,
0.1976325661,
-0.4245959222,
0.0399938859,
0.0539633557,
-0.0806507394,
-0.2285002023,
-0.1663181186,
0.007416652,
0.0412055068,
0.0505227782,
-0.6076710224,
0.0562126972,
-0.0417435355,
-0.2169117033,
0.0704316348,
0.175539732,
0.1755519062,
-0.1702138484,
0.243699491,
0.5796764493,
-0.0815130398,
0.261723578,
0.1455421746,
-0.2649807632,
0.2262676209,
-0.0666745007,
0.1393550485,
-0.0700979978,
0.0926596001,
0.2939118445,
0.1974776834,
0.2254300416,
-0.3671553731,
-0.1319166124,
0.4628181756,
-0.230550915,
0.0238520969,
0.3291140497,
-0.2515146434,
-0.0697556436,
0.0825080574,
-0.0062674517,
0.3583765924,
0.1827452779,
-0.1263876408,
-0.0665089786,
0.2242860794,
-0.088100411,
-0.000928816,
0.2303708494,
0.4838811457,
0.2976939678,
0.4089710414,
-0.0894896016,
-0.2215611786,
-0.2169478387,
0.1238435879,
0.3499281406,
-0.3754756749,
0.130184859,
-0.1577125341,
0.0471369289,
-0.1864224225,
-0.3461135328,
0.0273021497,
-0.1249871776,
-0.192753762,
0.3371632993,
-0.1664113402,
0.0543794632,
-0.3019798994,
-0.1199356541,
-0.0022656301,
-0.5406534672,
-0.0226872787,
-0.0458863787,
-0.1391053647,
0.0380123295,
0.4958114028,
0.0464252979,
-0.168803364,
0.1020649597,
0.1502207816,
0.035819903,
-0.2770984471,
0.1178665161,
-0.136341542,
0.2586500645,
-0.081969358,
-0.0651820824,
-0.1262759417,
-0.324367106,
0.1793095469,
0.063639231,
-0.4108582437,
0.5533517599,
-0.3100534976,
0.088380456,
0.0823093131,
-0.1188382953,
0.002202722,
-0.3583167195,
0.5482566953,
0.2384314388,
0.1114583686,
-0.2210858762,
0.4352263808,
0.2901586592,
0.1765003055,
0.1455475539,
0.1661316752,
0.0287318416,
0.4048547447,
-0.0072119781,
-0.3473062813,
-0.011162363,
-0.2408524156,
-0.0148006445,
0.1576978415,
-0.5960517526,
0.1868940592,
-0.2525781989,
0.3005272746,
-0.1920443475,
-0.2490921468,
0.1181919798,
0.0705573708,
0.0570303202,
0.0594882742,
-0.0551495105,
-0.1332009435,
0.1077123359,
0.0573403314,
-0.107927762,
0.6231410503,
-0.0720256642,
0.4573734999,
0.1389310509,
-0.2987990081,
0.3068773746,
0.0290629975,
0.0592464134,
-0.1996177882,
-0.0690100193,
0.1345568895,
-0.0236682594,
0.0225280747,
0.128873989,
-0.0550871417,
-0.3561263382,
0.1157639846,
-0.3237044513,
-0.1599725485,
-0.1860861927,
0.3704102039,
-0.0584700257,
-0.2679121792,
-0.2486449629,
-0.0165057201,
0.0306789167,
-0.2874138653,
-0.0141679673,
-0.0179689191,
0.0221819952,
-0.0059269248,
-0.1743802875,
-0.1985153258,
-0.1493975669,
0.1610430181,
0.1855039448,
0.267493695,
0.2703180611,
-0.2835988104,
0.1569941342,
-0.4202298522,
0.5183316469,
0.14331159,
0.0024786848,
0.2012726218,
0.0692661777,
-0.5328446627,
0.0698222294,
-0.0523272008,
0.369272083,
0.3501310647,
0.1549123377,
-0.3959111869,
-0.0389381237,
0.1814171672,
0.6997187734,
-0.0566008426,
-0.1836167425,
-0.4048805237,
-0.4905878305,
-0.2914452851,
0.1112674549,
-0.0768707693,
0.3997332454,
-0.028131688,
0.0594494566,
-0.2662244737,
-0.2288062423,
-0.0609284975,
0.1909555942,
0.3065466285,
-0.2724769115,
0.4031528533,
-0.3662187457,
0.0769136399,
0.5814673305,
0.718903482,
0.4540403187,
-0.3751365542,
0.1190130115,
0.1802288592,
0.2369766235,
-0.0026741773,
-0.00903231,
0.0826805755,
0.0064455834,
0.1389137506,
-0.0594005622,
-0.1205461472,
0.2265768945,
-0.2391131073,
-0.3542603254,
0.0418464951,
0.4192454517,
0.1157566085,
0.079084076,
0.1978783309,
0.2051642686,
-0.0760578439,
0.5302882791,
0.0659635365,
0.8859290481,
-0.10565494,
0.0664264634,
0.4594254792,
-0.0463623479,
0.4098956287,
-0.17749466,
0.0730112121,
-0.4897326529,
0.1445762664,
0.1106807366,
-0.3465613425,
0.0567026399,
0.1504383683,
-0.1278711259,
0.011788494,
-0.1555472761,
0.3719790578,
0.0508350022,
0.453006953,
-0.0241831243,
-0.1967389733,
-0.2791593075,
0.0001414267,
-0.1414348632,
-0.2088222057,
0.1387618035,
-0.1782097667,
-0.2122178227,
-0.1424038708,
-0.2396523058,
0.3395575285,
0.0401401147,
0.0962287039,
0.204584077,
-0.4202941358,
0.2657181919,
0.0990221277,
-0.2261357158,
-0.0365215354,
-0.1295830607,
0.1764200181,
0.0660093874,
0.0028073543,
0.2299598455,
-0.1529751867,
0.3401190341,
0.0020445557,
-0.2298494577,
0.1296858937,
-0.0617983676,
-0.1958315223,
0.2371831536,
0.1970630884,
-0.3386358917,
-0.3792069256,
-0.2948134243,
-0.0795139298,
0.0571426339,
-0.1824834645,
0.0818515792,
0.1439379454,
-0.0241891313,
0.2633374333,
0.0604428798,
-0.409945339,
-0.2175552249,
0.3092063069,
0.3331571817,
0.0604122803,
0.5279704928,
0.378379941,
-0.1301309168,
-0.1571398228,
0.0673434362,
0.3799340427,
-0.6480804086,
0.1621014923,
-0.1102435291,
0.1306240708,
0.0918773934,
0.1348342597,
-0.006859303,
0.1170401052,
-0.0211775731,
-0.3381136656,
-0.4775927663,
0.4723866284,
0.2119935453,
-0.0298608206,
-0.0213628206,
0.1150216386,
-0.0950757042,
0.0574431829,
-0.1649051011,
0.2853135169,
-0.0612534769,
0.0478852242,
-0.2172210217,
0.1037812531,
0.1870516986,
0.0249172058,
0.0637704208,
0.174686715,
-0.0298228431,
-0.1164669022,
-0.1402027905,
0.1493340731,
0.2494973987,
-0.1668880731,
-0.0661544949,
-0.2624721825,
0.0654230937,
-0.1428449005,
0.190879181,
-0.015715396,
-0.1521165967,
-0.1686822176,
0.250723511,
-0.2690745294,
-0.1662301123,
0.1969949603,
-0.3167072833,
0.5652083158,
0.1015155762,
0.3407484591,
0.2415449619,
0.137323752,
-0.1996002346,
0.1334419399,
0.1156498268,
0.0749980584,
0.2470451295,
-0.3672657609,
-0.135040015,
-0.364779979,
0.3119335771,
0.4778415263,
-0.1815411001,
-0.0502193309,
0.2567848265,
0.0977465808,
-0.1289899349,
-0.2381282449,
0.2585065961,
-0.1929341704,
-0.0747639462,
0.3284265399,
-0.0631036237,
-0.2182822227,
-0.1890335083,
0.0553402156,
0.3352066576,
0.3988947272,
-0.1944918483,
0.4730493128,
-0.1820680052,
-0.1891537905,
0.364446938,
0.1368463486,
0.4947358668,
0.1811102778,
-0.1695108265,
0.1317642629,
-0.0523599498,
-0.0265124068,
-0.1668846607,
-0.4091277719,
0.1779728532,
0.3772818148,
0.1270656139,
-0.090509586,
0.199899435,
0.4426051974,
0.434261173,
0.0329542346,
-0.2512908876,
0.1257109493,
-0.1543751359,
-0.1213839725,
-0.2652425468,
-0.2745140493,
-0.0158565678,
0.3273976147,
-0.2525946796,
-0.1353753805,
0.2296530902,
0.2060013562,
-0.0991841182,
-0.2617723644,
0.3764150143,
0.1190797761,
-0.0995668918,
-0.2930069268,
0.2562091053,
0.2898381054,
-0.1506805569,
0.0672231913,
-0.1332330257,
0.4848890007,
0.2877313495,
-0.2140849978,
-0.1609228402,
0.0348173752,
-0.1770016551,
-0.1040722877,
0.3921209276,
0.1869120002,
0.2005164921,
0.264857471,
0.0892287865,
-0.1917438656,
-0.0394550711,
0.2314441055,
0.0949561,
-0.1141230315,
0.2561665177,
-0.1302597076,
-0.3716925979,
-0.1244448721,
-0.1621437818,
-0.1113911718,
-0.1598913819,
0.2288479358,
-0.1852499992,
-0.0656456053,
-0.0996435657,
0.0280486792,
-0.1641991138,
0.4934845567,
0.1920721084,
0.2258993387,
-0.1874026656,
0.0141193531,
-0.3436738253,
0.3701604903,
-0.517221272,
0.0496601276,
-0.0021891473,
0.3380774558,
-0.0170162078,
0.1800931394,
-0.0221953411,
0.5129303932,
-0.0026821857,
0.1750781536,
-0.2437994331,
-0.2422272265,
0.2177300155,
0.069003053,
-0.2157935649,
-0.3911520243,
0.1924408525,
-0.2204640359,
0.0752121583,
-0.1729612797,
-0.2985742986,
-0.0754244328,
-0.0451403223,
0.6414812207,
0.0583867282,
0.3539222181,
-0.0217734929,
-0.2547588348,
-0.097429879,
-0.2943766713,
-0.103497915,
0.3660995066,
-0.1306568682,
0.4478862584,
-0.0087360777,
0.3997733593,
-0.2625897229,
-0.2758161426,
-0.4083907306,
0.1774117053,
-0.0681760609,
0.3243943155,
-0.3698831201,
0.2990090847,
-0.168570444,
0.0592801645,
0.1004168019,
0.2200831175,
-0.3211766779,
-0.2933603525,
0.3125699461,
-0.5614191294,
-0.2352317125,
0.2763909101,
0.0467400514,
-0.0783314854,
-0.2908193767,
-0.3214634061,
0.2452921718,
0.2959290445,
0.2006674111,
-0.2109577805,
-0.0222065113,
-0.2514028251,
-0.067949973,
-0.1359181255,
0.2792750001,
0.0290594902,
-0.3098992705,
-0.1873945445,
-0.1476472616
] |
https://github.com/huggingface/datasets/issues/3242 | Adding ANERcorp-CAMeLLab dataset | Adding ANERcorp dataset
## Adding a Dataset
- **Name:** *ANERcorp-CAMeLLab*
- **Description:** *Since its creation in 2008, the ANERcorp dataset (Benajiba & Rosso, 2008) has been a standard reference used by Arabic named entity recognition researchers around the world. However, over time, this dataset was copied over from user to user, modified slightly here and there, and split in many different configurations that made it hard to compare fairly across papers and systems.
In 2020, a group of researchers from CAMeL Lab (Habash, Alhafni and Oudah), and Mind Lab (Antoun and Baly) met with the creator of the corpus, Yassine Benajiba, to consult with him and collectively agree on an exact split, and accepted minor corrections from the original dataset. Bashar Alhafni from CAMeL Lab working with Nizar Habash implemented the decisions provided in this release.*
- **Paper:** *(a) Benajiba, Yassine, Paolo Rosso, and José Miguel Benedí Ruiz. "Anersys: An Arabic named entity recognition system based on maximum entropy." In International Conference on Intelligent Text Processing and Computational Linguistics, pp. 143-153. Springer, Berlin, Heidelberg, 2007.
(b)Ossama Obeid, Nasser Zalmout, Salam Khalifa, Dima Taji, Mai Oudah, Bashar Alhafni, Go Inoue, Fadhl Eryani, Alexander Erdmann, and Nizar Habash. "CAMeL Tools: An Open Source Python Toolkit, for Arabic Natural Language Processing." In Proceedings of the Conference on Language Resources and Evaluation (LREC 2020), Marseille, 2020.*
- **Data:** *https://camel.abudhabi.nyu.edu/anercorp/*
- **Motivation:** This is the standard dataset for evaluating NER performance in Arabic*
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). | null | 248 | Adding ANERcorp-CAMeLLab dataset
Adding ANERcorp dataset
## Adding a Dataset
- **Name:** *ANERcorp-CAMeLLab*
- **Description:** *Since its creation in 2008, the ANERcorp dataset (Benajiba & Rosso, 2008) has been a standard reference used by Arabic named entity recognition researchers around the world. However, over time, this dataset was copied over from user to user, modified slightly here and there, and split in many different configurations that made it hard to compare fairly across papers and systems.
In 2020, a group of researchers from CAMeL Lab (Habash, Alhafni and Oudah), and Mind Lab (Antoun and Baly) met with the creator of the corpus, Yassine Benajiba, to consult with him and collectively agree on an exact split, and accepted minor corrections from the original dataset. Bashar Alhafni from CAMeL Lab working with Nizar Habash implemented the decisions provided in this release.*
- **Paper:** *(a) Benajiba, Yassine, Paolo Rosso, and José Miguel Benedí Ruiz. "Anersys: An Arabic named entity recognition system based on maximum entropy." In International Conference on Intelligent Text Processing and Computational Linguistics, pp. 143-153. Springer, Berlin, Heidelberg, 2007.
(b)Ossama Obeid, Nasser Zalmout, Salam Khalifa, Dima Taji, Mai Oudah, Bashar Alhafni, Go Inoue, Fadhl Eryani, Alexander Erdmann, and Nizar Habash. "CAMeL Tools: An Open Source Python Toolkit, for Arabic Natural Language Processing." In Proceedings of the Conference on Language Resources and Evaluation (LREC 2020), Marseille, 2020.*
- **Data:** *https://camel.abudhabi.nyu.edu/anercorp/*
- **Motivation:** This is the standard dataset for evaluating NER performance in Arabic*
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). | [
-0.0976279825,
0.1674585193,
-0.1779311895,
0.1465998292,
-0.0990947783,
-0.1637660116,
0.4309604764,
0.2683173716,
-0.0686768144,
0.3724307716,
-0.088210769,
0.0207344554,
0.0654739216,
0.1001140699,
0.2216454148,
-0.0687983781,
-0.1000754461,
0.0082845418,
0.0419872515,
0.0001584137,
-0.2678492367,
0.2653853893,
-0.0236590132,
-0.0749981329,
0.0624550059,
-0.0126938857,
-0.2231778502,
-0.1198330224,
-0.2227870077,
-0.4789863825,
-0.0627924651,
0.1212656945,
-0.1595308483,
0.2284664363,
-0.0001049042,
-0.1994736642,
0.1432325542,
-0.0934719816,
-0.303669095,
0.0001621397,
-0.0367063954,
-0.1532600969,
-0.2307307571,
-0.3867255747,
-0.0898526087,
-0.0052688927,
0.1249821857,
-0.2969780266,
-0.0249048658,
0.0595781319,
0.2670216858,
0.1272585988,
-0.3235075176,
-0.0433494151,
0.0100867758,
0.1086148247,
-0.2748125196,
-0.0491226465,
0.2196794301,
-0.0674641058,
-0.4643099606,
0.4479690194,
0.1395808905,
-0.1923906803,
0.0124750603,
-0.0259192158,
0.0071549187,
-0.1162737235,
0.2281917632,
0.2606317401,
-0.0755363405,
-0.0529211052,
-0.3416568339,
-0.3012510538,
0.0547295026,
-0.2387985885,
0.2048273981,
0.1518151611,
-0.2944498062,
-0.0467649773,
0.1438520253,
-0.0168813262,
-0.1706267148,
-0.0968680978,
-0.3452071548,
0.3605066538,
-0.0865819678,
-0.2790105045,
0.2153294533,
0.0955239385,
0.113943547,
-0.0777254328,
0.1249397695,
-0.0951388329,
-0.3567623794,
-0.2273814231,
0.2601514459,
0.2631205916,
0.1209769771,
-0.1845968366,
0.4204476774,
0.0524935685,
0.1064070389,
0.0774015188,
-0.3696487844,
0.0478702448,
0.3428933918,
0.1379207969,
0.046135243,
0.2771974206,
-0.0228934847,
-0.004455159,
-0.0365191251,
0.1693077683,
-0.3257730305,
0.0145622697,
-0.3511860371,
-0.2361662984,
-0.2678166032,
0.075492397,
0.025897352,
-0.2028500736,
-0.0240501482,
0.1850661486,
-0.1277836263,
-0.086832799,
-0.1135344282,
0.0055879434,
-0.139882043,
-0.3941363096,
-0.1179822981,
-0.0121033834,
-0.2483039051,
0.1849398315,
0.1914006174,
-0.0805832967,
0.1767269522,
-0.5476821661,
-0.2261192352,
0.6404739618,
0.3201489151,
-0.2984440029,
0.3417792022,
0.0963358879,
0.0755676106,
-0.0845478326,
-0.1514684856,
-0.1906540841,
-0.2238039821,
-0.0051357085,
0.4221968055,
-0.0068819299,
-0.3416926563,
0.2981852591,
-0.1343666464,
-0.1292020082,
0.3445661962,
0.4368110001,
0.1201806217,
-0.2646364272,
-0.0238987152,
0.0028838178,
-0.2217408717,
-0.1298326552,
-0.0037772586,
0.3164221048,
-0.3980141878,
-0.3364029229,
-0.4096203148,
0.287894398,
0.1547151059,
0.2888863087,
-0.1697720885,
0.1529497057,
0.0491139628,
0.1785859317,
0.0379864424,
-0.1088688821,
-0.3988649249,
-0.019916907,
0.0998292193,
-0.1171990857,
0.4359006286,
0.3168934584,
0.5457475781,
-0.1081464142,
0.1501512975,
0.5490452051,
0.0071079358,
-0.3000720143,
-0.3481165171,
-0.1577001363,
-0.0430381931,
0.2822057307,
0.050851848,
-0.1853328049,
-0.0415366553,
-0.1131348759,
-0.0159372967,
-0.3084689975,
0.1971656978,
0.162733227,
0.1299550086,
-0.0137930997,
0.0557027236,
-0.1378604919,
0.0384730846,
0.0646361783,
-0.5372586846,
0.7299746871,
-0.1022919938,
-0.1366158575,
-0.0743452534,
0.0261306744,
-0.0697265491,
-0.2483535707,
0.2973713875,
0.3144086897,
-0.044507511,
0.114622131,
0.0969272256,
0.4041048586,
0.052837126,
-0.0108139263,
-0.5280016661,
0.385588944,
-0.2318802625,
0.0467428714,
0.1664198786,
0.2414038181,
-0.08353661,
0.2664871514,
0.1072341725,
-0.0027078479,
-0.3382237852,
-0.0059246151,
0.2816677988,
0.3759815991,
-0.1042935401,
0.0644794255,
0.4027901292,
0.0212285407,
0.1137312502,
-0.0545980483,
-0.00789617,
0.4382483959,
0.4990038872,
0.1266453564,
0.1669052839,
-0.0684898794,
0.2221102118,
-0.1886841506,
-0.2235541493,
-0.2150425315,
0.4137438238,
-0.0048503103,
0.0999457911,
0.2073540092,
-0.2369032502,
0.0546939671,
0.6478632092,
-0.0095642209,
0.0787458941,
0.2296971679,
-0.3768914938,
-0.1585795134,
0.0040305746,
0.4363908172,
0.1648689061,
0.3567073345,
0.1472154707,
-0.2150115818,
0.0082126185,
-0.1890611649,
0.416634053,
0.0976183489,
-0.0895351171,
0.08204218,
0.1970959753,
0.132966876,
-0.4703812897,
-0.589887917,
-0.2100895345,
0.0365703367,
-0.1636341214,
0.252012074,
0.1567340195,
-0.4071072638,
-0.1743997335,
-0.1025240198,
-0.3578244746,
-0.6010372043,
0.2924375832,
0.0821069255,
0.0151119893,
0.1649954617,
-0.2465626448,
0.4078139365,
0.041611135,
0.0211603511,
-0.16794236,
-0.1695972979,
-0.1596146971,
0.2933754325,
0.2069310099,
-0.034029264,
0.3995898664,
-0.2816720009,
0.2335658222,
-0.1597838849,
-0.5361049175,
0.1841079891,
-0.2278119624,
0.1953534931,
0.2126330733,
-0.0743938759,
-0.1819961518,
-0.3371045291,
0.0943444967,
-0.1113148183,
-0.0974302813,
0.0042194827,
-0.1822158247,
-0.0391002782,
-0.1255714297,
-0.1940263063,
-0.0359157808,
-0.2674896717,
-0.0110380007,
0.0895931795,
0.2055884749,
0.2853729427,
-0.3664382398,
0.0962891504,
-0.0611514598,
-0.0313239172,
-0.1140331626,
-0.3368069828,
0.5879761577,
-0.2235919237,
-0.2423631847,
-0.3201277256,
-0.2818026841,
0.5380958319,
-0.2402374595,
-0.2410571873,
0.2149950862,
-0.1681912392,
-0.1471759975,
0.1636643261,
0.1633934081,
0.2053544074,
0.1416832954,
-0.2286461294,
-0.0062998584,
-0.4043173194,
0.0919405445,
0.2175352722,
0.2202221751,
-0.119118847,
-0.0283072069,
0.3450469077,
0.2381825596,
-0.2486712039,
-0.3982612789,
0.1469917744,
0.0355262384,
0.003661298,
0.1301274449,
-0.4246212244,
-0.0644028336,
0.1582118571,
-0.0171449501,
0.414968878,
0.0815490857,
-0.2248543203,
0.0349034108,
-0.0173139255,
-0.2814751565,
-0.1650946289,
0.2951684594,
-0.1145361438,
0.3920763731,
0.1113580465,
0.0676916614,
-0.3239672482,
-0.3631024361,
0.0948845223,
-0.1253526509,
-0.0632676184,
-0.4151202738,
-0.2126364857,
0.2146886736,
-0.6452847719,
0.338239789,
0.0185332932,
-0.0923052579,
-0.2000161707,
-0.0841042995,
0.0492114909,
0.0580085441,
0.4036546648,
-0.1982998401,
-0.247448355,
0.2148767114,
0.0365540646,
-0.3079265058,
0.4022758305,
-0.3446632624,
-0.0429218225,
0.1075845212,
-0.1172165722,
-0.2678557038,
0.1032862067,
0.3239725828,
0.1739031225,
-0.2145238817,
-0.1501940787,
-0.2955878973,
-0.3215532005,
-0.1536871791,
0.0010411569,
-0.3635246754,
0.123253502,
0.075785242,
-0.0526961349,
-0.0918543711,
0.0168391205,
0.5439969897,
0.3074397743,
-0.152634874,
-0.0548137054,
0.2153406143,
-0.1551417857,
0.06095092,
0.1510666162,
0.0619929247,
-0.0290845148,
0.1437936872,
0.1524594575,
-0.2239267826,
0.1550750583,
0.3152681589,
0.1762305647,
0.1972066313,
0.3634468019,
0.0597393699,
0.0619272441,
-0.2180020213,
0.2220230103,
0.1936120838,
-0.3910776675,
-0.3105420768,
0.2187413573,
0.1845750511,
-0.1847243011,
0.0878849402,
0.3173805773,
-0.0800839663,
0.5683183074,
0.1026857346,
1.1368932724,
-0.1702766865,
0.1975346506,
0.2527059615,
-0.0464761704,
0.3141151667,
0.1340091377,
0.2213707864,
-0.3254972696,
-0.2142325938,
-0.0211800374,
-0.0442553908,
0.3171016574,
-0.0011052456,
-0.228803575,
0.2471419424,
0.3001627624,
-0.1937608123,
-0.0483466722,
0.2590264976,
-0.3042451739,
-0.4547315836,
-0.3983747959,
0.1749361455,
0.0311809685,
0.1074849516,
0.1397779733,
-0.1526466161,
-0.1387215257,
-0.0675862655,
0.0263244677,
0.0093178153,
-0.1341004074,
-0.0629588887,
0.0152950715,
-0.0332149528,
0.31397295,
0.0722706392,
0.2466844469,
0.0115867965,
0.0513192564,
-0.0019238401,
-0.1896217614,
0.083515577,
0.4373716712,
-0.2835475802,
0.234673366,
-0.1887412071,
-0.2134628892,
0.1431033015,
0.3672918677,
-0.2176377624,
0.1231523305,
0.1117721274,
0.4240850806,
-0.3219948113,
0.0431804769,
0.0108998995,
-0.263715893,
-0.2294331342,
0.217843011,
0.1267439723,
-0.0062218797,
0.0902800485,
0.1185547784,
-0.1052022502,
-0.2131611705,
0.2212668806,
0.3337836862,
0.0537394285,
0.1460360289,
-0.0091485819,
-0.2860205173,
-0.2209951133,
-0.2080835253,
0.037446741,
-0.6054662466,
-0.1986480057,
-0.1349378228,
-0.1949091107,
-0.0705073103,
0.1441375315,
0.2487083673,
0.0158320479,
-0.2262099385,
-0.0844028667,
-0.0239110664,
0.3097310066,
-0.3013791442,
0.1388481408,
0.2081381828,
0.0828596577,
-0.1990181804,
0.1475822777,
-0.4833030403,
0.193624571,
-0.1387224495,
0.1924856305,
-0.0138488198,
-0.1753956974,
0.183141619,
0.0291741434,
0.3173156679,
0.0171773937,
-0.314761281,
-0.2923357189,
-0.0195788257,
0.0805293024,
-0.0410048105,
0.1013551578,
-0.1234448701,
-0.0112091321,
-0.1091510057,
-0.2137135714,
0.0086158011,
0.0275374874,
0.0309053753,
0.2948175371,
-0.0270159654,
0.1514637768,
0.0727029666,
0.0866687074,
-0.0157940052,
0.1480308175,
0.2428983599,
0.3372476995,
-0.1283497512,
-0.0837274268,
-0.1493685097,
0.4318002164,
0.0495282672,
0.1550414711,
0.2671919465,
0.0852224156,
-0.195753783,
0.3584254682,
0.2696203291,
-0.045105949,
-0.0512145907,
-0.3358988464,
0.1615592092,
0.3056055903,
-0.2761207819,
0.0110005727,
0.0082768491,
-0.3724790215,
0.3423873782,
0.4256382585,
0.4512026012,
-0.0538326167,
0.0155366175,
-0.0653385893,
0.1026259959,
0.1624560505,
-0.0110990284,
0.3091405034,
0.0320624448,
0.1727862656,
0.4167186916,
-0.1059099361,
0.1996208727,
0.3995668888,
0.2615807652,
0.4637833238,
0.2287202179,
0.1630718112,
0.1112052873,
-0.0633396804,
0.4315743744,
0.1656669378,
0.0451898202,
0.2348884344,
0.3570890129,
0.0787830949,
0.096404843,
0.1765538752,
-0.2581937611,
0.1926147938,
-0.0312717333,
-0.0043513807,
-0.2153606713,
-0.1704813838,
-0.124356851,
-0.222991094,
0.0692452192,
-0.1474958658,
0.2397951931,
-0.0963681787,
-0.0191445462,
-0.0947376192,
0.0891784951,
0.1316091716,
0.2809196115,
-0.3247553408,
-0.0330234244,
0.243007943,
0.042677898,
0.0120145986,
0.4009729624,
0.4042482674,
-0.3516812921,
-0.0998882204,
0.0350712463,
-0.3021857142,
-0.2108768076,
-0.1460911185,
-0.0478797704,
0.0007089798,
0.1469614506,
0.286660254,
0.2314921618,
-0.2372946143,
-0.3218940496,
0.3424386978,
0.0013114833,
-0.0961098745,
0.2694808543,
0.0698073506,
-0.0525521524,
-0.0713919625,
-0.076086387,
-0.5513868332,
-0.2186113596,
0.1584801227,
-0.3041680157,
0.0917129368,
-0.2302626818,
0.1248916835,
-0.1364232004,
0.3314936757,
0.3782274723,
-0.0149281109,
-0.1429498196,
-0.2492587268,
-0.3054285049,
0.1160221398,
0.0132235521,
-0.0108849658,
-0.2920773625,
0.180315882,
0.3139230013,
0.0862817392,
-0.1378290057,
-0.0810285509,
-0.0252509676,
0.0477906354,
-0.4107744694,
0.0494894646,
0.0398021787,
0.1071703956,
-0.2195167542,
-0.1863438636,
-0.0733914301,
-0.3165344298,
0.2326067239,
-0.2326965332,
-0.0847959965,
0.03278381,
0.326079309,
0.3047825694,
0.2209341079,
0.3067100644,
-0.1963925511,
-0.4265642166,
0.1288328916,
0.2282682955,
0.1568917781,
0.2633233666,
0.3814713657,
0.413713485,
0.1651043296,
-0.2880512774,
0.1158208475,
0.5364378095,
0.0014755104,
0.2799179852,
-0.2390308529,
0.2803775072,
0.0377823636,
0.1228632405,
-0.1410555243,
0.3022276163,
0.0985554233,
0.0511004627,
-0.1154386103,
-0.3592512906,
0.3537852168,
-0.3028070629,
-0.0967731252,
-0.1224148422,
0.1672870815,
0.070466511,
0.2293810695,
-0.3910851777,
0.1476181298,
0.2905548215,
0.0364316031,
-0.0153581286,
0.3073615432,
0.1025471613,
0.0869551152,
-0.1093662754,
-0.0323308408,
-0.0607413463,
-0.3044479489,
-0.1966413707,
-0.244121626
] |
https://github.com/huggingface/datasets/issues/3240 | Couldn't reach data file for disaster_response_messages | It looks like the dataset isn't available anymore on appen.com
The CSV files appear to still be available at https://www.kaggle.com/landlord/multilingual-disaster-response-messages though. It says that the data are under the CC0 license so I guess we can host the dataset elsewhere instead ? | ## Describe the bug
Following command gives an ConnectionError.
## Steps to reproduce the bug
```python
disaster = load_dataset('disaster_response_messages')
```
## Error
```
ConnectionError: Couldn't reach https://datasets.appen.com/appen_datasets/disaster_response_data/disaster_response_messages_training.csv
```
## Expected results
It should load dataset without an error
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:
- Platform: Google Colab
- Python version: 3.7
- PyArrow version:
| 42 | Couldn't reach data file for disaster_response_messages
## Describe the bug
Following command gives an ConnectionError.
## Steps to reproduce the bug
```python
disaster = load_dataset('disaster_response_messages')
```
## Error
```
ConnectionError: Couldn't reach https://datasets.appen.com/appen_datasets/disaster_response_data/disaster_response_messages_training.csv
```
## Expected results
It should load dataset without an error
## Actual results
Specify the actual results or traceback.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:
- Platform: Google Colab
- Python version: 3.7
- PyArrow version:
It looks like the dataset isn't available anymore on appen.com
The CSV files appear to still be available at https://www.kaggle.com/landlord/multilingual-disaster-response-messages though. It says that the data are under the CC0 license so I guess we can host the dataset elsewhere instead ? | [
-0.3969844282,
0.0855663195,
-0.1614029855,
0.2481056154,
0.2457594573,
-0.0362626836,
0.3150369227,
0.031977009,
-0.1832845807,
0.103593573,
-0.0032423015,
0.1029789522,
-0.0037673693,
0.0743470192,
0.0495314486,
0.1760584116,
-0.0236672498,
0.0551095046,
-0.1005651876,
0.2073474079,
-0.0311283171,
0.1435259581,
-0.2613770366,
0.1049187854,
-0.4657371342,
-0.089719817,
-0.2657598555,
0.1460025609,
-0.209063977,
-0.2735754251,
0.4770915806,
-0.0291450862,
0.4401471019,
0.3828819096,
-0.0001136343,
0.0864352733,
0.29131639,
-0.1843004227,
-0.506647706,
-0.4366847575,
-0.135079965,
-0.5417945981,
-0.0692779422,
-0.198525086,
-0.1617289484,
0.1612298489,
0.1290531009,
-0.2801403999,
0.3676283062,
0.6152140498,
0.1603479683,
-0.0746320784,
0.3446933329,
0.0257713273,
-0.0369331986,
-0.1262844354,
0.0556782708,
0.6446589828,
0.3505102098,
-0.1698980331,
0.116222091,
0.2092892528,
0.0821242109,
-0.0421472527,
-0.0400286652,
0.1540918946,
-0.1005353779,
-0.2874974012,
0.2255031317,
0.1140588447,
0.7865209579,
-0.0920131281,
-0.3918148577,
-0.1222606078,
0.2095558345,
-0.1445357949,
0.4598049819,
0.2943403721,
-0.2272255719,
0.294611305,
-0.1799397916,
-0.4011434615,
-0.3395638466,
0.142612353,
-0.2829216123,
0.4165711999,
-0.2716354132,
0.0198646039,
-0.0987797529,
0.0252308454,
0.0796058923,
0.2791193724,
0.1296122819,
0.1530272812,
-0.2926833034,
-0.0458489656,
-0.2898760438,
-0.1960426569,
0.0110714482,
-0.2231873721,
0.1080093905,
-0.1294672042,
-0.2137911022,
0.1712617725,
0.3047848642,
-0.0137609644,
-0.0173268542,
0.1351264715,
0.4712273777,
0.2899515331,
-0.1058380082,
-0.0755112693,
-0.2736605406,
-0.1352697164,
-0.1774818301,
0.2709310949,
0.1913169771,
-0.1279794723,
-0.3298490047,
0.1545623988,
-0.3456397057,
0.0073890979,
-0.0531445481,
0.3513725698,
-0.3044223189,
0.1348906606,
0.1039426699,
0.0318184942,
0.0209723953,
-0.2327293754,
0.0203707591,
-0.0169587024,
-0.2097126693,
-0.0610267781,
0.1255651414,
-0.0504113734,
0.3136096299,
-0.0613483973,
0.1693464816,
-0.0218072012,
0.0498381406,
-0.0992944315,
-0.2048038542,
0.215947628,
-0.0125199202,
0.1011497676,
0.128279388,
-0.295564115,
0.0537690446,
0.0304891132,
-0.6815571189,
-0.4345812798,
-0.1859686077,
0.1611906141,
-0.0862061679,
0.0771837011,
-0.2162399441,
0.0366947651,
0.0581781752,
-0.2446703166,
0.1209076494,
-0.085407339,
-0.0060461317,
-0.3039547205,
0.3129099011,
0.4996982217,
-0.6247622371,
0.1270636767,
-0.0822665542,
0.0940879285,
0.0622251593,
0.0689084828,
-0.2570063472,
-0.0045619644,
-0.4427516758,
-0.151128158,
0.1291122735,
-0.2053648233,
-0.6268677711,
0.1775316745,
-0.3933196962,
-0.1377156526,
-0.0637387559,
-0.1185445338,
-0.0299063306,
0.0616245829,
0.5025733709,
0.08457499,
0.0724532306,
-0.0913852379,
-0.115148291,
-0.1563277692,
0.0100131845,
0.0004072149,
0.0078595607,
-0.1912963837,
0.1803658605,
-0.1869179606,
0.32925722,
-0.100099802,
0.1806672364,
0.2512604296,
0.1726932675,
0.1122403145,
-0.0024888495,
-0.0918306932,
-0.1936529875,
0.2481029928,
-0.0023014185,
0.1520292014,
-0.4120644033,
-0.0448383838,
-0.1322608888,
0.1081577688,
-0.1654275358,
-0.1388157755,
0.1474211812,
0.0599273331,
-0.027130099,
0.339319706,
-0.217945382,
0.6206417084,
-0.2224137187,
0.0454232134,
0.0339100994,
0.3739578724,
-0.1882544458,
0.0009403725,
0.0664854348,
0.0960178673,
0.0577740557,
-0.0543256737,
-0.0524768792,
0.142723918,
-0.1477664709,
0.3935876489,
0.2423826754,
-0.0400860049,
0.392617166,
-0.2006509155,
0.2065882385,
0.0522905737,
0.1102462709,
0.1842588186,
0.2461001426,
0.4160403609,
0.2379680872,
0.1410595328,
0.1834273636,
0.3020606637,
0.2708508074,
0.1953157932,
-0.0302410349,
-0.042021703,
0.3442128599,
-0.1360757202,
0.259506315,
-0.1702788025,
-0.2516419888,
0.2048104405,
0.2726487219,
-0.1345018893,
0.147870943,
0.1649143398,
-0.1811380386,
-0.2199194878,
0.3314876556,
0.1230210438,
0.5469083786,
-0.0323455185,
0.0465811528,
0.1407729983,
0.0283670388,
-0.1654482484,
0.3097756207,
-0.0113723222,
0.3063214719,
0.131684795,
0.238804251,
0.128246367,
-0.2026647925,
-0.4531944096,
-0.0696527958,
0.1392033398,
-0.2484699786,
0.4003356695,
-0.3243661523,
-0.208605811,
-0.0948543176,
-0.2028510123,
-0.3212020993,
-0.2442266494,
-0.0390903987,
-0.0417084955,
0.0929758102,
-0.1112231091,
-0.0876150802,
0.1124151647,
0.0152195524,
0.0343895964,
-0.1330263019,
-0.2246638536,
-0.2934440374,
0.0975282565,
0.0911016911,
-0.3301056921,
0.2161060125,
-0.2374530435,
-0.0797937661,
-0.218164593,
-0.2905412018,
0.2048647404,
-0.0575635768,
0.2340249121,
0.1696405858,
0.3792232871,
-0.5597908497,
-0.0398762524,
0.2884007394,
-0.1847720742,
-0.1365686208,
-0.0560729727,
-0.1952244788,
0.0948191062,
0.2103656083,
-0.4817619324,
-0.8588473797,
-0.2892594635,
0.0359249525,
-0.2112618238,
0.1312993467,
0.0853810236,
0.0323059894,
0.2935265601,
0.0263439771,
0.0375999734,
-0.1422603577,
-0.4129861295,
0.1830310374,
-0.3079852164,
-0.2545880973,
0.2075000107,
0.1153315455,
0.2488137782,
0.0800673217,
-0.3850054741,
-0.2653523982,
0.1503928304,
0.0396994278,
0.1027661711,
-0.0878084451,
0.1532351375,
-0.1515507847,
0.0291784704,
0.0976519585,
-0.0763662532,
-0.1703296006,
0.3905868828,
0.3727980554,
0.1578366011,
0.2019820213,
0.0592675544,
0.8012969494,
0.2782272696,
0.0791757926,
0.3385920823,
-0.0428922363,
0.3107748926,
0.0497345813,
-0.3727560341,
0.2035194188,
-0.1720287502,
-0.3119312525,
-0.0101739885,
0.1933038831,
-0.2089722306,
-0.4810191393,
-0.2230044752,
-0.4226207137,
-0.3376038969,
0.0202732682,
-0.0773798153,
0.2049657106,
-0.0467183925,
-0.1842233092,
-0.0435556956,
-0.2094210088,
-0.1909443587,
0.5210664272,
-0.0119140726,
0.1306164861,
-0.2416211814,
-0.6516561508,
-0.4817396402,
0.4272296727,
0.1079498976,
0.3860957325,
-0.1132100374,
0.2503988147,
0.0780637637,
-0.1847083122,
0.6226145029,
-0.4515987933,
-0.1356940418,
-0.1430441737,
0.361931026,
-0.2311038673,
-0.0886491612,
0.0827561915,
0.4362936318,
0.5220262408,
0.0914730653,
-0.0389078483,
0.1422978491,
-0.0637227371,
0.1967566609,
-0.1209768429,
0.1342972219,
-0.2049851716,
-0.4988082051,
-0.2030156404,
0.1744715869,
-0.1198519096,
0.1039792672,
0.031818103,
-0.192536369,
0.1855786443,
0.1410734653,
-0.0623860136,
0.0357611328,
0.0393408611,
-0.0915452763,
0.0172713175,
0.2048369348,
0.2948557734,
0.4421204925,
0.7211837173,
-0.0941413939,
-0.4395546913,
0.1185370982,
-0.0621562861,
0.4387461543,
0.427621901,
-0.1518831104,
-0.0878867954,
0.3276292384,
0.0840622783,
-0.0163294002,
0.0176874623,
0.1405529231,
0.2716108561,
-0.5706242323,
-0.3748262525,
0.2106228769,
0.0217916146,
0.0088880742,
0.0295474343,
-0.0855648816,
-0.1529066712,
0.282200098,
-0.0540472381,
1.0409919024,
-0.0224460661,
0.1292794794,
0.1326726526,
0.2215294391,
0.6745805144,
-0.4136273861,
0.2915471494,
-0.1330592632,
-0.1845160574,
-0.2123402059,
-0.0899054259,
0.1376226693,
0.0899537876,
-0.0950562358,
0.4247016013,
0.0393926837,
0.3432173729,
0.0042347782,
0.0149635728,
-0.3670528233,
0.0445398763,
-0.5556020141,
0.117687583,
0.0359115042,
0.3604161143,
-0.1290103942,
-0.1121653244,
-0.3611323535,
-0.3149854243,
-0.4891161323,
0.0470088944,
-0.4444338381,
0.0393857211,
-0.2156185508,
-0.352768302,
-0.0757439658,
0.5982548594,
0.2379137129,
0.2197338194,
-0.2586990893,
0.0766948685,
-0.1603807062,
-0.2893213332,
0.1095894724,
-0.1094205454,
0.1668357849,
-0.1705473214,
-0.3922857642,
0.3832036555,
0.0739829764,
-0.2648202479,
0.30600214,
0.1630596071,
0.1317869872,
0.1428087056,
0.1733501852,
-0.1031763777,
0.0443458743,
-0.100364849,
0.0689944997,
0.1657010764,
0.1087458432,
-0.0200819857,
0.0583863445,
-0.0586771853,
-0.1029972136,
0.5097295642,
0.1134139001,
0.0571731925,
0.1576941013,
0.2839534283,
-0.2118756622,
-0.1665917039,
0.0220054388,
-0.3067840934,
-0.2613434792,
-0.0975163877,
0.3226937652,
0.2916685939,
-0.2083233893,
0.0568781756,
0.1771796048,
-0.0550930277,
-0.2221389264,
-0.7540889382,
-0.4068016708,
0.1981743276,
-0.0004772182,
0.0565722845,
0.3591631651,
-0.3432614803,
0.1112800911,
-0.1445906758,
-0.2569668293,
0.0648703128,
-0.2340693474,
-0.1049642712,
0.0266034789,
-0.0295154899,
0.4203746319,
-0.028830437,
0.0734137669,
0.0473374277,
-0.0200241767,
-0.1312163621,
0.110619612,
0.1688983291,
0.201025635,
-0.0881410539,
-0.0412515588,
-0.3965947926,
-0.0199795067,
-0.0345788673,
0.1002807543,
0.1106288806,
0.0982601494,
-0.1353098303,
-0.3161923587,
0.0224701911,
-0.2177808732,
0.3253795207,
0.077211611,
0.3269046247,
0.1508720219,
0.3180573285,
0.2000054419,
-0.0172502473,
-0.1523063332,
0.1527698338,
-0.4282360971,
0.1785585582,
0.4988730848,
-0.2613062859,
-0.0413666181,
-0.0230066516,
0.1006334946,
0.316663444,
-0.3083231449,
0.2235525548,
0.453843534,
0.1388951093,
-0.3656764925,
-0.092227608,
0.2330026031,
0.0269247461,
-0.0449670702,
0.0514404736,
0.3467721939,
-0.2590331137,
-0.0513928197,
0.0983985588,
0.4660293162,
0.0501909368,
0.1347857416,
0.3078991175,
0.1772608608,
0.3307104409,
0.13770096,
0.1246956512,
0.2040733397,
0.1097679734,
-0.2202605754,
0.1809967011,
0.056509085,
0.0677663311,
0.0546190515,
-0.4621721208,
0.2628990412,
0.2275747359,
-0.3875963688,
-0.0202760547,
-0.0428167693,
0.6732048392,
-0.4109526575,
0.1059381291,
-0.4075265527,
0.1586061418,
-0.2656109333,
0.1664577872,
-0.1238575652,
-0.3106440604,
0.0958505645,
0.0666245669,
0.0103126559,
-0.1186525673,
0.216340676,
0.0744981021,
-0.1389672011,
-0.4885366559,
0.1630567312,
0.1844417006,
0.0332889184,
-0.0855245516,
0.2742477953,
-0.014296554,
0.0015786256,
0.089716047,
0.2233162969,
0.5020909309,
0.29420802,
-0.0769307837,
0.2875905633,
0.0324419141,
-0.1734758765,
-0.1419629604,
0.1859120876,
0.2400327474,
-0.2826651931,
0.2955241799,
0.176920712,
-0.0456629768,
0.3597592413,
0.205513224,
0.3278003037,
0.0462673269,
-0.0751135722,
-0.1557125002,
0.0282499194,
-0.1376513094,
-0.1102399454,
-0.5398246646,
-0.0393666662,
0.262068212,
-0.1415152848,
0.2069552392,
-0.1897375435,
0.0622875541,
-0.1781980991,
0.2226347327,
0.4702533782,
0.399104774,
-0.0483231768,
-0.1307810545,
-0.4851087332,
0.1887547225,
-0.1126390845,
0.1084048226,
-0.2408257723,
-0.2340214401,
0.0783926323,
0.2289154977,
0.3032019138,
0.1437477916,
-0.1407787204,
0.2220841497,
-0.3416094482,
-0.3118329942,
0.3071203232,
0.3641043007,
-0.1301443279,
-0.2299285084,
0.162899673,
-0.173643738,
-0.0857100636,
-0.1318802238,
0.0106602525,
-0.0328170061,
-0.3649950325,
0.6757555604,
0.0694570541,
0.4952442646,
-0.1023888811,
-0.174464345,
-0.2434160262,
-0.0441324376,
-0.0164756365,
0.1199681163,
0.3152651489,
0.2233089358,
-0.215607658,
-0.0214492362,
-0.1464716047,
0.0186486915,
0.0690548941,
0.2498522699,
-0.008079431,
-0.1981663406,
-0.0935613513,
0.0119251134,
-0.1258957684,
0.0009178634,
-0.0429239571,
-0.1045896336,
0.0037911688,
-0.2210769951,
0.354164809,
-0.1593159288,
0.0711258575,
-0.243900612,
0.2411579192,
-0.169569537,
0.2951148152,
-0.3391874731,
0.0857599527,
0.464040488,
0.0981819555,
-0.340405941,
0.0730576515,
-0.0546674281,
-0.0096438061,
-0.1780482233,
0.6957083344,
-0.2088636458,
-0.2370153219,
0.076668039,
-0.1899128109
] |
https://github.com/huggingface/datasets/issues/3236 | Loading of datasets changed in #3110 returns no examples | Hi @eladsegal, thanks for reporting.
I am sorry, but I can't reproduce the bug:
```
In [1]: from datasets import load_dataset
In [2]: ds = load_dataset("qasper")
Downloading: 5.11kB [00:00, ?B/s]
Downloading and preparing dataset qasper/qasper (download: 9.88 MiB, generated: 35.11 MiB, post-processed: Unknown size, total: 44.99 MiB) to .cache\qasper\qasper\0.1.0\b99154d2a15aa54bfc669f82b2eda715a2e342e81023d39613b0e2920fdb3ad8...
Dataset qasper downloaded and prepared to .cache\qasper\qasper\0.1.0\b99154d2a15aa54bfc669f82b2eda715a2e342e81023d39613b0e2920fdb3ad8. Subsequent calls will reuse this data.
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<?, ?it/s]
In [3]: ds
Out[3]:
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
This makes me suspect that the origin of the problem might be the cache: I didn't have this dataset in my cache, although I guess you already had it, before the code change introduced by #3110.
@lhoestq might it be possible that the code change introduced by #3110 makes "inaccessible" all previously cached TAR-based datasets?
- Before the caching system downloaded and extracted the tar dataset
- Now it only downloads the tar dataset (no extraction is done) | ## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
| 173 | Loading of datasets changed in #3110 returns no examples
## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
Hi @eladsegal, thanks for reporting.
I am sorry, but I can't reproduce the bug:
```
In [1]: from datasets import load_dataset
In [2]: ds = load_dataset("qasper")
Downloading: 5.11kB [00:00, ?B/s]
Downloading and preparing dataset qasper/qasper (download: 9.88 MiB, generated: 35.11 MiB, post-processed: Unknown size, total: 44.99 MiB) to .cache\qasper\qasper\0.1.0\b99154d2a15aa54bfc669f82b2eda715a2e342e81023d39613b0e2920fdb3ad8...
Dataset qasper downloaded and prepared to .cache\qasper\qasper\0.1.0\b99154d2a15aa54bfc669f82b2eda715a2e342e81023d39613b0e2920fdb3ad8. Subsequent calls will reuse this data.
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<?, ?it/s]
In [3]: ds
Out[3]:
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
This makes me suspect that the origin of the problem might be the cache: I didn't have this dataset in my cache, although I guess you already had it, before the code change introduced by #3110.
@lhoestq might it be possible that the code change introduced by #3110 makes "inaccessible" all previously cached TAR-based datasets?
- Before the caching system downloaded and extracted the tar dataset
- Now it only downloads the tar dataset (no extraction is done) | [
0.0481985547,
-0.0869977772,
-0.0242289286,
0.2818650603,
0.3240279555,
-0.0273514315,
0.2742410302,
0.2374753803,
0.1709858179,
0.2015544921,
-0.071567364,
0.3162328601,
-0.0423279032,
0.1720466316,
0.1071109399,
-0.2534898818,
0.1101513356,
0.1358653903,
-0.3096776307,
-0.0174040012,
-0.0312138814,
0.309874475,
-0.2977308333,
-0.0926481485,
-0.2869768143,
0.2120055258,
-0.3142178953,
0.1809690744,
-0.1463450789,
-0.3778193295,
0.3804140091,
0.0857021958,
0.1420219392,
0.6262398362,
-0.0001108685,
0.1710153222,
0.1643774956,
-0.1009757444,
-0.2533086538,
-0.4094510972,
-0.0717468187,
-0.4076809883,
0.1379687339,
-0.084017612,
-0.3382483721,
-0.3250946105,
-0.2067218423,
-0.102931641,
0.4555372298,
0.3552950621,
0.24130252,
0.4862983227,
0.0441145375,
-0.3515443802,
0.0134593481,
-0.1009906381,
-0.0108463569,
0.0179694537,
0.1658859551,
0.1214357018,
0.0917913914,
0.1937300712,
0.1166708693,
-0.1438785791,
0.1437006593,
-0.103102617,
-0.1645518988,
-0.1611696184,
0.032573849,
0.3317503333,
0.4173805714,
-0.2056090087,
-0.5523957014,
-0.3343687057,
-0.0657659248,
-0.3471269906,
0.1069067344,
0.1082367301,
0.0765274093,
0.2580417991,
-0.1972233504,
0.1033517867,
-0.0616275854,
0.0491028875,
-0.2557571232,
0.0730323792,
-0.1191485971,
-0.128347367,
-0.0014370769,
-0.0417608656,
-0.1048920825,
0.0154958405,
-0.0036514674,
0.1501371115,
-0.4318972826,
0.0554301888,
0.237555027,
0.0125551922,
-0.0146852667,
0.2383976281,
0.2823119462,
0.2580575645,
-0.101495631,
0.0426575281,
0.0553131253,
0.4307948649,
0.098954536,
-0.0112817166,
0.355548799,
0.3903166652,
-0.0860642046,
-0.0921304226,
-0.0349751972,
-0.1879226714,
0.1101073697,
0.0507210083,
0.2734404206,
-0.2016669214,
-0.2322236449,
0.2300948054,
-0.2371390313,
-0.0756455138,
0.0285549033,
0.5070344806,
-0.077991493,
0.08678817,
0.034564849,
0.1759791076,
-0.150269255,
-0.300608784,
-0.4464168251,
-0.0316898972,
-0.3254978359,
-0.0998989344,
0.2723427713,
-0.1960325986,
0.4132773876,
0.0805029795,
-0.144823119,
-0.0651482567,
0.0624424405,
0.1992405951,
0.1993406117,
0.284948945,
-0.0595134757,
-0.0106598837,
0.2917138636,
-0.058343932,
0.0071220989,
0.0480790474,
-0.2429095656,
-0.2783380747,
-0.1120141298,
0.2665143311,
-0.4614020586,
-0.0228121709,
-0.0224671103,
0.1883604974,
0.0015456961,
-0.0524671115,
0.0370658301,
-0.1295342594,
-0.0360486507,
-0.0366939195,
0.457509011,
0.4533717334,
-0.1228636429,
-0.3646816015,
0.2155804932,
-0.0941883922,
0.008020224,
0.0213709082,
-0.006280418,
0.0874582529,
-0.2322479934,
-0.122004509,
0.2858052552,
-0.2465897799,
-0.4048401117,
-0.0766043887,
-0.0211876351,
0.4242129326,
0.2083308101,
-0.252592653,
0.0246394444,
0.0277144462,
0.127171725,
-0.0023789413,
0.2605974674,
0.0864496306,
-0.1792177707,
-0.1496765763,
0.0313813165,
-0.0087175071,
0.0463232808,
0.2363817245,
-0.0460510738,
-0.1425697058,
0.3198089898,
-0.262978673,
-0.1114747152,
0.2994379699,
0.3906705081,
0.033493869,
0.2075453401,
-0.2101998925,
-0.5983011723,
0.4261897504,
0.0083911056,
0.1736965626,
0.1064665988,
-0.1905424595,
-0.3390614092,
-0.0319934823,
-0.2173842341,
-0.4623178244,
0.1443420053,
0.1712841839,
0.311358124,
0.1133099794,
-0.2209654897,
0.4782706797,
-0.1391461045,
0.2466123402,
-0.4244334102,
0.355330348,
0.049485445,
-0.1585935801,
0.0004656407,
0.3790495098,
0.0895048529,
-0.2791751325,
-0.0319349766,
0.4426726997,
0.0848304033,
0.1269909889,
-0.1665707678,
0.0341465548,
0.3217850626,
0.1063588038,
-0.0502241664,
0.189823553,
-0.0628746748,
0.1435204595,
-0.3038612604,
0.4575379491,
0.0085153924,
0.1595543325,
0.2568790615,
-0.0430402197,
0.1683445126,
-0.1168815494,
-0.34793064,
-0.2479156554,
0.2199461162,
-0.2961523533,
0.2113552392,
0.1242555305,
-0.4070571363,
0.054158438,
0.3790639341,
0.0197463818,
0.0462707877,
-0.0233377963,
-0.2102936208,
0.0364364386,
0.3277456164,
0.1316284537,
0.2561742961,
0.2758215368,
-0.0519169569,
0.1211837977,
-0.0544184446,
-0.2013663799,
0.1555205584,
-0.0264055431,
-0.1224707291,
0.2315485626,
0.1616037935,
0.093663834,
-0.4347341359,
0.0915908292,
-0.066471599,
0.1618289798,
-0.4015597105,
-0.0091292616,
-0.3828178346,
-0.055713594,
-0.1776840836,
-0.2573938966,
0.0134491911,
-0.3274967968,
0.0290936027,
0.1418607086,
-0.1621785015,
0.2784965038,
-0.0668852031,
0.0994897559,
-0.0259305295,
0.1342011988,
-0.2214833498,
-0.0414212532,
-0.2053794116,
0.0815152302,
-0.0784958303,
-0.019277012,
0.1802260876,
-0.3212566674,
-0.0408071503,
-0.2744916677,
-0.560757935,
0.0327713825,
-0.0596647076,
0.3699052334,
0.1861216575,
0.0378417335,
-0.0787610263,
-0.0280032307,
0.3117527664,
-0.0995519608,
-0.3088871539,
0.1620039344,
0.0437145084,
0.0506079756,
-0.3222824335,
-0.6019360423,
-0.0519945696,
-0.3921588361,
0.2188690901,
-0.0151081737,
-0.0129249273,
0.3306981027,
0.1765702516,
0.2407140583,
-0.0358888917,
0.1884778142,
-0.1856399626,
-0.2366807461,
0.2083813995,
-0.3224650323,
-0.5175801516,
-0.09954945,
-0.0682130232,
0.1749485582,
-0.0706237778,
-0.4018836021,
-0.4492528737,
-0.2838639915,
0.2869094908,
0.0883645117,
0.1963796318,
0.31953457,
-0.0170476772,
-0.0827626884,
-0.2365192622,
-0.244149968,
0.0866851807,
-0.0396276116,
-0.0130336536,
-0.1388915628,
0.3085324168,
-0.0408934504,
0.5791707039,
0.2496649176,
-0.0168729331,
0.5041947365,
-0.1128073782,
0.4734930694,
-0.251737833,
-0.3542967737,
0.0175451413,
-0.0791127831,
0.1667907685,
0.1121935323,
0.0253821425,
0.2566156387,
-0.2126464546,
0.0406621732,
-0.2356364727,
-0.2202086747,
-0.2033108622,
-0.1254197061,
0.1855074316,
0.1336281151,
0.223241359,
-0.1398865432,
0.1517243981,
0.1562120318,
0.2525423467,
0.2819907069,
-0.0382212847,
-0.5950140953,
0.0767665058,
-0.3939025998,
0.1397636682,
-0.1132557169,
0.1827933937,
0.0998653919,
-0.3451109231,
0.0257286765,
-0.0351387523,
0.7139860392,
0.0423452556,
-0.0325626954,
0.1872521043,
-0.3037367761,
-0.4642010629,
-0.297177732,
-0.2848602533,
0.0355189778,
0.1110170484,
0.5587165952,
-0.2462154478,
-0.2049175799,
0.1005873904,
0.1535287201,
-0.1186056733,
-0.0774317831,
-0.3990415633,
-0.1416076869,
-0.2991361618,
0.0244285762,
-0.1126875952,
0.3314489722,
-0.3967134356,
-0.044297684,
-0.0974151492,
-0.0879448876,
0.2755496204,
0.3371759951,
0.4642047584,
-0.0041779736,
0.1841808856,
0.1460017264,
0.2303549051,
-0.0492638499,
0.5531159639,
-0.2130257487,
-0.4674658775,
0.0244176835,
0.0985985696,
0.1919235736,
0.2839531898,
-0.0240091365,
-0.0103207482,
0.0334598348,
0.1660607904,
-0.2219956368,
0.1153500676,
0.2522455752,
0.2117828727,
-0.1972699463,
-0.3600770533,
0.4063872397,
0.2045285106,
-0.082412757,
0.1617421955,
0.3626560867,
-0.2724651694,
0.1963347495,
-0.0735357627,
0.5536629558,
0.1496784389,
0.1112750918,
0.4936061203,
-0.1541039944,
0.4307682216,
0.0282862,
0.0783270001,
-0.3261818886,
-0.4324313998,
0.0743174776,
-0.1420194507,
0.2543086708,
-0.0936190188,
-0.2937712967,
0.2425781637,
-0.0614432432,
0.4228388071,
0.0824264511,
-0.0339254439,
-0.1302327514,
0.0350472629,
-0.4456653893,
0.1646709442,
0.1567229778,
0.2932489812,
-0.0937527344,
-0.0039614211,
-0.1935090423,
-0.2196678519,
-0.0830313414,
0.0144851524,
-0.0773717165,
-0.0803698748,
0.5203552842,
-0.4018165469,
-0.0127799008,
0.3775319159,
0.4443200529,
0.2315761,
-0.1558998823,
0.1234917045,
-0.1541391015,
0.1467104703,
0.0688100532,
0.0588227659,
0.426587522,
0.008839108,
-0.3543610275,
0.1997651607,
-0.07857164,
0.0414835028,
-0.1106426716,
0.1032586396,
-0.1989992857,
-0.3686420023,
-0.2561345994,
-0.0241016094,
0.3485710323,
-0.3951193392,
0.1987586915,
0.0373829156,
-0.2535577416,
-0.0267761555,
0.0863390937,
-0.1882233471,
-0.1651725769,
0.5311196446,
-0.0193644427,
0.0393796042,
0.5470424891,
0.2478715479,
0.1277480423,
-0.1604365408,
-0.2061494291,
0.5066654086,
-0.4009734392,
0.2265547514,
0.0452351682,
-0.089213632,
0.1041069031,
0.4483320117,
0.0892235935,
-0.0738572553,
0.0025199815,
-0.3323084414,
-0.1668224037,
0.3269214332,
0.1018108726,
0.2001242489,
0.0230575223,
-0.0447381884,
-0.1990042776,
-0.0821899623,
-0.3838168383,
0.2317102402,
-0.094681561,
0.0080049541,
0.212074101,
-0.1800937802,
-0.0082779489,
-0.2439625561,
0.1769245565,
0.0115246437,
-0.2337290049,
-0.2896286249,
-0.3416273892,
0.0659957528,
-0.0873745382,
0.0409727059,
0.0703092143,
0.2501469254,
-0.0465175398,
-0.234109357,
0.4098848104,
0.1118883491,
0.0351813324,
0.3403913677,
0.0676625744,
0.2168429345,
0.0177232157,
0.0183653571,
0.0346433185,
-0.2447931617,
0.0253431424,
0.0001912843,
-0.1700791717,
0.0921724364,
-0.0091776121,
0.0785144046,
-0.0332647152,
0.1704270393,
0.3056046963,
-0.257522583,
0.1769665927,
0.1408842653,
0.352560699,
0.1656520069,
-0.159872219,
0.0883125365,
0.1280992627,
0.3033127189,
-0.4272122681,
-0.0639279559,
0.2238363475,
0.0988453925,
0.1989062577,
0.1681094915,
0.258857131,
-0.155389607,
0.1838713288,
0.2872074246,
0.2977751791,
0.0588257723,
0.4726626873,
0.4331970215,
-0.0707347691,
0.0708426908,
0.0488207415,
-0.134585619,
-0.0628407225,
0.1558621377,
0.0048355246,
0.2499201298,
-0.0062113632,
0.2208318561,
0.0963631943,
-0.3939106762,
0.0906688645,
0.0238969829,
-0.1729887277,
0.0662117526,
-0.2123369873,
0.4334922135,
-0.361432761,
-0.120697245,
-0.3567313552,
0.1053316146,
-0.2042128295,
-0.3059581518,
0.0030264906,
-0.3322758973,
0.0044144508,
0.0047752229,
-0.062540561,
-0.1204759255,
0.0704387948,
-0.2905164957,
-0.2438585609,
-0.4311001897,
-0.1374060214,
0.0425178334,
0.3430761397,
0.0285756551,
0.3047436476,
0.2961230576,
-0.2466678321,
0.0738858879,
0.2899469435,
0.383807689,
0.1648387909,
0.2314525992,
0.1832719445,
-0.0433592796,
-0.0505382754,
-0.0270365886,
0.4476382732,
0.0484031625,
-0.1019552127,
0.1409863383,
0.1902392209,
-0.2589709163,
0.1088000536,
-0.1060952991,
0.3722572327,
-0.5927894115,
0.4981980026,
-0.2803738415,
-0.1138891727,
-0.0999374911,
0.0030348175,
-0.2672679424,
-0.0495250821,
0.108797729,
0.2101290375,
0.1017582789,
-0.2689724565,
0.1186591089,
-0.1392235309,
0.3404169381,
0.2487783283,
-0.0429073125,
-0.1308289915,
-0.1528423727,
-0.7432309985,
0.1535543352,
0.0611758679,
0.1751804799,
-0.0314455479,
-0.097096689,
-0.0853766799,
-0.1342229545,
-0.0217108056,
-0.0817594007,
0.0910399184,
0.0566201694,
-0.5897562504,
-0.1216537133,
-0.1023666412,
0.0624366924,
0.0834658891,
-0.1358577311,
0.080984138,
-0.1761588305,
0.0153289493,
0.0799396932,
0.0850727335,
-0.025912283,
-0.1229671165,
0.2948429286,
0.153270483,
0.1271879822,
0.0400281921,
-0.151907295,
-0.3101460934,
-0.2387505621,
-0.1656613052,
0.2701582015,
-0.1824702322,
0.3968471587,
0.0809883177,
-0.2206905335,
-0.0346899927,
0.270983398,
0.4008368552,
-0.1768425852,
-0.3122388124,
0.1839415878,
0.009621527,
-0.1361798197,
0.3327705562,
0.3300030231,
-0.0209807623,
0.1815216988,
-0.2580749691,
-0.4261649847,
0.5998721123,
-0.4396130443,
-0.0209706444,
-0.3280789554,
0.1557830423,
0.1412993073,
-0.3467077613,
-0.6606488228,
0.047875993,
0.3967241347,
-0.2428271174,
-0.1624283791,
0.3853439093,
-0.0664640591,
0.0902094319,
-0.0564068928,
0.3422391117,
0.1525709927,
-0.2761006057,
0.2225066721,
-0.115247041
] |
https://github.com/huggingface/datasets/issues/3236 | Loading of datasets changed in #3110 returns no examples | I can't reproduce either in my environment (macos, python 3.7).
In your case it generates zero examples. This can only happen if the extraction of the TAR archive doesn't output the right filenames. Indeed if the `qasper` script can't find the right file to load, it's currently ignored and it returns zero examples. This case was not even considered when #3110 was developed since we considered the file names to be deterministic - and not depend on your environment.
Therefore here is my hypothesis:
- either the cache is corrupted somehow with an empty TAR archive
- OR I suspect that the issue comes from python 3.8
| ## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
| 107 | Loading of datasets changed in #3110 returns no examples
## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
I can't reproduce either in my environment (macos, python 3.7).
In your case it generates zero examples. This can only happen if the extraction of the TAR archive doesn't output the right filenames. Indeed if the `qasper` script can't find the right file to load, it's currently ignored and it returns zero examples. This case was not even considered when #3110 was developed since we considered the file names to be deterministic - and not depend on your environment.
Therefore here is my hypothesis:
- either the cache is corrupted somehow with an empty TAR archive
- OR I suspect that the issue comes from python 3.8
| [
0.0481985547,
-0.0869977772,
-0.0242289286,
0.2818650603,
0.3240279555,
-0.0273514315,
0.2742410302,
0.2374753803,
0.1709858179,
0.2015544921,
-0.071567364,
0.3162328601,
-0.0423279032,
0.1720466316,
0.1071109399,
-0.2534898818,
0.1101513356,
0.1358653903,
-0.3096776307,
-0.0174040012,
-0.0312138814,
0.309874475,
-0.2977308333,
-0.0926481485,
-0.2869768143,
0.2120055258,
-0.3142178953,
0.1809690744,
-0.1463450789,
-0.3778193295,
0.3804140091,
0.0857021958,
0.1420219392,
0.6262398362,
-0.0001108685,
0.1710153222,
0.1643774956,
-0.1009757444,
-0.2533086538,
-0.4094510972,
-0.0717468187,
-0.4076809883,
0.1379687339,
-0.084017612,
-0.3382483721,
-0.3250946105,
-0.2067218423,
-0.102931641,
0.4555372298,
0.3552950621,
0.24130252,
0.4862983227,
0.0441145375,
-0.3515443802,
0.0134593481,
-0.1009906381,
-0.0108463569,
0.0179694537,
0.1658859551,
0.1214357018,
0.0917913914,
0.1937300712,
0.1166708693,
-0.1438785791,
0.1437006593,
-0.103102617,
-0.1645518988,
-0.1611696184,
0.032573849,
0.3317503333,
0.4173805714,
-0.2056090087,
-0.5523957014,
-0.3343687057,
-0.0657659248,
-0.3471269906,
0.1069067344,
0.1082367301,
0.0765274093,
0.2580417991,
-0.1972233504,
0.1033517867,
-0.0616275854,
0.0491028875,
-0.2557571232,
0.0730323792,
-0.1191485971,
-0.128347367,
-0.0014370769,
-0.0417608656,
-0.1048920825,
0.0154958405,
-0.0036514674,
0.1501371115,
-0.4318972826,
0.0554301888,
0.237555027,
0.0125551922,
-0.0146852667,
0.2383976281,
0.2823119462,
0.2580575645,
-0.101495631,
0.0426575281,
0.0553131253,
0.4307948649,
0.098954536,
-0.0112817166,
0.355548799,
0.3903166652,
-0.0860642046,
-0.0921304226,
-0.0349751972,
-0.1879226714,
0.1101073697,
0.0507210083,
0.2734404206,
-0.2016669214,
-0.2322236449,
0.2300948054,
-0.2371390313,
-0.0756455138,
0.0285549033,
0.5070344806,
-0.077991493,
0.08678817,
0.034564849,
0.1759791076,
-0.150269255,
-0.300608784,
-0.4464168251,
-0.0316898972,
-0.3254978359,
-0.0998989344,
0.2723427713,
-0.1960325986,
0.4132773876,
0.0805029795,
-0.144823119,
-0.0651482567,
0.0624424405,
0.1992405951,
0.1993406117,
0.284948945,
-0.0595134757,
-0.0106598837,
0.2917138636,
-0.058343932,
0.0071220989,
0.0480790474,
-0.2429095656,
-0.2783380747,
-0.1120141298,
0.2665143311,
-0.4614020586,
-0.0228121709,
-0.0224671103,
0.1883604974,
0.0015456961,
-0.0524671115,
0.0370658301,
-0.1295342594,
-0.0360486507,
-0.0366939195,
0.457509011,
0.4533717334,
-0.1228636429,
-0.3646816015,
0.2155804932,
-0.0941883922,
0.008020224,
0.0213709082,
-0.006280418,
0.0874582529,
-0.2322479934,
-0.122004509,
0.2858052552,
-0.2465897799,
-0.4048401117,
-0.0766043887,
-0.0211876351,
0.4242129326,
0.2083308101,
-0.252592653,
0.0246394444,
0.0277144462,
0.127171725,
-0.0023789413,
0.2605974674,
0.0864496306,
-0.1792177707,
-0.1496765763,
0.0313813165,
-0.0087175071,
0.0463232808,
0.2363817245,
-0.0460510738,
-0.1425697058,
0.3198089898,
-0.262978673,
-0.1114747152,
0.2994379699,
0.3906705081,
0.033493869,
0.2075453401,
-0.2101998925,
-0.5983011723,
0.4261897504,
0.0083911056,
0.1736965626,
0.1064665988,
-0.1905424595,
-0.3390614092,
-0.0319934823,
-0.2173842341,
-0.4623178244,
0.1443420053,
0.1712841839,
0.311358124,
0.1133099794,
-0.2209654897,
0.4782706797,
-0.1391461045,
0.2466123402,
-0.4244334102,
0.355330348,
0.049485445,
-0.1585935801,
0.0004656407,
0.3790495098,
0.0895048529,
-0.2791751325,
-0.0319349766,
0.4426726997,
0.0848304033,
0.1269909889,
-0.1665707678,
0.0341465548,
0.3217850626,
0.1063588038,
-0.0502241664,
0.189823553,
-0.0628746748,
0.1435204595,
-0.3038612604,
0.4575379491,
0.0085153924,
0.1595543325,
0.2568790615,
-0.0430402197,
0.1683445126,
-0.1168815494,
-0.34793064,
-0.2479156554,
0.2199461162,
-0.2961523533,
0.2113552392,
0.1242555305,
-0.4070571363,
0.054158438,
0.3790639341,
0.0197463818,
0.0462707877,
-0.0233377963,
-0.2102936208,
0.0364364386,
0.3277456164,
0.1316284537,
0.2561742961,
0.2758215368,
-0.0519169569,
0.1211837977,
-0.0544184446,
-0.2013663799,
0.1555205584,
-0.0264055431,
-0.1224707291,
0.2315485626,
0.1616037935,
0.093663834,
-0.4347341359,
0.0915908292,
-0.066471599,
0.1618289798,
-0.4015597105,
-0.0091292616,
-0.3828178346,
-0.055713594,
-0.1776840836,
-0.2573938966,
0.0134491911,
-0.3274967968,
0.0290936027,
0.1418607086,
-0.1621785015,
0.2784965038,
-0.0668852031,
0.0994897559,
-0.0259305295,
0.1342011988,
-0.2214833498,
-0.0414212532,
-0.2053794116,
0.0815152302,
-0.0784958303,
-0.019277012,
0.1802260876,
-0.3212566674,
-0.0408071503,
-0.2744916677,
-0.560757935,
0.0327713825,
-0.0596647076,
0.3699052334,
0.1861216575,
0.0378417335,
-0.0787610263,
-0.0280032307,
0.3117527664,
-0.0995519608,
-0.3088871539,
0.1620039344,
0.0437145084,
0.0506079756,
-0.3222824335,
-0.6019360423,
-0.0519945696,
-0.3921588361,
0.2188690901,
-0.0151081737,
-0.0129249273,
0.3306981027,
0.1765702516,
0.2407140583,
-0.0358888917,
0.1884778142,
-0.1856399626,
-0.2366807461,
0.2083813995,
-0.3224650323,
-0.5175801516,
-0.09954945,
-0.0682130232,
0.1749485582,
-0.0706237778,
-0.4018836021,
-0.4492528737,
-0.2838639915,
0.2869094908,
0.0883645117,
0.1963796318,
0.31953457,
-0.0170476772,
-0.0827626884,
-0.2365192622,
-0.244149968,
0.0866851807,
-0.0396276116,
-0.0130336536,
-0.1388915628,
0.3085324168,
-0.0408934504,
0.5791707039,
0.2496649176,
-0.0168729331,
0.5041947365,
-0.1128073782,
0.4734930694,
-0.251737833,
-0.3542967737,
0.0175451413,
-0.0791127831,
0.1667907685,
0.1121935323,
0.0253821425,
0.2566156387,
-0.2126464546,
0.0406621732,
-0.2356364727,
-0.2202086747,
-0.2033108622,
-0.1254197061,
0.1855074316,
0.1336281151,
0.223241359,
-0.1398865432,
0.1517243981,
0.1562120318,
0.2525423467,
0.2819907069,
-0.0382212847,
-0.5950140953,
0.0767665058,
-0.3939025998,
0.1397636682,
-0.1132557169,
0.1827933937,
0.0998653919,
-0.3451109231,
0.0257286765,
-0.0351387523,
0.7139860392,
0.0423452556,
-0.0325626954,
0.1872521043,
-0.3037367761,
-0.4642010629,
-0.297177732,
-0.2848602533,
0.0355189778,
0.1110170484,
0.5587165952,
-0.2462154478,
-0.2049175799,
0.1005873904,
0.1535287201,
-0.1186056733,
-0.0774317831,
-0.3990415633,
-0.1416076869,
-0.2991361618,
0.0244285762,
-0.1126875952,
0.3314489722,
-0.3967134356,
-0.044297684,
-0.0974151492,
-0.0879448876,
0.2755496204,
0.3371759951,
0.4642047584,
-0.0041779736,
0.1841808856,
0.1460017264,
0.2303549051,
-0.0492638499,
0.5531159639,
-0.2130257487,
-0.4674658775,
0.0244176835,
0.0985985696,
0.1919235736,
0.2839531898,
-0.0240091365,
-0.0103207482,
0.0334598348,
0.1660607904,
-0.2219956368,
0.1153500676,
0.2522455752,
0.2117828727,
-0.1972699463,
-0.3600770533,
0.4063872397,
0.2045285106,
-0.082412757,
0.1617421955,
0.3626560867,
-0.2724651694,
0.1963347495,
-0.0735357627,
0.5536629558,
0.1496784389,
0.1112750918,
0.4936061203,
-0.1541039944,
0.4307682216,
0.0282862,
0.0783270001,
-0.3261818886,
-0.4324313998,
0.0743174776,
-0.1420194507,
0.2543086708,
-0.0936190188,
-0.2937712967,
0.2425781637,
-0.0614432432,
0.4228388071,
0.0824264511,
-0.0339254439,
-0.1302327514,
0.0350472629,
-0.4456653893,
0.1646709442,
0.1567229778,
0.2932489812,
-0.0937527344,
-0.0039614211,
-0.1935090423,
-0.2196678519,
-0.0830313414,
0.0144851524,
-0.0773717165,
-0.0803698748,
0.5203552842,
-0.4018165469,
-0.0127799008,
0.3775319159,
0.4443200529,
0.2315761,
-0.1558998823,
0.1234917045,
-0.1541391015,
0.1467104703,
0.0688100532,
0.0588227659,
0.426587522,
0.008839108,
-0.3543610275,
0.1997651607,
-0.07857164,
0.0414835028,
-0.1106426716,
0.1032586396,
-0.1989992857,
-0.3686420023,
-0.2561345994,
-0.0241016094,
0.3485710323,
-0.3951193392,
0.1987586915,
0.0373829156,
-0.2535577416,
-0.0267761555,
0.0863390937,
-0.1882233471,
-0.1651725769,
0.5311196446,
-0.0193644427,
0.0393796042,
0.5470424891,
0.2478715479,
0.1277480423,
-0.1604365408,
-0.2061494291,
0.5066654086,
-0.4009734392,
0.2265547514,
0.0452351682,
-0.089213632,
0.1041069031,
0.4483320117,
0.0892235935,
-0.0738572553,
0.0025199815,
-0.3323084414,
-0.1668224037,
0.3269214332,
0.1018108726,
0.2001242489,
0.0230575223,
-0.0447381884,
-0.1990042776,
-0.0821899623,
-0.3838168383,
0.2317102402,
-0.094681561,
0.0080049541,
0.212074101,
-0.1800937802,
-0.0082779489,
-0.2439625561,
0.1769245565,
0.0115246437,
-0.2337290049,
-0.2896286249,
-0.3416273892,
0.0659957528,
-0.0873745382,
0.0409727059,
0.0703092143,
0.2501469254,
-0.0465175398,
-0.234109357,
0.4098848104,
0.1118883491,
0.0351813324,
0.3403913677,
0.0676625744,
0.2168429345,
0.0177232157,
0.0183653571,
0.0346433185,
-0.2447931617,
0.0253431424,
0.0001912843,
-0.1700791717,
0.0921724364,
-0.0091776121,
0.0785144046,
-0.0332647152,
0.1704270393,
0.3056046963,
-0.257522583,
0.1769665927,
0.1408842653,
0.352560699,
0.1656520069,
-0.159872219,
0.0883125365,
0.1280992627,
0.3033127189,
-0.4272122681,
-0.0639279559,
0.2238363475,
0.0988453925,
0.1989062577,
0.1681094915,
0.258857131,
-0.155389607,
0.1838713288,
0.2872074246,
0.2977751791,
0.0588257723,
0.4726626873,
0.4331970215,
-0.0707347691,
0.0708426908,
0.0488207415,
-0.134585619,
-0.0628407225,
0.1558621377,
0.0048355246,
0.2499201298,
-0.0062113632,
0.2208318561,
0.0963631943,
-0.3939106762,
0.0906688645,
0.0238969829,
-0.1729887277,
0.0662117526,
-0.2123369873,
0.4334922135,
-0.361432761,
-0.120697245,
-0.3567313552,
0.1053316146,
-0.2042128295,
-0.3059581518,
0.0030264906,
-0.3322758973,
0.0044144508,
0.0047752229,
-0.062540561,
-0.1204759255,
0.0704387948,
-0.2905164957,
-0.2438585609,
-0.4311001897,
-0.1374060214,
0.0425178334,
0.3430761397,
0.0285756551,
0.3047436476,
0.2961230576,
-0.2466678321,
0.0738858879,
0.2899469435,
0.383807689,
0.1648387909,
0.2314525992,
0.1832719445,
-0.0433592796,
-0.0505382754,
-0.0270365886,
0.4476382732,
0.0484031625,
-0.1019552127,
0.1409863383,
0.1902392209,
-0.2589709163,
0.1088000536,
-0.1060952991,
0.3722572327,
-0.5927894115,
0.4981980026,
-0.2803738415,
-0.1138891727,
-0.0999374911,
0.0030348175,
-0.2672679424,
-0.0495250821,
0.108797729,
0.2101290375,
0.1017582789,
-0.2689724565,
0.1186591089,
-0.1392235309,
0.3404169381,
0.2487783283,
-0.0429073125,
-0.1308289915,
-0.1528423727,
-0.7432309985,
0.1535543352,
0.0611758679,
0.1751804799,
-0.0314455479,
-0.097096689,
-0.0853766799,
-0.1342229545,
-0.0217108056,
-0.0817594007,
0.0910399184,
0.0566201694,
-0.5897562504,
-0.1216537133,
-0.1023666412,
0.0624366924,
0.0834658891,
-0.1358577311,
0.080984138,
-0.1761588305,
0.0153289493,
0.0799396932,
0.0850727335,
-0.025912283,
-0.1229671165,
0.2948429286,
0.153270483,
0.1271879822,
0.0400281921,
-0.151907295,
-0.3101460934,
-0.2387505621,
-0.1656613052,
0.2701582015,
-0.1824702322,
0.3968471587,
0.0809883177,
-0.2206905335,
-0.0346899927,
0.270983398,
0.4008368552,
-0.1768425852,
-0.3122388124,
0.1839415878,
0.009621527,
-0.1361798197,
0.3327705562,
0.3300030231,
-0.0209807623,
0.1815216988,
-0.2580749691,
-0.4261649847,
0.5998721123,
-0.4396130443,
-0.0209706444,
-0.3280789554,
0.1557830423,
0.1412993073,
-0.3467077613,
-0.6606488228,
0.047875993,
0.3967241347,
-0.2428271174,
-0.1624283791,
0.3853439093,
-0.0664640591,
0.0902094319,
-0.0564068928,
0.3422391117,
0.1525709927,
-0.2761006057,
0.2225066721,
-0.115247041
] |
https://github.com/huggingface/datasets/issues/3236 | Loading of datasets changed in #3110 returns no examples | I just tried again on python 3.8 and I was able to reproduce the issue. Let me work on a fix | ## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
| 21 | Loading of datasets changed in #3110 returns no examples
## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
I just tried again on python 3.8 and I was able to reproduce the issue. Let me work on a fix | [
0.0481985547,
-0.0869977772,
-0.0242289286,
0.2818650603,
0.3240279555,
-0.0273514315,
0.2742410302,
0.2374753803,
0.1709858179,
0.2015544921,
-0.071567364,
0.3162328601,
-0.0423279032,
0.1720466316,
0.1071109399,
-0.2534898818,
0.1101513356,
0.1358653903,
-0.3096776307,
-0.0174040012,
-0.0312138814,
0.309874475,
-0.2977308333,
-0.0926481485,
-0.2869768143,
0.2120055258,
-0.3142178953,
0.1809690744,
-0.1463450789,
-0.3778193295,
0.3804140091,
0.0857021958,
0.1420219392,
0.6262398362,
-0.0001108685,
0.1710153222,
0.1643774956,
-0.1009757444,
-0.2533086538,
-0.4094510972,
-0.0717468187,
-0.4076809883,
0.1379687339,
-0.084017612,
-0.3382483721,
-0.3250946105,
-0.2067218423,
-0.102931641,
0.4555372298,
0.3552950621,
0.24130252,
0.4862983227,
0.0441145375,
-0.3515443802,
0.0134593481,
-0.1009906381,
-0.0108463569,
0.0179694537,
0.1658859551,
0.1214357018,
0.0917913914,
0.1937300712,
0.1166708693,
-0.1438785791,
0.1437006593,
-0.103102617,
-0.1645518988,
-0.1611696184,
0.032573849,
0.3317503333,
0.4173805714,
-0.2056090087,
-0.5523957014,
-0.3343687057,
-0.0657659248,
-0.3471269906,
0.1069067344,
0.1082367301,
0.0765274093,
0.2580417991,
-0.1972233504,
0.1033517867,
-0.0616275854,
0.0491028875,
-0.2557571232,
0.0730323792,
-0.1191485971,
-0.128347367,
-0.0014370769,
-0.0417608656,
-0.1048920825,
0.0154958405,
-0.0036514674,
0.1501371115,
-0.4318972826,
0.0554301888,
0.237555027,
0.0125551922,
-0.0146852667,
0.2383976281,
0.2823119462,
0.2580575645,
-0.101495631,
0.0426575281,
0.0553131253,
0.4307948649,
0.098954536,
-0.0112817166,
0.355548799,
0.3903166652,
-0.0860642046,
-0.0921304226,
-0.0349751972,
-0.1879226714,
0.1101073697,
0.0507210083,
0.2734404206,
-0.2016669214,
-0.2322236449,
0.2300948054,
-0.2371390313,
-0.0756455138,
0.0285549033,
0.5070344806,
-0.077991493,
0.08678817,
0.034564849,
0.1759791076,
-0.150269255,
-0.300608784,
-0.4464168251,
-0.0316898972,
-0.3254978359,
-0.0998989344,
0.2723427713,
-0.1960325986,
0.4132773876,
0.0805029795,
-0.144823119,
-0.0651482567,
0.0624424405,
0.1992405951,
0.1993406117,
0.284948945,
-0.0595134757,
-0.0106598837,
0.2917138636,
-0.058343932,
0.0071220989,
0.0480790474,
-0.2429095656,
-0.2783380747,
-0.1120141298,
0.2665143311,
-0.4614020586,
-0.0228121709,
-0.0224671103,
0.1883604974,
0.0015456961,
-0.0524671115,
0.0370658301,
-0.1295342594,
-0.0360486507,
-0.0366939195,
0.457509011,
0.4533717334,
-0.1228636429,
-0.3646816015,
0.2155804932,
-0.0941883922,
0.008020224,
0.0213709082,
-0.006280418,
0.0874582529,
-0.2322479934,
-0.122004509,
0.2858052552,
-0.2465897799,
-0.4048401117,
-0.0766043887,
-0.0211876351,
0.4242129326,
0.2083308101,
-0.252592653,
0.0246394444,
0.0277144462,
0.127171725,
-0.0023789413,
0.2605974674,
0.0864496306,
-0.1792177707,
-0.1496765763,
0.0313813165,
-0.0087175071,
0.0463232808,
0.2363817245,
-0.0460510738,
-0.1425697058,
0.3198089898,
-0.262978673,
-0.1114747152,
0.2994379699,
0.3906705081,
0.033493869,
0.2075453401,
-0.2101998925,
-0.5983011723,
0.4261897504,
0.0083911056,
0.1736965626,
0.1064665988,
-0.1905424595,
-0.3390614092,
-0.0319934823,
-0.2173842341,
-0.4623178244,
0.1443420053,
0.1712841839,
0.311358124,
0.1133099794,
-0.2209654897,
0.4782706797,
-0.1391461045,
0.2466123402,
-0.4244334102,
0.355330348,
0.049485445,
-0.1585935801,
0.0004656407,
0.3790495098,
0.0895048529,
-0.2791751325,
-0.0319349766,
0.4426726997,
0.0848304033,
0.1269909889,
-0.1665707678,
0.0341465548,
0.3217850626,
0.1063588038,
-0.0502241664,
0.189823553,
-0.0628746748,
0.1435204595,
-0.3038612604,
0.4575379491,
0.0085153924,
0.1595543325,
0.2568790615,
-0.0430402197,
0.1683445126,
-0.1168815494,
-0.34793064,
-0.2479156554,
0.2199461162,
-0.2961523533,
0.2113552392,
0.1242555305,
-0.4070571363,
0.054158438,
0.3790639341,
0.0197463818,
0.0462707877,
-0.0233377963,
-0.2102936208,
0.0364364386,
0.3277456164,
0.1316284537,
0.2561742961,
0.2758215368,
-0.0519169569,
0.1211837977,
-0.0544184446,
-0.2013663799,
0.1555205584,
-0.0264055431,
-0.1224707291,
0.2315485626,
0.1616037935,
0.093663834,
-0.4347341359,
0.0915908292,
-0.066471599,
0.1618289798,
-0.4015597105,
-0.0091292616,
-0.3828178346,
-0.055713594,
-0.1776840836,
-0.2573938966,
0.0134491911,
-0.3274967968,
0.0290936027,
0.1418607086,
-0.1621785015,
0.2784965038,
-0.0668852031,
0.0994897559,
-0.0259305295,
0.1342011988,
-0.2214833498,
-0.0414212532,
-0.2053794116,
0.0815152302,
-0.0784958303,
-0.019277012,
0.1802260876,
-0.3212566674,
-0.0408071503,
-0.2744916677,
-0.560757935,
0.0327713825,
-0.0596647076,
0.3699052334,
0.1861216575,
0.0378417335,
-0.0787610263,
-0.0280032307,
0.3117527664,
-0.0995519608,
-0.3088871539,
0.1620039344,
0.0437145084,
0.0506079756,
-0.3222824335,
-0.6019360423,
-0.0519945696,
-0.3921588361,
0.2188690901,
-0.0151081737,
-0.0129249273,
0.3306981027,
0.1765702516,
0.2407140583,
-0.0358888917,
0.1884778142,
-0.1856399626,
-0.2366807461,
0.2083813995,
-0.3224650323,
-0.5175801516,
-0.09954945,
-0.0682130232,
0.1749485582,
-0.0706237778,
-0.4018836021,
-0.4492528737,
-0.2838639915,
0.2869094908,
0.0883645117,
0.1963796318,
0.31953457,
-0.0170476772,
-0.0827626884,
-0.2365192622,
-0.244149968,
0.0866851807,
-0.0396276116,
-0.0130336536,
-0.1388915628,
0.3085324168,
-0.0408934504,
0.5791707039,
0.2496649176,
-0.0168729331,
0.5041947365,
-0.1128073782,
0.4734930694,
-0.251737833,
-0.3542967737,
0.0175451413,
-0.0791127831,
0.1667907685,
0.1121935323,
0.0253821425,
0.2566156387,
-0.2126464546,
0.0406621732,
-0.2356364727,
-0.2202086747,
-0.2033108622,
-0.1254197061,
0.1855074316,
0.1336281151,
0.223241359,
-0.1398865432,
0.1517243981,
0.1562120318,
0.2525423467,
0.2819907069,
-0.0382212847,
-0.5950140953,
0.0767665058,
-0.3939025998,
0.1397636682,
-0.1132557169,
0.1827933937,
0.0998653919,
-0.3451109231,
0.0257286765,
-0.0351387523,
0.7139860392,
0.0423452556,
-0.0325626954,
0.1872521043,
-0.3037367761,
-0.4642010629,
-0.297177732,
-0.2848602533,
0.0355189778,
0.1110170484,
0.5587165952,
-0.2462154478,
-0.2049175799,
0.1005873904,
0.1535287201,
-0.1186056733,
-0.0774317831,
-0.3990415633,
-0.1416076869,
-0.2991361618,
0.0244285762,
-0.1126875952,
0.3314489722,
-0.3967134356,
-0.044297684,
-0.0974151492,
-0.0879448876,
0.2755496204,
0.3371759951,
0.4642047584,
-0.0041779736,
0.1841808856,
0.1460017264,
0.2303549051,
-0.0492638499,
0.5531159639,
-0.2130257487,
-0.4674658775,
0.0244176835,
0.0985985696,
0.1919235736,
0.2839531898,
-0.0240091365,
-0.0103207482,
0.0334598348,
0.1660607904,
-0.2219956368,
0.1153500676,
0.2522455752,
0.2117828727,
-0.1972699463,
-0.3600770533,
0.4063872397,
0.2045285106,
-0.082412757,
0.1617421955,
0.3626560867,
-0.2724651694,
0.1963347495,
-0.0735357627,
0.5536629558,
0.1496784389,
0.1112750918,
0.4936061203,
-0.1541039944,
0.4307682216,
0.0282862,
0.0783270001,
-0.3261818886,
-0.4324313998,
0.0743174776,
-0.1420194507,
0.2543086708,
-0.0936190188,
-0.2937712967,
0.2425781637,
-0.0614432432,
0.4228388071,
0.0824264511,
-0.0339254439,
-0.1302327514,
0.0350472629,
-0.4456653893,
0.1646709442,
0.1567229778,
0.2932489812,
-0.0937527344,
-0.0039614211,
-0.1935090423,
-0.2196678519,
-0.0830313414,
0.0144851524,
-0.0773717165,
-0.0803698748,
0.5203552842,
-0.4018165469,
-0.0127799008,
0.3775319159,
0.4443200529,
0.2315761,
-0.1558998823,
0.1234917045,
-0.1541391015,
0.1467104703,
0.0688100532,
0.0588227659,
0.426587522,
0.008839108,
-0.3543610275,
0.1997651607,
-0.07857164,
0.0414835028,
-0.1106426716,
0.1032586396,
-0.1989992857,
-0.3686420023,
-0.2561345994,
-0.0241016094,
0.3485710323,
-0.3951193392,
0.1987586915,
0.0373829156,
-0.2535577416,
-0.0267761555,
0.0863390937,
-0.1882233471,
-0.1651725769,
0.5311196446,
-0.0193644427,
0.0393796042,
0.5470424891,
0.2478715479,
0.1277480423,
-0.1604365408,
-0.2061494291,
0.5066654086,
-0.4009734392,
0.2265547514,
0.0452351682,
-0.089213632,
0.1041069031,
0.4483320117,
0.0892235935,
-0.0738572553,
0.0025199815,
-0.3323084414,
-0.1668224037,
0.3269214332,
0.1018108726,
0.2001242489,
0.0230575223,
-0.0447381884,
-0.1990042776,
-0.0821899623,
-0.3838168383,
0.2317102402,
-0.094681561,
0.0080049541,
0.212074101,
-0.1800937802,
-0.0082779489,
-0.2439625561,
0.1769245565,
0.0115246437,
-0.2337290049,
-0.2896286249,
-0.3416273892,
0.0659957528,
-0.0873745382,
0.0409727059,
0.0703092143,
0.2501469254,
-0.0465175398,
-0.234109357,
0.4098848104,
0.1118883491,
0.0351813324,
0.3403913677,
0.0676625744,
0.2168429345,
0.0177232157,
0.0183653571,
0.0346433185,
-0.2447931617,
0.0253431424,
0.0001912843,
-0.1700791717,
0.0921724364,
-0.0091776121,
0.0785144046,
-0.0332647152,
0.1704270393,
0.3056046963,
-0.257522583,
0.1769665927,
0.1408842653,
0.352560699,
0.1656520069,
-0.159872219,
0.0883125365,
0.1280992627,
0.3033127189,
-0.4272122681,
-0.0639279559,
0.2238363475,
0.0988453925,
0.1989062577,
0.1681094915,
0.258857131,
-0.155389607,
0.1838713288,
0.2872074246,
0.2977751791,
0.0588257723,
0.4726626873,
0.4331970215,
-0.0707347691,
0.0708426908,
0.0488207415,
-0.134585619,
-0.0628407225,
0.1558621377,
0.0048355246,
0.2499201298,
-0.0062113632,
0.2208318561,
0.0963631943,
-0.3939106762,
0.0906688645,
0.0238969829,
-0.1729887277,
0.0662117526,
-0.2123369873,
0.4334922135,
-0.361432761,
-0.120697245,
-0.3567313552,
0.1053316146,
-0.2042128295,
-0.3059581518,
0.0030264906,
-0.3322758973,
0.0044144508,
0.0047752229,
-0.062540561,
-0.1204759255,
0.0704387948,
-0.2905164957,
-0.2438585609,
-0.4311001897,
-0.1374060214,
0.0425178334,
0.3430761397,
0.0285756551,
0.3047436476,
0.2961230576,
-0.2466678321,
0.0738858879,
0.2899469435,
0.383807689,
0.1648387909,
0.2314525992,
0.1832719445,
-0.0433592796,
-0.0505382754,
-0.0270365886,
0.4476382732,
0.0484031625,
-0.1019552127,
0.1409863383,
0.1902392209,
-0.2589709163,
0.1088000536,
-0.1060952991,
0.3722572327,
-0.5927894115,
0.4981980026,
-0.2803738415,
-0.1138891727,
-0.0999374911,
0.0030348175,
-0.2672679424,
-0.0495250821,
0.108797729,
0.2101290375,
0.1017582789,
-0.2689724565,
0.1186591089,
-0.1392235309,
0.3404169381,
0.2487783283,
-0.0429073125,
-0.1308289915,
-0.1528423727,
-0.7432309985,
0.1535543352,
0.0611758679,
0.1751804799,
-0.0314455479,
-0.097096689,
-0.0853766799,
-0.1342229545,
-0.0217108056,
-0.0817594007,
0.0910399184,
0.0566201694,
-0.5897562504,
-0.1216537133,
-0.1023666412,
0.0624366924,
0.0834658891,
-0.1358577311,
0.080984138,
-0.1761588305,
0.0153289493,
0.0799396932,
0.0850727335,
-0.025912283,
-0.1229671165,
0.2948429286,
0.153270483,
0.1271879822,
0.0400281921,
-0.151907295,
-0.3101460934,
-0.2387505621,
-0.1656613052,
0.2701582015,
-0.1824702322,
0.3968471587,
0.0809883177,
-0.2206905335,
-0.0346899927,
0.270983398,
0.4008368552,
-0.1768425852,
-0.3122388124,
0.1839415878,
0.009621527,
-0.1361798197,
0.3327705562,
0.3300030231,
-0.0209807623,
0.1815216988,
-0.2580749691,
-0.4261649847,
0.5998721123,
-0.4396130443,
-0.0209706444,
-0.3280789554,
0.1557830423,
0.1412993073,
-0.3467077613,
-0.6606488228,
0.047875993,
0.3967241347,
-0.2428271174,
-0.1624283791,
0.3853439093,
-0.0664640591,
0.0902094319,
-0.0564068928,
0.3422391117,
0.1525709927,
-0.2761006057,
0.2225066721,
-0.115247041
] |
https://github.com/huggingface/datasets/issues/3236 | Loading of datasets changed in #3110 returns no examples | Ok I found the issue. It's not related to python 3.8 in itself though. This issue happens because your local installation of `datasets` is outdated compared to the changes to datasets in #3110
To fix this you just have to pull the latest changes from `master` :)
Let me know if that helps !
--------------
Here are more details about my investigation:
It's possible to reproduce this issue if you use `datasets<=1.15.1` or before b6469baa22c174b3906c631802a7016fedea6780 and if you load the dataset after revision b6469baa22c174b3906c631802a7016fedea6780. This is because `dl_manager.iter_archive` had issues at that time (and it was not used anywhere anyway).
In particular it was returning the absolute path to extracted files instead of the relative path of the file inside the archive. This was an issue because `dl_manager.iter_archive` isn't supposed to extract the TAR archive. Instead, it iterates over all the files inside the archive, without creating a directory with the extracted content.
Therefore if you want to use the datasets on `master`, make sure that you have an up-to-date local installation of `datasets` as well, or you may face incompatibilities like this. | ## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
| 183 | Loading of datasets changed in #3110 returns no examples
## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
Ok I found the issue. It's not related to python 3.8 in itself though. This issue happens because your local installation of `datasets` is outdated compared to the changes to datasets in #3110
To fix this you just have to pull the latest changes from `master` :)
Let me know if that helps !
--------------
Here are more details about my investigation:
It's possible to reproduce this issue if you use `datasets<=1.15.1` or before b6469baa22c174b3906c631802a7016fedea6780 and if you load the dataset after revision b6469baa22c174b3906c631802a7016fedea6780. This is because `dl_manager.iter_archive` had issues at that time (and it was not used anywhere anyway).
In particular it was returning the absolute path to extracted files instead of the relative path of the file inside the archive. This was an issue because `dl_manager.iter_archive` isn't supposed to extract the TAR archive. Instead, it iterates over all the files inside the archive, without creating a directory with the extracted content.
Therefore if you want to use the datasets on `master`, make sure that you have an up-to-date local installation of `datasets` as well, or you may face incompatibilities like this. | [
0.0481985547,
-0.0869977772,
-0.0242289286,
0.2818650603,
0.3240279555,
-0.0273514315,
0.2742410302,
0.2374753803,
0.1709858179,
0.2015544921,
-0.071567364,
0.3162328601,
-0.0423279032,
0.1720466316,
0.1071109399,
-0.2534898818,
0.1101513356,
0.1358653903,
-0.3096776307,
-0.0174040012,
-0.0312138814,
0.309874475,
-0.2977308333,
-0.0926481485,
-0.2869768143,
0.2120055258,
-0.3142178953,
0.1809690744,
-0.1463450789,
-0.3778193295,
0.3804140091,
0.0857021958,
0.1420219392,
0.6262398362,
-0.0001108685,
0.1710153222,
0.1643774956,
-0.1009757444,
-0.2533086538,
-0.4094510972,
-0.0717468187,
-0.4076809883,
0.1379687339,
-0.084017612,
-0.3382483721,
-0.3250946105,
-0.2067218423,
-0.102931641,
0.4555372298,
0.3552950621,
0.24130252,
0.4862983227,
0.0441145375,
-0.3515443802,
0.0134593481,
-0.1009906381,
-0.0108463569,
0.0179694537,
0.1658859551,
0.1214357018,
0.0917913914,
0.1937300712,
0.1166708693,
-0.1438785791,
0.1437006593,
-0.103102617,
-0.1645518988,
-0.1611696184,
0.032573849,
0.3317503333,
0.4173805714,
-0.2056090087,
-0.5523957014,
-0.3343687057,
-0.0657659248,
-0.3471269906,
0.1069067344,
0.1082367301,
0.0765274093,
0.2580417991,
-0.1972233504,
0.1033517867,
-0.0616275854,
0.0491028875,
-0.2557571232,
0.0730323792,
-0.1191485971,
-0.128347367,
-0.0014370769,
-0.0417608656,
-0.1048920825,
0.0154958405,
-0.0036514674,
0.1501371115,
-0.4318972826,
0.0554301888,
0.237555027,
0.0125551922,
-0.0146852667,
0.2383976281,
0.2823119462,
0.2580575645,
-0.101495631,
0.0426575281,
0.0553131253,
0.4307948649,
0.098954536,
-0.0112817166,
0.355548799,
0.3903166652,
-0.0860642046,
-0.0921304226,
-0.0349751972,
-0.1879226714,
0.1101073697,
0.0507210083,
0.2734404206,
-0.2016669214,
-0.2322236449,
0.2300948054,
-0.2371390313,
-0.0756455138,
0.0285549033,
0.5070344806,
-0.077991493,
0.08678817,
0.034564849,
0.1759791076,
-0.150269255,
-0.300608784,
-0.4464168251,
-0.0316898972,
-0.3254978359,
-0.0998989344,
0.2723427713,
-0.1960325986,
0.4132773876,
0.0805029795,
-0.144823119,
-0.0651482567,
0.0624424405,
0.1992405951,
0.1993406117,
0.284948945,
-0.0595134757,
-0.0106598837,
0.2917138636,
-0.058343932,
0.0071220989,
0.0480790474,
-0.2429095656,
-0.2783380747,
-0.1120141298,
0.2665143311,
-0.4614020586,
-0.0228121709,
-0.0224671103,
0.1883604974,
0.0015456961,
-0.0524671115,
0.0370658301,
-0.1295342594,
-0.0360486507,
-0.0366939195,
0.457509011,
0.4533717334,
-0.1228636429,
-0.3646816015,
0.2155804932,
-0.0941883922,
0.008020224,
0.0213709082,
-0.006280418,
0.0874582529,
-0.2322479934,
-0.122004509,
0.2858052552,
-0.2465897799,
-0.4048401117,
-0.0766043887,
-0.0211876351,
0.4242129326,
0.2083308101,
-0.252592653,
0.0246394444,
0.0277144462,
0.127171725,
-0.0023789413,
0.2605974674,
0.0864496306,
-0.1792177707,
-0.1496765763,
0.0313813165,
-0.0087175071,
0.0463232808,
0.2363817245,
-0.0460510738,
-0.1425697058,
0.3198089898,
-0.262978673,
-0.1114747152,
0.2994379699,
0.3906705081,
0.033493869,
0.2075453401,
-0.2101998925,
-0.5983011723,
0.4261897504,
0.0083911056,
0.1736965626,
0.1064665988,
-0.1905424595,
-0.3390614092,
-0.0319934823,
-0.2173842341,
-0.4623178244,
0.1443420053,
0.1712841839,
0.311358124,
0.1133099794,
-0.2209654897,
0.4782706797,
-0.1391461045,
0.2466123402,
-0.4244334102,
0.355330348,
0.049485445,
-0.1585935801,
0.0004656407,
0.3790495098,
0.0895048529,
-0.2791751325,
-0.0319349766,
0.4426726997,
0.0848304033,
0.1269909889,
-0.1665707678,
0.0341465548,
0.3217850626,
0.1063588038,
-0.0502241664,
0.189823553,
-0.0628746748,
0.1435204595,
-0.3038612604,
0.4575379491,
0.0085153924,
0.1595543325,
0.2568790615,
-0.0430402197,
0.1683445126,
-0.1168815494,
-0.34793064,
-0.2479156554,
0.2199461162,
-0.2961523533,
0.2113552392,
0.1242555305,
-0.4070571363,
0.054158438,
0.3790639341,
0.0197463818,
0.0462707877,
-0.0233377963,
-0.2102936208,
0.0364364386,
0.3277456164,
0.1316284537,
0.2561742961,
0.2758215368,
-0.0519169569,
0.1211837977,
-0.0544184446,
-0.2013663799,
0.1555205584,
-0.0264055431,
-0.1224707291,
0.2315485626,
0.1616037935,
0.093663834,
-0.4347341359,
0.0915908292,
-0.066471599,
0.1618289798,
-0.4015597105,
-0.0091292616,
-0.3828178346,
-0.055713594,
-0.1776840836,
-0.2573938966,
0.0134491911,
-0.3274967968,
0.0290936027,
0.1418607086,
-0.1621785015,
0.2784965038,
-0.0668852031,
0.0994897559,
-0.0259305295,
0.1342011988,
-0.2214833498,
-0.0414212532,
-0.2053794116,
0.0815152302,
-0.0784958303,
-0.019277012,
0.1802260876,
-0.3212566674,
-0.0408071503,
-0.2744916677,
-0.560757935,
0.0327713825,
-0.0596647076,
0.3699052334,
0.1861216575,
0.0378417335,
-0.0787610263,
-0.0280032307,
0.3117527664,
-0.0995519608,
-0.3088871539,
0.1620039344,
0.0437145084,
0.0506079756,
-0.3222824335,
-0.6019360423,
-0.0519945696,
-0.3921588361,
0.2188690901,
-0.0151081737,
-0.0129249273,
0.3306981027,
0.1765702516,
0.2407140583,
-0.0358888917,
0.1884778142,
-0.1856399626,
-0.2366807461,
0.2083813995,
-0.3224650323,
-0.5175801516,
-0.09954945,
-0.0682130232,
0.1749485582,
-0.0706237778,
-0.4018836021,
-0.4492528737,
-0.2838639915,
0.2869094908,
0.0883645117,
0.1963796318,
0.31953457,
-0.0170476772,
-0.0827626884,
-0.2365192622,
-0.244149968,
0.0866851807,
-0.0396276116,
-0.0130336536,
-0.1388915628,
0.3085324168,
-0.0408934504,
0.5791707039,
0.2496649176,
-0.0168729331,
0.5041947365,
-0.1128073782,
0.4734930694,
-0.251737833,
-0.3542967737,
0.0175451413,
-0.0791127831,
0.1667907685,
0.1121935323,
0.0253821425,
0.2566156387,
-0.2126464546,
0.0406621732,
-0.2356364727,
-0.2202086747,
-0.2033108622,
-0.1254197061,
0.1855074316,
0.1336281151,
0.223241359,
-0.1398865432,
0.1517243981,
0.1562120318,
0.2525423467,
0.2819907069,
-0.0382212847,
-0.5950140953,
0.0767665058,
-0.3939025998,
0.1397636682,
-0.1132557169,
0.1827933937,
0.0998653919,
-0.3451109231,
0.0257286765,
-0.0351387523,
0.7139860392,
0.0423452556,
-0.0325626954,
0.1872521043,
-0.3037367761,
-0.4642010629,
-0.297177732,
-0.2848602533,
0.0355189778,
0.1110170484,
0.5587165952,
-0.2462154478,
-0.2049175799,
0.1005873904,
0.1535287201,
-0.1186056733,
-0.0774317831,
-0.3990415633,
-0.1416076869,
-0.2991361618,
0.0244285762,
-0.1126875952,
0.3314489722,
-0.3967134356,
-0.044297684,
-0.0974151492,
-0.0879448876,
0.2755496204,
0.3371759951,
0.4642047584,
-0.0041779736,
0.1841808856,
0.1460017264,
0.2303549051,
-0.0492638499,
0.5531159639,
-0.2130257487,
-0.4674658775,
0.0244176835,
0.0985985696,
0.1919235736,
0.2839531898,
-0.0240091365,
-0.0103207482,
0.0334598348,
0.1660607904,
-0.2219956368,
0.1153500676,
0.2522455752,
0.2117828727,
-0.1972699463,
-0.3600770533,
0.4063872397,
0.2045285106,
-0.082412757,
0.1617421955,
0.3626560867,
-0.2724651694,
0.1963347495,
-0.0735357627,
0.5536629558,
0.1496784389,
0.1112750918,
0.4936061203,
-0.1541039944,
0.4307682216,
0.0282862,
0.0783270001,
-0.3261818886,
-0.4324313998,
0.0743174776,
-0.1420194507,
0.2543086708,
-0.0936190188,
-0.2937712967,
0.2425781637,
-0.0614432432,
0.4228388071,
0.0824264511,
-0.0339254439,
-0.1302327514,
0.0350472629,
-0.4456653893,
0.1646709442,
0.1567229778,
0.2932489812,
-0.0937527344,
-0.0039614211,
-0.1935090423,
-0.2196678519,
-0.0830313414,
0.0144851524,
-0.0773717165,
-0.0803698748,
0.5203552842,
-0.4018165469,
-0.0127799008,
0.3775319159,
0.4443200529,
0.2315761,
-0.1558998823,
0.1234917045,
-0.1541391015,
0.1467104703,
0.0688100532,
0.0588227659,
0.426587522,
0.008839108,
-0.3543610275,
0.1997651607,
-0.07857164,
0.0414835028,
-0.1106426716,
0.1032586396,
-0.1989992857,
-0.3686420023,
-0.2561345994,
-0.0241016094,
0.3485710323,
-0.3951193392,
0.1987586915,
0.0373829156,
-0.2535577416,
-0.0267761555,
0.0863390937,
-0.1882233471,
-0.1651725769,
0.5311196446,
-0.0193644427,
0.0393796042,
0.5470424891,
0.2478715479,
0.1277480423,
-0.1604365408,
-0.2061494291,
0.5066654086,
-0.4009734392,
0.2265547514,
0.0452351682,
-0.089213632,
0.1041069031,
0.4483320117,
0.0892235935,
-0.0738572553,
0.0025199815,
-0.3323084414,
-0.1668224037,
0.3269214332,
0.1018108726,
0.2001242489,
0.0230575223,
-0.0447381884,
-0.1990042776,
-0.0821899623,
-0.3838168383,
0.2317102402,
-0.094681561,
0.0080049541,
0.212074101,
-0.1800937802,
-0.0082779489,
-0.2439625561,
0.1769245565,
0.0115246437,
-0.2337290049,
-0.2896286249,
-0.3416273892,
0.0659957528,
-0.0873745382,
0.0409727059,
0.0703092143,
0.2501469254,
-0.0465175398,
-0.234109357,
0.4098848104,
0.1118883491,
0.0351813324,
0.3403913677,
0.0676625744,
0.2168429345,
0.0177232157,
0.0183653571,
0.0346433185,
-0.2447931617,
0.0253431424,
0.0001912843,
-0.1700791717,
0.0921724364,
-0.0091776121,
0.0785144046,
-0.0332647152,
0.1704270393,
0.3056046963,
-0.257522583,
0.1769665927,
0.1408842653,
0.352560699,
0.1656520069,
-0.159872219,
0.0883125365,
0.1280992627,
0.3033127189,
-0.4272122681,
-0.0639279559,
0.2238363475,
0.0988453925,
0.1989062577,
0.1681094915,
0.258857131,
-0.155389607,
0.1838713288,
0.2872074246,
0.2977751791,
0.0588257723,
0.4726626873,
0.4331970215,
-0.0707347691,
0.0708426908,
0.0488207415,
-0.134585619,
-0.0628407225,
0.1558621377,
0.0048355246,
0.2499201298,
-0.0062113632,
0.2208318561,
0.0963631943,
-0.3939106762,
0.0906688645,
0.0238969829,
-0.1729887277,
0.0662117526,
-0.2123369873,
0.4334922135,
-0.361432761,
-0.120697245,
-0.3567313552,
0.1053316146,
-0.2042128295,
-0.3059581518,
0.0030264906,
-0.3322758973,
0.0044144508,
0.0047752229,
-0.062540561,
-0.1204759255,
0.0704387948,
-0.2905164957,
-0.2438585609,
-0.4311001897,
-0.1374060214,
0.0425178334,
0.3430761397,
0.0285756551,
0.3047436476,
0.2961230576,
-0.2466678321,
0.0738858879,
0.2899469435,
0.383807689,
0.1648387909,
0.2314525992,
0.1832719445,
-0.0433592796,
-0.0505382754,
-0.0270365886,
0.4476382732,
0.0484031625,
-0.1019552127,
0.1409863383,
0.1902392209,
-0.2589709163,
0.1088000536,
-0.1060952991,
0.3722572327,
-0.5927894115,
0.4981980026,
-0.2803738415,
-0.1138891727,
-0.0999374911,
0.0030348175,
-0.2672679424,
-0.0495250821,
0.108797729,
0.2101290375,
0.1017582789,
-0.2689724565,
0.1186591089,
-0.1392235309,
0.3404169381,
0.2487783283,
-0.0429073125,
-0.1308289915,
-0.1528423727,
-0.7432309985,
0.1535543352,
0.0611758679,
0.1751804799,
-0.0314455479,
-0.097096689,
-0.0853766799,
-0.1342229545,
-0.0217108056,
-0.0817594007,
0.0910399184,
0.0566201694,
-0.5897562504,
-0.1216537133,
-0.1023666412,
0.0624366924,
0.0834658891,
-0.1358577311,
0.080984138,
-0.1761588305,
0.0153289493,
0.0799396932,
0.0850727335,
-0.025912283,
-0.1229671165,
0.2948429286,
0.153270483,
0.1271879822,
0.0400281921,
-0.151907295,
-0.3101460934,
-0.2387505621,
-0.1656613052,
0.2701582015,
-0.1824702322,
0.3968471587,
0.0809883177,
-0.2206905335,
-0.0346899927,
0.270983398,
0.4008368552,
-0.1768425852,
-0.3122388124,
0.1839415878,
0.009621527,
-0.1361798197,
0.3327705562,
0.3300030231,
-0.0209807623,
0.1815216988,
-0.2580749691,
-0.4261649847,
0.5998721123,
-0.4396130443,
-0.0209706444,
-0.3280789554,
0.1557830423,
0.1412993073,
-0.3467077613,
-0.6606488228,
0.047875993,
0.3967241347,
-0.2428271174,
-0.1624283791,
0.3853439093,
-0.0664640591,
0.0902094319,
-0.0564068928,
0.3422391117,
0.1525709927,
-0.2761006057,
0.2225066721,
-0.115247041
] |
https://github.com/huggingface/datasets/issues/3236 | Loading of datasets changed in #3110 returns no examples | Thanks!
But what about code that is already using older version of datasets?
The reason I encountered this issue was that suddenly one of my repos with version 1.12.1 started getting 0 examples.
I handled it by adding `revision` to `load_dataset`, but I guess it would still be an issue for other users who doesn't know this. | ## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
| 57 | Loading of datasets changed in #3110 returns no examples
## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
Thanks!
But what about code that is already using older version of datasets?
The reason I encountered this issue was that suddenly one of my repos with version 1.12.1 started getting 0 examples.
I handled it by adding `revision` to `load_dataset`, but I guess it would still be an issue for other users who doesn't know this. | [
0.0481985547,
-0.0869977772,
-0.0242289286,
0.2818650603,
0.3240279555,
-0.0273514315,
0.2742410302,
0.2374753803,
0.1709858179,
0.2015544921,
-0.071567364,
0.3162328601,
-0.0423279032,
0.1720466316,
0.1071109399,
-0.2534898818,
0.1101513356,
0.1358653903,
-0.3096776307,
-0.0174040012,
-0.0312138814,
0.309874475,
-0.2977308333,
-0.0926481485,
-0.2869768143,
0.2120055258,
-0.3142178953,
0.1809690744,
-0.1463450789,
-0.3778193295,
0.3804140091,
0.0857021958,
0.1420219392,
0.6262398362,
-0.0001108685,
0.1710153222,
0.1643774956,
-0.1009757444,
-0.2533086538,
-0.4094510972,
-0.0717468187,
-0.4076809883,
0.1379687339,
-0.084017612,
-0.3382483721,
-0.3250946105,
-0.2067218423,
-0.102931641,
0.4555372298,
0.3552950621,
0.24130252,
0.4862983227,
0.0441145375,
-0.3515443802,
0.0134593481,
-0.1009906381,
-0.0108463569,
0.0179694537,
0.1658859551,
0.1214357018,
0.0917913914,
0.1937300712,
0.1166708693,
-0.1438785791,
0.1437006593,
-0.103102617,
-0.1645518988,
-0.1611696184,
0.032573849,
0.3317503333,
0.4173805714,
-0.2056090087,
-0.5523957014,
-0.3343687057,
-0.0657659248,
-0.3471269906,
0.1069067344,
0.1082367301,
0.0765274093,
0.2580417991,
-0.1972233504,
0.1033517867,
-0.0616275854,
0.0491028875,
-0.2557571232,
0.0730323792,
-0.1191485971,
-0.128347367,
-0.0014370769,
-0.0417608656,
-0.1048920825,
0.0154958405,
-0.0036514674,
0.1501371115,
-0.4318972826,
0.0554301888,
0.237555027,
0.0125551922,
-0.0146852667,
0.2383976281,
0.2823119462,
0.2580575645,
-0.101495631,
0.0426575281,
0.0553131253,
0.4307948649,
0.098954536,
-0.0112817166,
0.355548799,
0.3903166652,
-0.0860642046,
-0.0921304226,
-0.0349751972,
-0.1879226714,
0.1101073697,
0.0507210083,
0.2734404206,
-0.2016669214,
-0.2322236449,
0.2300948054,
-0.2371390313,
-0.0756455138,
0.0285549033,
0.5070344806,
-0.077991493,
0.08678817,
0.034564849,
0.1759791076,
-0.150269255,
-0.300608784,
-0.4464168251,
-0.0316898972,
-0.3254978359,
-0.0998989344,
0.2723427713,
-0.1960325986,
0.4132773876,
0.0805029795,
-0.144823119,
-0.0651482567,
0.0624424405,
0.1992405951,
0.1993406117,
0.284948945,
-0.0595134757,
-0.0106598837,
0.2917138636,
-0.058343932,
0.0071220989,
0.0480790474,
-0.2429095656,
-0.2783380747,
-0.1120141298,
0.2665143311,
-0.4614020586,
-0.0228121709,
-0.0224671103,
0.1883604974,
0.0015456961,
-0.0524671115,
0.0370658301,
-0.1295342594,
-0.0360486507,
-0.0366939195,
0.457509011,
0.4533717334,
-0.1228636429,
-0.3646816015,
0.2155804932,
-0.0941883922,
0.008020224,
0.0213709082,
-0.006280418,
0.0874582529,
-0.2322479934,
-0.122004509,
0.2858052552,
-0.2465897799,
-0.4048401117,
-0.0766043887,
-0.0211876351,
0.4242129326,
0.2083308101,
-0.252592653,
0.0246394444,
0.0277144462,
0.127171725,
-0.0023789413,
0.2605974674,
0.0864496306,
-0.1792177707,
-0.1496765763,
0.0313813165,
-0.0087175071,
0.0463232808,
0.2363817245,
-0.0460510738,
-0.1425697058,
0.3198089898,
-0.262978673,
-0.1114747152,
0.2994379699,
0.3906705081,
0.033493869,
0.2075453401,
-0.2101998925,
-0.5983011723,
0.4261897504,
0.0083911056,
0.1736965626,
0.1064665988,
-0.1905424595,
-0.3390614092,
-0.0319934823,
-0.2173842341,
-0.4623178244,
0.1443420053,
0.1712841839,
0.311358124,
0.1133099794,
-0.2209654897,
0.4782706797,
-0.1391461045,
0.2466123402,
-0.4244334102,
0.355330348,
0.049485445,
-0.1585935801,
0.0004656407,
0.3790495098,
0.0895048529,
-0.2791751325,
-0.0319349766,
0.4426726997,
0.0848304033,
0.1269909889,
-0.1665707678,
0.0341465548,
0.3217850626,
0.1063588038,
-0.0502241664,
0.189823553,
-0.0628746748,
0.1435204595,
-0.3038612604,
0.4575379491,
0.0085153924,
0.1595543325,
0.2568790615,
-0.0430402197,
0.1683445126,
-0.1168815494,
-0.34793064,
-0.2479156554,
0.2199461162,
-0.2961523533,
0.2113552392,
0.1242555305,
-0.4070571363,
0.054158438,
0.3790639341,
0.0197463818,
0.0462707877,
-0.0233377963,
-0.2102936208,
0.0364364386,
0.3277456164,
0.1316284537,
0.2561742961,
0.2758215368,
-0.0519169569,
0.1211837977,
-0.0544184446,
-0.2013663799,
0.1555205584,
-0.0264055431,
-0.1224707291,
0.2315485626,
0.1616037935,
0.093663834,
-0.4347341359,
0.0915908292,
-0.066471599,
0.1618289798,
-0.4015597105,
-0.0091292616,
-0.3828178346,
-0.055713594,
-0.1776840836,
-0.2573938966,
0.0134491911,
-0.3274967968,
0.0290936027,
0.1418607086,
-0.1621785015,
0.2784965038,
-0.0668852031,
0.0994897559,
-0.0259305295,
0.1342011988,
-0.2214833498,
-0.0414212532,
-0.2053794116,
0.0815152302,
-0.0784958303,
-0.019277012,
0.1802260876,
-0.3212566674,
-0.0408071503,
-0.2744916677,
-0.560757935,
0.0327713825,
-0.0596647076,
0.3699052334,
0.1861216575,
0.0378417335,
-0.0787610263,
-0.0280032307,
0.3117527664,
-0.0995519608,
-0.3088871539,
0.1620039344,
0.0437145084,
0.0506079756,
-0.3222824335,
-0.6019360423,
-0.0519945696,
-0.3921588361,
0.2188690901,
-0.0151081737,
-0.0129249273,
0.3306981027,
0.1765702516,
0.2407140583,
-0.0358888917,
0.1884778142,
-0.1856399626,
-0.2366807461,
0.2083813995,
-0.3224650323,
-0.5175801516,
-0.09954945,
-0.0682130232,
0.1749485582,
-0.0706237778,
-0.4018836021,
-0.4492528737,
-0.2838639915,
0.2869094908,
0.0883645117,
0.1963796318,
0.31953457,
-0.0170476772,
-0.0827626884,
-0.2365192622,
-0.244149968,
0.0866851807,
-0.0396276116,
-0.0130336536,
-0.1388915628,
0.3085324168,
-0.0408934504,
0.5791707039,
0.2496649176,
-0.0168729331,
0.5041947365,
-0.1128073782,
0.4734930694,
-0.251737833,
-0.3542967737,
0.0175451413,
-0.0791127831,
0.1667907685,
0.1121935323,
0.0253821425,
0.2566156387,
-0.2126464546,
0.0406621732,
-0.2356364727,
-0.2202086747,
-0.2033108622,
-0.1254197061,
0.1855074316,
0.1336281151,
0.223241359,
-0.1398865432,
0.1517243981,
0.1562120318,
0.2525423467,
0.2819907069,
-0.0382212847,
-0.5950140953,
0.0767665058,
-0.3939025998,
0.1397636682,
-0.1132557169,
0.1827933937,
0.0998653919,
-0.3451109231,
0.0257286765,
-0.0351387523,
0.7139860392,
0.0423452556,
-0.0325626954,
0.1872521043,
-0.3037367761,
-0.4642010629,
-0.297177732,
-0.2848602533,
0.0355189778,
0.1110170484,
0.5587165952,
-0.2462154478,
-0.2049175799,
0.1005873904,
0.1535287201,
-0.1186056733,
-0.0774317831,
-0.3990415633,
-0.1416076869,
-0.2991361618,
0.0244285762,
-0.1126875952,
0.3314489722,
-0.3967134356,
-0.044297684,
-0.0974151492,
-0.0879448876,
0.2755496204,
0.3371759951,
0.4642047584,
-0.0041779736,
0.1841808856,
0.1460017264,
0.2303549051,
-0.0492638499,
0.5531159639,
-0.2130257487,
-0.4674658775,
0.0244176835,
0.0985985696,
0.1919235736,
0.2839531898,
-0.0240091365,
-0.0103207482,
0.0334598348,
0.1660607904,
-0.2219956368,
0.1153500676,
0.2522455752,
0.2117828727,
-0.1972699463,
-0.3600770533,
0.4063872397,
0.2045285106,
-0.082412757,
0.1617421955,
0.3626560867,
-0.2724651694,
0.1963347495,
-0.0735357627,
0.5536629558,
0.1496784389,
0.1112750918,
0.4936061203,
-0.1541039944,
0.4307682216,
0.0282862,
0.0783270001,
-0.3261818886,
-0.4324313998,
0.0743174776,
-0.1420194507,
0.2543086708,
-0.0936190188,
-0.2937712967,
0.2425781637,
-0.0614432432,
0.4228388071,
0.0824264511,
-0.0339254439,
-0.1302327514,
0.0350472629,
-0.4456653893,
0.1646709442,
0.1567229778,
0.2932489812,
-0.0937527344,
-0.0039614211,
-0.1935090423,
-0.2196678519,
-0.0830313414,
0.0144851524,
-0.0773717165,
-0.0803698748,
0.5203552842,
-0.4018165469,
-0.0127799008,
0.3775319159,
0.4443200529,
0.2315761,
-0.1558998823,
0.1234917045,
-0.1541391015,
0.1467104703,
0.0688100532,
0.0588227659,
0.426587522,
0.008839108,
-0.3543610275,
0.1997651607,
-0.07857164,
0.0414835028,
-0.1106426716,
0.1032586396,
-0.1989992857,
-0.3686420023,
-0.2561345994,
-0.0241016094,
0.3485710323,
-0.3951193392,
0.1987586915,
0.0373829156,
-0.2535577416,
-0.0267761555,
0.0863390937,
-0.1882233471,
-0.1651725769,
0.5311196446,
-0.0193644427,
0.0393796042,
0.5470424891,
0.2478715479,
0.1277480423,
-0.1604365408,
-0.2061494291,
0.5066654086,
-0.4009734392,
0.2265547514,
0.0452351682,
-0.089213632,
0.1041069031,
0.4483320117,
0.0892235935,
-0.0738572553,
0.0025199815,
-0.3323084414,
-0.1668224037,
0.3269214332,
0.1018108726,
0.2001242489,
0.0230575223,
-0.0447381884,
-0.1990042776,
-0.0821899623,
-0.3838168383,
0.2317102402,
-0.094681561,
0.0080049541,
0.212074101,
-0.1800937802,
-0.0082779489,
-0.2439625561,
0.1769245565,
0.0115246437,
-0.2337290049,
-0.2896286249,
-0.3416273892,
0.0659957528,
-0.0873745382,
0.0409727059,
0.0703092143,
0.2501469254,
-0.0465175398,
-0.234109357,
0.4098848104,
0.1118883491,
0.0351813324,
0.3403913677,
0.0676625744,
0.2168429345,
0.0177232157,
0.0183653571,
0.0346433185,
-0.2447931617,
0.0253431424,
0.0001912843,
-0.1700791717,
0.0921724364,
-0.0091776121,
0.0785144046,
-0.0332647152,
0.1704270393,
0.3056046963,
-0.257522583,
0.1769665927,
0.1408842653,
0.352560699,
0.1656520069,
-0.159872219,
0.0883125365,
0.1280992627,
0.3033127189,
-0.4272122681,
-0.0639279559,
0.2238363475,
0.0988453925,
0.1989062577,
0.1681094915,
0.258857131,
-0.155389607,
0.1838713288,
0.2872074246,
0.2977751791,
0.0588257723,
0.4726626873,
0.4331970215,
-0.0707347691,
0.0708426908,
0.0488207415,
-0.134585619,
-0.0628407225,
0.1558621377,
0.0048355246,
0.2499201298,
-0.0062113632,
0.2208318561,
0.0963631943,
-0.3939106762,
0.0906688645,
0.0238969829,
-0.1729887277,
0.0662117526,
-0.2123369873,
0.4334922135,
-0.361432761,
-0.120697245,
-0.3567313552,
0.1053316146,
-0.2042128295,
-0.3059581518,
0.0030264906,
-0.3322758973,
0.0044144508,
0.0047752229,
-0.062540561,
-0.1204759255,
0.0704387948,
-0.2905164957,
-0.2438585609,
-0.4311001897,
-0.1374060214,
0.0425178334,
0.3430761397,
0.0285756551,
0.3047436476,
0.2961230576,
-0.2466678321,
0.0738858879,
0.2899469435,
0.383807689,
0.1648387909,
0.2314525992,
0.1832719445,
-0.0433592796,
-0.0505382754,
-0.0270365886,
0.4476382732,
0.0484031625,
-0.1019552127,
0.1409863383,
0.1902392209,
-0.2589709163,
0.1088000536,
-0.1060952991,
0.3722572327,
-0.5927894115,
0.4981980026,
-0.2803738415,
-0.1138891727,
-0.0999374911,
0.0030348175,
-0.2672679424,
-0.0495250821,
0.108797729,
0.2101290375,
0.1017582789,
-0.2689724565,
0.1186591089,
-0.1392235309,
0.3404169381,
0.2487783283,
-0.0429073125,
-0.1308289915,
-0.1528423727,
-0.7432309985,
0.1535543352,
0.0611758679,
0.1751804799,
-0.0314455479,
-0.097096689,
-0.0853766799,
-0.1342229545,
-0.0217108056,
-0.0817594007,
0.0910399184,
0.0566201694,
-0.5897562504,
-0.1216537133,
-0.1023666412,
0.0624366924,
0.0834658891,
-0.1358577311,
0.080984138,
-0.1761588305,
0.0153289493,
0.0799396932,
0.0850727335,
-0.025912283,
-0.1229671165,
0.2948429286,
0.153270483,
0.1271879822,
0.0400281921,
-0.151907295,
-0.3101460934,
-0.2387505621,
-0.1656613052,
0.2701582015,
-0.1824702322,
0.3968471587,
0.0809883177,
-0.2206905335,
-0.0346899927,
0.270983398,
0.4008368552,
-0.1768425852,
-0.3122388124,
0.1839415878,
0.009621527,
-0.1361798197,
0.3327705562,
0.3300030231,
-0.0209807623,
0.1815216988,
-0.2580749691,
-0.4261649847,
0.5998721123,
-0.4396130443,
-0.0209706444,
-0.3280789554,
0.1557830423,
0.1412993073,
-0.3467077613,
-0.6606488228,
0.047875993,
0.3967241347,
-0.2428271174,
-0.1624283791,
0.3853439093,
-0.0664640591,
0.0902094319,
-0.0564068928,
0.3422391117,
0.1525709927,
-0.2761006057,
0.2225066721,
-0.115247041
] |
https://github.com/huggingface/datasets/issues/3236 | Loading of datasets changed in #3110 returns no examples | Hi, in 1.12.1 it uses the dataset scripts from that time, not the one on master.
It only uses the datasets from master if you installed `datasets` from source, or if the dataset isn't available in your local version (in this case it shows a warning and it loads from master).
| ## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
| 51 | Loading of datasets changed in #3110 returns no examples
## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
Hi, in 1.12.1 it uses the dataset scripts from that time, not the one on master.
It only uses the datasets from master if you installed `datasets` from source, or if the dataset isn't available in your local version (in this case it shows a warning and it loads from master).
| [
0.0481985547,
-0.0869977772,
-0.0242289286,
0.2818650603,
0.3240279555,
-0.0273514315,
0.2742410302,
0.2374753803,
0.1709858179,
0.2015544921,
-0.071567364,
0.3162328601,
-0.0423279032,
0.1720466316,
0.1071109399,
-0.2534898818,
0.1101513356,
0.1358653903,
-0.3096776307,
-0.0174040012,
-0.0312138814,
0.309874475,
-0.2977308333,
-0.0926481485,
-0.2869768143,
0.2120055258,
-0.3142178953,
0.1809690744,
-0.1463450789,
-0.3778193295,
0.3804140091,
0.0857021958,
0.1420219392,
0.6262398362,
-0.0001108685,
0.1710153222,
0.1643774956,
-0.1009757444,
-0.2533086538,
-0.4094510972,
-0.0717468187,
-0.4076809883,
0.1379687339,
-0.084017612,
-0.3382483721,
-0.3250946105,
-0.2067218423,
-0.102931641,
0.4555372298,
0.3552950621,
0.24130252,
0.4862983227,
0.0441145375,
-0.3515443802,
0.0134593481,
-0.1009906381,
-0.0108463569,
0.0179694537,
0.1658859551,
0.1214357018,
0.0917913914,
0.1937300712,
0.1166708693,
-0.1438785791,
0.1437006593,
-0.103102617,
-0.1645518988,
-0.1611696184,
0.032573849,
0.3317503333,
0.4173805714,
-0.2056090087,
-0.5523957014,
-0.3343687057,
-0.0657659248,
-0.3471269906,
0.1069067344,
0.1082367301,
0.0765274093,
0.2580417991,
-0.1972233504,
0.1033517867,
-0.0616275854,
0.0491028875,
-0.2557571232,
0.0730323792,
-0.1191485971,
-0.128347367,
-0.0014370769,
-0.0417608656,
-0.1048920825,
0.0154958405,
-0.0036514674,
0.1501371115,
-0.4318972826,
0.0554301888,
0.237555027,
0.0125551922,
-0.0146852667,
0.2383976281,
0.2823119462,
0.2580575645,
-0.101495631,
0.0426575281,
0.0553131253,
0.4307948649,
0.098954536,
-0.0112817166,
0.355548799,
0.3903166652,
-0.0860642046,
-0.0921304226,
-0.0349751972,
-0.1879226714,
0.1101073697,
0.0507210083,
0.2734404206,
-0.2016669214,
-0.2322236449,
0.2300948054,
-0.2371390313,
-0.0756455138,
0.0285549033,
0.5070344806,
-0.077991493,
0.08678817,
0.034564849,
0.1759791076,
-0.150269255,
-0.300608784,
-0.4464168251,
-0.0316898972,
-0.3254978359,
-0.0998989344,
0.2723427713,
-0.1960325986,
0.4132773876,
0.0805029795,
-0.144823119,
-0.0651482567,
0.0624424405,
0.1992405951,
0.1993406117,
0.284948945,
-0.0595134757,
-0.0106598837,
0.2917138636,
-0.058343932,
0.0071220989,
0.0480790474,
-0.2429095656,
-0.2783380747,
-0.1120141298,
0.2665143311,
-0.4614020586,
-0.0228121709,
-0.0224671103,
0.1883604974,
0.0015456961,
-0.0524671115,
0.0370658301,
-0.1295342594,
-0.0360486507,
-0.0366939195,
0.457509011,
0.4533717334,
-0.1228636429,
-0.3646816015,
0.2155804932,
-0.0941883922,
0.008020224,
0.0213709082,
-0.006280418,
0.0874582529,
-0.2322479934,
-0.122004509,
0.2858052552,
-0.2465897799,
-0.4048401117,
-0.0766043887,
-0.0211876351,
0.4242129326,
0.2083308101,
-0.252592653,
0.0246394444,
0.0277144462,
0.127171725,
-0.0023789413,
0.2605974674,
0.0864496306,
-0.1792177707,
-0.1496765763,
0.0313813165,
-0.0087175071,
0.0463232808,
0.2363817245,
-0.0460510738,
-0.1425697058,
0.3198089898,
-0.262978673,
-0.1114747152,
0.2994379699,
0.3906705081,
0.033493869,
0.2075453401,
-0.2101998925,
-0.5983011723,
0.4261897504,
0.0083911056,
0.1736965626,
0.1064665988,
-0.1905424595,
-0.3390614092,
-0.0319934823,
-0.2173842341,
-0.4623178244,
0.1443420053,
0.1712841839,
0.311358124,
0.1133099794,
-0.2209654897,
0.4782706797,
-0.1391461045,
0.2466123402,
-0.4244334102,
0.355330348,
0.049485445,
-0.1585935801,
0.0004656407,
0.3790495098,
0.0895048529,
-0.2791751325,
-0.0319349766,
0.4426726997,
0.0848304033,
0.1269909889,
-0.1665707678,
0.0341465548,
0.3217850626,
0.1063588038,
-0.0502241664,
0.189823553,
-0.0628746748,
0.1435204595,
-0.3038612604,
0.4575379491,
0.0085153924,
0.1595543325,
0.2568790615,
-0.0430402197,
0.1683445126,
-0.1168815494,
-0.34793064,
-0.2479156554,
0.2199461162,
-0.2961523533,
0.2113552392,
0.1242555305,
-0.4070571363,
0.054158438,
0.3790639341,
0.0197463818,
0.0462707877,
-0.0233377963,
-0.2102936208,
0.0364364386,
0.3277456164,
0.1316284537,
0.2561742961,
0.2758215368,
-0.0519169569,
0.1211837977,
-0.0544184446,
-0.2013663799,
0.1555205584,
-0.0264055431,
-0.1224707291,
0.2315485626,
0.1616037935,
0.093663834,
-0.4347341359,
0.0915908292,
-0.066471599,
0.1618289798,
-0.4015597105,
-0.0091292616,
-0.3828178346,
-0.055713594,
-0.1776840836,
-0.2573938966,
0.0134491911,
-0.3274967968,
0.0290936027,
0.1418607086,
-0.1621785015,
0.2784965038,
-0.0668852031,
0.0994897559,
-0.0259305295,
0.1342011988,
-0.2214833498,
-0.0414212532,
-0.2053794116,
0.0815152302,
-0.0784958303,
-0.019277012,
0.1802260876,
-0.3212566674,
-0.0408071503,
-0.2744916677,
-0.560757935,
0.0327713825,
-0.0596647076,
0.3699052334,
0.1861216575,
0.0378417335,
-0.0787610263,
-0.0280032307,
0.3117527664,
-0.0995519608,
-0.3088871539,
0.1620039344,
0.0437145084,
0.0506079756,
-0.3222824335,
-0.6019360423,
-0.0519945696,
-0.3921588361,
0.2188690901,
-0.0151081737,
-0.0129249273,
0.3306981027,
0.1765702516,
0.2407140583,
-0.0358888917,
0.1884778142,
-0.1856399626,
-0.2366807461,
0.2083813995,
-0.3224650323,
-0.5175801516,
-0.09954945,
-0.0682130232,
0.1749485582,
-0.0706237778,
-0.4018836021,
-0.4492528737,
-0.2838639915,
0.2869094908,
0.0883645117,
0.1963796318,
0.31953457,
-0.0170476772,
-0.0827626884,
-0.2365192622,
-0.244149968,
0.0866851807,
-0.0396276116,
-0.0130336536,
-0.1388915628,
0.3085324168,
-0.0408934504,
0.5791707039,
0.2496649176,
-0.0168729331,
0.5041947365,
-0.1128073782,
0.4734930694,
-0.251737833,
-0.3542967737,
0.0175451413,
-0.0791127831,
0.1667907685,
0.1121935323,
0.0253821425,
0.2566156387,
-0.2126464546,
0.0406621732,
-0.2356364727,
-0.2202086747,
-0.2033108622,
-0.1254197061,
0.1855074316,
0.1336281151,
0.223241359,
-0.1398865432,
0.1517243981,
0.1562120318,
0.2525423467,
0.2819907069,
-0.0382212847,
-0.5950140953,
0.0767665058,
-0.3939025998,
0.1397636682,
-0.1132557169,
0.1827933937,
0.0998653919,
-0.3451109231,
0.0257286765,
-0.0351387523,
0.7139860392,
0.0423452556,
-0.0325626954,
0.1872521043,
-0.3037367761,
-0.4642010629,
-0.297177732,
-0.2848602533,
0.0355189778,
0.1110170484,
0.5587165952,
-0.2462154478,
-0.2049175799,
0.1005873904,
0.1535287201,
-0.1186056733,
-0.0774317831,
-0.3990415633,
-0.1416076869,
-0.2991361618,
0.0244285762,
-0.1126875952,
0.3314489722,
-0.3967134356,
-0.044297684,
-0.0974151492,
-0.0879448876,
0.2755496204,
0.3371759951,
0.4642047584,
-0.0041779736,
0.1841808856,
0.1460017264,
0.2303549051,
-0.0492638499,
0.5531159639,
-0.2130257487,
-0.4674658775,
0.0244176835,
0.0985985696,
0.1919235736,
0.2839531898,
-0.0240091365,
-0.0103207482,
0.0334598348,
0.1660607904,
-0.2219956368,
0.1153500676,
0.2522455752,
0.2117828727,
-0.1972699463,
-0.3600770533,
0.4063872397,
0.2045285106,
-0.082412757,
0.1617421955,
0.3626560867,
-0.2724651694,
0.1963347495,
-0.0735357627,
0.5536629558,
0.1496784389,
0.1112750918,
0.4936061203,
-0.1541039944,
0.4307682216,
0.0282862,
0.0783270001,
-0.3261818886,
-0.4324313998,
0.0743174776,
-0.1420194507,
0.2543086708,
-0.0936190188,
-0.2937712967,
0.2425781637,
-0.0614432432,
0.4228388071,
0.0824264511,
-0.0339254439,
-0.1302327514,
0.0350472629,
-0.4456653893,
0.1646709442,
0.1567229778,
0.2932489812,
-0.0937527344,
-0.0039614211,
-0.1935090423,
-0.2196678519,
-0.0830313414,
0.0144851524,
-0.0773717165,
-0.0803698748,
0.5203552842,
-0.4018165469,
-0.0127799008,
0.3775319159,
0.4443200529,
0.2315761,
-0.1558998823,
0.1234917045,
-0.1541391015,
0.1467104703,
0.0688100532,
0.0588227659,
0.426587522,
0.008839108,
-0.3543610275,
0.1997651607,
-0.07857164,
0.0414835028,
-0.1106426716,
0.1032586396,
-0.1989992857,
-0.3686420023,
-0.2561345994,
-0.0241016094,
0.3485710323,
-0.3951193392,
0.1987586915,
0.0373829156,
-0.2535577416,
-0.0267761555,
0.0863390937,
-0.1882233471,
-0.1651725769,
0.5311196446,
-0.0193644427,
0.0393796042,
0.5470424891,
0.2478715479,
0.1277480423,
-0.1604365408,
-0.2061494291,
0.5066654086,
-0.4009734392,
0.2265547514,
0.0452351682,
-0.089213632,
0.1041069031,
0.4483320117,
0.0892235935,
-0.0738572553,
0.0025199815,
-0.3323084414,
-0.1668224037,
0.3269214332,
0.1018108726,
0.2001242489,
0.0230575223,
-0.0447381884,
-0.1990042776,
-0.0821899623,
-0.3838168383,
0.2317102402,
-0.094681561,
0.0080049541,
0.212074101,
-0.1800937802,
-0.0082779489,
-0.2439625561,
0.1769245565,
0.0115246437,
-0.2337290049,
-0.2896286249,
-0.3416273892,
0.0659957528,
-0.0873745382,
0.0409727059,
0.0703092143,
0.2501469254,
-0.0465175398,
-0.234109357,
0.4098848104,
0.1118883491,
0.0351813324,
0.3403913677,
0.0676625744,
0.2168429345,
0.0177232157,
0.0183653571,
0.0346433185,
-0.2447931617,
0.0253431424,
0.0001912843,
-0.1700791717,
0.0921724364,
-0.0091776121,
0.0785144046,
-0.0332647152,
0.1704270393,
0.3056046963,
-0.257522583,
0.1769665927,
0.1408842653,
0.352560699,
0.1656520069,
-0.159872219,
0.0883125365,
0.1280992627,
0.3033127189,
-0.4272122681,
-0.0639279559,
0.2238363475,
0.0988453925,
0.1989062577,
0.1681094915,
0.258857131,
-0.155389607,
0.1838713288,
0.2872074246,
0.2977751791,
0.0588257723,
0.4726626873,
0.4331970215,
-0.0707347691,
0.0708426908,
0.0488207415,
-0.134585619,
-0.0628407225,
0.1558621377,
0.0048355246,
0.2499201298,
-0.0062113632,
0.2208318561,
0.0963631943,
-0.3939106762,
0.0906688645,
0.0238969829,
-0.1729887277,
0.0662117526,
-0.2123369873,
0.4334922135,
-0.361432761,
-0.120697245,
-0.3567313552,
0.1053316146,
-0.2042128295,
-0.3059581518,
0.0030264906,
-0.3322758973,
0.0044144508,
0.0047752229,
-0.062540561,
-0.1204759255,
0.0704387948,
-0.2905164957,
-0.2438585609,
-0.4311001897,
-0.1374060214,
0.0425178334,
0.3430761397,
0.0285756551,
0.3047436476,
0.2961230576,
-0.2466678321,
0.0738858879,
0.2899469435,
0.383807689,
0.1648387909,
0.2314525992,
0.1832719445,
-0.0433592796,
-0.0505382754,
-0.0270365886,
0.4476382732,
0.0484031625,
-0.1019552127,
0.1409863383,
0.1902392209,
-0.2589709163,
0.1088000536,
-0.1060952991,
0.3722572327,
-0.5927894115,
0.4981980026,
-0.2803738415,
-0.1138891727,
-0.0999374911,
0.0030348175,
-0.2672679424,
-0.0495250821,
0.108797729,
0.2101290375,
0.1017582789,
-0.2689724565,
0.1186591089,
-0.1392235309,
0.3404169381,
0.2487783283,
-0.0429073125,
-0.1308289915,
-0.1528423727,
-0.7432309985,
0.1535543352,
0.0611758679,
0.1751804799,
-0.0314455479,
-0.097096689,
-0.0853766799,
-0.1342229545,
-0.0217108056,
-0.0817594007,
0.0910399184,
0.0566201694,
-0.5897562504,
-0.1216537133,
-0.1023666412,
0.0624366924,
0.0834658891,
-0.1358577311,
0.080984138,
-0.1761588305,
0.0153289493,
0.0799396932,
0.0850727335,
-0.025912283,
-0.1229671165,
0.2948429286,
0.153270483,
0.1271879822,
0.0400281921,
-0.151907295,
-0.3101460934,
-0.2387505621,
-0.1656613052,
0.2701582015,
-0.1824702322,
0.3968471587,
0.0809883177,
-0.2206905335,
-0.0346899927,
0.270983398,
0.4008368552,
-0.1768425852,
-0.3122388124,
0.1839415878,
0.009621527,
-0.1361798197,
0.3327705562,
0.3300030231,
-0.0209807623,
0.1815216988,
-0.2580749691,
-0.4261649847,
0.5998721123,
-0.4396130443,
-0.0209706444,
-0.3280789554,
0.1557830423,
0.1412993073,
-0.3467077613,
-0.6606488228,
0.047875993,
0.3967241347,
-0.2428271174,
-0.1624283791,
0.3853439093,
-0.0664640591,
0.0902094319,
-0.0564068928,
0.3422391117,
0.1525709927,
-0.2761006057,
0.2225066721,
-0.115247041
] |
https://github.com/huggingface/datasets/issues/3236 | Loading of datasets changed in #3110 returns no examples | OK, I understand the issue a bit better now.
I see I wasn't on 1.12.1, but on 1.12.1.dev0 and since it is a dev version it uses master.
So users that use an old dev version must specify revision or else they'll encounter this problem.
BTW, when I opened the issue I installed the latest master version with
```
pip install git+git://github.com/huggingface/datasets@master#egg=datasets
```
and also used `download_mode="force_redownload"`, and it still returned 0 examples.
Now I deleted all of the cache and ran the code again, and it worked.
I'm not sure what exactly happened here, but looks like it was due to a mix of an unofficial version and its cache.
Thanks again! | ## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
| 113 | Loading of datasets changed in #3110 returns no examples
## Describe the bug
Loading of datasets changed in https://github.com/huggingface/datasets/pull/3110 returns no examples:
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 0
})
})
```
## Steps to reproduce the bug
Load any of the datasets that were changed in https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper")
# The problem only started with the commit of #3110
load_dataset("qasper", revision="b6469baa22c174b3906c631802a7016fedea6780")
```
## Expected results
```python
DatasetDict({
train: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 888
})
validation: Dataset({
features: ['id', 'title', 'abstract', 'full_text', 'qas'],
num_rows: 281
})
})
```
Which can be received when specifying revision of the commit before https://github.com/huggingface/datasets/pull/3110:
```python
from datasets import load_dataset
load_dataset("qasper", revision="acfe2abda1ca79f0ce5c1896aa83b4b78af76b7d")
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.2.dev0 (master)
- Python version: 3.8.10
- PyArrow version: 3.0.0
OK, I understand the issue a bit better now.
I see I wasn't on 1.12.1, but on 1.12.1.dev0 and since it is a dev version it uses master.
So users that use an old dev version must specify revision or else they'll encounter this problem.
BTW, when I opened the issue I installed the latest master version with
```
pip install git+git://github.com/huggingface/datasets@master#egg=datasets
```
and also used `download_mode="force_redownload"`, and it still returned 0 examples.
Now I deleted all of the cache and ran the code again, and it worked.
I'm not sure what exactly happened here, but looks like it was due to a mix of an unofficial version and its cache.
Thanks again! | [
0.0481985547,
-0.0869977772,
-0.0242289286,
0.2818650603,
0.3240279555,
-0.0273514315,
0.2742410302,
0.2374753803,
0.1709858179,
0.2015544921,
-0.071567364,
0.3162328601,
-0.0423279032,
0.1720466316,
0.1071109399,
-0.2534898818,
0.1101513356,
0.1358653903,
-0.3096776307,
-0.0174040012,
-0.0312138814,
0.309874475,
-0.2977308333,
-0.0926481485,
-0.2869768143,
0.2120055258,
-0.3142178953,
0.1809690744,
-0.1463450789,
-0.3778193295,
0.3804140091,
0.0857021958,
0.1420219392,
0.6262398362,
-0.0001108685,
0.1710153222,
0.1643774956,
-0.1009757444,
-0.2533086538,
-0.4094510972,
-0.0717468187,
-0.4076809883,
0.1379687339,
-0.084017612,
-0.3382483721,
-0.3250946105,
-0.2067218423,
-0.102931641,
0.4555372298,
0.3552950621,
0.24130252,
0.4862983227,
0.0441145375,
-0.3515443802,
0.0134593481,
-0.1009906381,
-0.0108463569,
0.0179694537,
0.1658859551,
0.1214357018,
0.0917913914,
0.1937300712,
0.1166708693,
-0.1438785791,
0.1437006593,
-0.103102617,
-0.1645518988,
-0.1611696184,
0.032573849,
0.3317503333,
0.4173805714,
-0.2056090087,
-0.5523957014,
-0.3343687057,
-0.0657659248,
-0.3471269906,
0.1069067344,
0.1082367301,
0.0765274093,
0.2580417991,
-0.1972233504,
0.1033517867,
-0.0616275854,
0.0491028875,
-0.2557571232,
0.0730323792,
-0.1191485971,
-0.128347367,
-0.0014370769,
-0.0417608656,
-0.1048920825,
0.0154958405,
-0.0036514674,
0.1501371115,
-0.4318972826,
0.0554301888,
0.237555027,
0.0125551922,
-0.0146852667,
0.2383976281,
0.2823119462,
0.2580575645,
-0.101495631,
0.0426575281,
0.0553131253,
0.4307948649,
0.098954536,
-0.0112817166,
0.355548799,
0.3903166652,
-0.0860642046,
-0.0921304226,
-0.0349751972,
-0.1879226714,
0.1101073697,
0.0507210083,
0.2734404206,
-0.2016669214,
-0.2322236449,
0.2300948054,
-0.2371390313,
-0.0756455138,
0.0285549033,
0.5070344806,
-0.077991493,
0.08678817,
0.034564849,
0.1759791076,
-0.150269255,
-0.300608784,
-0.4464168251,
-0.0316898972,
-0.3254978359,
-0.0998989344,
0.2723427713,
-0.1960325986,
0.4132773876,
0.0805029795,
-0.144823119,
-0.0651482567,
0.0624424405,
0.1992405951,
0.1993406117,
0.284948945,
-0.0595134757,
-0.0106598837,
0.2917138636,
-0.058343932,
0.0071220989,
0.0480790474,
-0.2429095656,
-0.2783380747,
-0.1120141298,
0.2665143311,
-0.4614020586,
-0.0228121709,
-0.0224671103,
0.1883604974,
0.0015456961,
-0.0524671115,
0.0370658301,
-0.1295342594,
-0.0360486507,
-0.0366939195,
0.457509011,
0.4533717334,
-0.1228636429,
-0.3646816015,
0.2155804932,
-0.0941883922,
0.008020224,
0.0213709082,
-0.006280418,
0.0874582529,
-0.2322479934,
-0.122004509,
0.2858052552,
-0.2465897799,
-0.4048401117,
-0.0766043887,
-0.0211876351,
0.4242129326,
0.2083308101,
-0.252592653,
0.0246394444,
0.0277144462,
0.127171725,
-0.0023789413,
0.2605974674,
0.0864496306,
-0.1792177707,
-0.1496765763,
0.0313813165,
-0.0087175071,
0.0463232808,
0.2363817245,
-0.0460510738,
-0.1425697058,
0.3198089898,
-0.262978673,
-0.1114747152,
0.2994379699,
0.3906705081,
0.033493869,
0.2075453401,
-0.2101998925,
-0.5983011723,
0.4261897504,
0.0083911056,
0.1736965626,
0.1064665988,
-0.1905424595,
-0.3390614092,
-0.0319934823,
-0.2173842341,
-0.4623178244,
0.1443420053,
0.1712841839,
0.311358124,
0.1133099794,
-0.2209654897,
0.4782706797,
-0.1391461045,
0.2466123402,
-0.4244334102,
0.355330348,
0.049485445,
-0.1585935801,
0.0004656407,
0.3790495098,
0.0895048529,
-0.2791751325,
-0.0319349766,
0.4426726997,
0.0848304033,
0.1269909889,
-0.1665707678,
0.0341465548,
0.3217850626,
0.1063588038,
-0.0502241664,
0.189823553,
-0.0628746748,
0.1435204595,
-0.3038612604,
0.4575379491,
0.0085153924,
0.1595543325,
0.2568790615,
-0.0430402197,
0.1683445126,
-0.1168815494,
-0.34793064,
-0.2479156554,
0.2199461162,
-0.2961523533,
0.2113552392,
0.1242555305,
-0.4070571363,
0.054158438,
0.3790639341,
0.0197463818,
0.0462707877,
-0.0233377963,
-0.2102936208,
0.0364364386,
0.3277456164,
0.1316284537,
0.2561742961,
0.2758215368,
-0.0519169569,
0.1211837977,
-0.0544184446,
-0.2013663799,
0.1555205584,
-0.0264055431,
-0.1224707291,
0.2315485626,
0.1616037935,
0.093663834,
-0.4347341359,
0.0915908292,
-0.066471599,
0.1618289798,
-0.4015597105,
-0.0091292616,
-0.3828178346,
-0.055713594,
-0.1776840836,
-0.2573938966,
0.0134491911,
-0.3274967968,
0.0290936027,
0.1418607086,
-0.1621785015,
0.2784965038,
-0.0668852031,
0.0994897559,
-0.0259305295,
0.1342011988,
-0.2214833498,
-0.0414212532,
-0.2053794116,
0.0815152302,
-0.0784958303,
-0.019277012,
0.1802260876,
-0.3212566674,
-0.0408071503,
-0.2744916677,
-0.560757935,
0.0327713825,
-0.0596647076,
0.3699052334,
0.1861216575,
0.0378417335,
-0.0787610263,
-0.0280032307,
0.3117527664,
-0.0995519608,
-0.3088871539,
0.1620039344,
0.0437145084,
0.0506079756,
-0.3222824335,
-0.6019360423,
-0.0519945696,
-0.3921588361,
0.2188690901,
-0.0151081737,
-0.0129249273,
0.3306981027,
0.1765702516,
0.2407140583,
-0.0358888917,
0.1884778142,
-0.1856399626,
-0.2366807461,
0.2083813995,
-0.3224650323,
-0.5175801516,
-0.09954945,
-0.0682130232,
0.1749485582,
-0.0706237778,
-0.4018836021,
-0.4492528737,
-0.2838639915,
0.2869094908,
0.0883645117,
0.1963796318,
0.31953457,
-0.0170476772,
-0.0827626884,
-0.2365192622,
-0.244149968,
0.0866851807,
-0.0396276116,
-0.0130336536,
-0.1388915628,
0.3085324168,
-0.0408934504,
0.5791707039,
0.2496649176,
-0.0168729331,
0.5041947365,
-0.1128073782,
0.4734930694,
-0.251737833,
-0.3542967737,
0.0175451413,
-0.0791127831,
0.1667907685,
0.1121935323,
0.0253821425,
0.2566156387,
-0.2126464546,
0.0406621732,
-0.2356364727,
-0.2202086747,
-0.2033108622,
-0.1254197061,
0.1855074316,
0.1336281151,
0.223241359,
-0.1398865432,
0.1517243981,
0.1562120318,
0.2525423467,
0.2819907069,
-0.0382212847,
-0.5950140953,
0.0767665058,
-0.3939025998,
0.1397636682,
-0.1132557169,
0.1827933937,
0.0998653919,
-0.3451109231,
0.0257286765,
-0.0351387523,
0.7139860392,
0.0423452556,
-0.0325626954,
0.1872521043,
-0.3037367761,
-0.4642010629,
-0.297177732,
-0.2848602533,
0.0355189778,
0.1110170484,
0.5587165952,
-0.2462154478,
-0.2049175799,
0.1005873904,
0.1535287201,
-0.1186056733,
-0.0774317831,
-0.3990415633,
-0.1416076869,
-0.2991361618,
0.0244285762,
-0.1126875952,
0.3314489722,
-0.3967134356,
-0.044297684,
-0.0974151492,
-0.0879448876,
0.2755496204,
0.3371759951,
0.4642047584,
-0.0041779736,
0.1841808856,
0.1460017264,
0.2303549051,
-0.0492638499,
0.5531159639,
-0.2130257487,
-0.4674658775,
0.0244176835,
0.0985985696,
0.1919235736,
0.2839531898,
-0.0240091365,
-0.0103207482,
0.0334598348,
0.1660607904,
-0.2219956368,
0.1153500676,
0.2522455752,
0.2117828727,
-0.1972699463,
-0.3600770533,
0.4063872397,
0.2045285106,
-0.082412757,
0.1617421955,
0.3626560867,
-0.2724651694,
0.1963347495,
-0.0735357627,
0.5536629558,
0.1496784389,
0.1112750918,
0.4936061203,
-0.1541039944,
0.4307682216,
0.0282862,
0.0783270001,
-0.3261818886,
-0.4324313998,
0.0743174776,
-0.1420194507,
0.2543086708,
-0.0936190188,
-0.2937712967,
0.2425781637,
-0.0614432432,
0.4228388071,
0.0824264511,
-0.0339254439,
-0.1302327514,
0.0350472629,
-0.4456653893,
0.1646709442,
0.1567229778,
0.2932489812,
-0.0937527344,
-0.0039614211,
-0.1935090423,
-0.2196678519,
-0.0830313414,
0.0144851524,
-0.0773717165,
-0.0803698748,
0.5203552842,
-0.4018165469,
-0.0127799008,
0.3775319159,
0.4443200529,
0.2315761,
-0.1558998823,
0.1234917045,
-0.1541391015,
0.1467104703,
0.0688100532,
0.0588227659,
0.426587522,
0.008839108,
-0.3543610275,
0.1997651607,
-0.07857164,
0.0414835028,
-0.1106426716,
0.1032586396,
-0.1989992857,
-0.3686420023,
-0.2561345994,
-0.0241016094,
0.3485710323,
-0.3951193392,
0.1987586915,
0.0373829156,
-0.2535577416,
-0.0267761555,
0.0863390937,
-0.1882233471,
-0.1651725769,
0.5311196446,
-0.0193644427,
0.0393796042,
0.5470424891,
0.2478715479,
0.1277480423,
-0.1604365408,
-0.2061494291,
0.5066654086,
-0.4009734392,
0.2265547514,
0.0452351682,
-0.089213632,
0.1041069031,
0.4483320117,
0.0892235935,
-0.0738572553,
0.0025199815,
-0.3323084414,
-0.1668224037,
0.3269214332,
0.1018108726,
0.2001242489,
0.0230575223,
-0.0447381884,
-0.1990042776,
-0.0821899623,
-0.3838168383,
0.2317102402,
-0.094681561,
0.0080049541,
0.212074101,
-0.1800937802,
-0.0082779489,
-0.2439625561,
0.1769245565,
0.0115246437,
-0.2337290049,
-0.2896286249,
-0.3416273892,
0.0659957528,
-0.0873745382,
0.0409727059,
0.0703092143,
0.2501469254,
-0.0465175398,
-0.234109357,
0.4098848104,
0.1118883491,
0.0351813324,
0.3403913677,
0.0676625744,
0.2168429345,
0.0177232157,
0.0183653571,
0.0346433185,
-0.2447931617,
0.0253431424,
0.0001912843,
-0.1700791717,
0.0921724364,
-0.0091776121,
0.0785144046,
-0.0332647152,
0.1704270393,
0.3056046963,
-0.257522583,
0.1769665927,
0.1408842653,
0.352560699,
0.1656520069,
-0.159872219,
0.0883125365,
0.1280992627,
0.3033127189,
-0.4272122681,
-0.0639279559,
0.2238363475,
0.0988453925,
0.1989062577,
0.1681094915,
0.258857131,
-0.155389607,
0.1838713288,
0.2872074246,
0.2977751791,
0.0588257723,
0.4726626873,
0.4331970215,
-0.0707347691,
0.0708426908,
0.0488207415,
-0.134585619,
-0.0628407225,
0.1558621377,
0.0048355246,
0.2499201298,
-0.0062113632,
0.2208318561,
0.0963631943,
-0.3939106762,
0.0906688645,
0.0238969829,
-0.1729887277,
0.0662117526,
-0.2123369873,
0.4334922135,
-0.361432761,
-0.120697245,
-0.3567313552,
0.1053316146,
-0.2042128295,
-0.3059581518,
0.0030264906,
-0.3322758973,
0.0044144508,
0.0047752229,
-0.062540561,
-0.1204759255,
0.0704387948,
-0.2905164957,
-0.2438585609,
-0.4311001897,
-0.1374060214,
0.0425178334,
0.3430761397,
0.0285756551,
0.3047436476,
0.2961230576,
-0.2466678321,
0.0738858879,
0.2899469435,
0.383807689,
0.1648387909,
0.2314525992,
0.1832719445,
-0.0433592796,
-0.0505382754,
-0.0270365886,
0.4476382732,
0.0484031625,
-0.1019552127,
0.1409863383,
0.1902392209,
-0.2589709163,
0.1088000536,
-0.1060952991,
0.3722572327,
-0.5927894115,
0.4981980026,
-0.2803738415,
-0.1138891727,
-0.0999374911,
0.0030348175,
-0.2672679424,
-0.0495250821,
0.108797729,
0.2101290375,
0.1017582789,
-0.2689724565,
0.1186591089,
-0.1392235309,
0.3404169381,
0.2487783283,
-0.0429073125,
-0.1308289915,
-0.1528423727,
-0.7432309985,
0.1535543352,
0.0611758679,
0.1751804799,
-0.0314455479,
-0.097096689,
-0.0853766799,
-0.1342229545,
-0.0217108056,
-0.0817594007,
0.0910399184,
0.0566201694,
-0.5897562504,
-0.1216537133,
-0.1023666412,
0.0624366924,
0.0834658891,
-0.1358577311,
0.080984138,
-0.1761588305,
0.0153289493,
0.0799396932,
0.0850727335,
-0.025912283,
-0.1229671165,
0.2948429286,
0.153270483,
0.1271879822,
0.0400281921,
-0.151907295,
-0.3101460934,
-0.2387505621,
-0.1656613052,
0.2701582015,
-0.1824702322,
0.3968471587,
0.0809883177,
-0.2206905335,
-0.0346899927,
0.270983398,
0.4008368552,
-0.1768425852,
-0.3122388124,
0.1839415878,
0.009621527,
-0.1361798197,
0.3327705562,
0.3300030231,
-0.0209807623,
0.1815216988,
-0.2580749691,
-0.4261649847,
0.5998721123,
-0.4396130443,
-0.0209706444,
-0.3280789554,
0.1557830423,
0.1412993073,
-0.3467077613,
-0.6606488228,
0.047875993,
0.3967241347,
-0.2428271174,
-0.1624283791,
0.3853439093,
-0.0664640591,
0.0902094319,
-0.0564068928,
0.3422391117,
0.1525709927,
-0.2761006057,
0.2225066721,
-0.115247041
] |
https://github.com/huggingface/datasets/issues/3232 | The Xsum datasets seems not able to download. | > Hi ! On my side the URL is working fine, could you try again ?
I try it again and cannot download the file (might because of my location). Could you please provide another download link(such as google drive)? :> | ## Describe the bug
The download Link of the Xsum dataset provided in the repository is [Link](http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz). It seems not able to download.
## Steps to reproduce the bug
```python
load_dataset('xsum')
```
## Actual results
``` python
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz
```
| 41 | The Xsum datasets seems not able to download.
## Describe the bug
The download Link of the Xsum dataset provided in the repository is [Link](http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz). It seems not able to download.
## Steps to reproduce the bug
```python
load_dataset('xsum')
```
## Actual results
``` python
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz
```
> Hi ! On my side the URL is working fine, could you try again ?
I try it again and cannot download the file (might because of my location). Could you please provide another download link(such as google drive)? :> | [
-0.2966645062,
-0.2934873998,
-0.0182695277,
0.3797835112,
0.3340881765,
0.0487929732,
-0.1388902217,
0.1607493609,
0.380304873,
0.308460474,
-0.2573417723,
0.0936074331,
0.2472653687,
0.1655268371,
0.2194852233,
-0.2016707361,
-0.0653339699,
-0.1392727047,
-0.1925852448,
-0.2077295929,
-0.1519837379,
0.1649139374,
-0.1566155106,
-0.1437881142,
-0.0894734338,
0.1588263363,
-0.0453709513,
0.146584034,
-0.0848765224,
-0.2599928379,
0.4373798072,
-0.0313379876,
0.0520723909,
0.3343370557,
-0.0001189491,
-0.0152671617,
0.2470719516,
-0.0641586557,
-0.1906348765,
-0.3718214333,
-0.2512536347,
-0.1549843252,
0.0060053999,
-0.2308738083,
0.0955773667,
0.2323136628,
0.0869068131,
-0.2251710296,
0.2161892802,
0.2628594041,
0.1390929222,
0.2850365043,
0.4422735274,
-0.0665398911,
0.169282034,
-0.485476017,
-0.0854999721,
0.6672196388,
0.5320836902,
0.3800354898,
0.2686359286,
0.0669856369,
0.0669351593,
0.1152213141,
0.0741988793,
0.0622666776,
0.4462063909,
-0.3660626411,
-0.102371484,
0.174012959,
0.8649671674,
-0.1716630608,
-0.5348428488,
0.2143411785,
0.108965449,
0.0242244788,
0.4601995349,
0.2526054084,
-0.0690663159,
0.0660434216,
-0.1220226288,
-0.1181919649,
-0.309319526,
0.3816370368,
0.0021868062,
0.116424948,
-0.0612887144,
0.0845422521,
-0.0421278551,
0.0946471542,
0.2231244743,
-0.0788317546,
0.1872643679,
0.1250907779,
-0.3440214396,
0.0675263181,
-0.2720396817,
0.0763287023,
0.3357135952,
0.1249919087,
0.2444736063,
0.0135337925,
-0.476582855,
0.2321135998,
0.1868414283,
0.082329832,
-0.0184042398,
-0.3946980834,
0.3314892948,
0.1307830513,
0.1343105286,
0.0008027587,
-0.2165635526,
-0.1332520694,
-0.0813142732,
0.1158777922,
0.1332538575,
-0.3024153709,
-0.4885837734,
0.2964627147,
-0.0532386936,
0.0236143265,
-0.0797285587,
-0.0233128723,
-0.3168785572,
0.2559645474,
0.1743265539,
0.2237105221,
-0.2284170389,
-0.2293235362,
-0.0868714526,
0.1811944693,
-0.1582658738,
-0.0833268315,
0.26094836,
-0.3106341064,
0.279551357,
-0.0319133736,
0.1553514302,
-0.2922911048,
-0.0527729839,
-0.0053662732,
-0.4661965072,
0.2758589387,
0.307107538,
0.2099480033,
-0.080223158,
0.0409670696,
-0.1219630241,
0.2234417796,
-0.5233284235,
-0.0302109607,
0.001033205,
0.1391542703,
-0.1670279801,
-0.2619684041,
-0.3354116678,
-0.2863456905,
-0.1781859994,
-0.0064563523,
-0.2004644573,
-0.0278631821,
0.075354524,
-0.2535726428,
0.4119325578,
0.1243200973,
-0.3606138825,
0.0199768879,
0.0319190808,
-0.2175990492,
0.1915517449,
0.1367984712,
0.0528229699,
0.1509319842,
-0.1933205873,
0.0904512778,
0.1647746116,
-0.7280176878,
-0.8107180595,
0.1307263523,
-0.3347668052,
-0.1849337518,
0.1384566724,
0.201381281,
-0.0362540297,
0.0685201734,
0.2215075642,
0.4154506624,
0.1532123834,
-0.052069772,
-0.2116687447,
-0.2501841187,
-0.08197736,
0.1286365986,
-0.0177075975,
0.1184289306,
0.0658042952,
0.2866522074,
0.3648117185,
0.2229341716,
0.025060473,
0.2568727434,
0.2532877922,
-0.2373895943,
0.0742062777,
-0.3455873132,
-0.1353586465,
0.1967520714,
-0.0337197818,
-0.0616431162,
0.0726946741,
0.0152464285,
-0.7013502121,
-0.0145169692,
-0.028621152,
0.1132363081,
-0.0027122758,
-0.0807568729,
0.1700219959,
0.2467085123,
-0.1506414413,
0.1834105849,
-0.1779388934,
0.0826307014,
-0.2662127614,
0.5761641264,
-0.113946557,
-0.0131522538,
0.2259498388,
-0.0127321724,
0.1043288186,
-0.2813250124,
-0.2468053252,
0.4825716317,
-0.0716399625,
0.2003312856,
0.2463878691,
-0.1181551218,
0.3532887101,
-0.4619978368,
0.0460467264,
0.3911323547,
0.0804877579,
0.0810727775,
-0.0561688542,
-0.1066963002,
-0.0350302458,
0.0039875433,
0.0277061854,
0.2875195742,
0.263471961,
-0.1542761475,
0.0699650422,
0.0264928546,
0.4718026221,
0.2021320164,
0.0390481614,
-0.3239116371,
-0.1517846882,
0.1211879998,
0.0168800335,
-0.1164480597,
0.0499569401,
0.1084821448,
-0.2730656862,
-0.0100982878,
-0.0915350318,
0.1740471274,
0.3176203966,
-0.028882511,
0.0464361049,
0.1469468176,
-0.0009191111,
-0.2243081778,
0.0771976709,
0.1618473232,
-0.3090695441,
0.2370452881,
-0.2095555663,
0.0952473208,
-0.1109351963,
-0.1391400248,
0.1393069625,
0.213674441,
-0.3955078423,
-0.1899581552,
-0.200148195,
-0.2043249905,
-0.0435255095,
0.0016841009,
-0.0121372715,
-0.3801865876,
-0.1141658574,
0.3690671921,
0.1014411598,
0.0482028276,
-0.4758365154,
0.1893040985,
0.2194828838,
-0.1568633765,
-0.059851218,
0.0882078186,
-0.0095184119,
0.0382626392,
0.1088435575,
0.090519689,
0.2518369853,
-0.4331505597,
0.1178487912,
-0.454167217,
-0.0072785299,
0.013708638,
0.1294219047,
0.3552984297,
-0.0385369956,
0.3139444888,
0.1073292643,
-0.1034709662,
0.3414622247,
-0.0746618882,
0.0054919734,
0.1033042669,
0.0852535293,
-0.1562527567,
0.0550820716,
-0.479221493,
-0.2680958509,
-0.2006521076,
-0.0529251769,
-0.0222731829,
0.1986184716,
-0.1797154397,
-0.1430039853,
0.1038517877,
0.1398494691,
-0.0677862167,
-0.1288672239,
-0.6448283792,
0.4080124199,
-0.1022206619,
-0.6995735765,
0.2000920922,
0.1693871617,
0.1174705103,
0.3403326571,
-0.4741563201,
-0.1018488854,
-0.106592305,
-0.0382643715,
0.1647698134,
0.194142893,
-0.0800911561,
-0.2256902009,
-0.0202176161,
-0.0977079719,
0.0553466901,
-0.103563264,
0.0274419449,
0.5004561543,
0.0852698535,
0.0597512759,
0.1300632209,
-0.1367880553,
0.1405828148,
0.2035018802,
0.3563550711,
-0.0727224573,
-0.0280804895,
0.1087002531,
-0.2844636738,
0.2065256685,
-0.1282195598,
0.0431176573,
0.0258728024,
0.1091920435,
0.3420125842,
-0.2634744644,
-0.167006284,
-0.2092675716,
-0.2998820245,
-0.3321810365,
0.0136937303,
0.1231205985,
0.091651246,
-0.0144212749,
0.0727162361,
-0.1403051019,
0.1778555214,
0.4080625474,
0.1613292992,
0.2144116908,
-0.4596476853,
0.0115304524,
-0.3043403327,
0.4467207491,
-0.0584211461,
0.5438733697,
-0.1932302415,
0.2841486931,
0.2147755176,
-0.0328808464,
0.2489599138,
-0.3598496318,
0.3768363893,
0.1246804148,
0.0971309543,
-0.3480624557,
0.0099537782,
-0.0674894527,
0.2866687477,
0.5210670233,
0.1260612309,
-0.2466196865,
0.1346725672,
0.197939828,
0.3341923058,
-0.251608789,
-0.2006480843,
-0.0871683583,
-0.2913358808,
-0.1571623534,
-0.1799231321,
-0.1568912864,
0.4338353276,
0.1714476347,
-0.2508412302,
-0.0719627663,
-0.1809170395,
0.1944191456,
-0.2211733162,
0.2509300709,
-0.0092193689,
0.3734093904,
0.1981895864,
-0.112604171,
0.0839303434,
0.4468168616,
-0.0568849072,
-0.2768048048,
0.0743426234,
-0.289981693,
0.0180146247,
-0.0002638503,
-0.2070555538,
-0.1321886331,
0.0143876681,
-0.0926488563,
-0.0400413349,
0.1988084018,
0.167775929,
0.0657331869,
-0.4178270996,
-0.4702496529,
0.5596206188,
0.0255675465,
-0.0071909861,
0.5236516595,
0.0995008647,
0.0006142457,
-0.2386469394,
-0.0285298955,
0.8740736842,
-0.072657451,
-0.1665415019,
0.0329432152,
0.2369260788,
0.4349434972,
-0.2619737089,
0.1530403346,
-0.2040700912,
-0.2099134922,
-0.2270287424,
-0.2638409138,
0.0880038589,
-0.0819127858,
-0.1742234826,
0.2847882211,
-0.3028033078,
-0.1083176658,
0.2452303767,
0.1899469942,
-0.3991164565,
-0.0356075503,
-0.0877453759,
0.0839514062,
0.0060338224,
0.5252605081,
0.0123612406,
-0.0908137709,
-0.3170990646,
-0.173698023,
-0.3657039404,
0.3574400842,
-0.0414669998,
0.1436936408,
-0.3846561313,
-0.5436285138,
0.085344173,
0.2659737468,
0.1405021846,
0.3337750435,
-0.4273462594,
0.1806910634,
-0.6988147497,
-0.2439985424,
0.4024350941,
0.15463911,
-0.0511287712,
-0.1651842594,
-0.4004124105,
0.1571593583,
0.163773641,
-0.2029011101,
0.1664413959,
-0.0724166259,
-0.0382311046,
-0.103790246,
-0.2858895957,
-0.163216874,
-0.0320180431,
-0.2169129699,
0.0880413055,
0.2978185117,
0.1264778227,
0.184249863,
0.0025436438,
-0.1675052345,
-0.0795598775,
0.5577696562,
0.0572072417,
-0.2523526251,
0.2572161853,
0.0676003322,
-0.0724701732,
-0.1352357715,
0.0185423344,
-0.1025552452,
-0.4634745717,
0.0179801304,
-0.3365723491,
0.4571562707,
-0.3576386273,
0.2944451571,
0.3125198781,
-0.1380850524,
0.1502826214,
-0.7973453403,
-0.1136270314,
0.0877462551,
0.147541821,
0.047735326,
-0.0483222269,
0.029580893,
0.3102288246,
-0.282728076,
-0.2045665234,
0.1208869964,
-0.3044483364,
-0.2683622837,
0.3134587109,
0.2526206672,
0.388572067,
-0.0854517743,
0.0673271865,
-0.1000669971,
-0.0345164016,
-0.0532262623,
-0.2939155996,
0.1637460291,
0.2089606971,
-0.0857693851,
0.0529900901,
-0.4375956059,
-0.1067869663,
0.1872212589,
-0.0609967336,
0.0621020757,
0.01436444,
0.0501833782,
-0.0159866232,
0.1406446546,
-0.3315208852,
0.3733976185,
0.0065467847,
0.5278817415,
0.0436674915,
0.112133421,
0.0563595481,
-0.0369067565,
-0.6979103088,
-0.2918991745,
0.066019848,
0.0448143259,
0.5153235197,
-0.1474612653,
0.256650418,
0.0616763085,
0.4130414128,
0.4723829329,
-0.3443360329,
0.1419506669,
0.1365566552,
0.155076474,
-0.2102419585,
-0.1826227158,
0.0686506703,
0.2505826652,
-0.2476193607,
-0.0927593037,
0.2819289863,
-0.1104102805,
0.1402889192,
-0.0651175901,
0.7016214728,
0.1687524915,
0.155689165,
0.4232131541,
0.201062426,
0.3039731681,
-0.0119660618,
0.0944557637,
-0.0380549952,
0.2047700733,
-0.1581009626,
-0.0506683812,
0.1375500709,
0.1322538108,
-0.3503827453,
-0.1795777678,
-0.0953639969,
0.1437670439,
0.0055446546,
-0.0363090672,
0.0910535306,
0.3985472918,
-0.2259220183,
0.2503094077,
-0.363814652,
0.188013956,
0.1357591748,
-0.0549106784,
0.005746075,
-0.169056952,
0.0921058506,
0.0410376936,
-0.0673785061,
-0.1604102701,
0.1741186678,
0.1986864507,
-0.120051302,
-0.779076457,
-0.1791785955,
0.2989386022,
0.0147011364,
-0.245465979,
0.0003913724,
0.2614884377,
0.1636779904,
-0.0214485507,
0.4171622992,
0.2411309332,
0.3474878073,
0.1208525375,
0.1121182069,
0.1163173988,
0.0666784346,
0.0780708864,
0.2088798434,
0.2054614723,
-0.0201429985,
0.4465978742,
0.1286212206,
-0.1199997142,
0.089542456,
0.086155884,
0.3553338647,
-0.0610403009,
0.3120929897,
-0.2622796297,
0.0192729868,
-0.250970602,
-0.2377884239,
-0.408169508,
0.122433342,
0.0060474887,
0.1133825779,
0.0608825348,
-0.2188199759,
0.017797498,
-0.097532928,
0.3430948555,
0.4244074225,
0.5027849078,
-0.3779900372,
-0.2708582878,
-0.7465455532,
0.2607395053,
-0.0095993523,
-0.5254994631,
0.1744987369,
0.0646889284,
-0.2944255471,
0.2509928346,
0.2216429561,
0.0423389897,
-0.0487051941,
0.3728373647,
-0.2809309065,
-0.2339530885,
0.026030764,
0.15652363,
-0.1947401017,
-0.2283325344,
0.3519563675,
-0.0203547068,
-0.0588541888,
-0.1764154434,
0.0378018878,
-0.0518113449,
0.0218703188,
0.6302070618,
0.0654776767,
0.6706456542,
-0.0257264283,
0.0107266,
-0.4027313888,
-0.3781179786,
0.0191304553,
-0.0149519341,
0.1169607788,
-0.076288119,
-0.2100258172,
-0.0658800676,
-0.2233672887,
0.4678159356,
-0.2327509969,
-0.030680947,
-0.2491388768,
-0.0525321476,
-0.113399677,
0.0021355909,
0.2543557286,
0.0265288949,
-0.1227390468,
0.1480676681,
-0.2221479416,
-0.2215876281,
0.1866833717,
0.0385635681,
-0.0528729297,
-0.0078572808,
0.4008480608,
0.1267257929,
0.0241415966,
-0.2552298009,
0.1538084596,
0.4878589511,
0.0368723497,
-0.2950995266,
0.2431239933,
-0.0193503983,
0.105285719,
0.1506931186,
0.2919818759,
0.0031252976,
-0.306417942,
0.1521166712,
-0.1255307794
] |
https://github.com/huggingface/datasets/issues/3232 | The Xsum datasets seems not able to download. | I don't know other download links - this is the one provided by the authors of the dataset. Maybe you can try downloading from another location ? There are several solutions: a VPN, a remote VM or Google Colab for example. | ## Describe the bug
The download Link of the Xsum dataset provided in the repository is [Link](http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz). It seems not able to download.
## Steps to reproduce the bug
```python
load_dataset('xsum')
```
## Actual results
``` python
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz
```
| 41 | The Xsum datasets seems not able to download.
## Describe the bug
The download Link of the Xsum dataset provided in the repository is [Link](http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz). It seems not able to download.
## Steps to reproduce the bug
```python
load_dataset('xsum')
```
## Actual results
``` python
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz
```
I don't know other download links - this is the one provided by the authors of the dataset. Maybe you can try downloading from another location ? There are several solutions: a VPN, a remote VM or Google Colab for example. | [
-0.3314230442,
-0.3674333394,
-0.0869147927,
0.2454146445,
0.2638825178,
-0.0272142272,
-0.1818692684,
0.2482026517,
0.4178062975,
0.4426147938,
-0.2948056161,
0.2520473599,
0.2052698135,
0.229403913,
0.2333916277,
-0.0991052091,
-0.0418626443,
-0.0463894121,
-0.2623508573,
-0.2412200719,
0.0164786689,
0.0969274566,
-0.1107285842,
-0.2037806362,
-0.0685419217,
0.1927507073,
-0.048961807,
0.1361095607,
-0.0732005164,
-0.2233384997,
0.3807666004,
0.0116304224,
-0.0209444463,
0.2757841647,
-0.0001023412,
0.0666201189,
0.099740684,
-0.0300283134,
-0.1159863323,
-0.1261524707,
-0.0542519763,
-0.1340836585,
-0.0089214602,
-0.2322688699,
-0.0214336887,
0.0928851441,
0.128505677,
-0.2837923169,
0.2894506454,
0.1835972816,
0.2622745633,
0.3545214534,
0.2521254718,
-0.2354625016,
0.0421027206,
-0.6111725569,
-0.0650986135,
0.4002919793,
0.5349777937,
0.3604322374,
0.2698486447,
0.138743341,
-0.0184305999,
0.1159686148,
0.0994658023,
-0.0088069048,
0.4251706004,
-0.4580979347,
-0.0377014503,
0.2458869964,
0.6778415442,
-0.0534334108,
-0.3044258058,
0.1442498714,
0.1381594241,
-0.0378244072,
0.2553847134,
0.1585570276,
-0.0625749305,
0.0369445384,
-0.0324652456,
0.0412390567,
-0.3176603615,
0.3286126852,
-0.0225298144,
0.166161865,
-0.1188478693,
-0.0041794688,
-0.1271898746,
-0.0149070611,
0.0586923249,
0.0965284333,
0.1769686043,
0.155857563,
-0.284611702,
0.1427175999,
-0.2149123996,
0.0313395746,
0.2618594468,
0.0583335273,
0.173847571,
0.1864020675,
-0.3274874389,
0.2107256353,
0.0806824863,
-0.066043593,
0.0477898009,
-0.422545284,
0.2691686749,
0.0077106939,
0.2094692588,
0.0479165092,
-0.2559855282,
-0.0337117612,
-0.1369729191,
0.0787273124,
-0.0700795501,
-0.4541299343,
-0.4220670164,
0.1466769278,
0.1119580641,
0.1790450215,
-0.1028532013,
0.0752755478,
-0.300473094,
0.3445782363,
0.1079168096,
0.1784032434,
-0.3236013353,
-0.192763716,
-0.2283518612,
0.1298199296,
-0.0567765236,
-0.1783257276,
0.3263805807,
-0.2338006347,
0.3752079308,
-0.1128860861,
0.1937285215,
-0.0682486221,
0.0858493969,
0.1670884788,
-0.3433822393,
0.4053308964,
0.3277974129,
0.0602790937,
-0.1937612593,
0.1055343002,
-0.0933678597,
-0.0158049501,
-0.3519140184,
-0.1391732693,
0.0196877923,
0.3134670258,
-0.0988509879,
-0.3062337041,
-0.1384420395,
-0.186919719,
-0.1414746493,
-0.0133789955,
-0.3595937192,
-0.0048309877,
0.009455977,
-0.1606391966,
0.4395247698,
-0.0008220262,
-0.4742820263,
-0.0334127806,
-0.0687011778,
-0.2187205255,
0.0661053956,
0.1490436196,
0.0694584027,
-0.0002578261,
-0.0460171625,
0.208527118,
-0.0542590171,
-0.6585507393,
-0.720348835,
-0.1148057282,
-0.2071470469,
-0.309538275,
0.2289353907,
0.2369520813,
0.0606120378,
0.0944930464,
0.2532227635,
0.4002324045,
0.212263003,
-0.0413898267,
-0.2462934256,
-0.21527417,
-0.1055722609,
0.2010484338,
0.0782496259,
-0.1077929288,
0.0202926602,
0.2904142141,
0.2692916691,
0.0853498951,
-0.0242521279,
0.2244377732,
0.2133313566,
-0.1492749006,
-0.0098859631,
-0.3526054621,
-0.0454414971,
0.2160343975,
-0.0878590941,
0.0697328821,
0.1170552373,
-0.1054366082,
-0.5075929761,
-0.1614287943,
0.0519936979,
0.0862979814,
0.1952321529,
-0.0068009342,
0.2040414363,
0.1111041978,
-0.1116591468,
0.2036058903,
-0.2161929756,
-0.0081468569,
-0.3005206585,
0.3975136876,
-0.1589354575,
0.0453341715,
0.2281155437,
-0.0049804058,
0.038903933,
-0.300945133,
-0.096830979,
0.4578689337,
-0.1779158264,
0.180445224,
0.2107464671,
-0.1117247716,
0.3272362649,
-0.4625799954,
0.1479894519,
0.2682757378,
0.0193963256,
0.146094501,
-0.2089172304,
0.0453075282,
0.1333440691,
-0.0372370295,
0.1365721822,
0.3394094408,
0.3295832276,
-0.1203341484,
0.0724632442,
-0.1513467729,
0.3328153491,
0.278577745,
-0.0722143948,
-0.23406142,
-0.2141181231,
0.2760507166,
0.0674102977,
-0.046474237,
0.0974134132,
-0.1003877893,
-0.2719400227,
-0.0075925346,
0.0214756969,
0.0423117839,
0.2178726345,
0.1396817267,
0.1051539555,
0.2042915374,
-0.0685052127,
-0.2312182635,
0.0088400133,
0.1198667809,
-0.1966029853,
0.2068317831,
-0.2707984149,
0.0285452083,
-0.2991270721,
-0.0654522032,
0.0676430911,
0.1342997998,
-0.2118975222,
-0.2524081767,
-0.3269949555,
-0.1748663485,
0.1553979963,
0.0671177655,
0.0526748039,
-0.4180083871,
0.0610684864,
0.2545204759,
-0.1621089578,
0.0188998021,
-0.4152400196,
0.198076427,
0.1441426873,
0.0169227626,
-0.108349219,
-0.0798252672,
-0.1220170334,
0.1788120121,
-0.0114465728,
0.2766012549,
0.4290829897,
-0.4553025365,
0.0234286711,
-0.3072317839,
-0.1882996112,
0.0627377108,
-0.0347591974,
0.203047201,
-0.1330607831,
0.2127381414,
0.1495728493,
-0.0523155518,
0.1953898519,
-0.300056994,
0.0232130699,
0.1218385324,
-0.0415610746,
-0.2875656486,
-0.088101171,
-0.6652789116,
-0.4408215582,
-0.2259967923,
-0.0622256994,
0.1565182805,
0.1648942083,
-0.0825172588,
-0.0867540613,
0.1618592739,
0.1216485426,
0.0609675199,
-0.2026760876,
-0.5381008983,
0.4709046483,
-0.157144621,
-0.735914588,
0.3345750272,
0.242462486,
0.154178068,
0.2247956544,
-0.4123841226,
-0.1649051756,
-0.1363078207,
0.0084267259,
0.2673922777,
0.2237542123,
0.005931857,
-0.2515754998,
-0.218452245,
-0.0748411268,
0.1052634567,
-0.0527499206,
-0.0618759654,
0.3117334545,
-0.1575291902,
-0.0436741821,
0.2190058827,
-0.2400134504,
0.0570751093,
0.0851279423,
0.2238145322,
-0.0094173085,
0.1260525882,
-0.0303494725,
-0.1730285436,
0.3252553642,
-0.0957666785,
0.1106080115,
0.048915498,
0.1001996249,
0.2165913135,
-0.2608342171,
-0.0750160143,
-0.1396356672,
-0.1986327767,
-0.3532655239,
0.1021722928,
0.0826158375,
0.2038411498,
0.1236363873,
-0.087307401,
-0.1793881208,
0.1215619668,
0.2582169473,
0.0018698389,
0.1705510467,
-0.4606479108,
0.1600753963,
-0.3792287111,
0.5038499236,
-0.1086849496,
0.3054713607,
-0.2520165145,
0.1284228414,
0.3089125752,
-0.0583263822,
-0.0255420338,
-0.3124836683,
0.3229593635,
0.2191311866,
0.0807385668,
-0.3571051061,
-0.0031862571,
-0.3237018883,
0.1694846302,
0.6185863614,
0.0063832072,
-0.3254413009,
0.0270282757,
0.1674628109,
0.3870007098,
-0.3064768016,
0.0477731265,
-0.1029775441,
-0.2620682418,
-0.2011629492,
-0.1444096267,
-0.1347563118,
0.3491440713,
0.0898146704,
-0.1693667918,
-0.0492108837,
-0.171325013,
0.2191883028,
0.0265623443,
0.2924336791,
0.0587414317,
0.3033955097,
0.1255573928,
-0.0199753717,
-0.004082696,
0.4710132778,
-0.0196866952,
-0.1300714463,
0.0951402485,
-0.4362036586,
0.0624713525,
0.0875066146,
-0.1921836138,
-0.2726235688,
0.0045220735,
0.0680650324,
0.0260472968,
0.2409312725,
0.2365342379,
0.0381136127,
-0.2372907102,
-0.3272549808,
0.4491287172,
0.052517049,
0.0155697688,
0.3962602615,
0.0383121371,
0.0858978629,
-0.0890886784,
0.1242987141,
0.7229536772,
-0.0264749415,
-0.0935974345,
0.0357899293,
0.3761507869,
0.3426456451,
-0.301012218,
0.2152244002,
-0.0040641683,
-0.1988699287,
-0.0867732763,
-0.0075656185,
-0.0658705011,
-0.0425733104,
-0.1353339553,
0.255156666,
-0.0703857765,
-0.1402087957,
0.1327195466,
0.2410948426,
-0.3377032578,
-0.1222829893,
-0.0994045362,
0.227524519,
0.0808478072,
0.4068649113,
0.0256511122,
-0.0621010326,
-0.1877570897,
-0.1257401705,
-0.2291548848,
0.4233471155,
0.2130204439,
0.2643769085,
-0.4006457925,
-0.3195304871,
-0.0999160036,
0.1410371512,
0.1623194069,
0.3421447873,
-0.3819698393,
0.1716169566,
-0.5709159374,
-0.3153099418,
0.4148566127,
0.1471731067,
0.0992254317,
-0.2696254849,
-0.3059247136,
0.164451316,
0.173555851,
-0.1779198498,
0.0867777318,
-0.0788208842,
0.0176326614,
0.0455454364,
-0.078302525,
0.0257062558,
-0.1093186513,
-0.2441219389,
0.233306393,
0.2037580311,
-0.0165517647,
0.251781255,
0.0380896106,
-0.2513861656,
-0.1233497262,
0.4955026507,
0.1224897429,
-0.0873548016,
0.3090547919,
0.1304319203,
-0.1016502753,
-0.2839201093,
-0.2328462601,
-0.017468391,
-0.3589041531,
0.0418812931,
-0.2789494991,
0.2056041211,
-0.1519548595,
0.3421101868,
0.2084623128,
-0.3425599635,
-0.0539466031,
-0.6521319151,
-0.2452821583,
0.1229348108,
0.2323560566,
0.1799689978,
-0.0469860472,
0.145820573,
0.2378960848,
-0.2760306895,
-0.4064091146,
0.0717901587,
-0.2867466509,
-0.2326965481,
0.1691672206,
0.0703990161,
0.3483732939,
-0.0130382013,
0.2044917345,
-0.0770959035,
-0.1372995675,
-0.2171601951,
-0.2009259462,
0.0861226916,
0.1373476237,
-0.057409361,
0.1034459099,
-0.4291006923,
-0.2149749398,
0.1222555116,
0.088689208,
0.0303206146,
0.0724955723,
0.1365005374,
-0.058267802,
0.2885466516,
0.0013637511,
0.2742424011,
0.0368575864,
0.4490576982,
-0.0828199834,
0.0857716054,
-0.0272280239,
-0.1261807531,
-0.4640001357,
-0.3442685008,
-0.030588083,
0.0273382124,
0.4412344992,
-0.0503637493,
0.2639205158,
0.0120197805,
0.347856462,
0.4871442318,
-0.1906339675,
0.1687078178,
0.0321049131,
0.3009116948,
-0.3212831616,
-0.1646490246,
0.0308990143,
0.2993094325,
-0.1345832944,
-0.1654630899,
0.4095569551,
-0.0211728886,
0.3620657921,
0.0103544509,
0.4314462245,
0.0678499416,
0.0849253982,
0.3530265391,
0.1755636781,
0.212722227,
-0.1170088351,
0.093019411,
-0.061033722,
0.2869582176,
-0.2000847906,
0.128306672,
-0.0752857253,
0.1254280955,
-0.2764182687,
-0.1698991358,
0.0183296204,
0.1023209915,
0.1090575531,
0.0817446187,
0.073038958,
0.4263457358,
-0.3149744868,
0.1602241546,
-0.5445182323,
0.291600734,
0.0850933567,
-0.06484887,
-0.1132617295,
-0.0856356472,
0.0460629463,
0.1749815345,
0.092679888,
-0.1541592777,
0.0848356038,
0.2077600956,
-0.1609717011,
-0.7186644673,
-0.2439987808,
0.1236529201,
0.092640698,
-0.1157344505,
0.0760574788,
0.2902789116,
0.1110848933,
-0.0448140353,
0.4718850851,
0.2241080701,
0.1952052712,
-0.0603035167,
0.1904769838,
0.2560662031,
-0.0338943005,
-0.1078507379,
0.2281546444,
0.1222390682,
0.0607801042,
0.3688237071,
0.2306297272,
-0.2560632527,
-0.0357706919,
-0.0200896729,
0.3096989393,
0.1305413544,
0.0997779891,
0.0323445313,
0.0252468642,
-0.2275845557,
-0.2740125358,
-0.5904369354,
0.1214060709,
-0.1174265146,
0.123601377,
0.0885012895,
-0.3194503188,
0.1199073195,
-0.1632310003,
0.5202538967,
0.2430123389,
0.3614239395,
-0.2201384604,
-0.2341994047,
-0.8040485978,
0.2815494835,
-0.0823639631,
-0.5408521891,
0.0528042018,
0.2002480328,
-0.106203407,
0.2381417453,
0.199999705,
-0.0564502627,
-0.0824479535,
0.2329775244,
-0.3426967859,
0.0178265534,
0.2088257372,
0.1160181016,
-0.053082414,
-0.2025061697,
0.2547183931,
-0.0121642724,
0.1061898842,
-0.0600607134,
0.0019695878,
-0.0593093075,
0.102098681,
0.5750190616,
0.0409538783,
0.5529907942,
-0.1147385463,
-0.1283134371,
-0.3989209235,
-0.2399511337,
-0.0920416936,
0.0120409718,
0.2441794723,
-0.0998191684,
-0.0497388653,
-0.0336217284,
-0.0863230079,
0.4100387096,
-0.1383404434,
-0.1440547854,
-0.2658671737,
0.0460957699,
-0.120614633,
0.0518213809,
0.2070147246,
0.0722762197,
-0.1311300844,
-0.0662427321,
-0.2533491552,
-0.3182993233,
0.1743829846,
-0.0500062816,
0.0226729736,
-0.1267291754,
0.2843562961,
0.2881577909,
-0.0382097252,
-0.2045844495,
0.2756443918,
0.2529918253,
-0.09741465,
-0.2607114315,
0.2355533093,
-0.0293699428,
-0.0718540549,
-0.0945924222,
0.2715425491,
0.0308413636,
-0.2629646361,
0.0003337431,
-0.1966289282
] |
https://github.com/huggingface/datasets/issues/3232 | The Xsum datasets seems not able to download. | > I don't know other download links - this is the one provided by the authors of the dataset. Maybe you can try downloading from another location ? There are several solutions: a VPN, a remote VM or Google Colab for example.
:> ok. Thanks for your reply. | ## Describe the bug
The download Link of the Xsum dataset provided in the repository is [Link](http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz). It seems not able to download.
## Steps to reproduce the bug
```python
load_dataset('xsum')
```
## Actual results
``` python
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz
```
| 48 | The Xsum datasets seems not able to download.
## Describe the bug
The download Link of the Xsum dataset provided in the repository is [Link](http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz). It seems not able to download.
## Steps to reproduce the bug
```python
load_dataset('xsum')
```
## Actual results
``` python
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz
```
> I don't know other download links - this is the one provided by the authors of the dataset. Maybe you can try downloading from another location ? There are several solutions: a VPN, a remote VM or Google Colab for example.
:> ok. Thanks for your reply. | [
-0.3331863284,
-0.3943813741,
-0.0960558727,
0.2603081167,
0.2701826692,
-0.0308501571,
-0.1864698827,
0.2266122401,
0.4172305763,
0.4343669415,
-0.2952316105,
0.2692236006,
0.1890334338,
0.2628757656,
0.2242891639,
-0.1081005707,
-0.0503329001,
-0.0338187404,
-0.2698960602,
-0.2509644628,
0.0220207442,
0.1142223626,
-0.1153063998,
-0.2087220252,
-0.0738672167,
0.1842098534,
-0.0624814592,
0.1441022158,
-0.0863122568,
-0.2241957188,
0.3790411949,
0.011186881,
-0.0025084002,
0.2709027529,
-0.0001025416,
0.0500125997,
0.0930597186,
-0.031462457,
-0.0893704891,
-0.0961987525,
-0.0602210015,
-0.1364177018,
-0.0071803653,
-0.2456212044,
-0.0231100135,
0.0989540294,
0.1164864972,
-0.291043222,
0.2828277051,
0.1932457983,
0.2635889053,
0.3580076098,
0.2694312334,
-0.2109714597,
0.0550949574,
-0.6059845686,
-0.0645669475,
0.3859768808,
0.551797688,
0.3631402552,
0.2569545507,
0.1440763175,
-0.0156296398,
0.108680062,
0.1041478589,
-0.0181403086,
0.4408889711,
-0.4836004674,
-0.0649555326,
0.24809964,
0.6997226477,
-0.0777744576,
-0.2917541862,
0.1496772021,
0.1368192881,
-0.0587948374,
0.246718049,
0.1566775888,
-0.046971634,
0.0305363908,
-0.030700542,
0.0550830364,
-0.3251152635,
0.3186473846,
-0.0180720985,
0.1701720506,
-0.1344881207,
-0.0090968702,
-0.1335240752,
-0.0315354057,
0.0691636652,
0.0903750658,
0.1619879454,
0.1564095914,
-0.3004858494,
0.1194334179,
-0.2136290222,
0.0422642007,
0.2669880986,
0.0710891113,
0.1824441701,
0.1868773699,
-0.3374999166,
0.2084651738,
0.0790748522,
-0.0536058061,
0.0885344073,
-0.4192287922,
0.2647752762,
-0.0072431127,
0.2187036276,
0.0540565625,
-0.2547840178,
-0.0272202715,
-0.1209924519,
0.072772935,
-0.0755153075,
-0.4470126033,
-0.4298918247,
0.1524611712,
0.1182737201,
0.165966168,
-0.0920754075,
0.0822656155,
-0.3017967641,
0.3540789187,
0.0929233655,
0.177167505,
-0.3262224495,
-0.1831180006,
-0.2286144942,
0.1500976831,
-0.0580754317,
-0.1754902005,
0.3294421434,
-0.2223077714,
0.3647085726,
-0.1087289304,
0.2077609748,
-0.0637172982,
0.0953834429,
0.1464604437,
-0.3404741287,
0.404958725,
0.3226245046,
0.0609436855,
-0.2005068213,
0.1112793908,
-0.0874064714,
0.0118850302,
-0.3542284369,
-0.1406757236,
0.0084007746,
0.3203361332,
-0.0911240876,
-0.3050469756,
-0.1504708529,
-0.1723527312,
-0.1186180487,
0.0012499017,
-0.3344173431,
-0.0240627881,
0.0093653873,
-0.1694460511,
0.4229624867,
-0.0313947536,
-0.4814021587,
-0.0307761561,
-0.0579438843,
-0.2459221482,
0.0806735381,
0.1470638067,
0.0817771703,
0.0028045352,
-0.0612334013,
0.2216237783,
-0.0577324368,
-0.6693434119,
-0.7009036541,
-0.1264820397,
-0.1849503219,
-0.306126833,
0.2229801714,
0.2429101765,
0.0561567284,
0.1074322164,
0.2482324243,
0.3893902302,
0.2002228647,
-0.0228897762,
-0.240804255,
-0.2066565603,
-0.0903405547,
0.2036616653,
0.0816980153,
-0.1064245477,
0.0073412564,
0.2834549546,
0.2793329358,
0.0730081648,
-0.0252429936,
0.2351290137,
0.2337057441,
-0.1677935421,
0.009021176,
-0.3701272309,
-0.0504720397,
0.2122425139,
-0.0963127464,
0.073443532,
0.1302363127,
-0.1064962298,
-0.5121939182,
-0.1756364256,
0.0503716841,
0.0709370151,
0.1982218325,
-0.0177567471,
0.1817718595,
0.0957743302,
-0.1306692362,
0.2211690396,
-0.227856636,
-0.01834381,
-0.3073248863,
0.3943322301,
-0.1694323719,
0.0371000171,
0.2341393977,
-0.0025969252,
0.0335052274,
-0.3117398918,
-0.0916783586,
0.4463248849,
-0.1743683219,
0.1729969233,
0.2096287459,
-0.118464902,
0.336144805,
-0.4633334577,
0.1452405304,
0.2489537746,
0.0181868672,
0.1221169904,
-0.1947706193,
0.0483619273,
0.1212476343,
-0.0609806962,
0.1258874536,
0.3105273545,
0.3302661479,
-0.1301491708,
0.0604834482,
-0.1618537158,
0.3265808821,
0.2836846113,
-0.0802441612,
-0.2443371862,
-0.1977047771,
0.2765051723,
0.0629318506,
-0.0472005866,
0.106927067,
-0.0922452137,
-0.2746285796,
-0.0048713642,
0.0335235894,
0.0454430729,
0.2405521721,
0.150946632,
0.0957199186,
0.1986463219,
-0.0543194972,
-0.2271697223,
0.0195515063,
0.1166499928,
-0.1848204434,
0.2262802571,
-0.2694709599,
0.0242144428,
-0.3155527711,
-0.062330842,
0.077178359,
0.1465240121,
-0.2164067328,
-0.271189481,
-0.3040674031,
-0.1796855181,
0.1709596664,
0.0525438674,
0.0523616001,
-0.4137830734,
0.0648387522,
0.2429761738,
-0.1489024609,
0.008625268,
-0.40724805,
0.2058001608,
0.162516579,
0.0313277729,
-0.1041899621,
-0.0741675943,
-0.096810475,
0.1858599633,
-0.0260724276,
0.2868191004,
0.4429761767,
-0.457734108,
0.0306831244,
-0.2998050153,
-0.1961788386,
0.0768800527,
-0.045810733,
0.2087686956,
-0.1356749386,
0.213495478,
0.1636312008,
-0.0589805879,
0.1889707595,
-0.2825785875,
0.0080505675,
0.1149459556,
-0.0468087271,
-0.276298672,
-0.0977354348,
-0.6756281853,
-0.4522067904,
-0.2092455178,
-0.056640137,
0.1673419476,
0.176529333,
-0.0768650174,
-0.1121862233,
0.1709616333,
0.1206320673,
0.0600411929,
-0.2225434184,
-0.5547969937,
0.4554390013,
-0.1665538251,
-0.7234408259,
0.3154022098,
0.233035937,
0.1606281102,
0.2140375376,
-0.3980074227,
-0.1741479188,
-0.1349669993,
0.0005806197,
0.2583882809,
0.2056425661,
0.0101450477,
-0.2489761114,
-0.2149873376,
-0.0869336724,
0.1063395813,
-0.0512534417,
-0.0466463566,
0.306791991,
-0.1511771977,
-0.0431983434,
0.1992014945,
-0.2496546507,
0.0533783287,
0.0849669352,
0.2279258221,
-0.0276673287,
0.1130748987,
-0.0285104644,
-0.1913943142,
0.3319617212,
-0.108072415,
0.1236484945,
0.0443779565,
0.1028816923,
0.223160252,
-0.2587999403,
-0.0706842542,
-0.1378161609,
-0.1908772141,
-0.3602779508,
0.1062254608,
0.0717598572,
0.1825160682,
0.0890842825,
-0.0839559585,
-0.1746226549,
0.1141598597,
0.262142092,
-0.0000137786,
0.1589595526,
-0.4843954444,
0.1720153242,
-0.3638409376,
0.4913676381,
-0.0999949351,
0.2990447283,
-0.2473519892,
0.1386933625,
0.2961477637,
-0.0693682954,
-0.0115681496,
-0.3116866648,
0.3127517104,
0.2277562469,
0.0773084015,
-0.349088043,
0.0064262459,
-0.3412180543,
0.1826519668,
0.622702539,
0.0143742915,
-0.3250989914,
0.0297488384,
0.1630867422,
0.3896095455,
-0.3023192883,
0.0265081953,
-0.1024835408,
-0.2359155416,
-0.2095866799,
-0.1348959208,
-0.1322509944,
0.3642018437,
0.075233072,
-0.1845201552,
-0.042655427,
-0.1776064038,
0.229326129,
0.0227402765,
0.2998326719,
0.0562485792,
0.3138239682,
0.0988933966,
-0.0339806937,
-0.0027805446,
0.4546592236,
-0.0293620564,
-0.1252791137,
0.0935259312,
-0.4663602114,
0.068779923,
0.0681114942,
-0.20206213,
-0.2644545138,
-0.0191881843,
0.0707199946,
0.0180591978,
0.2349678278,
0.2416497767,
0.0525262654,
-0.2382829785,
-0.3186347485,
0.4482690096,
0.0587486215,
0.0097952224,
0.3854840398,
0.0396109149,
0.0763043538,
-0.101407133,
0.1384236962,
0.7176880836,
-0.0215857979,
-0.1049376354,
0.0362156369,
0.3847421408,
0.3454733789,
-0.2987014949,
0.2178814411,
-0.0339162387,
-0.2025038004,
-0.0848742425,
-0.0183228794,
-0.0466893725,
-0.046821706,
-0.1391468644,
0.2464262247,
-0.071341224,
-0.15606381,
0.1081946269,
0.2442705482,
-0.3458029032,
-0.1168634892,
-0.0998082235,
0.2237780392,
0.0808796436,
0.3956347406,
0.0179621205,
-0.0579782128,
-0.1756555587,
-0.1329564899,
-0.217961207,
0.4013838172,
0.2022796571,
0.2509948015,
-0.4145877957,
-0.3133637905,
-0.0946381018,
0.1623928547,
0.1876624823,
0.3204236925,
-0.3836183548,
0.1661300212,
-0.5624512434,
-0.3003265858,
0.4048603177,
0.1539186984,
0.1233041584,
-0.2771668732,
-0.3223564327,
0.1548116356,
0.1655854434,
-0.1545292437,
0.082022652,
-0.0651587024,
0.0290125981,
0.0258136913,
-0.0885445476,
0.0440451652,
-0.1061886698,
-0.2251538932,
0.2324092537,
0.2182870656,
-0.0257693175,
0.2951816916,
0.0329576619,
-0.256410867,
-0.1244467348,
0.4937158823,
0.1427722275,
-0.0871695504,
0.3028951287,
0.1333004683,
-0.1145661622,
-0.2889710069,
-0.2238994092,
-0.0222699624,
-0.352586776,
0.0354494341,
-0.2528894842,
0.2027536184,
-0.1459957212,
0.3421204984,
0.2099554241,
-0.3303167522,
-0.039917618,
-0.6581879258,
-0.2728694379,
0.1105146259,
0.2199166715,
0.1960132867,
-0.0426985733,
0.1465298533,
0.2491933703,
-0.2781334519,
-0.4104873836,
0.0842344835,
-0.286837697,
-0.2258326709,
0.1782794148,
0.0644604564,
0.3473423123,
-0.015714949,
0.2022150308,
-0.0672202259,
-0.1513572335,
-0.2181940377,
-0.19517456,
0.0820246935,
0.1454714388,
-0.0671948567,
0.1167850792,
-0.4251764417,
-0.2205126286,
0.1367296129,
0.1024770439,
0.0306678712,
0.0703513697,
0.1629662812,
-0.0419541635,
0.2764517069,
0.0065883035,
0.2732304633,
0.0570092835,
0.4353037775,
-0.0848016292,
0.0897369236,
-0.042068474,
-0.1314917952,
-0.4469013214,
-0.3350125253,
-0.0202745777,
0.0297295451,
0.424123168,
-0.047135856,
0.2612426877,
0.004743869,
0.3585337102,
0.4790759087,
-0.2019319534,
0.1719891578,
0.0230270829,
0.3057930171,
-0.3307420015,
-0.1621238738,
0.0257731881,
0.2988627255,
-0.1345935613,
-0.1624758989,
0.3965954185,
-0.0241167676,
0.3696236014,
0.0095842844,
0.4443896711,
0.0563179404,
0.0550400205,
0.3314823508,
0.1466685236,
0.215555191,
-0.0910678953,
0.0899878964,
-0.0708334073,
0.303922385,
-0.1968773156,
0.1382182389,
-0.0655948222,
0.1170370504,
-0.2702925205,
-0.166633442,
0.0190174934,
0.1189436615,
0.106395565,
0.0828543901,
0.0916331932,
0.4362027347,
-0.2922613323,
0.1546978801,
-0.5318650603,
0.2957754731,
0.080659993,
-0.0634059235,
-0.0980492085,
-0.0935454071,
0.0457608551,
0.1510871649,
0.0715704113,
-0.1285568625,
0.082699962,
0.2049288452,
-0.171545893,
-0.7250719666,
-0.2464501262,
0.1273066401,
0.0905173719,
-0.1230435893,
0.0847739428,
0.306915164,
0.1303445846,
-0.0585882887,
0.4835754037,
0.2235301882,
0.1978985369,
-0.0560502149,
0.2059183866,
0.2619798481,
-0.0171245914,
-0.090747498,
0.2213673741,
0.1236083731,
0.0437786989,
0.3742475808,
0.2317857146,
-0.2510775924,
-0.0296435319,
0.0083040064,
0.2955990732,
0.1208083779,
0.0900649801,
0.0484450348,
0.021548897,
-0.2419912815,
-0.2729562819,
-0.5800819993,
0.1292972416,
-0.1184842214,
0.126292631,
0.093378365,
-0.3181444108,
0.1240641996,
-0.1662474424,
0.5195281506,
0.2251754105,
0.3552331626,
-0.2280583531,
-0.2223504484,
-0.8105404973,
0.2763861716,
-0.0549079925,
-0.5391687155,
0.0618911907,
0.1910825223,
-0.0879949257,
0.2315394878,
0.2029699087,
-0.0574808232,
-0.0750055388,
0.2199908793,
-0.3719044626,
0.0301900953,
0.2081290185,
0.1171715111,
-0.0483033769,
-0.2021133751,
0.2516311109,
0.0036930169,
0.1051314548,
-0.0691254362,
0.0042857672,
-0.0599333681,
0.1020331755,
0.5651316047,
0.0322114341,
0.5706572533,
-0.1385516226,
-0.0994237587,
-0.3586053848,
-0.2392712981,
-0.0845936313,
0.0210491139,
0.2738942504,
-0.0977811888,
-0.0575541593,
-0.0330335051,
-0.0848847628,
0.4214343429,
-0.1421356797,
-0.1433636099,
-0.2804454863,
0.0691003725,
-0.0907455087,
0.0418423787,
0.1699325442,
0.0718235523,
-0.1279713959,
-0.0473570153,
-0.2501648962,
-0.3313190341,
0.1924650669,
-0.0429387875,
0.0319387689,
-0.1263874471,
0.289262414,
0.2994459867,
-0.063517496,
-0.2206382602,
0.2710119486,
0.2630388737,
-0.1008881852,
-0.2577262521,
0.2253064066,
-0.0217698626,
-0.0644421354,
-0.1021165475,
0.2631697953,
0.0474924818,
-0.253964901,
-0.0046441145,
-0.1941388249
] |
https://github.com/huggingface/datasets/issues/3227 | Error in `Json(datasets.ArrowBasedBuilder)` class | I have additionally identified the source of the error, being that [this condition](https://github.com/huggingface/datasets/blob/fc46bba66ba4f432cc10501c16a677112e13984c/src/datasets/packaged_modules/json/json.py#L124-L126) in the file
`python3.8/site-packages/datasets/packaged_modules/json/json.py` is not being entered correctly:
```python
if (
isinstance(e, pa.ArrowInvalid)
and "straddling" not in str(e)
or block_size > len(batch)
):
```
From what I can tell, in my case the block_size simply needs to be increased, but the error message does not contain "straddling" so the condition does trigger correctly and we fail to reach [the line to increase block_size](https://github.com/huggingface/datasets/blob/fc46bba66ba4f432cc10501c16a677112e13984c/src/datasets/packaged_modules/json/json.py#L135).
Changing the condition above to simply
```python
if (
block_size > len(batch)
):
```
Fixes the error for me. I'm happy to create a PR containing this fix if the developers deem the other conditions unnecessary. | ## Describe the bug
When a json file contains a `text` field that is larger than the block_size, the JSON dataset builder fails.
## Steps to reproduce the bug
Create a folder that contains the following:
```
.
├── testdata
│ └── mydata.json
└── test.py
```
Please download [this file](https://github.com/huggingface/datasets/files/7491797/mydata.txt) as `mydata.json`. (The error does not occur in JSON files with shorter text, but it is reproducible when the text is long as in the file I provide)
:exclamation: :exclamation: GitHub doesn't allow me to upload JSON so this file is a TXT, and you should rename it to `.json`!
`test.py` simply contains:
```python
from datasets import load_dataset
my_dataset = load_dataset("testdata")
```
To reproduce the error, simply run
```
python test.py
```
## Expected results
The data should load correctly without error.
## Actual results
The dataset builder fails with:
```
Using custom data configuration testdata-d490389b8ab4fd82
Downloading and preparing dataset json/testdata to /home/junshern.chan/.cache/huggingface/datasets/json/testdata-d490389b8ab4fd82/0.0.0/3333a8af0db9764dfcff43a42ff26228f0f2e267f0d8a0a294452d188beadb34...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 2264.74it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 447.01it/s]
Failed to read file '/home/junshern.chan/hf-json-bug/testdata/mydata.json' with error <class 'pyarrow.lib.ArrowInvalid'>: JSON parse error: Missing a name for object member. in row 0
Traceback (most recent call last):
File "test.py", line 28, in <module>
my_dataset = load_dataset("testdata")
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 697, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 1156, in _prepare_split
for key, table in utils.tqdm(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/tqdm/std.py", line 1168, in __iter__
for obj in iterable:
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/packaged_modules/json/json.py", line 146, in _generate_tables
raise ValueError(
ValueError: Not able to read records in the JSON file at /home/junshern.chan/hf-json-bug/testdata/mydata.json. You should probably indicate the field of the JSON file containing your records. This JSON file contain the following fields: ['text']. Select the correct one and provide it as `field='XXX'` to the dataset loading method.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-5.8.0-63-generic-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 6.0.0
| 113 | Error in `Json(datasets.ArrowBasedBuilder)` class
## Describe the bug
When a json file contains a `text` field that is larger than the block_size, the JSON dataset builder fails.
## Steps to reproduce the bug
Create a folder that contains the following:
```
.
├── testdata
│ └── mydata.json
└── test.py
```
Please download [this file](https://github.com/huggingface/datasets/files/7491797/mydata.txt) as `mydata.json`. (The error does not occur in JSON files with shorter text, but it is reproducible when the text is long as in the file I provide)
:exclamation: :exclamation: GitHub doesn't allow me to upload JSON so this file is a TXT, and you should rename it to `.json`!
`test.py` simply contains:
```python
from datasets import load_dataset
my_dataset = load_dataset("testdata")
```
To reproduce the error, simply run
```
python test.py
```
## Expected results
The data should load correctly without error.
## Actual results
The dataset builder fails with:
```
Using custom data configuration testdata-d490389b8ab4fd82
Downloading and preparing dataset json/testdata to /home/junshern.chan/.cache/huggingface/datasets/json/testdata-d490389b8ab4fd82/0.0.0/3333a8af0db9764dfcff43a42ff26228f0f2e267f0d8a0a294452d188beadb34...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 2264.74it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 447.01it/s]
Failed to read file '/home/junshern.chan/hf-json-bug/testdata/mydata.json' with error <class 'pyarrow.lib.ArrowInvalid'>: JSON parse error: Missing a name for object member. in row 0
Traceback (most recent call last):
File "test.py", line 28, in <module>
my_dataset = load_dataset("testdata")
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 697, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 1156, in _prepare_split
for key, table in utils.tqdm(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/tqdm/std.py", line 1168, in __iter__
for obj in iterable:
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/packaged_modules/json/json.py", line 146, in _generate_tables
raise ValueError(
ValueError: Not able to read records in the JSON file at /home/junshern.chan/hf-json-bug/testdata/mydata.json. You should probably indicate the field of the JSON file containing your records. This JSON file contain the following fields: ['text']. Select the correct one and provide it as `field='XXX'` to the dataset loading method.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-5.8.0-63-generic-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 6.0.0
I have additionally identified the source of the error, being that [this condition](https://github.com/huggingface/datasets/blob/fc46bba66ba4f432cc10501c16a677112e13984c/src/datasets/packaged_modules/json/json.py#L124-L126) in the file
`python3.8/site-packages/datasets/packaged_modules/json/json.py` is not being entered correctly:
```python
if (
isinstance(e, pa.ArrowInvalid)
and "straddling" not in str(e)
or block_size > len(batch)
):
```
From what I can tell, in my case the block_size simply needs to be increased, but the error message does not contain "straddling" so the condition does trigger correctly and we fail to reach [the line to increase block_size](https://github.com/huggingface/datasets/blob/fc46bba66ba4f432cc10501c16a677112e13984c/src/datasets/packaged_modules/json/json.py#L135).
Changing the condition above to simply
```python
if (
block_size > len(batch)
):
```
Fixes the error for me. I'm happy to create a PR containing this fix if the developers deem the other conditions unnecessary. | [
-0.2403119802,
0.1650995016,
-0.1146983206,
0.4822804034,
0.0954777747,
0.1549095958,
0.1611650586,
0.4468063116,
0.1629001051,
0.0544317663,
0.2402578294,
0.2136399299,
-0.0641991049,
0.0986969247,
-0.0887032151,
-0.063235119,
-0.0958853215,
0.2196529508,
0.0554810464,
0.2388131469,
-0.1375443935,
0.2395699471,
-0.0216474347,
0.0441667363,
-0.1683246195,
-0.0880120993,
0.2261151224,
0.1981150061,
-0.3999558091,
-0.6317943335,
0.2991527915,
-0.2521600425,
-0.0838635117,
0.4933880866,
-0.0001105037,
0.1315785199,
0.5007125139,
0.0465628281,
-0.4148834944,
-0.2232685089,
-0.1364114136,
-0.4095892012,
0.1372780949,
-0.1202352792,
0.0772151649,
-0.5005882382,
-0.1944184303,
-0.2052554935,
0.6144830585,
0.3781802952,
0.2444536835,
-0.0172367543,
0.4392919242,
-0.0124508692,
0.2353535444,
0.2149987221,
-0.1381489187,
0.3187202811,
0.1872860044,
0.423430264,
-0.1916899085,
0.0232487842,
0.1327309757,
0.1254612952,
0.2729100883,
-0.0767258406,
0.0167171359,
-0.0212383457,
0.232004106,
0.0730813369,
0.5951886177,
-0.3755437732,
-0.4317632318,
-0.2903707325,
0.0442762189,
-0.0678210407,
0.3881251812,
0.1591870189,
-0.1912017018,
0.1276555657,
-0.1218235865,
-0.1066586524,
-0.1995978504,
0.0545987152,
0.0055701495,
0.0142569114,
-0.2931365967,
0.0427683629,
-0.0168284941,
-0.316967696,
0.0828656033,
-0.1454017311,
-0.3469507694,
0.2273458391,
-0.1418414116,
-0.1531400532,
-0.1034252495,
-0.3367693126,
0.3313128352,
0.1526702493,
0.1026708782,
-0.0181602463,
-0.1312155128,
0.142752111,
0.3137507439,
0.1493088603,
0.1275748014,
0.0306878481,
0.0981536359,
0.3543129265,
-0.1037021801,
-0.09011475,
-0.0526893288,
-0.3660354912,
0.0280835144,
-0.3211251795,
0.2621264756,
-0.2186489552,
-0.1130314618,
0.3243969083,
-0.2721691132,
-0.0167544875,
0.0370391235,
0.2277625054,
0.0052967691,
-0.178799957,
0.0841014832,
0.2368549854,
0.1973742545,
-0.1256801039,
-0.1394315809,
-0.0941005871,
-0.0140536046,
-0.0533158556,
0.1990813613,
-0.1054169461,
0.4438874125,
0.1304032058,
0.1367828399,
-0.2728516161,
0.0169605203,
-0.0018024787,
-0.1420743614,
0.3386524916,
-0.0260525271,
0.0750590563,
0.0869664922,
-0.3207396865,
-0.1433797628,
0.1236498877,
-0.1157214642,
-0.1883134544,
-0.2907380462,
0.2257093489,
-0.0367965475,
0.0658994392,
-0.5976702571,
-0.0011100359,
0.063855581,
-0.1855829656,
0.231644839,
-0.1494341046,
0.193838194,
-0.1521390826,
0.1029576287,
0.1464118958,
-0.4950018823,
0.0221776236,
-0.1589582562,
-0.0176940784,
-0.0424076654,
0.1898301393,
-0.3118866384,
0.2282847166,
-0.2827686965,
0.1994858533,
0.3716089725,
-0.1947320998,
-0.5814798474,
0.4290317893,
-0.060375236,
0.180299148,
0.0617140718,
-0.1903425902,
-0.0216889996,
0.0542631336,
0.1778850555,
0.1786769032,
-0.0923181549,
0.0467420705,
-0.1771629602,
-0.2370401025,
-0.1145113036,
0.1815148145,
-0.1182242334,
-0.1742785573,
0.1272885948,
0.0504545979,
0.0662609935,
-0.0625445768,
0.1244465336,
0.3878651261,
0.035494294,
-0.1943141967,
0.0840657726,
-0.1906257272,
-0.5504311919,
0.1895053983,
-0.1231906414,
-0.0653063282,
-0.3439676166,
0.0051856842,
-0.3859593868,
0.154690057,
-0.2247075438,
-0.084985733,
0.1455647498,
-0.0632973313,
0.1666700393,
-0.0886187032,
-0.1392122954,
0.0785618797,
-0.3218708634,
0.2977219522,
-0.2379861921,
0.0187070686,
-0.0598167218,
-0.1872346848,
0.0309127513,
-0.0353586525,
-0.0965542421,
-0.0168782864,
-0.3940273225,
0.2459173948,
0.1489118487,
-0.0034361032,
0.0167313144,
-0.0127038611,
0.0202896725,
-0.1318184882,
0.2086426616,
0.3051686883,
0.0084879436,
-0.0966419429,
-0.0439681225,
0.3174681664,
-0.0848724619,
0.2753057778,
0.0308773965,
-0.2157544196,
0.358717978,
0.1766272187,
-0.1378899664,
-0.0662183315,
0.0552624129,
0.0341623239,
0.3627393842,
0.0012815036,
-0.2344884276,
-0.1374022365,
0.5148671269,
0.0055709686,
0.0353189968,
0.3234329522,
-0.328877598,
-0.055070214,
0.0166630987,
0.3429916203,
0.385736078,
0.1958514601,
-0.1432739198,
0.1436223835,
0.1142028421,
-0.1619252861,
0.294993937,
-0.0753320903,
0.3333458006,
0.3271286786,
0.3447594643,
-0.065499559,
-0.3512382507,
-0.3344880939,
-0.1525238156,
0.1580728292,
-0.2348374873,
0.0627109632,
-0.1558991075,
-0.0391671024,
-0.2204367518,
-0.1645060033,
-0.2174470127,
-0.144141525,
-0.0193370171,
0.033484593,
-0.1674218327,
-0.0444167852,
-0.0390952155,
0.2795858979,
0.1392438114,
-0.2436900586,
-0.2823620439,
0.0607375391,
-0.3482089341,
0.0674668625,
0.4192629457,
-0.0003480852,
0.0694916695,
-0.0711839274,
-0.0388314724,
-0.1816260219,
-0.1992989331,
0.0969153792,
-0.0967313424,
0.4307474792,
0.2579059899,
0.2820334136,
-0.1104067415,
-0.1597538441,
0.2159287781,
0.0003314134,
-0.4779900312,
0.0716937557,
0.0592678636,
0.1459031403,
-0.0427411981,
-0.1865886003,
0.0989594385,
-0.5119396448,
0.6149396896,
0.2794423103,
0.08523684,
0.1733131409,
0.1801074594,
0.3740801811,
0.0623702295,
0.2490323782,
-0.0762316063,
-0.3669799566,
0.2387924343,
-0.2684373558,
-0.2240347713,
0.0622466132,
0.0489933677,
0.3258875012,
-0.2646792233,
-0.6064221263,
0.2254450768,
-0.2119208872,
0.1771793813,
-0.2865153849,
-0.0056462083,
0.0579441972,
0.0400158428,
-0.0808885098,
-0.1169591993,
-0.2159636021,
-0.0321975462,
-0.0289163515,
0.2511907518,
-0.0960829481,
0.5281832218,
-0.1473544836,
0.4271022081,
0.3951164186,
-0.0573065244,
0.2552517653,
-0.0346697457,
0.1327648014,
-0.4422534406,
-0.1322474331,
-0.0498869307,
0.0054795393,
-0.1543965936,
0.0252748113,
0.0455751121,
0.2297577113,
0.0939443782,
-0.139662981,
-0.219617784,
-0.1616733968,
0.1684221178,
-0.2453731596,
-0.1197083145,
-0.1609193385,
-0.0893914104,
-0.060355518,
0.0835018679,
-0.070652701,
0.0367186703,
-0.0636536703,
0.0672746301,
-0.24441576,
-0.1643389016,
-0.28057459,
0.3486985564,
-0.0095314858,
0.1679984182,
0.0436042249,
0.1896979064,
0.0177685842,
-0.1836139262,
0.472851634,
-0.091658935,
0.0638133511,
0.1068743542,
0.1219167337,
-0.4793366492,
0.0255624726,
-0.0450388268,
0.4191964865,
0.2557521462,
0.463105619,
-0.3397454321,
-0.0728051364,
0.1691511869,
0.1877129972,
0.0943008885,
-0.2506451607,
-0.1335564256,
-0.2604065239,
-0.4397621751,
0.0211968217,
0.3730717897,
0.4004881978,
0.2366951555,
-0.1907261163,
-0.0113624819,
-0.1053037569,
-0.1902847588,
0.1361218691,
0.2408334166,
-0.1668926924,
0.1777278483,
-0.1151910648,
0.0794932023,
0.4494354427,
0.8329299092,
0.4346233308,
-0.2397646308,
0.0207090601,
0.0217549801,
0.1342999637,
0.2270157039,
-0.0346310213,
0.0632074848,
0.0735860988,
0.1766807288,
0.0325801857,
-0.2345968783,
0.3547554612,
-0.0741224289,
-0.1323776245,
-0.1874300539,
0.697525084,
-0.0536801629,
0.3071480095,
0.4182663262,
0.4633298814,
-0.2641760111,
0.4075036049,
0.0009866036,
0.7449687719,
0.1586238593,
-0.0530886874,
0.1994262636,
-0.4170675576,
0.4090519547,
-0.3797465563,
-0.0411692262,
-0.3387751877,
0.1707785875,
0.1075007394,
-0.236116454,
0.3297266364,
0.2736086845,
-0.1018177271,
-0.0346382335,
-0.1607268751,
0.0422972851,
-0.1441378295,
0.3305632174,
-0.5538542271,
-0.1765965819,
-0.5864974856,
0.1887036711,
-0.12332353,
-0.103716664,
-0.0369971842,
-0.1385985017,
-0.2290198058,
-0.3214174211,
-0.603865087,
0.1255863458,
-0.1249757111,
0.011168221,
0.4965745509,
-0.097854726,
0.4634425342,
-0.0745202303,
0.1644174457,
0.1512601823,
-0.2165831327,
0.1576965153,
-0.2625902593,
0.0097057447,
0.1108109131,
0.0998113304,
0.38346228,
-0.132739678,
-0.0872105733,
0.0113588488,
-0.2562514246,
-0.2542541921,
0.3013701141,
-0.0285464879,
-0.3071888983,
-0.5664197206,
-0.4167688191,
-0.2550093234,
-0.0459809341,
-0.3050530553,
0.1724196523,
0.0358106829,
-0.1421135813,
-0.0667740256,
0.2506848872,
-0.272849232,
-0.0861327648,
0.1543917805,
-0.0506914295,
0.1133259833,
0.6504634619,
0.2110791355,
-0.0098358691,
-0.2115166336,
0.2497706264,
0.6434355974,
-0.4741372466,
0.319178462,
-0.1719685346,
-0.072154507,
0.0416501909,
0.3140787184,
0.315045625,
0.1521782428,
0.0470044203,
-0.4215183854,
-0.3167908788,
0.3561899066,
-0.0315125622,
0.1257249117,
-0.0332312807,
0.0925424322,
-0.1206740737,
0.0893872306,
-0.3080745041,
0.1434116215,
-0.293237865,
-0.0401158556,
-0.0893792287,
0.108315967,
0.2066636533,
0.0730911419,
0.1179886907,
0.3100220561,
-0.2084239423,
-0.2655384243,
-0.1014763862,
0.0850120038,
0.2604757547,
-0.0544653498,
-0.0881972387,
-0.2235804349,
-0.2133318931,
-0.0746357813,
0.0517760627,
-0.2339817882,
0.071036078,
0.0350058749,
0.0599475801,
-0.0048326468,
-0.1680181324,
-0.0447964929,
-0.0103088822,
0.3714582324,
0.0352823958,
0.1958631277,
0.000370616,
0.0957757607,
-0.3027855158,
0.1954142004,
-0.0994978249,
0.1942213476,
0.3640746772,
-0.5464217663,
-0.0213246848,
0.0858538002,
0.3461952507,
0.4805012941,
-0.2968072295,
0.0386861935,
-0.0536296442,
0.2073538303,
-0.2264670879,
-0.1943207681,
0.2406570315,
-0.192461729,
-0.0894590616,
0.0832860991,
0.0756481215,
-0.0533029847,
-0.2036394924,
0.1655035019,
0.2488020509,
-0.0803259537,
0.0398043692,
0.4874844253,
-0.1518330425,
-0.0717170238,
0.477391988,
0.2878896296,
0.5036131144,
0.5236490369,
-0.1052019075,
0.0355018005,
0.0859033093,
0.0704156086,
0.0139549747,
-0.2797784507,
0.2586523592,
0.2712077796,
0.0523794368,
-0.0796441138,
0.16101183,
0.244163543,
-0.0861149505,
0.03427523,
-0.1549238414,
-0.0969721898,
-0.2047555745,
0.0479508042,
-0.1920514405,
-0.2444935888,
-0.1615485549,
-0.0192534328,
-0.298787415,
-0.0780982375,
-0.0408139527,
-0.0775913298,
-0.1409357339,
-0.4831469655,
0.2065393329,
0.0061949585,
0.0675537139,
-0.3528602123,
0.3693200648,
0.190593943,
-0.1580049694,
0.0078683542,
0.4461720586,
0.5568514466,
0.2194748372,
-0.0440004729,
0.0029763505,
-0.1831204295,
-0.2355478406,
-0.0977478102,
0.2583867311,
0.2915656567,
-0.1711079031,
0.2350362241,
0.227562815,
-0.1818310916,
-0.0402660258,
0.1774912775,
0.0766109377,
-0.2239640951,
0.1818215698,
-0.264331013,
-0.1637008637,
-0.1022798792,
-0.0623307675,
-0.3067835867,
-0.3109771609,
0.2867914736,
-0.0504326969,
0.0660476685,
-0.1672933102,
0.1284359097,
-0.1060923412,
0.5356913209,
0.4948144257,
0.0044097798,
0.0181980096,
-0.139088586,
-0.2834152579,
0.1249618158,
-0.1458177567,
0.0194706302,
0.3128263056,
0.2943841517,
0.0099501815,
0.0345597938,
0.2998821139,
0.1440663189,
-0.2204652876,
0.090911895,
-0.1777237356,
-0.3251909614,
0.2460249513,
0.0679401606,
-0.0129400063,
-0.1553067863,
0.2191794664,
-0.0087074265,
0.0671788752,
-0.0353989676,
0.0202511661,
0.155028969,
-0.3802585304,
0.4906143248,
0.0069389469,
0.049735155,
-0.1118662879,
-0.2897002697,
-0.1509870738,
-0.2847284079,
-0.269666642,
0.4918876588,
0.0018118909,
0.6861052513,
-0.0862946287,
-0.0013218968,
-0.2265897095,
-0.1006349623,
-0.2470938861,
-0.0472276993,
-0.2729101479,
0.115233466,
-0.2274582982,
0.17460756,
0.060217943,
0.1261176914,
-0.0596390814,
0.1846530885,
-0.3184460998,
-0.3255150914,
0.3797754049,
-0.1682314128,
-0.3426622748,
0.4232117832,
0.1389757395,
0.2147449255,
-0.3961003423,
-0.51956743,
0.1658517569,
0.3419983685,
-0.0245475005,
-0.1835562438,
0.0879784897,
-0.0838319138,
0.1245530248,
-0.0806039721,
0.3642962575,
-0.0408354849,
-0.0400426574,
-0.0221832078,
-0.2118825018
] |
https://github.com/huggingface/datasets/issues/3227 | Error in `Json(datasets.ArrowBasedBuilder)` class | Hi ! I think the issue comes from the fact that your JSON file is not a valid JSON Lines file.
Each example should be on one single line.
Can you try fixing the format to have one line per example and try again ? | ## Describe the bug
When a json file contains a `text` field that is larger than the block_size, the JSON dataset builder fails.
## Steps to reproduce the bug
Create a folder that contains the following:
```
.
├── testdata
│ └── mydata.json
└── test.py
```
Please download [this file](https://github.com/huggingface/datasets/files/7491797/mydata.txt) as `mydata.json`. (The error does not occur in JSON files with shorter text, but it is reproducible when the text is long as in the file I provide)
:exclamation: :exclamation: GitHub doesn't allow me to upload JSON so this file is a TXT, and you should rename it to `.json`!
`test.py` simply contains:
```python
from datasets import load_dataset
my_dataset = load_dataset("testdata")
```
To reproduce the error, simply run
```
python test.py
```
## Expected results
The data should load correctly without error.
## Actual results
The dataset builder fails with:
```
Using custom data configuration testdata-d490389b8ab4fd82
Downloading and preparing dataset json/testdata to /home/junshern.chan/.cache/huggingface/datasets/json/testdata-d490389b8ab4fd82/0.0.0/3333a8af0db9764dfcff43a42ff26228f0f2e267f0d8a0a294452d188beadb34...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 2264.74it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 447.01it/s]
Failed to read file '/home/junshern.chan/hf-json-bug/testdata/mydata.json' with error <class 'pyarrow.lib.ArrowInvalid'>: JSON parse error: Missing a name for object member. in row 0
Traceback (most recent call last):
File "test.py", line 28, in <module>
my_dataset = load_dataset("testdata")
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 697, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 1156, in _prepare_split
for key, table in utils.tqdm(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/tqdm/std.py", line 1168, in __iter__
for obj in iterable:
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/packaged_modules/json/json.py", line 146, in _generate_tables
raise ValueError(
ValueError: Not able to read records in the JSON file at /home/junshern.chan/hf-json-bug/testdata/mydata.json. You should probably indicate the field of the JSON file containing your records. This JSON file contain the following fields: ['text']. Select the correct one and provide it as `field='XXX'` to the dataset loading method.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-5.8.0-63-generic-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 6.0.0
| 45 | Error in `Json(datasets.ArrowBasedBuilder)` class
## Describe the bug
When a json file contains a `text` field that is larger than the block_size, the JSON dataset builder fails.
## Steps to reproduce the bug
Create a folder that contains the following:
```
.
├── testdata
│ └── mydata.json
└── test.py
```
Please download [this file](https://github.com/huggingface/datasets/files/7491797/mydata.txt) as `mydata.json`. (The error does not occur in JSON files with shorter text, but it is reproducible when the text is long as in the file I provide)
:exclamation: :exclamation: GitHub doesn't allow me to upload JSON so this file is a TXT, and you should rename it to `.json`!
`test.py` simply contains:
```python
from datasets import load_dataset
my_dataset = load_dataset("testdata")
```
To reproduce the error, simply run
```
python test.py
```
## Expected results
The data should load correctly without error.
## Actual results
The dataset builder fails with:
```
Using custom data configuration testdata-d490389b8ab4fd82
Downloading and preparing dataset json/testdata to /home/junshern.chan/.cache/huggingface/datasets/json/testdata-d490389b8ab4fd82/0.0.0/3333a8af0db9764dfcff43a42ff26228f0f2e267f0d8a0a294452d188beadb34...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 2264.74it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 447.01it/s]
Failed to read file '/home/junshern.chan/hf-json-bug/testdata/mydata.json' with error <class 'pyarrow.lib.ArrowInvalid'>: JSON parse error: Missing a name for object member. in row 0
Traceback (most recent call last):
File "test.py", line 28, in <module>
my_dataset = load_dataset("testdata")
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 697, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 1156, in _prepare_split
for key, table in utils.tqdm(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/tqdm/std.py", line 1168, in __iter__
for obj in iterable:
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/packaged_modules/json/json.py", line 146, in _generate_tables
raise ValueError(
ValueError: Not able to read records in the JSON file at /home/junshern.chan/hf-json-bug/testdata/mydata.json. You should probably indicate the field of the JSON file containing your records. This JSON file contain the following fields: ['text']. Select the correct one and provide it as `field='XXX'` to the dataset loading method.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-5.8.0-63-generic-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 6.0.0
Hi ! I think the issue comes from the fact that your JSON file is not a valid JSON Lines file.
Each example should be on one single line.
Can you try fixing the format to have one line per example and try again ? | [
-0.2403119802,
0.1650995016,
-0.1146983206,
0.4822804034,
0.0954777747,
0.1549095958,
0.1611650586,
0.4468063116,
0.1629001051,
0.0544317663,
0.2402578294,
0.2136399299,
-0.0641991049,
0.0986969247,
-0.0887032151,
-0.063235119,
-0.0958853215,
0.2196529508,
0.0554810464,
0.2388131469,
-0.1375443935,
0.2395699471,
-0.0216474347,
0.0441667363,
-0.1683246195,
-0.0880120993,
0.2261151224,
0.1981150061,
-0.3999558091,
-0.6317943335,
0.2991527915,
-0.2521600425,
-0.0838635117,
0.4933880866,
-0.0001105037,
0.1315785199,
0.5007125139,
0.0465628281,
-0.4148834944,
-0.2232685089,
-0.1364114136,
-0.4095892012,
0.1372780949,
-0.1202352792,
0.0772151649,
-0.5005882382,
-0.1944184303,
-0.2052554935,
0.6144830585,
0.3781802952,
0.2444536835,
-0.0172367543,
0.4392919242,
-0.0124508692,
0.2353535444,
0.2149987221,
-0.1381489187,
0.3187202811,
0.1872860044,
0.423430264,
-0.1916899085,
0.0232487842,
0.1327309757,
0.1254612952,
0.2729100883,
-0.0767258406,
0.0167171359,
-0.0212383457,
0.232004106,
0.0730813369,
0.5951886177,
-0.3755437732,
-0.4317632318,
-0.2903707325,
0.0442762189,
-0.0678210407,
0.3881251812,
0.1591870189,
-0.1912017018,
0.1276555657,
-0.1218235865,
-0.1066586524,
-0.1995978504,
0.0545987152,
0.0055701495,
0.0142569114,
-0.2931365967,
0.0427683629,
-0.0168284941,
-0.316967696,
0.0828656033,
-0.1454017311,
-0.3469507694,
0.2273458391,
-0.1418414116,
-0.1531400532,
-0.1034252495,
-0.3367693126,
0.3313128352,
0.1526702493,
0.1026708782,
-0.0181602463,
-0.1312155128,
0.142752111,
0.3137507439,
0.1493088603,
0.1275748014,
0.0306878481,
0.0981536359,
0.3543129265,
-0.1037021801,
-0.09011475,
-0.0526893288,
-0.3660354912,
0.0280835144,
-0.3211251795,
0.2621264756,
-0.2186489552,
-0.1130314618,
0.3243969083,
-0.2721691132,
-0.0167544875,
0.0370391235,
0.2277625054,
0.0052967691,
-0.178799957,
0.0841014832,
0.2368549854,
0.1973742545,
-0.1256801039,
-0.1394315809,
-0.0941005871,
-0.0140536046,
-0.0533158556,
0.1990813613,
-0.1054169461,
0.4438874125,
0.1304032058,
0.1367828399,
-0.2728516161,
0.0169605203,
-0.0018024787,
-0.1420743614,
0.3386524916,
-0.0260525271,
0.0750590563,
0.0869664922,
-0.3207396865,
-0.1433797628,
0.1236498877,
-0.1157214642,
-0.1883134544,
-0.2907380462,
0.2257093489,
-0.0367965475,
0.0658994392,
-0.5976702571,
-0.0011100359,
0.063855581,
-0.1855829656,
0.231644839,
-0.1494341046,
0.193838194,
-0.1521390826,
0.1029576287,
0.1464118958,
-0.4950018823,
0.0221776236,
-0.1589582562,
-0.0176940784,
-0.0424076654,
0.1898301393,
-0.3118866384,
0.2282847166,
-0.2827686965,
0.1994858533,
0.3716089725,
-0.1947320998,
-0.5814798474,
0.4290317893,
-0.060375236,
0.180299148,
0.0617140718,
-0.1903425902,
-0.0216889996,
0.0542631336,
0.1778850555,
0.1786769032,
-0.0923181549,
0.0467420705,
-0.1771629602,
-0.2370401025,
-0.1145113036,
0.1815148145,
-0.1182242334,
-0.1742785573,
0.1272885948,
0.0504545979,
0.0662609935,
-0.0625445768,
0.1244465336,
0.3878651261,
0.035494294,
-0.1943141967,
0.0840657726,
-0.1906257272,
-0.5504311919,
0.1895053983,
-0.1231906414,
-0.0653063282,
-0.3439676166,
0.0051856842,
-0.3859593868,
0.154690057,
-0.2247075438,
-0.084985733,
0.1455647498,
-0.0632973313,
0.1666700393,
-0.0886187032,
-0.1392122954,
0.0785618797,
-0.3218708634,
0.2977219522,
-0.2379861921,
0.0187070686,
-0.0598167218,
-0.1872346848,
0.0309127513,
-0.0353586525,
-0.0965542421,
-0.0168782864,
-0.3940273225,
0.2459173948,
0.1489118487,
-0.0034361032,
0.0167313144,
-0.0127038611,
0.0202896725,
-0.1318184882,
0.2086426616,
0.3051686883,
0.0084879436,
-0.0966419429,
-0.0439681225,
0.3174681664,
-0.0848724619,
0.2753057778,
0.0308773965,
-0.2157544196,
0.358717978,
0.1766272187,
-0.1378899664,
-0.0662183315,
0.0552624129,
0.0341623239,
0.3627393842,
0.0012815036,
-0.2344884276,
-0.1374022365,
0.5148671269,
0.0055709686,
0.0353189968,
0.3234329522,
-0.328877598,
-0.055070214,
0.0166630987,
0.3429916203,
0.385736078,
0.1958514601,
-0.1432739198,
0.1436223835,
0.1142028421,
-0.1619252861,
0.294993937,
-0.0753320903,
0.3333458006,
0.3271286786,
0.3447594643,
-0.065499559,
-0.3512382507,
-0.3344880939,
-0.1525238156,
0.1580728292,
-0.2348374873,
0.0627109632,
-0.1558991075,
-0.0391671024,
-0.2204367518,
-0.1645060033,
-0.2174470127,
-0.144141525,
-0.0193370171,
0.033484593,
-0.1674218327,
-0.0444167852,
-0.0390952155,
0.2795858979,
0.1392438114,
-0.2436900586,
-0.2823620439,
0.0607375391,
-0.3482089341,
0.0674668625,
0.4192629457,
-0.0003480852,
0.0694916695,
-0.0711839274,
-0.0388314724,
-0.1816260219,
-0.1992989331,
0.0969153792,
-0.0967313424,
0.4307474792,
0.2579059899,
0.2820334136,
-0.1104067415,
-0.1597538441,
0.2159287781,
0.0003314134,
-0.4779900312,
0.0716937557,
0.0592678636,
0.1459031403,
-0.0427411981,
-0.1865886003,
0.0989594385,
-0.5119396448,
0.6149396896,
0.2794423103,
0.08523684,
0.1733131409,
0.1801074594,
0.3740801811,
0.0623702295,
0.2490323782,
-0.0762316063,
-0.3669799566,
0.2387924343,
-0.2684373558,
-0.2240347713,
0.0622466132,
0.0489933677,
0.3258875012,
-0.2646792233,
-0.6064221263,
0.2254450768,
-0.2119208872,
0.1771793813,
-0.2865153849,
-0.0056462083,
0.0579441972,
0.0400158428,
-0.0808885098,
-0.1169591993,
-0.2159636021,
-0.0321975462,
-0.0289163515,
0.2511907518,
-0.0960829481,
0.5281832218,
-0.1473544836,
0.4271022081,
0.3951164186,
-0.0573065244,
0.2552517653,
-0.0346697457,
0.1327648014,
-0.4422534406,
-0.1322474331,
-0.0498869307,
0.0054795393,
-0.1543965936,
0.0252748113,
0.0455751121,
0.2297577113,
0.0939443782,
-0.139662981,
-0.219617784,
-0.1616733968,
0.1684221178,
-0.2453731596,
-0.1197083145,
-0.1609193385,
-0.0893914104,
-0.060355518,
0.0835018679,
-0.070652701,
0.0367186703,
-0.0636536703,
0.0672746301,
-0.24441576,
-0.1643389016,
-0.28057459,
0.3486985564,
-0.0095314858,
0.1679984182,
0.0436042249,
0.1896979064,
0.0177685842,
-0.1836139262,
0.472851634,
-0.091658935,
0.0638133511,
0.1068743542,
0.1219167337,
-0.4793366492,
0.0255624726,
-0.0450388268,
0.4191964865,
0.2557521462,
0.463105619,
-0.3397454321,
-0.0728051364,
0.1691511869,
0.1877129972,
0.0943008885,
-0.2506451607,
-0.1335564256,
-0.2604065239,
-0.4397621751,
0.0211968217,
0.3730717897,
0.4004881978,
0.2366951555,
-0.1907261163,
-0.0113624819,
-0.1053037569,
-0.1902847588,
0.1361218691,
0.2408334166,
-0.1668926924,
0.1777278483,
-0.1151910648,
0.0794932023,
0.4494354427,
0.8329299092,
0.4346233308,
-0.2397646308,
0.0207090601,
0.0217549801,
0.1342999637,
0.2270157039,
-0.0346310213,
0.0632074848,
0.0735860988,
0.1766807288,
0.0325801857,
-0.2345968783,
0.3547554612,
-0.0741224289,
-0.1323776245,
-0.1874300539,
0.697525084,
-0.0536801629,
0.3071480095,
0.4182663262,
0.4633298814,
-0.2641760111,
0.4075036049,
0.0009866036,
0.7449687719,
0.1586238593,
-0.0530886874,
0.1994262636,
-0.4170675576,
0.4090519547,
-0.3797465563,
-0.0411692262,
-0.3387751877,
0.1707785875,
0.1075007394,
-0.236116454,
0.3297266364,
0.2736086845,
-0.1018177271,
-0.0346382335,
-0.1607268751,
0.0422972851,
-0.1441378295,
0.3305632174,
-0.5538542271,
-0.1765965819,
-0.5864974856,
0.1887036711,
-0.12332353,
-0.103716664,
-0.0369971842,
-0.1385985017,
-0.2290198058,
-0.3214174211,
-0.603865087,
0.1255863458,
-0.1249757111,
0.011168221,
0.4965745509,
-0.097854726,
0.4634425342,
-0.0745202303,
0.1644174457,
0.1512601823,
-0.2165831327,
0.1576965153,
-0.2625902593,
0.0097057447,
0.1108109131,
0.0998113304,
0.38346228,
-0.132739678,
-0.0872105733,
0.0113588488,
-0.2562514246,
-0.2542541921,
0.3013701141,
-0.0285464879,
-0.3071888983,
-0.5664197206,
-0.4167688191,
-0.2550093234,
-0.0459809341,
-0.3050530553,
0.1724196523,
0.0358106829,
-0.1421135813,
-0.0667740256,
0.2506848872,
-0.272849232,
-0.0861327648,
0.1543917805,
-0.0506914295,
0.1133259833,
0.6504634619,
0.2110791355,
-0.0098358691,
-0.2115166336,
0.2497706264,
0.6434355974,
-0.4741372466,
0.319178462,
-0.1719685346,
-0.072154507,
0.0416501909,
0.3140787184,
0.315045625,
0.1521782428,
0.0470044203,
-0.4215183854,
-0.3167908788,
0.3561899066,
-0.0315125622,
0.1257249117,
-0.0332312807,
0.0925424322,
-0.1206740737,
0.0893872306,
-0.3080745041,
0.1434116215,
-0.293237865,
-0.0401158556,
-0.0893792287,
0.108315967,
0.2066636533,
0.0730911419,
0.1179886907,
0.3100220561,
-0.2084239423,
-0.2655384243,
-0.1014763862,
0.0850120038,
0.2604757547,
-0.0544653498,
-0.0881972387,
-0.2235804349,
-0.2133318931,
-0.0746357813,
0.0517760627,
-0.2339817882,
0.071036078,
0.0350058749,
0.0599475801,
-0.0048326468,
-0.1680181324,
-0.0447964929,
-0.0103088822,
0.3714582324,
0.0352823958,
0.1958631277,
0.000370616,
0.0957757607,
-0.3027855158,
0.1954142004,
-0.0994978249,
0.1942213476,
0.3640746772,
-0.5464217663,
-0.0213246848,
0.0858538002,
0.3461952507,
0.4805012941,
-0.2968072295,
0.0386861935,
-0.0536296442,
0.2073538303,
-0.2264670879,
-0.1943207681,
0.2406570315,
-0.192461729,
-0.0894590616,
0.0832860991,
0.0756481215,
-0.0533029847,
-0.2036394924,
0.1655035019,
0.2488020509,
-0.0803259537,
0.0398043692,
0.4874844253,
-0.1518330425,
-0.0717170238,
0.477391988,
0.2878896296,
0.5036131144,
0.5236490369,
-0.1052019075,
0.0355018005,
0.0859033093,
0.0704156086,
0.0139549747,
-0.2797784507,
0.2586523592,
0.2712077796,
0.0523794368,
-0.0796441138,
0.16101183,
0.244163543,
-0.0861149505,
0.03427523,
-0.1549238414,
-0.0969721898,
-0.2047555745,
0.0479508042,
-0.1920514405,
-0.2444935888,
-0.1615485549,
-0.0192534328,
-0.298787415,
-0.0780982375,
-0.0408139527,
-0.0775913298,
-0.1409357339,
-0.4831469655,
0.2065393329,
0.0061949585,
0.0675537139,
-0.3528602123,
0.3693200648,
0.190593943,
-0.1580049694,
0.0078683542,
0.4461720586,
0.5568514466,
0.2194748372,
-0.0440004729,
0.0029763505,
-0.1831204295,
-0.2355478406,
-0.0977478102,
0.2583867311,
0.2915656567,
-0.1711079031,
0.2350362241,
0.227562815,
-0.1818310916,
-0.0402660258,
0.1774912775,
0.0766109377,
-0.2239640951,
0.1818215698,
-0.264331013,
-0.1637008637,
-0.1022798792,
-0.0623307675,
-0.3067835867,
-0.3109771609,
0.2867914736,
-0.0504326969,
0.0660476685,
-0.1672933102,
0.1284359097,
-0.1060923412,
0.5356913209,
0.4948144257,
0.0044097798,
0.0181980096,
-0.139088586,
-0.2834152579,
0.1249618158,
-0.1458177567,
0.0194706302,
0.3128263056,
0.2943841517,
0.0099501815,
0.0345597938,
0.2998821139,
0.1440663189,
-0.2204652876,
0.090911895,
-0.1777237356,
-0.3251909614,
0.2460249513,
0.0679401606,
-0.0129400063,
-0.1553067863,
0.2191794664,
-0.0087074265,
0.0671788752,
-0.0353989676,
0.0202511661,
0.155028969,
-0.3802585304,
0.4906143248,
0.0069389469,
0.049735155,
-0.1118662879,
-0.2897002697,
-0.1509870738,
-0.2847284079,
-0.269666642,
0.4918876588,
0.0018118909,
0.6861052513,
-0.0862946287,
-0.0013218968,
-0.2265897095,
-0.1006349623,
-0.2470938861,
-0.0472276993,
-0.2729101479,
0.115233466,
-0.2274582982,
0.17460756,
0.060217943,
0.1261176914,
-0.0596390814,
0.1846530885,
-0.3184460998,
-0.3255150914,
0.3797754049,
-0.1682314128,
-0.3426622748,
0.4232117832,
0.1389757395,
0.2147449255,
-0.3961003423,
-0.51956743,
0.1658517569,
0.3419983685,
-0.0245475005,
-0.1835562438,
0.0879784897,
-0.0838319138,
0.1245530248,
-0.0806039721,
0.3642962575,
-0.0408354849,
-0.0400426574,
-0.0221832078,
-0.2118825018
] |
https://github.com/huggingface/datasets/issues/3227 | Error in `Json(datasets.ArrowBasedBuilder)` class | :open_mouth: you're right, that did it! I just put everything on a single line (my file only has a single example) and that fixed the error. Thank you so much! | ## Describe the bug
When a json file contains a `text` field that is larger than the block_size, the JSON dataset builder fails.
## Steps to reproduce the bug
Create a folder that contains the following:
```
.
├── testdata
│ └── mydata.json
└── test.py
```
Please download [this file](https://github.com/huggingface/datasets/files/7491797/mydata.txt) as `mydata.json`. (The error does not occur in JSON files with shorter text, but it is reproducible when the text is long as in the file I provide)
:exclamation: :exclamation: GitHub doesn't allow me to upload JSON so this file is a TXT, and you should rename it to `.json`!
`test.py` simply contains:
```python
from datasets import load_dataset
my_dataset = load_dataset("testdata")
```
To reproduce the error, simply run
```
python test.py
```
## Expected results
The data should load correctly without error.
## Actual results
The dataset builder fails with:
```
Using custom data configuration testdata-d490389b8ab4fd82
Downloading and preparing dataset json/testdata to /home/junshern.chan/.cache/huggingface/datasets/json/testdata-d490389b8ab4fd82/0.0.0/3333a8af0db9764dfcff43a42ff26228f0f2e267f0d8a0a294452d188beadb34...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 2264.74it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 447.01it/s]
Failed to read file '/home/junshern.chan/hf-json-bug/testdata/mydata.json' with error <class 'pyarrow.lib.ArrowInvalid'>: JSON parse error: Missing a name for object member. in row 0
Traceback (most recent call last):
File "test.py", line 28, in <module>
my_dataset = load_dataset("testdata")
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 697, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 1156, in _prepare_split
for key, table in utils.tqdm(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/tqdm/std.py", line 1168, in __iter__
for obj in iterable:
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/packaged_modules/json/json.py", line 146, in _generate_tables
raise ValueError(
ValueError: Not able to read records in the JSON file at /home/junshern.chan/hf-json-bug/testdata/mydata.json. You should probably indicate the field of the JSON file containing your records. This JSON file contain the following fields: ['text']. Select the correct one and provide it as `field='XXX'` to the dataset loading method.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-5.8.0-63-generic-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 6.0.0
| 30 | Error in `Json(datasets.ArrowBasedBuilder)` class
## Describe the bug
When a json file contains a `text` field that is larger than the block_size, the JSON dataset builder fails.
## Steps to reproduce the bug
Create a folder that contains the following:
```
.
├── testdata
│ └── mydata.json
└── test.py
```
Please download [this file](https://github.com/huggingface/datasets/files/7491797/mydata.txt) as `mydata.json`. (The error does not occur in JSON files with shorter text, but it is reproducible when the text is long as in the file I provide)
:exclamation: :exclamation: GitHub doesn't allow me to upload JSON so this file is a TXT, and you should rename it to `.json`!
`test.py` simply contains:
```python
from datasets import load_dataset
my_dataset = load_dataset("testdata")
```
To reproduce the error, simply run
```
python test.py
```
## Expected results
The data should load correctly without error.
## Actual results
The dataset builder fails with:
```
Using custom data configuration testdata-d490389b8ab4fd82
Downloading and preparing dataset json/testdata to /home/junshern.chan/.cache/huggingface/datasets/json/testdata-d490389b8ab4fd82/0.0.0/3333a8af0db9764dfcff43a42ff26228f0f2e267f0d8a0a294452d188beadb34...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 2264.74it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 447.01it/s]
Failed to read file '/home/junshern.chan/hf-json-bug/testdata/mydata.json' with error <class 'pyarrow.lib.ArrowInvalid'>: JSON parse error: Missing a name for object member. in row 0
Traceback (most recent call last):
File "test.py", line 28, in <module>
my_dataset = load_dataset("testdata")
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
builder_instance.download_and_prepare(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
self._download_and_prepare(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 697, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/builder.py", line 1156, in _prepare_split
for key, table in utils.tqdm(
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/tqdm/std.py", line 1168, in __iter__
for obj in iterable:
File "/home/junshern.chan/.casio/miniconda/envs/hf-json-bug/lib/python3.8/site-packages/datasets/packaged_modules/json/json.py", line 146, in _generate_tables
raise ValueError(
ValueError: Not able to read records in the JSON file at /home/junshern.chan/hf-json-bug/testdata/mydata.json. You should probably indicate the field of the JSON file containing your records. This JSON file contain the following fields: ['text']. Select the correct one and provide it as `field='XXX'` to the dataset loading method.
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.15.1
- Platform: Linux-5.8.0-63-generic-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 6.0.0
:open_mouth: you're right, that did it! I just put everything on a single line (my file only has a single example) and that fixed the error. Thank you so much! | [
-0.2403119802,
0.1650995016,
-0.1146983206,
0.4822804034,
0.0954777747,
0.1549095958,
0.1611650586,
0.4468063116,
0.1629001051,
0.0544317663,
0.2402578294,
0.2136399299,
-0.0641991049,
0.0986969247,
-0.0887032151,
-0.063235119,
-0.0958853215,
0.2196529508,
0.0554810464,
0.2388131469,
-0.1375443935,
0.2395699471,
-0.0216474347,
0.0441667363,
-0.1683246195,
-0.0880120993,
0.2261151224,
0.1981150061,
-0.3999558091,
-0.6317943335,
0.2991527915,
-0.2521600425,
-0.0838635117,
0.4933880866,
-0.0001105037,
0.1315785199,
0.5007125139,
0.0465628281,
-0.4148834944,
-0.2232685089,
-0.1364114136,
-0.4095892012,
0.1372780949,
-0.1202352792,
0.0772151649,
-0.5005882382,
-0.1944184303,
-0.2052554935,
0.6144830585,
0.3781802952,
0.2444536835,
-0.0172367543,
0.4392919242,
-0.0124508692,
0.2353535444,
0.2149987221,
-0.1381489187,
0.3187202811,
0.1872860044,
0.423430264,
-0.1916899085,
0.0232487842,
0.1327309757,
0.1254612952,
0.2729100883,
-0.0767258406,
0.0167171359,
-0.0212383457,
0.232004106,
0.0730813369,
0.5951886177,
-0.3755437732,
-0.4317632318,
-0.2903707325,
0.0442762189,
-0.0678210407,
0.3881251812,
0.1591870189,
-0.1912017018,
0.1276555657,
-0.1218235865,
-0.1066586524,
-0.1995978504,
0.0545987152,
0.0055701495,
0.0142569114,
-0.2931365967,
0.0427683629,
-0.0168284941,
-0.316967696,
0.0828656033,
-0.1454017311,
-0.3469507694,
0.2273458391,
-0.1418414116,
-0.1531400532,
-0.1034252495,
-0.3367693126,
0.3313128352,
0.1526702493,
0.1026708782,
-0.0181602463,
-0.1312155128,
0.142752111,
0.3137507439,
0.1493088603,
0.1275748014,
0.0306878481,
0.0981536359,
0.3543129265,
-0.1037021801,
-0.09011475,
-0.0526893288,
-0.3660354912,
0.0280835144,
-0.3211251795,
0.2621264756,
-0.2186489552,
-0.1130314618,
0.3243969083,
-0.2721691132,
-0.0167544875,
0.0370391235,
0.2277625054,
0.0052967691,
-0.178799957,
0.0841014832,
0.2368549854,
0.1973742545,
-0.1256801039,
-0.1394315809,
-0.0941005871,
-0.0140536046,
-0.0533158556,
0.1990813613,
-0.1054169461,
0.4438874125,
0.1304032058,
0.1367828399,
-0.2728516161,
0.0169605203,
-0.0018024787,
-0.1420743614,
0.3386524916,
-0.0260525271,
0.0750590563,
0.0869664922,
-0.3207396865,
-0.1433797628,
0.1236498877,
-0.1157214642,
-0.1883134544,
-0.2907380462,
0.2257093489,
-0.0367965475,
0.0658994392,
-0.5976702571,
-0.0011100359,
0.063855581,
-0.1855829656,
0.231644839,
-0.1494341046,
0.193838194,
-0.1521390826,
0.1029576287,
0.1464118958,
-0.4950018823,
0.0221776236,
-0.1589582562,
-0.0176940784,
-0.0424076654,
0.1898301393,
-0.3118866384,
0.2282847166,
-0.2827686965,
0.1994858533,
0.3716089725,
-0.1947320998,
-0.5814798474,
0.4290317893,
-0.060375236,
0.180299148,
0.0617140718,
-0.1903425902,
-0.0216889996,
0.0542631336,
0.1778850555,
0.1786769032,
-0.0923181549,
0.0467420705,
-0.1771629602,
-0.2370401025,
-0.1145113036,
0.1815148145,
-0.1182242334,
-0.1742785573,
0.1272885948,
0.0504545979,
0.0662609935,
-0.0625445768,
0.1244465336,
0.3878651261,
0.035494294,
-0.1943141967,
0.0840657726,
-0.1906257272,
-0.5504311919,
0.1895053983,
-0.1231906414,
-0.0653063282,
-0.3439676166,
0.0051856842,
-0.3859593868,
0.154690057,
-0.2247075438,
-0.084985733,
0.1455647498,
-0.0632973313,
0.1666700393,
-0.0886187032,
-0.1392122954,
0.0785618797,
-0.3218708634,
0.2977219522,
-0.2379861921,
0.0187070686,
-0.0598167218,
-0.1872346848,
0.0309127513,
-0.0353586525,
-0.0965542421,
-0.0168782864,
-0.3940273225,
0.2459173948,
0.1489118487,
-0.0034361032,
0.0167313144,
-0.0127038611,
0.0202896725,
-0.1318184882,
0.2086426616,
0.3051686883,
0.0084879436,
-0.0966419429,
-0.0439681225,
0.3174681664,
-0.0848724619,
0.2753057778,
0.0308773965,
-0.2157544196,
0.358717978,
0.1766272187,
-0.1378899664,
-0.0662183315,
0.0552624129,
0.0341623239,
0.3627393842,
0.0012815036,
-0.2344884276,
-0.1374022365,
0.5148671269,
0.0055709686,
0.0353189968,
0.3234329522,
-0.328877598,
-0.055070214,
0.0166630987,
0.3429916203,
0.385736078,
0.1958514601,
-0.1432739198,
0.1436223835,
0.1142028421,
-0.1619252861,
0.294993937,
-0.0753320903,
0.3333458006,
0.3271286786,
0.3447594643,
-0.065499559,
-0.3512382507,
-0.3344880939,
-0.1525238156,
0.1580728292,
-0.2348374873,
0.0627109632,
-0.1558991075,
-0.0391671024,
-0.2204367518,
-0.1645060033,
-0.2174470127,
-0.144141525,
-0.0193370171,
0.033484593,
-0.1674218327,
-0.0444167852,
-0.0390952155,
0.2795858979,
0.1392438114,
-0.2436900586,
-0.2823620439,
0.0607375391,
-0.3482089341,
0.0674668625,
0.4192629457,
-0.0003480852,
0.0694916695,
-0.0711839274,
-0.0388314724,
-0.1816260219,
-0.1992989331,
0.0969153792,
-0.0967313424,
0.4307474792,
0.2579059899,
0.2820334136,
-0.1104067415,
-0.1597538441,
0.2159287781,
0.0003314134,
-0.4779900312,
0.0716937557,
0.0592678636,
0.1459031403,
-0.0427411981,
-0.1865886003,
0.0989594385,
-0.5119396448,
0.6149396896,
0.2794423103,
0.08523684,
0.1733131409,
0.1801074594,
0.3740801811,
0.0623702295,
0.2490323782,
-0.0762316063,
-0.3669799566,
0.2387924343,
-0.2684373558,
-0.2240347713,
0.0622466132,
0.0489933677,
0.3258875012,
-0.2646792233,
-0.6064221263,
0.2254450768,
-0.2119208872,
0.1771793813,
-0.2865153849,
-0.0056462083,
0.0579441972,
0.0400158428,
-0.0808885098,
-0.1169591993,
-0.2159636021,
-0.0321975462,
-0.0289163515,
0.2511907518,
-0.0960829481,
0.5281832218,
-0.1473544836,
0.4271022081,
0.3951164186,
-0.0573065244,
0.2552517653,
-0.0346697457,
0.1327648014,
-0.4422534406,
-0.1322474331,
-0.0498869307,
0.0054795393,
-0.1543965936,
0.0252748113,
0.0455751121,
0.2297577113,
0.0939443782,
-0.139662981,
-0.219617784,
-0.1616733968,
0.1684221178,
-0.2453731596,
-0.1197083145,
-0.1609193385,
-0.0893914104,
-0.060355518,
0.0835018679,
-0.070652701,
0.0367186703,
-0.0636536703,
0.0672746301,
-0.24441576,
-0.1643389016,
-0.28057459,
0.3486985564,
-0.0095314858,
0.1679984182,
0.0436042249,
0.1896979064,
0.0177685842,
-0.1836139262,
0.472851634,
-0.091658935,
0.0638133511,
0.1068743542,
0.1219167337,
-0.4793366492,
0.0255624726,
-0.0450388268,
0.4191964865,
0.2557521462,
0.463105619,
-0.3397454321,
-0.0728051364,
0.1691511869,
0.1877129972,
0.0943008885,
-0.2506451607,
-0.1335564256,
-0.2604065239,
-0.4397621751,
0.0211968217,
0.3730717897,
0.4004881978,
0.2366951555,
-0.1907261163,
-0.0113624819,
-0.1053037569,
-0.1902847588,
0.1361218691,
0.2408334166,
-0.1668926924,
0.1777278483,
-0.1151910648,
0.0794932023,
0.4494354427,
0.8329299092,
0.4346233308,
-0.2397646308,
0.0207090601,
0.0217549801,
0.1342999637,
0.2270157039,
-0.0346310213,
0.0632074848,
0.0735860988,
0.1766807288,
0.0325801857,
-0.2345968783,
0.3547554612,
-0.0741224289,
-0.1323776245,
-0.1874300539,
0.697525084,
-0.0536801629,
0.3071480095,
0.4182663262,
0.4633298814,
-0.2641760111,
0.4075036049,
0.0009866036,
0.7449687719,
0.1586238593,
-0.0530886874,
0.1994262636,
-0.4170675576,
0.4090519547,
-0.3797465563,
-0.0411692262,
-0.3387751877,
0.1707785875,
0.1075007394,
-0.236116454,
0.3297266364,
0.2736086845,
-0.1018177271,
-0.0346382335,
-0.1607268751,
0.0422972851,
-0.1441378295,
0.3305632174,
-0.5538542271,
-0.1765965819,
-0.5864974856,
0.1887036711,
-0.12332353,
-0.103716664,
-0.0369971842,
-0.1385985017,
-0.2290198058,
-0.3214174211,
-0.603865087,
0.1255863458,
-0.1249757111,
0.011168221,
0.4965745509,
-0.097854726,
0.4634425342,
-0.0745202303,
0.1644174457,
0.1512601823,
-0.2165831327,
0.1576965153,
-0.2625902593,
0.0097057447,
0.1108109131,
0.0998113304,
0.38346228,
-0.132739678,
-0.0872105733,
0.0113588488,
-0.2562514246,
-0.2542541921,
0.3013701141,
-0.0285464879,
-0.3071888983,
-0.5664197206,
-0.4167688191,
-0.2550093234,
-0.0459809341,
-0.3050530553,
0.1724196523,
0.0358106829,
-0.1421135813,
-0.0667740256,
0.2506848872,
-0.272849232,
-0.0861327648,
0.1543917805,
-0.0506914295,
0.1133259833,
0.6504634619,
0.2110791355,
-0.0098358691,
-0.2115166336,
0.2497706264,
0.6434355974,
-0.4741372466,
0.319178462,
-0.1719685346,
-0.072154507,
0.0416501909,
0.3140787184,
0.315045625,
0.1521782428,
0.0470044203,
-0.4215183854,
-0.3167908788,
0.3561899066,
-0.0315125622,
0.1257249117,
-0.0332312807,
0.0925424322,
-0.1206740737,
0.0893872306,
-0.3080745041,
0.1434116215,
-0.293237865,
-0.0401158556,
-0.0893792287,
0.108315967,
0.2066636533,
0.0730911419,
0.1179886907,
0.3100220561,
-0.2084239423,
-0.2655384243,
-0.1014763862,
0.0850120038,
0.2604757547,
-0.0544653498,
-0.0881972387,
-0.2235804349,
-0.2133318931,
-0.0746357813,
0.0517760627,
-0.2339817882,
0.071036078,
0.0350058749,
0.0599475801,
-0.0048326468,
-0.1680181324,
-0.0447964929,
-0.0103088822,
0.3714582324,
0.0352823958,
0.1958631277,
0.000370616,
0.0957757607,
-0.3027855158,
0.1954142004,
-0.0994978249,
0.1942213476,
0.3640746772,
-0.5464217663,
-0.0213246848,
0.0858538002,
0.3461952507,
0.4805012941,
-0.2968072295,
0.0386861935,
-0.0536296442,
0.2073538303,
-0.2264670879,
-0.1943207681,
0.2406570315,
-0.192461729,
-0.0894590616,
0.0832860991,
0.0756481215,
-0.0533029847,
-0.2036394924,
0.1655035019,
0.2488020509,
-0.0803259537,
0.0398043692,
0.4874844253,
-0.1518330425,
-0.0717170238,
0.477391988,
0.2878896296,
0.5036131144,
0.5236490369,
-0.1052019075,
0.0355018005,
0.0859033093,
0.0704156086,
0.0139549747,
-0.2797784507,
0.2586523592,
0.2712077796,
0.0523794368,
-0.0796441138,
0.16101183,
0.244163543,
-0.0861149505,
0.03427523,
-0.1549238414,
-0.0969721898,
-0.2047555745,
0.0479508042,
-0.1920514405,
-0.2444935888,
-0.1615485549,
-0.0192534328,
-0.298787415,
-0.0780982375,
-0.0408139527,
-0.0775913298,
-0.1409357339,
-0.4831469655,
0.2065393329,
0.0061949585,
0.0675537139,
-0.3528602123,
0.3693200648,
0.190593943,
-0.1580049694,
0.0078683542,
0.4461720586,
0.5568514466,
0.2194748372,
-0.0440004729,
0.0029763505,
-0.1831204295,
-0.2355478406,
-0.0977478102,
0.2583867311,
0.2915656567,
-0.1711079031,
0.2350362241,
0.227562815,
-0.1818310916,
-0.0402660258,
0.1774912775,
0.0766109377,
-0.2239640951,
0.1818215698,
-0.264331013,
-0.1637008637,
-0.1022798792,
-0.0623307675,
-0.3067835867,
-0.3109771609,
0.2867914736,
-0.0504326969,
0.0660476685,
-0.1672933102,
0.1284359097,
-0.1060923412,
0.5356913209,
0.4948144257,
0.0044097798,
0.0181980096,
-0.139088586,
-0.2834152579,
0.1249618158,
-0.1458177567,
0.0194706302,
0.3128263056,
0.2943841517,
0.0099501815,
0.0345597938,
0.2998821139,
0.1440663189,
-0.2204652876,
0.090911895,
-0.1777237356,
-0.3251909614,
0.2460249513,
0.0679401606,
-0.0129400063,
-0.1553067863,
0.2191794664,
-0.0087074265,
0.0671788752,
-0.0353989676,
0.0202511661,
0.155028969,
-0.3802585304,
0.4906143248,
0.0069389469,
0.049735155,
-0.1118662879,
-0.2897002697,
-0.1509870738,
-0.2847284079,
-0.269666642,
0.4918876588,
0.0018118909,
0.6861052513,
-0.0862946287,
-0.0013218968,
-0.2265897095,
-0.1006349623,
-0.2470938861,
-0.0472276993,
-0.2729101479,
0.115233466,
-0.2274582982,
0.17460756,
0.060217943,
0.1261176914,
-0.0596390814,
0.1846530885,
-0.3184460998,
-0.3255150914,
0.3797754049,
-0.1682314128,
-0.3426622748,
0.4232117832,
0.1389757395,
0.2147449255,
-0.3961003423,
-0.51956743,
0.1658517569,
0.3419983685,
-0.0245475005,
-0.1835562438,
0.0879784897,
-0.0838319138,
0.1245530248,
-0.0806039721,
0.3642962575,
-0.0408354849,
-0.0400426574,
-0.0221832078,
-0.2118825018
] |
https://github.com/huggingface/datasets/issues/3210 | ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.15.1/datasets/wmt16/wmt16.py | Hi ! Do you have some kind of proxy in your browser that gives you access to internet ?
Maybe you're having this error because you don't have access to this URL from python ? | when I use python examples/pytorch/translation/run_translation.py --model_name_or_path examples/pytorch/translation/opus-mt-en-ro --do_train --do_eval --source_lang en --target_lang ro --dataset_name wmt16 --dataset_config_name ro-en --output_dir /tmp/tst-translation --per_device_train_batch_size=4 --per_device_eval_batch_size=4 --overwrite_output_dir --predict_with_generate to finetune translation model on huggingface, I get the issue"ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.15.1/datasets/wmt16/wmt16.py".But I can open the https://raw.githubusercontent.com/huggingface/datasets/1.15.1/datasets/wmt16/wmt16.py by using website. What should I do to solve the issue? | 35 | ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.15.1/datasets/wmt16/wmt16.py
when I use python examples/pytorch/translation/run_translation.py --model_name_or_path examples/pytorch/translation/opus-mt-en-ro --do_train --do_eval --source_lang en --target_lang ro --dataset_name wmt16 --dataset_config_name ro-en --output_dir /tmp/tst-translation --per_device_train_batch_size=4 --per_device_eval_batch_size=4 --overwrite_output_dir --predict_with_generate to finetune translation model on huggingface, I get the issue"ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.15.1/datasets/wmt16/wmt16.py".But I can open the https://raw.githubusercontent.com/huggingface/datasets/1.15.1/datasets/wmt16/wmt16.py by using website. What should I do to solve the issue?
Hi ! Do you have some kind of proxy in your browser that gives you access to internet ?
Maybe you're having this error because you don't have access to this URL from python ? | [
-0.0930814818,
-0.3882348537,
-0.0091212941,
0.1529587954,
0.3836989403,
-0.0650623813,
-0.0014800368,
0.0271893367,
-0.1174205989,
0.4333746731,
-0.1092189252,
-0.1595529914,
0.3426676691,
0.134974882,
0.3313347101,
-0.4141204357,
-0.0376143903,
-0.2521337569,
-0.3091402352,
0.1163746342,
-0.1904367208,
0.0061592278,
-0.1553152353,
0.4519800544,
-0.1227999181,
0.0230171215,
-0.1161990687,
0.1812486947,
-0.1616171598,
-0.0900394022,
0.2339700311,
-0.1223878637,
0.0860161334,
0.6331045628,
-0.0001152875,
0.291282624,
0.3169273436,
0.0108020967,
-0.2478014231,
-0.717122674,
0.1798847318,
-0.0893041268,
0.0302978642,
-0.0283099525,
-0.1110542193,
0.0980468988,
0.2487850338,
-0.0181564875,
0.3253212273,
0.4141799808,
0.1969480217,
0.5055862069,
0.4007527828,
-0.13505584,
-0.0272530466,
-0.429333806,
-0.0464922599,
0.5597360134,
0.0905519724,
0.0389652289,
0.2032528818,
0.1462634355,
0.0367593728,
-0.022207804,
0.0919776261,
0.0439831614,
0.0431743786,
-0.5436478257,
0.204820171,
0.1997473538,
0.0197088663,
-0.0259727538,
-0.3254317641,
0.1636300832,
-0.1599224955,
-0.2409714907,
0.3313126862,
0.2471269369,
-0.2648833394,
0.2114828229,
-0.2447146177,
-0.28643471,
-0.4151309729,
0.4957439601,
-0.1166125387,
0.2830681503,
-0.1330641061,
0.2165965587,
0.194833383,
-0.0284104664,
-0.2247250825,
0.111865744,
0.3031808436,
0.1750668287,
0.0457666889,
0.206966579,
-0.0033287697,
0.0472445376,
0.1303169578,
-0.0556796268,
-0.0740627497,
0.1128430665,
0.1266455799,
0.1408408433,
-0.039281331,
0.1614822745,
-0.2678849995,
0.0755400881,
0.4573186934,
0.4898058474,
-0.0479892977,
-0.0447219126,
-0.2004099488,
-0.4534278214,
-0.3639000058,
-0.0522326045,
0.3964822292,
0.1150519475,
-0.1000097468,
0.1669706702,
-0.1783574969,
-0.0562649108,
0.0275583956,
0.5089325309,
-0.3785561025,
-0.1174979359,
0.2066655606,
0.2035696208,
-0.1725941449,
-0.0471366569,
-0.1565239429,
0.0717657954,
-0.1782702357,
0.182379812,
-0.0010476097,
-0.0436631925,
0.3234506547,
-0.2906613648,
0.3437756896,
-0.4356219769,
-0.0254910402,
-0.0871844217,
0.029530229,
0.1696947664,
0.2688660026,
0.026232319,
0.2548701763,
-0.0393712558,
-0.0677134618,
-0.0173219219,
-0.3118962049,
-0.4043573141,
0.1877017617,
0.1553708017,
-0.0176790208,
0.0394028388,
-0.0016800127,
-0.1249012649,
-0.2162703574,
0.1609068662,
-0.1856101751,
0.0256442931,
-0.1794668436,
-0.1012503877,
0.4366517663,
0.3248761892,
0.3367980421,
-0.1667287946,
0.2836416662,
0.0960741267,
0.2190670222,
0.3371486664,
-0.1930498481,
0.2371589839,
-0.178134203,
-0.0113839507,
0.3669600487,
-0.2649621964,
-0.4248218834,
0.3282740712,
-0.4896481037,
-0.0246959589,
-0.1093868911,
-0.1062214896,
0.0056139808,
0.1419385672,
0.2943852544,
0.1707986146,
-0.0237150881,
-0.0647683665,
-0.0331633389,
-0.3323542178,
0.2970773876,
-0.1107777059,
0.2159584016,
0.1153434813,
0.1434781998,
-0.152584374,
0.2073064744,
0.0322757922,
0.0327012017,
0.3215780556,
0.0806672722,
0.1966362596,
-0.1086842418,
-0.0895332918,
0.0768304542,
0.0489273518,
-0.1248533577,
0.3590242863,
-0.2957679927,
0.0795562565,
-0.2639229298,
0.1496610045,
-0.2140208632,
-0.1008937955,
0.0697129369,
0.0061228811,
0.3395232856,
0.2656370103,
0.0608469769,
-0.1770689934,
-0.2813940048,
0.2078832537,
-0.2546046674,
0.2838097215,
-0.4139494598,
0.1367823929,
-0.0549941324,
0.1522852927,
0.2467971742,
-0.2308079749,
-0.0873152316,
0.2708226144,
-0.3780190945,
0.2507041097,
0.243445307,
0.3402457535,
0.2136473954,
-0.6654507518,
-0.0560659729,
0.196408838,
0.0405308194,
0.2639285028,
0.4616984129,
0.2858487666,
0.041715011,
0.4953609109,
0.4974419475,
0.1947704703,
0.3821516633,
0.1174810976,
-0.3545908332,
0.0510101914,
0.3267089128,
-0.032045301,
-0.0215774961,
-0.2606869936,
-0.1111800075,
-0.1915275007,
0.241568625,
-0.0752138048,
0.2466733605,
0.2822246552,
-0.0640123338,
-0.0562335961,
-0.347858429,
0.024686208,
0.0753171965,
0.1111516207,
0.2015428543,
0.3978767395,
-0.1061021611,
-0.1385419071,
0.3545998037,
0.2399472296,
0.0534451343,
0.0387480929,
-0.1607276201,
-0.0037659889,
-0.0331536904,
-0.055857867,
-0.228971526,
0.0483110361,
-0.2053956389,
0.2038796991,
-0.2627328932,
-0.3990851045,
-0.3664078414,
-0.4666285515,
-0.5186997652,
-0.2288581282,
-0.2277514338,
-0.0249779969,
-0.1403741688,
0.2179198265,
-0.0952561498,
0.0245223735,
-0.0709111914,
-0.0143741267,
0.0962660313,
-0.2077759951,
-0.2750039697,
0.0047859186,
0.0331314206,
-0.4152550399,
0.2100706547,
-0.3572308123,
-0.2126263827,
-0.2742782831,
-0.2928539217,
0.1296209544,
0.1037695035,
0.390291363,
0.2535189986,
0.5234677196,
0.158097893,
-0.077762939,
0.6147893667,
-0.0551338308,
-0.0011080541,
-0.0585246272,
-0.0608422235,
-0.0676348135,
0.1368138045,
-0.3228601813,
-0.3177286685,
-0.2845430374,
0.1970176101,
-0.2229865193,
0.3150838315,
0.2369027287,
0.1169964895,
0.2412590384,
-0.0924545154,
0.3972176313,
-0.118510887,
-0.3637592494,
0.2181181461,
-0.2219635099,
-0.575345099,
0.196565643,
0.1742944717,
0.2536401749,
0.0196577664,
-0.3724504709,
-0.139095217,
-0.1651719064,
0.1573382914,
0.2256034017,
0.2018872797,
0.1807173193,
-0.2321418673,
-0.1040264368,
-0.0118514346,
-0.2092621326,
0.0137850167,
-0.1657149047,
0.3661254942,
0.2193439007,
0.6551261544,
-0.012598359,
0.4479259551,
0.1187105402,
0.1391973197,
0.2367835939,
-0.2566562295,
0.144076556,
-0.1453215927,
-0.3303592205,
-0.0360441133,
-0.2917893827,
-0.0344326459,
0.2163202912,
0.1146967635,
0.3094919324,
-0.6448789835,
-0.4344626963,
-0.2944614291,
-0.2665643394,
-0.0613876469,
0.0354410335,
0.3576149642,
0.1260932237,
-0.1076799482,
-0.12240275,
0.0486790575,
0.055839695,
0.6811608672,
-0.0000992343,
0.2796806097,
-0.0154302903,
-0.4556896985,
-0.3785035908,
0.2995544672,
0.134985581,
0.4466311932,
-0.1919714957,
-0.0969063044,
0.0521092452,
-0.1194616631,
0.4857756495,
0.1288695037,
0.1786725223,
-0.1610221714,
-0.3438474238,
-0.2596379519,
0.0824212059,
-0.0104255164,
0.2410931736,
0.3700400293,
0.1858322769,
-0.3434150219,
0.0091723986,
0.3807420731,
0.0982330143,
-0.2612837255,
0.1412663758,
-0.3979398906,
-0.5475957394,
-0.1663974971,
-0.0750837922,
0.2317699194,
0.271494329,
0.1435728073,
-0.0049636522,
0.2312814742,
-0.1314672828,
-0.1056085005,
0.030117292,
-0.0965367928,
-0.0985466316,
-0.1369021386,
0.2550186217,
0.7210819721,
0.1141258106,
0.4526039362,
-0.0785846412,
-0.4409705698,
0.0251300633,
0.2876988947,
0.2208344489,
0.3907652199,
0.0107213045,
0.3823078573,
0.61456424,
0.2896056771,
-0.2357707471,
0.0708303675,
0.3327180743,
0.3136427701,
-0.0961136296,
-0.173760578,
0.0824350417,
-0.2778611481,
-0.0302944314,
0.3283351064,
0.1618345678,
-0.2156292945,
-0.2190189213,
-0.1439751387,
1.246404171,
0.1160476282,
0.1292582154,
0.2302875817,
-0.3699630499,
0.1612040251,
0.160725832,
0.2598153353,
0.0163497739,
-0.0258291345,
-0.0321749598,
-0.1902183592,
0.1494574398,
-0.3792227507,
-0.0751532912,
0.1926042587,
0.093742229,
-0.1039521396,
0.2987543643,
0.0534389652,
-0.0946136788,
0.0657544583,
-0.4017190039,
0.0556500144,
-0.1223211065,
0.615213573,
-0.1972123384,
-0.1405317634,
-0.1597435176,
-0.4412939548,
-0.0539717525,
0.2142122686,
-0.643727839,
0.1067337543,
-0.0497915298,
0.0388654694,
-0.0968940556,
0.0809474662,
0.0478603616,
0.0635150969,
-0.2531596422,
0.0682552978,
-0.2845923007,
-0.2945759594,
0.1050337702,
0.0107452432,
0.0828373283,
-0.3401281834,
-0.358289212,
0.1969183981,
0.0258976892,
-0.0858814642,
-0.1180382967,
-0.129207328,
0.0930800438,
0.2367112488,
-0.0393741317,
-0.2223088145,
-0.1779503226,
-0.3172847331,
0.0741753429,
-0.1616133302,
-0.274543196,
-0.2192126811,
0.2136910409,
-0.3140418828,
0.019496737,
0.4204736054,
-0.1240693703,
0.0124132484,
0.4668135941,
0.2489023358,
-0.2109090835,
-0.1028508246,
0.1590223163,
-0.044788152,
-0.3809200525,
0.0791279972,
-0.0068486244,
0.2332539707,
-0.4331885874,
0.2406932265,
0.2429968715,
0.0146441013,
-0.1407179385,
-0.5294292569,
-0.1700607091,
0.1793421358,
0.26334095,
-0.1006656736,
-0.082129553,
0.4636787176,
0.2267751396,
-0.133170113,
-0.2466322184,
-0.0021874993,
-0.2097142041,
-0.0605757535,
0.2492125332,
-0.2519169152,
0.3046252131,
0.2313197702,
0.021922674,
-0.1754482388,
-0.1964860857,
-0.1034536883,
-0.1796940565,
0.122622475,
-0.0207801554,
-0.4409767389,
0.0471436083,
-0.1124708131,
0.1841864586,
0.077713199,
-0.002114787,
0.1193931997,
-0.0235751066,
-0.1727416962,
-0.046654094,
0.1078357026,
-0.2336434126,
0.0126125766,
-0.111694105,
0.5489297509,
0.0700606033,
-0.1226629242,
0.0833292902,
-0.1674489975,
-0.3059039712,
-0.1978564858,
0.0877517909,
-0.0676128119,
0.3740313649,
-0.0842992142,
-0.0000438324,
0.0521047413,
0.2794491351,
0.0919977054,
-0.257478416,
0.1231655851,
0.3014468551,
0.0900468379,
-0.194187209,
0.0612496436,
0.0334219299,
-0.4658184052,
0.0122956512,
-0.0040322626,
-0.1652035862,
0.2971456051,
-0.1256968975,
-0.0498334765,
0.2379971743,
0.0230185017,
0.1087461114,
0.0863663852,
0.100570254,
0.306612879,
-0.0520201325,
0.0187444463,
0.147614345,
-0.0434225611,
-0.3048549294,
0.2642850876,
-0.2268697321,
0.2546723783,
0.0639387891,
-0.0874840245,
-0.1059342399,
-0.2708554864,
-0.1908985078,
-0.0471861884,
-0.4405756295,
0.1302327514,
-0.25089553,
0.1576342881,
-0.2515553534,
0.3194224238,
0.063244313,
-0.4731462002,
-0.3515940011,
-0.3088874817,
-0.1402172893,
-0.1646265388,
0.2591006756,
-0.1458967775,
-0.0548440665,
0.1138812825,
-0.0610134304,
-0.244243592,
-0.2545364797,
0.0244430974,
0.1287028939,
-0.1472393125,
0.3649048805,
0.3046580553,
-0.042664364,
-0.0330608003,
0.2746036351,
0.488273561,
0.1808528155,
-0.0677730814,
0.2066833675,
-0.0058111227,
-0.1081406102,
-0.1283839941,
0.1322131455,
0.3104685247,
0.0208489019,
0.2915860415,
0.0995471478,
-0.1695023626,
0.3212899864,
-0.0195347052,
0.2670543194,
-0.0914502889,
0.4178232253,
-0.3734609187,
0.0064057838,
-0.4357579052,
0.1411553919,
-0.6245626211,
0.3943650424,
0.2920104265,
-0.3064233959,
0.0980972871,
-0.2270689011,
0.0654643476,
0.0080820713,
0.827568531,
0.38585186,
0.4154242277,
-0.2436258048,
-0.1254250705,
-0.307421416,
0.2263294011,
-0.0964212939,
-0.0938926339,
-0.0541628599,
-0.0627617911,
-0.2619587779,
0.1683170348,
0.1794219464,
-0.0987337604,
-0.1530298144,
0.1471412331,
0.0452138335,
-0.1798276007,
-0.0186540373,
0.4454338253,
0.0934815928,
-0.1475310475,
0.1170978248,
-0.1636120081,
-0.0371300019,
0.1072285846,
0.3123604059,
-0.1896452308,
-0.2728017867,
0.2037021369,
0.3042408526,
0.4121542573,
-0.0772859901,
-0.0919309556,
-0.1631564647,
-0.2240606695,
-0.0744576678,
0.3020270169,
0.1027604267,
-0.0267277472,
0.0876338854,
-0.6521433592,
-0.4562417269,
-0.0016588989,
0.0283903517,
-0.1895437837,
0.1767579615,
-0.1018094346,
0.1317517906,
-0.1087821573,
0.211121127,
0.238307327,
-0.0256974287,
0.0130687533,
-0.1834003478,
-0.2883715928,
0.5281038284,
-0.2252638489,
-0.1807868332,
-0.2750324011,
0.2814262807,
-0.1132971495,
0.1385335922,
-0.3915934861,
0.1535350233,
0.2932703197,
0.3144242465,
-0.309984833,
0.268175751,
-0.2976754904,
0.0299315099,
0.0945532545,
0.2430005372,
-0.128599152,
-0.3379630446,
0.0161278639,
-0.0985911936
] |
https://github.com/huggingface/datasets/issues/3210 | ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.15.1/datasets/wmt16/wmt16.py | You don't need authentication to access those github hosted files
Please check that you can access this URL from your browser and also from your terminal | when I use python examples/pytorch/translation/run_translation.py --model_name_or_path examples/pytorch/translation/opus-mt-en-ro --do_train --do_eval --source_lang en --target_lang ro --dataset_name wmt16 --dataset_config_name ro-en --output_dir /tmp/tst-translation --per_device_train_batch_size=4 --per_device_eval_batch_size=4 --overwrite_output_dir --predict_with_generate to finetune translation model on huggingface, I get the issue"ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.15.1/datasets/wmt16/wmt16.py".But I can open the https://raw.githubusercontent.com/huggingface/datasets/1.15.1/datasets/wmt16/wmt16.py by using website. What should I do to solve the issue? | 26 | ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.15.1/datasets/wmt16/wmt16.py
when I use python examples/pytorch/translation/run_translation.py --model_name_or_path examples/pytorch/translation/opus-mt-en-ro --do_train --do_eval --source_lang en --target_lang ro --dataset_name wmt16 --dataset_config_name ro-en --output_dir /tmp/tst-translation --per_device_train_batch_size=4 --per_device_eval_batch_size=4 --overwrite_output_dir --predict_with_generate to finetune translation model on huggingface, I get the issue"ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.15.1/datasets/wmt16/wmt16.py".But I can open the https://raw.githubusercontent.com/huggingface/datasets/1.15.1/datasets/wmt16/wmt16.py by using website. What should I do to solve the issue?
You don't need authentication to access those github hosted files
Please check that you can access this URL from your browser and also from your terminal | [
-0.1509537101,
-0.2567588389,
-0.015501881,
0.2449311763,
0.2433852553,
-0.0078564612,
0.0931585729,
0.096603632,
-0.0795091018,
0.4065464437,
-0.2241298705,
-0.2348440439,
0.2964992225,
0.0799347758,
0.1829089969,
-0.1545805335,
-0.0657936707,
-0.2579963505,
-0.1552281231,
0.0413498767,
-0.1073373407,
0.0781104788,
-0.175453335,
0.4801567793,
-0.1020727083,
-0.0386790223,
0.0757802203,
0.2212058306,
-0.080494225,
-0.1503172517,
0.2274381667,
-0.040436767,
0.0538208671,
0.671231091,
-0.0001167883,
0.3110311925,
0.288793385,
-0.0040878085,
-0.2500895262,
-0.7219985127,
0.2048872709,
-0.1496478021,
-0.0655589774,
-0.0031145765,
-0.2526450455,
0.0087176748,
0.2720428705,
0.0325888507,
0.4103092551,
0.3810679018,
0.1532222331,
0.4907595515,
0.4328311086,
-0.1538493484,
0.0431252755,
-0.2989079654,
0.0449853241,
0.6197920442,
0.2168724239,
0.0398653112,
0.0870137662,
0.0937868953,
0.0758690536,
-0.0151614407,
0.1010148153,
-0.0392709337,
-0.0506082773,
-0.5751083493,
0.1343624592,
0.0881321877,
-0.1322864443,
0.043021895,
-0.2824386358,
0.0252176207,
-0.1981964558,
-0.1705619544,
0.3904671371,
0.4674408138,
-0.3060926795,
0.20908539,
-0.4006349146,
-0.2584946156,
-0.4434069693,
0.4437513351,
0.072463803,
0.2254313082,
-0.1580846608,
0.2360315174,
0.056988094,
-0.166742146,
-0.373598069,
0.0291129965,
0.1840313673,
0.1995314956,
0.15059039,
0.183254391,
-0.0769735798,
-0.075118579,
0.1593688875,
0.0938967913,
-0.2375119627,
0.0562713519,
-0.0507319942,
0.1013598517,
-0.0683069527,
0.1583529115,
-0.1253854334,
0.1740638763,
0.5152621269,
0.5846594572,
-0.1252696961,
0.1206224561,
-0.3041921556,
-0.4383407235,
-0.4256127477,
-0.1067771763,
0.3761441112,
0.0572142899,
0.0132885948,
0.2025857121,
-0.1654169112,
-0.1040333286,
-0.0432501435,
0.4347072244,
-0.2848947644,
-0.3164160252,
0.1927828193,
0.2856713831,
-0.1028240621,
-0.1809800267,
-0.0980984569,
-0.0042516082,
-0.0021173554,
0.1445176899,
0.0263520349,
-0.2774707973,
0.4154530764,
-0.1292772293,
0.3802050948,
-0.4737124443,
-0.011863756,
-0.0269533414,
0.0589635223,
0.1652251482,
0.3468657136,
0.0411014967,
0.1586210281,
-0.2671114206,
-0.0290400013,
-0.0536430627,
-0.3161178827,
-0.4234741032,
0.0831752196,
0.1121804193,
-0.0198449511,
0.1421329677,
-0.1061694175,
-0.1659051031,
-0.1899526268,
0.1598156244,
-0.2226683497,
-0.0498927683,
0.0966520011,
-0.0787432492,
0.4216912687,
0.1995510161,
0.5896767378,
-0.0993665829,
0.4339531362,
0.154915452,
0.2254457325,
0.3589086831,
-0.2934636474,
0.1978476048,
-0.2554177046,
0.0747843385,
0.2270252556,
-0.4901199341,
-0.4238404036,
0.2611237466,
-0.3190605044,
-0.004874099,
-0.0475578457,
-0.2100149393,
0.0969174579,
-0.0161680784,
0.2846214771,
0.1588588953,
0.1447855979,
-0.084196955,
-0.0883203819,
-0.3599421978,
0.1821311265,
-0.0904231369,
0.1467763036,
0.0510394946,
0.2549144924,
-0.1828035861,
0.2434677035,
-0.0353888646,
0.0385037139,
0.2445307374,
-0.0457376428,
0.0467510559,
-0.1550026834,
0.1156839952,
0.1714535952,
0.0439385921,
-0.0122489091,
0.3452626169,
-0.3026328087,
0.0610339865,
-0.1600098908,
0.1215139404,
-0.2935653329,
-0.1845995039,
0.071179986,
0.0382619798,
0.2955880761,
0.2374919504,
0.1626795679,
-0.1968389452,
-0.3393874168,
0.1901950389,
-0.1469221413,
0.2603961825,
-0.3194338977,
0.130246684,
0.0900898874,
0.1359276175,
0.281917274,
-0.2827289104,
-0.0708340555,
0.196852237,
-0.3384464979,
0.2623396516,
0.3759233952,
0.3197781444,
0.1648100764,
-0.5091866851,
-0.1029466614,
0.1433860511,
-0.0348110422,
0.3124519885,
0.4339690506,
0.3601880074,
0.1013844982,
0.4083538651,
0.4650036991,
0.1988859773,
0.4267327785,
0.1958150268,
-0.4073284268,
0.0521472469,
0.2799146771,
0.0484460555,
-0.0073250248,
-0.3184632063,
-0.1923344731,
-0.1135283336,
0.29759112,
-0.1172288582,
0.1333849877,
0.2292710692,
-0.0620216727,
-0.0172478966,
-0.2373180836,
0.141550988,
0.0221917983,
0.0486583076,
0.1789350063,
0.331302166,
-0.1190856993,
-0.1941949576,
0.3829258978,
0.1874779016,
-0.0406342372,
-0.0059996489,
-0.0738094822,
-0.0103238374,
0.0111363092,
-0.0602388047,
-0.2321398407,
0.0327708833,
-0.2287324071,
0.0743933767,
-0.1901482046,
-0.2741993964,
-0.3249983788,
-0.472456336,
-0.5843858123,
-0.063009575,
-0.1577685177,
0.0080216425,
-0.0888916478,
0.1642743349,
0.2872467041,
0.0684979558,
-0.1314934194,
0.0128189893,
0.1722903848,
-0.1771664321,
-0.259416312,
-0.0485394485,
0.2516716421,
-0.5049003959,
0.2356878668,
-0.4138039947,
-0.1826031059,
-0.3557457328,
-0.1781101674,
0.0635763556,
-0.0287128594,
0.4513369203,
0.0762987137,
0.4599321187,
0.2691435814,
-0.0110517526,
0.5343031883,
0.0867781714,
-0.0108968979,
-0.1471391618,
-0.0256892405,
-0.1915901899,
0.0835792199,
-0.1646745205,
-0.2484329641,
-0.3005222976,
0.2432472855,
0.0089477422,
0.3799395859,
0.2487594783,
0.0768187121,
0.3025744259,
-0.0264969468,
0.3924578726,
-0.0980939865,
-0.5529934764,
0.2889696658,
-0.3141343296,
-0.5499424934,
0.2781271935,
0.3552088141,
0.3885728419,
-0.0425267629,
-0.4367412031,
-0.099429585,
-0.1166776046,
0.2813896239,
0.1866794527,
0.1754861921,
0.0769263655,
-0.1707225591,
-0.0175652653,
0.0526337512,
-0.2943704128,
0.1367958933,
-0.0869857743,
0.1507679224,
0.2118661851,
0.4436597228,
-0.0373387747,
0.6914640069,
0.2878738344,
0.1941109896,
0.0688826963,
-0.1906650066,
0.160985738,
-0.0692011788,
-0.228307426,
-0.0231296904,
-0.1366928369,
-0.0045298524,
0.3303224146,
0.1527633965,
0.3752770424,
-0.5364719033,
-0.5973562598,
-0.3402132094,
-0.2647998035,
-0.2272587866,
-0.0591210574,
0.3151165545,
0.1332608163,
-0.0321346298,
-0.1548077613,
0.0258844215,
0.0010600154,
0.7050628066,
0.1011882946,
0.3243127167,
0.0109704416,
-0.4773564637,
-0.2862814963,
0.3332768977,
0.0401478298,
0.3414641917,
-0.1723010689,
-0.0818226859,
0.0380080491,
-0.1565304697,
0.1910116524,
0.1399235725,
0.3682833016,
-0.2106556296,
-0.3698862493,
-0.1796255857,
-0.0730869845,
0.0323927775,
0.1609298587,
0.3342633843,
0.4602169096,
-0.384618789,
-0.1198144853,
0.243176192,
0.0103077702,
-0.1379791796,
0.3294482529,
-0.2402054965,
-0.544800818,
-0.3322793543,
-0.121692799,
0.283429563,
0.2232357711,
0.0484137535,
0.030492723,
0.2388423085,
-0.0017053396,
-0.0188541356,
0.0810079798,
-0.048287563,
-0.0219847634,
-0.0518779382,
0.262270391,
0.6340044141,
0.1622155458,
0.5519952178,
0.1430865377,
-0.4077575803,
-0.0148277525,
0.1264649481,
0.2010796964,
0.4506741166,
0.0058570909,
0.3354634643,
0.4657744765,
0.2990216017,
-0.2449218035,
0.0842194557,
0.2740346789,
0.3410473168,
-0.2562116385,
-0.1633403897,
-0.0994435102,
-0.4222572148,
-0.0781953484,
0.347767204,
0.1393174529,
-0.2674620748,
-0.0976137668,
-0.1405177563,
1.1805425882,
0.1627883613,
0.2277140915,
0.1752909273,
-0.557090044,
0.051409822,
-0.0158880334,
0.176133275,
0.0006242847,
0.0295518301,
-0.0242570788,
-0.2628664076,
0.1864684373,
-0.3650445938,
-0.0360770114,
0.0575722344,
0.1480526775,
-0.029290352,
0.1920907646,
0.1444870979,
0.0085113272,
0.1478422433,
-0.3957350254,
0.0182298515,
-0.0970414057,
0.5611691475,
-0.1387967765,
-0.2967008948,
-0.290868789,
-0.37408939,
-0.1435018331,
0.1793123633,
-0.5309711099,
0.133121416,
0.0478628241,
0.022719726,
0.010620852,
0.1590080261,
0.1779978275,
0.1408461034,
-0.3140519261,
0.035396561,
-0.2558196783,
-0.2966896296,
0.1324104518,
0.1095174626,
0.0550065674,
-0.4280102253,
-0.1959550381,
0.200262621,
-0.0298828855,
-0.147510156,
-0.1661792397,
-0.0810161158,
-0.019576529,
0.2728792727,
0.0236441717,
-0.1619853377,
-0.2222373039,
-0.3001834452,
0.0386575349,
-0.1892230213,
-0.2053756714,
-0.3916239142,
0.2103343457,
-0.3619329333,
0.0311128329,
0.2218291759,
-0.0627865568,
0.1750657558,
0.5008761287,
0.1626496166,
-0.1529237479,
-0.112052843,
0.1462585926,
-0.0526613332,
-0.5022357702,
0.0805098042,
-0.0511596426,
0.1932969689,
-0.4646603167,
0.3239717484,
0.302502811,
-0.0977574438,
0.0005176428,
-0.4952737391,
-0.1704704314,
0.0500000827,
0.0782043114,
-0.1592879593,
0.0048683602,
0.4620581865,
0.1258601695,
-0.1537944078,
-0.2070977539,
0.1046518013,
-0.2861918509,
-0.0799028873,
0.2109967321,
-0.1820076257,
0.3642679453,
0.2096915543,
-0.0443690754,
-0.3243831694,
-0.2606068552,
-0.0734262764,
-0.1479150653,
0.1221867204,
0.0136005133,
-0.4653044641,
0.1036073714,
-0.1096333712,
0.1440317482,
0.1077503711,
0.0158616696,
0.0554125123,
0.0085693663,
-0.0772109479,
-0.0595676638,
0.1157785431,
-0.2279397994,
-0.0025861305,
-0.0945343599,
0.6049599051,
0.0017078143,
-0.1958249509,
0.0000744519,
-0.2217573524,
-0.3751535416,
-0.1021899283,
0.0144674471,
0.1211914867,
0.4897011817,
-0.0626841113,
0.0791876093,
0.1105673462,
0.1365845352,
-0.044635959,
-0.3732489049,
0.1570354998,
0.2597911656,
0.0492754504,
-0.1688739508,
0.0550775453,
0.0099226916,
-0.4383815229,
0.0153346332,
0.0467702262,
-0.0033858083,
0.2162928581,
-0.2180317044,
-0.045345284,
0.2731743157,
0.0735809132,
0.1130695343,
0.1109535843,
0.1313879937,
0.2472967058,
-0.1315128058,
0.020743724,
0.0753543079,
-0.1660027057,
-0.3680175245,
0.2226709872,
0.0663820729,
0.1636451483,
0.1836600751,
-0.1272656173,
-0.0354759768,
-0.2720168233,
-0.0623676963,
-0.1440575123,
-0.3656051755,
0.1833581477,
-0.2218530923,
0.0288793091,
-0.1698126048,
0.2820237577,
0.1166345179,
-0.3149898052,
-0.2579047084,
-0.306689918,
-0.1467146575,
-0.1353594512,
0.1492517442,
-0.1630361974,
-0.1472372264,
0.0985870585,
-0.0471508577,
-0.163984865,
-0.1635666788,
0.0415390059,
0.1283055693,
-0.1482525468,
0.4181745052,
0.2385302484,
-0.1247526258,
0.1017433852,
0.3313307464,
0.6862636209,
0.1126361713,
0.0057594427,
0.2273826599,
-0.0017093553,
-0.0491551422,
-0.1211564764,
0.2075949609,
0.3060117066,
0.1099304929,
0.3574773669,
0.0728248805,
-0.1236598864,
0.2046198398,
-0.0349816233,
-0.0249511674,
-0.0777216628,
0.4416417778,
-0.4838665128,
-0.1892166883,
-0.3396385908,
0.0052770032,
-0.4486310184,
0.2534339726,
0.2820641994,
-0.1180033088,
0.2034908235,
-0.2810214162,
0.0523197539,
0.0140469298,
0.8000413179,
0.3497214317,
0.2755812109,
-0.1995244026,
-0.2701632679,
-0.2628519237,
0.3116942346,
-0.0457499884,
-0.1137842759,
-0.0815988407,
-0.1099779233,
-0.1017948985,
0.0389002338,
0.2649936378,
-0.2532474697,
-0.1853258908,
0.0766200647,
0.0449033193,
-0.0746198818,
0.0339121856,
0.386099726,
0.0517020822,
-0.1029212475,
0.243000716,
-0.1553103626,
-0.0377786532,
0.2792056501,
0.4611695409,
-0.0339651704,
-0.4271991551,
0.2183178216,
0.2189742476,
0.2374493331,
-0.0602652282,
-0.139544189,
-0.1485031098,
-0.1002693325,
-0.0582440086,
0.3615705669,
0.0036139919,
0.1095192134,
0.0403722897,
-0.5267291069,
-0.4342330098,
-0.1925955713,
-0.035907574,
-0.0868534073,
0.2082070112,
-0.0849791467,
0.0590793528,
-0.106251739,
0.2388020456,
0.19074063,
-0.0332223251,
-0.0815941617,
-0.3264250159,
-0.169270128,
0.4853036106,
-0.3599282205,
-0.2140417993,
-0.1280346364,
0.3184172213,
-0.0182185993,
0.0682676211,
-0.4189763963,
0.125049293,
0.3222841918,
0.2703777552,
-0.3872392476,
0.2115097791,
-0.3404006064,
0.0752705559,
0.1649157405,
0.1860323101,
-0.1068893597,
-0.4850719571,
0.0376383178,
-0.0518597886
] |
https://github.com/huggingface/datasets/issues/3204 | FileNotFoundError for TupleIE dataste | @mariosasko @lhoestq Could you give me an update on how to load the dataset after the fix?
Thanks. | Hi,
`dataset = datasets.load_dataset('tuple_ie', 'all')`
returns a FileNotFound error. Is the data not available?
Many thanks.
| 18 | FileNotFoundError for TupleIE dataste
Hi,
`dataset = datasets.load_dataset('tuple_ie', 'all')`
returns a FileNotFound error. Is the data not available?
Many thanks.
@mariosasko @lhoestq Could you give me an update on how to load the dataset after the fix?
Thanks. | [
-0.1196368784,
0.0451599471,
-0.0531533621,
0.4988976419,
0.2058222592,
0.1560678333,
0.2879103124,
0.2625412941,
0.2662693262,
0.0063053216,
0.0560928844,
-0.0138807008,
-0.1284626871,
0.2602333426,
-0.0655836388,
-0.1212598756,
-0.1651826352,
0.2249732614,
0.0427774936,
-0.0181835275,
-0.2478191555,
0.1665059924,
-0.4162743986,
0.0138769783,
-0.2687966824,
0.1630673558,
-0.1331155002,
0.4549990296,
-0.1606258452,
-0.1381944716,
0.435932219,
-0.0432401411,
0.1213592142,
0.1598357111,
-0.0001055389,
0.0429350622,
0.2902179062,
-0.2782851756,
-0.2363068163,
-0.3211073577,
-0.4993297756,
-0.0028147562,
-0.0334909745,
-0.3217594624,
-0.2159611583,
0.105228655,
-0.0783583745,
-0.2142109275,
0.4745199382,
0.3432848155,
0.2274399847,
0.068169795,
0.2238768339,
-0.1401962936,
0.3253955245,
0.2632125914,
-0.0426926389,
-0.0686822832,
0.2652718127,
-0.3149091005,
0.2360959649,
0.189671278,
-0.0427056663,
-0.0513555072,
-0.2809864283,
-0.0185321234,
0.05854965,
-0.2500905395,
0.0166019406,
0.2242081463,
0.7670741081,
0.1049740016,
-0.4100658596,
0.1957037896,
0.0278357398,
-0.241170153,
0.1856893003,
-0.0117399888,
0.0368023701,
0.1393929571,
0.2362638563,
-0.2493595034,
-0.3036237955,
0.3177767694,
-0.2781788707,
0.0607924685,
-0.1479185522,
-0.0377882943,
0.0007715959,
-0.2322717011,
-0.2851444185,
0.2375762612,
-0.098373577,
0.1464171559,
-0.1673809588,
-0.2420622706,
-0.021659879,
0.0058333762,
0.1528685689,
0.1066981256,
0.0557865985,
0.087097019,
-0.2716065645,
0.0542176068,
0.3948201537,
0.0479261763,
0.0415566191,
0.0564137213,
0.310826987,
0.141748324,
-0.208170712,
-0.0563493706,
-0.0342016891,
-0.1904174834,
-0.1305864304,
0.1542565823,
0.704259932,
-0.4075494409,
-0.4645265639,
-0.0542950369,
0.02255526,
-0.206007421,
0.1383615434,
0.346249491,
-0.2171999961,
0.1663608998,
0.1262940317,
0.176570192,
-0.1918984652,
-0.466294229,
-0.2245905995,
0.0529377237,
-0.1736209244,
0.0080340384,
0.2651278377,
-0.0620950237,
0.2930436432,
-0.0759317055,
0.0483383238,
-0.0554837659,
0.1442044824,
-0.2144055963,
0.0028129588,
0.2280302644,
0.0143884802,
-0.0178066529,
0.2582372129,
-0.4266127944,
0.109388724,
0.2520403564,
-0.7108907104,
-0.3892113864,
-0.3980084062,
0.222037077,
-0.2670138478,
-0.0859942734,
-0.1949273497,
-0.0258692503,
-0.0698074028,
-0.3809630871,
-0.2154076546,
-0.1465827078,
0.1312551647,
-0.3905721605,
0.2349521667,
0.7793857455,
-0.6047226787,
0.0630532578,
-0.1707817018,
-0.3291158676,
0.2980708182,
0.2991485596,
-0.0834795684,
0.1166762114,
-0.3701772094,
0.0261540655,
0.529074192,
-0.0547902025,
-0.4205892086,
0.0172250923,
0.1035532653,
0.1493458003,
-0.0227771606,
-0.0009838213,
-0.0231249835,
-0.1245146468,
0.3176124692,
-0.0684465095,
-0.1200853363,
-0.0403885804,
-0.2750504315,
0.1824373901,
0.1693337113,
0.4288363159,
0.1472095251,
0.1463044733,
0.0873227641,
-0.0037170604,
0.3148339987,
-0.0974454433,
-0.0003574265,
0.2578187585,
0.399728626,
0.3802446425,
0.0587818436,
0.1154489964,
-0.4068005681,
0.1287441701,
0.0439470485,
-0.1356125772,
-0.2752279639,
-0.0916800424,
-0.1009086892,
-0.1266299486,
-0.3329416513,
-0.2522027194,
0.1475647986,
0.0758830532,
0.0224289019,
0.0146361673,
-0.3561009169,
0.032550294,
-0.0790788382,
-0.0292849801,
-0.2311644554,
0.4723608196,
0.0316235349,
-0.2124640346,
-0.0139161907,
0.116005443,
-0.0746325254,
-0.3244271278,
-0.1959885657,
0.2334076166,
0.3944269419,
-0.2003937066,
0.2282149047,
-0.1495189667,
0.2854170799,
-0.2191955,
0.1478713006,
0.140893504,
0.082473062,
-0.0399812199,
-0.1374144256,
0.4697602391,
-0.2172607929,
-0.1942569315,
0.135263294,
0.0442937203,
0.2962689102,
-0.1099110916,
-0.1511107683,
-0.152376771,
0.2788491249,
0.1356873065,
0.0607850142,
-0.123883523,
-0.4841675758,
-0.0447349213,
0.3859452307,
0.1631647348,
0.0716296956,
0.0363270305,
-0.1887630969,
0.128986299,
-0.1986592561,
0.062527366,
0.6189297438,
0.1692723334,
-0.1732681692,
-0.1133758724,
0.2879259586,
-0.0983462185,
0.0162395518,
-0.0976404399,
0.2170812935,
0.2551524341,
-0.0722795352,
-0.0119096255,
-0.3030005395,
0.0227400418,
-0.113947928,
0.3090085387,
-0.2982611656,
-0.1029422954,
-0.2547318041,
-0.4612658322,
0.298951596,
-0.169209227,
-0.0804212019,
-0.1060045958,
0.1452733874,
0.0624580942,
-0.1109120995,
-0.021846829,
-0.1167969927,
0.1271489114,
0.1075465158,
-0.2023764849,
-0.2182410359,
-0.2721254528,
-0.0950279981,
0.2190289497,
0.3342819512,
-0.4088044465,
0.2276571691,
-0.1557147801,
-0.0041114371,
-0.1746978313,
-0.3698334992,
-0.104931213,
-0.0187025256,
0.3566995859,
0.019447377,
0.394549787,
-0.1435581595,
0.118220821,
0.3385027349,
-0.0618157089,
-0.1711030006,
0.2297804654,
0.1394509226,
0.0451825634,
-0.0136901783,
-0.6663831472,
-0.4856439531,
-0.2101213634,
0.1815124601,
0.2866952419,
0.0148973195,
-0.0410964154,
0.0232719798,
-0.1345590204,
0.1266447157,
-0.0851707235,
-0.3077642024,
-0.3702035248,
0.3344348073,
-0.3319252133,
-0.4869293869,
0.300722301,
0.0140789393,
0.1728633791,
0.1197767854,
-0.4143417776,
-0.1273866743,
0.2798109353,
0.1125087291,
-0.1955720484,
-0.2870699167,
0.3970384896,
-0.034577895,
-0.0906866193,
-0.1133902371,
0.0633178428,
0.0193438884,
0.2534274459,
0.3832386434,
-0.1979492158,
0.2404647321,
-0.1117612496,
0.3203628063,
0.1616945714,
0.1415376514,
0.5082682371,
-0.1482523382,
0.1420860738,
-0.1062610149,
-0.2417302877,
-0.1965896934,
0.0592220835,
-0.1225364953,
0.1307729334,
0.0489814952,
-0.0385650247,
-0.4868858457,
0.2237488031,
-0.5666695237,
-0.1844187975,
0.0370672978,
0.1028812379,
0.1408783942,
0.1403884143,
-0.1255539209,
0.0116031021,
-0.137060523,
-0.0026513033,
0.5029459596,
0.4931561053,
-0.1485789567,
0.0102380505,
0.0611714534,
-0.0972667783,
0.3448508382,
-0.2015953213,
0.0509320237,
-0.170753926,
-0.222857058,
-0.044919692,
-0.0511619225,
0.5238881707,
-0.1542668045,
-0.2030079216,
0.1532541215,
-0.1065355316,
0.054093346,
-0.1036613658,
-0.2685168982,
0.4698167443,
0.0106245345,
0.6693379879,
-0.1256620735,
-0.1621099859,
0.3284801841,
0.1714537144,
-0.4290446341,
-0.0311693065,
-0.1453274637,
-0.2403759658,
-0.0820578262,
-0.0286622457,
-0.3139081001,
0.0747471228,
0.0311375968,
-0.0126994103,
-0.1643981934,
-0.093999967,
-0.0542695485,
0.0947254896,
0.4975708127,
-0.050822001,
0.167115435,
-0.0966212898,
0.1759813875,
0.4920899868,
0.6198368073,
0.1304379702,
-0.1786757261,
-0.0755047947,
-0.1977027208,
0.215006873,
0.0395668298,
-0.1979958415,
-0.0117163016,
-0.2893720865,
-0.0061739222,
-0.3236997426,
-0.1079280898,
0.4409399629,
-0.0647213832,
-0.399712801,
-0.3716849983,
0.1725466698,
0.0624719299,
0.1340838671,
0.2391404063,
0.1551438123,
-0.0622501969,
0.2091425806,
-0.0437557958,
0.7408254743,
-0.1478052735,
0.0299239792,
0.1479745358,
0.5254088044,
0.4483703077,
-0.0751885772,
0.1078874171,
-0.3677242994,
-0.4741959572,
-0.0094410283,
-0.1007556021,
0.1611787677,
0.1113306805,
-0.2039480805,
0.3590129316,
0.1689237207,
-0.1554567814,
-0.006442694,
-0.0735904723,
0.2446894646,
0.2336867005,
-0.18100667,
0.1267314255,
-0.1027245298,
0.4381471574,
-0.277261436,
-0.2197835296,
0.0059591625,
-0.2042418569,
-0.1679380387,
0.1631545722,
-0.4241809845,
0.2399564385,
-0.2108789235,
-0.2413899451,
-0.0944888666,
0.2686497271,
-0.0171662401,
0.066376999,
-0.1606668979,
0.0576212779,
-0.1577292383,
-0.2266346961,
-0.2410024107,
0.3456355035,
0.4030733407,
-0.0679077879,
-0.2893491685,
0.1786323041,
-0.0875465646,
-0.221147716,
-0.1385750771,
-0.1701176912,
-0.0501002073,
-0.2257346809,
-0.3534813523,
0.0416441187,
-0.135410279,
-0.1498007774,
0.1796708107,
0.3896922767,
-0.0690783411,
0.2572874427,
0.0839366093,
-0.2238392085,
0.0396418758,
0.3588842154,
0.0676580742,
-0.009937278,
0.5152592659,
0.1782484055,
0.131791696,
-0.3683746159,
0.0070030927,
-0.1782002896,
-0.2571219504,
0.1288563162,
0.134637922,
0.6376754045,
0.1687569171,
-0.0013417597,
0.2167844176,
-0.0379684418,
0.1259505004,
-0.5754669309,
-0.3466145992,
0.3195785284,
0.1761768311,
0.1924804598,
0.0411183424,
-0.2477542311,
0.1887512952,
-0.0318970457,
-0.3654002249,
0.191532746,
-0.1820324212,
0.0127769839,
0.3922656775,
0.1608402878,
0.4039359391,
0.0081065735,
0.2745079696,
-0.1123183966,
0.0506296344,
-0.2964815795,
0.2332370579,
0.1554518193,
0.0565432422,
-0.0524648875,
-0.1297082752,
-0.4030194581,
0.0056707407,
0.1168269143,
-0.013704584,
-0.0491788238,
-0.0193976108,
0.277279377,
0.0134801492,
0.0131768649,
-0.0689817071,
0.3920849264,
0.1440424025,
0.3444537222,
-0.1522316635,
0.1754934341,
0.1459185779,
-0.1307076365,
-0.2335060239,
-0.0355939679,
-0.2186136693,
0.1470930874,
0.2435640097,
-0.3750373721,
0.0505852215,
-0.1510992199,
0.1496034265,
0.5153208375,
-0.1027677804,
0.4922032356,
0.1228116453,
0.2653185427,
-0.4283480048,
0.1968301684,
0.1411120892,
0.0855405927,
0.0048329011,
0.0008740511,
-0.1086773723,
0.1656405628,
0.2101441622,
0.1542447954,
0.063871555,
-0.2576257586,
0.2542868853,
0.4018040895,
-0.1685658544,
-0.0105743576,
-0.1820439547,
0.1662240773,
0.0082391482,
0.306610316,
-0.0751217008,
0.263194859,
-0.1914800107,
0.0139857978,
-0.21661143,
-0.4483079314,
-0.0121554723,
0.2532375753,
-0.0954057872,
0.1353290379,
0.0545538031,
0.2047190964,
-0.1490400732,
-0.0746228322,
-0.3624232411,
-0.0412153639,
-0.1444009393,
0.0375417024,
0.0141497096,
-0.4947953224,
-0.2170302868,
0.0395839028,
-0.0503794886,
0.2023923844,
-0.0291460976,
0.1624275893,
0.0006259488,
-0.1683692783,
0.0942011401,
0.2076729685,
-0.0188539233,
-0.1360112578,
0.1580878198,
0.2246822864,
0.1192535833,
0.1226986498,
0.5510715246,
0.2489735037,
0.3050894737,
-0.0672836304,
0.0711945966,
-0.0937454253,
-0.2731970847,
0.0219829697,
0.2566636205,
0.1540336162,
-0.2748703361,
0.2986182272,
0.267495662,
-0.1167714447,
0.509139657,
0.057548061,
0.0105103571,
-0.2060246766,
-0.0227629691,
0.0050858925,
-0.156840384,
-0.1689433008,
-0.2900935113,
-0.3556348979,
-0.2348464131,
0.1973083913,
0.1849257797,
0.0469949953,
0.1850965321,
0.127361536,
-0.0437959135,
0.1974174678,
0.4275951087,
0.2144021839,
-0.2769454718,
-0.2671739757,
-0.5712504983,
0.1799611747,
-0.0008452206,
0.1256461293,
-0.1375566572,
0.1916967928,
0.1666381806,
0.0830800533,
0.1430942118,
-0.1180113778,
0.3236380517,
0.2055237889,
-0.4791349471,
-0.1667401791,
0.420969367,
0.1005713195,
-0.0489576049,
-0.2162614912,
0.0010978519,
-0.0680503324,
0.0897495449,
-0.314263165,
0.0495649613,
-0.0778972432,
0.2999345958,
0.4334111512,
0.1269010305,
0.3611062467,
-0.1612831354,
-0.0354562365,
-0.0809688419,
-0.5110648274,
0.1099127606,
0.3610585332,
0.356954962,
0.1661615074,
0.0095697381,
-0.1989289373,
-0.2643597722,
-0.1321446896,
-0.2981780767,
0.1142614931,
-0.1833284199,
-0.0202711709,
0.1532289237,
-0.1669937968,
0.0736209005,
0.1590199172,
-0.1703565121,
-0.0954392701,
-0.1573307365,
0.0901341364,
0.405903548,
-0.1115804464,
0.1076637879,
-0.1402194798,
0.2377356738,
-0.1695303321,
0.0212250166,
-0.223021239,
0.2777038813,
0.4860674441,
-0.0125555564,
-0.1711120456,
0.325620532,
0.0772302672,
0.0248011127,
-0.0446008518,
0.5059500337,
0.0614729226,
-0.1391984373,
0.1698772013,
-0.1168530285
] |
https://github.com/huggingface/datasets/issues/3204 | FileNotFoundError for TupleIE dataste | Hi @arda-vianai,
first, you can try:
```python
import datasets
dataset = datasets.load_dataset('tuple_ie', 'all', revision="master")
```
If this doesn't work, your version of `datasets` is missing some features that are required to run the dataset script, so install the master version with the following command:
```
pip install git+https://github.com/huggingface/datasets.git
```
and then:
```python
import datasets
dataset = datasets.load_dataset('tuple_ie', 'all')
```
should work (even without `revision`). | Hi,
`dataset = datasets.load_dataset('tuple_ie', 'all')`
returns a FileNotFound error. Is the data not available?
Many thanks.
| 64 | FileNotFoundError for TupleIE dataste
Hi,
`dataset = datasets.load_dataset('tuple_ie', 'all')`
returns a FileNotFound error. Is the data not available?
Many thanks.
Hi @arda-vianai,
first, you can try:
```python
import datasets
dataset = datasets.load_dataset('tuple_ie', 'all', revision="master")
```
If this doesn't work, your version of `datasets` is missing some features that are required to run the dataset script, so install the master version with the following command:
```
pip install git+https://github.com/huggingface/datasets.git
```
and then:
```python
import datasets
dataset = datasets.load_dataset('tuple_ie', 'all')
```
should work (even without `revision`). | [
-0.1884026527,
0.0600263104,
-0.1039322913,
0.2780112326,
0.2167992145,
0.2223354131,
0.2928451598,
0.4254568517,
0.3324117362,
0.1265628785,
0.0710725933,
0.0770497769,
-0.0805492923,
0.2199545801,
-0.1739465892,
0.0059489533,
-0.0722433999,
0.3442076743,
-0.0204529874,
-0.0128168669,
-0.2555243373,
0.1422875673,
-0.3287062645,
-0.0161633417,
-0.2225394398,
0.1903197765,
-0.1256609857,
0.2449321747,
-0.2099730521,
-0.2294145972,
0.3297740817,
0.0290525779,
0.1780369431,
0.4961597919,
-0.0001017226,
0.0659031272,
0.2072931677,
-0.232769087,
-0.2626200616,
-0.3174372315,
-0.3245593309,
-0.0629337654,
0.0987475365,
-0.4337272942,
-0.3259531558,
-0.0727601573,
-0.1035098061,
-0.1992861032,
0.4231491983,
0.3074933589,
0.3073569238,
0.1573149264,
0.2867789865,
-0.1966302842,
0.3415281773,
0.1747043431,
-0.0686046258,
-0.1339991689,
0.0964969695,
-0.1806242615,
0.283665508,
0.2474170923,
-0.1010740623,
0.071664758,
-0.1066515967,
0.0513510033,
0.1918148249,
-0.2570740879,
0.070163466,
0.0985399857,
0.6515603662,
-0.288290292,
-0.5048098564,
0.2837332785,
-0.065184705,
-0.3108632863,
0.0793356597,
0.0909761935,
0.0732142031,
0.0581423454,
0.1751356274,
-0.0826157853,
-0.2140296549,
0.3825115561,
-0.2152143866,
0.0549283028,
-0.1153433546,
-0.1092782468,
0.0751918852,
-0.2541841865,
-0.1710432172,
0.1419706792,
-0.0423027351,
0.1426504552,
-0.0182559919,
-0.2105206847,
0.1233488619,
-0.0755295902,
0.1597558558,
0.187692225,
0.0576032288,
0.043961972,
-0.1729820371,
0.2464544177,
0.3219004273,
0.094250381,
0.0632252246,
0.0979459956,
0.3280442953,
0.1251163185,
-0.0001568649,
-0.0693569854,
0.0165508576,
-0.2103381604,
0.042550724,
0.1938447207,
0.6039735675,
-0.2909432054,
-0.3416379392,
-0.0090891756,
-0.0324498154,
-0.1343772411,
-0.0705742985,
0.2835498154,
-0.2364407182,
0.120577462,
0.15100272,
0.2034813762,
-0.2899571955,
-0.2150040567,
-0.2702138424,
0.1067750826,
-0.064606972,
-0.0987374932,
0.2457271963,
-0.1502387971,
0.3038088083,
-0.090993017,
0.0371892862,
0.0320889689,
0.1586519927,
-0.1779492348,
-0.0274966154,
0.2439037412,
0.2635676265,
-0.0833067521,
0.3418831527,
-0.5316172838,
-0.0566884428,
0.1274123937,
-0.4508856237,
-0.3061479628,
-0.2911939025,
0.3058852255,
-0.2022772133,
-0.060754668,
-0.1749679595,
-0.1501986235,
0.1236893088,
-0.2420858294,
-0.2290041149,
-0.1792712659,
0.0722756013,
-0.3932964206,
0.2523382008,
0.7262336612,
-0.4364092052,
0.0998234674,
-0.0990037248,
-0.2419248372,
0.0450068489,
0.2323188782,
0.0348329172,
0.0387278944,
-0.1948765963,
-0.0605840571,
0.4206042886,
-0.1948915273,
-0.3661431968,
-0.0112040946,
0.1280029118,
0.0075731697,
-0.0302639864,
0.0191785172,
-0.0135407634,
-0.1191024184,
0.2618730068,
0.0193880685,
-0.0426750965,
0.0865646899,
-0.0557381883,
-0.1183603853,
0.0567095466,
0.2457701564,
0.0525197871,
0.138139233,
0.1051096991,
-0.1205459535,
0.2974276841,
-0.1351122856,
0.1010172367,
0.2827281654,
0.4195115268,
0.3884802461,
0.0325548016,
-0.0936233103,
-0.2778606415,
0.1546180248,
0.1414120495,
0.0345972255,
-0.4303129017,
-0.2123671025,
-0.1282414496,
-0.0379056968,
-0.3256768286,
-0.1976944357,
0.258908987,
0.1400582641,
0.1751210093,
0.0352988653,
-0.2834661603,
-0.0914447606,
0.0981215239,
0.0547524914,
-0.2285393625,
0.3920651972,
-0.1500266343,
-0.2166556418,
0.1667313278,
0.1542200595,
-0.0270919371,
-0.258993715,
-0.1081853434,
0.1903571934,
0.3302899897,
-0.1633555144,
0.1002365574,
-0.064491719,
0.1075602174,
-0.2725979686,
0.2172839493,
0.2884939313,
0.0794822648,
0.0111040454,
-0.1340310276,
0.3363796473,
-0.1052835733,
-0.071410723,
0.0870400965,
0.1211895794,
0.2319200337,
-0.1071920916,
-0.1344264597,
-0.4241929054,
0.0902360007,
0.1607980579,
0.0368758515,
-0.1865575463,
-0.2143293172,
-0.0993710384,
0.4551885128,
0.2090730518,
0.1186342686,
0.0440042317,
-0.2059649527,
0.216852054,
-0.1860711575,
-0.0005348481,
0.4378248453,
0.2825300992,
-0.0516901202,
-0.0300908294,
0.1439564079,
-0.0315017849,
0.0054871081,
-0.0079515139,
0.0572466329,
0.0754393712,
-0.0141707631,
0.0190319978,
-0.2870553136,
-0.0607299879,
-0.2125000209,
0.3524794877,
-0.1315887123,
-0.0123044876,
-0.2842730582,
-0.2926879227,
0.244962424,
-0.3191081285,
-0.0582491755,
-0.0915228352,
0.0917972252,
0.1309309602,
-0.0566581823,
0.0496345237,
-0.00698329,
0.0131342206,
0.2273881733,
-0.287268728,
-0.0278028753,
-0.3809600472,
-0.1570048928,
0.2463082075,
0.2401652187,
-0.2751894295,
0.4237972796,
-0.2361136079,
-0.0219632592,
-0.2930737734,
-0.3577071726,
-0.1021804065,
-0.1963369995,
0.2687686086,
0.0601023808,
0.3273431063,
0.0803575292,
0.1367857903,
0.4028467238,
-0.0481799692,
-0.1761001945,
0.1759441495,
0.1016501859,
-0.1415936798,
-0.1103649884,
-0.5738961101,
-0.4431556761,
-0.3519484103,
0.1656281948,
0.4396011233,
0.1674077213,
-0.0087382905,
0.2039483339,
-0.1030217111,
0.2668831348,
0.0796154886,
-0.2181999385,
-0.2121764272,
0.3554142416,
-0.4575638473,
-0.5526003242,
0.3649142087,
-0.0317205489,
0.1826568991,
0.2007892877,
-0.3886918128,
-0.2947539687,
0.0452416092,
0.1140661687,
-0.0271811355,
0.0950094759,
0.3707846999,
0.1734094471,
-0.1057875827,
-0.0873529539,
-0.0400125235,
0.0031006683,
0.0562797971,
0.1349626482,
-0.0735430047,
0.3813496828,
-0.0567122065,
0.2670508027,
0.3404127359,
0.0368356071,
0.4256040156,
-0.3057474494,
0.2107228637,
-0.1969955564,
-0.2787999511,
-0.2165818959,
-0.1129826903,
-0.0013853322,
0.1753998548,
0.0360803828,
-0.0213092659,
-0.5113017559,
0.3724688888,
-0.4558105469,
-0.2587591112,
-0.1123311296,
0.156879127,
0.2574587762,
-0.0121057183,
-0.0232868884,
-0.1988328248,
-0.127585575,
-0.0233835038,
0.4107715487,
0.1832900494,
-0.0044983374,
-0.019681327,
0.122498095,
-0.1826508492,
0.4363010228,
-0.094781667,
-0.0798379108,
-0.0671833232,
-0.2150371969,
-0.0472394638,
-0.0787189677,
0.3115170002,
-0.2427036017,
-0.0558024719,
0.133797273,
-0.2286049724,
-0.2351225466,
-0.0864014179,
-0.3197954595,
0.374931097,
0.0102764172,
0.4163195193,
-0.3077200651,
-0.1087520719,
0.3453255594,
0.2423226684,
-0.2778298855,
-0.0167965535,
-0.2817106545,
-0.2349450141,
-0.3236150444,
-0.0723821521,
-0.2178931683,
0.0543368757,
0.0967915133,
0.0851211548,
-0.2429978102,
-0.1264826208,
0.0854075849,
0.1487879455,
0.4226871729,
-0.0466870815,
0.1289311796,
-0.1153804734,
-0.0153953843,
0.4706533849,
0.6993477941,
-0.034527123,
-0.2483417541,
-0.1695279777,
-0.2040860504,
0.1489334404,
-0.0309973639,
-0.0527440868,
-0.0327915102,
-0.2421410978,
0.0456748307,
-0.3597460389,
-0.032224521,
0.3991335034,
-0.0214300305,
-0.3719442785,
-0.546931982,
0.1717901826,
0.2305578738,
0.2078258544,
0.1522648185,
0.1079642996,
-0.0747362152,
0.3310608268,
-0.0622482896,
0.6147702932,
-0.0110911131,
0.1194975749,
0.1681995392,
0.3522693813,
0.3667654693,
0.0326864123,
0.0511016883,
-0.3404096663,
-0.3668009341,
-0.0732009262,
-0.0282757599,
0.0353875794,
0.050827384,
-0.3241019845,
0.4172644317,
0.0273285583,
-0.156303674,
0.0321112424,
0.011785673,
0.0485408828,
0.0713490695,
-0.1210660636,
0.2848499715,
-0.0523015,
0.4155675769,
-0.185398981,
-0.1976705343,
-0.1325393468,
-0.2282192409,
-0.1504362077,
0.0995565206,
-0.2929387391,
0.4002481401,
-0.2528899908,
-0.2795874476,
-0.1545815319,
0.1452373564,
0.1907763332,
0.226700455,
-0.1292104423,
-0.1500582397,
-0.0629050434,
-0.2359275818,
-0.2196172029,
0.3299049437,
0.4231730103,
-0.0636682361,
-0.2405279577,
0.2072273195,
0.0540551543,
-0.1851742417,
-0.0987095982,
-0.0563774928,
-0.1060931459,
-0.1680769473,
-0.320479393,
-0.0095966849,
-0.1977284402,
-0.1518376321,
0.2307282239,
0.283336401,
-0.0822912827,
0.2915117741,
0.006048277,
-0.1923029274,
-0.0220729895,
0.37294361,
0.1125265881,
-0.0683313087,
0.4549845159,
0.2349829525,
0.0584839135,
-0.3558474481,
-0.1306031346,
-0.1845616996,
-0.1647408903,
0.104143329,
0.0553026199,
0.4121226072,
0.1949128509,
0.0917059779,
0.1638638824,
0.0375251248,
0.1321133971,
-0.4533861876,
-0.3618393838,
0.224645853,
0.2120933533,
0.1983866245,
0.0478589423,
-0.0244105458,
0.1184265241,
-0.081452325,
-0.4494684935,
0.1356809437,
-0.0780094862,
0.0798078254,
0.3516398668,
-0.0111703202,
0.2721950114,
0.0337677635,
0.3103686869,
-0.1210273802,
-0.1488383263,
-0.3727140427,
-0.0079634655,
0.0775474384,
-0.0519292578,
-0.0414873995,
0.0081135286,
-0.2391943783,
-0.1751482189,
-0.0991668403,
0.119782038,
0.044731155,
-0.1665398329,
0.3018162549,
0.0183832105,
-0.0575061738,
-0.004396392,
0.1854584962,
0.0334823765,
0.2001954764,
-0.0748668164,
0.1713746041,
-0.0244755652,
-0.1218680739,
-0.2296926081,
0.0071227797,
-0.1518582106,
0.1067771912,
0.266677171,
-0.3618050218,
0.1152487248,
0.0210599899,
0.3587908149,
0.3250705004,
-0.082861416,
0.3929643929,
0.1370772123,
0.340885371,
-0.4722205102,
0.122357294,
0.1481784284,
0.0558999479,
0.1821888238,
0.1468412131,
-0.1830793619,
0.0997865573,
0.045083791,
0.2157387584,
0.1715332717,
-0.3371421993,
0.2557992041,
0.3380438089,
-0.0767997205,
0.0078497604,
-0.1753465682,
0.2158824056,
0.0874352008,
0.3791131675,
-0.0824779272,
0.297277838,
-0.157412082,
-0.114864558,
-0.1749704033,
-0.311449796,
0.1056785956,
0.1041306853,
0.1461537927,
0.1540486366,
0.1284847856,
0.2258312106,
-0.1839096993,
0.0644116551,
-0.4179415405,
0.0340415686,
-0.0444500968,
0.0219814293,
0.1057899147,
-0.267216444,
-0.2107652128,
-0.0293711182,
0.0515061319,
0.0732509941,
-0.0897439271,
0.1980723441,
-0.0484588519,
-0.2443442047,
-0.0115583427,
0.1147801653,
0.0702762306,
-0.1461908519,
0.0307427309,
0.2629747987,
0.0833649933,
-0.0262706429,
0.445938915,
0.405182153,
0.3364309072,
-0.0579266176,
0.1097148359,
-0.2475221604,
-0.3018554449,
-0.0485132895,
0.0438181199,
0.0201542284,
-0.0929173008,
0.2635164261,
0.3335751593,
-0.2071420997,
0.1843634546,
0.038728565,
0.0105331382,
-0.2774173617,
0.2015493959,
0.0840021223,
-0.202644527,
-0.1399545074,
-0.2310890704,
-0.5278924108,
-0.1591652781,
0.2029007524,
0.2115348876,
0.0643064082,
-0.008563784,
0.1564971805,
-0.0073411674,
0.2578365803,
0.4038031697,
0.2096470743,
-0.1941144913,
-0.1961560398,
-0.6830439568,
0.1003519744,
-0.12937738,
0.0819850937,
-0.0785661265,
0.1224304363,
0.0541741475,
0.1978901178,
0.0127575798,
-0.0523128733,
0.1321851313,
0.1223761141,
-0.4692305624,
-0.1971295327,
0.2637999356,
0.0186392255,
0.1033410877,
-0.284321785,
-0.2115209848,
-0.2326810807,
0.2163094282,
-0.3273428679,
0.0340814032,
-0.043120753,
0.1962488443,
0.4937269986,
0.0936584249,
0.4029160142,
-0.1387631446,
-0.1222592145,
-0.1397189796,
-0.3151373267,
-0.0657229424,
0.3774029016,
0.2602041066,
0.3093219995,
-0.138450712,
-0.3826034665,
-0.2461819649,
0.1596464366,
-0.0628742278,
-0.0170560423,
-0.071623005,
0.0952319577,
0.1752823144,
-0.1156827435,
0.0404718518,
0.1748990566,
-0.2070293874,
0.157378152,
-0.1588986218,
-0.1461519301,
0.4167740345,
-0.172264725,
0.0047660451,
-0.176346302,
0.2373104244,
-0.2233640105,
-0.1041208953,
-0.1540016383,
0.4162987471,
0.369821012,
-0.0008732529,
-0.3649378419,
0.3704033792,
-0.0840505511,
0.0288780779,
-0.0563049279,
0.5584822297,
-0.0086508766,
-0.2040806711,
0.12484622,
-0.1761366427
] |
https://github.com/huggingface/datasets/issues/3204 | FileNotFoundError for TupleIE dataste | @mariosasko
Thanks, it is working now. I actually did that before but I didn't restart the kernel. I restarted it and it works now. My bad!!!
Many thanks and great job!
-arda | Hi,
`dataset = datasets.load_dataset('tuple_ie', 'all')`
returns a FileNotFound error. Is the data not available?
Many thanks.
| 32 | FileNotFoundError for TupleIE dataste
Hi,
`dataset = datasets.load_dataset('tuple_ie', 'all')`
returns a FileNotFound error. Is the data not available?
Many thanks.
@mariosasko
Thanks, it is working now. I actually did that before but I didn't restart the kernel. I restarted it and it works now. My bad!!!
Many thanks and great job!
-arda | [
-0.1555857956,
-0.1022432595,
-0.0895033628,
0.444070518,
0.3425714374,
0.0214987397,
0.3312878907,
0.2618189752,
0.3505803049,
0.1980802119,
0.0239385068,
0.1315807849,
-0.1134963557,
0.2030687034,
-0.1134344563,
-0.036822103,
-0.1141064316,
0.2126444131,
-0.0038393643,
-0.0412513502,
-0.1822838932,
0.201069206,
-0.4084219933,
-0.0326407701,
-0.3142308891,
0.3056253493,
-0.1567405164,
0.3229046762,
-0.2303001732,
-0.0565414615,
0.4023868442,
-0.0385131724,
0.0575139597,
0.1912996471,
-0.0001010782,
0.1850824058,
0.351343751,
-0.2275901139,
-0.187630102,
-0.2483349591,
-0.5233646631,
-0.0166130029,
-0.0400864705,
-0.3495931327,
-0.3842512667,
0.1457786262,
0.0279484186,
-0.1965604424,
0.3357736766,
0.2159551978,
0.2711255252,
0.0848695412,
0.2601053417,
-0.2019709945,
0.3969862759,
0.2788962424,
-0.0766945481,
-0.1469244808,
0.2820500731,
-0.2643639147,
0.2917737365,
0.2338209748,
0.0000158322,
0.0159155764,
-0.2946624458,
0.1134914011,
-0.0116306059,
-0.2059930265,
0.1083309352,
0.2397342175,
0.6398410201,
-0.0075674928,
-0.216928497,
0.2511545122,
-0.1126848683,
-0.3362556994,
0.1879562289,
-0.0366001874,
-0.0484022461,
0.1838768274,
0.2606607378,
-0.0676719919,
-0.2701375186,
0.4147526324,
-0.1908258498,
0.2408731729,
-0.1331820041,
-0.0498240516,
0.0278938077,
-0.2168532312,
-0.2786677778,
0.2261052728,
-0.1212229133,
0.0806938484,
-0.1122209579,
-0.2103828043,
0.0043353927,
-0.0168772023,
0.128147468,
0.1091859713,
0.0901348069,
0.2075967789,
-0.1647048444,
0.1776720583,
0.2434367687,
-0.054606434,
0.0417264625,
0.0774975121,
0.3534739912,
0.0778966844,
-0.1372028142,
-0.1035808623,
-0.0201606676,
-0.197470814,
-0.1450388581,
0.1483154148,
0.6462144852,
-0.3472892642,
-0.3221111596,
-0.2097122669,
0.021515321,
-0.0876320824,
0.1184787974,
0.3852746487,
-0.1264351308,
0.0080977743,
0.0784477741,
0.2222267538,
-0.1940238029,
-0.3543455899,
-0.2578373849,
0.1129919067,
-0.191788733,
-0.0473624729,
0.3513785899,
0.0728214681,
0.3801013529,
-0.1551337838,
0.1337358952,
0.058508113,
0.230938375,
-0.2075114846,
0.1405502409,
0.2548704147,
0.0403926037,
-0.0982133299,
0.2761998773,
-0.4181116223,
0.1165139452,
0.2705118656,
-0.4841719568,
-0.3089700043,
-0.1903050244,
0.274074614,
-0.081977278,
-0.0855904967,
-0.0669309124,
-0.0062872805,
0.0610756874,
-0.364846468,
-0.1633924395,
-0.0361129008,
0.1763244718,
-0.331466496,
0.2368628979,
0.5967097282,
-0.5580585599,
0.1087643579,
-0.1054830998,
-0.3206526935,
0.3020130396,
0.2507619262,
-0.1043364406,
-0.0054743309,
-0.3114130497,
0.1931969821,
0.486135751,
-0.1085037515,
-0.3766992688,
0.1116409749,
0.1255707145,
-0.0416598544,
0.0346209928,
0.0643027797,
-0.0274977181,
0.0457903035,
0.3140432239,
-0.0655310526,
-0.0352647565,
0.0327445753,
-0.2794340551,
0.1056588292,
0.0928149149,
0.3560787439,
0.1762644798,
0.1162704229,
0.1522970647,
0.0178246498,
0.379904598,
-0.1750833839,
0.1670870036,
0.2092120796,
0.4645072818,
0.3158399463,
-0.022713108,
0.1562073082,
-0.2341096401,
0.1402873099,
0.0016282311,
-0.0016812958,
-0.2314148545,
-0.1004717201,
-0.0105927456,
-0.1322555393,
-0.2940576971,
-0.3018002212,
0.233948648,
0.1258556843,
0.0314315073,
-0.0527810082,
-0.3654085696,
-0.066546768,
0.027632175,
-0.0249009673,
-0.2347267568,
0.4196672142,
0.0043983855,
-0.300031662,
-0.1051859111,
-0.0120370481,
-0.0035744708,
-0.260904938,
-0.0696658939,
0.2125305682,
0.4497965872,
-0.2679313123,
0.1171891913,
-0.1597213,
0.2499149889,
-0.2228111625,
0.1169929579,
0.2342110127,
0.1023970842,
-0.1034696996,
-0.1647569537,
0.4544535875,
-0.1616307646,
-0.1740442663,
0.141116485,
0.0026812726,
0.2857818604,
-0.1418537199,
-0.2254435718,
-0.1879283488,
0.2402951419,
0.0315814987,
-0.0228282958,
-0.168236956,
-0.4714054465,
-0.0636016428,
0.3899437487,
0.2462798953,
0.1224695891,
-0.0776299387,
-0.1570626944,
0.1403824091,
-0.0433857478,
-0.0277140997,
0.6090918779,
0.1932737231,
-0.0692721009,
-0.0770125538,
0.2295642197,
-0.1137905046,
0.0005057434,
-0.1897437871,
0.1589144617,
0.1919805408,
-0.1446618587,
-0.1308231503,
-0.3667843342,
0.0038948173,
-0.09589798,
0.1913161129,
-0.2329117954,
-0.1253340989,
-0.24979873,
-0.3942238092,
0.418159306,
-0.2769230306,
-0.0214174856,
-0.1405730247,
0.1398299932,
0.0931815356,
-0.1133082956,
0.0549861118,
0.0089871688,
0.0813595653,
0.182651028,
-0.2563976347,
-0.2027771771,
-0.2740491927,
-0.0754791945,
0.2264488041,
0.2298569083,
-0.2317924798,
0.2090878487,
-0.1007859632,
-0.0561282337,
-0.1495263278,
-0.3461076617,
-0.0374969728,
-0.0816662908,
0.1803697199,
-0.0410261117,
0.3408690393,
-0.1705492884,
0.1142180935,
0.3435972333,
-0.0732179657,
-0.2421215624,
0.2988081276,
0.141238451,
-0.0858991668,
-0.2227186263,
-0.532450676,
-0.4597737789,
-0.2680585682,
0.2389391959,
0.3374066651,
0.0273889583,
0.0951581746,
0.1758740246,
-0.0653206557,
0.2038967907,
-0.1053292304,
-0.3393778503,
-0.3179097176,
0.3509101868,
-0.4749841392,
-0.5626801848,
0.3396552801,
0.049076397,
0.2503974438,
0.1253386736,
-0.383084029,
-0.2107986808,
0.1779927909,
0.0691483393,
-0.0760220438,
-0.1578885913,
0.4259515703,
-0.074248001,
-0.1714794785,
-0.101576142,
0.0584200807,
0.1013302729,
0.096194759,
0.2866736054,
-0.2105662972,
0.2831874192,
-0.0120518394,
0.211329788,
0.0509465337,
0.2343188822,
0.5367359519,
-0.2305354625,
0.2599921525,
-0.1251459718,
-0.1499681771,
-0.095383212,
0.0096087568,
-0.1526128799,
0.1375448406,
-0.0570214093,
-0.1577843875,
-0.5140989423,
0.4181016684,
-0.410431385,
-0.1912099123,
0.0861210674,
0.1490348279,
0.0240881667,
0.1301483959,
0.0103394724,
-0.0312902667,
-0.1744377166,
-0.0181744751,
0.4581889212,
0.2290863991,
-0.1303617805,
-0.0219143908,
0.0698027611,
-0.1117928922,
0.3450155854,
-0.2263587415,
0.0035919708,
-0.2594989538,
-0.3229816854,
-0.0288669355,
-0.0877638012,
0.4768618345,
-0.098421216,
-0.135925293,
0.1873205602,
-0.1643672884,
0.0068784575,
-0.0825736299,
-0.3793562055,
0.3174942136,
-0.0285432525,
0.5785768628,
-0.2560255527,
-0.0247757062,
0.2202640176,
-0.0045328373,
-0.3128533959,
-0.0009285453,
-0.2921340764,
-0.2628817856,
-0.1529666781,
-0.1120476946,
-0.2186580747,
0.086046271,
-0.0016992344,
-0.0588204227,
-0.2549827695,
-0.1866320819,
0.0117936078,
0.1871472746,
0.4525059462,
-0.0613985993,
0.0677748993,
-0.211455524,
0.1392205656,
0.3170539439,
0.5345528126,
0.1096429676,
-0.0505555607,
0.0178834032,
-0.3811598122,
0.1879014075,
0.0863886997,
-0.1617000848,
0.0189468414,
-0.3027690649,
0.0224533547,
-0.2768137455,
0.0232913923,
0.4456108809,
-0.0707661286,
-0.3366517723,
-0.319460988,
0.1110308468,
-0.0185349267,
0.1642380357,
0.2872058451,
0.0955982581,
-0.139757067,
0.2267881632,
-0.0427949801,
0.7071273923,
-0.0338728316,
0.1028420776,
0.1354862452,
0.5144048333,
0.3976194859,
-0.0362352915,
0.2672459781,
-0.3594026864,
-0.5540909171,
-0.0191218499,
-0.0480999015,
0.144342348,
0.2226686329,
-0.3257125914,
0.2211308777,
0.1620958447,
-0.1360056698,
-0.1246946827,
-0.2031369954,
0.1818074435,
0.1698859036,
-0.1828574985,
0.2202169299,
-0.0425022878,
0.3960753977,
-0.2840640545,
-0.2850647271,
-0.1349541098,
-0.1950084269,
-0.0152233457,
0.1759292632,
-0.3547373712,
0.348659724,
-0.1890251935,
-0.1534789056,
-0.3392203152,
0.1812645495,
0.1139090359,
0.1588344127,
-0.1609989107,
0.0087646525,
-0.0467949584,
-0.2649481595,
-0.3662420213,
0.2557013333,
0.292162925,
-0.1487399787,
-0.2811933458,
0.2504912317,
-0.0359220915,
-0.3750104904,
-0.0441552252,
-0.0942626595,
-0.1237101331,
-0.1573207974,
-0.3351805806,
0.1522263885,
-0.2359657586,
-0.1252883375,
0.2251574397,
0.3817127943,
-0.1979520917,
0.3086025715,
0.1684452742,
-0.2595310211,
-0.0175739303,
0.3219842911,
-0.0436044298,
0.0050413525,
0.4118268788,
0.1791436374,
0.0672986582,
-0.3833728433,
0.0186983682,
-0.1344697177,
-0.1684659272,
0.0449321568,
0.144819051,
0.4758724868,
0.2165049613,
0.0604417361,
0.2025266141,
0.0432744399,
0.0896176398,
-0.46898669,
-0.3874789774,
0.27883178,
0.1530231237,
0.2989536822,
-0.1206906736,
-0.1672008485,
0.2660382688,
-0.0908660144,
-0.4309504628,
0.1691850126,
-0.2212567031,
0.0699405447,
0.3528755605,
0.0154690556,
0.4699810147,
0.0650007203,
0.294655025,
-0.0395500287,
-0.0362777039,
-0.3362160027,
0.2268989533,
0.1001688614,
0.1229920387,
0.0053570075,
-0.1245715916,
-0.3442410231,
-0.1136439666,
0.073483713,
0.0704998821,
0.010004757,
-0.1101808697,
0.2272066623,
0.1061840951,
0.1437730938,
0.0053455746,
0.2488854676,
0.1708090603,
0.3656129241,
-0.1185419634,
0.0352073386,
0.1327667236,
-0.1078398451,
-0.0984060541,
0.0120912781,
-0.138887912,
0.0844676122,
0.2503581643,
-0.46399194,
0.0338070542,
-0.2032784224,
0.2255476266,
0.448371917,
-0.0920982435,
0.4307156503,
0.1552017629,
0.3445057869,
-0.3417819142,
0.2162241638,
0.1148410439,
0.0942918882,
0.1189118773,
0.0707424134,
-0.1397189349,
0.1774479747,
0.1895843893,
0.2683234513,
0.0324582718,
-0.318566829,
0.0511709675,
0.2414031476,
-0.2420742214,
0.0719230101,
-0.1626639366,
0.26878196,
0.0617918633,
0.3264383674,
-0.1433188319,
0.3364529312,
-0.2503893375,
-0.0305526089,
-0.21647048,
-0.4367506206,
-0.0052531045,
0.186607644,
-0.1245786771,
0.114086628,
0.0400267616,
0.0581674203,
-0.2678681016,
0.0121041061,
-0.3617019653,
-0.0752074942,
-0.2261906862,
0.0207379181,
0.0993624032,
-0.4111274779,
-0.2287171781,
-0.0061703054,
0.0531955212,
0.2035400867,
0.0150033161,
0.1307951212,
0.0160209797,
-0.1194656566,
0.1032652184,
0.1776485294,
-0.0299185589,
-0.2073542327,
0.0831797719,
0.0936312601,
0.109366864,
0.0668204129,
0.4736921489,
0.2457460165,
0.428684175,
-0.1476866603,
0.0623685941,
-0.1197199449,
-0.2860988975,
-0.1822966337,
0.2451531589,
0.2718716264,
-0.1969598532,
0.268103987,
0.2982271016,
-0.2012426555,
0.4564189911,
0.1412996203,
0.0371596254,
-0.1598146558,
-0.0179885235,
0.0784968883,
-0.1609376073,
-0.125557363,
-0.3518003523,
-0.5513370037,
-0.2304587662,
0.1607013047,
0.0337953232,
0.1380693465,
0.0905300528,
0.1455886662,
-0.0167049523,
0.2318319082,
0.2456962764,
0.1587272286,
-0.2957935929,
-0.2209111154,
-0.59373492,
0.210859254,
-0.0354152285,
0.1299568266,
-0.296212554,
0.3181636631,
0.221488595,
0.0944296718,
0.0207986217,
-0.200267911,
0.2713704109,
0.1394823492,
-0.4673194587,
-0.1162334532,
0.4245258868,
0.0857564732,
0.021856321,
-0.2661566734,
-0.0049992246,
-0.2296257168,
0.2073051929,
-0.2899118364,
0.03258707,
-0.0731931701,
0.4024578035,
0.3975287974,
0.0577082261,
0.3549973965,
-0.1004910991,
-0.0205480643,
-0.0594364777,
-0.4358559549,
0.05832351,
0.2351087481,
0.4124734104,
0.1800480336,
0.0600081384,
-0.2587557137,
-0.2307470739,
0.0893296301,
-0.1784447134,
0.0200952347,
0.0344696902,
0.0825237259,
0.1479314715,
-0.1629208475,
0.0596210472,
0.1098617315,
-0.1739907414,
-0.1458722949,
-0.1663214266,
-0.0996090621,
0.3017325401,
-0.1955676824,
0.0121992184,
-0.2331452668,
0.1544100642,
-0.1761371642,
0.0141353514,
-0.1515059471,
0.3333557248,
0.3438116312,
-0.0961510837,
-0.2167625874,
0.2900076509,
0.0471863337,
0.01684184,
-0.1397262514,
0.5024123788,
0.1505506337,
-0.1371571273,
0.0367659889,
-0.1456850618
] |
https://github.com/huggingface/datasets/issues/3191 | Dataset viewer issue for '*compguesswhat*' | ```python
>>> import datasets
>>> dataset = datasets.load_dataset('compguesswhat', name='compguesswhat-original',split='train', streaming=True)
>>> next(iter(dataset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 497, in __iter__
for key, example in self._iter():
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 494, in _iter
yield from ex_iterable
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 87, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/compguesswhat/4d08b9e0a8d1cf036c9626c93be4a759fdd9fcce050ea503ea14b075e830c799/compguesswhat.py", line 251, in _generate_examples
with gzip.open(filepath) as in_file:
File "/home/slesage/.pyenv/versions/3.9.6/lib/python3.9/gzip.py", line 58, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
File "/home/slesage/.pyenv/versions/3.9.6/lib/python3.9/gzip.py", line 173, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'zip://compguesswhat-original/0.2.0/compguesswhat.train.jsonl.gz::https://www.dropbox.com/s/l0nc13udml6vs0w/compguesswhat-original.zip?dl=1'
```
It's an issue with the streaming mode. Note that normal mode is used by the dataset viewer when streaming is failing, but only for the smallest datasets. This dataset is above the limit, hence the error.
Same case as https://github.com/huggingface/datasets/issues/3186#issuecomment-1096549774. | ## Dataset viewer issue for '*compguesswhat*'
**Link:** https://huggingface.co/datasets/compguesswhat
File not found
Am I the one who added this dataset ? No
| 137 | Dataset viewer issue for '*compguesswhat*'
## Dataset viewer issue for '*compguesswhat*'
**Link:** https://huggingface.co/datasets/compguesswhat
File not found
Am I the one who added this dataset ? No
```python
>>> import datasets
>>> dataset = datasets.load_dataset('compguesswhat', name='compguesswhat-original',split='train', streaming=True)
>>> next(iter(dataset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 497, in __iter__
for key, example in self._iter():
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 494, in _iter
yield from ex_iterable
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 87, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/compguesswhat/4d08b9e0a8d1cf036c9626c93be4a759fdd9fcce050ea503ea14b075e830c799/compguesswhat.py", line 251, in _generate_examples
with gzip.open(filepath) as in_file:
File "/home/slesage/.pyenv/versions/3.9.6/lib/python3.9/gzip.py", line 58, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
File "/home/slesage/.pyenv/versions/3.9.6/lib/python3.9/gzip.py", line 173, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'zip://compguesswhat-original/0.2.0/compguesswhat.train.jsonl.gz::https://www.dropbox.com/s/l0nc13udml6vs0w/compguesswhat-original.zip?dl=1'
```
It's an issue with the streaming mode. Note that normal mode is used by the dataset viewer when streaming is failing, but only for the smallest datasets. This dataset is above the limit, hence the error.
Same case as https://github.com/huggingface/datasets/issues/3186#issuecomment-1096549774. | [
-0.1937608123,
-0.1040919349,
-0.0767582282,
0.3095780313,
0.132095933,
0.2199115604,
0.2739969492,
0.2762228549,
0.0248608999,
0.0397387445,
-0.0757460818,
0.2187298536,
-0.2102134526,
-0.1109090373,
0.4341827035,
0.1308069974,
-0.0155651476,
0.3229696453,
-0.2597893476,
0.0137499562,
-0.2126455903,
0.226701811,
-0.0435122959,
0.1207173988,
-0.1061361432,
-0.0522477701,
-0.0595362596,
0.1698614806,
-0.1251952201,
-0.5590722561,
0.3698121607,
0.1270775497,
0.0577185377,
0.6429821849,
-0.0001102165,
0.268263489,
0.2858352959,
-0.0142365042,
-0.4914422035,
-0.3431024849,
-0.2766236663,
-0.0937962458,
0.1141463444,
-0.2209629416,
-0.1114916652,
-0.2332352996,
0.1653808951,
-0.3127974868,
0.1118680313,
0.241833061,
0.2808537483,
0.3503982723,
0.0911985189,
-0.0872612819,
0.099113673,
0.1241513044,
-0.2120933533,
0.3204182982,
-0.0314147696,
0.210087955,
0.1037752032,
0.4592787325,
0.0878954083,
-0.1396836787,
0.3811454475,
-0.0213566739,
0.0398061574,
-0.3225103319,
0.0062144487,
0.1582006961,
0.4137199521,
-0.3502932489,
-0.3390452564,
-0.2633241713,
0.0340171568,
-0.2311647236,
0.2174570411,
0.2003351152,
-0.1374411285,
0.1950257421,
-0.0582583994,
-0.0936906636,
-0.1215767562,
0.1110836193,
-0.0050100153,
0.1953405291,
-0.2816454172,
0.072415255,
0.1775940359,
0.0771811977,
0.0538121015,
-0.0419778265,
-0.1184733734,
0.1620419472,
-0.1796767265,
-0.0153730875,
0.1568956673,
-0.0361524411,
0.0131815337,
-0.0018436244,
0.2246980071,
-0.0006325572,
0.0628566965,
0.0667901635,
0.1306380779,
0.097460933,
-0.0155178001,
0.0788391829,
0.3215083182,
0.4729243815,
0.151152879,
-0.0449707322,
-0.1932946444,
-0.3234509826,
-0.1224477664,
-0.1955907643,
0.3780483007,
0.0433979183,
-0.4252051115,
0.0410315506,
-0.0545002818,
-0.0766558424,
0.2801508605,
0.3417896032,
0.0305223856,
-0.031704694,
-0.1094402298,
0.0869697556,
-0.2019453645,
-0.1183371991,
-0.2529144585,
0.1570974439,
-0.0403189622,
-0.0196424946,
0.1617255658,
-0.3601539433,
0.188411355,
-0.1362225711,
-0.1355119497,
-0.1099578664,
-0.0870887935,
-0.0266374405,
-0.091358453,
0.2489762604,
-0.0626245439,
0.258697778,
0.0474240445,
-0.2518510818,
-0.1199801713,
0.1237817407,
-0.199840188,
-0.2998077869,
-0.1555818021,
0.2883939147,
-0.3234263659,
0.0078360038,
-0.0777741447,
0.0019903162,
-0.0886028185,
-0.21905756,
0.0248474497,
-0.0349216573,
-0.0500544682,
-0.2324442267,
0.3426055014,
0.6747617126,
-0.5611035228,
-0.2099609226,
-0.1615835726,
-0.250323683,
-0.0448988043,
0.1876786202,
-0.2382161766,
0.2756498158,
-0.5549890995,
-0.1657252908,
0.7169924974,
-0.1649722457,
-0.4608096778,
0.2555655837,
-0.2459587008,
0.391982913,
0.2884086072,
0.1305190772,
-0.2285570949,
-0.1781439334,
-0.1448209286,
-0.2231601179,
0.216945231,
-0.227310285,
-0.1572638452,
-0.1661774069,
0.1591212451,
0.0174411926,
0.1130852774,
0.0260944888,
0.1429887563,
-0.2189978659,
0.4341377914,
-0.1294027716,
-0.0036636314,
0.2357444018,
0.3466288447,
0.2011494935,
0.0394731313,
-0.1908669025,
-0.1972697675,
0.2192848176,
-0.103510879,
-0.0379302837,
-0.3599090278,
-0.0557560287,
-0.4004499614,
0.1042233929,
-0.5202271938,
-0.3486324251,
0.1886440814,
0.385433197,
0.039550636,
0.2176514566,
-0.1561838835,
0.3141292036,
0.0741357803,
0.1084525809,
-0.3582709432,
0.2230610698,
-0.1151302382,
0.0709874853,
-0.0379144102,
0.2869526744,
0.2087701261,
-0.3728660047,
-0.0106152007,
0.4204739034,
-0.0398602858,
0.2837878466,
0.1774058342,
-0.0767946094,
0.2986281812,
-0.4184737504,
0.0340406895,
0.0100861909,
0.2124748379,
-0.0273239184,
-0.0312476121,
0.1396774203,
-0.0339959972,
0.0376307517,
0.1875048429,
0.0264152475,
0.1827581376,
0.1257983893,
0.0052614636,
-0.0600484498,
0.1801849902,
0.0374849588,
0.3273135722,
0.0891930088,
-0.3153205812,
0.096281752,
0.3101296723,
-0.1137739867,
-0.0890126079,
0.1824174076,
-0.3638110459,
-0.0095580202,
-0.0570167862,
0.2486786693,
0.395950228,
0.1756990254,
0.1627071053,
0.0708409324,
0.0058771493,
-0.2238864005,
0.2814784348,
0.235796392,
0.0747070312,
0.1377074271,
-0.0942460224,
0.0195743926,
-0.3515127897,
-0.0505890325,
-0.0725447685,
0.1704348028,
-0.3615555167,
0.1028615609,
-0.2597812414,
-0.4785905182,
-0.2694751322,
-0.1492749304,
-0.1302107275,
-0.3930755556,
-0.0250996724,
0.1036641225,
0.0851384401,
0.1716239154,
-0.4130111933,
0.0663096085,
0.0703306273,
-0.0673342273,
-0.2325474769,
0.0243805982,
-0.2179122567,
0.0743159503,
0.2761664689,
-0.1215441227,
0.3873200417,
-0.2297628373,
0.0577282272,
-0.4755009711,
-0.4010702074,
0.0988761559,
-0.0976036415,
0.3421962261,
0.2905367017,
0.0480840281,
0.0434322767,
-0.2706979811,
0.2804010212,
-0.147479713,
-0.0463584624,
0.0197633617,
-0.0530999489,
-0.0922887921,
0.0291115195,
-0.2829543352,
-0.4492669702,
-0.3783257902,
0.2341388464,
0.1790875942,
0.1717178077,
0.4144371152,
-0.0823037997,
0.183520928,
0.1349901855,
0.0602149889,
-0.2649377584,
-0.4038634598,
0.5226951241,
-0.4190795422,
-0.4069340527,
0.1756999344,
-0.0832039416,
0.295894146,
-0.1006512046,
-0.648491919,
-0.1109270155,
-0.0142080719,
0.1245389804,
0.1696866453,
-0.0378022082,
0.1736169606,
0.0638483092,
-0.0609350353,
-0.1655505598,
-0.2655312419,
0.1014924645,
-0.1988423318,
0.2603458762,
0.0259901434,
0.3479195237,
0.0376831107,
0.74382478,
0.3571099639,
0.0343609378,
0.3559171855,
-0.3051167428,
0.5660552979,
-0.0557187796,
-0.5069389939,
0.0702213272,
-0.0432871133,
0.1368883103,
0.1673215777,
0.0052459058,
0.0011884152,
-0.243652299,
-0.0038500673,
-0.402692467,
-0.2508862317,
-0.1032693088,
-0.1343445331,
0.0950666964,
0.0331859663,
0.0129678771,
-0.3099310994,
-0.1928960383,
0.0926623717,
0.5390391946,
0.1865816414,
0.1703383178,
-0.2257958502,
0.0481835417,
-0.2953954339,
0.2008385807,
-0.0798215568,
0.2490885407,
-0.0491084456,
-0.2011958808,
0.1155231148,
-0.0171127636,
0.6999451518,
0.0058376151,
-0.0362687223,
0.0237779096,
0.0057527889,
-0.2709567249,
-0.1366129816,
0.0231185593,
0.2394090146,
0.2166509628,
0.2340973765,
-0.0885337591,
-0.1056421101,
0.5898478031,
-0.0078937029,
-0.221757248,
-0.2278293818,
-0.2536866069,
-0.3528833985,
0.0251157358,
-0.3452091515,
-0.1394479871,
0.143788442,
0.0508233458,
-0.1334942281,
-0.0520105064,
-0.1664544046,
0.2483374327,
0.1201542541,
0.2412026376,
0.176072523,
0.2510842681,
0.5565966368,
0.5501717329,
0.1754993498,
0.6822932363,
0.0777063891,
-0.4106024504,
0.1071565375,
-0.0083341636,
0.2189367563,
0.3009920716,
-0.246913895,
-0.1076645255,
0.1933829337,
0.2344282866,
-0.3193755448,
0.1000543311,
0.5598334074,
-0.03361414,
-0.6603569984,
-0.5273031592,
0.3035099506,
-0.0410903916,
-0.0461475812,
0.2999821007,
0.2299189717,
-0.2348642051,
-0.1701979786,
-0.3043794334,
0.873274684,
0.1015518308,
0.025431456,
0.4524399936,
-0.0610059239,
0.5562372804,
-0.2566668987,
0.2311661392,
-0.2116344273,
-0.3983312547,
-0.1831610501,
-0.2448872924,
0.2536204755,
-0.0713834912,
-0.1371213645,
0.2579718828,
0.1746158004,
0.0819577128,
0.0232982505,
0.3161263764,
-0.1083025187,
0.0538195446,
0.0268480685,
0.1889682412,
0.0024728761,
0.4006063044,
-0.0590357296,
-0.3070914745,
-0.1442981809,
-0.2514116466,
-0.1780662686,
0.1070429534,
-0.5256943107,
0.2242197692,
-0.0126349386,
-0.5764953494,
0.1967590898,
0.2017631233,
0.0030746979,
-0.0648357794,
-0.0620267726,
0.3662309349,
-0.1081043109,
0.0090779373,
-0.0321561061,
0.1462357044,
0.2258368134,
-0.036138095,
-0.1588125676,
0.2065296173,
-0.0277909581,
-0.2155456692,
-0.0590351373,
-0.1249106526,
0.0317566581,
-0.1473721415,
-0.1991851181,
-0.1277295947,
-0.0055240472,
-0.2546458244,
0.1179719716,
0.0537581705,
-0.1680527776,
-0.159444049,
-0.2009498328,
-0.2721098065,
-0.2468273342,
0.3474501669,
-0.1259016693,
-0.0383204706,
0.598442018,
-0.0465797372,
-0.3772171736,
-0.1828505844,
-0.086635381,
-0.0237231832,
-0.5005760789,
-0.1271301657,
0.0514360964,
0.29805848,
-0.0275816396,
0.0271383245,
0.2948905826,
-0.0636659116,
-0.137955904,
-0.3929700553,
-0.1483161002,
-0.0116013139,
-0.0365735367,
0.3832326233,
0.0084166573,
0.0270023793,
0.2465353012,
0.0499977693,
-0.3431246579,
-0.0826942921,
0.0089963609,
-0.1957782805,
0.2922365963,
0.0950123668,
0.2658885419,
-0.0289592315,
0.2842497528,
-0.0664830953,
-0.2047308683,
-0.2012579441,
-0.0711512938,
0.1264543533,
-0.1420308501,
-0.3581235409,
-0.0546145849,
0.0802431181,
0.0175109245,
0.0281191748,
0.1239285842,
-0.0481091402,
0.0648524389,
0.0862287432,
-0.1051083803,
-0.2298888415,
0.0463644043,
0.1606085896,
0.0421747603,
0.4356066883,
0.183904618,
0.1505155414,
-0.1212860867,
-0.0589106008,
-0.1323464066,
0.1567531675,
0.0284052249,
-0.0215786118,
0.3630704582,
-0.5359848738,
0.0728178695,
0.1749819964,
0.3355228603,
0.4238293171,
-0.309281081,
0.0663175955,
0.268996805,
0.170546338,
-0.4139076173,
0.0349314995,
0.2855162621,
0.0995756611,
0.1512890458,
0.2413119227,
0.1489661336,
0.137976259,
0.1836132556,
0.0436060913,
0.5151613355,
-0.0398176946,
0.4796531498,
0.3816531897,
-0.0671489611,
0.1201189607,
0.151688382,
0.3157622218,
0.039714992,
0.3655628264,
-0.4452681243,
-0.0320023261,
-0.0816604942,
0.0456672572,
0.1232893765,
-0.4050351977,
-0.0481612943,
0.0699101165,
-0.3359012306,
0.0393849202,
0.0325094759,
0.5006000996,
-0.2347575277,
0.1414056718,
-0.2521771491,
0.2500779331,
-0.1276750565,
0.0157630425,
0.0350387059,
-0.3584742844,
-0.1846621186,
-0.1215429902,
0.1373240352,
-0.3479146063,
-0.1368593723,
0.0927130952,
-0.2692551315,
-0.2214106768,
0.0434981249,
-0.0251746401,
0.207018882,
-0.2023209333,
0.2435447127,
0.2533647716,
0.1235358343,
0.0455275849,
0.3525643349,
0.4319117963,
0.2779948115,
0.1501791328,
0.0574153997,
0.0415108539,
-0.1748223305,
-0.0828410983,
0.0911183134,
-0.0535279475,
-0.0466842093,
0.2958519459,
0.2232800871,
-0.1689036489,
0.1544053555,
0.125557214,
0.3417235315,
-0.4547681808,
0.282092303,
-0.6308663487,
-0.0694877356,
-0.211572215,
-0.137979582,
-0.4139390886,
0.175284043,
0.4345330894,
-0.0604930967,
0.2071779221,
-0.2056286037,
0.0917954817,
0.1201378927,
0.359587431,
0.2865065634,
0.1032303199,
-0.1703876406,
-0.2334481627,
-0.7816024423,
0.1182851642,
0.0997247174,
-0.2227145284,
-0.0012506009,
0.1050679162,
-0.0701064244,
-0.1104613766,
0.4217793941,
-0.0095518902,
0.0234146751,
0.23145473,
-0.0079774475,
-0.1289936602,
-0.0646417364,
0.1415682584,
-0.0147581752,
-0.2108950466,
0.1524242908,
-0.1453024298,
0.0711599216,
-0.0310760029,
0.2278927714,
-0.1485822946,
-0.2181667835,
0.4569246769,
-0.0243342388,
0.4369321167,
-0.0602703765,
-0.0821611658,
-0.2767466903,
-0.3207730651,
-0.1324197203,
0.4343589842,
0.1242222786,
0.3206473589,
-0.054228507,
-0.3876523077,
-0.3165501058,
0.1421037167,
0.160372436,
-0.046687264,
-0.2427296042,
0.12233641,
-0.2845738232,
0.1563545316,
0.510823071,
0.1332109272,
-0.084708862,
0.1037497893,
-0.1587543488,
-0.3912654519,
0.4206018448,
-0.44490394,
-0.0527703576,
0.0430269949,
0.2272514701,
0.0550281107,
-0.0544679016,
-0.4106194377,
0.1221305281,
0.6290266514,
-0.0761260092,
0.1402580291,
0.2915110588,
-0.2876819372,
0.0267910063,
0.0627194792,
0.257763654,
0.1367636919,
-0.2088250369,
0.1725694388,
-0.1714644134
] |
https://github.com/huggingface/datasets/issues/3190 | combination of shuffle and filter results in a bug | Hi ! There was a regression in `datasets` 1.12 that introduced this bug. It has been fixed in #3019 in 1.13
Can you try to update `datasets` and try again ? | ## Describe the bug
Hi,
I would like to shuffle a dataset, then filter it based on each existing label. however, the combination of `filter`, `shuffle` seems to results in a bug. In the minimal example below, as you see in the filtered results, the filtered labels are not unique, meaning filter has not worked. Any suggestions as a temporary fix is appreciated @lhoestq.
Thanks.
Best regards
Rabeeh
## Steps to reproduce the bug
```python
import numpy as np
import datasets
datasets = datasets.load_dataset('super_glue', 'rte', script_version="master")
shuffled_data = datasets["train"].shuffle(seed=42)
for label in range(2):
print("label ", label)
data = shuffled_data.filter(lambda example: int(example['label']) == label)
print("length ", len(data), np.unique(data['label']))
```
## Expected results
Filtering per label, should only return the data with that specific label.
## Actual results
As you can see, filtered data per label, has still two labels of [0, 1]
```
label 0
length 1249 [0 1]
label 1
length 1241 [0 1]
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.12.1
- Platform: linux
- Python version: 3.7.11
- PyArrow version: 5.0.0
| 31 | combination of shuffle and filter results in a bug
## Describe the bug
Hi,
I would like to shuffle a dataset, then filter it based on each existing label. however, the combination of `filter`, `shuffle` seems to results in a bug. In the minimal example below, as you see in the filtered results, the filtered labels are not unique, meaning filter has not worked. Any suggestions as a temporary fix is appreciated @lhoestq.
Thanks.
Best regards
Rabeeh
## Steps to reproduce the bug
```python
import numpy as np
import datasets
datasets = datasets.load_dataset('super_glue', 'rte', script_version="master")
shuffled_data = datasets["train"].shuffle(seed=42)
for label in range(2):
print("label ", label)
data = shuffled_data.filter(lambda example: int(example['label']) == label)
print("length ", len(data), np.unique(data['label']))
```
## Expected results
Filtering per label, should only return the data with that specific label.
## Actual results
As you can see, filtered data per label, has still two labels of [0, 1]
```
label 0
length 1249 [0 1]
label 1
length 1241 [0 1]
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.12.1
- Platform: linux
- Python version: 3.7.11
- PyArrow version: 5.0.0
Hi ! There was a regression in `datasets` 1.12 that introduced this bug. It has been fixed in #3019 in 1.13
Can you try to update `datasets` and try again ? | [
0.2327428907,
-0.1531245112,
0.0333000906,
0.152129814,
0.1432728022,
-0.111695841,
0.2651186585,
0.0427486822,
0.0969828069,
0.1914818138,
-0.3320682645,
0.5272731781,
-0.2565172315,
0.0196749438,
-0.0846300647,
0.1135222986,
0.2200107574,
-0.0801777095,
0.2401883751,
-0.1659162939,
-0.2192483842,
-0.1141702905,
-0.4065216184,
-0.0924776495,
-0.214678213,
0.0291706845,
0.0631911159,
-0.0524974428,
-0.086724706,
0.1217778176,
0.1559279412,
0.4608101249,
-0.2759889066,
0.5565037727,
-0.0001183147,
0.0382906385,
0.199672088,
-0.0183848832,
-0.1324395388,
-0.3922785223,
0.0601483509,
0.4741763771,
-0.2535990179,
0.1168472916,
-0.0724518299,
-0.1436348408,
-0.1966365278,
-0.1189212725,
0.2382800877,
-0.1578133851,
0.132305339,
-0.2810744047,
-0.0761193633,
0.1742739677,
0.577031672,
0.2081138045,
0.0954024196,
0.2048229128,
0.5185903311,
-0.1017637402,
0.3113612235,
0.365814209,
-0.1308677942,
0.0224587638,
0.0901452452,
-0.0682507381,
0.1000211909,
-0.3251624107,
0.0738756657,
0.2581743598,
0.1028041095,
-0.2037577927,
-0.5805407166,
-0.3493556082,
0.0759448186,
-0.1269408613,
0.0061655738,
-0.081693545,
-0.2365729213,
-0.2266127318,
-0.2365192622,
0.2060768455,
0.3590963483,
0.0977126509,
0.1248743162,
0.7664948702,
0.037105035,
0.219089821,
0.1671865731,
-0.1920967996,
0.4789448082,
-0.1907531023,
0.1095509827,
0.2778611183,
-0.2346524149,
-0.0540862046,
0.09934441,
0.1610265076,
0.1597521007,
-0.0778729692,
0.0877232552,
0.076983422,
0.0701527521,
0.1450563371,
0.3376090527,
0.0649945587,
0.1995614469,
0.4244196713,
0.0503003895,
0.1027285978,
-0.2460009158,
0.0169646833,
0.1755650342,
0.192591235,
0.0690483525,
-0.1303409487,
0.0514377616,
-0.0682469532,
-0.2193243206,
-0.2236936241,
-0.4936768711,
-0.191072315,
0.3337347507,
0.1223908216,
0.0123932734,
0.057687059,
0.0336319283,
0.0318103619,
-0.0680809319,
0.0653797984,
-0.0652053282,
-0.0727993697,
-0.1691484749,
-0.1568200737,
0.1608433127,
-0.2737530768,
0.169730708,
0.3562219739,
-0.033613082,
-0.1412304938,
-0.0535370372,
-0.0129673053,
0.0694108754,
0.178201884,
0.1553824693,
0.0191027299,
-0.0174893346,
-0.4109332561,
-0.0497784019,
0.1562905163,
-0.3928751647,
0.0985230878,
0.2194407284,
0.1351188123,
-0.0172253884,
0.1422982961,
-0.1957590282,
0.3078099489,
0.1663374156,
-0.2295237333,
-0.0491456874,
-0.2953112721,
-0.3190174699,
-0.1430812627,
0.0544607416,
-0.0017262561,
-0.1188586354,
-0.218805775,
-0.2674612999,
-0.0194090828,
0.2560310066,
0.3982988894,
-0.0459845029,
-0.0935225636,
-0.0177392308,
-0.2558944523,
0.3043143153,
0.0190912653,
-0.3315224648,
-0.3089675903,
-0.013187862,
0.5003299117,
-0.1409427971,
0.1233195513,
0.2147378176,
-0.1443972141,
0.5124359131,
0.1342263669,
-0.2772075832,
-0.0902415738,
-0.2718452513,
0.1479550898,
0.1295050085,
0.2747760713,
-0.1212168783,
0.0715624467,
0.236696437,
-0.1491497904,
0.2676643133,
0.1079293042,
0.0886430517,
-0.1058222204,
0.2013273239,
0.3708955646,
0.2490313649,
-0.2558936775,
-0.008598309,
-0.0287083294,
0.0097776726,
-0.1937861592,
0.2227863818,
-0.2622681558,
-0.0476701781,
-0.16724208,
-0.2005525827,
-0.2793500721,
0.0516310111,
0.0491117053,
0.0453248248,
-0.1953034103,
-0.0220628884,
0.203412652,
-0.2524297535,
-0.0239355396,
-0.2200563997,
0.418543905,
0.1629656702,
-0.0847898871,
-0.2434987277,
0.1709427387,
0.3113965392,
0.2097330987,
0.0617979392,
0.3443064392,
0.233126089,
-0.4874203205,
-0.3277005255,
-0.1153789163,
0.1543929726,
0.0829179734,
-0.1514285803,
-0.0371804424,
0.4300503433,
-0.0938734263,
-0.2666362822,
0.4246528447,
-0.4405525625,
0.2116707265,
0.0977722928,
-0.0342826843,
0.2694039941,
-0.0164904706,
-0.0705311149,
-0.0100553054,
0.3263965845,
-0.2569963038,
-0.1679280698,
0.091424033,
-0.3633224666,
0.1060901657,
0.0623546429,
0.0236574039,
-0.1364927441,
-0.0401437059,
0.1545795649,
0.1019935459,
-0.1994840801,
0.4961659312,
0.3946727812,
0.2688271999,
-0.0930599198,
0.1775924116,
0.0247134492,
-0.1630893201,
-0.0125515508,
0.1275862157,
-0.1545578688,
0.087725684,
0.3712873757,
0.1028465107,
-0.0923873857,
-0.1513438523,
0.1118584201,
0.0079017729,
-0.2249830663,
-0.1102059186,
-0.282117933,
-0.4204501212,
-0.1595220268,
-0.1196513101,
-0.1167687103,
-0.0501835868,
0.2796972692,
0.6182780266,
-0.1292991489,
0.2404132336,
0.4160360992,
0.1910697222,
-0.2006070018,
0.019586999,
0.0634906217,
-0.1221382096,
-0.2650194168,
0.0282654837,
-0.0209048055,
0.161472261,
0.2580632567,
0.1257252693,
-0.3055665791,
-0.1446701586,
-0.500929594,
-0.0467412546,
0.0569292195,
0.3373675048,
-0.221854493,
-0.3558819294,
-0.2647213936,
-0.2781487703,
0.2641724944,
-0.1862185299,
-0.0523190685,
0.2131298482,
0.0688503981,
-0.0127509739,
-0.3923536539,
-0.1300050765,
-0.42668432,
0.0097923027,
-0.1690359861,
-0.202275604,
0.0769853294,
0.1330344081,
-0.1541850567,
-0.5149542093,
-0.4621251225,
-0.1876674891,
-0.3447582722,
-0.3383408189,
0.0694998428,
0.0225993395,
-0.1424720138,
-0.2377741039,
-0.2404913753,
-0.3220585287,
0.6282310486,
0.1158388108,
-0.0284553543,
0.0149549637,
-0.256914556,
0.2097927928,
0.2310780883,
0.2792002857,
-0.0780277923,
0.1442008466,
-0.2609615028,
-0.4398978949,
0.011210232,
0.0160537306,
0.4219786525,
0.0965661258,
0.3915696144,
0.0624363646,
0.4202923775,
0.0583634153,
0.2165852934,
0.1393893063,
0.0044640163,
0.2680754662,
-0.0476089939,
-0.4091444016,
0.0817128867,
0.2430671155,
-0.1532151103,
0.0444461815,
0.2238461971,
-0.1250915378,
-0.1910009831,
0.3569918275,
-0.2510531247,
-0.1188320518,
-0.2179675847,
0.353346765,
-0.0632655323,
0.2789377272,
-0.0404005572,
0.1031807661,
-0.2265498042,
-0.4351130724,
0.1865641028,
0.0315865874,
0.1544246227,
-0.428783834,
-0.289334923,
0.2464765161,
0.0123046944,
0.3167156279,
0.3921656609,
-0.1077682301,
0.1576210558,
0.1800466329,
0.319608897,
0.8624769449,
-0.2958637774,
0.1419233978,
0.2856095433,
0.0414971299,
-0.2714732885,
-0.1985690743,
-0.1203439981,
-0.2120147794,
0.2906909883,
0.3287011981,
-0.0193330944,
0.2765745819,
-0.2040693909,
0.1090585291,
-0.0372797176,
-0.2150261998,
-0.2645853758,
-0.3368475437,
-0.1330711842,
0.2323790342,
-0.0394532755,
0.0145880925,
-0.0988231227,
0.0333900638,
0.2724342644,
-0.0075950734,
0.0608251467,
0.1152130887,
0.157720983,
0.1812350303,
0.378272742,
0.1320193857,
-0.167507425,
0.1416261941,
0.1664758623,
-0.067841351,
-0.0183916334,
-0.1493892968,
-0.3704858422,
-0.1167901233,
0.2122740746,
-0.0463203415,
0.1131148934,
-0.2186855376,
0.0397292636,
0.1723447293,
-0.2693610489,
-0.1052031592,
-0.0373265743,
-0.5568652749,
-0.5905951858,
0.2616093755,
0.1913695037,
-0.1834036857,
0.7552166581,
-0.0641023517,
-0.3031955063,
0.3054707646,
-0.4023613334,
0.6513966322,
0.1162674278,
-0.2169661373,
0.0415394567,
-0.333869189,
0.3923205435,
0.0980797708,
0.2985040247,
-0.0695810318,
-0.4879591167,
0.0945383757,
-0.0860384628,
-0.0946288332,
0.1051464453,
-0.0589144863,
0.3582971692,
-0.1214535236,
-0.0837376639,
0.0955791101,
-0.2150796801,
-0.0452524908,
0.0386877172,
-0.0177342668,
0.032673087,
-0.079286471,
0.2704475224,
0.0008016544,
0.075449191,
-0.1095769927,
-0.1856639683,
-0.1720612645,
0.1009422541,
-0.0310144871,
-0.0967719257,
0.0645292401,
0.1118556187,
0.0163174383,
-0.437479794,
0.0556010604,
0.1652624756,
0.0171893816,
0.3126526773,
0.5342883468,
0.6526535749,
0.0086854696,
-0.0311236363,
0.1773260385,
0.1834668368,
-0.0888283029,
-0.2060365826,
0.1820051223,
-0.4067783952,
-0.6697889566,
-0.0264619514,
0.3282334805,
0.1417578459,
0.2639860809,
0.1138973683,
0.2197424024,
-0.3481789529,
0.0775575265,
-0.0802623183,
0.0627984554,
0.3217863739,
-0.2774522007,
0.0825364292,
-0.1061850786,
0.3543314934,
0.3140909374,
0.1364025772,
-0.1278446168,
-0.0400977321,
-0.2018209398,
0.0368051976,
-0.0397928767,
-0.1555646807,
-0.136675179,
0.3219174445,
-0.2545860708,
0.0885752514,
0.1503054798,
0.0453120209,
-0.0917599499,
0.3054223657,
0.3602948189,
-0.5971589088,
-0.0285545345,
0.220266819,
0.2723068595,
-0.0400032923,
0.0114202853,
0.4344842732,
0.0024986542,
0.0156485103,
-0.2161047459,
0.0451440737,
0.2970434427,
0.277851373,
-0.2156846821,
0.3048076928,
-0.3196555376,
-0.1261689365,
0.018500831,
0.137576282,
-0.1474149972,
-0.1283851713,
-0.1137208268,
0.1405280977,
0.249227494,
-0.1120808348,
0.0380279198,
-0.2015436441,
0.0980388895,
-0.1187811047,
0.132708177,
0.3740894198,
-0.0129480148,
-0.1205160767,
0.2197013497,
0.0087789744,
0.189141497,
0.2894865274,
-0.3661495149,
-0.5020504594,
0.1783821881,
0.0593980923,
0.0779822245,
0.057116434,
-0.4276386499,
-0.4036218524,
-0.3945854604,
-0.0634196252,
0.1438571215,
-0.3207301795,
0.2893184721,
0.4866832495,
0.2479159981,
0.357738018,
-0.1968003213,
-0.194397226,
0.2836262584,
0.1428686231,
-0.2598185539,
-0.07774093,
0.2067985237,
0.7292211056,
-0.0516787209,
0.0529101565,
-0.233137235,
-0.3705874383,
-0.1969484985,
0.1143330559,
0.4099173546,
-0.4776861072,
0.4178421795,
0.4381349981,
0.3417288065,
0.0501490347,
0.0090808226,
-0.0677688494,
-0.4577534795,
0.5366787314,
0.0964109749,
0.2662415504,
0.1190847978,
-0.0759968534,
-0.0399998128,
-0.1950681657,
0.0371506177,
0.7225058079,
-0.488660872,
0.2166261226,
0.1191812083,
-0.2329016626,
-0.0285542794,
-0.0288741533,
0.2380535156,
0.100393869,
0.0021980708,
-0.0040500369,
-0.0519318953,
-0.447892189,
-0.1598203927,
0.0719872341,
0.0309581552,
0.0134626264,
0.2751265764,
-0.1861336827,
-0.4421762526,
-0.7752514482,
-0.5559278727,
0.2346473038,
0.2321380973,
-0.2369235307,
-0.1017195284,
0.1789089143,
-0.1255151927,
0.6517858505,
-0.0075623831,
0.1611501873,
0.3370619714,
0.2229139656,
-0.0029064871,
-0.1753563434,
-0.0802872628,
0.1398150027,
0.3631747961,
0.5575745702,
-0.1898382902,
-0.1002827063,
0.0459938683,
-0.1336279511,
0.1847946644,
0.3583489358,
0.3194715083,
-0.4444973767,
0.2851864398,
-0.0739309937,
0.2356830388,
0.102579847,
-0.0603576712,
-0.1895275861,
0.0337483734,
-0.0831815451,
0.3202899992,
0.1357250214,
0.0165092554,
0.0367864892,
0.085644111,
-0.1540606022,
-0.0359154008,
-0.441908896,
0.0558963418,
-0.11571493,
-0.5012250543,
-0.1157938167,
-0.1235302836,
0.0650442317,
0.1157126799,
0.0866499096,
-0.0608693063,
0.0765668228,
-0.1074100211,
0.0446439348,
0.0299675707,
0.1647686213,
-0.2833731174,
-0.212003544,
-0.1779579371,
-0.021525152,
0.1717244089,
-0.2845049202,
0.0857623219,
-0.3885677159,
-0.0134000154,
0.0618964806,
0.0410898812,
0.1831290871,
0.1166224852,
-0.1925992668,
0.2179546803,
0.4649243057,
0.1089054346,
0.3146395087,
-0.2552775443,
-0.1864719093,
-0.3954205513,
0.0169716384,
0.1403988451,
0.4040605724,
-0.0982563868,
-0.2630449235,
-0.0852858797,
0.2953218222,
-0.3006350398,
0.1354296058,
-0.2169158459,
0.1430626512,
0.2323479056,
0.3062289357,
-0.2809913456,
0.0071680355,
-0.0252755433,
0.2514470518,
-0.2062347233,
-0.3246557117,
0.659899056,
-0.5506148338,
-0.302383244,
-0.4252721071,
0.2889220119,
0.0474853478,
-0.1741930693,
0.1012596935,
-0.0854589194,
0.3534841537,
-0.0651911274,
0.1745589674,
0.0893896222,
-0.1247717962,
0.0245764963,
-0.0400546268,
-0.413837254,
0.2566953897,
-0.3795074522,
0.61232692,
-0.1575333476
] |
https://github.com/huggingface/datasets/issues/3189 | conll2003 incorrect label explanation | Hi @BramVanroy,
since these fields are of type `ClassLabel` (you can check this with `dset.features`), you can inspect the possible values with:
```python
dset.features[field_name].feature.names # .feature because it's a sequence of labels
```
and to find the mapping between names and integers, use:
```python
dset.features[field_name].feature.int2str(value_or_values_list) # map integer value to string value
# or
dset.features[field_name].feature.str2int(value_or_values_list) # map string value to integer value
```
| In the [conll2003](https://huggingface.co/datasets/conll2003#data-fields) README, the labels are described as follows
> - `id`: a `string` feature.
> - `tokens`: a `list` of `string` features.
> - `pos_tags`: a `list` of classification labels, with possible values including `"` (0), `''` (1), `#` (2), `$` (3), `(` (4).
> - `chunk_tags`: a `list` of classification labels, with possible values including `O` (0), `B-ADJP` (1), `I-ADJP` (2), `B-ADVP` (3), `I-ADVP` (4).
> - `ner_tags`: a `list` of classification labels, with possible values including `O` (0), `B-PER` (1), `I-PER` (2), `B-ORG` (3), `I-ORG` (4) `B-LOC` (5), `I-LOC` (6) `B-MISC` (7), `I-MISC` (8).
First of all, it would be great if we can get a list of ALL possible pos_tags.
Second, the chunk tags labels cannot be correct. The description says the values go from 0 to 4 whereas the data shows values from at least 11 to 21 and 0.
EDIT: not really a bug, sorry for mistagging. | 63 | conll2003 incorrect label explanation
In the [conll2003](https://huggingface.co/datasets/conll2003#data-fields) README, the labels are described as follows
> - `id`: a `string` feature.
> - `tokens`: a `list` of `string` features.
> - `pos_tags`: a `list` of classification labels, with possible values including `"` (0), `''` (1), `#` (2), `$` (3), `(` (4).
> - `chunk_tags`: a `list` of classification labels, with possible values including `O` (0), `B-ADJP` (1), `I-ADJP` (2), `B-ADVP` (3), `I-ADVP` (4).
> - `ner_tags`: a `list` of classification labels, with possible values including `O` (0), `B-PER` (1), `I-PER` (2), `B-ORG` (3), `I-ORG` (4) `B-LOC` (5), `I-LOC` (6) `B-MISC` (7), `I-MISC` (8).
First of all, it would be great if we can get a list of ALL possible pos_tags.
Second, the chunk tags labels cannot be correct. The description says the values go from 0 to 4 whereas the data shows values from at least 11 to 21 and 0.
EDIT: not really a bug, sorry for mistagging.
Hi @BramVanroy,
since these fields are of type `ClassLabel` (you can check this with `dset.features`), you can inspect the possible values with:
```python
dset.features[field_name].feature.names # .feature because it's a sequence of labels
```
and to find the mapping between names and integers, use:
```python
dset.features[field_name].feature.int2str(value_or_values_list) # map integer value to string value
# or
dset.features[field_name].feature.str2int(value_or_values_list) # map string value to integer value
```
| [
0.2851009965,
-0.306415379,
0.0021603352,
0.6274859309,
0.1388071328,
-0.0540367439,
0.3389792144,
-0.006268464,
-0.3376255333,
0.0564624928,
-0.2439725101,
0.1636956185,
0.1464698315,
0.5847405195,
-0.1180654541,
-0.0284846481,
0.1054673344,
-0.1323459893,
0.0885567591,
-0.2658525407,
-0.3584335446,
0.3185116351,
-0.3178264797,
0.3235015571,
-0.3402499259,
0.1149110124,
0.0894394219,
-0.1222399101,
-0.2363584638,
-0.4159291089,
0.2158704251,
-0.0454829335,
0.0306408294,
0.0467075221,
-0.00010929,
-0.2089491338,
0.2177194208,
-0.1634120494,
-0.1643763036,
0.0702834129,
0.0744191036,
-0.0184871946,
-0.0108463047,
-0.2458382398,
-0.1300023347,
0.2500395477,
-0.3090224266,
0.2144731879,
-0.1296653301,
0.1268016994,
0.1981869638,
-0.1270839721,
0.2946301997,
0.1672956795,
0.7190060019,
0.1951051205,
-0.2482352406,
0.2634314299,
0.1332894862,
0.0631869733,
0.1029883623,
0.4718456268,
0.1479691565,
-0.1407456249,
0.3415479958,
0.2648704946,
-0.0865932405,
-0.4870590568,
0.1138142794,
0.2865568101,
0.3525372446,
-0.1194518134,
-0.5183684826,
-0.328756392,
-0.3517350852,
-0.8694475293,
0.0300753694,
0.0188044552,
0.0791610032,
-0.0563654788,
-0.1132008806,
0.1972645372,
-0.0402200706,
0.0086075077,
-0.4291681349,
0.7640650868,
-0.2855481505,
0.0975611359,
0.0131235048,
-0.2834879756,
-0.0157407168,
0.2335555404,
0.1902823597,
0.2765473723,
-0.1552700847,
-0.1670144498,
-0.1673570424,
-0.0939004347,
0.0363164581,
0.0362173542,
-0.2481514066,
-0.1341648549,
-0.2336928248,
-0.015978191,
-0.0358919837,
0.1255793869,
0.5320596099,
0.2138879299,
0.0805109367,
0.1901339591,
0.1588186175,
-0.0690249801,
-0.0093490612,
0.0360075645,
-0.1324301809,
-0.1077968031,
-0.0216659512,
-0.1841275245,
-0.5320374966,
0.2540158629,
-0.1025381535,
0.0224813335,
0.3392117023,
0.2050040066,
-0.1003528908,
0.082248047,
0.0652110055,
-0.0293059107,
0.1273849756,
-0.3924906552,
-0.1050417349,
-0.1590066701,
-0.1474584639,
-0.1017766073,
0.1262217909,
-0.0364968963,
0.2315728664,
0.2265167981,
-0.0180229787,
-0.0399519578,
-0.2971414626,
-0.0766162872,
0.2811764777,
0.2230489552,
-0.5597731471,
0.1669772863,
0.3262919784,
-0.2869810462,
-0.2807252407,
-0.0837029293,
-0.3925255537,
0.092775166,
-0.3060406446,
0.1714827865,
0.1339772493,
-0.1493108422,
0.139902398,
0.0398207791,
0.1074564159,
0.1445256025,
0.258777082,
-0.2148469537,
-0.3548718095,
-0.1722034365,
0.2426025122,
0.1651027352,
-0.3832884133,
-0.2260062546,
0.3460963368,
0.0908311978,
0.2119127065,
0.0624028072,
0.0783535242,
-0.219786346,
-0.0753638595,
0.0782816634,
0.0760478601,
-0.5613458157,
0.0245216452,
0.0786414295,
0.3894349039,
-0.2436550409,
-0.0202118568,
-0.0361074097,
0.2743961215,
-0.0423207358,
0.2826612592,
-0.2810055017,
0.1414441019,
-0.1015734971,
-0.0868442208,
-0.0023456411,
0.1303285658,
-0.0249067508,
-0.1470536143,
-0.1918936521,
-0.1206641123,
-0.185913831,
0.036360275,
0.0511524566,
0.1570644081,
0.2141456157,
0.2024597526,
0.1930661052,
0.0446867272,
0.028656859,
-0.6858321428,
0.188455686,
-0.0175901614,
0.2507899404,
0.2137133032,
-0.0998714417,
-0.3215650618,
0.0234161559,
0.0630550459,
-0.221246928,
0.1767175347,
0.0120008439,
0.0279145557,
-0.1300468892,
-0.3887978792,
0.3154905438,
-0.0447041802,
0.3178282976,
-0.0036801347,
-0.2390901148,
-0.0728587508,
0.0269971043,
-0.3017168641,
0.2238754183,
0.5495327115,
0.0922207311,
0.0158644989,
0.1871216893,
0.4664863646,
-0.4734285176,
-0.0990094841,
0.2327628285,
0.3855875134,
0.064250879,
0.029653132,
-0.2188659608,
0.0328745805,
0.0663146302,
0.067021884,
0.3510097265,
0.1801719069,
0.2783181965,
0.0480623581,
0.0654558688,
0.2451346815,
-0.1561863571,
-0.2088574469,
-0.2553436756,
-0.0849122852,
-0.0217037052,
0.3265171945,
0.3828455508,
-0.5492242575,
0.383698076,
0.3301250041,
-0.2069085091,
-0.1873387247,
0.1563939005,
-0.2381504625,
0.1375559717,
-0.0608681813,
0.2748170197,
-0.0590093024,
0.0850462392,
0.1693341285,
0.0388425812,
-0.3113288879,
-0.0090041226,
0.1955498308,
0.0693362653,
0.0220064875,
-0.0917653665,
-0.009391278,
0.0629246086,
0.0592637882,
-0.2352230549,
0.0422187746,
-0.0252312887,
-0.5071998239,
0.1685222983,
-0.035146039,
-0.1818318367,
-0.1453436464,
-0.8314298987,
-0.6038700342,
-0.3849695921,
0.1011502296,
-0.13237001,
-0.0716152489,
0.0472132713,
-0.1634569764,
0.1540649533,
-0.0411743596,
0.1879824102,
-0.1887132227,
-0.1416191459,
-0.5278461576,
-0.0016036159,
-0.1938643903,
-0.0800425112,
0.0431740433,
-0.5166993141,
-0.0108148083,
0.1199379265,
-0.637942791,
0.4130997062,
-0.3872374594,
0.075073503,
0.2127246261,
-0.1447097957,
-0.2224247754,
-0.0632372648,
0.1840276867,
0.0922846049,
-0.3630594909,
0.0141246365,
0.0280066505,
-0.0347874202,
-0.3063792586,
-0.2333189696,
-0.2260965109,
-0.0795981511,
0.2334802002,
0.2110395432,
0.3160144091,
0.5354119539,
-0.3125351369,
0.1899467558,
0.0480464585,
0.5105805993,
-0.4563406408,
-0.3199644387,
0.1999558061,
-0.1148551255,
-0.2553814948,
0.1449969113,
0.0164078381,
0.116096437,
-0.2853352129,
-0.0852597877,
-0.0917522386,
-0.2469110638,
0.0788884982,
0.0376692563,
0.1497698724,
-0.0246532727,
0.1192757562,
-0.0121505978,
-0.1760864556,
-0.4674037099,
0.2674113512,
-0.0321764424,
0.3326595128,
-0.0735885799,
0.0280288234,
-0.0268693417,
0.4407505691,
0.1834044456,
-0.1893605739,
0.1565893441,
-0.0864721611,
0.2751611173,
0.0772889033,
-0.0013064415,
0.1445004791,
-0.0498597845,
0.0356140882,
0.120044291,
-0.0285472646,
0.0666683763,
-0.1281120032,
0.5029466152,
-0.2227684408,
-0.1887643784,
-0.0618098937,
0.1172488034,
-0.0877388194,
-0.22504206,
0.0866122544,
-0.1660906225,
-0.0889470428,
0.0161006842,
-0.1036273912,
-0.0335023105,
-0.058629781,
-0.0236918665,
0.0135819893,
-0.3107750714,
0.0365418196,
0.1146388501,
0.0232411902,
-0.0209654141,
-0.1372340471,
0.0726918727,
0.2709690928,
0.5791652799,
-0.0851954594,
0.049127873,
0.3720111549,
0.0996131003,
-0.1522088051,
-0.2306586653,
-0.2472091615,
-0.6364167333,
0.7858015895,
0.5107426643,
-0.3497728109,
-0.255515039,
0.2467329353,
-0.2138652951,
-0.1696576327,
0.1203046888,
-0.1793568134,
-0.1268082857,
-0.0506912097,
-0.140727967,
0.3743158877,
0.1024178416,
-0.0628381744,
0.0709357858,
0.1551392823,
0.1150989085,
0.1620389372,
0.2911063433,
0.1667854488,
0.126281023,
-0.0485598743,
0.0182257369,
0.4832275808,
0.1319871992,
0.4706661701,
-0.049101416,
-0.4120258093,
0.2057349831,
-0.0291356966,
0.368064642,
0.0927789733,
0.1636796445,
0.0668320656,
-0.3963219523,
0.1560926139,
-0.2940018773,
0.1098233834,
0.3227975965,
0.1530652642,
-0.2513109148,
-0.1761062443,
0.6547062993,
0.00364557,
-0.1955612302,
-0.1844840497,
0.3472114205,
-0.2722562253,
0.1077368185,
0.3449233174,
0.8217012882,
-0.0272872932,
-0.060913682,
0.0646825209,
-0.526124537,
0.6328582764,
0.1530729532,
-0.1323012412,
-0.3388662338,
-0.2712993324,
-0.0445644334,
0.0117410598,
-0.3522052169,
0.0822571814,
-0.2119762003,
0.3074749708,
-0.3207416832,
0.0409740657,
0.0046049403,
-0.2720519006,
0.2454174906,
-0.1652506292,
0.1151659489,
0.1257096082,
0.0559755974,
0.3342249095,
0.1022273004,
-0.036841806,
-0.4240433574,
-0.0169183109,
-0.238979429,
0.0156342201,
0.0379809327,
-0.2615958154,
0.5239238739,
0.0430938415,
-0.1476955861,
0.2069521993,
0.539948523,
-0.1988824606,
-0.163706392,
-0.1526988,
0.2780689895,
0.1600205302,
0.1458837837,
0.0907370299,
0.4053202868,
0.1016501114,
-0.0269914977,
0.0492162406,
0.0701233372,
0.0055753402,
0.2299423218,
0.0144347856,
-0.1287993193,
-0.3651568592,
0.2192362547,
-0.1754363626,
0.1590738446,
-0.146742925,
0.1238702089,
-0.045074679,
-0.1720302701,
-0.2021291852,
0.0340984091,
-0.3366454542,
-0.1336715519,
-0.0874266922,
-0.1091425642,
0.2827161252,
0.0126149114,
0.0487864166,
-0.3271228075,
0.045427233,
0.0551661067,
-0.0562158637,
-0.2728044689,
0.1219016314,
0.1829531938,
-0.2891744971,
-0.0361631848,
0.3271156251,
0.4260140955,
0.2341262996,
-0.1754106581,
-0.2142830491,
-0.3792238235,
0.1951674819,
-0.1502215862,
0.2059644908,
-0.1781678796,
0.1501664668,
0.2166781873,
-0.1986914128,
-0.3329270482,
-0.0411029197,
-0.4022625089,
0.0496605262,
0.0721451938,
-0.1832387149,
-0.1646140814,
0.1037062779,
0.0230134893,
-0.0631997287,
0.071374476,
-0.1139282882,
-0.385600239,
0.1056673676,
0.1397387236,
-0.1880163997,
-0.2710954547,
0.1373510212,
-0.1224587411,
-0.1988147199,
0.0005357329,
0.2120071352,
0.2401771098,
0.5754395127,
-0.3118568659,
0.2930540442,
0.2114302069,
0.1066551432,
0.3306419849,
0.3154352903,
0.2299581766,
0.1438717097,
-0.4222385883,
0.1016482785,
0.0159887373,
0.4084415138,
-0.432005316,
-0.4850599766,
0.3210009933,
-0.2215311974,
0.2077368796,
0.3140156567,
0.3203177452,
0.0354251564,
-0.0205818918,
-0.0994870961,
0.1497085392,
0.215488255,
-0.2318249494,
-0.0668310001,
-0.2758244276,
0.1616178453,
0.2052898109,
0.3641667068,
0.1705785245,
-0.0185434259,
-0.0110934069,
-0.160989657,
0.2463517487,
0.2163446695,
0.0823020414,
0.2713416517,
-0.004120627,
0.276221931,
0.8261826634,
0.0709509179,
0.2056947649,
0.053683348,
0.4040438235,
-0.1546675265,
-0.1044761688,
0.3332234323,
0.1655368954,
-0.0104122534,
0.2130426019,
0.5965827703,
-0.0412259921,
0.0396639816,
-0.204380542,
-0.035247419,
-0.1746798754,
-0.3545318246,
-0.3576377928,
0.3764525354,
-0.0886410698,
-0.2987307012,
-0.0030955139,
-0.1613601893,
-0.1225195229,
-0.0020887777,
-0.2116198093,
-0.425445646,
0.4145949185,
-0.2246715724,
-0.1467659324,
-0.2906505466,
-0.3871646523,
0.0830526799,
0.340254277,
-0.1173937768,
0.3878639042,
-0.0166474227,
-0.0839897767,
0.1415678561,
0.2695071101,
0.3690236509,
0.4159093797,
0.2203472555,
-0.1171291322,
0.1846470088,
-0.1434755474,
-0.0980365798,
0.1311109066,
0.0602744631,
0.0101262899,
0.3838119805,
0.1100337282,
-0.1181143075,
-0.2248814702,
-0.137155503,
0.4409231544,
0.1330003738,
0.2810705602,
-0.2069280297,
-0.046242889,
0.0273492057,
0.0105358027,
-0.2507561147,
0.0783190429,
0.1926494092,
0.0989963785,
0.3982926011,
0.1585858464,
0.1129682809,
0.0072984248,
0.0749537349,
0.3167681694,
0.0404724069,
-0.0386233293,
0.0282831043,
-0.2469967902,
-0.0201226622,
0.0745747834,
-0.2563201487,
0.3596976399,
0.1382179111,
0.1643772721,
-0.1703291535,
0.0930040479,
-0.0365348309,
0.1151537895,
-0.0185837504,
-0.1493946165,
0.0343026221,
0.016033778,
0.0862347856,
-0.0272890162,
-0.0187486988,
0.2170836031,
0.0450223424,
-0.014101224,
-0.0820087045,
0.2868229151,
0.2540038824,
0.2440744936,
-0.0599704236,
0.0265555531,
0.5460354686,
-0.0213004816,
-0.0565004386,
-0.0273667593,
-0.1360899061,
-0.2161356658,
-0.0004661303,
-0.3777040839,
-0.1474152505,
0.1395098865,
-0.0232643653,
-0.0933604091,
0.3027403355,
0.3586998582,
-0.1911852807,
-0.2984672785,
0.114772968,
0.0049941428,
-0.4247919917,
0.3520632684,
0.06857986,
0.0771203488,
-0.0144751333,
0.0992132053,
-0.5650388002,
0.4216548502,
-0.1596124917,
-0.0306641497,
0.0139978016,
-0.0323034078,
0.4985739887,
0.1369587928,
-0.5388261676,
0.0102050658,
0.4041939378,
-0.132847324,
-0.409917146,
0.095582433,
-0.1487388313,
-0.2405424863,
-0.1508352757,
0.5442070961,
0.1920339465,
-0.0358000658,
0.0356959142,
-0.0949200317
] |
https://github.com/huggingface/datasets/issues/3188 | conll2002 issues | Hi ! Thanks for reporting :)
This is related to https://github.com/huggingface/datasets/issues/2742, I'm working on it. It should fix the viewer for around 80 datasets.
| **Link:** https://huggingface.co/datasets/conll2002
The dataset viewer throws a server error when trying to preview the dataset.
```
Message: Extraction protocol 'train' for file at 'https://raw.githubusercontent.com/teropa/nlp/master/resources/corpora/conll2002/esp.train' is not implemented yet
```
In addition, the "point of contact" has encoding issues and does not work when clicked.
Am I the one who added this dataset ? No, @lhoestq did | 24 | conll2002 issues
**Link:** https://huggingface.co/datasets/conll2002
The dataset viewer throws a server error when trying to preview the dataset.
```
Message: Extraction protocol 'train' for file at 'https://raw.githubusercontent.com/teropa/nlp/master/resources/corpora/conll2002/esp.train' is not implemented yet
```
In addition, the "point of contact" has encoding issues and does not work when clicked.
Am I the one who added this dataset ? No, @lhoestq did
Hi ! Thanks for reporting :)
This is related to https://github.com/huggingface/datasets/issues/2742, I'm working on it. It should fix the viewer for around 80 datasets.
| [
-0.0604760423,
0.2116218954,
0.0638272017,
0.3273207247,
0.0287138093,
0.0626272857,
0.1642676592,
0.2000191808,
-0.4097282887,
0.0621840246,
-0.1819021702,
0.1741392165,
-0.1920645535,
0.3275819123,
0.1100306064,
-0.1469973475,
0.0231315661,
0.2660285532,
-0.2740883529,
-0.1340389699,
-0.3390943408,
0.2005039006,
-0.2740514874,
-0.0482310988,
-0.7270234823,
0.19285734,
-0.0466799177,
-0.0308762304,
-0.2678302526,
-0.5034126639,
0.4060790837,
0.0744811893,
0.2015137523,
0.1235800683,
-0.0001097693,
0.1082849577,
0.2916754782,
0.0115172146,
-0.274028033,
0.0959785208,
0.1964358389,
-0.0662720129,
0.1915775239,
-0.1560252607,
-0.0833939835,
-0.2333000451,
0.1194825098,
-0.0019252314,
0.415909797,
0.115089111,
0.1832315177,
0.2205574363,
0.3862597048,
-0.0954336226,
0.1023349985,
0.0139299622,
-0.3255588412,
0.0413847193,
0.0048776921,
0.0235421099,
0.047097113,
0.1393456906,
0.0796046332,
-0.3240932822,
0.1127603129,
0.083896488,
-0.3835456967,
-0.4807265401,
-0.0051248958,
0.2730845511,
0.5093570948,
0.0125039071,
-0.2451605201,
-0.1163246706,
0.1188781783,
-0.3101844192,
0.4459344745,
-0.1029436514,
-0.0037879567,
0.3573112786,
-0.3634051383,
-0.3721717596,
-0.2950364053,
0.2421716154,
-0.254689306,
0.4009067118,
-0.2461626232,
0.1009302288,
0.079890348,
0.0482631177,
0.2246443927,
0.0745575577,
0.000723674,
0.0788975507,
-0.2045526803,
-0.0431839861,
0.2018827349,
0.0075329677,
-0.0427147187,
0.258998841,
-0.2569619715,
0.025571784,
-0.2804477513,
-0.0116945244,
0.1149015352,
0.003345971,
0.0003410746,
0.2692276239,
0.4567244053,
-0.0879909396,
0.2668109536,
0.0349760018,
-0.3861993551,
-0.0279032439,
-0.4736166,
-0.2452168763,
0.3544574678,
-0.318720907,
-0.2371296138,
0.1554270238,
-0.4954217076,
-0.1723835617,
0.2557732165,
0.3164548576,
-0.1628287584,
0.3507397473,
0.0651413649,
0.1100762635,
-0.0113434354,
-0.5758866668,
-0.0718556792,
-0.1858234853,
-0.2005194575,
0.0780185983,
0.4062033594,
-0.1903270036,
0.1007782817,
0.044077903,
0.1186460033,
0.1786968857,
-0.0101757422,
0.0135187758,
-0.0318980627,
-0.0916899145,
-0.0901673362,
0.0255445503,
-0.0025169526,
-0.0991933644,
-0.0217500739,
-0.2058880031,
-0.2722268701,
-0.1523722559,
-0.5047152042,
0.1113683283,
-0.1424395293,
-0.2190877348,
0.3044292629,
0.1794406921,
0.0420685746,
-0.2135605216,
-0.0503756702,
0.172123149,
-0.3735018969,
0.0343773551,
0.4732878804,
0.4559054673,
-0.5309054852,
-0.0837450624,
0.0887630284,
-0.3923244178,
0.2993725538,
0.1086859778,
-0.2758287489,
-0.011286648,
-0.2042326778,
0.0760681406,
0.251414746,
-0.1904542148,
-0.445995301,
0.230201602,
-0.1087493896,
0.1484963149,
-0.0041550337,
-0.0859968215,
0.2952950299,
-0.1698542088,
0.0069267713,
0.0112761371,
0.2018578947,
-0.3145308793,
-0.2308238298,
-0.1041073427,
0.1820281446,
0.2498577833,
-0.132296592,
0.0457309186,
-0.0317336805,
0.005744373,
0.2550144792,
-0.0370038487,
0.2567822039,
0.1298139095,
0.304072082,
0.1008118764,
0.009263508,
0.0367731042,
-0.2846887112,
-0.0196134429,
0.0753395483,
0.2944586277,
0.142081961,
-0.0992420912,
-0.1052739993,
-0.0214708168,
-0.3832303882,
-0.1859107465,
0.078155674,
-0.018155979,
-0.0227921717,
0.2437905222,
-0.2173220813,
0.4562470913,
0.0390655175,
0.0110052479,
-0.0520485938,
0.2618995905,
-0.0812897235,
-0.1060311496,
0.0101048164,
0.2695683837,
0.0795256719,
-0.3282864392,
-0.0133628165,
0.3319518864,
0.0090354634,
0.0814037398,
0.2177330703,
-0.0711478144,
0.2347405851,
-0.3518628478,
-0.0039357697,
0.0066355076,
-0.1196679696,
0.1001288146,
-0.0926904678,
0.2109188139,
0.4528230429,
-0.1758218855,
-0.0397166312,
0.309535712,
0.2423323542,
-0.1370936334,
-0.0204643775,
-0.3469685018,
0.2896924615,
-0.1088019833,
0.3238947392,
-0.0186190531,
-0.5903195143,
0.0247437414,
0.1721668392,
0.0369191654,
-0.1471504867,
0.3328799307,
-0.0862082914,
-0.0055505699,
0.0295320638,
0.2986822724,
0.1924859583,
0.1893722564,
-0.0254400838,
0.372236371,
-0.1151565313,
-0.1280696243,
0.2079280615,
-0.0372041687,
0.0461620688,
0.0834486037,
-0.0594330691,
0.295293957,
-0.2562210858,
-0.1725567281,
-0.0671970695,
0.1901203394,
-0.2193955183,
-0.1150076389,
-0.5052608252,
-0.5219956636,
-0.0666921958,
0.2210561335,
-0.2068072706,
-0.2692710459,
0.1140240133,
-0.0418885611,
-0.0073718969,
0.1941459775,
-0.6668407917,
0.3618406951,
-0.15732342,
0.1689189076,
-0.0536917038,
-0.1055644751,
-0.3456704617,
0.1136629656,
0.3822422922,
-0.1444275677,
0.3707618415,
-0.210059166,
0.20907332,
-0.0062071243,
-0.384694159,
0.4352636933,
-0.0274456423,
-0.0737028494,
0.1023816913,
-0.1167348325,
-0.1396484524,
-0.3272044659,
0.1469644308,
0.0912024453,
-0.2869467437,
0.0924002081,
-0.0974899456,
-0.353952229,
-0.2254630327,
-0.4965953231,
-0.1170782074,
-0.3316105008,
0.230777204,
-0.0412754267,
0.0750748143,
0.2398605943,
-0.1778216809,
0.2026771754,
-0.1415186375,
-0.0580137521,
-0.2804279923,
-0.4968516529,
0.4743340015,
-0.4380082488,
-0.3862806559,
0.0958210751,
0.0647477806,
0.0988309234,
-0.0009247966,
-0.5417268872,
0.0090424465,
-0.1516049504,
-0.061796777,
0.0016591679,
-0.1957082748,
0.2064774036,
0.1753272563,
-0.0509466417,
-0.0733032674,
-0.1269956976,
0.3448424041,
-0.0611828417,
0.4398799241,
-0.1726248264,
0.2040961683,
0.111202538,
0.257553488,
0.3521956503,
-0.012859527,
0.6458725929,
-0.0273439121,
0.4406485558,
-0.0451333039,
-0.3324155509,
0.4859946966,
-0.1335894614,
0.1201536581,
0.2067556828,
0.004682947,
-0.284429729,
-0.4344497025,
0.0501353368,
-0.1305411756,
-0.3171631396,
-0.2357829064,
0.0452662744,
0.3017105162,
-0.0770217553,
0.0911310241,
0.1472450793,
-0.2351266295,
0.048183132,
-0.0959689766,
0.2213887125,
-0.1475632936,
-0.5568926334,
0.1952778548,
-0.5028938651,
0.4527459145,
-0.0655160248,
0.2819384038,
-0.180985719,
-0.1090463027,
0.1598247737,
0.0327652246,
0.7803257704,
-0.0854479298,
-0.2909480929,
0.0366626047,
0.2849975228,
-0.2001998723,
0.0366586782,
-0.0362767577,
0.0878464654,
0.4731246233,
0.4125986695,
-0.0362141393,
-0.4224810898,
0.570338726,
0.0517508276,
-0.1897942126,
-0.1529286653,
-0.0604926422,
-0.0318766572,
0.0376216993,
-0.2044021338,
-0.2871094048,
0.2219102085,
0.1171497554,
-0.1554574519,
0.1180158705,
-0.0367501304,
0.2224335968,
0.2753352523,
0.200287804,
0.0791270584,
0.3495367467,
0.4203189611,
0.5816974044,
0.4148884118,
0.3930663168,
-0.053558398,
-0.480201602,
0.2821812928,
-0.1425896138,
0.4681689143,
0.3742572963,
0.052124355,
-0.1826037169,
-0.0378466509,
0.2205643505,
-0.2376277,
0.2074377686,
0.6185703278,
-0.1541015506,
-0.7398306131,
-0.2695811391,
0.2190722972,
0.0744183809,
0.0273866784,
0.067840308,
0.1984360963,
-0.0957225934,
-0.0589921959,
0.0543982163,
1.0331455469,
0.1748690307,
0.0384846367,
0.2977845967,
-0.282035023,
0.4840788841,
-0.5105212331,
-0.0040372773,
-0.0251506511,
-0.1630772948,
-0.2142859101,
0.0773619786,
0.2118692994,
-0.020135656,
-0.1931563616,
0.0696909204,
-0.1535844803,
-0.3329963386,
-0.0119185094,
0.2605211139,
0.1370715946,
-0.2272025794,
0.0274665486,
0.1702409238,
0.1620679796,
0.1923224777,
0.0441131927,
-0.3470907211,
-0.1575831175,
-0.1704898477,
-0.180117473,
0.3797284365,
-0.0954971164,
0.0630423576,
0.2926621735,
-0.1985004842,
0.3050798178,
0.25905177,
0.212447539,
-0.0074328715,
-0.360455811,
0.1295797229,
-0.1734802127,
-0.0698722228,
0.1339467615,
0.1055767313,
0.1494111568,
-0.1775003374,
-0.2361904383,
0.1704511642,
-0.0197491013,
0.0045862151,
0.06346111,
-0.0442459472,
-0.048793532,
-0.2263752222,
-0.0291147064,
0.0333866887,
0.1963362098,
-0.2772718966,
0.1419386864,
-0.0375490412,
-0.1797255278,
0.0402612723,
0.0376405306,
-0.0714853629,
-0.1218341589,
0.2604620159,
-0.2581006289,
-0.1009821966,
0.6219517589,
0.0711051524,
-0.221513778,
-0.0991514996,
0.2550266683,
-0.0861487538,
-0.5125104189,
-0.1851095706,
0.1481414288,
0.179167062,
-0.0344379023,
0.2362819463,
0.0818800107,
-0.183902204,
-0.0784249231,
-0.1677112132,
-0.2125738412,
0.1418463588,
-0.063868925,
0.2930586934,
-0.1422137916,
0.7749155164,
0.1327112466,
-0.1237465963,
-0.3286648095,
-0.1366836578,
-0.1855920702,
-0.0576843396,
0.2810372114,
-0.0123097198,
0.1100761816,
-0.1805893034,
0.0730988309,
0.0723094642,
-0.196048826,
-0.1095071062,
-0.2618600428,
0.0924578309,
0.0140230665,
-0.4692846835,
-0.0073049013,
0.051066611,
-0.241724357,
0.1199280769,
-0.1694012582,
0.066355817,
0.1168930531,
0.1437176168,
-0.2544002533,
-0.169144541,
-0.0430504158,
0.0720876604,
0.1846608073,
0.4366541207,
0.1908698678,
0.1890455782,
-0.1396592557,
-0.108191371,
-0.0020556175,
0.1585807949,
-0.1817816198,
-0.3167196512,
0.2132703662,
-0.3523713052,
0.098020345,
0.471057713,
0.2670893669,
0.4714671075,
-0.148415029,
-0.0470355712,
0.6518628001,
0.1417359859,
-0.3043629527,
-0.0601794645,
0.4838099778,
0.3211314678,
-0.2373713404,
-0.0661145598,
0.0399864353,
0.0502314307,
0.073645249,
0.0270147491,
-0.0006503242,
0.1013642773,
0.5024930239,
0.2248525321,
-0.0833543539,
0.2314732075,
0.0460731238,
0.1399403512,
0.1979979575,
0.3693695962,
-0.1182396263,
-0.1961077303,
-0.1277754754,
0.478443712,
0.2558368444,
-0.3946845829,
0.0725799575,
0.0275543705,
-0.3201896548,
-0.018571483,
-0.1300268024,
0.7486014366,
-0.0443661101,
-0.2856994569,
-0.5867046714,
0.6190719604,
-0.0067160083,
0.0515934192,
-0.0286148805,
-0.1423392892,
-0.129188627,
0.1462864876,
0.0033191897,
-0.0274997577,
-0.0978656709,
0.2550340593,
-0.2356207222,
-0.4721442163,
-0.0159802083,
-0.1357875466,
0.2952950597,
-0.0467033833,
0.2573139071,
0.123864159,
-0.05799767,
-0.0680162013,
0.3941399157,
0.2814244032,
0.3711928427,
0.2255027443,
-0.0193577241,
-0.0526157618,
0.0730490163,
0.0130143557,
0.234014675,
0.4924986064,
-0.1341240853,
0.3544122279,
0.0084549775,
-0.0746464059,
0.0372938551,
-0.0556580238,
0.4852624536,
-0.347820282,
0.1791311502,
-0.2648784816,
-0.0111636538,
-0.1961513013,
-0.2202432156,
-0.2937835455,
0.4642164111,
0.409478426,
0.019592965,
-0.0424368382,
-0.2057687938,
0.0728771836,
-0.0531399027,
0.2688107789,
0.3334642053,
0.233180657,
0.0090063112,
-0.5012689233,
-0.5117124319,
0.2293012738,
0.0856276751,
0.0202408582,
-0.0809298381,
0.0562948771,
0.0977991521,
0.2366624773,
-0.0671369731,
-0.2077770531,
0.1384223253,
0.0869039372,
-0.1916199178,
0.3399321735,
-0.0014364213,
0.2111051828,
-0.0860328972,
-0.1264769882,
0.1824723929,
0.034460444,
-0.0648961067,
-0.1465681642,
0.1886569411,
-0.4081973433,
-0.1473259628,
0.4076851904,
0.2234340012,
0.6200409532,
-0.0186808556,
-0.0264925603,
-0.3497529626,
-0.4056367874,
-0.0614220574,
0.0325169973,
0.1990167797,
-0.0340406336,
-0.3071835041,
-0.1280478984,
-0.1228540838,
0.4605539739,
0.0695642829,
0.174449414,
-0.340067029,
-0.153543666,
-0.1721787155,
-0.1989518106,
0.3330434263,
0.1788366586,
-0.087004602,
-0.1304898411,
-0.0979913771,
-0.1541431099,
0.3462437391,
-0.2742803991,
0.1106387824,
0.0563082509,
0.0492144525,
0.0812004134,
-0.2239548862,
-0.4429255724,
-0.1227078959,
0.3263196945,
-0.0735826939,
-0.0477963537,
0.4174549878,
0.1385932267,
-0.2476389259,
-0.007684303,
0.5825231075,
0.2116213888,
-0.273424983,
0.3521475792,
0.0455586985
] |
https://github.com/huggingface/datasets/issues/3188 | conll2002 issues | Ah, hadn't seen that sorry.
The scrambled "point of contact" is a separate issue though, I think. | **Link:** https://huggingface.co/datasets/conll2002
The dataset viewer throws a server error when trying to preview the dataset.
```
Message: Extraction protocol 'train' for file at 'https://raw.githubusercontent.com/teropa/nlp/master/resources/corpora/conll2002/esp.train' is not implemented yet
```
In addition, the "point of contact" has encoding issues and does not work when clicked.
Am I the one who added this dataset ? No, @lhoestq did | 17 | conll2002 issues
**Link:** https://huggingface.co/datasets/conll2002
The dataset viewer throws a server error when trying to preview the dataset.
```
Message: Extraction protocol 'train' for file at 'https://raw.githubusercontent.com/teropa/nlp/master/resources/corpora/conll2002/esp.train' is not implemented yet
```
In addition, the "point of contact" has encoding issues and does not work when clicked.
Am I the one who added this dataset ? No, @lhoestq did
Ah, hadn't seen that sorry.
The scrambled "point of contact" is a separate issue though, I think. | [
-0.0255833752,
0.2223012298,
0.0360253826,
0.3023372889,
-0.0530182272,
0.0704936087,
0.1777101308,
0.2525488734,
-0.4730507135,
0.0556401759,
-0.0888660923,
0.1852440387,
-0.1238657758,
0.2847290039,
0.0831432194,
-0.1410981417,
0.0679345801,
0.276576966,
-0.194239676,
-0.1755084991,
-0.3190149665,
0.1072400957,
-0.3307635784,
0.0323952511,
-0.7453696728,
0.1410537213,
-0.0756680295,
0.0298317969,
-0.2923622131,
-0.4572662115,
0.3295485377,
0.083006829,
0.2388342619,
0.1145398542,
-0.0001048182,
0.0317849927,
0.2909705639,
-0.0187263004,
-0.322273016,
0.1124042496,
0.1623233557,
-0.0212011412,
0.0538197011,
-0.2109825313,
-0.1008597612,
-0.1970285475,
0.1174457073,
-0.0100379586,
0.4015822113,
0.1562741846,
0.1898514032,
0.1661807597,
0.3150574267,
-0.1531658322,
0.1251710057,
-0.0439811982,
-0.3512521088,
0.0151584996,
0.0717663914,
-0.0102521284,
0.1528758854,
0.0863510221,
0.0861904994,
-0.2942907512,
0.0136618996,
0.1189879254,
-0.3139157593,
-0.4552233815,
0.0088828681,
0.3313467205,
0.4684494138,
0.0302090384,
-0.2183309346,
0.0011292774,
0.0839303955,
-0.3200235665,
0.4287409186,
-0.1131437421,
-0.0484733842,
0.3734035492,
-0.2825213969,
-0.3752899468,
-0.3205248713,
0.2398635894,
-0.2284517586,
0.4634186029,
-0.195642069,
0.0621738285,
0.0213169623,
0.0258057956,
0.2577500045,
0.1156050786,
0.0113313794,
0.1425053775,
-0.15819107,
-0.0090640429,
0.1266119033,
-0.0229666065,
-0.0179695468,
0.2247862518,
-0.2342106104,
0.0238985475,
-0.2447519749,
0.0332021825,
0.0932120085,
0.0197594594,
-0.0064494247,
0.2714124322,
0.4648370743,
-0.0847896487,
0.2585495114,
0.0637665838,
-0.5472632051,
0.0283951368,
-0.4674303234,
-0.1840287447,
0.319518894,
-0.360658884,
-0.2772889435,
0.1446949989,
-0.522714138,
-0.1943810731,
0.2426905036,
0.3051874638,
-0.2026009113,
0.2993971407,
0.1138266549,
0.1331764758,
-0.0039768908,
-0.6496369839,
-0.0586918332,
-0.2221463621,
-0.2510863841,
0.0722983629,
0.3717164099,
-0.0117999241,
0.1221057475,
0.0322750285,
0.068197906,
0.2260418832,
-0.0021027916,
0.0094388025,
0.047518421,
-0.1731340289,
-0.0988032445,
-0.0119096301,
-0.0707165673,
-0.1126337051,
-0.0202826243,
-0.1083816215,
-0.3170608878,
-0.0694155023,
-0.5307827592,
0.1484405398,
-0.1638919413,
-0.2786677778,
0.4323652685,
0.1897502393,
0.1249657869,
-0.2096895278,
-0.1140677184,
0.1744155884,
-0.3766958714,
0.0049880873,
0.4477428496,
0.2891184986,
-0.5736317635,
-0.0165655632,
0.1494042277,
-0.283333838,
0.3776990473,
0.1524638683,
-0.2772666812,
0.0369920209,
-0.1723196059,
0.1902697533,
0.301438123,
-0.179570511,
-0.3490689099,
0.1629270464,
-0.1084822416,
0.0487656221,
-0.0671875849,
-0.115678519,
0.3509986699,
-0.2021626234,
0.0693805888,
0.2298526168,
0.2138393223,
-0.2738340795,
-0.2585281134,
-0.111930199,
0.2753083408,
0.1277495772,
-0.2449406832,
0.0372537971,
-0.0985114276,
0.0524642244,
0.2298537046,
-0.0123777837,
0.2990775704,
0.0796999112,
0.2964178026,
0.0160846561,
0.0213468224,
0.0868554786,
-0.2351917475,
-0.0673594251,
0.0563857034,
0.3358801603,
0.1476851851,
-0.0753245428,
-0.149643153,
-0.0350611843,
-0.346838057,
-0.1237722933,
0.1135060862,
0.0048075747,
0.0328649394,
0.2038208842,
-0.2011991739,
0.3853743076,
0.0157564152,
-0.0840199888,
0.0810810179,
0.2673093379,
-0.1406973451,
-0.1727505773,
0.0084515885,
0.2942277193,
0.0769878477,
-0.2891768515,
0.0114985844,
0.3392843902,
-0.0074380776,
0.0221806262,
0.1904235929,
-0.0427172706,
0.212528944,
-0.3000951409,
0.0035159488,
0.0076059648,
-0.0990457311,
0.0953337178,
-0.1440847665,
0.2048446983,
0.5047034621,
-0.1373968273,
0.0473927483,
0.2636729777,
0.2573363185,
-0.2108137906,
0.0254504327,
-0.2913087904,
0.2391402423,
-0.1031011119,
0.2774252594,
-0.0331644975,
-0.5680330992,
0.1325324923,
0.2854787111,
0.025794249,
-0.0779457539,
0.2098445445,
-0.0746404305,
-0.1057672948,
-0.00363898,
0.3433359265,
0.1228583977,
0.2000252306,
0.0238059498,
0.3386675715,
-0.2464948744,
-0.0810601562,
0.1711565703,
-0.1191498786,
0.1148934215,
0.0632473007,
-0.0295212027,
0.2756743133,
-0.142653808,
-0.1570489705,
0.0022475019,
0.1881345809,
-0.179998219,
-0.0766014978,
-0.5199654698,
-0.4399760365,
-0.0564516075,
0.2141032666,
-0.2182895541,
-0.2891890407,
0.1372154057,
-0.0976620018,
0.0045182211,
0.1972756386,
-0.5980054736,
0.3731266558,
-0.1431252956,
0.1568408906,
0.0023195483,
-0.1449828595,
-0.3898048401,
0.1318851411,
0.3431001902,
-0.0722453222,
0.3741562665,
-0.2818676531,
0.190601185,
0.0650061667,
-0.3531950712,
0.4935386181,
-0.0705272853,
-0.0499784946,
-0.0218490958,
-0.0542341061,
-0.1133910716,
-0.323728323,
0.158265695,
0.0464299284,
-0.3249569237,
0.0538041219,
-0.0610870048,
-0.4485623837,
-0.2724866867,
-0.5893455744,
-0.1338882148,
-0.3022080064,
0.1409732848,
0.0015228895,
0.065720737,
0.2974040806,
-0.1412080228,
0.1829867959,
-0.0440976061,
-0.0103878425,
-0.4029565156,
-0.5000157952,
0.521784842,
-0.4438210428,
-0.4245094061,
0.056252189,
0.058926072,
0.043152146,
0.0395855606,
-0.3899906874,
0.0820899084,
-0.1570211202,
-0.0408958904,
-0.016913373,
-0.1708806604,
0.1832007617,
0.1631731093,
-0.0816109478,
-0.1451476067,
-0.1490683407,
0.410040766,
0.0769447833,
0.5598497987,
-0.1415386051,
0.0721331164,
0.1380165666,
0.2555455565,
0.2663238943,
-0.1160332188,
0.5567479134,
-0.0765694454,
0.4077333212,
-0.0308905821,
-0.2097000778,
0.4806022644,
-0.0884989351,
0.0481818989,
0.1890252531,
0.0114992363,
-0.3495980203,
-0.4432937503,
0.1616041511,
-0.1510078609,
-0.2748954594,
-0.2493361682,
0.130739525,
0.3339239657,
-0.0216549821,
0.0975191146,
0.1893388182,
-0.2139713913,
0.0692094341,
-0.117865108,
0.2203779221,
-0.1595138162,
-0.6136192679,
0.1397602111,
-0.4494810104,
0.356829375,
-0.0034941342,
0.3156670034,
-0.2277186513,
-0.1759273261,
0.1696738154,
-0.0080231149,
0.6590628028,
-0.1446201801,
-0.2322492898,
0.1093932763,
0.4704867601,
-0.0794409141,
0.0248516295,
-0.0923149735,
0.1330671906,
0.548830986,
0.3061428368,
-0.0104941567,
-0.3950861692,
0.5348934531,
0.1319379359,
-0.192354843,
-0.0729626715,
-0.0723929033,
0.0162047576,
-0.0099353613,
-0.2811170816,
-0.2720404565,
0.2072013617,
0.1462953836,
-0.1246601194,
0.1971293688,
0.011554393,
0.1935173124,
0.3819779158,
0.2150548249,
0.0714225695,
0.292294383,
0.3720117509,
0.5545651317,
0.4191305935,
0.3561231196,
-0.0218434483,
-0.3393539786,
0.2756043077,
-0.264941901,
0.5112444162,
0.3729504049,
0.0553060994,
-0.2353335619,
-0.0553037524,
0.1498457193,
-0.2496020347,
0.1927236915,
0.6694071293,
-0.1450972408,
-0.747154057,
-0.2442722321,
0.167843923,
0.0803327709,
0.0123982625,
-0.0115660345,
0.0927339792,
-0.0877058581,
0.0111209573,
0.0357427821,
1.0636227131,
0.1237360388,
0.0258782879,
0.2878496945,
-0.2208038419,
0.4366823733,
-0.5095022321,
-0.0157684814,
-0.0199607927,
-0.0593696982,
-0.1801830977,
0.0922819152,
0.1201396585,
0.0061321976,
-0.2925311029,
0.0524340533,
-0.244319573,
-0.3198772967,
0.0026568903,
0.227590099,
0.298399359,
-0.1963887066,
0.0389938578,
0.19770208,
0.1548252553,
0.1704885364,
0.0667225868,
-0.3731145561,
-0.2909739912,
-0.1053694338,
-0.1845756173,
0.4691172838,
-0.0287482217,
0.014116588,
0.2518830001,
-0.2088081688,
0.197882086,
0.198287636,
0.2212860137,
0.0229134969,
-0.3595421612,
0.1008122191,
-0.1524590254,
-0.1583707184,
0.140266642,
0.1037084088,
0.2233141363,
-0.216562435,
-0.2439998388,
0.1874186397,
0.0177635364,
0.0038660241,
0.0942968428,
-0.0778280795,
-0.047191862,
-0.1944394559,
-0.0287103727,
0.1420281529,
0.1701593846,
-0.2810343802,
0.1761662513,
-0.0130733354,
-0.1964390874,
0.0199586153,
0.2014805973,
-0.0438774601,
-0.1049290001,
0.2040545046,
-0.2154045403,
-0.1089843363,
0.5608770847,
0.0898465291,
-0.2039772421,
-0.1585737467,
0.239034608,
-0.1762900203,
-0.4259904027,
-0.224381566,
0.1234572679,
0.1191136762,
-0.1436623484,
0.3123012483,
0.0880929381,
-0.1909514368,
-0.1557442248,
-0.1936656982,
-0.2032945901,
0.1532831639,
-0.0641998276,
0.2256046385,
-0.2710404992,
0.77925843,
0.1610392481,
-0.1686997712,
-0.378713876,
-0.1352014095,
-0.2092207074,
0.0212235563,
0.2153088748,
-0.0333001465,
0.1230960339,
-0.2086651027,
0.1181872562,
-0.0240724478,
-0.1745559573,
-0.1431215703,
-0.2595841587,
0.0769865885,
0.0238656066,
-0.485325247,
-0.0328163393,
-0.0150469244,
-0.2381412387,
0.118085511,
-0.273036778,
0.0220304579,
0.0986461192,
0.1614264101,
-0.2684381902,
-0.0820617378,
0.0150101306,
0.0200732518,
0.1640730947,
0.4737520516,
0.1517923921,
0.1798954606,
-0.1378229558,
-0.1256009042,
0.0164325219,
0.1040847227,
-0.1721145362,
-0.2977552414,
0.263507545,
-0.351352483,
0.1163318902,
0.4316454828,
0.2241939455,
0.4947358966,
-0.1759980321,
-0.0204861555,
0.6289259791,
0.1811718941,
-0.2933374047,
-0.022531081,
0.4501031637,
0.227810353,
-0.2435320914,
-0.0395396389,
0.0573241822,
0.0269365106,
0.0962694064,
-0.057283558,
-0.0345623642,
0.0689390972,
0.3934827447,
0.1921557635,
-0.1224845424,
0.2707532048,
0.0450504981,
0.0897205174,
0.1773840338,
0.2746627331,
-0.0202834979,
-0.299025923,
0.0742564797,
0.581836164,
0.2019601613,
-0.2941929102,
0.0712984428,
0.0341821238,
-0.23399131,
-0.0453305505,
-0.0605763607,
0.7006004453,
-0.0138919326,
-0.3036786616,
-0.5805131197,
0.5673012137,
0.0258080158,
0.0576244481,
-0.0470891818,
-0.1789862216,
-0.1553076059,
0.0543108918,
0.006453352,
0.0217428561,
-0.1244292855,
0.2097757459,
-0.1534706652,
-0.4456315339,
0.0156546626,
-0.1506391913,
0.2622309625,
-0.0567657016,
0.2978398502,
0.0075853774,
-0.0340806916,
-0.0252287928,
0.3910883963,
0.3040266037,
0.4461345971,
0.0826744139,
-0.0153600676,
-0.1344567686,
0.0083544403,
0.027860947,
0.2851995826,
0.4953375757,
-0.2582481503,
0.3372489512,
0.0306081697,
-0.0768018365,
0.0254458673,
-0.0023435797,
0.4015082717,
-0.1327821314,
0.1637752801,
-0.2193575799,
-0.0375968441,
-0.1867976338,
-0.3134632111,
-0.2697054446,
0.4464246035,
0.3631442785,
-0.0414332896,
0.0138083156,
-0.1542012542,
0.1072586253,
-0.1010996699,
0.2872971892,
0.3787404597,
0.3064177632,
0.0662439391,
-0.4968599379,
-0.4237987399,
0.1931289434,
0.0155212283,
-0.0154090757,
-0.1067638621,
0.1468622237,
0.1176039651,
0.3189920485,
-0.0400506295,
-0.1817649156,
0.1163823754,
0.0835914016,
-0.2990775704,
0.2984500229,
0.0590573512,
0.2280356586,
-0.1074760854,
-0.1501539797,
0.1125023514,
0.0219822098,
-0.034087535,
-0.1413200945,
0.1216673627,
-0.4156724215,
-0.0812130347,
0.4756546319,
0.2004446685,
0.6370012164,
-0.0286088306,
-0.0482799895,
-0.3431545496,
-0.3587992191,
-0.0357612967,
0.0485211797,
0.187209025,
-0.1659261286,
-0.2603758276,
-0.0587981194,
-0.127255559,
0.3912341893,
0.0519270711,
0.2270574272,
-0.3454217613,
-0.1784630716,
-0.1626795977,
-0.1819343865,
0.2346968353,
0.1179580539,
-0.145323962,
-0.1515732408,
-0.1036099568,
-0.092553474,
0.3343252838,
-0.1722617447,
0.0761227533,
0.0828994438,
0.0584275648,
0.0244305208,
-0.1158953682,
-0.4378304482,
-0.0903756469,
0.3228239119,
-0.0762940422,
-0.1214283332,
0.3862639368,
0.1026598513,
-0.1783061773,
0.051846385,
0.6361402869,
0.1706566811,
-0.3137530088,
0.2347191274,
0.0511557423
] |
https://github.com/huggingface/datasets/issues/3186 | Dataset viewer for nli_tr | It's an issue with the streaming mode:
```python
>>> import datasets
>>> dataset = datasets.load_dataset('nli_tr', name='snli_tr',split='test', streaming=True)
>>> next(iter(dataset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 497, in __iter__
for key, example in self._iter():
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 494, in _iter
yield from ex_iterable
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 87, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/nli_tr/c2ddd0c0a70caddac6a81c2dae5ca7939f00060d517d08f1983927818dba6521/nli_tr.py", line 155, in _generate_examples
with codecs.open(filepath, encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.9.6/lib/python3.9/codecs.py", line 905, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: 'zip://snli_tr_1.0_test.jsonl::https://tabilab.cmpe.boun.edu.tr/datasets/nli_datasets/snli_tr_1.0.zip'
```
Note that normal mode is used by the dataset viewer when streaming is failing, but only for the smallest datasets. `nli_tr` is above the limit, hence the error. | ## Dataset viewer issue for '*nli_tr*'
**Link:** https://huggingface.co/datasets/nli_tr
Hello,
Thank you for the new dataset preview feature that will help the users to view the datasets online.
We just noticed that the dataset viewer widget in the `nli_tr` dataset shows the error below. The error must be due to a temporary problem that may have blocked access to the dataset through the dataset viewer. But the dataset is currently accessible through the link in the error message. May we kindly ask if it would be possible to rerun the job so that it can access the dataset for the dataset viewer function?
Thank you.
Emrah
------------------------------------------
Server Error
Status code: 404
Exception: FileNotFoundError
Message: [Errno 2] No such file or directory: 'zip://snli_tr_1.0_train.jsonl::https://tabilab.cmpe.boun.edu.tr/datasets/nli_datasets/snli_tr_1.0.zip
------------------------------------------
Am I the one who added this dataset ? Yes
| 119 | Dataset viewer for nli_tr
## Dataset viewer issue for '*nli_tr*'
**Link:** https://huggingface.co/datasets/nli_tr
Hello,
Thank you for the new dataset preview feature that will help the users to view the datasets online.
We just noticed that the dataset viewer widget in the `nli_tr` dataset shows the error below. The error must be due to a temporary problem that may have blocked access to the dataset through the dataset viewer. But the dataset is currently accessible through the link in the error message. May we kindly ask if it would be possible to rerun the job so that it can access the dataset for the dataset viewer function?
Thank you.
Emrah
------------------------------------------
Server Error
Status code: 404
Exception: FileNotFoundError
Message: [Errno 2] No such file or directory: 'zip://snli_tr_1.0_train.jsonl::https://tabilab.cmpe.boun.edu.tr/datasets/nli_datasets/snli_tr_1.0.zip
------------------------------------------
Am I the one who added this dataset ? Yes
It's an issue with the streaming mode:
```python
>>> import datasets
>>> dataset = datasets.load_dataset('nli_tr', name='snli_tr',split='test', streaming=True)
>>> next(iter(dataset))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 497, in __iter__
for key, example in self._iter():
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 494, in _iter
yield from ex_iterable
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 87, in __iter__
yield from self.generate_examples_fn(**self.kwargs)
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/nli_tr/c2ddd0c0a70caddac6a81c2dae5ca7939f00060d517d08f1983927818dba6521/nli_tr.py", line 155, in _generate_examples
with codecs.open(filepath, encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.9.6/lib/python3.9/codecs.py", line 905, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: 'zip://snli_tr_1.0_test.jsonl::https://tabilab.cmpe.boun.edu.tr/datasets/nli_datasets/snli_tr_1.0.zip'
```
Note that normal mode is used by the dataset viewer when streaming is failing, but only for the smallest datasets. `nli_tr` is above the limit, hence the error. | [
-0.3372096419,
0.1444133818,
-0.0150283743,
0.1737514287,
-0.0588113405,
0.1114987433,
0.1539348364,
0.1620102674,
-0.1715070754,
0.0934872851,
-0.0297645237,
0.239446193,
-0.1792830229,
0.1100378186,
0.016051231,
-0.149910748,
-0.2212218046,
0.2402867526,
-0.248372063,
0.2656795382,
-0.2281624228,
0.029801473,
-0.3252076209,
0.2208221704,
-0.0348432995,
-0.0358474962,
0.0423798822,
0.0731418207,
-0.2586042881,
-0.4625041783,
0.1579933465,
0.0604338571,
0.5089557767,
0.4301647842,
-0.0001213061,
0.0834655315,
0.44505018,
-0.0398871377,
-0.6599661112,
-0.3550030589,
-0.4780757129,
-0.1734829545,
0.0489649475,
-0.2280025333,
0.0711277574,
-0.1095527485,
0.4100248218,
-0.3424751759,
0.4021572769,
0.2693596482,
0.1126535907,
0.3562372625,
-0.1783734858,
0.0204343945,
-0.0968316197,
0.3553297818,
-0.2840252221,
0.0668120831,
-0.0472270958,
0.0140230395,
0.1879007965,
0.5336993337,
-0.0707965046,
-0.0067494828,
0.2628037035,
-0.1003774107,
-0.020154478,
-0.2646002173,
0.1710240692,
0.1974249929,
0.7978184223,
-0.2218113244,
-0.4105184078,
0.0447109416,
0.1203892604,
-0.0106686782,
0.0576822571,
0.092502147,
-0.2441882342,
0.0567695573,
-0.2302292287,
-0.3863331676,
-0.283141762,
0.1823647618,
0.0105257332,
0.3784148097,
-0.070270136,
0.1559060663,
0.0105174687,
-0.0187348146,
0.6062123179,
0.0537433065,
-0.0783266798,
0.2940280735,
-0.0845447481,
0.0637289509,
0.336665839,
-0.0317040309,
-0.0847262591,
0.118714124,
0.1775878668,
0.0394094028,
-0.2473719865,
0.1501680762,
0.2943825126,
-0.0084613999,
0.2627246678,
0.3094166219,
0.4938412905,
0.3628522754,
0.0282976478,
-0.3120978475,
-0.1725417227,
-0.3136638701,
-0.0089339083,
-0.0565029941,
0.5308766365,
-0.0390419662,
-0.2252411991,
0.0484322608,
-0.2940448225,
-0.1596981734,
0.146447137,
0.3191803396,
0.0149572315,
0.0029168201,
0.2215864807,
0.2571185231,
-0.0364497155,
-0.1607732177,
-0.0511939861,
-0.1270722598,
-0.1551029831,
0.1360376775,
0.1706997305,
-0.2343685776,
0.1462695003,
-0.1586231291,
0.0426237285,
-0.1562489569,
0.1821976751,
0.0694133714,
-0.1090685949,
0.1928023249,
0.2735240161,
0.1403415501,
0.0878839195,
-0.1278512776,
0.0457029566,
0.3265198469,
-0.1506682038,
-0.601541698,
-0.0767229497,
0.0233883765,
-0.2025866508,
0.0964814276,
-0.1778421253,
-0.1168059111,
-0.2891527116,
-0.4666895866,
-0.1363504678,
-0.081212908,
-0.1940748692,
-0.0866576731,
0.1942857504,
0.5135372877,
-0.4349257648,
0.0299337152,
-0.5612021685,
-0.1703682989,
0.0977101251,
0.1462777555,
-0.3974101245,
0.1812281609,
-0.4598764479,
0.0322665982,
0.859474659,
-0.2428327203,
-0.4329872131,
0.2279210538,
-0.1872899085,
0.1357358396,
0.1484028995,
0.1315023899,
0.0001308648,
-0.3060615063,
-0.2865805626,
-0.0037247564,
-0.0099755228,
-0.1220337674,
-0.1331684887,
-0.1235712767,
0.4969021678,
0.134395048,
0.3312743306,
0.1831266135,
-0.0163877402,
0.0947210342,
0.5404474139,
-0.059833888,
0.124293372,
0.0233785305,
0.1875277609,
0.1611318588,
0.0609904602,
-0.1713794023,
-0.1822625399,
0.0515947901,
0.0356612243,
-0.0591615811,
-0.2303833216,
-0.118538633,
-0.3045448363,
0.0810590461,
-0.4299582839,
-0.1852552295,
0.1003619283,
0.4205476046,
0.119457908,
-0.0018997018,
-0.1101789176,
0.0094067631,
-0.3659283519,
-0.1799059361,
-0.216282621,
0.4552303851,
0.0364299677,
0.0989075676,
-0.157475993,
0.1513525099,
0.2676514387,
-0.0133996382,
-0.1540567279,
0.2575663924,
-0.1465723664,
0.2969157398,
0.233863011,
-0.0086602392,
-0.0627187937,
-0.2582272589,
0.4367701709,
0.2192180455,
0.0934902653,
0.0365761481,
-0.1292922944,
0.1958551109,
-0.285592258,
0.305182755,
0.1484848857,
0.0522313155,
0.178351745,
-0.0030531965,
-0.3003106117,
-0.0219174176,
0.3135581613,
0.0153019605,
-0.158652842,
-0.3258563578,
-0.5164520741,
-0.0454641096,
0.1576476544,
-0.040563222,
-0.0186484493,
0.0953912809,
-0.1607865095,
0.0778630301,
-0.1472285688,
0.4673736691,
0.3626675606,
0.0188879967,
0.1812701076,
0.0590427183,
0.039495986,
-0.1364492625,
0.2548416257,
0.0769500211,
0.2670145929,
0.378313303,
0.1761729717,
-0.279209733,
-0.1244145185,
-0.332934469,
0.1976316869,
0.4174986184,
-0.175281927,
0.0405643173,
-0.157283932,
-0.6707000732,
-0.2099859267,
-0.0298642013,
0.0968100801,
-0.5333710909,
-0.1276571304,
0.3445806801,
0.0169091504,
0.1008668765,
-0.1488683075,
0.0778883845,
-0.123279646,
0.2298675627,
-0.3139465749,
-0.2194499373,
-0.2149433345,
0.0069651389,
0.4415370822,
0.0386683494,
0.2883502245,
-0.1646706015,
0.0476253778,
-0.6766164899,
-0.0593072996,
0.0192303509,
0.3115139604,
0.4176075757,
0.0363619402,
0.5749689341,
0.0769064799,
-0.1620055139,
0.2257206589,
0.0145037072,
0.1465979367,
0.1132047027,
-0.1023599431,
0.1776207834,
0.0704552978,
-0.246354863,
-0.413872242,
-0.4222527444,
0.1668328047,
-0.188319698,
0.2142518163,
0.1071007028,
-0.0633392334,
0.0640959367,
0.2093377858,
-0.0275049955,
-0.2961616516,
-0.3784534633,
0.3679848015,
-0.396376878,
-0.2423127443,
0.0443539843,
0.0591837317,
0.3092901707,
0.1472638398,
-0.7456311584,
-0.2043004334,
0.1255885363,
0.0510420017,
-0.19499816,
-0.1899321377,
0.1179082915,
0.1027368009,
0.1020862386,
0.0074529718,
-0.0694576651,
-0.3782070577,
0.0921128318,
0.362635076,
0.2120369524,
0.7120792866,
0.0869058296,
0.6577266455,
0.420984149,
0.2398276329,
0.2728111148,
-0.2533657253,
0.3361514211,
0.0211559013,
-0.3356449008,
-0.0309197754,
-0.0862211809,
-0.3102683425,
-0.1768981367,
-0.0372978896,
-0.2283830047,
-0.2347812057,
0.0282743704,
-0.3798658848,
-0.3662129939,
0.0315575972,
-0.007343966,
0.3642155528,
0.2463240772,
0.2192808539,
-0.3551514149,
-0.2114361674,
0.0215340257,
0.534214735,
0.418946892,
-0.0556571931,
-0.1424455941,
-0.3573420942,
-0.4426659048,
0.1154861748,
0.0653473586,
0.5856132507,
-0.1007517129,
0.0515981242,
0.1535912156,
0.000233046,
0.7306016684,
-0.6304174662,
0.2075627744,
0.2143557519,
0.1038955525,
-0.0926937237,
-0.0406160355,
0.0413863026,
0.3968367279,
0.3355757296,
0.2607980072,
0.1324470639,
-0.0081350747,
0.4058310986,
0.1269119382,
-0.2640138865,
-0.26166749,
-0.0910622776,
-0.202232033,
-0.2383135706,
-0.2768279612,
-0.3349857032,
0.0664807409,
0.0318263136,
0.1009127274,
-0.1712762564,
0.1005611345,
-0.0044880239,
0.2492772043,
0.1042974666,
0.297373414,
0.1511656344,
0.3684955835,
-0.0353051908,
0.2442954779,
0.4715355039,
0.2708735764,
-0.195368126,
0.1781671345,
0.0357496552,
0.173630625,
0.4374054074,
-0.1430079937,
-0.0108110337,
0.1115754172,
0.1567572206,
-0.3167537451,
-0.0644516572,
0.4809035659,
-0.0320855416,
-0.3074764311,
-0.6781443357,
0.3587546945,
0.1100629941,
0.0593323186,
0.3554905653,
-0.2335291654,
-0.0220891796,
-0.1566294432,
-0.0704109594,
0.997146368,
0.0798618793,
-0.0972868353,
0.4287007153,
-0.1027318165,
0.493881911,
-0.4676995277,
0.1919368058,
-0.1873806119,
-0.1915815473,
-0.0925125107,
-0.1798463017,
0.112611562,
-0.25466609,
-0.0300531182,
0.2757696807,
0.0248511191,
0.1848078966,
-0.0627612993,
0.2499856949,
-0.3648158312,
0.1891907305,
-0.1692482382,
0.0242179949,
0.0202556737,
0.2069671154,
-0.2918958664,
-0.1294984818,
0.0672534108,
0.0006003284,
-0.5399085879,
0.0609386861,
-0.1227542385,
0.1228621975,
-0.2690407336,
-0.4406515062,
0.304040581,
0.4389533103,
-0.1943659633,
0.0138437264,
-0.2092803866,
0.1895750016,
-0.1921589077,
-0.1210698411,
-0.1313336045,
0.2118602842,
0.1299565434,
-0.0411267392,
-0.2540571988,
0.3133668602,
-0.0534341931,
-0.0682343766,
-0.1770002097,
-0.0728146285,
0.3483828604,
-0.23884359,
-0.0468825884,
0.0985600278,
-0.1710241437,
-0.1774526536,
0.0361165516,
-0.0730657801,
-0.1103209406,
0.0234088898,
-0.0634588674,
-0.0624625199,
0.2253457755,
0.3965131342,
0.1523628384,
0.0848672539,
0.6999619007,
0.3131724298,
-0.1046456918,
-0.1863113195,
0.1048438624,
-0.1041748673,
-0.3082068861,
0.0773401633,
0.0110541442,
0.383318156,
0.0783371553,
0.0089520225,
-0.0237784069,
0.0518898927,
-0.3903347254,
-0.5781458616,
-0.0768334642,
0.1370252371,
0.1260933429,
0.3145499229,
-0.2474492043,
0.1748334914,
-0.0188095085,
-0.2135119289,
-0.2025616169,
0.0388221778,
-0.111042574,
0.1319805682,
0.1712189317,
0.3055507243,
0.2176088989,
0.0699207708,
0.0004084605,
0.2152540982,
-0.2705120742,
-0.0493610017,
-0.060737323,
0.2054640055,
0.1918534636,
-0.393301487,
0.0028162315,
-0.3863929212,
-0.066267781,
0.0274563059,
-0.2295475602,
-0.0582694896,
-0.0055054827,
0.0890800878,
0.0319902934,
-0.1531135291,
0.0066522113,
0.2260964364,
0.059704639,
0.4796549976,
-0.0164206568,
0.4109728634,
0.1558458805,
0.0797536373,
-0.5483464599,
-0.066796951,
0.0698794201,
0.1304465234,
0.235812664,
-0.2737385631,
0.2051126361,
-0.1646338403,
0.4119910896,
0.5968231559,
-0.033958938,
0.0208009612,
0.2865158916,
0.0577844456,
-0.2672252655,
0.0356203094,
0.0721482933,
0.1473108977,
-0.0882194191,
0.0177162997,
-0.3527548015,
0.0273916554,
0.1777927279,
-0.0115927132,
0.0856661201,
-0.5194351673,
0.3995677531,
0.4676733315,
-0.1664165109,
-0.1060003936,
-0.0124365008,
0.2363648713,
0.0916276798,
0.4538292885,
-0.1812746525,
-0.0176627189,
0.0456033349,
0.2995360196,
-0.1271639317,
-0.3672351539,
-0.2293703854,
0.3160709143,
-0.1305204034,
0.1941833347,
0.0541943796,
0.1310502589,
0.0061432193,
0.3917978704,
-0.3039233088,
0.381801039,
0.0131098321,
-0.0795775354,
-0.3849856853,
-0.4772263765,
-0.1432869285,
0.175724864,
0.0209711269,
0.0314120017,
-0.2170183212,
0.1273355037,
-0.0436061956,
-0.4008802474,
0.1838221401,
0.2025315911,
0.0557616241,
-0.5210205317,
0.0153457643,
0.3162000179,
0.1470224708,
0.1025687829,
0.390031755,
0.4523618817,
0.2898966968,
0.059432216,
0.224954471,
-0.0266805086,
-0.1229289621,
0.0446537621,
0.0818790793,
0.4114115834,
-0.0906358659,
0.3471244276,
0.0760731921,
-0.0166633874,
0.2998952568,
0.0878975689,
0.1903125793,
-0.2789968848,
0.1830836087,
-0.1888845116,
0.0104967821,
-0.1696735024,
-0.2693102956,
-0.3164009452,
0.0364876874,
0.255668968,
0.0802449435,
0.1806601882,
-0.125806734,
0.0084286416,
-0.1228941306,
0.2456712872,
0.4544085562,
0.1427110434,
-0.2708851099,
-0.471450001,
-0.6604269147,
-0.0255077314,
-0.0727787167,
-0.12871629,
0.1072735041,
0.1513689011,
-0.230227381,
-0.0730131641,
0.2415353358,
0.0282752551,
0.0160159916,
0.5099467039,
-0.1387887001,
-0.4524725378,
0.1933723837,
0.2308666557,
-0.1499660015,
-0.2872958779,
-0.051595293,
-0.3281832039,
-0.0693011358,
-0.0700215995,
-0.0160674173,
-0.0645626336,
0.1727496535,
0.4851417243,
0.0423482284,
0.3402661383,
0.0114101162,
-0.1906589866,
-0.4798886776,
-0.2847059667,
-0.1017608196,
0.0371539481,
0.2198928595,
0.3861190081,
-0.3134728372,
0.0861908421,
-0.501998961,
-0.1925787777,
-0.3514283895,
0.3185385168,
-0.1453151405,
0.0184490252,
-0.1818261892,
0.2588771582,
0.0874498188,
0.0610600114,
0.0262828693,
0.096912697,
-0.3328846395,
-0.0615469068,
0.5880436301,
-0.3693021536,
-0.194437325,
0.1106557623,
0.1855240166,
-0.1414585859,
-0.1516593844,
-0.5030094981,
0.0832075402,
0.3588315248,
0.0836757571,
0.236816451,
0.0670412406,
0.193029806,
0.0673644021,
-0.0884273574,
0.170404315,
0.0576796755,
-0.2595669925,
0.1394006908,
-0.1139043868
] |
https://github.com/huggingface/datasets/issues/3185 | 7z dataset preview not implemented? | It's a bug in the dataset viewer: the dataset cannot be downloaded in streaming mode, but since the dataset is relatively small, the dataset viewer should have fallback to normal mode. Working on a fix. | ## Dataset viewer issue for dataset 'samsum'
**Link:** https://huggingface.co/datasets/samsum
Server Error
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol '7z' for file at 'https://arxiv.org/src/1911.12237v2/anc/corpus.7z' is not implemented yet
| 35 | 7z dataset preview not implemented?
## Dataset viewer issue for dataset 'samsum'
**Link:** https://huggingface.co/datasets/samsum
Server Error
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol '7z' for file at 'https://arxiv.org/src/1911.12237v2/anc/corpus.7z' is not implemented yet
It's a bug in the dataset viewer: the dataset cannot be downloaded in streaming mode, but since the dataset is relatively small, the dataset viewer should have fallback to normal mode. Working on a fix. | [
-0.4839608371,
-0.5628320575,
-0.0067397994,
0.090974398,
0.0615778528,
-0.0313980207,
0.0058004321,
0.5215321183,
0.1930067688,
0.305977881,
-0.1036302969,
0.4704754651,
0.073757194,
0.0165081043,
-0.2501565218,
-0.1724486947,
0.0452871509,
0.2829019725,
-0.0775604397,
-0.0043379734,
-0.1569983959,
0.140098542,
-0.3624872267,
-0.1898084283,
0.4074576795,
-0.0482282974,
-0.0018490152,
-0.0950033665,
-0.3808733523,
-0.1185944825,
0.1473319829,
0.1436422318,
0.4429118931,
0.358540535,
-0.0001116174,
0.03173941,
0.4841785133,
-0.0372031331,
-0.0413350835,
-0.0549051724,
-0.2865121663,
-0.2073087245,
0.0313217081,
-0.2171531618,
-0.1291535795,
-0.2787218988,
0.1212331355,
-0.1701755077,
0.4953991175,
0.0873908475,
0.2005812526,
0.1330015957,
-0.1795255542,
-0.2982805669,
-0.0907204747,
-0.0614011213,
-0.3701272607,
-0.0163456444,
0.403930068,
0.4484565854,
-0.0599444807,
0.2950751781,
0.016005449,
0.0525643863,
-0.1494883001,
-0.0216501504,
0.183161363,
-0.4477127194,
0.0180483684,
0.3036214709,
0.8176955581,
0.0861229897,
-0.3233796656,
0.1493951678,
-0.033560656,
-0.0587078631,
-0.0361027718,
0.1986708641,
-0.2259616554,
0.1827658117,
-0.264588654,
0.0103930179,
-0.2180514932,
0.0853151307,
0.0010161849,
0.1904427856,
-0.2955216169,
-0.0671818033,
0.0245685801,
0.0469602346,
0.1930296421,
-0.1233203039,
-0.1381421387,
-0.0206982214,
-0.0704714805,
-0.0217244513,
-0.0199355166,
-0.0937404856,
0.232848227,
0.2078818232,
0.2502112985,
0.5154327154,
-0.0128367785,
0.0712215826,
0.0961110666,
0.0713336319,
0.2772096694,
-0.2593568265,
0.398570776,
0.5647314191,
0.4272533655,
-0.0067598731,
-0.2751716375,
0.133774057,
-0.0181349367,
-0.204060778,
0.1015845761,
-0.2475235164,
-0.0126177976,
-0.0989851952,
0.1715874225,
0.2521119714,
-0.1718658209,
0.2474557012,
-0.1296206415,
-0.1061165556,
-0.1979877204,
0.3049401939,
-0.1370414943,
-0.2937646806,
-0.1827577949,
-0.1239584163,
-0.0399258621,
0.024101261,
0.1615782231,
-0.2306394726,
0.1737730503,
-0.0923221186,
-0.0631715953,
0.1428156942,
0.0383335985,
-0.0328146182,
0.1005052626,
0.4572443962,
0.3478518128,
0.167610243,
0.2057429254,
0.1967457533,
-0.1206552312,
0.2036271095,
-0.0463626906,
-0.2109500915,
-0.2717157602,
0.1616980284,
-0.4416705966,
-0.0425954871,
-0.386517942,
0.1509877294,
-0.0276353341,
-0.0473098941,
-0.2355196774,
-0.0282551665,
-0.4325043559,
0.0196419861,
0.3999099433,
0.1183627024,
-0.2108653039,
0.051446002,
-0.411119163,
-0.2452721745,
0.6090428233,
-0.0145700406,
-0.0819112211,
-0.0556094162,
-0.2232565135,
0.4316070676,
0.4117476046,
-0.1888694465,
-0.5363112092,
0.0875987485,
0.0438443422,
0.1635083109,
0.079745464,
0.0288081989,
0.2117561102,
0.0018348118,
-0.1343140602,
0.0037348154,
0.0548446998,
0.0575201847,
-0.2088094205,
-0.416333884,
0.0824022964,
0.2451873571,
0.2756759226,
0.1571371406,
0.2077479362,
-0.0678340569,
0.3364161849,
0.1595574617,
0.2251020223,
0.0036370773,
0.3694368899,
-0.0336124711,
0.1029080227,
-0.263925612,
0.2875322104,
0.2715089619,
0.2121704072,
0.1343320161,
-0.1106911525,
-0.1676875204,
-0.1394506693,
-0.1577900499,
-0.2348827869,
-0.0172519814,
0.177000612,
-0.0589994118,
0.0715153068,
-0.101391919,
-0.1097857729,
0.4214682877,
-0.1842790693,
-0.0394067988,
-0.437581718,
0.3026096523,
-0.1652687043,
-0.2014434785,
0.1467353404,
-0.3389778137,
-0.00600194,
-0.2620323896,
0.0051399651,
0.0655418932,
-0.0654961392,
-0.0179526638,
0.1687222868,
-0.1457896531,
-0.0565544069,
-0.3856086433,
0.4684931636,
-0.0073193684,
0.0114818811,
0.196680814,
-0.2538402379,
0.0973247513,
0.1450663954,
-0.1298347861,
0.0332255699,
0.1788204014,
0.5056260824,
0.0188104156,
-0.2029723823,
-0.1878544837,
0.030287927,
-0.3145393729,
-0.8783002496,
-0.3837750554,
-0.1553361863,
0.1787520498,
0.3457331359,
0.1417032331,
0.1097032428,
0.1917656511,
-0.2047075033,
-0.0914148465,
0.1731992066,
0.0592999123,
0.3716670871,
0.2414001524,
0.1313560605,
-0.0087406784,
0.1029616594,
-0.0827634633,
0.0006571861,
0.351952225,
0.3041219413,
0.1721450686,
-0.079279907,
0.0308482908,
-0.2384964228,
-0.0286623091,
0.1300407052,
0.0394118316,
-0.0262487698,
-0.1715138257,
-0.4357331097,
-0.3600465953,
0.015990654,
-0.0655109733,
0.0718833208,
-0.371753037,
0.0287428461,
0.3729945421,
0.0010420603,
0.2503755689,
-0.6670630574,
0.2190367132,
0.0006921911,
0.1094877943,
-0.15393731,
0.1093982756,
0.062627174,
0.1533138603,
-0.1009112448,
0.2673039138,
0.332787931,
-0.3592054546,
0.0405632034,
-0.471113205,
-0.2131364197,
0.3816516101,
-0.0667564943,
0.3505965471,
-0.0037574931,
0.1920515597,
0.2033591866,
0.0156842787,
0.099657841,
-0.2047095001,
-0.2364986837,
0.2366943061,
-0.1648721546,
-0.2628377378,
-0.1923885494,
-0.3160991669,
-0.2441435009,
-0.5387570858,
-0.1367144436,
0.056423869,
0.093061246,
0.2002336532,
-0.0169027522,
-0.0011968716,
-0.0472675487,
0.1621678472,
-0.1252838671,
-0.3089016378,
0.4144247174,
-0.2430090755,
-0.6127557755,
0.3216829598,
-0.0403839275,
0.2758734822,
0.092772007,
-0.3097915351,
-0.1292377561,
-0.1673500091,
0.3405276835,
0.1860900819,
-0.2362892032,
0.4606413841,
-0.2481787652,
-0.1867062896,
-0.1313309669,
0.08316724,
-0.0918935165,
-0.0818331838,
0.2839740217,
-0.0020097136,
0.2157966197,
0.1132085696,
0.4368080199,
0.4532911777,
0.0401491895,
0.2961357832,
0.0794372931,
0.0399985313,
-0.06401214,
-0.1235976964,
-0.0166918077,
-0.2367701381,
0.2629598081,
0.3913955986,
0.1298101395,
-0.2164634168,
-0.1430558413,
-0.2447142303,
-0.4323805273,
-0.200330168,
-0.1765110046,
0.1133776084,
-0.0265268758,
0.0977592766,
0.1708095968,
-0.1532523185,
-0.2284225374,
-0.0259480085,
0.6378697753,
0.0637545064,
0.0972882435,
-0.0551412106,
0.0966869593,
-0.3674935997,
0.3099444807,
0.0660295188,
0.3378685713,
-0.1231554821,
-0.1279744059,
0.0934490189,
-0.1385743767,
0.4896541536,
-0.4162351787,
0.1051933318,
0.1502818316,
-0.0882718787,
-0.198176235,
-0.1564739943,
-0.2550813854,
0.302280277,
0.140436098,
0.5872184038,
0.1733681262,
-0.1396514177,
0.1822850406,
0.0791122317,
-0.156593591,
-0.2360552847,
-0.2139025033,
-0.3685296774,
-0.1893615127,
-0.2095945626,
0.0312508717,
0.0148496684,
-0.3528361917,
-0.3797588348,
-0.0112510202,
-0.1602823585,
0.0159528907,
0.286162436,
0.1080631092,
0.0743555799,
0.5661281347,
0.1636146605,
0.057963945,
0.2707448006,
0.4802530408,
0.2685436308,
-0.3794763982,
0.2938088775,
-0.3284452558,
-0.0844972283,
0.0812909454,
-0.0387373194,
-0.0659647733,
0.3078486919,
0.2262334526,
-0.3204779625,
-0.1348605454,
0.3690069318,
-0.1148682013,
-0.3147371709,
-0.0953432173,
0.2707472444,
0.1050570309,
-0.0745951757,
0.313555181,
0.2246863693,
0.0303687882,
-0.0319582596,
0.0180086903,
0.7225292921,
0.08211869,
-0.2916079462,
-0.0433425345,
0.2301387638,
0.2989560366,
-0.2297718227,
0.2535507083,
-0.1399390996,
-0.8939223289,
-0.1535444707,
-0.0517304689,
0.3959857523,
-0.2145390809,
-0.3525353968,
0.0456079952,
0.0951700211,
0.075544022,
-0.0459111556,
-0.1277759671,
-0.3093478978,
-0.1422101557,
-0.0357780196,
0.2143240869,
-0.0718864128,
0.2727919221,
0.1326386929,
-0.1331989765,
-0.2461984307,
0.05429326,
-0.2317997664,
0.433403939,
0.6366906166,
-0.0148836002,
0.0525501557,
0.1236856729,
0.3818541467,
-0.0177088305,
0.2141872644,
-0.0441446006,
-0.357165277,
0.0456044413,
-0.0645972565,
-0.307595998,
-0.0413696356,
0.132022202,
0.3598662317,
-0.3604135215,
-0.2502976656,
0.0427741483,
0.0592780225,
-0.0135480668,
0.1452738494,
-0.3632368743,
0.2516341507,
-0.1412610859,
0.0568930767,
-0.0639408007,
0.1477365494,
-0.2665880919,
0.1225266308,
0.1375903338,
-0.2977878153,
0.4204499722,
0.1445300281,
-0.0211136471,
-0.0150894262,
0.3955387473,
0.1586898714,
-0.0939975679,
0.1461628526,
0.2761625051,
-0.3084466457,
-0.2373991162,
-0.1885332763,
-0.0359248146,
-0.174084723,
-0.1202510223,
-0.2959863245,
0.0927989259,
0.0286862515,
0.4186218679,
-0.0493383743,
-0.7162560821,
-0.3539104164,
-0.4165240228,
-0.0734727606,
0.0965518206,
-0.3212499917,
0.2928395569,
-0.0319161378,
-0.3876769543,
0.0655416474,
-0.1072673425,
-0.3076191545,
-0.0966572985,
-0.0286266226,
0.0676684305,
-0.0496193208,
0.140692085,
0.2151818722,
-0.0561111756,
0.0752438828,
0.2877153456,
-0.2508217394,
-0.1881808043,
-0.1131163538,
0.1479858309,
-0.0167149547,
-0.135634765,
0.2256748378,
-0.0448018424,
-0.4802335203,
0.0304370634,
0.1050257832,
-0.0183708966,
0.0793220103,
0.1181968376,
0.4495699704,
-0.0428180061,
-0.016277099,
0.1521760523,
0.1639402658,
0.6422509551,
-0.3715447485,
0.123782061,
-0.0108479029,
-0.1403807253,
-0.2223981768,
0.0082204519,
0.0559690036,
-0.0983978435,
0.5042407513,
-0.1594433039,
0.5469307303,
-0.0415199064,
0.5383194089,
0.1459504068,
-0.0542171076,
-0.0011118301,
0.1715295911,
0.1860472262,
-0.3665572405,
-0.2392326444,
0.0454992987,
0.119901903,
-0.0560785979,
0.2124830484,
-0.1022356004,
0.3061321378,
0.2385815531,
0.0080292085,
0.7190949917,
0.0023624888,
0.1667489707,
0.3020483553,
0.0070141749,
0.2010897994,
0.0119019644,
0.1007366627,
0.0939474255,
0.5550332069,
-0.1007621735,
0.3215496838,
-0.0011268932,
0.2903416157,
-0.1083287969,
-0.4291045964,
0.2169669867,
0.0153522482,
0.021503171,
0.2071285397,
0.103490524,
0.4104981124,
-0.1206836551,
0.0697487742,
-0.5717198253,
0.0308434963,
0.1219747141,
0.117331177,
-0.3896529377,
-0.1320125461,
-0.1405328363,
-0.0644955412,
0.1457713246,
0.1444141567,
-0.1355686188,
0.0868954733,
-0.2085122615,
-0.2474718541,
-0.036655847,
-0.1358389258,
0.1558602005,
-0.1746660024,
0.1005036756,
0.1498907954,
0.0646171123,
0.1360467225,
0.2602287829,
0.3294285834,
0.0101673147,
0.1143571064,
0.0800569504,
0.1290547848,
-0.2675803006,
-0.1082528457,
0.2073143125,
0.4254721105,
0.2414773256,
0.2118096352,
0.1852378249,
-0.1604444981,
0.2435252219,
0.0815476775,
0.3104856908,
0.1298710108,
0.4348257184,
-0.1530630738,
-0.0094615743,
0.0597726032,
-0.2361555547,
-0.1836965978,
0.3452478051,
0.0440035537,
-0.1889069378,
-0.0026400399,
-0.1684121937,
0.0780091137,
-0.1317234188,
0.310985297,
0.0003800187,
0.1130170673,
0.2420544922,
-0.0730812103,
-0.3127559423,
0.1815652847,
0.0297822896,
-0.150409162,
0.0865002424,
0.0964175016,
0.149806723,
0.4099144042,
0.0214182064,
-0.1343492419,
0.1182762608,
0.4047674835,
-0.2467624396,
-0.2702144682,
0.230136767,
0.1132986397,
-0.0283626206,
-0.4038643837,
0.1979688108,
-0.3429180682,
0.0667107627,
-0.0061342558,
-0.1818588376,
0.0353843085,
-0.4790593088,
0.3901412487,
0.0563822575,
0.4353196025,
-0.2011410445,
-0.0957330689,
-0.290748328,
-0.091028437,
-0.2292369157,
-0.1068753079,
0.2247932404,
0.4410383105,
-0.0334150344,
0.1325424016,
-0.1738767773,
-0.2039963901,
0.0089554442,
0.0701160654,
-0.4543838799,
0.1255223453,
-0.175356105,
-0.0953827426,
0.3957515955,
-0.1091508791,
-0.0627498552,
-0.0742369443,
-0.3598180413,
-0.309956044,
0.3573330343,
-0.4345684946,
-0.1175689846,
-0.1638897508,
-0.0609641001,
-0.277652055,
-0.2708717287,
-0.4071488976,
0.15594396,
0.2625206411,
-0.0992878824,
0.2076671571,
0.2380369008,
0.1655702442,
-0.3705276847,
-0.1043504477,
0.180459246,
-0.0815794617,
-0.121858865,
0.0215717983,
0.0043475209
] |
https://github.com/huggingface/datasets/issues/3181 | `None` converted to `"None"` when loading a dataset | Hi @eladsegal, thanks for reporting.
@mariosasko I saw you are already working on this, but maybe my comment will be useful to you.
All values are casted to their corresponding feature type (including `None` values). For example if the feature type is `Value("bool")`, `None` is casted to `False`.
It is true that strings were an exception, but this was recently fixed by @lhoestq (see #3158). | ## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 65 | `None` converted to `"None"` when loading a dataset
## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
Hi @eladsegal, thanks for reporting.
@mariosasko I saw you are already working on this, but maybe my comment will be useful to you.
All values are casted to their corresponding feature type (including `None` values). For example if the feature type is `Value("bool")`, `None` is casted to `False`.
It is true that strings were an exception, but this was recently fixed by @lhoestq (see #3158). | [
-0.0743647888,
-0.0289289318,
0.0202893149,
0.2942250371,
0.4671344757,
-0.0404256471,
0.3494563997,
0.2275474072,
0.0246014483,
0.5165578723,
-0.0883267522,
0.6322942376,
-0.0893220007,
0.0885335431,
0.0443152413,
-0.031129634,
0.1287149638,
0.3545816839,
-0.153489396,
0.0358555503,
-0.055938676,
0.1567764431,
-0.201589793,
0.0554702356,
-0.2042557448,
0.0001951352,
-0.0153095881,
0.00650047,
0.0632328317,
-0.5500473976,
-0.0285557453,
-0.2574139833,
-0.1568406969,
0.5352155566,
-0.0001153083,
0.011807356,
0.3876372576,
0.2343211621,
-0.4045575261,
-0.5279958844,
-0.2006206512,
-0.2227915525,
0.2552908957,
-0.0441058688,
-0.1661451757,
-0.2024693787,
-0.1053210646,
-0.3687562644,
-0.1631986052,
0.2866928577,
0.2213473171,
0.4613035321,
-0.4211882651,
0.0456162207,
0.3438511789,
0.0372856408,
-0.011557186,
-0.0727397278,
0.0320071019,
0.4089701176,
-0.0737865269,
0.2828017175,
-0.2029773593,
-0.2242766023,
0.2152376324,
0.201552406,
0.0580077991,
-0.2878353298,
0.2259051204,
0.3812758923,
0.353900671,
-0.3959642053,
-0.3045987189,
-0.138822794,
0.2330365479,
-0.2949928939,
0.1394139528,
0.2389476001,
-0.1358104199,
0.1090045795,
0.0278782938,
-0.0374841057,
-0.0284823235,
-0.0596602373,
-0.5930218101,
0.2717574239,
-0.1551233679,
-0.0330958366,
0.0518795326,
-0.1880697906,
-0.0952404663,
-0.275962621,
-0.2160404325,
0.1376178861,
-0.1395828873,
0.0580855459,
0.0049382262,
0.0938738063,
-0.0923859179,
-0.1451642215,
0.1963673383,
0.0857732892,
0.0210533161,
0.2455896437,
0.1635621637,
0.31919837,
0.2024614662,
0.0092116417,
0.3557840884,
-0.0527957156,
0.0881523415,
0.145159021,
0.1016990468,
0.0289615989,
0.2892722189,
0.0265317224,
0.5120083094,
-0.299818486,
-0.4277199507,
0.1300508529,
-0.3588064313,
0.1893883198,
-0.0233920459,
0.1880652606,
-0.1585969925,
0.4057361186,
0.1063361764,
0.1306810826,
-0.192353934,
-0.277587086,
-0.3321046233,
-0.026163904,
-0.0529132634,
-0.2081577331,
0.0862466767,
-0.3544610739,
0.0390302241,
0.3406712413,
0.0756367519,
-0.0633616224,
-0.2309405655,
-0.1289336532,
-0.0175755527,
0.498224467,
-0.0806754529,
0.1513721198,
0.2341061831,
-0.4056790769,
-0.0607132502,
0.8011902571,
-0.1993331164,
-0.0395232104,
-0.1734525114,
0.1951886117,
-0.3936983347,
-0.0369188674,
-0.1676320434,
0.281921804,
0.016933091,
0.1303343028,
0.0649847686,
-0.3498055637,
0.0037093749,
-0.2259187698,
0.0673156604,
0.3076144457,
-0.677459836,
-0.271700561,
-0.0362395495,
-0.466730535,
0.1612826586,
-0.0774911791,
0.1069214121,
0.0266484655,
-0.1703739762,
0.153840825,
0.3121854365,
-0.0921309814,
-0.2813615501,
0.3656149805,
-0.2867627144,
0.1350314319,
-0.0275692102,
-0.0748577937,
0.0707631335,
0.093465291,
0.0895046368,
0.0181798656,
0.0867444202,
0.1591300219,
-0.4913859665,
-0.1291600764,
0.4623967111,
-0.0374186561,
0.0841173455,
0.1950542778,
0.0064072842,
-0.3511818051,
0.22852543,
-0.1292201877,
0.1493532211,
0.0745739788,
0.3956736624,
0.0381349549,
0.0452312157,
-0.3023311794,
-0.4701994061,
0.1431852877,
-0.178709209,
0.1932460219,
-0.2289487869,
-0.2901898623,
-0.0054445197,
0.023154173,
0.0146973515,
0.1065346748,
0.1563827991,
0.2238951921,
-0.3153886795,
0.0381581672,
-0.0946295708,
0.0892273635,
-0.0369666852,
0.1910853982,
-0.1285598576,
0.0402743518,
0.1280012727,
-0.2025582194,
-0.2348784953,
0.3516677618,
0.2134970278,
0.1185352728,
-0.2256280035,
0.466358155,
-0.1201640442,
0.02726252,
-0.4631198645,
-0.1329893321,
0.169458732,
-0.1776141077,
0.1492184848,
0.4430874586,
0.224284023,
0.1036123782,
-0.2592026889,
0.4345678389,
0.0383082852,
0.3234428763,
-0.0090561053,
0.1112889424,
0.0209529214,
-0.0063032606,
-0.2586575747,
-0.3572494686,
-0.0938061178,
0.1414325982,
0.1503596306,
0.3741157353,
-0.4108512402,
0.2392970026,
0.1364659816,
-0.4166625738,
0.1086372584,
0.1810412109,
-0.3985335529,
-0.037406832,
0.1068882793,
0.2095810622,
0.368491292,
0.268514514,
0.0769461468,
0.0818492174,
-0.1579066217,
-0.0449230224,
0.3587136865,
-0.0223294143,
-0.0204383694,
0.2448806018,
0.2682703435,
-0.0669095591,
-0.2068699598,
0.0818060637,
0.0289009623,
0.2273087204,
-0.7267825007,
0.0302580297,
-0.5401931405,
0.1630096883,
-0.0831560194,
-0.1632227004,
-0.134404242,
-0.377051115,
-0.0608968697,
-0.107285805,
-0.1884910166,
0.115078263,
-0.2849166989,
0.0592129827,
-0.2410746515,
-0.0934473872,
-0.1032882258,
0.1292216927,
-0.4551781416,
0.0457120724,
0.0436943211,
0.1446134746,
0.1195406765,
0.0631529987,
-0.0977504849,
-0.172876671,
-0.3168609738,
-0.0308949444,
-0.2922934294,
0.5581780672,
0.1433068216,
0.1097539961,
-0.0786028802,
0.026005799,
0.2122035921,
-0.1062172502,
-0.2325671911,
0.2592371404,
-0.1210723966,
0.1418580115,
-0.4369950891,
-0.430996567,
-0.2294879407,
-0.161185652,
-0.1150346547,
-0.0192745607,
0.2807174623,
0.2254799455,
0.1342694461,
0.2584431469,
0.0241434798,
-0.0208884086,
-0.136964485,
-0.1831409037,
0.4126765728,
-0.1314139068,
-0.1789133996,
0.238102451,
-0.0034112241,
0.0171550401,
0.0946742371,
-0.3835977614,
0.2659084797,
-0.1073354632,
0.3501317203,
0.0700934827,
-0.006208594,
0.1970037967,
0.3374519944,
-0.1416846514,
-0.0443928428,
-0.1426855326,
0.0234024879,
-0.1173379719,
0.0683045313,
0.0634144992,
0.1028761119,
0.0130354464,
0.3595695794,
-0.0317451805,
-0.025304947,
0.0954656601,
-0.2188642621,
0.4289605618,
-0.1835112423,
-0.0405462272,
-0.1812504381,
0.0953608602,
-0.0071402579,
0.2841323316,
0.0097900825,
-0.246302709,
0.0936920792,
0.0296014175,
-0.3498406112,
-0.0962553769,
0.2371776253,
-0.3984172046,
0.0388307534,
-0.0397649109,
0.1627475321,
-0.0642909631,
-0.1895136386,
-0.0840899572,
0.2283725291,
0.0529629365,
-0.1700963825,
-0.4728871584,
-0.1202687621,
-0.1873510182,
0.2654028535,
-0.0104485722,
0.1025041342,
-0.003657731,
-0.4343695939,
0.2488940656,
0.0359684639,
0.4924195707,
0.1364300698,
0.0718976781,
0.4524359107,
0.0538013205,
-0.3369545639,
-0.2154242992,
-0.4634630382,
-0.0597894266,
-0.0884004533,
0.2025387734,
-0.3198072016,
-0.3799189031,
0.2252493501,
0.0794151649,
-0.0692512468,
-0.0404586419,
-0.4107767045,
-0.0367922932,
0.1142590493,
-0.0654444098,
-0.2774421871,
0.4453882277,
-0.6582233906,
-0.1140805259,
-0.2066013217,
0.1246073171,
0.3094580173,
-0.0601855628,
0.6898241639,
-0.1071889177,
-0.1043223813,
-0.0237040352,
0.1614932567,
0.1059172824,
0.2521358132,
-0.0619171336,
-0.0218072701,
0.1325561106,
-0.0970654115,
0.3906134963,
0.2692579627,
-0.2455550432,
0.122955583,
0.0484150127,
0.2200384736,
-0.1421555877,
-0.1716048419,
0.2465262711,
-0.0480539948,
-0.2438121885,
-0.3892954886,
0.4191540182,
0.1236990765,
-0.1645882577,
-0.0238753054,
0.4152303934,
-0.3110476434,
0.4646727145,
0.1561607569,
0.9113126993,
-0.0078607183,
0.2345097065,
0.5186924338,
-0.0617527924,
0.4894729555,
-0.0095812622,
0.1731456071,
-0.5283439755,
-0.1682912558,
-0.0331008062,
0.0881849229,
0.4627871811,
0.0580224581,
-0.5364350677,
0.2399697155,
-0.3912217915,
0.2114163488,
0.2306864858,
-0.3136183321,
-0.205983445,
-0.0830202848,
-0.1780002266,
0.1277356297,
-0.1371719837,
-0.0440355949,
0.1424728781,
0.0030100571,
-0.2885059118,
-0.0678680539,
-0.0769473165,
0.0834054351,
-0.0628142357,
-0.1911210716,
0.2525886893,
-0.3675816953,
-0.131425187,
0.4008276463,
-0.0509957932,
0.3365616798,
-0.0557377338,
0.0146305971,
0.0124467136,
0.5768906474,
0.4220663309,
0.0254874006,
0.289085269,
0.2225949019,
-0.436858505,
0.1974468678,
-0.1732631177,
0.1328161508,
0.1694142669,
-0.1281248629,
-0.3045637906,
-0.3216923177,
-0.1887325048,
-0.0231976379,
0.5512239933,
-0.2436754405,
0.163616091,
0.0177773573,
-0.3337284029,
0.1289940774,
0.0501292422,
-0.4344212413,
-0.0372700468,
0.3264216185,
0.3838406503,
0.2411162406,
0.5017527938,
0.0027804228,
-0.2591368258,
-0.2108038664,
0.2560579181,
0.1766138226,
-0.1942036599,
0.2298558801,
0.0308065806,
-0.124047868,
-0.0273752958,
0.3050592542,
-0.2627623379,
0.2473068088,
-0.3904230595,
-0.1886229366,
-0.3216285408,
-0.0290800408,
0.0688285455,
0.2327820063,
-0.0093810223,
0.0016342098,
0.1010663658,
-0.0681064576,
-0.3382883072,
0.1175850555,
-0.1297200024,
0.2020556182,
-0.0715716705,
0.1772919595,
0.2113335729,
0.0290539712,
0.2553545237,
-0.0975375026,
0.0531557687,
-0.2237868011,
-0.2728270292,
0.1388853639,
-0.0523211285,
0.0875078738,
0.0928160027,
0.0571674816,
0.031438794,
-0.0549910329,
0.5803857446,
0.2326286435,
-0.0635455251,
0.3907801807,
0.2354950756,
0.2966953218,
0.0209153127,
0.0687985644,
-0.1683450043,
-0.1664226651,
0.1027078256,
0.1612828672,
-0.1616089344,
-0.0974745974,
-0.1473097652,
0.1327580959,
-0.0591945909,
0.3267692924,
0.2609032094,
-0.3824683428,
0.0694856346,
0.0229503457,
0.1281662136,
0.0127921663,
-0.2233941853,
-0.0302222874,
-0.0069173956,
0.224061653,
-0.1683486551,
-0.0707306564,
-0.0896618292,
-0.0736718625,
0.1001850441,
0.2377683073,
0.0337203369,
-0.019868236,
0.0697143078,
-0.0085364142,
0.2273100466,
-0.2411219776,
0.1983726919,
0.7881483436,
0.010852946,
0.1049644575,
0.31182006,
-0.123670809,
-0.2566554248,
0.420521915,
0.0551536754,
0.3224038184,
0.1428227574,
0.0481615029,
-0.1898799986,
-0.5594493747,
0.1734785289,
0.4421020448,
-0.2386535257,
-0.0210111365,
0.2638190091,
0.167893365,
-0.2194878012,
-0.302013725,
-0.0745327398,
0.1214001775,
-0.4283000827,
-0.3740176558,
-0.1437657028,
-0.1775298715,
-0.2269163877,
0.0341128893,
-0.1101437286,
-0.149981603,
0.2586461306,
0.2017671615,
-0.1300491989,
-0.3070149422,
-0.0526935309,
0.153031528,
0.1076276675,
-0.0088383378,
0.2302136272,
-0.0299087632,
0.1863681078,
0.3295795619,
0.3427649736,
0.4794981778,
0.3407056034,
-0.0240050405,
0.0098227262,
-0.0801316127,
-0.1994137466,
0.1933805197,
0.1046940014,
0.0221261363,
0.3597526848,
0.1016306207,
0.1529676467,
-0.1677390635,
0.1909883469,
0.1368467808,
0.2225783169,
-0.3964396715,
0.6129393578,
0.093818225,
-0.1372224092,
-0.1272254884,
-0.2890140116,
-0.5428566337,
-0.0877765268,
0.352252394,
0.1733280271,
0.0877897069,
-0.2041131854,
0.1151213273,
0.2629584074,
0.2344811708,
0.0021386237,
0.0135823404,
-0.3263849914,
0.1923388094,
-0.6304774284,
0.208699584,
0.2041911781,
0.3036126196,
0.0564206652,
0.1142247841,
-0.1869625747,
-0.1500421166,
0.0442513488,
0.094607152,
0.2260415554,
0.0222318172,
-0.2734156847,
-0.0783468559,
0.0086826971,
-0.0272473004,
-0.1766599864,
-0.2924250364,
0.1309194267,
0.0034777697,
0.0521272905,
0.146266371,
-0.0420778543,
0.2074777335,
-0.0813662112,
0.4790027142,
0.0495017767,
0.1960100532,
0.0751969442,
-0.1914576739,
-0.2530288398,
0.0353809148,
-0.4711628258,
0.1517816931,
0.0167847816,
0.3804189563,
0.1531814188,
0.0599239953,
-0.0242062602,
0.1300339103,
0.1874480844,
0.0966626555,
-0.5188980103,
0.3065491617,
-0.2061153352,
0.052673392,
0.0639795288,
0.0099058365,
0.2042470574,
0.2391164154,
-0.2749712467,
-0.2630858421,
0.471888721,
-0.1594709605,
-0.1427525133,
-0.2226634026,
0.2285904139,
0.0669613257,
-0.3194410801,
-0.6203532815,
-0.1243279129,
0.3890031278,
-0.332931906,
-0.2040133923,
0.1022422314,
-0.1634567678,
0.1965847164,
-0.39013201,
0.2051621825,
-0.0223586634,
0.0916209221,
0.01266436,
-0.4424331486
] |
https://github.com/huggingface/datasets/issues/3181 | `None` converted to `"None"` when loading a dataset | Thanks for reporting.
This is actually a breaking change that I think can cause issues when users preprocess their data. String columns used to be nullable. Maybe we can correct https://github.com/huggingface/datasets/pull/3158 to keep the None values and avoid this breaking change ?
EDIT: the other types (bool, int, etc) can also become nullable IMO | ## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 54 | `None` converted to `"None"` when loading a dataset
## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
Thanks for reporting.
This is actually a breaking change that I think can cause issues when users preprocess their data. String columns used to be nullable. Maybe we can correct https://github.com/huggingface/datasets/pull/3158 to keep the None values and avoid this breaking change ?
EDIT: the other types (bool, int, etc) can also become nullable IMO | [
-0.0925697833,
0.0141061703,
0.0318011977,
0.3350735307,
0.506174624,
0.084462449,
0.4042354524,
0.1468732059,
0.0264111813,
0.4644888639,
-0.0690369681,
0.4651447833,
-0.0235638227,
0.0580343753,
0.0141550768,
-0.1078598872,
0.1389272809,
0.346016109,
-0.2450709194,
0.1766274571,
-0.1167033315,
0.262955457,
-0.2267193496,
0.0657161996,
-0.2064883411,
0.0062075891,
-0.0746438652,
0.0596328564,
-0.0242877118,
-0.5001732111,
0.0517672151,
-0.2451472431,
-0.1269175112,
0.579105556,
-0.0001208361,
-0.0412968993,
0.4041319489,
0.2556311488,
-0.4339710772,
-0.4409272373,
-0.1690385789,
-0.2431315333,
0.2595786154,
-0.0536116771,
-0.0550302006,
-0.203764379,
-0.1639197618,
-0.4882372916,
-0.1923491657,
0.3460761905,
0.1885928959,
0.4674660861,
-0.317702204,
0.0804946274,
0.2992605567,
0.0863137692,
-0.0305650234,
-0.1044960767,
0.0564730428,
0.2811675966,
0.1069604829,
0.1737930328,
-0.2837572098,
-0.2602709234,
0.2038850039,
0.28770715,
0.0291301701,
-0.2398703992,
0.2964885533,
0.3595558107,
0.2978078723,
-0.3920553029,
-0.2797029018,
-0.2091311514,
0.3052698076,
-0.3615010083,
0.1830776483,
0.2338899821,
-0.0326638259,
0.1523963809,
-0.0202067066,
-0.113143675,
-0.0767651424,
-0.0578927584,
-0.5974444747,
0.1144129261,
-0.2311333269,
-0.0395778194,
0.0025664065,
-0.1645369083,
-0.170690462,
-0.3382855654,
-0.2224289179,
0.1699276716,
-0.1779348999,
0.0486816354,
-0.1312077194,
0.145927757,
0.0390100889,
-0.1970780194,
0.1111877039,
-0.0128377257,
0.0027538931,
0.1595491618,
0.2065307796,
0.2574146986,
0.2473937869,
0.0031147576,
0.3443647623,
-0.0548963547,
0.2380190939,
0.1103179827,
0.161287725,
0.1115376204,
0.2388520837,
0.001050066,
0.513553977,
-0.29730317,
-0.3329549134,
0.2025704831,
-0.3289471269,
0.1842175275,
-0.079511784,
0.0390719846,
-0.1184932664,
0.5361999869,
0.1446802318,
0.2098580897,
-0.1342795342,
-0.2786279321,
-0.2672535777,
-0.1559936851,
0.0178585742,
-0.1179834008,
0.0074169803,
-0.4730786383,
-0.0175565165,
0.372633338,
-0.0143556716,
-0.0484061204,
-0.2207677811,
-0.1837185323,
-0.1471925825,
0.4730445743,
-0.1016087905,
0.1996737868,
0.2124488205,
-0.351093024,
-0.0486035123,
0.7331665754,
-0.2416219264,
-0.004501618,
-0.2779672742,
0.1253990531,
-0.325365603,
0.0574431792,
-0.2498321533,
0.2698930502,
0.0761951506,
0.1143142655,
0.0696472004,
-0.3928347826,
-0.0912579671,
-0.2012570351,
-0.0478904583,
0.4467955232,
-0.6931034327,
-0.1780738086,
-0.0022079358,
-0.4130170643,
0.1215188205,
-0.087843582,
0.1393419057,
0.0258683395,
-0.1643547416,
0.1067161411,
0.1845290214,
0.0203626845,
-0.2249408513,
0.3387204409,
-0.2723236084,
0.1468422562,
-0.0364807881,
-0.1123028323,
0.0156871323,
0.0228153765,
0.0611237362,
-0.0380128138,
0.0056861229,
0.1418934911,
-0.4294869006,
-0.1946582049,
0.4210461676,
-0.0933135524,
0.0575587153,
0.3305713832,
-0.0739545971,
-0.2981681228,
0.152140677,
-0.174344033,
0.2368209213,
0.1598236114,
0.2988969088,
0.1115309224,
0.0041720294,
-0.3726209104,
-0.600271225,
0.0219645239,
-0.093964383,
0.1801317781,
-0.2249453664,
-0.2469421476,
-0.0244354643,
0.0261533018,
0.0998708978,
0.2598114014,
0.0632568598,
0.163902536,
-0.2833769321,
0.1378242224,
-0.1888093501,
0.1674936712,
-0.1904387623,
0.2553906441,
-0.2758712769,
0.0419883877,
0.201188162,
-0.095788084,
-0.244081825,
0.3246854246,
0.1857875884,
0.0188870057,
-0.1740732789,
0.4714583457,
-0.05061014,
0.0628380179,
-0.4059760571,
-0.0364154875,
0.206448406,
-0.1051704437,
0.1313942969,
0.3298895657,
0.2187012136,
0.0600045286,
-0.2549961805,
0.4667553604,
-0.125975728,
0.316721946,
-0.0975208208,
0.1255904138,
-0.0273457933,
0.0455781482,
-0.2536078393,
-0.3578539789,
-0.0447338223,
0.1275700629,
0.1547267139,
0.3753055632,
-0.4400849342,
0.1694968641,
0.070228897,
-0.4307413697,
0.0788144469,
0.2739157379,
-0.3712772727,
-0.0420082211,
0.0794425309,
0.2453398108,
0.4287742674,
0.1703189313,
0.0790108219,
0.1073718593,
-0.1641750634,
-0.0848898143,
0.37516433,
0.0416990258,
0.0243361425,
0.2593085766,
0.2786155939,
0.0003787211,
-0.1593971848,
0.1922777593,
0.0015846648,
0.2867144048,
-0.7476944327,
0.0660023466,
-0.494585067,
0.180305481,
-0.1113062128,
-0.1293588877,
-0.0935829878,
-0.4681960046,
-0.205417335,
-0.0700246543,
-0.0972488075,
-0.0377713181,
-0.3114905953,
0.1449470967,
-0.1971795559,
-0.0349922664,
-0.2296809554,
0.1037685871,
-0.4430876672,
0.0093423221,
0.1142369732,
0.0212428682,
-0.0110165896,
-0.1004713848,
-0.1658875644,
-0.2410220206,
-0.2905339003,
-0.0224507209,
-0.3732767105,
0.4957594275,
0.2103519589,
0.2159152776,
-0.0485329777,
0.1548430622,
0.2097965628,
-0.0304252803,
-0.2236604095,
0.2784523666,
-0.1508897841,
0.1539647281,
-0.3582234085,
-0.3771107197,
-0.1389287263,
-0.048551742,
0.0010642285,
-0.1114206985,
0.2199182659,
0.2147960067,
0.1145826951,
0.2423040122,
-0.0263044722,
-0.0214717053,
-0.1379005164,
-0.2705385983,
0.4563383758,
-0.0827284381,
-0.243950367,
0.2422799617,
0.0957863703,
0.022646293,
0.0707835928,
-0.3880718946,
0.166821003,
-0.0506012402,
0.2875539064,
-0.0281956606,
-0.0325898714,
0.0860670805,
0.3021440506,
-0.0281827115,
0.0014261079,
-0.1887271106,
-0.1705160141,
-0.1870359182,
0.0568096414,
0.1416851878,
0.1931552738,
-0.1057235673,
0.3625071645,
0.0679905489,
0.0275853332,
0.0944432169,
-0.2436354905,
0.4361566305,
-0.2267598361,
-0.1062295064,
-0.2557299435,
0.0475611836,
0.0811176002,
0.1872618794,
0.05487407,
-0.0719178319,
0.0966785103,
0.1540574729,
-0.3095155954,
-0.0500436649,
0.1836413741,
-0.3523981869,
0.1562965661,
-0.0385699198,
0.1641190797,
-0.0363563001,
-0.2617685497,
-0.0319387503,
0.2857228816,
-0.000878712,
-0.1559460163,
-0.508192122,
-0.0117518613,
-0.2316499054,
0.306324482,
-0.0029043141,
0.2044735849,
-0.0256489925,
-0.3003772795,
0.2136054784,
0.0992727801,
0.5846641064,
0.0784841776,
-0.1320877373,
0.4684827328,
-0.0028917633,
-0.4228760004,
-0.1208188161,
-0.421309948,
-0.1099700853,
-0.0783813819,
0.2318508178,
-0.3401202261,
-0.3785939813,
0.3176812828,
0.1008415967,
-0.0285794847,
-0.0183039978,
-0.4210177064,
-0.060736578,
0.2063545287,
-0.130611971,
-0.3123592734,
0.4693643451,
-0.6368062496,
-0.0092992559,
-0.2770090997,
0.1126043648,
0.3140425384,
-0.1338111311,
0.6413248777,
-0.1294858158,
-0.0960841775,
0.0734419078,
0.0911655948,
0.1243879944,
0.3048104346,
-0.150854528,
-0.0806937963,
0.1815925092,
-0.1051590666,
0.4360655248,
0.3189465702,
-0.2489740402,
0.1937720031,
0.0385998376,
0.2064350247,
-0.2457353771,
-0.2322505862,
0.4299970567,
0.0165675133,
-0.2137207687,
-0.3589970767,
0.4236820638,
0.2013372928,
-0.062070068,
0.0580900051,
0.5248283148,
-0.2907173932,
0.3314019144,
0.2319194525,
0.9528858066,
-0.1588720977,
0.2552495599,
0.4354831278,
-0.1948357522,
0.5626419783,
0.0762279555,
0.0405489132,
-0.5319222212,
0.0402479507,
-0.1143766567,
0.100942716,
0.5428652167,
-0.0414578877,
-0.4288754761,
0.2921999693,
-0.3906734586,
0.2351192981,
0.1724357605,
-0.254717052,
-0.3188445568,
-0.1319424212,
-0.2051845193,
0.0865181386,
-0.1582882553,
-0.0500460453,
0.1312185675,
0.1043802276,
-0.2314612716,
0.0075254617,
-0.1381023228,
-0.0427182689,
0.0647738948,
-0.2840436995,
0.3377285898,
-0.4560093284,
0.0224944334,
0.5505775213,
0.1392568797,
0.2994502783,
-0.1146862134,
-0.1444672644,
-0.234471336,
0.4731492102,
0.3767615259,
-0.0127834696,
0.1832544208,
0.2620531619,
-0.3318089843,
0.1257361174,
-0.1978037953,
0.1971975714,
0.0400419347,
-0.1268520504,
-0.1164907068,
-0.3904338181,
-0.1499111801,
-0.1120360941,
0.6328276992,
-0.2587426007,
0.1054160595,
0.0522447452,
-0.1790496111,
0.0799599886,
0.0177675541,
-0.4310016632,
-0.0383069851,
0.4051238298,
0.2932926416,
0.157274887,
0.5372493863,
0.1082594469,
-0.2451800853,
-0.1699834168,
0.3770898581,
0.1394531876,
-0.1709412485,
0.1603765041,
0.0233772323,
-0.0299317092,
-0.076063782,
0.3478430808,
-0.2051891088,
0.1719944626,
-0.3381632566,
-0.2063426524,
-0.3026552498,
-0.0508550704,
0.2024924457,
0.2170370072,
0.1139521077,
-0.1666571945,
0.011864353,
-0.0817761719,
-0.2523366809,
0.233470723,
-0.069951795,
0.0953162834,
0.0098469779,
0.1914313436,
0.1991228908,
-0.133848846,
0.2100424916,
-0.0289704073,
0.0535471588,
-0.1365864724,
-0.3429217935,
0.1495270729,
-0.0151639832,
0.0397692509,
0.1230344623,
0.0218286868,
0.0123940799,
-0.0936121717,
0.5141456127,
0.2742812932,
-0.0258309823,
0.319981724,
0.2434414774,
0.2515565753,
-0.0687408522,
0.0892061815,
-0.1165923253,
-0.2133938372,
0.0521914437,
0.2112486809,
-0.068238318,
-0.120103009,
-0.1143168882,
0.19207564,
0.0535963625,
0.1709113121,
0.3326611519,
-0.4873945117,
0.1011554971,
0.0329051502,
0.0608674474,
0.0854211599,
-0.2761223912,
0.0014175323,
0.0279254951,
0.145160079,
-0.0474096835,
-0.0852280557,
-0.0692134202,
0.0656726733,
-0.005764877,
0.2250237018,
0.0845790431,
0.0518672839,
-0.0375090465,
-0.0695901364,
0.2305230945,
-0.1502047181,
0.1909664571,
0.7501986623,
0.0393001735,
0.1201361492,
0.3558124304,
-0.0240746085,
-0.3501425982,
0.3911514282,
0.1793417782,
0.3495143652,
-0.016942285,
0.1550505757,
-0.2591961622,
-0.5651345849,
0.3208869398,
0.466694504,
-0.2295353413,
-0.0171769243,
0.2275172919,
0.3597538471,
-0.2909449935,
-0.31183213,
-0.0805287436,
0.0667821839,
-0.4392155707,
-0.4047951996,
-0.2811000645,
-0.1536910534,
0.001904696,
0.015177927,
-0.1304220706,
-0.2033640742,
0.3682231307,
0.1653848737,
-0.1194829196,
-0.4513090551,
-0.1098974273,
0.2230440229,
0.1678928882,
0.0493621454,
0.2433781922,
-0.0881606042,
0.234235689,
0.3473146558,
0.4235013425,
0.4523072839,
0.3185661137,
0.0528665148,
-0.0249964725,
-0.0295616109,
-0.1994384229,
0.319127202,
0.2234208584,
-0.0191155262,
0.3850713968,
0.1220059171,
0.1145303398,
-0.0971530974,
0.0939515457,
0.09823329,
0.2956769466,
-0.4408598244,
0.6095946431,
-0.0581846349,
-0.1275602728,
-0.1101692095,
-0.1907871366,
-0.4368729293,
0.0373681672,
0.4147049487,
0.1369875222,
0.090680629,
-0.0892082527,
0.0801558495,
0.4265812039,
0.2308384478,
0.1467143595,
-0.1475189924,
-0.3431471586,
0.0578962192,
-0.6276559234,
0.1852757931,
0.1244159192,
0.3200243413,
0.0942432508,
0.05848502,
-0.1334973276,
-0.0457395539,
-0.008415428,
0.0322977006,
0.1787129939,
0.0228257459,
-0.265737921,
-0.1116235107,
0.1599682719,
-0.0693867281,
-0.2534708381,
-0.2477269918,
0.2489589006,
0.1396608204,
-0.0757379457,
0.0721977577,
0.2683251202,
0.0176429711,
-0.1238272265,
0.2849808931,
0.1078125983,
0.1218609661,
0.1811699867,
-0.1892656982,
-0.2728759646,
-0.0216819532,
-0.3770651519,
0.2330057472,
-0.121189408,
0.3214799166,
0.0958892927,
-0.1015912518,
-0.0476850234,
0.1031399071,
0.1886311769,
0.2271100581,
-0.6623657942,
0.3295575678,
-0.2242809534,
0.0217199624,
0.1350514144,
-0.0108767133,
0.2827314436,
0.3049893677,
-0.2642276287,
-0.176573962,
0.4575034976,
-0.1586322784,
-0.1806574464,
-0.1061314195,
0.1172633097,
0.1061085835,
-0.3927952051,
-0.6978124976,
-0.0867833644,
0.3952881098,
-0.4080301523,
-0.1954436153,
0.1357732564,
-0.1795555353,
0.2085704952,
-0.4266300201,
0.185177967,
-0.0050901072,
0.1224979833,
0.119206056,
-0.3642124534
] |
https://github.com/huggingface/datasets/issues/3181 | `None` converted to `"None"` when loading a dataset | So what would be the best way to handle a feature that can have a null value in some of the instances? So far I used `None`.
Using the empty string won't be a good option, as it can be an actual value in the data and is not the same as not having a value at all. | ## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 58 | `None` converted to `"None"` when loading a dataset
## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
So what would be the best way to handle a feature that can have a null value in some of the instances? So far I used `None`.
Using the empty string won't be a good option, as it can be an actual value in the data and is not the same as not having a value at all. | [
0.005276327,
-0.0747643858,
0.0570605546,
0.3098501265,
0.1798288673,
0.0002796789,
0.4044808149,
0.1222434342,
-0.0889380276,
0.4486834705,
0.2950796783,
0.3863013089,
-0.1925676167,
0.1190018207,
-0.0907520205,
0.0909653828,
0.176432997,
0.4477601051,
0.0782448798,
0.0410379358,
-0.1360661387,
0.0760156289,
-0.1882273257,
0.0911549553,
-0.3578630686,
-0.1168848351,
0.0977276638,
-0.0800808817,
0.2879969776,
-0.4692049325,
-0.0594013594,
-0.1033077687,
-0.2546672523,
0.4687267244,
-0.000126619,
0.0444999374,
0.5570528507,
0.1430193931,
-0.426938802,
-0.3813508749,
-0.2314835638,
-0.3043969274,
0.1865389496,
-0.1271430999,
-0.1492885798,
-0.0245638043,
-0.0808004215,
-0.4146335423,
-0.4143240154,
0.1533216834,
0.0985201746,
0.4720104933,
-0.5315293074,
0.1751338392,
0.3666885197,
0.0809058249,
0.0356245004,
-0.1752464175,
0.0785778612,
0.3048977554,
0.0310235228,
0.3250705004,
-0.1950265169,
-0.251352042,
0.4226879478,
0.2374098301,
0.1617751271,
-0.119550094,
0.0962229222,
0.2393036187,
0.3973615468,
-0.1452641189,
-0.3584757745,
-0.2358644605,
0.1254954934,
-0.4328291714,
0.1608404815,
0.1340258718,
-0.0634758621,
0.1368526816,
0.0298912246,
-0.102254793,
-0.0794482529,
0.0594032221,
-0.8688828945,
0.1934465766,
0.0155552402,
0.0415434055,
-0.1896171719,
-0.3825517595,
-0.2090657353,
-0.314393729,
-0.0094224419,
0.1599763334,
0.0671234354,
0.0412596576,
0.1621509492,
0.0631591156,
0.0158262905,
-0.2179717422,
0.0761621371,
0.0622985773,
-0.0429131426,
0.3731671572,
0.1922518611,
0.2337041348,
0.4216106236,
-0.1353509426,
0.6016104221,
0.0283081345,
0.1431594342,
0.2019733489,
0.0583040044,
0.127173841,
0.2717841566,
0.0483823791,
0.7048225999,
-0.3317322135,
-0.3835401833,
0.3324644268,
-0.370483011,
0.2223230302,
-0.0461364686,
0.0861052498,
-0.1115739122,
0.5990823507,
0.254234165,
0.0986004844,
-0.1660551429,
-0.3170441091,
-0.2582538724,
-0.326826185,
0.1182780489,
-0.1568400115,
0.0247787554,
-0.2988595068,
0.1749486327,
0.1153726727,
0.0383167416,
-0.0324216448,
-0.1229848117,
-0.2014871687,
-0.2004277855,
0.4103603363,
-0.1164958254,
0.1337820888,
0.0880191773,
-0.3038032651,
-0.0600881353,
0.7759234905,
0.0075771324,
-0.228005901,
-0.146044001,
0.0643530637,
-0.5251386762,
0.0584548973,
-0.0432200804,
0.4700010121,
-0.009671024,
-0.063875027,
-0.0463313609,
-0.1369735003,
-0.0905411914,
-0.2392630428,
-0.001613925,
0.5341786146,
-0.7298119068,
-0.1395882368,
-0.1797448695,
-0.3280591369,
0.0451993831,
-0.1848613769,
0.0697983503,
0.0019274169,
-0.0319766328,
0.1766756475,
0.2246388346,
-0.0696317926,
-0.2860866487,
0.2071072608,
-0.3047314584,
0.1104111448,
-0.0211095121,
0.1966665387,
0.043054577,
-0.0691104829,
0.0491735749,
0.0290840138,
0.0308924541,
0.1456042975,
-0.4907611907,
-0.1103946045,
0.5216983557,
-0.0465309471,
0.1093512774,
0.0806444883,
-0.0680862144,
-0.1621977687,
0.0218977667,
-0.0084300665,
0.2404970676,
0.0609773919,
0.441490829,
0.2434707582,
-0.1540138423,
-0.1405383348,
-0.6653053164,
0.2005896717,
-0.1546671391,
0.0394711643,
-0.183522746,
-0.4091541469,
0.0370100476,
0.0824956,
0.1448735893,
0.159518525,
-0.0062753484,
0.2451792359,
-0.3078082204,
0.1278139949,
-0.2210235745,
-0.03273445,
-0.0250011384,
0.2186090499,
-0.2116207778,
0.1118600816,
0.2545873225,
-0.1314556599,
-0.3022212982,
0.189335525,
0.2839814723,
0.1301604956,
-0.0762681663,
0.3987167478,
-0.0922462195,
0.1341899186,
-0.448300004,
-0.0576364137,
0.3796611428,
0.0031060067,
0.1720395684,
0.4482934177,
0.2809911966,
0.109237045,
-0.5051980019,
0.5239848495,
0.1982154846,
0.240632087,
-0.0612326227,
0.018894013,
-0.0197963733,
0.0670289025,
-0.2754275203,
-0.3605766594,
-0.1200106442,
0.1125276163,
0.1867103577,
0.4695430398,
-0.535384655,
0.1674607545,
-0.0235618707,
-0.4500311315,
0.2033386379,
0.1099344566,
-0.3153222501,
0.0647955537,
0.3532354236,
-0.0719848052,
0.3230211139,
0.2383096218,
-0.0007330701,
0.0283334423,
-0.0363556705,
0.1017810181,
0.3486510217,
0.1213217303,
-0.0373964608,
0.2905023992,
0.271409601,
-0.1900575459,
0.0731538534,
0.0752758533,
0.2368111759,
0.3264059424,
-0.6416155696,
-0.1415084749,
-0.4613530934,
0.1695275158,
-0.1044525057,
-0.0669712573,
-0.2251283526,
-0.3396618962,
-0.0734307915,
0.03046076,
-0.3658468127,
0.0752384812,
-0.3795764148,
0.0681327805,
-0.2285345346,
-0.226394698,
-0.0052646305,
0.0603659861,
-0.4304727912,
-0.0966656208,
0.0705837905,
0.2258508503,
0.0468608029,
0.0673925802,
-0.298424989,
-0.151424557,
-0.2645202279,
-0.0347754471,
-0.1552938223,
0.4667359293,
0.0827754736,
0.2185356319,
-0.0483035184,
0.1004243568,
0.2149033695,
0.0920617804,
-0.223839879,
0.2418254912,
-0.0157559663,
0.3053977489,
-0.2746042907,
-0.2883380651,
-0.1341991723,
-0.2280352563,
-0.0841100961,
-0.1444776654,
0.4153593183,
0.0209519621,
-0.0075354287,
0.2079821229,
0.2962352931,
-0.2801600397,
0.053167142,
-0.156053409,
0.4223110676,
0.002574791,
-0.0990328267,
0.2433500886,
-0.0596642718,
-0.1800005883,
0.2424948066,
-0.4049967825,
0.0352220125,
0.1385172755,
0.4844272733,
0.1061694995,
-0.2149812579,
0.2519586682,
0.3648093939,
0.0010497883,
-0.0293132346,
-0.243230015,
0.1559977084,
-0.1029720306,
0.0354992114,
0.3438743353,
0.1021159813,
0.0648596138,
0.3889152408,
0.139579922,
0.0192501768,
0.0792009458,
-0.1046049371,
0.0983700082,
0.0985657051,
0.057949435,
-0.3433536291,
0.2516414225,
-0.1628451943,
0.3270740211,
0.0466327369,
-0.0892817527,
-0.0333799161,
-0.1559451669,
-0.3599749804,
-0.1147126332,
0.3168362379,
-0.4598861933,
0.3307878673,
-0.2101026922,
-0.0563821718,
-0.0694695711,
-0.0794720426,
-0.0375754014,
0.3001840413,
0.0594143383,
-0.0308841281,
-0.410543412,
0.0144538442,
-0.1104096323,
0.4055954814,
-0.046818383,
0.1884250641,
0.1114502549,
-0.4415339231,
0.1076902524,
0.0481352247,
0.541795969,
0.118390426,
0.2107530385,
0.4560903013,
0.0078349691,
-0.2400386631,
-0.1788637787,
-0.3406682611,
-0.0638427213,
-0.2246967554,
0.2584402561,
-0.3517667949,
-0.3261955678,
0.1803095937,
0.0698907226,
-0.2264515609,
0.0634004399,
-0.4491863251,
-0.0559822656,
0.0824383348,
-0.0346140973,
-0.2520556748,
0.3510839939,
-0.2673201561,
-0.1619370431,
-0.4236398935,
0.114696756,
0.4106281102,
0.016057631,
0.6857105494,
-0.1788097322,
0.1066423878,
0.1135711893,
0.0463453457,
0.2770233154,
0.3554305136,
0.1311846524,
-0.1314435899,
0.0928043425,
-0.0417307578,
0.5633952022,
0.3986974359,
-0.1804461032,
0.1721965373,
-0.1181592196,
0.1776444465,
-0.1672330648,
-0.1589106321,
0.1112166792,
0.0064547756,
-0.2001433671,
-0.2303117216,
0.4934198558,
0.1742523313,
-0.1646381617,
-0.0984196514,
0.3978414834,
-0.3813028932,
0.3690218925,
0.1977033168,
1.0144433975,
0.0523974858,
0.2068290412,
0.4344338179,
0.0850217193,
0.5083348155,
-0.0919646174,
0.0525411107,
-0.4123676717,
0.0384024344,
-0.0350648947,
0.2041110843,
0.6257312298,
0.1719181985,
-0.5202737451,
0.4367232323,
-0.4847215712,
0.185233593,
0.1934986264,
-0.3581541479,
-0.1627477854,
-0.1009172276,
-0.2319175452,
-0.0302371755,
-0.2557498515,
0.0313051976,
-0.0038704337,
0.0205149539,
-0.3222240806,
-0.0337475128,
0.0400603004,
-0.210626021,
-0.1871065646,
-0.1252560765,
0.1165249571,
-0.4627633095,
-0.3014971316,
0.3595088124,
-0.1932479739,
0.3782928586,
0.1043782532,
-0.0724494457,
-0.0462678224,
0.4817301333,
0.2615619004,
-0.0688363761,
0.4198259711,
0.1127943471,
-0.4972496033,
0.1175013557,
-0.318608731,
0.2683356702,
0.2489861846,
-0.2360780984,
-0.1126233488,
-0.2109330744,
-0.3002743721,
0.0347837023,
0.4922627509,
-0.1724571735,
0.0521053635,
0.0636548996,
-0.3586991131,
-0.0063745305,
-0.1911448687,
-0.3070549369,
0.1041028872,
0.1522561014,
0.2393838018,
0.1591659486,
0.4582134485,
-0.0886419341,
-0.1058808044,
-0.0700417608,
0.4909438193,
0.1906725913,
-0.2443716377,
0.3192385733,
-0.059458632,
-0.2542037368,
-0.2683806717,
0.3802246451,
-0.1095877215,
0.2768276334,
-0.3111453056,
-0.1476846188,
-0.3808201551,
0.0746449456,
0.4283548892,
0.1498578638,
-0.1396254152,
-0.0147727011,
0.0391180515,
-0.1728666872,
-0.1992813498,
0.0627605468,
-0.332126528,
0.3848970532,
0.0142260091,
0.2248733789,
0.0679619238,
-0.2296529263,
0.1214204207,
-0.1848006994,
0.0798249543,
-0.0756587163,
-0.2716993392,
0.2369350493,
0.0343101844,
0.0184634589,
0.2808499038,
-0.0853314623,
0.1223421022,
0.0969007015,
0.4586502612,
0.3146176338,
-0.0554413311,
0.4785766006,
0.2801251709,
0.3617626131,
-0.3139581084,
0.1501271427,
0.0542416349,
-0.0846857056,
-0.0315217264,
0.1962583214,
0.0042314213,
-0.0744582191,
-0.0206657015,
0.1227748916,
-0.2850188017,
0.2324121445,
0.1844214946,
-0.2782076895,
0.0529977903,
0.1648808271,
-0.0964042395,
0.1105199158,
-0.2691309452,
0.0819948316,
0.1630112678,
0.1313851774,
-0.2339675575,
-0.1513419598,
-0.112395592,
-0.1503056288,
0.0348043032,
0.2824158072,
0.0410513952,
0.0676706284,
-0.2366560251,
0.0138042383,
0.1091087535,
-0.1321131289,
0.2192827165,
0.750289917,
0.0029249075,
0.1226048544,
0.1066190675,
0.1219809055,
-0.1504906267,
0.3046957254,
0.1521822512,
0.3409827352,
0.1845248193,
0.0386350676,
-0.1742298454,
-0.5333321095,
0.255538106,
0.5312304497,
-0.2374359071,
0.0148309311,
0.2544935644,
0.063758269,
-0.2495942414,
-0.3730392754,
0.1884824038,
0.0086050341,
-0.419416368,
-0.3194286525,
-0.1730456203,
-0.1884970963,
-0.3404435515,
0.0904545635,
-0.0803665966,
-0.1995707899,
0.2552834153,
0.3085454702,
-0.0301185157,
-0.3297168016,
0.0474065468,
0.2813747823,
0.3248957694,
-0.081718646,
0.310570389,
0.2438011914,
-0.0080170883,
0.4408811331,
0.3323016763,
0.307136178,
0.1729662418,
-0.0379834585,
0.2356577963,
-0.1709994972,
-0.1137127876,
0.0294422563,
-0.0731660947,
-0.1336954534,
0.4501709342,
0.0008781396,
-0.0374017023,
-0.0570590608,
0.2142859846,
-0.0039191558,
-0.0384785384,
-0.5821756124,
0.6755993962,
0.0479068421,
-0.2861652374,
-0.1237488315,
-0.1609871387,
-0.3841571808,
-0.1705307811,
0.3413451612,
0.2896796167,
0.1395261735,
0.0914078951,
0.0324758999,
0.1418233663,
0.0839967355,
0.0222261008,
-0.1313876212,
-0.3025808632,
0.1240179613,
-0.8422654271,
0.184780851,
0.1551353186,
0.0936060324,
0.3052561879,
0.0502804369,
-0.1951329112,
-0.0880604088,
-0.0790025741,
0.051098235,
0.1071755588,
0.0103198905,
-0.2289356589,
-0.1731352508,
-0.0318130851,
-0.1329999864,
-0.1266945153,
-0.2744405866,
0.0603948347,
0.0763806626,
-0.1085182652,
0.1260154545,
-0.038759429,
0.2614099383,
-0.0495875515,
0.4094206691,
0.0789466426,
0.1097980812,
0.2823970914,
-0.0748311803,
-0.092574507,
0.1822638661,
-0.5996142626,
0.1040255353,
-0.0679330975,
0.3175718784,
0.0603138655,
0.0057790326,
-0.0486683846,
0.0388119966,
0.1441982239,
-0.0962211117,
-0.5131344199,
0.3167127371,
-0.3554194272,
0.1094932929,
0.123930037,
0.08735466,
0.1044348627,
-0.0290338919,
-0.4856886864,
-0.2199893743,
0.2872323692,
-0.1559643894,
-0.0958890319,
-0.2295272499,
0.2944354117,
0.1883865893,
-0.1715403497,
-0.6140263081,
-0.2873886824,
0.4484288692,
-0.3673342168,
-0.2371586561,
-0.0768134519,
-0.0462471917,
-0.0335202031,
-0.3488057554,
0.1706572026,
-0.1330341846,
0.1394733787,
0.1190321445,
-0.3995998502
] |
https://github.com/huggingface/datasets/issues/3181 | `None` converted to `"None"` when loading a dataset | Hi @eladsegal,
Use `None`. As @albertvillanova correctly pointed out, this change in conversion was introduced (by mistake) in #3158. To avoid it, install the earlier revision with:
```
pip install git+https://github.com/huggingface/datasets.git@8107844ec0e7add005db0585c772ee20adc01a5e
```
I'm making all the feature types nullable as we speak, and the fix will be merged probably early next week. | ## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 52 | `None` converted to `"None"` when loading a dataset
## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
Hi @eladsegal,
Use `None`. As @albertvillanova correctly pointed out, this change in conversion was introduced (by mistake) in #3158. To avoid it, install the earlier revision with:
```
pip install git+https://github.com/huggingface/datasets.git@8107844ec0e7add005db0585c772ee20adc01a5e
```
I'm making all the feature types nullable as we speak, and the fix will be merged probably early next week. | [
-0.1710931063,
-0.0119528696,
0.0143993944,
0.2961726189,
0.4306810498,
0.0251634512,
0.3792949319,
0.2542135417,
-0.0140083693,
0.486613065,
-0.0783693343,
0.542630434,
-0.0509568267,
0.1476790011,
0.0132165775,
-0.0821947083,
0.1226771474,
0.3703927696,
-0.2146403491,
0.0617908239,
-0.0963979736,
0.225514859,
-0.1402021497,
0.0674670637,
-0.2287076414,
0.0866095498,
0.0323506147,
-0.0400419943,
-0.0447054021,
-0.5660228133,
0.02359665,
-0.2083916664,
-0.1109047532,
0.5356739163,
-0.0001116147,
0.0529083982,
0.4322143793,
0.2323062718,
-0.3327468634,
-0.4761778712,
-0.1666376591,
-0.2859125137,
0.2685655057,
-0.0458771847,
-0.1062008888,
-0.2190005928,
-0.0831994861,
-0.4019645154,
-0.2507115006,
0.3426716328,
0.257868886,
0.4955495894,
-0.3780506253,
-0.0329091065,
0.340432018,
0.0659532622,
-0.0897971019,
-0.121790275,
0.0322994813,
0.3072839677,
-0.047399085,
0.2761009634,
-0.2294467092,
-0.2025158405,
0.2580199242,
0.2006511092,
0.1071211025,
-0.268566668,
0.2597988844,
0.3976723254,
0.3670587838,
-0.3031965196,
-0.2636415958,
-0.1467573047,
0.1452922821,
-0.3436305821,
0.1324823052,
0.1910246462,
-0.0941174105,
0.0685336292,
0.0357552245,
-0.0011445641,
-0.0239597,
-0.0902934447,
-0.6481680274,
0.1719691157,
-0.1995630413,
-0.0421915539,
0.1078099087,
-0.2202780694,
-0.1949972361,
-0.2522362471,
-0.2234058976,
0.0801571235,
-0.1065791696,
0.1003682911,
0.0845003873,
0.0046975249,
0.0115763852,
-0.095128797,
0.1015335396,
0.0424099229,
-0.0822676569,
0.1687574238,
0.1709257364,
0.3348127306,
0.2328550518,
-0.0728574172,
0.3799548149,
0.0193398632,
0.1769856364,
0.1070191637,
0.2127699703,
0.0343353003,
0.1755048186,
-0.0000448192,
0.5437865853,
-0.3101891875,
-0.3896657526,
0.1163258851,
-0.2785485685,
0.2316960096,
-0.0284230132,
0.1327221692,
-0.0441335887,
0.5136786103,
0.1059888005,
0.1423939466,
-0.2512949109,
-0.2313295603,
-0.3500552475,
-0.0927750543,
-0.0683216676,
-0.2266497314,
0.0656907111,
-0.3247502744,
0.0508018732,
0.2728203237,
0.0716437548,
0.0055446746,
-0.2475888431,
-0.1382152587,
-0.0585426167,
0.4336972833,
-0.1161393151,
0.1596886218,
0.2403086275,
-0.3428749442,
-0.1022366285,
0.6999925971,
-0.2216652632,
-0.053275615,
-0.2450824827,
0.2223020345,
-0.2760619521,
-0.0201239325,
-0.2484145612,
0.3693505526,
-0.0279350299,
0.07732144,
0.087412715,
-0.3635737598,
-0.0147846378,
-0.1839382946,
0.0209497456,
0.3797964454,
-0.6199553609,
-0.2599909306,
-0.0703685507,
-0.5042175651,
0.1629290879,
-0.0413955674,
0.0530340932,
-0.0673073679,
-0.199813962,
0.1769287735,
0.2583927214,
-0.0766337737,
-0.2854512632,
0.2802450359,
-0.2618688941,
0.1013080701,
-0.021379631,
-0.0898157954,
0.0602623448,
0.0344469585,
0.0802698582,
-0.0696556494,
0.0330554023,
0.1684586555,
-0.4463490248,
-0.1742887348,
0.4488964379,
-0.0532703549,
0.1189141646,
0.1514577717,
-0.0131308958,
-0.3364874721,
0.1566734165,
-0.099623926,
0.1135945767,
0.1214237064,
0.3474075496,
0.0477839373,
0.0446910262,
-0.2841203213,
-0.5288828611,
0.1509968042,
-0.1891064942,
0.2401489913,
-0.1580389589,
-0.2939599454,
-0.0306463297,
-0.0047351886,
0.0156260133,
0.0619904138,
0.194724977,
0.1738673896,
-0.3227348626,
0.1073517278,
-0.1037436277,
0.0853953063,
-0.0294983778,
0.1388480812,
-0.2094204277,
0.0488264523,
0.1489572525,
-0.1194538847,
-0.243101269,
0.3520185947,
0.227141425,
0.1242948622,
-0.2448141873,
0.4155716002,
-0.0631176755,
0.0845968798,
-0.3108742237,
-0.0033372454,
0.2012371272,
-0.2009039521,
0.1446830928,
0.4337123632,
0.2067081779,
0.1068299115,
-0.2725557685,
0.4156303704,
0.0620116852,
0.3115216494,
-0.0363130309,
0.1447066218,
0.0924078748,
-0.0093405396,
-0.2338852435,
-0.3483477235,
-0.0623014309,
0.2405406535,
0.0831787214,
0.3555120528,
-0.410410136,
0.2481977344,
0.2190870941,
-0.3608699143,
0.0919079036,
0.1771572083,
-0.441267848,
-0.0692245215,
0.1451373994,
0.1348848343,
0.3439297676,
0.249399513,
0.1540549397,
0.0727085844,
-0.1303772628,
-0.0564425103,
0.3508005738,
0.0216916874,
-0.0542485006,
0.1896621138,
0.2745893896,
-0.1013242602,
-0.2222867161,
0.1033040732,
-0.0222287122,
0.2475631088,
-0.6477206945,
0.0214122143,
-0.5448578,
0.1577535719,
-0.0513010956,
-0.1011995673,
-0.1735531837,
-0.4598990977,
-0.0596312545,
-0.063727133,
-0.1688527316,
0.0606420189,
-0.2946920097,
0.0790323317,
-0.1894398481,
-0.0448189378,
-0.0921838656,
0.1211068854,
-0.4602270424,
0.0721277818,
0.0793973505,
0.1120032445,
0.0942424238,
-0.0211447924,
-0.1400134265,
-0.2468909025,
-0.3335292339,
-0.0407762825,
-0.2937828004,
0.4520364404,
0.1857919693,
0.1359865516,
-0.0852915123,
0.1245297566,
0.2048654407,
-0.12008214,
-0.2296515852,
0.2370333374,
-0.2326397598,
0.1798279732,
-0.4357800186,
-0.4690162539,
-0.1908025891,
-0.1922899187,
-0.023806328,
-0.0369044244,
0.242475301,
0.2144142836,
0.136872232,
0.2860679328,
0.0342018269,
-0.0677921101,
-0.1841775179,
-0.1419622749,
0.4167293906,
-0.1353092045,
-0.2124437392,
0.2918637991,
0.0325962082,
0.0221097749,
0.0316139944,
-0.3978863955,
0.1595618874,
-0.131765455,
0.4551571012,
0.0719639808,
-0.0047558858,
0.1841752529,
0.3115217984,
-0.1610429436,
-0.0325440839,
-0.1116777807,
-0.0031236913,
-0.1589923054,
0.0680797622,
0.05459176,
0.1455588788,
-0.0275700707,
0.4293255806,
0.0561835393,
0.0138203725,
0.0943829939,
-0.195554778,
0.4180704355,
-0.2736782134,
-0.0683423281,
-0.1494674534,
0.0735244006,
0.0237747394,
0.2283389717,
-0.0296706259,
-0.2654284537,
0.0779707432,
0.1042738557,
-0.2680980265,
-0.1156345755,
0.2269294709,
-0.3300534189,
0.1100915968,
-0.0785481706,
0.1537365764,
-0.1056866646,
-0.2107409835,
-0.0487565473,
0.3091951609,
-0.0053800447,
-0.1427625716,
-0.5449382067,
-0.0115787089,
-0.2575073242,
0.3132616878,
-0.0195410382,
0.1253948808,
-0.0347877406,
-0.3828626275,
0.1854411215,
0.0533925258,
0.4744293392,
0.1539961994,
-0.0279521272,
0.5140474439,
0.0411037765,
-0.3236196339,
-0.2595308721,
-0.4259679317,
0.00352373,
-0.0706737265,
0.1803925633,
-0.3618444502,
-0.4228647649,
0.2619481385,
0.0683023408,
-0.0210940596,
0.0688009858,
-0.4098904729,
-0.0725912526,
0.1709898114,
-0.1111524776,
-0.2014292479,
0.4334864616,
-0.6914268136,
-0.1290339231,
-0.2185462564,
0.1192450151,
0.3092529178,
-0.0450454652,
0.7161477208,
-0.1161339432,
-0.1471967548,
-0.0211403389,
0.1348935217,
0.150299862,
0.3068303466,
-0.0652124435,
-0.1356927603,
0.2198445946,
-0.0576183759,
0.3230606318,
0.284284234,
-0.2615740895,
0.1471096873,
0.016524164,
0.2268726826,
-0.2005197108,
-0.1212429032,
0.3472579122,
-0.0063926266,
-0.2086673826,
-0.3922851682,
0.4503926337,
0.143266961,
-0.0597166456,
-0.0072221057,
0.4215249419,
-0.2677355111,
0.3141824901,
0.0753155351,
0.8567589521,
0.0366317034,
0.2162979245,
0.5240118504,
-0.0265560243,
0.5018621683,
-0.0023946164,
0.1933330148,
-0.5107722878,
-0.0864916891,
-0.0668266639,
0.0971704423,
0.4400980175,
-0.0361035429,
-0.4507221282,
0.2521157861,
-0.3405069411,
0.2471186817,
0.188078016,
-0.2986423671,
-0.2543700933,
-0.0866957381,
-0.1540160924,
0.1562431157,
-0.1809553355,
-0.0293167625,
0.1601354629,
-0.0062718266,
-0.2679016292,
-0.0252765007,
-0.085644789,
0.0191100966,
-0.0679951906,
-0.1193505973,
0.2534288764,
-0.3604183793,
-0.1295099258,
0.3322096467,
-0.0222011451,
0.2863383591,
-0.1152128875,
-0.0191213097,
-0.0401786081,
0.5032736659,
0.4000250697,
0.0116479369,
0.2652091086,
0.1821953803,
-0.3593992293,
0.1688957363,
-0.1827186048,
0.0953543112,
0.1322650462,
-0.1204227507,
-0.2298847735,
-0.2968718112,
-0.1913645715,
0.0242170524,
0.530647099,
-0.2206876874,
0.1835244298,
0.0719364807,
-0.3026549518,
0.120954752,
0.004417161,
-0.4209453464,
-0.00922547,
0.2857544422,
0.3911080062,
0.1935065091,
0.5224118233,
0.0189347658,
-0.2755585611,
-0.1944189221,
0.3160937428,
0.2177149951,
-0.2086815387,
0.2493677735,
0.0016343506,
-0.1201049089,
-0.0031755527,
0.372623682,
-0.2551896572,
0.2370962054,
-0.3652247488,
-0.1500008106,
-0.3341083825,
-0.0086774323,
0.0093521606,
0.2371945679,
0.0734183788,
-0.0492053293,
0.0564517491,
-0.14742212,
-0.3585419655,
0.2067423463,
-0.1489066929,
0.1263042986,
-0.0471735969,
0.1249632761,
0.2180088162,
0.035032209,
0.2518459558,
-0.0637957975,
-0.0743672624,
-0.2375767678,
-0.2731692791,
0.1300040334,
-0.0625335053,
0.0469786078,
0.1370755136,
0.0626156405,
-0.0135726519,
-0.0545620546,
0.5886870027,
0.2336112857,
-0.0696092993,
0.3833620846,
0.1830892712,
0.2806316614,
0.0177538134,
0.1088672131,
-0.0853029042,
-0.1695674807,
0.0976130664,
0.1857938766,
-0.167771399,
-0.090102382,
-0.1233124882,
0.1845208555,
-0.0824655369,
0.3222301304,
0.2642540634,
-0.3615875244,
0.0612182841,
0.0792211518,
0.0272898935,
0.0597757883,
-0.2378763407,
-0.0295563377,
-0.0420615785,
0.245225668,
-0.1563732475,
-0.1107315347,
-0.0890050158,
-0.0036033811,
0.1428617686,
0.1942882538,
0.1384819895,
0.0547337458,
0.0796706751,
0.0117428368,
0.1289079189,
-0.1549106687,
0.3005962372,
0.7420117259,
-0.0054154345,
0.104937233,
0.3045708537,
-0.1724951714,
-0.2635181546,
0.4124812186,
0.0947032273,
0.3636592329,
0.1007764935,
0.0708729848,
-0.1650802493,
-0.534261167,
0.155295223,
0.3907398283,
-0.2454322726,
0.0397401042,
0.2547341287,
0.2099612802,
-0.3625276387,
-0.2972867489,
-0.123453103,
0.05480358,
-0.4501235783,
-0.3482736051,
-0.1254900098,
-0.2196267396,
-0.1853532642,
0.0573567487,
-0.0857567266,
-0.1084080935,
0.2555651963,
0.149608463,
-0.1905295104,
-0.2594536841,
-0.0530358925,
0.1406823695,
0.1565275043,
0.0633793622,
0.1732414514,
-0.0366397165,
0.1752717346,
0.2516064346,
0.4538686275,
0.4174047112,
0.3131196499,
0.0170089435,
-0.079731226,
-0.0033054098,
-0.2091666907,
0.2060351968,
0.0554633923,
0.0170379058,
0.3320850134,
0.0662323833,
0.1720420569,
-0.1590149701,
0.1703707725,
0.043423444,
0.2102212012,
-0.4629379213,
0.5681633949,
0.003725037,
-0.0690238401,
-0.1666031629,
-0.2422818691,
-0.4855611622,
-0.1623517871,
0.4131342769,
0.1883003265,
0.1108921468,
-0.2243389189,
0.1272107065,
0.2986780107,
0.1972864866,
0.0006462181,
-0.0866615772,
-0.2866362035,
0.123038657,
-0.6620331407,
0.2458914071,
0.2060712725,
0.3206716776,
0.0884041786,
0.1161001697,
-0.1842530817,
-0.0898900256,
0.0857330114,
0.0024981303,
0.3292235732,
-0.001281764,
-0.3136588633,
-0.0868877769,
0.055722218,
-0.0906361118,
-0.1594234556,
-0.28920874,
0.1411686987,
0.0671148524,
0.0603138432,
0.1316228956,
0.0318143256,
0.1516238451,
-0.0023696295,
0.4332663119,
0.1130582616,
0.1072715819,
0.1166826785,
-0.2386091202,
-0.2770062089,
0.0058047394,
-0.423389703,
0.1312174797,
-0.0810452849,
0.4206905365,
0.0941944718,
0.0491272286,
-0.0540784411,
0.1489169449,
0.2270433754,
0.0541991927,
-0.5982419848,
0.319527179,
-0.1930419654,
-0.0253711231,
0.1005677953,
0.0517876782,
0.2519222498,
0.2044450045,
-0.2891455591,
-0.2519412339,
0.4435178936,
-0.1265501082,
-0.1648381352,
-0.2142000198,
0.1228837818,
0.1497815549,
-0.2820916176,
-0.6443955898,
-0.140831992,
0.3639027476,
-0.3171519041,
-0.1712900698,
0.0983843058,
-0.2110009938,
0.1696412712,
-0.4200997353,
0.238283813,
0.037980523,
0.0633199513,
0.0842353925,
-0.3880529106
] |
https://github.com/huggingface/datasets/issues/3181 | `None` converted to `"None"` when loading a dataset | https://github.com/huggingface/datasets/pull/3195 fixed it, we'll do a new release soon :)
For now feel free to install `datasets` from the master branch | ## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 21 | `None` converted to `"None"` when loading a dataset
## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
https://github.com/huggingface/datasets/pull/3195 fixed it, we'll do a new release soon :)
For now feel free to install `datasets` from the master branch | [
-0.1464285254,
-0.061244525,
0.0032049515,
0.3425727487,
0.4700652659,
0.0306644179,
0.3348008096,
0.221140638,
0.0670467094,
0.5334504247,
-0.0878186896,
0.5156676769,
-0.053589642,
0.0836551711,
0.0218497422,
-0.0698360801,
0.0672495738,
0.3368619978,
-0.214979738,
0.0690568835,
-0.0510460958,
0.2278891057,
-0.1687967926,
0.0543106496,
-0.1880399734,
0.0271584801,
-0.0438876189,
-0.0020175418,
0.0024068728,
-0.5169740915,
0.0471327379,
-0.2155151814,
-0.0738768876,
0.6061304212,
-0.0001111699,
0.0452010371,
0.3825386763,
0.2205605805,
-0.3372114301,
-0.5307700038,
-0.1704456657,
-0.2074136585,
0.216965124,
-0.0502870083,
-0.1858265847,
-0.2876164913,
-0.0798148066,
-0.4031269252,
-0.0903770849,
0.3316808343,
0.2655037344,
0.5151590109,
-0.4043790698,
-0.0385678671,
0.280356735,
0.0307315812,
0.027157465,
-0.055439163,
0.0053836303,
0.3135546148,
-0.0490998998,
0.2781360447,
-0.2296462804,
-0.2054231465,
0.2045810819,
0.2261076719,
0.0747922957,
-0.272007376,
0.2240143269,
0.3992187381,
0.3231034875,
-0.3918203115,
-0.2766828239,
-0.152211979,
0.1909401268,
-0.3002003431,
0.1350709796,
0.1665227562,
-0.0800633878,
0.1199468672,
0.0296222009,
-0.0127184112,
-0.0447183922,
-0.0767632127,
-0.5624731779,
0.1738100052,
-0.2073184103,
-0.0460129939,
0.1074341685,
-0.1538491994,
-0.1882903874,
-0.2707333267,
-0.2653437555,
0.0933800563,
-0.1691850573,
0.1125134304,
0.0445410423,
0.0673966035,
-0.034265656,
-0.1328984052,
0.183909893,
0.0014268126,
-0.0319622792,
0.2558697164,
0.2275740504,
0.3134538531,
0.2292568386,
-0.0074049351,
0.3832804561,
0.0290098935,
0.1398617029,
0.0664294213,
0.1704664081,
0.0197118632,
0.2445344478,
-0.0367628261,
0.4530422688,
-0.2622944415,
-0.4035237432,
0.1484562904,
-0.3096363544,
0.1542911083,
0.0053458903,
0.1733411402,
-0.134373948,
0.4529517591,
0.1688606888,
0.1454150677,
-0.2296206802,
-0.2072660029,
-0.3875867128,
-0.0516238809,
-0.0540098958,
-0.1725948155,
0.0416473448,
-0.3691141903,
0.0462655649,
0.2953910232,
0.1190991849,
-0.0471821353,
-0.2332780212,
-0.1458193362,
-0.0711247027,
0.4725528657,
-0.0256096665,
0.1662108898,
0.1731166095,
-0.3628257215,
-0.0479792729,
0.6715441942,
-0.238547042,
-0.0016714224,
-0.2328090221,
0.2333147824,
-0.3128706813,
-0.0128529277,
-0.2917031646,
0.2969142497,
0.0389244743,
0.0586586483,
0.1103759035,
-0.3613497019,
-0.0263253823,
-0.2005541474,
0.0823697001,
0.3260118365,
-0.5988987088,
-0.2802537978,
-0.0197200067,
-0.47815907,
0.1590223312,
0.0030355733,
0.081126608,
0.0298114065,
-0.1895202547,
0.1622142345,
0.2640689313,
-0.1565071195,
-0.3092397749,
0.2861737311,
-0.2655008137,
0.1096288115,
0.0039898907,
-0.1216491014,
0.045920752,
0.0993604735,
0.1124358252,
-0.0055908561,
0.0705977976,
0.1660822481,
-0.4398125708,
-0.1569274962,
0.380302459,
0.0008759371,
0.09250772,
0.1377412826,
-0.0324141793,
-0.3787892759,
0.2111178637,
-0.1360217184,
0.1469317824,
0.1233912334,
0.3447325826,
0.0704984218,
0.0487093143,
-0.3260646164,
-0.46758762,
0.1111268103,
-0.1682384461,
0.2240987122,
-0.2030494809,
-0.2516445518,
-0.0113911005,
-0.0358903743,
0.0115017686,
0.0721543804,
0.1911523789,
0.1706002951,
-0.2488903701,
0.106795989,
-0.0728914067,
0.1359637827,
-0.000890863,
0.1770523041,
-0.2685407102,
0.0771034509,
0.1397308111,
-0.1588512808,
-0.2013223469,
0.3541156054,
0.1943338215,
0.09855102,
-0.1789046228,
0.4526915848,
-0.1001664475,
0.0614932999,
-0.3214014173,
-0.0819908679,
0.1620355248,
-0.1917996556,
0.0963961855,
0.375404954,
0.1808873266,
0.0819440112,
-0.2591473162,
0.4098093212,
-0.0000182437,
0.3266768456,
-0.0588275418,
0.1414733082,
0.059521649,
-0.0081907315,
-0.1907537431,
-0.2966542244,
-0.0191168338,
0.143161118,
0.1661080271,
0.3045222759,
-0.3817099035,
0.183016777,
0.1662721783,
-0.3843565881,
0.0652399808,
0.1776399463,
-0.4099294841,
-0.0634117201,
0.0703240335,
0.2304131836,
0.3671705723,
0.2751630545,
0.1044530347,
0.0759239942,
-0.0960689709,
-0.0713573173,
0.321059078,
0.0281882938,
0.0088173673,
0.2297412604,
0.2763282061,
-0.0390316993,
-0.2238444537,
0.0587117076,
-0.0708168,
0.2546349466,
-0.6769944429,
0.0568110086,
-0.5281860232,
0.1612532139,
-0.0504483432,
-0.1600015014,
-0.1808293313,
-0.4096062183,
-0.0916411206,
-0.0529159755,
-0.1558789313,
0.0441977456,
-0.2121655196,
0.0913760066,
-0.1819240004,
-0.0580981262,
-0.1374529004,
0.0806467012,
-0.4434924126,
0.0818186849,
0.0417374708,
0.1148707941,
0.1215853319,
-0.0194692686,
-0.0950033143,
-0.1863657832,
-0.2749505937,
-0.0218375977,
-0.3252563775,
0.5287584662,
0.1779671162,
0.1645760685,
-0.1283815801,
0.089305371,
0.2270675898,
-0.1248829812,
-0.2321187407,
0.2204390019,
-0.1805824637,
0.1472772956,
-0.4056720138,
-0.4252123833,
-0.2348913103,
-0.1911501288,
-0.0707003996,
-0.0540202186,
0.2231741399,
0.2177829742,
0.1466345042,
0.2807643116,
-0.024389578,
-0.0314673558,
-0.2213175595,
-0.2754343152,
0.4149609208,
-0.1593695432,
-0.2384496331,
0.2242480516,
0.0444364101,
0.1326307803,
0.0389938019,
-0.448989898,
0.1232663989,
-0.0975597054,
0.3615841866,
0.0424862392,
0.0741739646,
0.1854761541,
0.2464900017,
-0.1728143692,
-0.0614527315,
-0.1386422962,
0.0087371264,
-0.1641628444,
0.0785607249,
0.0327793434,
0.1865622699,
-0.0454007648,
0.4260952771,
0.0671162754,
-0.0009063256,
0.0853031129,
-0.2282865942,
0.4659276903,
-0.2258034945,
-0.088485755,
-0.1874987483,
0.1110296994,
0.0358921923,
0.2392123342,
0.0140791079,
-0.1239094734,
0.0193048026,
0.0529843494,
-0.360852927,
-0.1112748161,
0.1703401357,
-0.3004639447,
0.0905668661,
-0.0449145101,
0.1920733601,
-0.0392065085,
-0.2008164078,
-0.0627024174,
0.3241494298,
0.0014663314,
-0.1405394673,
-0.513892591,
-0.0316137001,
-0.3022901416,
0.327988565,
-0.037954092,
0.1121492833,
-0.0721729547,
-0.3473751843,
0.2323663086,
0.0304693747,
0.5432169437,
0.1209408715,
-0.0081722708,
0.4206673205,
0.031884294,
-0.356461823,
-0.1765341908,
-0.3971478641,
-0.0463179797,
-0.0855417922,
0.1477919668,
-0.3619227111,
-0.3963291049,
0.26279971,
0.0453200154,
-0.0742101669,
-0.0639932603,
-0.4279542267,
-0.1159112677,
0.1302144676,
-0.1153858006,
-0.2499704659,
0.4489375353,
-0.6156369448,
-0.0737899467,
-0.1593731195,
0.1045316756,
0.3251780272,
-0.0315743573,
0.7063171864,
-0.121887587,
-0.0963629037,
0.0994982272,
0.093068786,
0.1900601238,
0.3273468912,
-0.1138856784,
-0.1685554832,
0.1583980918,
-0.0654899552,
0.3503499925,
0.2227892727,
-0.2791845798,
0.1239876449,
0.0977539197,
0.2860408723,
-0.1954370141,
-0.0977961048,
0.3647791445,
-0.008434643,
-0.2817594409,
-0.3960363865,
0.4711189866,
0.2030903548,
-0.0983908027,
0.0374200828,
0.3991822004,
-0.3007151783,
0.3546886742,
0.0600978471,
0.8799344301,
-0.038082283,
0.277356267,
0.5338898301,
-0.0868926421,
0.4938425124,
0.0588052534,
0.1572463363,
-0.5157217383,
-0.1149065048,
-0.067050688,
0.0955266431,
0.4023202956,
0.0108376537,
-0.4770200849,
0.2882663012,
-0.3368944228,
0.1850997508,
0.1672928184,
-0.246051982,
-0.2253153175,
-0.0840814635,
-0.2432079464,
0.1732854694,
-0.1657388657,
-0.0121697355,
0.1535495669,
-0.006848346,
-0.2713810802,
-0.0818921477,
-0.0882673636,
0.0259458087,
-0.0225511026,
-0.1871624887,
0.3164506257,
-0.3981813788,
-0.1200170144,
0.3961423039,
-0.0263575409,
0.3001079857,
-0.1105767041,
0.0094255842,
-0.0836390033,
0.4816707075,
0.3588480949,
0.0064447578,
0.2211059183,
0.2271854132,
-0.4078595042,
0.1583043188,
-0.1404785663,
0.0697850436,
0.1328689158,
-0.0897805914,
-0.2608031332,
-0.3332025111,
-0.1270106435,
-0.0290217586,
0.533462882,
-0.2134875804,
0.1972678155,
0.1120397002,
-0.2835313678,
0.1041124091,
0.0480467118,
-0.406614095,
-0.042363666,
0.3628268838,
0.3173386753,
0.1385338753,
0.5140305161,
0.0660039857,
-0.2663618624,
-0.2246652246,
0.2774925828,
0.2634325624,
-0.1750317067,
0.2900179923,
0.0677747428,
-0.0520372614,
-0.0168660115,
0.3363465965,
-0.2589583099,
0.1451039612,
-0.3109541237,
-0.2499004453,
-0.3213704228,
-0.0021050875,
0.0391674191,
0.2354392558,
0.1420609802,
-0.0621938817,
0.0537487976,
-0.0799056739,
-0.373693049,
0.1828659177,
-0.1584400386,
0.1233278215,
-0.0386169255,
0.1236028597,
0.2965467274,
0.0012383703,
0.2732916176,
-0.0327849649,
-0.0414312705,
-0.2669152021,
-0.2890971899,
0.1233041734,
-0.0935847163,
0.0501065105,
0.1366947889,
0.0581445992,
0.017365858,
-0.0977377743,
0.598203361,
0.2554373741,
-0.042381715,
0.346201539,
0.2028245628,
0.255303055,
0.0043347268,
0.0734322593,
-0.1389189363,
-0.163239643,
0.1031268612,
0.1451305151,
-0.1513241678,
-0.1131527275,
-0.1148505881,
0.1439955235,
0.0163138788,
0.309068054,
0.2552931905,
-0.3921937943,
0.069769688,
0.1243822351,
0.1703791618,
0.0379684381,
-0.2952727675,
-0.0018280076,
-0.0353976563,
0.2589813769,
-0.1421064138,
-0.073074609,
-0.0934539959,
0.0139262937,
0.1142790765,
0.1848792732,
0.0644846186,
0.03721283,
0.0048738001,
-0.0080112703,
0.2047497779,
-0.2198876143,
0.2462963015,
0.6976824999,
-0.0296680834,
0.0908496752,
0.3165348172,
-0.1308362633,
-0.2858219445,
0.4558198154,
0.0898234546,
0.3620171845,
0.0561206974,
0.0981508344,
-0.2327763438,
-0.603315115,
0.1979943961,
0.3893882036,
-0.1970391124,
-0.0352427512,
0.1841154099,
0.308234632,
-0.3364503384,
-0.2408237606,
-0.0917527974,
0.0553232729,
-0.3981544077,
-0.3489278257,
-0.1444969326,
-0.1725432575,
-0.1600102335,
0.0296715237,
-0.0464694761,
-0.1867633164,
0.2297097594,
0.1474984139,
-0.1653946638,
-0.3360823989,
-0.1492892653,
0.1708705723,
0.1125460416,
0.0147662107,
0.2060043067,
0.0087836999,
0.1572356075,
0.3041107059,
0.4201044738,
0.4852737784,
0.2641244531,
0.0019063917,
-0.011933824,
-0.0647902191,
-0.1908213347,
0.193515256,
0.1437113732,
0.019676391,
0.2663560212,
0.0845714733,
0.2004787475,
-0.1784103662,
0.1960619092,
0.1093536466,
0.2593075931,
-0.4281469882,
0.6007784605,
-0.0223195553,
-0.0667622611,
-0.204699412,
-0.2526341379,
-0.5282463431,
-0.0794722512,
0.381822139,
0.1100274175,
0.1230542362,
-0.222614646,
0.1301099658,
0.27214849,
0.2788176537,
0.0671589449,
0.021829389,
-0.3446045518,
0.1221250817,
-0.6442497969,
0.2020377666,
0.1376647353,
0.3341334164,
-0.0155042456,
0.0662725493,
-0.1990111917,
-0.0837952048,
0.1068811938,
0.0896982029,
0.224185884,
-0.006493337,
-0.3243570924,
-0.0841377303,
-0.0229459088,
-0.0866562277,
-0.0994651839,
-0.2553067803,
0.130449295,
0.0618331693,
0.0534670353,
0.1254572719,
0.0922550857,
0.0946515724,
-0.0563261099,
0.4407147765,
0.114535436,
0.1238061115,
0.072312735,
-0.2250004411,
-0.2515189946,
-0.0084171155,
-0.407655865,
0.1905608773,
-0.0000568785,
0.4445405304,
0.0946631581,
-0.0706788003,
-0.0685873255,
0.1208422482,
0.2120043784,
0.058719568,
-0.5620515943,
0.2907183468,
-0.1629548818,
0.0140913567,
0.0896870792,
0.0389156006,
0.2355180085,
0.2326382697,
-0.295509845,
-0.2602897584,
0.5126845241,
-0.2001781911,
-0.1458821744,
-0.202205956,
0.196726054,
0.0613502301,
-0.3308111727,
-0.6826478243,
-0.0711709708,
0.4002179205,
-0.308430016,
-0.2073267847,
0.121829167,
-0.1810453087,
0.1817113459,
-0.3743325174,
0.2136321664,
0.0735037103,
0.0181072969,
0.1028314158,
-0.4174879193
] |
https://github.com/huggingface/datasets/issues/3181 | `None` converted to `"None"` when loading a dataset | Thanks, but unfortunately looks like it isn't fixed yet 😢
[notebook for 1.14.0](https://colab.research.google.com/drive/1SV3sFXPJMWSQgbm4pr9Y1Q8OJ4JYKcDo?usp=sharing)
[notebook for master](https://colab.research.google.com/drive/145wDpuO74MmsuI0SVLcI1IswG6aHpyhi?usp=sharing) | ## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 16 | `None` converted to `"None"` when loading a dataset
## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
Thanks, but unfortunately looks like it isn't fixed yet 😢
[notebook for 1.14.0](https://colab.research.google.com/drive/1SV3sFXPJMWSQgbm4pr9Y1Q8OJ4JYKcDo?usp=sharing)
[notebook for master](https://colab.research.google.com/drive/145wDpuO74MmsuI0SVLcI1IswG6aHpyhi?usp=sharing) | [
-0.128923595,
-0.0297710095,
0.020354433,
0.3510314226,
0.4544922113,
0.0599747598,
0.3477732241,
0.2126249522,
0.0653546676,
0.5317575932,
-0.0835784301,
0.5394250751,
-0.0758218542,
0.0443202928,
0.0360325351,
-0.0391761549,
0.1098452881,
0.3058930337,
-0.2327348739,
0.0301557314,
-0.0654739812,
0.2169409692,
-0.184835732,
0.0347998403,
-0.1775138825,
0.0175753646,
-0.0579430088,
0.0098580243,
0.0458118953,
-0.5349763632,
0.0258289613,
-0.2391975522,
-0.0401085056,
0.6087321043,
-0.0001171895,
0.0299284421,
0.4417243004,
0.2407180369,
-0.4080582261,
-0.5608810186,
-0.2539385855,
-0.2232551128,
0.2598144114,
-0.0287616178,
-0.1494944245,
-0.2960253656,
-0.1072958782,
-0.4760676324,
-0.1811426431,
0.3268413842,
0.2138043344,
0.4328989685,
-0.4331312478,
-0.0038450197,
0.2327248156,
-0.0078912657,
0.0582487658,
-0.0631877556,
0.0291850083,
0.3636965156,
-0.0124265738,
0.2458544523,
-0.2055968195,
-0.2169154435,
0.1813950539,
0.1980962455,
0.1801858097,
-0.2631108761,
0.2297754139,
0.3462201059,
0.385230273,
-0.3827931285,
-0.2755910754,
-0.1117305979,
0.2184454948,
-0.2605070472,
0.1121402457,
0.2242871076,
-0.085999079,
0.1268852949,
-0.0359043628,
-0.0217207372,
-0.0321158133,
-0.0674204677,
-0.631426692,
0.2334803194,
-0.1463192403,
-0.0216917768,
0.0760587677,
-0.1283753514,
-0.1068800911,
-0.2957784832,
-0.2900698185,
0.1206523255,
-0.165154621,
0.0994568318,
-0.009937969,
0.1336242557,
-0.107820347,
-0.1506924331,
0.1966738254,
-0.0358865634,
0.0048522642,
0.2598780096,
0.2605917156,
0.3496504724,
0.1850235462,
0.0378336273,
0.3577562273,
-0.0396992341,
0.1036750674,
0.1086416617,
0.1424265951,
0.0150279021,
0.3130609691,
0.0321264602,
0.4534281194,
-0.2656856179,
-0.3642271757,
0.158884272,
-0.4115265012,
0.1716500223,
-0.0167901795,
0.1071943492,
-0.1126843467,
0.5355953574,
0.1935281903,
0.1580688953,
-0.1806242168,
-0.2229045928,
-0.3278615475,
-0.0866207257,
-0.0178431757,
-0.2004690915,
0.0508048125,
-0.3684324324,
0.0092299096,
0.3504804671,
0.097319223,
-0.0982295051,
-0.2199796885,
-0.1456736028,
-0.0415936895,
0.503433466,
-0.038113188,
0.1795740873,
0.1843679249,
-0.4004134238,
-0.0518929586,
0.7935638428,
-0.2319360077,
-0.0194416828,
-0.2299184948,
0.1799779236,
-0.3036557734,
0.0025173919,
-0.2849808037,
0.2809554338,
0.0508081131,
0.0877894163,
0.1277858317,
-0.4189588428,
-0.0227394998,
-0.2008955032,
0.030485481,
0.3171199858,
-0.6810715199,
-0.2386657745,
-0.0879892483,
-0.4317519963,
0.1914566904,
-0.0554003641,
0.1130523607,
0.0536720529,
-0.2213322073,
0.0907141417,
0.2469019741,
-0.1666347235,
-0.3231782317,
0.362000823,
-0.3147907853,
0.1502886713,
0.032127291,
-0.1075571999,
0.0688927919,
0.0852676257,
0.0827469677,
0.0233984441,
0.0258486699,
0.1803906262,
-0.51889503,
-0.1349267066,
0.3875521719,
-0.0475642011,
0.1005737633,
0.2346359789,
-0.0226268116,
-0.3393295705,
0.2567852736,
-0.1196703613,
0.1831966341,
0.1247733384,
0.3949891329,
0.0872470066,
0.051353503,
-0.2349777818,
-0.4538812041,
0.0913569853,
-0.1634684801,
0.2037072778,
-0.2402663529,
-0.235994339,
-0.0169438813,
-0.024353845,
0.0336653851,
0.1205269322,
0.1353313774,
0.2047243416,
-0.296322614,
0.0677815825,
-0.0048219594,
0.1337610632,
0.0007176349,
0.1994578689,
-0.2202945501,
0.0572067872,
0.159414351,
-0.1293940544,
-0.2498656809,
0.3166411519,
0.2133385688,
0.0847750828,
-0.2230155468,
0.4591527879,
-0.0814396143,
0.0737405345,
-0.3628718257,
-0.0893215165,
0.1859740913,
-0.1812099814,
0.1417663395,
0.46921435,
0.2086611241,
0.0826504081,
-0.2143686563,
0.4020467997,
-0.0163867399,
0.3272390664,
-0.0654390007,
0.1558646113,
0.0240643751,
0.0102796871,
-0.1887964755,
-0.3583350778,
-0.077016376,
0.1532947719,
0.2208813429,
0.3200655878,
-0.3268500268,
0.2021980882,
0.0462659486,
-0.4436891079,
0.0528731309,
0.1689407229,
-0.4144892991,
-0.0823324621,
0.1095926315,
0.3036739528,
0.4046463668,
0.2341794372,
0.1367320567,
0.1078952104,
-0.0821503997,
-0.0643891469,
0.3734172583,
0.0130021218,
-0.0123997731,
0.2255881131,
0.3018726707,
-0.0801871419,
-0.1581177562,
0.095384635,
-0.0162457097,
0.2870326638,
-0.7219934464,
0.050181035,
-0.5528531075,
0.1895660162,
-0.113166742,
-0.1703342497,
-0.1266746372,
-0.4181544781,
-0.1487698406,
-0.0748803839,
-0.1465846449,
-0.0039061732,
-0.2512749434,
0.0252586007,
-0.2233770341,
-0.0686949715,
-0.1109178886,
0.0964454785,
-0.4671440125,
0.0337994769,
0.0560670309,
0.0797724426,
0.0963248387,
-0.0060961731,
-0.1476421505,
-0.1791710258,
-0.2660902143,
-0.0353919044,
-0.2533754706,
0.5185126662,
0.1440330595,
0.1302248389,
-0.1101936102,
0.0738860145,
0.1878615022,
-0.0874077156,
-0.2062257826,
0.2476879507,
-0.1945813149,
0.1796296239,
-0.3906597793,
-0.4096365571,
-0.2703448832,
-0.1353101134,
-0.1117776334,
-0.0621847846,
0.2372724265,
0.1944612116,
0.1335328072,
0.2045368105,
0.0737999454,
-0.0507279448,
-0.1338630915,
-0.2230641395,
0.3791627884,
-0.1239222363,
-0.1833250672,
0.2124640495,
0.0700250641,
0.1049547419,
0.0772850215,
-0.4346069396,
0.25388515,
-0.117648527,
0.3721303642,
0.0260200892,
0.0178928599,
0.1655242592,
0.3136647046,
-0.1161841676,
-0.0367876366,
-0.0826197565,
-0.0098473849,
-0.1737647653,
0.0671474859,
0.0731649399,
0.186427474,
-0.042681437,
0.4056422114,
0.0613595434,
-0.0137410071,
0.0663229004,
-0.1810757965,
0.4058785737,
-0.2428095639,
-0.0825982019,
-0.2063887417,
0.1082614139,
-0.0479580313,
0.2384473383,
0.0245156717,
-0.1377232075,
0.0754220337,
0.0505060554,
-0.3835866451,
-0.0929271206,
0.1793829203,
-0.4338316321,
0.0961364731,
-0.0390809774,
0.1434250027,
-0.0410360694,
-0.2144221812,
-0.1039324403,
0.344630003,
0.0130599663,
-0.1136571988,
-0.4919372499,
-0.0955099836,
-0.2422145158,
0.3343462944,
-0.012684376,
0.2115051597,
-0.0341024213,
-0.3354009092,
0.2305218279,
0.0795080513,
0.515673995,
0.1511582583,
0.0358007737,
0.4375193715,
-0.0140520176,
-0.324405998,
-0.2175889909,
-0.4225229919,
-0.0751423016,
-0.0308230035,
0.125421226,
-0.2984656394,
-0.3921903968,
0.2355004698,
0.06389267,
-0.0806496814,
-0.0470185131,
-0.4062654972,
-0.0878905281,
0.2034378052,
-0.1115279868,
-0.2800607681,
0.4948491454,
-0.6805860996,
-0.0985819176,
-0.163138032,
0.0854540616,
0.3276562393,
-0.0989919901,
0.7241491079,
-0.1440216154,
-0.0654516891,
0.0569410063,
0.1243722513,
0.2344162315,
0.2789850235,
-0.1227921396,
-0.0664302483,
0.1336063594,
-0.0806270614,
0.3737166822,
0.2191948742,
-0.3020595908,
0.0922828615,
0.0341404974,
0.2408553511,
-0.1768617779,
-0.1909269243,
0.3041246235,
-0.0214371514,
-0.3089480698,
-0.4324136078,
0.4482579231,
0.2533468902,
-0.1413216144,
0.0604675561,
0.3567510545,
-0.347907424,
0.4080082774,
0.0822123885,
0.8762873411,
-0.0551429056,
0.2601811588,
0.460270226,
-0.1322388649,
0.4505177736,
0.0473025516,
0.1450772434,
-0.5722258091,
-0.0840457082,
-0.0688858405,
0.09219677,
0.4381183088,
0.0830346048,
-0.5112666488,
0.2629611194,
-0.4399308562,
0.1456818432,
0.2375444174,
-0.2956385911,
-0.2407268882,
-0.0245805494,
-0.1787269413,
0.12292023,
-0.1195200086,
-0.0233150162,
0.1226207688,
-0.0014257972,
-0.3151521087,
-0.0623667724,
-0.1151130646,
0.0073855277,
-0.0399510041,
-0.1460316479,
0.2500293255,
-0.4308582544,
-0.1112784445,
0.4323265254,
-0.025914615,
0.3129868507,
-0.0857510865,
-0.0251737908,
-0.0188568477,
0.5483853817,
0.4228649139,
0.0229881741,
0.2137326449,
0.267986536,
-0.426101625,
0.1225778013,
-0.1766310334,
0.0687568709,
0.0832820013,
-0.1024215147,
-0.2956039608,
-0.2932136953,
-0.1855265945,
-0.0296193846,
0.5341965556,
-0.2209059447,
0.1517863572,
0.0784751698,
-0.2877592146,
0.109923318,
0.0358775817,
-0.4440348148,
-0.0139634265,
0.3846127689,
0.3975295722,
0.1898624003,
0.5111401677,
0.0124540869,
-0.2504669726,
-0.1991263926,
0.3225527406,
0.2325874716,
-0.1603470147,
0.3105913401,
0.0202151258,
-0.0803921819,
-0.0215289127,
0.3116802275,
-0.2798586786,
0.219025135,
-0.3588160574,
-0.2273361981,
-0.3319330215,
-0.0550890937,
0.0510169156,
0.2279236466,
0.0886561051,
-0.0386181325,
0.064065069,
-0.0787440389,
-0.309343487,
0.1741670221,
-0.1057894379,
0.1387313753,
-0.1067897752,
0.1696484089,
0.2282799929,
0.0022215929,
0.243365258,
-0.0923546255,
0.0328470878,
-0.203718096,
-0.2658677697,
0.1480049342,
-0.0551155582,
0.0631379634,
0.1274534762,
0.0531473123,
0.0371249281,
-0.0678874478,
0.573617816,
0.3118094206,
-0.0437983759,
0.3816913068,
0.257946521,
0.2223223746,
-0.0127713261,
0.1081928164,
-0.1608112007,
-0.1882016063,
0.0722463727,
0.2222547978,
-0.0840858668,
-0.1131696403,
-0.1700288206,
0.1144480109,
-0.0237128641,
0.3509916365,
0.2899493575,
-0.3980391324,
0.0857413486,
0.0840052888,
0.1157465577,
0.0296260715,
-0.2701059282,
-0.0114617441,
-0.0709609613,
0.1973311752,
-0.1010973305,
-0.0885084048,
-0.0685444549,
0.0150923766,
0.0476992577,
0.2153920829,
0.0912655368,
-0.0587234944,
-0.0189178064,
-0.0299039762,
0.2107782215,
-0.2135562152,
0.2446627468,
0.8277377486,
0.0287611093,
0.1248478368,
0.2551647127,
-0.1641830504,
-0.3264086545,
0.446103245,
0.1193464473,
0.3770322502,
0.1307048053,
0.040003702,
-0.1980845481,
-0.5914284587,
0.2078121901,
0.4347978234,
-0.2458098978,
0.0036573529,
0.2252296209,
0.2420283556,
-0.3010620475,
-0.2813948393,
-0.0613607913,
0.0379501693,
-0.4239691198,
-0.3671646118,
-0.133486703,
-0.166857779,
-0.2045918256,
0.0464925542,
-0.0908488631,
-0.1564244479,
0.2022029012,
0.2168522626,
-0.1836399287,
-0.3470703959,
-0.1801192909,
0.1790655106,
0.0822300985,
-0.0153188417,
0.2073283494,
-0.0025496392,
0.1583603323,
0.3534003198,
0.4011830986,
0.4900663495,
0.3237658143,
0.0059212456,
-0.0175303295,
-0.0262238886,
-0.1672061235,
0.226079911,
0.1326972693,
-0.0035153294,
0.2979215086,
0.0512171797,
0.14453803,
-0.123860389,
0.1949064136,
0.1535871476,
0.2341856956,
-0.4100442529,
0.6494383216,
0.0195107069,
-0.1247768328,
-0.1454614997,
-0.2253289074,
-0.5441185832,
-0.0643167049,
0.3782118857,
0.1244198829,
0.1010131985,
-0.1926449388,
0.0933819562,
0.278116703,
0.2408697754,
0.0652642101,
-0.0146330679,
-0.3484984636,
0.0612682477,
-0.6108699441,
0.1969891042,
0.1414180994,
0.3353028893,
-0.0001994185,
0.0471657328,
-0.1970680803,
-0.1241501719,
0.1185572743,
0.1148924157,
0.1813863069,
0.0825289711,
-0.2819499373,
-0.0982241482,
-0.0054407245,
-0.0675192624,
-0.1792404056,
-0.2863206267,
0.1525990814,
0.101963371,
0.0321246274,
0.1313549727,
0.0811869204,
0.1750004888,
-0.0511675179,
0.4417186975,
0.1201269776,
0.176130861,
0.1056938916,
-0.1989807934,
-0.249522537,
0.0386202633,
-0.4518976212,
0.1996461153,
-0.0152743291,
0.4199838042,
0.1254178137,
-0.0424853265,
-0.0358487442,
0.0967424363,
0.1800045371,
0.0780932009,
-0.5894741416,
0.276676923,
-0.2266523093,
0.047210481,
0.1009952798,
0.0516711883,
0.250730902,
0.2711313367,
-0.2917129099,
-0.2601356804,
0.4454721212,
-0.2114049196,
-0.1509767622,
-0.2419614643,
0.2197911739,
-0.0079005724,
-0.3253169954,
-0.6175140738,
-0.1355055422,
0.408621639,
-0.3624061644,
-0.1591660678,
0.1054827422,
-0.0990641788,
0.2130908072,
-0.3908743262,
0.2091680616,
0.0771580413,
0.0673678219,
0.0644159988,
-0.4266780913
] |
https://github.com/huggingface/datasets/issues/3181 | `None` converted to `"None"` when loading a dataset | Oh, sorry. I deleted the fix by accident when I was resolving a merge conflict. Let me fix this real quick. | ## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
| 21 | `None` converted to `"None"` when loading a dataset
## Describe the bug
When loading a dataset `None` values of the type `NoneType` are converted to `'None'` of the type `str`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
qasper = load_dataset("qasper", split="train", download_mode="reuse_cache_if_exists")
print(qasper[60]["full_text"]["section_name"])
```
When installing version 1.1.40, the output is
`[None, 'Introduction', 'Benchmark Datasets', ...]`
When installing from the master branch, the output is
`['None', 'Introduction', 'Benchmark Datasets', ...]`
Notice how the first element was changed from `NoneType` to `str`.
## Expected results
`None` should stay as is.
## Actual results
`None` is converted to a string.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: master
- Platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 4.0.1
Oh, sorry. I deleted the fix by accident when I was resolving a merge conflict. Let me fix this real quick. | [
-0.1147132516,
0.0136741847,
0.0202212278,
0.3419386446,
0.4503499269,
0.052650705,
0.2959984541,
0.2195353955,
0.049980022,
0.5178982019,
-0.1052668095,
0.5846873522,
-0.067857191,
-0.0207226947,
0.0296910238,
-0.0621310398,
0.1152243912,
0.3349699974,
-0.203099221,
0.039852377,
-0.0570105389,
0.2160633355,
-0.1514354199,
0.05016651,
-0.2026712298,
0.0485044941,
-0.0486546643,
0.0483689122,
-0.0047975956,
-0.5570877194,
0.0088145696,
-0.2539272606,
-0.0620396696,
0.6050813794,
-0.0001157383,
0.0479933433,
0.4315150976,
0.2505497634,
-0.4212138653,
-0.551967144,
-0.2199693173,
-0.2015582323,
0.2262363732,
-0.0297794845,
-0.1138479859,
-0.2914706171,
-0.0855815634,
-0.3873485029,
-0.1464910209,
0.3179005384,
0.2245865613,
0.4525855482,
-0.4035227001,
-0.0200541243,
0.2998402417,
0.0119615598,
0.0620975159,
-0.0044695246,
0.0230283961,
0.317956984,
-0.0509989113,
0.2502596676,
-0.2320385575,
-0.2159140706,
0.2059410661,
0.2145479321,
0.2079018354,
-0.2391275465,
0.2007957846,
0.333137095,
0.3371535838,
-0.4109534919,
-0.2448703498,
-0.1131495014,
0.2025988549,
-0.3050121665,
0.1224777997,
0.2190350741,
-0.0976098403,
0.1202472374,
0.0268630423,
-0.0363824703,
-0.0421757996,
-0.0635888651,
-0.6279232502,
0.2784634531,
-0.1100543439,
-0.0245727412,
0.0902421847,
-0.1088504121,
-0.1291363686,
-0.2736847103,
-0.2926336527,
0.0921353176,
-0.1048853546,
0.0988699719,
0.0111006405,
0.0942209363,
-0.0808606595,
-0.139923051,
0.1558123678,
-0.0523680523,
0.0143232141,
0.2719790936,
0.1973438859,
0.3333816826,
0.1830677688,
0.0427838303,
0.3367651701,
-0.0477342494,
0.1381702274,
0.1245057732,
0.1013798639,
0.010403242,
0.2856206894,
0.0354039259,
0.4912148416,
-0.2636116445,
-0.3900065124,
0.1111013368,
-0.3835561574,
0.1271078587,
-0.0717789456,
0.1379649341,
-0.1365856677,
0.4354634881,
0.1322075278,
0.1562484056,
-0.1918232143,
-0.2227644026,
-0.3445287645,
-0.0510213859,
-0.0645233467,
-0.20916076,
0.0423187949,
-0.4008869529,
0.0251719579,
0.3265522718,
0.0950698406,
-0.0555601977,
-0.231548816,
-0.1210821271,
-0.0499055237,
0.5236978531,
-0.0462859645,
0.1692640781,
0.2177028209,
-0.4019733071,
-0.061547,
0.7788646221,
-0.2436651886,
-0.0696813911,
-0.2847959399,
0.189751029,
-0.3129333854,
0.0067273695,
-0.2576362491,
0.2460451573,
0.0616834685,
0.0679817498,
0.1111836508,
-0.3899161518,
0.0269548073,
-0.2300127596,
0.0409424454,
0.2821366191,
-0.6615740061,
-0.2588754296,
-0.0729544088,
-0.4559818208,
0.2041565627,
-0.006838114,
0.1046147719,
0.0472204499,
-0.1996591985,
0.1338535398,
0.2810949683,
-0.1671690792,
-0.3505244553,
0.3034851849,
-0.3332686126,
0.1373397559,
0.0140647646,
-0.1182671413,
0.0621017553,
0.0828007162,
0.1067942232,
0.001009476,
0.0501029268,
0.1913450807,
-0.4915561974,
-0.1665969938,
0.391361028,
-0.0292360727,
0.0832761079,
0.1713204682,
-0.0148971668,
-0.3469556272,
0.2699847221,
-0.0874363929,
0.1533455104,
0.1224733219,
0.378624022,
0.0647771284,
0.0468615741,
-0.261880219,
-0.4508713186,
0.1262310296,
-0.1929033101,
0.2382201552,
-0.2372423559,
-0.2448141426,
-0.051716432,
-0.0108538819,
0.0298717935,
0.1173877791,
0.1567518413,
0.2081982642,
-0.2882648408,
0.0674291849,
-0.0367036611,
0.1005245,
0.002671279,
0.2117912471,
-0.2216128856,
0.0758098811,
0.1084672287,
-0.1544581205,
-0.2445391417,
0.3457496464,
0.2168445587,
0.1089645252,
-0.1872244179,
0.4525820613,
-0.0980247408,
0.0897335783,
-0.3890823722,
-0.0972478986,
0.1509339362,
-0.1823014021,
0.1338852346,
0.4232853651,
0.1643429548,
0.0870150998,
-0.2332682759,
0.3427323699,
0.0370602943,
0.3159333169,
-0.0744973123,
0.1298267543,
0.002738856,
0.0030953393,
-0.2146289498,
-0.3411806822,
-0.0542869046,
0.1683574319,
0.1871850789,
0.3444029093,
-0.2909920216,
0.1830553263,
0.1498097479,
-0.4413323402,
0.0380149707,
0.170033142,
-0.4569516182,
-0.0696573779,
0.1049286947,
0.2288632542,
0.3769007027,
0.253706038,
0.1205954924,
0.0907928571,
-0.1290891021,
-0.0565489866,
0.3581959605,
0.0172251109,
0.0495939851,
0.2201278955,
0.2890397608,
-0.0385313891,
-0.1697396785,
0.0768072009,
-0.024294097,
0.3015412986,
-0.7321713567,
0.0363961197,
-0.5188024044,
0.1717746109,
-0.095254153,
-0.2316322923,
-0.1702776402,
-0.4145475626,
-0.1080274209,
-0.0635054708,
-0.1373109967,
0.0545858257,
-0.1709757894,
0.0222918075,
-0.228956148,
-0.0785653666,
-0.1221844852,
0.0858005881,
-0.4540354609,
0.0473493077,
0.0601982102,
0.0882903039,
0.11427553,
-0.0037203277,
-0.1359754056,
-0.1744890064,
-0.2806696594,
-0.0401969515,
-0.3133096993,
0.5257245302,
0.1624632478,
0.1519570053,
-0.0960409939,
0.0501733944,
0.1939440519,
-0.0811986551,
-0.2163535208,
0.2314608395,
-0.1884567738,
0.1616542637,
-0.3891939819,
-0.4299282134,
-0.2559578419,
-0.1704467833,
-0.0848030373,
-0.0481539667,
0.2447375804,
0.1816385686,
0.1346268207,
0.2280838937,
0.0221654959,
-0.0513080023,
-0.1619962901,
-0.2243852168,
0.3939981461,
-0.1365155578,
-0.1832746863,
0.2623386979,
0.0775026307,
0.1046058014,
0.0580065176,
-0.4282047153,
0.2791334689,
-0.0760892108,
0.3650730848,
0.035309229,
0.0096997656,
0.2040939182,
0.3331021369,
-0.1281464398,
-0.036078088,
-0.1162696406,
-0.0320401229,
-0.1283912212,
0.1050488129,
0.0286857877,
0.1546305716,
-0.0466302261,
0.4541003406,
0.045741722,
0.017240474,
0.022858955,
-0.2077739686,
0.4054098129,
-0.2046217024,
-0.0793897137,
-0.2077354342,
0.0960014686,
-0.0104491496,
0.2708822787,
0.0307029095,
-0.1684587896,
0.0765379369,
0.0358712003,
-0.3999486864,
-0.0749809369,
0.2080427855,
-0.3923521042,
0.0603959598,
-0.0257452745,
0.1406721175,
-0.0619826764,
-0.2036762387,
-0.087531969,
0.3308120072,
-0.0078573972,
-0.1211920977,
-0.4837682545,
-0.0978219882,
-0.2486168444,
0.278545171,
-0.0268263165,
0.0776667446,
-0.0033213808,
-0.3523310721,
0.240874052,
0.049445007,
0.5244019032,
0.1763635278,
0.0384924449,
0.4375925362,
0.0589946993,
-0.3407512903,
-0.2316754013,
-0.4239762723,
-0.0216816943,
-0.029826764,
0.1475348473,
-0.3297140896,
-0.3682482839,
0.2592156231,
0.0750359595,
-0.0663781688,
-0.0771320164,
-0.4577882886,
-0.0915720239,
0.1510785222,
-0.0954094902,
-0.2610073984,
0.4661144018,
-0.697963953,
-0.0843432173,
-0.1336548179,
0.0854700059,
0.3335590065,
-0.084436141,
0.7197684646,
-0.1261900365,
-0.136895135,
0.0505312495,
0.1597515643,
0.2601366937,
0.2891223133,
-0.0993789434,
-0.0955851376,
0.1357460469,
-0.0685617551,
0.3678527772,
0.2460249662,
-0.2682851851,
0.0968952402,
0.0798291117,
0.2273753434,
-0.1707233489,
-0.1694281846,
0.3182504773,
-0.0528956801,
-0.3190966547,
-0.396333009,
0.4738736749,
0.2534774244,
-0.1523105204,
0.0742875189,
0.3666007817,
-0.3097351491,
0.3756525517,
0.0856654495,
0.9187885523,
-0.0556461886,
0.280195415,
0.5152326822,
-0.1413158774,
0.5202366114,
0.0252671,
0.1702068001,
-0.5660803318,
-0.0903358459,
-0.0670613945,
0.07465031,
0.4362591207,
0.0353669077,
-0.5187315345,
0.2395223528,
-0.3941583633,
0.1905562431,
0.2415941805,
-0.2749005854,
-0.2181883752,
-0.0437179208,
-0.1914134175,
0.1281914413,
-0.1363654882,
-0.0066343085,
0.1118622795,
0.0078264261,
-0.3515725136,
-0.0603902638,
-0.1097439677,
0.0147372307,
-0.0536676534,
-0.1467091143,
0.2505296469,
-0.4203734994,
-0.1723673195,
0.3913594782,
-0.0498450436,
0.3019458652,
-0.0914338231,
-0.0115254913,
0.0231767986,
0.5091546178,
0.4162634611,
-0.0134686064,
0.2309780717,
0.2336401194,
-0.4453630447,
0.1756029576,
-0.2002995759,
0.055220589,
0.0991427377,
-0.0903691426,
-0.2409929782,
-0.286024183,
-0.1753136218,
-0.0392531082,
0.5454382896,
-0.2068626434,
0.1619348377,
0.0732993186,
-0.2768183053,
0.1017206311,
0.0247491281,
-0.4544762373,
-0.0327690169,
0.3599515259,
0.4009649456,
0.1609817147,
0.5070958138,
-0.0040623862,
-0.2327819169,
-0.1871398389,
0.2672893107,
0.2350997329,
-0.1897199899,
0.2651409209,
0.0502745546,
-0.0631651431,
0.0093793739,
0.3159005344,
-0.2111400068,
0.2291471958,
-0.375908047,
-0.217306599,
-0.3350892663,
0.0038255109,
0.0372725278,
0.2122573107,
0.1306618303,
0.0028302376,
0.0763385221,
-0.0651319548,
-0.3341446817,
0.149139747,
-0.1066956818,
0.1389230341,
-0.1071574539,
0.1779061258,
0.2332158238,
-0.0212293193,
0.2566394508,
-0.0863773897,
0.0005246298,
-0.2190834433,
-0.2641188502,
0.1428264827,
-0.0787197053,
0.080180645,
0.1448146701,
0.054456979,
0.0469228216,
-0.0489437245,
0.5925802588,
0.2621035874,
-0.0392627753,
0.3547200859,
0.2954688668,
0.2535069585,
-0.0155402515,
0.0888783187,
-0.1761208475,
-0.1904979944,
0.0735488161,
0.2151485682,
-0.1391449273,
-0.1156483069,
-0.1313053519,
0.1064228937,
-0.0394109823,
0.3940593302,
0.2818523347,
-0.4003314376,
0.0598774627,
0.0356630124,
0.1304243356,
0.0261875596,
-0.2558035254,
-0.0427352525,
-0.0658950284,
0.2198987454,
-0.1158863679,
-0.0813405588,
-0.0710795596,
-0.0151800131,
0.0507455841,
0.2071905583,
0.0718166083,
0.0046827798,
-0.0186830275,
0.01120885,
0.2288810313,
-0.1873951405,
0.2357548177,
0.8292461634,
-0.011621247,
0.1074687019,
0.2553554475,
-0.1687384993,
-0.2999375463,
0.4275358319,
0.1088160649,
0.3984622955,
0.1094973236,
0.0544559956,
-0.224155426,
-0.5770074129,
0.1867196113,
0.439411521,
-0.2301841676,
-0.0142975133,
0.2559022605,
0.2678253949,
-0.265696466,
-0.2925352156,
-0.0760144219,
0.0630785152,
-0.4207122922,
-0.3432616591,
-0.1715005785,
-0.1652355343,
-0.1435095221,
0.0273712128,
-0.1034800485,
-0.1615098566,
0.2245609611,
0.2031516433,
-0.1634835005,
-0.3245437741,
-0.1472129524,
0.1777309924,
0.0773790777,
-0.0062172734,
0.2155026495,
-0.0026201278,
0.1383331567,
0.3459532559,
0.368565619,
0.524158895,
0.321552068,
-0.0090506151,
-0.0315635279,
-0.0508549474,
-0.1938535273,
0.2192721814,
0.1104453951,
0.0471443646,
0.2830263972,
0.0613666885,
0.1617403924,
-0.1462865621,
0.181776166,
0.1423173398,
0.2133203596,
-0.397040695,
0.6266221404,
0.0114939744,
-0.149555549,
-0.144031018,
-0.2330569029,
-0.5500783324,
-0.0843271017,
0.3694835603,
0.1748049557,
0.0958618596,
-0.1981948614,
0.1086502001,
0.2830139995,
0.2705588639,
0.087112017,
0.0490866899,
-0.3476622701,
0.0630266592,
-0.6452662945,
0.2464608699,
0.1120957732,
0.3510589004,
0.0042117429,
0.0471600704,
-0.200390473,
-0.1013235897,
0.1138019934,
0.1332248747,
0.1856136769,
0.0303472374,
-0.3090395331,
-0.0924041644,
0.0233434215,
-0.0872954726,
-0.169850409,
-0.2530243099,
0.1657417715,
0.0949094519,
0.0369119532,
0.1031175554,
0.051374387,
0.2082881033,
0.0023769375,
0.4592063427,
0.0781264678,
0.1726065278,
0.0925995037,
-0.2378625125,
-0.2445796728,
0.0691287816,
-0.4491716921,
0.1951554269,
0.0113984514,
0.4560483098,
0.1070245653,
-0.0351877622,
-0.0644927993,
0.1506911218,
0.1975207478,
0.0627651662,
-0.5814903975,
0.2692269087,
-0.1917490065,
0.0412260257,
0.0698243976,
0.0230812151,
0.2607393861,
0.2605537176,
-0.3202935457,
-0.2545708716,
0.4859703779,
-0.1807729304,
-0.1767816395,
-0.254753828,
0.2028669566,
0.0377263017,
-0.3065603375,
-0.6241031289,
-0.1227760911,
0.4069283605,
-0.3267411888,
-0.214220643,
0.111270003,
-0.1418680549,
0.2245862037,
-0.3807933331,
0.221859917,
0.044005055,
0.01985191,
0.0425349027,
-0.4498520494
] |
https://github.com/huggingface/datasets/issues/3178 | "Property couldn't be hashed properly" even though fully picklable | After some digging, I found that this is caused by `dill` and using `recurse=True)` when trying to dump the object. The problem also occurs without multiprocessing. I can only find [the following information](https://dill.readthedocs.io/en/latest/dill.html#dill._dill.dumps) about this:
> If recurse=True, then objects referred to in the global dictionary are recursively traced and pickled, instead of the default behavior of attempting to store the entire global dictionary. This is needed for functions defined via exec().
In the utils, this is explicitly enabled
https://github.com/huggingface/datasets/blob/df63614223bf1dd1feb267d39d741bada613352c/src/datasets/utils/py_utils.py#L327-L330
Is this really necessary? Is there a way around it? Also pinging the spaCy team in case this is easy to solve on their end. (I hope so.) | ## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
| 108 | "Property couldn't be hashed properly" even though fully picklable
## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
After some digging, I found that this is caused by `dill` and using `recurse=True)` when trying to dump the object. The problem also occurs without multiprocessing. I can only find [the following information](https://dill.readthedocs.io/en/latest/dill.html#dill._dill.dumps) about this:
> If recurse=True, then objects referred to in the global dictionary are recursively traced and pickled, instead of the default behavior of attempting to store the entire global dictionary. This is needed for functions defined via exec().
In the utils, this is explicitly enabled
https://github.com/huggingface/datasets/blob/df63614223bf1dd1feb267d39d741bada613352c/src/datasets/utils/py_utils.py#L327-L330
Is this really necessary? Is there a way around it? Also pinging the spaCy team in case this is easy to solve on their end. (I hope so.) | [
-0.0547037572,
-0.0296596158,
0.1383616775,
0.1674575657,
0.2572079003,
-0.1886388958,
0.3345493674,
0.0546137951,
0.0525931679,
0.1248953864,
0.0389523171,
0.5095518827,
-0.2360349447,
0.3779696524,
-0.1779329479,
0.0818778947,
0.0879114941,
-0.0570349731,
0.0878298432,
-0.1197966412,
-0.0697439685,
-0.0256732684,
-0.3639787436,
0.0150344642,
-0.5814357996,
-0.2471628636,
0.1233717129,
-0.0043504587,
-0.1769182086,
-0.3019955456,
0.1507757157,
-0.0842573196,
-0.0198123567,
0.0914173946,
-0.0001276944,
-0.0400400944,
0.2713608742,
-0.0208546668,
-0.0257947762,
-0.4120488167,
0.1907008439,
-0.3608407974,
0.0740303248,
-0.211347267,
-0.1636205316,
0.3611479104,
-0.2467535585,
-0.2143102884,
0.260607183,
0.0114906086,
0.0392241217,
0.3941231072,
0.0432313383,
0.2574501336,
-0.0588377379,
-0.0148635246,
-0.4733221233,
0.109114565,
0.1186906546,
0.1557988673,
-0.0484532043,
-0.019749077,
0.0093573071,
-0.1011296362,
-0.0401526913,
0.1538345963,
-0.237302959,
-0.0516985804,
0.1653799862,
0.0052834945,
0.0333908945,
-0.3204625547,
-0.3859625161,
-0.1491619647,
0.0474647768,
-0.5314664841,
0.4600654542,
0.0664499253,
0.1255585104,
0.1659148633,
-0.0848168954,
0.0914708599,
0.1008479819,
0.164870128,
0.2551167011,
0.4194827676,
-0.0190647002,
0.2278356701,
-0.0405594781,
-0.1689594835,
0.2658732235,
0.0705322027,
0.1795156002,
0.0836890414,
-0.0195625331,
-0.0307151452,
-0.1670056432,
0.2477212697,
0.2644006908,
-0.0484205522,
0.007160774,
0.1911672354,
-0.33025226,
0.0856915861,
0.1315112412,
-0.265206784,
0.2935669422,
0.4055650532,
-0.0374953933,
0.0583079755,
-0.4280025661,
0.0356123522,
0.0313389413,
-0.0029143307,
0.114661321,
0.1762257218,
0.202796936,
-0.1554870158,
-0.1113362238,
0.2510730624,
-0.4037123024,
-0.0514079742,
0.1103123873,
0.1127123684,
-0.1159863397,
-0.2407061011,
-0.192309469,
0.241377309,
-0.337374419,
-0.3447399735,
-0.0766617879,
0.0834250227,
-0.4073736072,
-0.0222928561,
0.0333841667,
0.1963319182,
0.377796948,
0.1117832139,
-0.1122461334,
0.1048943773,
-0.0382502154,
-0.2463395,
0.1190531179,
0.0087581398,
-0.159172371,
0.1909403354,
0.1781331003,
-0.4805569351,
-0.2565742433,
0.0611921549,
-0.2101026773,
0.0271804929,
-0.0223347694,
-0.0561760366,
-0.3674880564,
-0.103926219,
-0.010629083,
0.2302388847,
0.3314209282,
0.0433118492,
0.0690918565,
-0.3608968258,
-0.3603518009,
-0.2394995093,
0.0475333519,
0.2380011231,
-0.2766398787,
-0.2168492526,
-0.2440198362,
0.0189822223,
0.9000562429,
0.2183276415,
-0.0556712486,
0.0234984681,
-0.2343845814,
0.7594913244,
0.0905847177,
-0.1478681713,
-0.5776648521,
-0.167631045,
-0.0203919969,
0.1384986192,
0.0229974706,
0.0227617323,
0.3518770039,
0.0264439993,
0.3190077543,
0.3026783466,
0.1961114109,
-0.302872628,
-0.3790924549,
-0.142558828,
0.3757954538,
-0.3132485449,
0.1351573169,
0.1308348775,
0.3068951368,
0.4246308804,
0.2254492939,
0.2583018839,
0.1783137918,
-0.0941027328,
0.3221184313,
-0.0918224007,
-0.1540010273,
-0.1793636531,
-0.1915613562,
0.2066816986,
0.023735825,
0.2731806338,
-0.3610523045,
-0.1430864185,
0.0524439774,
0.176856339,
-0.1652963012,
-0.3081740141,
-0.0823015496,
0.0367540531,
-0.1271738857,
0.0828393549,
-0.1993957609,
-0.0555443875,
-0.1569062918,
0.0780029073,
0.119815439,
0.0761380196,
-0.1625960618,
-0.4827044308,
-0.1736913025,
0.2461585402,
0.3014327884,
0.0034809171,
-0.2449755818,
-0.0888495892,
0.1731424034,
-0.3360346854,
-0.1316605508,
0.2585936785,
0.3164643347,
0.0204325486,
0.0327867754,
0.010144542,
-0.0102995848,
-0.0306296796,
0.2863678038,
0.284411788,
-0.1854794919,
0.0013758254,
-0.1170924157,
0.1922469139,
0.4385982752,
-0.0604097769,
0.005020828,
-0.4889424145,
0.1553365141,
-0.0615307167,
0.4590315819,
0.3527908623,
-0.3520230651,
0.3137389719,
0.7528020144,
0.1944844574,
0.3439007401,
-0.0378361195,
0.0523134544,
0.0474330261,
0.1562965661,
-0.0160856824,
0.1846254468,
-0.0083616348,
0.1808769405,
0.1700421125,
-0.210577473,
-0.1544239074,
0.0091514932,
-0.0678443611,
-0.1412783265,
0.2443773746,
0.0432107039,
0.1253934354,
-0.170493111,
-0.1573505849,
0.0509857908,
0.306831181,
-0.3004431427,
-0.090945676,
-0.7436493635,
0.3857062459,
-0.0108448761,
-0.0645975247,
-0.1444186568,
-0.1175103709,
0.0300632454,
0.1875724941,
-0.1544266492,
0.2837776244,
-0.3315267563,
0.1442704648,
-0.0231079198,
-0.1037352756,
-0.0666976497,
0.0035622192,
-0.3922694623,
-0.0960427821,
0.1824147403,
0.0437409021,
0.158203274,
0.0307286568,
-0.1245734394,
-0.1211785525,
-0.1619984806,
0.207660377,
-0.101419501,
0.6599536538,
0.015188084,
-0.0401160829,
-0.2227500677,
-0.042441681,
0.3229544759,
0.0481723547,
-0.1957854331,
0.0668941289,
0.1534006298,
-0.2971335053,
-0.1280110329,
-0.0810010433,
-0.398724407,
-0.2029238939,
-0.0015435937,
0.0409982875,
0.1024120972,
0.1651544869,
-0.0439473428,
0.039993383,
-0.1767993867,
0.1112605929,
-0.1959138364,
-0.5463487506,
0.1524967402,
-0.0229182374,
-0.2902197242,
-0.1396175772,
-0.0799594223,
0.1385860592,
0.2206831872,
-0.0128688039,
0.115886189,
-0.2101252079,
0.4909321964,
0.0909305438,
-0.0949427634,
0.1557549387,
0.1762556434,
0.1384196877,
-0.2511658669,
-0.1176665872,
0.2310352772,
-0.3556729257,
0.283018142,
0.2095107585,
-0.1625982523,
0.3103232682,
0.5404540896,
0.0646587536,
-0.4485714436,
0.658018589,
-0.0632330701,
0.0367329642,
-0.0528674424,
-0.5302308798,
-0.1007553488,
0.0489967875,
-0.1999997497,
0.1675212532,
-0.2166356891,
0.3675014973,
0.2530467808,
-0.0938391387,
-0.4194611311,
-0.2844651639,
0.1701907665,
0.0100753186,
0.023203345,
0.018644521,
0.0716274157,
0.0931468233,
-0.2374302447,
0.0882018059,
0.1123885363,
-0.0080092251,
0.2254105508,
-0.3480645418,
-0.1606261879,
-0.0121608563,
0.1516553462,
0.0018499478,
0.6496222019,
-0.3341351151,
-0.0326856337,
0.0116718356,
0.1500446945,
0.5063470006,
-0.3134467602,
0.2174639851,
0.2441744208,
-0.1328842342,
0.2730717957,
-0.3095413744,
-0.2748121321,
0.4669102132,
0.151848644,
0.4360796511,
-0.2806734145,
0.089700073,
-0.0260195527,
0.1104194149,
0.0163213816,
0.0398565345,
-0.2078765035,
0.0274157599,
-0.2544297874,
0.1486523598,
-0.0139431125,
0.3509781957,
0.1144280434,
0.1137029156,
-0.2285264134,
-0.3311949968,
0.0212135985,
0.1344624609,
0.0931417122,
-0.1248481125,
0.3866323829,
-0.2869854867,
0.1531801671,
0.0576768927,
0.3597967327,
0.1018457413,
-0.4830713272,
-0.2248996049,
-0.1058279499,
0.1986412406,
0.2728036642,
-0.0880790949,
0.322096318,
-0.1087870523,
0.028251905,
0.0867958218,
0.2104933411,
0.1615778059,
0.1686565727,
-0.4326957464,
0.0554656982,
0.3112519085,
0.171020627,
-0.0361163542,
-0.022772342,
0.1751399785,
-0.3406805396,
0.4461533129,
0.2815915942,
1.2980004549,
-0.1158357859,
-0.0815618336,
-0.0376719497,
0.3427511454,
0.6281681657,
-0.0047751153,
-0.0637118965,
-0.2960307598,
-0.0373425521,
-0.0196647532,
-0.0832910836,
0.4282989502,
0.0768294036,
-0.110401392,
0.1596340835,
-0.4422547221,
-0.2462898344,
-0.0062782853,
0.0995812193,
-0.2199065089,
-0.1601839811,
0.1497466415,
-0.0449612848,
-0.3405068517,
0.3380144238,
-0.0139570013,
-0.0397674665,
-0.2785816789,
-0.1287188679,
-0.5075514913,
0.1321091056,
-0.2401426733,
0.077969633,
0.1785475165,
0.1499052346,
0.002595281,
-0.3315670788,
0.4971368909,
0.397376895,
-0.0863510743,
0.0583578572,
-0.0053254063,
-0.2267412841,
0.2406246066,
-0.0009640727,
0.5052663088,
0.1125775054,
-0.0049079708,
-0.2517134249,
0.0071727601,
-0.0144628156,
-0.2387796789,
-0.0017566568,
0.2449572682,
-0.3661653697,
-0.4907000661,
-0.0895317048,
0.0124477968,
-0.2250330448,
-0.0155829266,
0.0913009644,
-0.0856952518,
0.2112417519,
0.0587833337,
-0.1739728302,
-0.0077851992,
0.1336868703,
0.0580744855,
0.2336702049,
0.4034205675,
-0.0270993896,
-0.2810717523,
-0.065806061,
-0.050757613,
-0.1043203026,
0.0212903302,
0.0201701932,
-0.0487438813,
-0.2473257929,
-0.424144268,
0.4363887608,
0.3371751308,
0.1167273819,
-0.1022853702,
-0.4436214864,
-0.1478161514,
0.1858899593,
-0.1083173975,
-0.0321706422,
-0.1761490852,
0.8972696662,
-0.1178735048,
-0.1244419962,
-0.0896608382,
-0.0607659854,
-0.252043575,
0.0429904498,
0.2539970875,
0.1062388271,
-0.2125083655,
-0.0547054522,
-0.0610696971,
0.2394860685,
0.0623016544,
-0.0029367607,
-0.4034935534,
0.1946725547,
0.4432670474,
0.0760604963,
-0.1604299694,
-0.1373716891,
0.1805870533,
-0.2636670768,
-0.2539542019,
0.4749056697,
0.2321776003,
0.4184497595,
0.1967936158,
0.2749226987,
-0.0653802231,
0.0270640384,
-0.0921382904,
0.1749438047,
0.0017400493,
0.0215360802,
0.2186419815,
0.1148916781,
-0.204926759,
-0.1758001298,
-0.2116881907,
0.3480989933,
0.0008483459,
0.0011611009,
0.3057721853,
0.0638405457,
0.1857886165,
0.2191876024,
-0.0020264396,
-0.5876792073,
0.4587335289,
0.0280445293,
-0.4276821017,
-0.147218734,
0.0309781134,
0.0807972476,
-0.0735364631,
0.2868472934,
-0.2121807784,
0.2877137065,
-0.7462058067,
-0.0635889471,
0.5026014447,
-0.1601416469,
-0.0615712889,
-0.1991842091,
-0.1536071748,
0.3174808323,
0.28349787,
-0.0587094687,
0.0185796786,
0.4506964087,
-0.2275973707,
0.4550673664,
0.2652670741,
0.1009547412,
-0.0410911962,
-0.3341942132,
0.431022346,
0.2582305372,
0.2840678096,
0.1921057254,
-0.0064201425,
0.0553124249,
-0.0671324283,
-0.284339726,
0.0628115535,
0.3188642263,
-0.2507953048,
-0.1182130277,
-0.1136940941,
0.0208654497,
-0.323400259,
0.0282415543,
-0.0000111144,
0.3174370229,
0.3843381703,
-0.0727047101,
-0.2046419531,
-0.3929638565,
-0.0689787045,
0.1495275795,
0.0466881394,
-0.3392073512,
0.1224664226,
-0.1451081634,
-0.0543557666,
-0.2438494265,
0.1802670658,
0.3568904996,
0.4325848222,
0.1198400557,
-0.1940246522,
-0.3718809187,
0.1307142079,
-0.2088869661,
0.4987926483,
0.2577508092,
0.0108773643,
0.0827217922,
-0.115213275,
-0.0966749117,
0.3931744993,
0.3485361338,
0.1090464443,
-0.0801922008,
0.1890759766,
0.0699377954,
-0.1930680424,
0.0417050943,
0.0294961948,
-0.1845296323,
-0.0385489017,
0.4466285408,
0.1294782311,
0.3553231359,
-0.3326562941,
0.0218980368,
0.3511330783,
0.0810933858,
0.5432698131,
-0.0535807051,
-0.4718731046,
0.6238460541,
-0.5803315639,
0.3404592872,
-0.1978703886,
-0.3355073035,
-0.2210291475,
0.1417924166,
0.0583970137,
0.1976752281,
-0.1559436619,
0.5343947411,
-0.0876789615,
0.0118968263,
-0.1175985262,
0.0271564759,
-0.1152742282,
-0.1859707236,
0.0591473356,
-0.4235768616,
0.3720368445,
-0.162925899,
-0.0777222514,
-0.1368248016,
-0.4115264714,
0.3600969613,
0.1749584526,
0.2012335807,
0.4671104252,
0.5732735991,
-0.0765715986,
0.1230083928,
-0.3830678463,
-0.2349012792,
-0.1785785854,
0.3983487487,
-0.1059957221,
0.0254362319,
-0.041132655,
0.176678732,
-0.4238360822,
0.1713766158,
-0.3041483164,
-0.0763450265,
-0.1750941426,
0.2838480473,
-0.0343426019,
0.0743419528,
-0.2653817534,
0.4218532741,
-0.1129603907,
0.3408609033,
-0.2827915251,
-0.4867301285,
0.4779389501,
-0.5187080503,
-0.171952188,
0.0099418517,
0.1570142359,
0.2735477984,
-0.1657187194,
-0.4894462526,
-0.4313940704,
0.3024000525,
-0.1926945299,
-0.1562816948,
0.0346319228,
0.2694478929,
-0.0029802034,
-0.0985471159,
0.561190486,
-0.1310111433,
-0.224154368,
0.5392277241,
0.0612847582
] |
https://github.com/huggingface/datasets/issues/3178 | "Property couldn't be hashed properly" even though fully picklable | Hi ! Thanks for reporting
Yes `recurse=True` is necessary to be able to hash all the objects that are passed to the `map` function
EDIT: hopefully this object can be serializable soon, but otherwise we can consider adding more control to the user on how to hash objects that are not serializable (as mentioned in https://github.com/huggingface/datasets/issues/3044#issuecomment-948818210) | ## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
| 56 | "Property couldn't be hashed properly" even though fully picklable
## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
Hi ! Thanks for reporting
Yes `recurse=True` is necessary to be able to hash all the objects that are passed to the `map` function
EDIT: hopefully this object can be serializable soon, but otherwise we can consider adding more control to the user on how to hash objects that are not serializable (as mentioned in https://github.com/huggingface/datasets/issues/3044#issuecomment-948818210) | [
-0.0547037572,
-0.0296596158,
0.1383616775,
0.1674575657,
0.2572079003,
-0.1886388958,
0.3345493674,
0.0546137951,
0.0525931679,
0.1248953864,
0.0389523171,
0.5095518827,
-0.2360349447,
0.3779696524,
-0.1779329479,
0.0818778947,
0.0879114941,
-0.0570349731,
0.0878298432,
-0.1197966412,
-0.0697439685,
-0.0256732684,
-0.3639787436,
0.0150344642,
-0.5814357996,
-0.2471628636,
0.1233717129,
-0.0043504587,
-0.1769182086,
-0.3019955456,
0.1507757157,
-0.0842573196,
-0.0198123567,
0.0914173946,
-0.0001276944,
-0.0400400944,
0.2713608742,
-0.0208546668,
-0.0257947762,
-0.4120488167,
0.1907008439,
-0.3608407974,
0.0740303248,
-0.211347267,
-0.1636205316,
0.3611479104,
-0.2467535585,
-0.2143102884,
0.260607183,
0.0114906086,
0.0392241217,
0.3941231072,
0.0432313383,
0.2574501336,
-0.0588377379,
-0.0148635246,
-0.4733221233,
0.109114565,
0.1186906546,
0.1557988673,
-0.0484532043,
-0.019749077,
0.0093573071,
-0.1011296362,
-0.0401526913,
0.1538345963,
-0.237302959,
-0.0516985804,
0.1653799862,
0.0052834945,
0.0333908945,
-0.3204625547,
-0.3859625161,
-0.1491619647,
0.0474647768,
-0.5314664841,
0.4600654542,
0.0664499253,
0.1255585104,
0.1659148633,
-0.0848168954,
0.0914708599,
0.1008479819,
0.164870128,
0.2551167011,
0.4194827676,
-0.0190647002,
0.2278356701,
-0.0405594781,
-0.1689594835,
0.2658732235,
0.0705322027,
0.1795156002,
0.0836890414,
-0.0195625331,
-0.0307151452,
-0.1670056432,
0.2477212697,
0.2644006908,
-0.0484205522,
0.007160774,
0.1911672354,
-0.33025226,
0.0856915861,
0.1315112412,
-0.265206784,
0.2935669422,
0.4055650532,
-0.0374953933,
0.0583079755,
-0.4280025661,
0.0356123522,
0.0313389413,
-0.0029143307,
0.114661321,
0.1762257218,
0.202796936,
-0.1554870158,
-0.1113362238,
0.2510730624,
-0.4037123024,
-0.0514079742,
0.1103123873,
0.1127123684,
-0.1159863397,
-0.2407061011,
-0.192309469,
0.241377309,
-0.337374419,
-0.3447399735,
-0.0766617879,
0.0834250227,
-0.4073736072,
-0.0222928561,
0.0333841667,
0.1963319182,
0.377796948,
0.1117832139,
-0.1122461334,
0.1048943773,
-0.0382502154,
-0.2463395,
0.1190531179,
0.0087581398,
-0.159172371,
0.1909403354,
0.1781331003,
-0.4805569351,
-0.2565742433,
0.0611921549,
-0.2101026773,
0.0271804929,
-0.0223347694,
-0.0561760366,
-0.3674880564,
-0.103926219,
-0.010629083,
0.2302388847,
0.3314209282,
0.0433118492,
0.0690918565,
-0.3608968258,
-0.3603518009,
-0.2394995093,
0.0475333519,
0.2380011231,
-0.2766398787,
-0.2168492526,
-0.2440198362,
0.0189822223,
0.9000562429,
0.2183276415,
-0.0556712486,
0.0234984681,
-0.2343845814,
0.7594913244,
0.0905847177,
-0.1478681713,
-0.5776648521,
-0.167631045,
-0.0203919969,
0.1384986192,
0.0229974706,
0.0227617323,
0.3518770039,
0.0264439993,
0.3190077543,
0.3026783466,
0.1961114109,
-0.302872628,
-0.3790924549,
-0.142558828,
0.3757954538,
-0.3132485449,
0.1351573169,
0.1308348775,
0.3068951368,
0.4246308804,
0.2254492939,
0.2583018839,
0.1783137918,
-0.0941027328,
0.3221184313,
-0.0918224007,
-0.1540010273,
-0.1793636531,
-0.1915613562,
0.2066816986,
0.023735825,
0.2731806338,
-0.3610523045,
-0.1430864185,
0.0524439774,
0.176856339,
-0.1652963012,
-0.3081740141,
-0.0823015496,
0.0367540531,
-0.1271738857,
0.0828393549,
-0.1993957609,
-0.0555443875,
-0.1569062918,
0.0780029073,
0.119815439,
0.0761380196,
-0.1625960618,
-0.4827044308,
-0.1736913025,
0.2461585402,
0.3014327884,
0.0034809171,
-0.2449755818,
-0.0888495892,
0.1731424034,
-0.3360346854,
-0.1316605508,
0.2585936785,
0.3164643347,
0.0204325486,
0.0327867754,
0.010144542,
-0.0102995848,
-0.0306296796,
0.2863678038,
0.284411788,
-0.1854794919,
0.0013758254,
-0.1170924157,
0.1922469139,
0.4385982752,
-0.0604097769,
0.005020828,
-0.4889424145,
0.1553365141,
-0.0615307167,
0.4590315819,
0.3527908623,
-0.3520230651,
0.3137389719,
0.7528020144,
0.1944844574,
0.3439007401,
-0.0378361195,
0.0523134544,
0.0474330261,
0.1562965661,
-0.0160856824,
0.1846254468,
-0.0083616348,
0.1808769405,
0.1700421125,
-0.210577473,
-0.1544239074,
0.0091514932,
-0.0678443611,
-0.1412783265,
0.2443773746,
0.0432107039,
0.1253934354,
-0.170493111,
-0.1573505849,
0.0509857908,
0.306831181,
-0.3004431427,
-0.090945676,
-0.7436493635,
0.3857062459,
-0.0108448761,
-0.0645975247,
-0.1444186568,
-0.1175103709,
0.0300632454,
0.1875724941,
-0.1544266492,
0.2837776244,
-0.3315267563,
0.1442704648,
-0.0231079198,
-0.1037352756,
-0.0666976497,
0.0035622192,
-0.3922694623,
-0.0960427821,
0.1824147403,
0.0437409021,
0.158203274,
0.0307286568,
-0.1245734394,
-0.1211785525,
-0.1619984806,
0.207660377,
-0.101419501,
0.6599536538,
0.015188084,
-0.0401160829,
-0.2227500677,
-0.042441681,
0.3229544759,
0.0481723547,
-0.1957854331,
0.0668941289,
0.1534006298,
-0.2971335053,
-0.1280110329,
-0.0810010433,
-0.398724407,
-0.2029238939,
-0.0015435937,
0.0409982875,
0.1024120972,
0.1651544869,
-0.0439473428,
0.039993383,
-0.1767993867,
0.1112605929,
-0.1959138364,
-0.5463487506,
0.1524967402,
-0.0229182374,
-0.2902197242,
-0.1396175772,
-0.0799594223,
0.1385860592,
0.2206831872,
-0.0128688039,
0.115886189,
-0.2101252079,
0.4909321964,
0.0909305438,
-0.0949427634,
0.1557549387,
0.1762556434,
0.1384196877,
-0.2511658669,
-0.1176665872,
0.2310352772,
-0.3556729257,
0.283018142,
0.2095107585,
-0.1625982523,
0.3103232682,
0.5404540896,
0.0646587536,
-0.4485714436,
0.658018589,
-0.0632330701,
0.0367329642,
-0.0528674424,
-0.5302308798,
-0.1007553488,
0.0489967875,
-0.1999997497,
0.1675212532,
-0.2166356891,
0.3675014973,
0.2530467808,
-0.0938391387,
-0.4194611311,
-0.2844651639,
0.1701907665,
0.0100753186,
0.023203345,
0.018644521,
0.0716274157,
0.0931468233,
-0.2374302447,
0.0882018059,
0.1123885363,
-0.0080092251,
0.2254105508,
-0.3480645418,
-0.1606261879,
-0.0121608563,
0.1516553462,
0.0018499478,
0.6496222019,
-0.3341351151,
-0.0326856337,
0.0116718356,
0.1500446945,
0.5063470006,
-0.3134467602,
0.2174639851,
0.2441744208,
-0.1328842342,
0.2730717957,
-0.3095413744,
-0.2748121321,
0.4669102132,
0.151848644,
0.4360796511,
-0.2806734145,
0.089700073,
-0.0260195527,
0.1104194149,
0.0163213816,
0.0398565345,
-0.2078765035,
0.0274157599,
-0.2544297874,
0.1486523598,
-0.0139431125,
0.3509781957,
0.1144280434,
0.1137029156,
-0.2285264134,
-0.3311949968,
0.0212135985,
0.1344624609,
0.0931417122,
-0.1248481125,
0.3866323829,
-0.2869854867,
0.1531801671,
0.0576768927,
0.3597967327,
0.1018457413,
-0.4830713272,
-0.2248996049,
-0.1058279499,
0.1986412406,
0.2728036642,
-0.0880790949,
0.322096318,
-0.1087870523,
0.028251905,
0.0867958218,
0.2104933411,
0.1615778059,
0.1686565727,
-0.4326957464,
0.0554656982,
0.3112519085,
0.171020627,
-0.0361163542,
-0.022772342,
0.1751399785,
-0.3406805396,
0.4461533129,
0.2815915942,
1.2980004549,
-0.1158357859,
-0.0815618336,
-0.0376719497,
0.3427511454,
0.6281681657,
-0.0047751153,
-0.0637118965,
-0.2960307598,
-0.0373425521,
-0.0196647532,
-0.0832910836,
0.4282989502,
0.0768294036,
-0.110401392,
0.1596340835,
-0.4422547221,
-0.2462898344,
-0.0062782853,
0.0995812193,
-0.2199065089,
-0.1601839811,
0.1497466415,
-0.0449612848,
-0.3405068517,
0.3380144238,
-0.0139570013,
-0.0397674665,
-0.2785816789,
-0.1287188679,
-0.5075514913,
0.1321091056,
-0.2401426733,
0.077969633,
0.1785475165,
0.1499052346,
0.002595281,
-0.3315670788,
0.4971368909,
0.397376895,
-0.0863510743,
0.0583578572,
-0.0053254063,
-0.2267412841,
0.2406246066,
-0.0009640727,
0.5052663088,
0.1125775054,
-0.0049079708,
-0.2517134249,
0.0071727601,
-0.0144628156,
-0.2387796789,
-0.0017566568,
0.2449572682,
-0.3661653697,
-0.4907000661,
-0.0895317048,
0.0124477968,
-0.2250330448,
-0.0155829266,
0.0913009644,
-0.0856952518,
0.2112417519,
0.0587833337,
-0.1739728302,
-0.0077851992,
0.1336868703,
0.0580744855,
0.2336702049,
0.4034205675,
-0.0270993896,
-0.2810717523,
-0.065806061,
-0.050757613,
-0.1043203026,
0.0212903302,
0.0201701932,
-0.0487438813,
-0.2473257929,
-0.424144268,
0.4363887608,
0.3371751308,
0.1167273819,
-0.1022853702,
-0.4436214864,
-0.1478161514,
0.1858899593,
-0.1083173975,
-0.0321706422,
-0.1761490852,
0.8972696662,
-0.1178735048,
-0.1244419962,
-0.0896608382,
-0.0607659854,
-0.252043575,
0.0429904498,
0.2539970875,
0.1062388271,
-0.2125083655,
-0.0547054522,
-0.0610696971,
0.2394860685,
0.0623016544,
-0.0029367607,
-0.4034935534,
0.1946725547,
0.4432670474,
0.0760604963,
-0.1604299694,
-0.1373716891,
0.1805870533,
-0.2636670768,
-0.2539542019,
0.4749056697,
0.2321776003,
0.4184497595,
0.1967936158,
0.2749226987,
-0.0653802231,
0.0270640384,
-0.0921382904,
0.1749438047,
0.0017400493,
0.0215360802,
0.2186419815,
0.1148916781,
-0.204926759,
-0.1758001298,
-0.2116881907,
0.3480989933,
0.0008483459,
0.0011611009,
0.3057721853,
0.0638405457,
0.1857886165,
0.2191876024,
-0.0020264396,
-0.5876792073,
0.4587335289,
0.0280445293,
-0.4276821017,
-0.147218734,
0.0309781134,
0.0807972476,
-0.0735364631,
0.2868472934,
-0.2121807784,
0.2877137065,
-0.7462058067,
-0.0635889471,
0.5026014447,
-0.1601416469,
-0.0615712889,
-0.1991842091,
-0.1536071748,
0.3174808323,
0.28349787,
-0.0587094687,
0.0185796786,
0.4506964087,
-0.2275973707,
0.4550673664,
0.2652670741,
0.1009547412,
-0.0410911962,
-0.3341942132,
0.431022346,
0.2582305372,
0.2840678096,
0.1921057254,
-0.0064201425,
0.0553124249,
-0.0671324283,
-0.284339726,
0.0628115535,
0.3188642263,
-0.2507953048,
-0.1182130277,
-0.1136940941,
0.0208654497,
-0.323400259,
0.0282415543,
-0.0000111144,
0.3174370229,
0.3843381703,
-0.0727047101,
-0.2046419531,
-0.3929638565,
-0.0689787045,
0.1495275795,
0.0466881394,
-0.3392073512,
0.1224664226,
-0.1451081634,
-0.0543557666,
-0.2438494265,
0.1802670658,
0.3568904996,
0.4325848222,
0.1198400557,
-0.1940246522,
-0.3718809187,
0.1307142079,
-0.2088869661,
0.4987926483,
0.2577508092,
0.0108773643,
0.0827217922,
-0.115213275,
-0.0966749117,
0.3931744993,
0.3485361338,
0.1090464443,
-0.0801922008,
0.1890759766,
0.0699377954,
-0.1930680424,
0.0417050943,
0.0294961948,
-0.1845296323,
-0.0385489017,
0.4466285408,
0.1294782311,
0.3553231359,
-0.3326562941,
0.0218980368,
0.3511330783,
0.0810933858,
0.5432698131,
-0.0535807051,
-0.4718731046,
0.6238460541,
-0.5803315639,
0.3404592872,
-0.1978703886,
-0.3355073035,
-0.2210291475,
0.1417924166,
0.0583970137,
0.1976752281,
-0.1559436619,
0.5343947411,
-0.0876789615,
0.0118968263,
-0.1175985262,
0.0271564759,
-0.1152742282,
-0.1859707236,
0.0591473356,
-0.4235768616,
0.3720368445,
-0.162925899,
-0.0777222514,
-0.1368248016,
-0.4115264714,
0.3600969613,
0.1749584526,
0.2012335807,
0.4671104252,
0.5732735991,
-0.0765715986,
0.1230083928,
-0.3830678463,
-0.2349012792,
-0.1785785854,
0.3983487487,
-0.1059957221,
0.0254362319,
-0.041132655,
0.176678732,
-0.4238360822,
0.1713766158,
-0.3041483164,
-0.0763450265,
-0.1750941426,
0.2838480473,
-0.0343426019,
0.0743419528,
-0.2653817534,
0.4218532741,
-0.1129603907,
0.3408609033,
-0.2827915251,
-0.4867301285,
0.4779389501,
-0.5187080503,
-0.171952188,
0.0099418517,
0.1570142359,
0.2735477984,
-0.1657187194,
-0.4894462526,
-0.4313940704,
0.3024000525,
-0.1926945299,
-0.1562816948,
0.0346319228,
0.2694478929,
-0.0029802034,
-0.0985471159,
0.561190486,
-0.1310111433,
-0.224154368,
0.5392277241,
0.0612847582
] |
https://github.com/huggingface/datasets/issues/3178 | "Property couldn't be hashed properly" even though fully picklable | I submitted a PR to spacy that should fix this issue (linked above). I'll leave this open until that PR is merged. | ## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
| 22 | "Property couldn't be hashed properly" even though fully picklable
## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
I submitted a PR to spacy that should fix this issue (linked above). I'll leave this open until that PR is merged. | [
-0.0547037572,
-0.0296596158,
0.1383616775,
0.1674575657,
0.2572079003,
-0.1886388958,
0.3345493674,
0.0546137951,
0.0525931679,
0.1248953864,
0.0389523171,
0.5095518827,
-0.2360349447,
0.3779696524,
-0.1779329479,
0.0818778947,
0.0879114941,
-0.0570349731,
0.0878298432,
-0.1197966412,
-0.0697439685,
-0.0256732684,
-0.3639787436,
0.0150344642,
-0.5814357996,
-0.2471628636,
0.1233717129,
-0.0043504587,
-0.1769182086,
-0.3019955456,
0.1507757157,
-0.0842573196,
-0.0198123567,
0.0914173946,
-0.0001276944,
-0.0400400944,
0.2713608742,
-0.0208546668,
-0.0257947762,
-0.4120488167,
0.1907008439,
-0.3608407974,
0.0740303248,
-0.211347267,
-0.1636205316,
0.3611479104,
-0.2467535585,
-0.2143102884,
0.260607183,
0.0114906086,
0.0392241217,
0.3941231072,
0.0432313383,
0.2574501336,
-0.0588377379,
-0.0148635246,
-0.4733221233,
0.109114565,
0.1186906546,
0.1557988673,
-0.0484532043,
-0.019749077,
0.0093573071,
-0.1011296362,
-0.0401526913,
0.1538345963,
-0.237302959,
-0.0516985804,
0.1653799862,
0.0052834945,
0.0333908945,
-0.3204625547,
-0.3859625161,
-0.1491619647,
0.0474647768,
-0.5314664841,
0.4600654542,
0.0664499253,
0.1255585104,
0.1659148633,
-0.0848168954,
0.0914708599,
0.1008479819,
0.164870128,
0.2551167011,
0.4194827676,
-0.0190647002,
0.2278356701,
-0.0405594781,
-0.1689594835,
0.2658732235,
0.0705322027,
0.1795156002,
0.0836890414,
-0.0195625331,
-0.0307151452,
-0.1670056432,
0.2477212697,
0.2644006908,
-0.0484205522,
0.007160774,
0.1911672354,
-0.33025226,
0.0856915861,
0.1315112412,
-0.265206784,
0.2935669422,
0.4055650532,
-0.0374953933,
0.0583079755,
-0.4280025661,
0.0356123522,
0.0313389413,
-0.0029143307,
0.114661321,
0.1762257218,
0.202796936,
-0.1554870158,
-0.1113362238,
0.2510730624,
-0.4037123024,
-0.0514079742,
0.1103123873,
0.1127123684,
-0.1159863397,
-0.2407061011,
-0.192309469,
0.241377309,
-0.337374419,
-0.3447399735,
-0.0766617879,
0.0834250227,
-0.4073736072,
-0.0222928561,
0.0333841667,
0.1963319182,
0.377796948,
0.1117832139,
-0.1122461334,
0.1048943773,
-0.0382502154,
-0.2463395,
0.1190531179,
0.0087581398,
-0.159172371,
0.1909403354,
0.1781331003,
-0.4805569351,
-0.2565742433,
0.0611921549,
-0.2101026773,
0.0271804929,
-0.0223347694,
-0.0561760366,
-0.3674880564,
-0.103926219,
-0.010629083,
0.2302388847,
0.3314209282,
0.0433118492,
0.0690918565,
-0.3608968258,
-0.3603518009,
-0.2394995093,
0.0475333519,
0.2380011231,
-0.2766398787,
-0.2168492526,
-0.2440198362,
0.0189822223,
0.9000562429,
0.2183276415,
-0.0556712486,
0.0234984681,
-0.2343845814,
0.7594913244,
0.0905847177,
-0.1478681713,
-0.5776648521,
-0.167631045,
-0.0203919969,
0.1384986192,
0.0229974706,
0.0227617323,
0.3518770039,
0.0264439993,
0.3190077543,
0.3026783466,
0.1961114109,
-0.302872628,
-0.3790924549,
-0.142558828,
0.3757954538,
-0.3132485449,
0.1351573169,
0.1308348775,
0.3068951368,
0.4246308804,
0.2254492939,
0.2583018839,
0.1783137918,
-0.0941027328,
0.3221184313,
-0.0918224007,
-0.1540010273,
-0.1793636531,
-0.1915613562,
0.2066816986,
0.023735825,
0.2731806338,
-0.3610523045,
-0.1430864185,
0.0524439774,
0.176856339,
-0.1652963012,
-0.3081740141,
-0.0823015496,
0.0367540531,
-0.1271738857,
0.0828393549,
-0.1993957609,
-0.0555443875,
-0.1569062918,
0.0780029073,
0.119815439,
0.0761380196,
-0.1625960618,
-0.4827044308,
-0.1736913025,
0.2461585402,
0.3014327884,
0.0034809171,
-0.2449755818,
-0.0888495892,
0.1731424034,
-0.3360346854,
-0.1316605508,
0.2585936785,
0.3164643347,
0.0204325486,
0.0327867754,
0.010144542,
-0.0102995848,
-0.0306296796,
0.2863678038,
0.284411788,
-0.1854794919,
0.0013758254,
-0.1170924157,
0.1922469139,
0.4385982752,
-0.0604097769,
0.005020828,
-0.4889424145,
0.1553365141,
-0.0615307167,
0.4590315819,
0.3527908623,
-0.3520230651,
0.3137389719,
0.7528020144,
0.1944844574,
0.3439007401,
-0.0378361195,
0.0523134544,
0.0474330261,
0.1562965661,
-0.0160856824,
0.1846254468,
-0.0083616348,
0.1808769405,
0.1700421125,
-0.210577473,
-0.1544239074,
0.0091514932,
-0.0678443611,
-0.1412783265,
0.2443773746,
0.0432107039,
0.1253934354,
-0.170493111,
-0.1573505849,
0.0509857908,
0.306831181,
-0.3004431427,
-0.090945676,
-0.7436493635,
0.3857062459,
-0.0108448761,
-0.0645975247,
-0.1444186568,
-0.1175103709,
0.0300632454,
0.1875724941,
-0.1544266492,
0.2837776244,
-0.3315267563,
0.1442704648,
-0.0231079198,
-0.1037352756,
-0.0666976497,
0.0035622192,
-0.3922694623,
-0.0960427821,
0.1824147403,
0.0437409021,
0.158203274,
0.0307286568,
-0.1245734394,
-0.1211785525,
-0.1619984806,
0.207660377,
-0.101419501,
0.6599536538,
0.015188084,
-0.0401160829,
-0.2227500677,
-0.042441681,
0.3229544759,
0.0481723547,
-0.1957854331,
0.0668941289,
0.1534006298,
-0.2971335053,
-0.1280110329,
-0.0810010433,
-0.398724407,
-0.2029238939,
-0.0015435937,
0.0409982875,
0.1024120972,
0.1651544869,
-0.0439473428,
0.039993383,
-0.1767993867,
0.1112605929,
-0.1959138364,
-0.5463487506,
0.1524967402,
-0.0229182374,
-0.2902197242,
-0.1396175772,
-0.0799594223,
0.1385860592,
0.2206831872,
-0.0128688039,
0.115886189,
-0.2101252079,
0.4909321964,
0.0909305438,
-0.0949427634,
0.1557549387,
0.1762556434,
0.1384196877,
-0.2511658669,
-0.1176665872,
0.2310352772,
-0.3556729257,
0.283018142,
0.2095107585,
-0.1625982523,
0.3103232682,
0.5404540896,
0.0646587536,
-0.4485714436,
0.658018589,
-0.0632330701,
0.0367329642,
-0.0528674424,
-0.5302308798,
-0.1007553488,
0.0489967875,
-0.1999997497,
0.1675212532,
-0.2166356891,
0.3675014973,
0.2530467808,
-0.0938391387,
-0.4194611311,
-0.2844651639,
0.1701907665,
0.0100753186,
0.023203345,
0.018644521,
0.0716274157,
0.0931468233,
-0.2374302447,
0.0882018059,
0.1123885363,
-0.0080092251,
0.2254105508,
-0.3480645418,
-0.1606261879,
-0.0121608563,
0.1516553462,
0.0018499478,
0.6496222019,
-0.3341351151,
-0.0326856337,
0.0116718356,
0.1500446945,
0.5063470006,
-0.3134467602,
0.2174639851,
0.2441744208,
-0.1328842342,
0.2730717957,
-0.3095413744,
-0.2748121321,
0.4669102132,
0.151848644,
0.4360796511,
-0.2806734145,
0.089700073,
-0.0260195527,
0.1104194149,
0.0163213816,
0.0398565345,
-0.2078765035,
0.0274157599,
-0.2544297874,
0.1486523598,
-0.0139431125,
0.3509781957,
0.1144280434,
0.1137029156,
-0.2285264134,
-0.3311949968,
0.0212135985,
0.1344624609,
0.0931417122,
-0.1248481125,
0.3866323829,
-0.2869854867,
0.1531801671,
0.0576768927,
0.3597967327,
0.1018457413,
-0.4830713272,
-0.2248996049,
-0.1058279499,
0.1986412406,
0.2728036642,
-0.0880790949,
0.322096318,
-0.1087870523,
0.028251905,
0.0867958218,
0.2104933411,
0.1615778059,
0.1686565727,
-0.4326957464,
0.0554656982,
0.3112519085,
0.171020627,
-0.0361163542,
-0.022772342,
0.1751399785,
-0.3406805396,
0.4461533129,
0.2815915942,
1.2980004549,
-0.1158357859,
-0.0815618336,
-0.0376719497,
0.3427511454,
0.6281681657,
-0.0047751153,
-0.0637118965,
-0.2960307598,
-0.0373425521,
-0.0196647532,
-0.0832910836,
0.4282989502,
0.0768294036,
-0.110401392,
0.1596340835,
-0.4422547221,
-0.2462898344,
-0.0062782853,
0.0995812193,
-0.2199065089,
-0.1601839811,
0.1497466415,
-0.0449612848,
-0.3405068517,
0.3380144238,
-0.0139570013,
-0.0397674665,
-0.2785816789,
-0.1287188679,
-0.5075514913,
0.1321091056,
-0.2401426733,
0.077969633,
0.1785475165,
0.1499052346,
0.002595281,
-0.3315670788,
0.4971368909,
0.397376895,
-0.0863510743,
0.0583578572,
-0.0053254063,
-0.2267412841,
0.2406246066,
-0.0009640727,
0.5052663088,
0.1125775054,
-0.0049079708,
-0.2517134249,
0.0071727601,
-0.0144628156,
-0.2387796789,
-0.0017566568,
0.2449572682,
-0.3661653697,
-0.4907000661,
-0.0895317048,
0.0124477968,
-0.2250330448,
-0.0155829266,
0.0913009644,
-0.0856952518,
0.2112417519,
0.0587833337,
-0.1739728302,
-0.0077851992,
0.1336868703,
0.0580744855,
0.2336702049,
0.4034205675,
-0.0270993896,
-0.2810717523,
-0.065806061,
-0.050757613,
-0.1043203026,
0.0212903302,
0.0201701932,
-0.0487438813,
-0.2473257929,
-0.424144268,
0.4363887608,
0.3371751308,
0.1167273819,
-0.1022853702,
-0.4436214864,
-0.1478161514,
0.1858899593,
-0.1083173975,
-0.0321706422,
-0.1761490852,
0.8972696662,
-0.1178735048,
-0.1244419962,
-0.0896608382,
-0.0607659854,
-0.252043575,
0.0429904498,
0.2539970875,
0.1062388271,
-0.2125083655,
-0.0547054522,
-0.0610696971,
0.2394860685,
0.0623016544,
-0.0029367607,
-0.4034935534,
0.1946725547,
0.4432670474,
0.0760604963,
-0.1604299694,
-0.1373716891,
0.1805870533,
-0.2636670768,
-0.2539542019,
0.4749056697,
0.2321776003,
0.4184497595,
0.1967936158,
0.2749226987,
-0.0653802231,
0.0270640384,
-0.0921382904,
0.1749438047,
0.0017400493,
0.0215360802,
0.2186419815,
0.1148916781,
-0.204926759,
-0.1758001298,
-0.2116881907,
0.3480989933,
0.0008483459,
0.0011611009,
0.3057721853,
0.0638405457,
0.1857886165,
0.2191876024,
-0.0020264396,
-0.5876792073,
0.4587335289,
0.0280445293,
-0.4276821017,
-0.147218734,
0.0309781134,
0.0807972476,
-0.0735364631,
0.2868472934,
-0.2121807784,
0.2877137065,
-0.7462058067,
-0.0635889471,
0.5026014447,
-0.1601416469,
-0.0615712889,
-0.1991842091,
-0.1536071748,
0.3174808323,
0.28349787,
-0.0587094687,
0.0185796786,
0.4506964087,
-0.2275973707,
0.4550673664,
0.2652670741,
0.1009547412,
-0.0410911962,
-0.3341942132,
0.431022346,
0.2582305372,
0.2840678096,
0.1921057254,
-0.0064201425,
0.0553124249,
-0.0671324283,
-0.284339726,
0.0628115535,
0.3188642263,
-0.2507953048,
-0.1182130277,
-0.1136940941,
0.0208654497,
-0.323400259,
0.0282415543,
-0.0000111144,
0.3174370229,
0.3843381703,
-0.0727047101,
-0.2046419531,
-0.3929638565,
-0.0689787045,
0.1495275795,
0.0466881394,
-0.3392073512,
0.1224664226,
-0.1451081634,
-0.0543557666,
-0.2438494265,
0.1802670658,
0.3568904996,
0.4325848222,
0.1198400557,
-0.1940246522,
-0.3718809187,
0.1307142079,
-0.2088869661,
0.4987926483,
0.2577508092,
0.0108773643,
0.0827217922,
-0.115213275,
-0.0966749117,
0.3931744993,
0.3485361338,
0.1090464443,
-0.0801922008,
0.1890759766,
0.0699377954,
-0.1930680424,
0.0417050943,
0.0294961948,
-0.1845296323,
-0.0385489017,
0.4466285408,
0.1294782311,
0.3553231359,
-0.3326562941,
0.0218980368,
0.3511330783,
0.0810933858,
0.5432698131,
-0.0535807051,
-0.4718731046,
0.6238460541,
-0.5803315639,
0.3404592872,
-0.1978703886,
-0.3355073035,
-0.2210291475,
0.1417924166,
0.0583970137,
0.1976752281,
-0.1559436619,
0.5343947411,
-0.0876789615,
0.0118968263,
-0.1175985262,
0.0271564759,
-0.1152742282,
-0.1859707236,
0.0591473356,
-0.4235768616,
0.3720368445,
-0.162925899,
-0.0777222514,
-0.1368248016,
-0.4115264714,
0.3600969613,
0.1749584526,
0.2012335807,
0.4671104252,
0.5732735991,
-0.0765715986,
0.1230083928,
-0.3830678463,
-0.2349012792,
-0.1785785854,
0.3983487487,
-0.1059957221,
0.0254362319,
-0.041132655,
0.176678732,
-0.4238360822,
0.1713766158,
-0.3041483164,
-0.0763450265,
-0.1750941426,
0.2838480473,
-0.0343426019,
0.0743419528,
-0.2653817534,
0.4218532741,
-0.1129603907,
0.3408609033,
-0.2827915251,
-0.4867301285,
0.4779389501,
-0.5187080503,
-0.171952188,
0.0099418517,
0.1570142359,
0.2735477984,
-0.1657187194,
-0.4894462526,
-0.4313940704,
0.3024000525,
-0.1926945299,
-0.1562816948,
0.0346319228,
0.2694478929,
-0.0029802034,
-0.0985471159,
0.561190486,
-0.1310111433,
-0.224154368,
0.5392277241,
0.0612847582
] |
https://github.com/huggingface/datasets/issues/3178 | "Property couldn't be hashed properly" even though fully picklable | @lhoestq After some testing I find that even with the updated spaCy, no cache files are used. I do not get any warnings though, but I can see that map is run every time I run the code. Do you have thoughts about why? If you want to try the tests below, make sure to install spaCy from [here](https://github.com/BramVanroy/spaCy) and installing the base model with `python -m spacy download en_core_web_sm`.
```python
from functools import partial
from pathlib import Path
import spacy
from datasets import Dataset
import datasets
datasets.logging.set_verbosity_debug()
def tokenize(nlp, l):
return {"tok": [t.text for t in nlp(l["text"])]}
def main():
fin = r"some/file/with/many/lines"
lines = Path(fin).read_text(encoding="utf-8").splitlines()
nlp = spacy.load("en_core_web_sm")
ds = Dataset.from_dict({"text": lines, "text_id": list(range(len(lines)))})
tok = partial(tokenize, nlp)
ds = ds.map(tok, load_from_cache_file=True)
print(ds[0:2])
if __name__ == '__main__':
main()
```
... or with load_dataset (here I get the message that `load_dataset` can reuse the dataset, but still I see all samples being processed via the tqdm progressbar):
```python
from functools import partial
import spacy
from datasets import load_dataset
import datasets
datasets.logging.set_verbosity_debug()
def tokenize(nlp, sample):
return {"tok": [t.text for t in nlp(sample["text"])]}
def main():
fin = r"some/file/with/many/lines"
nlp = spacy.load("en_core_web_sm")
tok_func = partial(tokenize, nlp)
ds = load_dataset('text', data_files=fin)
ds = ds["train"].map(tok_func)
print(ds[0:2])
if __name__ == '__main__':
main()
``` | ## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
| 207 | "Property couldn't be hashed properly" even though fully picklable
## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
@lhoestq After some testing I find that even with the updated spaCy, no cache files are used. I do not get any warnings though, but I can see that map is run every time I run the code. Do you have thoughts about why? If you want to try the tests below, make sure to install spaCy from [here](https://github.com/BramVanroy/spaCy) and installing the base model with `python -m spacy download en_core_web_sm`.
```python
from functools import partial
from pathlib import Path
import spacy
from datasets import Dataset
import datasets
datasets.logging.set_verbosity_debug()
def tokenize(nlp, l):
return {"tok": [t.text for t in nlp(l["text"])]}
def main():
fin = r"some/file/with/many/lines"
lines = Path(fin).read_text(encoding="utf-8").splitlines()
nlp = spacy.load("en_core_web_sm")
ds = Dataset.from_dict({"text": lines, "text_id": list(range(len(lines)))})
tok = partial(tokenize, nlp)
ds = ds.map(tok, load_from_cache_file=True)
print(ds[0:2])
if __name__ == '__main__':
main()
```
... or with load_dataset (here I get the message that `load_dataset` can reuse the dataset, but still I see all samples being processed via the tqdm progressbar):
```python
from functools import partial
import spacy
from datasets import load_dataset
import datasets
datasets.logging.set_verbosity_debug()
def tokenize(nlp, sample):
return {"tok": [t.text for t in nlp(sample["text"])]}
def main():
fin = r"some/file/with/many/lines"
nlp = spacy.load("en_core_web_sm")
tok_func = partial(tokenize, nlp)
ds = load_dataset('text', data_files=fin)
ds = ds["train"].map(tok_func)
print(ds[0:2])
if __name__ == '__main__':
main()
``` | [
-0.0547037572,
-0.0296596158,
0.1383616775,
0.1674575657,
0.2572079003,
-0.1886388958,
0.3345493674,
0.0546137951,
0.0525931679,
0.1248953864,
0.0389523171,
0.5095518827,
-0.2360349447,
0.3779696524,
-0.1779329479,
0.0818778947,
0.0879114941,
-0.0570349731,
0.0878298432,
-0.1197966412,
-0.0697439685,
-0.0256732684,
-0.3639787436,
0.0150344642,
-0.5814357996,
-0.2471628636,
0.1233717129,
-0.0043504587,
-0.1769182086,
-0.3019955456,
0.1507757157,
-0.0842573196,
-0.0198123567,
0.0914173946,
-0.0001276944,
-0.0400400944,
0.2713608742,
-0.0208546668,
-0.0257947762,
-0.4120488167,
0.1907008439,
-0.3608407974,
0.0740303248,
-0.211347267,
-0.1636205316,
0.3611479104,
-0.2467535585,
-0.2143102884,
0.260607183,
0.0114906086,
0.0392241217,
0.3941231072,
0.0432313383,
0.2574501336,
-0.0588377379,
-0.0148635246,
-0.4733221233,
0.109114565,
0.1186906546,
0.1557988673,
-0.0484532043,
-0.019749077,
0.0093573071,
-0.1011296362,
-0.0401526913,
0.1538345963,
-0.237302959,
-0.0516985804,
0.1653799862,
0.0052834945,
0.0333908945,
-0.3204625547,
-0.3859625161,
-0.1491619647,
0.0474647768,
-0.5314664841,
0.4600654542,
0.0664499253,
0.1255585104,
0.1659148633,
-0.0848168954,
0.0914708599,
0.1008479819,
0.164870128,
0.2551167011,
0.4194827676,
-0.0190647002,
0.2278356701,
-0.0405594781,
-0.1689594835,
0.2658732235,
0.0705322027,
0.1795156002,
0.0836890414,
-0.0195625331,
-0.0307151452,
-0.1670056432,
0.2477212697,
0.2644006908,
-0.0484205522,
0.007160774,
0.1911672354,
-0.33025226,
0.0856915861,
0.1315112412,
-0.265206784,
0.2935669422,
0.4055650532,
-0.0374953933,
0.0583079755,
-0.4280025661,
0.0356123522,
0.0313389413,
-0.0029143307,
0.114661321,
0.1762257218,
0.202796936,
-0.1554870158,
-0.1113362238,
0.2510730624,
-0.4037123024,
-0.0514079742,
0.1103123873,
0.1127123684,
-0.1159863397,
-0.2407061011,
-0.192309469,
0.241377309,
-0.337374419,
-0.3447399735,
-0.0766617879,
0.0834250227,
-0.4073736072,
-0.0222928561,
0.0333841667,
0.1963319182,
0.377796948,
0.1117832139,
-0.1122461334,
0.1048943773,
-0.0382502154,
-0.2463395,
0.1190531179,
0.0087581398,
-0.159172371,
0.1909403354,
0.1781331003,
-0.4805569351,
-0.2565742433,
0.0611921549,
-0.2101026773,
0.0271804929,
-0.0223347694,
-0.0561760366,
-0.3674880564,
-0.103926219,
-0.010629083,
0.2302388847,
0.3314209282,
0.0433118492,
0.0690918565,
-0.3608968258,
-0.3603518009,
-0.2394995093,
0.0475333519,
0.2380011231,
-0.2766398787,
-0.2168492526,
-0.2440198362,
0.0189822223,
0.9000562429,
0.2183276415,
-0.0556712486,
0.0234984681,
-0.2343845814,
0.7594913244,
0.0905847177,
-0.1478681713,
-0.5776648521,
-0.167631045,
-0.0203919969,
0.1384986192,
0.0229974706,
0.0227617323,
0.3518770039,
0.0264439993,
0.3190077543,
0.3026783466,
0.1961114109,
-0.302872628,
-0.3790924549,
-0.142558828,
0.3757954538,
-0.3132485449,
0.1351573169,
0.1308348775,
0.3068951368,
0.4246308804,
0.2254492939,
0.2583018839,
0.1783137918,
-0.0941027328,
0.3221184313,
-0.0918224007,
-0.1540010273,
-0.1793636531,
-0.1915613562,
0.2066816986,
0.023735825,
0.2731806338,
-0.3610523045,
-0.1430864185,
0.0524439774,
0.176856339,
-0.1652963012,
-0.3081740141,
-0.0823015496,
0.0367540531,
-0.1271738857,
0.0828393549,
-0.1993957609,
-0.0555443875,
-0.1569062918,
0.0780029073,
0.119815439,
0.0761380196,
-0.1625960618,
-0.4827044308,
-0.1736913025,
0.2461585402,
0.3014327884,
0.0034809171,
-0.2449755818,
-0.0888495892,
0.1731424034,
-0.3360346854,
-0.1316605508,
0.2585936785,
0.3164643347,
0.0204325486,
0.0327867754,
0.010144542,
-0.0102995848,
-0.0306296796,
0.2863678038,
0.284411788,
-0.1854794919,
0.0013758254,
-0.1170924157,
0.1922469139,
0.4385982752,
-0.0604097769,
0.005020828,
-0.4889424145,
0.1553365141,
-0.0615307167,
0.4590315819,
0.3527908623,
-0.3520230651,
0.3137389719,
0.7528020144,
0.1944844574,
0.3439007401,
-0.0378361195,
0.0523134544,
0.0474330261,
0.1562965661,
-0.0160856824,
0.1846254468,
-0.0083616348,
0.1808769405,
0.1700421125,
-0.210577473,
-0.1544239074,
0.0091514932,
-0.0678443611,
-0.1412783265,
0.2443773746,
0.0432107039,
0.1253934354,
-0.170493111,
-0.1573505849,
0.0509857908,
0.306831181,
-0.3004431427,
-0.090945676,
-0.7436493635,
0.3857062459,
-0.0108448761,
-0.0645975247,
-0.1444186568,
-0.1175103709,
0.0300632454,
0.1875724941,
-0.1544266492,
0.2837776244,
-0.3315267563,
0.1442704648,
-0.0231079198,
-0.1037352756,
-0.0666976497,
0.0035622192,
-0.3922694623,
-0.0960427821,
0.1824147403,
0.0437409021,
0.158203274,
0.0307286568,
-0.1245734394,
-0.1211785525,
-0.1619984806,
0.207660377,
-0.101419501,
0.6599536538,
0.015188084,
-0.0401160829,
-0.2227500677,
-0.042441681,
0.3229544759,
0.0481723547,
-0.1957854331,
0.0668941289,
0.1534006298,
-0.2971335053,
-0.1280110329,
-0.0810010433,
-0.398724407,
-0.2029238939,
-0.0015435937,
0.0409982875,
0.1024120972,
0.1651544869,
-0.0439473428,
0.039993383,
-0.1767993867,
0.1112605929,
-0.1959138364,
-0.5463487506,
0.1524967402,
-0.0229182374,
-0.2902197242,
-0.1396175772,
-0.0799594223,
0.1385860592,
0.2206831872,
-0.0128688039,
0.115886189,
-0.2101252079,
0.4909321964,
0.0909305438,
-0.0949427634,
0.1557549387,
0.1762556434,
0.1384196877,
-0.2511658669,
-0.1176665872,
0.2310352772,
-0.3556729257,
0.283018142,
0.2095107585,
-0.1625982523,
0.3103232682,
0.5404540896,
0.0646587536,
-0.4485714436,
0.658018589,
-0.0632330701,
0.0367329642,
-0.0528674424,
-0.5302308798,
-0.1007553488,
0.0489967875,
-0.1999997497,
0.1675212532,
-0.2166356891,
0.3675014973,
0.2530467808,
-0.0938391387,
-0.4194611311,
-0.2844651639,
0.1701907665,
0.0100753186,
0.023203345,
0.018644521,
0.0716274157,
0.0931468233,
-0.2374302447,
0.0882018059,
0.1123885363,
-0.0080092251,
0.2254105508,
-0.3480645418,
-0.1606261879,
-0.0121608563,
0.1516553462,
0.0018499478,
0.6496222019,
-0.3341351151,
-0.0326856337,
0.0116718356,
0.1500446945,
0.5063470006,
-0.3134467602,
0.2174639851,
0.2441744208,
-0.1328842342,
0.2730717957,
-0.3095413744,
-0.2748121321,
0.4669102132,
0.151848644,
0.4360796511,
-0.2806734145,
0.089700073,
-0.0260195527,
0.1104194149,
0.0163213816,
0.0398565345,
-0.2078765035,
0.0274157599,
-0.2544297874,
0.1486523598,
-0.0139431125,
0.3509781957,
0.1144280434,
0.1137029156,
-0.2285264134,
-0.3311949968,
0.0212135985,
0.1344624609,
0.0931417122,
-0.1248481125,
0.3866323829,
-0.2869854867,
0.1531801671,
0.0576768927,
0.3597967327,
0.1018457413,
-0.4830713272,
-0.2248996049,
-0.1058279499,
0.1986412406,
0.2728036642,
-0.0880790949,
0.322096318,
-0.1087870523,
0.028251905,
0.0867958218,
0.2104933411,
0.1615778059,
0.1686565727,
-0.4326957464,
0.0554656982,
0.3112519085,
0.171020627,
-0.0361163542,
-0.022772342,
0.1751399785,
-0.3406805396,
0.4461533129,
0.2815915942,
1.2980004549,
-0.1158357859,
-0.0815618336,
-0.0376719497,
0.3427511454,
0.6281681657,
-0.0047751153,
-0.0637118965,
-0.2960307598,
-0.0373425521,
-0.0196647532,
-0.0832910836,
0.4282989502,
0.0768294036,
-0.110401392,
0.1596340835,
-0.4422547221,
-0.2462898344,
-0.0062782853,
0.0995812193,
-0.2199065089,
-0.1601839811,
0.1497466415,
-0.0449612848,
-0.3405068517,
0.3380144238,
-0.0139570013,
-0.0397674665,
-0.2785816789,
-0.1287188679,
-0.5075514913,
0.1321091056,
-0.2401426733,
0.077969633,
0.1785475165,
0.1499052346,
0.002595281,
-0.3315670788,
0.4971368909,
0.397376895,
-0.0863510743,
0.0583578572,
-0.0053254063,
-0.2267412841,
0.2406246066,
-0.0009640727,
0.5052663088,
0.1125775054,
-0.0049079708,
-0.2517134249,
0.0071727601,
-0.0144628156,
-0.2387796789,
-0.0017566568,
0.2449572682,
-0.3661653697,
-0.4907000661,
-0.0895317048,
0.0124477968,
-0.2250330448,
-0.0155829266,
0.0913009644,
-0.0856952518,
0.2112417519,
0.0587833337,
-0.1739728302,
-0.0077851992,
0.1336868703,
0.0580744855,
0.2336702049,
0.4034205675,
-0.0270993896,
-0.2810717523,
-0.065806061,
-0.050757613,
-0.1043203026,
0.0212903302,
0.0201701932,
-0.0487438813,
-0.2473257929,
-0.424144268,
0.4363887608,
0.3371751308,
0.1167273819,
-0.1022853702,
-0.4436214864,
-0.1478161514,
0.1858899593,
-0.1083173975,
-0.0321706422,
-0.1761490852,
0.8972696662,
-0.1178735048,
-0.1244419962,
-0.0896608382,
-0.0607659854,
-0.252043575,
0.0429904498,
0.2539970875,
0.1062388271,
-0.2125083655,
-0.0547054522,
-0.0610696971,
0.2394860685,
0.0623016544,
-0.0029367607,
-0.4034935534,
0.1946725547,
0.4432670474,
0.0760604963,
-0.1604299694,
-0.1373716891,
0.1805870533,
-0.2636670768,
-0.2539542019,
0.4749056697,
0.2321776003,
0.4184497595,
0.1967936158,
0.2749226987,
-0.0653802231,
0.0270640384,
-0.0921382904,
0.1749438047,
0.0017400493,
0.0215360802,
0.2186419815,
0.1148916781,
-0.204926759,
-0.1758001298,
-0.2116881907,
0.3480989933,
0.0008483459,
0.0011611009,
0.3057721853,
0.0638405457,
0.1857886165,
0.2191876024,
-0.0020264396,
-0.5876792073,
0.4587335289,
0.0280445293,
-0.4276821017,
-0.147218734,
0.0309781134,
0.0807972476,
-0.0735364631,
0.2868472934,
-0.2121807784,
0.2877137065,
-0.7462058067,
-0.0635889471,
0.5026014447,
-0.1601416469,
-0.0615712889,
-0.1991842091,
-0.1536071748,
0.3174808323,
0.28349787,
-0.0587094687,
0.0185796786,
0.4506964087,
-0.2275973707,
0.4550673664,
0.2652670741,
0.1009547412,
-0.0410911962,
-0.3341942132,
0.431022346,
0.2582305372,
0.2840678096,
0.1921057254,
-0.0064201425,
0.0553124249,
-0.0671324283,
-0.284339726,
0.0628115535,
0.3188642263,
-0.2507953048,
-0.1182130277,
-0.1136940941,
0.0208654497,
-0.323400259,
0.0282415543,
-0.0000111144,
0.3174370229,
0.3843381703,
-0.0727047101,
-0.2046419531,
-0.3929638565,
-0.0689787045,
0.1495275795,
0.0466881394,
-0.3392073512,
0.1224664226,
-0.1451081634,
-0.0543557666,
-0.2438494265,
0.1802670658,
0.3568904996,
0.4325848222,
0.1198400557,
-0.1940246522,
-0.3718809187,
0.1307142079,
-0.2088869661,
0.4987926483,
0.2577508092,
0.0108773643,
0.0827217922,
-0.115213275,
-0.0966749117,
0.3931744993,
0.3485361338,
0.1090464443,
-0.0801922008,
0.1890759766,
0.0699377954,
-0.1930680424,
0.0417050943,
0.0294961948,
-0.1845296323,
-0.0385489017,
0.4466285408,
0.1294782311,
0.3553231359,
-0.3326562941,
0.0218980368,
0.3511330783,
0.0810933858,
0.5432698131,
-0.0535807051,
-0.4718731046,
0.6238460541,
-0.5803315639,
0.3404592872,
-0.1978703886,
-0.3355073035,
-0.2210291475,
0.1417924166,
0.0583970137,
0.1976752281,
-0.1559436619,
0.5343947411,
-0.0876789615,
0.0118968263,
-0.1175985262,
0.0271564759,
-0.1152742282,
-0.1859707236,
0.0591473356,
-0.4235768616,
0.3720368445,
-0.162925899,
-0.0777222514,
-0.1368248016,
-0.4115264714,
0.3600969613,
0.1749584526,
0.2012335807,
0.4671104252,
0.5732735991,
-0.0765715986,
0.1230083928,
-0.3830678463,
-0.2349012792,
-0.1785785854,
0.3983487487,
-0.1059957221,
0.0254362319,
-0.041132655,
0.176678732,
-0.4238360822,
0.1713766158,
-0.3041483164,
-0.0763450265,
-0.1750941426,
0.2838480473,
-0.0343426019,
0.0743419528,
-0.2653817534,
0.4218532741,
-0.1129603907,
0.3408609033,
-0.2827915251,
-0.4867301285,
0.4779389501,
-0.5187080503,
-0.171952188,
0.0099418517,
0.1570142359,
0.2735477984,
-0.1657187194,
-0.4894462526,
-0.4313940704,
0.3024000525,
-0.1926945299,
-0.1562816948,
0.0346319228,
0.2694478929,
-0.0029802034,
-0.0985471159,
0.561190486,
-0.1310111433,
-0.224154368,
0.5392277241,
0.0612847582
] |
https://github.com/huggingface/datasets/issues/3178 | "Property couldn't be hashed properly" even though fully picklable | It looks like every time you load `en_core_web_sm` you get a different python object:
```python
import spacy
from datasets.fingerprint import Hasher
nlp1 = spacy.load("en_core_web_sm")
nlp2 = spacy.load("en_core_web_sm")
Hasher.hash(nlp1), Hasher.hash(nlp2)
# ('f6196a33882fea3b', 'a4c676a071f266ff')
```
Here is a list of attributes that have different hashes for `nlp1` and `nlp2`:
- tagger
- parser
- entity
- pipeline (it's the list of the three attributes above)
I just took a look at the tagger for example and I found subtle differences (there may be other differences though):
```python
nlp1.tagger.model.tok2vec.embed.id, nlp2.tagger.model.tok2vec.embed.id
# (1721, 2243)
```
We can try to find all the differences and find the best way to hash those objects properly | ## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
| 109 | "Property couldn't be hashed properly" even though fully picklable
## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
It looks like every time you load `en_core_web_sm` you get a different python object:
```python
import spacy
from datasets.fingerprint import Hasher
nlp1 = spacy.load("en_core_web_sm")
nlp2 = spacy.load("en_core_web_sm")
Hasher.hash(nlp1), Hasher.hash(nlp2)
# ('f6196a33882fea3b', 'a4c676a071f266ff')
```
Here is a list of attributes that have different hashes for `nlp1` and `nlp2`:
- tagger
- parser
- entity
- pipeline (it's the list of the three attributes above)
I just took a look at the tagger for example and I found subtle differences (there may be other differences though):
```python
nlp1.tagger.model.tok2vec.embed.id, nlp2.tagger.model.tok2vec.embed.id
# (1721, 2243)
```
We can try to find all the differences and find the best way to hash those objects properly | [
-0.0547037572,
-0.0296596158,
0.1383616775,
0.1674575657,
0.2572079003,
-0.1886388958,
0.3345493674,
0.0546137951,
0.0525931679,
0.1248953864,
0.0389523171,
0.5095518827,
-0.2360349447,
0.3779696524,
-0.1779329479,
0.0818778947,
0.0879114941,
-0.0570349731,
0.0878298432,
-0.1197966412,
-0.0697439685,
-0.0256732684,
-0.3639787436,
0.0150344642,
-0.5814357996,
-0.2471628636,
0.1233717129,
-0.0043504587,
-0.1769182086,
-0.3019955456,
0.1507757157,
-0.0842573196,
-0.0198123567,
0.0914173946,
-0.0001276944,
-0.0400400944,
0.2713608742,
-0.0208546668,
-0.0257947762,
-0.4120488167,
0.1907008439,
-0.3608407974,
0.0740303248,
-0.211347267,
-0.1636205316,
0.3611479104,
-0.2467535585,
-0.2143102884,
0.260607183,
0.0114906086,
0.0392241217,
0.3941231072,
0.0432313383,
0.2574501336,
-0.0588377379,
-0.0148635246,
-0.4733221233,
0.109114565,
0.1186906546,
0.1557988673,
-0.0484532043,
-0.019749077,
0.0093573071,
-0.1011296362,
-0.0401526913,
0.1538345963,
-0.237302959,
-0.0516985804,
0.1653799862,
0.0052834945,
0.0333908945,
-0.3204625547,
-0.3859625161,
-0.1491619647,
0.0474647768,
-0.5314664841,
0.4600654542,
0.0664499253,
0.1255585104,
0.1659148633,
-0.0848168954,
0.0914708599,
0.1008479819,
0.164870128,
0.2551167011,
0.4194827676,
-0.0190647002,
0.2278356701,
-0.0405594781,
-0.1689594835,
0.2658732235,
0.0705322027,
0.1795156002,
0.0836890414,
-0.0195625331,
-0.0307151452,
-0.1670056432,
0.2477212697,
0.2644006908,
-0.0484205522,
0.007160774,
0.1911672354,
-0.33025226,
0.0856915861,
0.1315112412,
-0.265206784,
0.2935669422,
0.4055650532,
-0.0374953933,
0.0583079755,
-0.4280025661,
0.0356123522,
0.0313389413,
-0.0029143307,
0.114661321,
0.1762257218,
0.202796936,
-0.1554870158,
-0.1113362238,
0.2510730624,
-0.4037123024,
-0.0514079742,
0.1103123873,
0.1127123684,
-0.1159863397,
-0.2407061011,
-0.192309469,
0.241377309,
-0.337374419,
-0.3447399735,
-0.0766617879,
0.0834250227,
-0.4073736072,
-0.0222928561,
0.0333841667,
0.1963319182,
0.377796948,
0.1117832139,
-0.1122461334,
0.1048943773,
-0.0382502154,
-0.2463395,
0.1190531179,
0.0087581398,
-0.159172371,
0.1909403354,
0.1781331003,
-0.4805569351,
-0.2565742433,
0.0611921549,
-0.2101026773,
0.0271804929,
-0.0223347694,
-0.0561760366,
-0.3674880564,
-0.103926219,
-0.010629083,
0.2302388847,
0.3314209282,
0.0433118492,
0.0690918565,
-0.3608968258,
-0.3603518009,
-0.2394995093,
0.0475333519,
0.2380011231,
-0.2766398787,
-0.2168492526,
-0.2440198362,
0.0189822223,
0.9000562429,
0.2183276415,
-0.0556712486,
0.0234984681,
-0.2343845814,
0.7594913244,
0.0905847177,
-0.1478681713,
-0.5776648521,
-0.167631045,
-0.0203919969,
0.1384986192,
0.0229974706,
0.0227617323,
0.3518770039,
0.0264439993,
0.3190077543,
0.3026783466,
0.1961114109,
-0.302872628,
-0.3790924549,
-0.142558828,
0.3757954538,
-0.3132485449,
0.1351573169,
0.1308348775,
0.3068951368,
0.4246308804,
0.2254492939,
0.2583018839,
0.1783137918,
-0.0941027328,
0.3221184313,
-0.0918224007,
-0.1540010273,
-0.1793636531,
-0.1915613562,
0.2066816986,
0.023735825,
0.2731806338,
-0.3610523045,
-0.1430864185,
0.0524439774,
0.176856339,
-0.1652963012,
-0.3081740141,
-0.0823015496,
0.0367540531,
-0.1271738857,
0.0828393549,
-0.1993957609,
-0.0555443875,
-0.1569062918,
0.0780029073,
0.119815439,
0.0761380196,
-0.1625960618,
-0.4827044308,
-0.1736913025,
0.2461585402,
0.3014327884,
0.0034809171,
-0.2449755818,
-0.0888495892,
0.1731424034,
-0.3360346854,
-0.1316605508,
0.2585936785,
0.3164643347,
0.0204325486,
0.0327867754,
0.010144542,
-0.0102995848,
-0.0306296796,
0.2863678038,
0.284411788,
-0.1854794919,
0.0013758254,
-0.1170924157,
0.1922469139,
0.4385982752,
-0.0604097769,
0.005020828,
-0.4889424145,
0.1553365141,
-0.0615307167,
0.4590315819,
0.3527908623,
-0.3520230651,
0.3137389719,
0.7528020144,
0.1944844574,
0.3439007401,
-0.0378361195,
0.0523134544,
0.0474330261,
0.1562965661,
-0.0160856824,
0.1846254468,
-0.0083616348,
0.1808769405,
0.1700421125,
-0.210577473,
-0.1544239074,
0.0091514932,
-0.0678443611,
-0.1412783265,
0.2443773746,
0.0432107039,
0.1253934354,
-0.170493111,
-0.1573505849,
0.0509857908,
0.306831181,
-0.3004431427,
-0.090945676,
-0.7436493635,
0.3857062459,
-0.0108448761,
-0.0645975247,
-0.1444186568,
-0.1175103709,
0.0300632454,
0.1875724941,
-0.1544266492,
0.2837776244,
-0.3315267563,
0.1442704648,
-0.0231079198,
-0.1037352756,
-0.0666976497,
0.0035622192,
-0.3922694623,
-0.0960427821,
0.1824147403,
0.0437409021,
0.158203274,
0.0307286568,
-0.1245734394,
-0.1211785525,
-0.1619984806,
0.207660377,
-0.101419501,
0.6599536538,
0.015188084,
-0.0401160829,
-0.2227500677,
-0.042441681,
0.3229544759,
0.0481723547,
-0.1957854331,
0.0668941289,
0.1534006298,
-0.2971335053,
-0.1280110329,
-0.0810010433,
-0.398724407,
-0.2029238939,
-0.0015435937,
0.0409982875,
0.1024120972,
0.1651544869,
-0.0439473428,
0.039993383,
-0.1767993867,
0.1112605929,
-0.1959138364,
-0.5463487506,
0.1524967402,
-0.0229182374,
-0.2902197242,
-0.1396175772,
-0.0799594223,
0.1385860592,
0.2206831872,
-0.0128688039,
0.115886189,
-0.2101252079,
0.4909321964,
0.0909305438,
-0.0949427634,
0.1557549387,
0.1762556434,
0.1384196877,
-0.2511658669,
-0.1176665872,
0.2310352772,
-0.3556729257,
0.283018142,
0.2095107585,
-0.1625982523,
0.3103232682,
0.5404540896,
0.0646587536,
-0.4485714436,
0.658018589,
-0.0632330701,
0.0367329642,
-0.0528674424,
-0.5302308798,
-0.1007553488,
0.0489967875,
-0.1999997497,
0.1675212532,
-0.2166356891,
0.3675014973,
0.2530467808,
-0.0938391387,
-0.4194611311,
-0.2844651639,
0.1701907665,
0.0100753186,
0.023203345,
0.018644521,
0.0716274157,
0.0931468233,
-0.2374302447,
0.0882018059,
0.1123885363,
-0.0080092251,
0.2254105508,
-0.3480645418,
-0.1606261879,
-0.0121608563,
0.1516553462,
0.0018499478,
0.6496222019,
-0.3341351151,
-0.0326856337,
0.0116718356,
0.1500446945,
0.5063470006,
-0.3134467602,
0.2174639851,
0.2441744208,
-0.1328842342,
0.2730717957,
-0.3095413744,
-0.2748121321,
0.4669102132,
0.151848644,
0.4360796511,
-0.2806734145,
0.089700073,
-0.0260195527,
0.1104194149,
0.0163213816,
0.0398565345,
-0.2078765035,
0.0274157599,
-0.2544297874,
0.1486523598,
-0.0139431125,
0.3509781957,
0.1144280434,
0.1137029156,
-0.2285264134,
-0.3311949968,
0.0212135985,
0.1344624609,
0.0931417122,
-0.1248481125,
0.3866323829,
-0.2869854867,
0.1531801671,
0.0576768927,
0.3597967327,
0.1018457413,
-0.4830713272,
-0.2248996049,
-0.1058279499,
0.1986412406,
0.2728036642,
-0.0880790949,
0.322096318,
-0.1087870523,
0.028251905,
0.0867958218,
0.2104933411,
0.1615778059,
0.1686565727,
-0.4326957464,
0.0554656982,
0.3112519085,
0.171020627,
-0.0361163542,
-0.022772342,
0.1751399785,
-0.3406805396,
0.4461533129,
0.2815915942,
1.2980004549,
-0.1158357859,
-0.0815618336,
-0.0376719497,
0.3427511454,
0.6281681657,
-0.0047751153,
-0.0637118965,
-0.2960307598,
-0.0373425521,
-0.0196647532,
-0.0832910836,
0.4282989502,
0.0768294036,
-0.110401392,
0.1596340835,
-0.4422547221,
-0.2462898344,
-0.0062782853,
0.0995812193,
-0.2199065089,
-0.1601839811,
0.1497466415,
-0.0449612848,
-0.3405068517,
0.3380144238,
-0.0139570013,
-0.0397674665,
-0.2785816789,
-0.1287188679,
-0.5075514913,
0.1321091056,
-0.2401426733,
0.077969633,
0.1785475165,
0.1499052346,
0.002595281,
-0.3315670788,
0.4971368909,
0.397376895,
-0.0863510743,
0.0583578572,
-0.0053254063,
-0.2267412841,
0.2406246066,
-0.0009640727,
0.5052663088,
0.1125775054,
-0.0049079708,
-0.2517134249,
0.0071727601,
-0.0144628156,
-0.2387796789,
-0.0017566568,
0.2449572682,
-0.3661653697,
-0.4907000661,
-0.0895317048,
0.0124477968,
-0.2250330448,
-0.0155829266,
0.0913009644,
-0.0856952518,
0.2112417519,
0.0587833337,
-0.1739728302,
-0.0077851992,
0.1336868703,
0.0580744855,
0.2336702049,
0.4034205675,
-0.0270993896,
-0.2810717523,
-0.065806061,
-0.050757613,
-0.1043203026,
0.0212903302,
0.0201701932,
-0.0487438813,
-0.2473257929,
-0.424144268,
0.4363887608,
0.3371751308,
0.1167273819,
-0.1022853702,
-0.4436214864,
-0.1478161514,
0.1858899593,
-0.1083173975,
-0.0321706422,
-0.1761490852,
0.8972696662,
-0.1178735048,
-0.1244419962,
-0.0896608382,
-0.0607659854,
-0.252043575,
0.0429904498,
0.2539970875,
0.1062388271,
-0.2125083655,
-0.0547054522,
-0.0610696971,
0.2394860685,
0.0623016544,
-0.0029367607,
-0.4034935534,
0.1946725547,
0.4432670474,
0.0760604963,
-0.1604299694,
-0.1373716891,
0.1805870533,
-0.2636670768,
-0.2539542019,
0.4749056697,
0.2321776003,
0.4184497595,
0.1967936158,
0.2749226987,
-0.0653802231,
0.0270640384,
-0.0921382904,
0.1749438047,
0.0017400493,
0.0215360802,
0.2186419815,
0.1148916781,
-0.204926759,
-0.1758001298,
-0.2116881907,
0.3480989933,
0.0008483459,
0.0011611009,
0.3057721853,
0.0638405457,
0.1857886165,
0.2191876024,
-0.0020264396,
-0.5876792073,
0.4587335289,
0.0280445293,
-0.4276821017,
-0.147218734,
0.0309781134,
0.0807972476,
-0.0735364631,
0.2868472934,
-0.2121807784,
0.2877137065,
-0.7462058067,
-0.0635889471,
0.5026014447,
-0.1601416469,
-0.0615712889,
-0.1991842091,
-0.1536071748,
0.3174808323,
0.28349787,
-0.0587094687,
0.0185796786,
0.4506964087,
-0.2275973707,
0.4550673664,
0.2652670741,
0.1009547412,
-0.0410911962,
-0.3341942132,
0.431022346,
0.2582305372,
0.2840678096,
0.1921057254,
-0.0064201425,
0.0553124249,
-0.0671324283,
-0.284339726,
0.0628115535,
0.3188642263,
-0.2507953048,
-0.1182130277,
-0.1136940941,
0.0208654497,
-0.323400259,
0.0282415543,
-0.0000111144,
0.3174370229,
0.3843381703,
-0.0727047101,
-0.2046419531,
-0.3929638565,
-0.0689787045,
0.1495275795,
0.0466881394,
-0.3392073512,
0.1224664226,
-0.1451081634,
-0.0543557666,
-0.2438494265,
0.1802670658,
0.3568904996,
0.4325848222,
0.1198400557,
-0.1940246522,
-0.3718809187,
0.1307142079,
-0.2088869661,
0.4987926483,
0.2577508092,
0.0108773643,
0.0827217922,
-0.115213275,
-0.0966749117,
0.3931744993,
0.3485361338,
0.1090464443,
-0.0801922008,
0.1890759766,
0.0699377954,
-0.1930680424,
0.0417050943,
0.0294961948,
-0.1845296323,
-0.0385489017,
0.4466285408,
0.1294782311,
0.3553231359,
-0.3326562941,
0.0218980368,
0.3511330783,
0.0810933858,
0.5432698131,
-0.0535807051,
-0.4718731046,
0.6238460541,
-0.5803315639,
0.3404592872,
-0.1978703886,
-0.3355073035,
-0.2210291475,
0.1417924166,
0.0583970137,
0.1976752281,
-0.1559436619,
0.5343947411,
-0.0876789615,
0.0118968263,
-0.1175985262,
0.0271564759,
-0.1152742282,
-0.1859707236,
0.0591473356,
-0.4235768616,
0.3720368445,
-0.162925899,
-0.0777222514,
-0.1368248016,
-0.4115264714,
0.3600969613,
0.1749584526,
0.2012335807,
0.4671104252,
0.5732735991,
-0.0765715986,
0.1230083928,
-0.3830678463,
-0.2349012792,
-0.1785785854,
0.3983487487,
-0.1059957221,
0.0254362319,
-0.041132655,
0.176678732,
-0.4238360822,
0.1713766158,
-0.3041483164,
-0.0763450265,
-0.1750941426,
0.2838480473,
-0.0343426019,
0.0743419528,
-0.2653817534,
0.4218532741,
-0.1129603907,
0.3408609033,
-0.2827915251,
-0.4867301285,
0.4779389501,
-0.5187080503,
-0.171952188,
0.0099418517,
0.1570142359,
0.2735477984,
-0.1657187194,
-0.4894462526,
-0.4313940704,
0.3024000525,
-0.1926945299,
-0.1562816948,
0.0346319228,
0.2694478929,
-0.0029802034,
-0.0985471159,
0.561190486,
-0.1310111433,
-0.224154368,
0.5392277241,
0.0612847582
] |
https://github.com/huggingface/datasets/issues/3178 | "Property couldn't be hashed properly" even though fully picklable | Thanks for searching! I went looking, and found that this is an implementation detail of thinc
https://github.com/explosion/thinc/blob/68691e303ae68cae4bc803299016f1fc064328bf/thinc/model.py#L96-L98
Presumably (?) exactly to distinguish between different parts in memory when multiple models are loaded. Do not think that this can be changed on their end - but I will ask what exactly it is for (I'm curious).
Do you think it is overkill to write something into the hasher explicitly to deal with spaCy models? It seems like something that is beneficial to many, but I do not know if you are open to adding third-party-specific ways to deal with this. If you are, I can have a look for this specific case how we can ignore `thinc.Model.id` from the hasher. | ## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
| 119 | "Property couldn't be hashed properly" even though fully picklable
## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
Thanks for searching! I went looking, and found that this is an implementation detail of thinc
https://github.com/explosion/thinc/blob/68691e303ae68cae4bc803299016f1fc064328bf/thinc/model.py#L96-L98
Presumably (?) exactly to distinguish between different parts in memory when multiple models are loaded. Do not think that this can be changed on their end - but I will ask what exactly it is for (I'm curious).
Do you think it is overkill to write something into the hasher explicitly to deal with spaCy models? It seems like something that is beneficial to many, but I do not know if you are open to adding third-party-specific ways to deal with this. If you are, I can have a look for this specific case how we can ignore `thinc.Model.id` from the hasher. | [
-0.0547037572,
-0.0296596158,
0.1383616775,
0.1674575657,
0.2572079003,
-0.1886388958,
0.3345493674,
0.0546137951,
0.0525931679,
0.1248953864,
0.0389523171,
0.5095518827,
-0.2360349447,
0.3779696524,
-0.1779329479,
0.0818778947,
0.0879114941,
-0.0570349731,
0.0878298432,
-0.1197966412,
-0.0697439685,
-0.0256732684,
-0.3639787436,
0.0150344642,
-0.5814357996,
-0.2471628636,
0.1233717129,
-0.0043504587,
-0.1769182086,
-0.3019955456,
0.1507757157,
-0.0842573196,
-0.0198123567,
0.0914173946,
-0.0001276944,
-0.0400400944,
0.2713608742,
-0.0208546668,
-0.0257947762,
-0.4120488167,
0.1907008439,
-0.3608407974,
0.0740303248,
-0.211347267,
-0.1636205316,
0.3611479104,
-0.2467535585,
-0.2143102884,
0.260607183,
0.0114906086,
0.0392241217,
0.3941231072,
0.0432313383,
0.2574501336,
-0.0588377379,
-0.0148635246,
-0.4733221233,
0.109114565,
0.1186906546,
0.1557988673,
-0.0484532043,
-0.019749077,
0.0093573071,
-0.1011296362,
-0.0401526913,
0.1538345963,
-0.237302959,
-0.0516985804,
0.1653799862,
0.0052834945,
0.0333908945,
-0.3204625547,
-0.3859625161,
-0.1491619647,
0.0474647768,
-0.5314664841,
0.4600654542,
0.0664499253,
0.1255585104,
0.1659148633,
-0.0848168954,
0.0914708599,
0.1008479819,
0.164870128,
0.2551167011,
0.4194827676,
-0.0190647002,
0.2278356701,
-0.0405594781,
-0.1689594835,
0.2658732235,
0.0705322027,
0.1795156002,
0.0836890414,
-0.0195625331,
-0.0307151452,
-0.1670056432,
0.2477212697,
0.2644006908,
-0.0484205522,
0.007160774,
0.1911672354,
-0.33025226,
0.0856915861,
0.1315112412,
-0.265206784,
0.2935669422,
0.4055650532,
-0.0374953933,
0.0583079755,
-0.4280025661,
0.0356123522,
0.0313389413,
-0.0029143307,
0.114661321,
0.1762257218,
0.202796936,
-0.1554870158,
-0.1113362238,
0.2510730624,
-0.4037123024,
-0.0514079742,
0.1103123873,
0.1127123684,
-0.1159863397,
-0.2407061011,
-0.192309469,
0.241377309,
-0.337374419,
-0.3447399735,
-0.0766617879,
0.0834250227,
-0.4073736072,
-0.0222928561,
0.0333841667,
0.1963319182,
0.377796948,
0.1117832139,
-0.1122461334,
0.1048943773,
-0.0382502154,
-0.2463395,
0.1190531179,
0.0087581398,
-0.159172371,
0.1909403354,
0.1781331003,
-0.4805569351,
-0.2565742433,
0.0611921549,
-0.2101026773,
0.0271804929,
-0.0223347694,
-0.0561760366,
-0.3674880564,
-0.103926219,
-0.010629083,
0.2302388847,
0.3314209282,
0.0433118492,
0.0690918565,
-0.3608968258,
-0.3603518009,
-0.2394995093,
0.0475333519,
0.2380011231,
-0.2766398787,
-0.2168492526,
-0.2440198362,
0.0189822223,
0.9000562429,
0.2183276415,
-0.0556712486,
0.0234984681,
-0.2343845814,
0.7594913244,
0.0905847177,
-0.1478681713,
-0.5776648521,
-0.167631045,
-0.0203919969,
0.1384986192,
0.0229974706,
0.0227617323,
0.3518770039,
0.0264439993,
0.3190077543,
0.3026783466,
0.1961114109,
-0.302872628,
-0.3790924549,
-0.142558828,
0.3757954538,
-0.3132485449,
0.1351573169,
0.1308348775,
0.3068951368,
0.4246308804,
0.2254492939,
0.2583018839,
0.1783137918,
-0.0941027328,
0.3221184313,
-0.0918224007,
-0.1540010273,
-0.1793636531,
-0.1915613562,
0.2066816986,
0.023735825,
0.2731806338,
-0.3610523045,
-0.1430864185,
0.0524439774,
0.176856339,
-0.1652963012,
-0.3081740141,
-0.0823015496,
0.0367540531,
-0.1271738857,
0.0828393549,
-0.1993957609,
-0.0555443875,
-0.1569062918,
0.0780029073,
0.119815439,
0.0761380196,
-0.1625960618,
-0.4827044308,
-0.1736913025,
0.2461585402,
0.3014327884,
0.0034809171,
-0.2449755818,
-0.0888495892,
0.1731424034,
-0.3360346854,
-0.1316605508,
0.2585936785,
0.3164643347,
0.0204325486,
0.0327867754,
0.010144542,
-0.0102995848,
-0.0306296796,
0.2863678038,
0.284411788,
-0.1854794919,
0.0013758254,
-0.1170924157,
0.1922469139,
0.4385982752,
-0.0604097769,
0.005020828,
-0.4889424145,
0.1553365141,
-0.0615307167,
0.4590315819,
0.3527908623,
-0.3520230651,
0.3137389719,
0.7528020144,
0.1944844574,
0.3439007401,
-0.0378361195,
0.0523134544,
0.0474330261,
0.1562965661,
-0.0160856824,
0.1846254468,
-0.0083616348,
0.1808769405,
0.1700421125,
-0.210577473,
-0.1544239074,
0.0091514932,
-0.0678443611,
-0.1412783265,
0.2443773746,
0.0432107039,
0.1253934354,
-0.170493111,
-0.1573505849,
0.0509857908,
0.306831181,
-0.3004431427,
-0.090945676,
-0.7436493635,
0.3857062459,
-0.0108448761,
-0.0645975247,
-0.1444186568,
-0.1175103709,
0.0300632454,
0.1875724941,
-0.1544266492,
0.2837776244,
-0.3315267563,
0.1442704648,
-0.0231079198,
-0.1037352756,
-0.0666976497,
0.0035622192,
-0.3922694623,
-0.0960427821,
0.1824147403,
0.0437409021,
0.158203274,
0.0307286568,
-0.1245734394,
-0.1211785525,
-0.1619984806,
0.207660377,
-0.101419501,
0.6599536538,
0.015188084,
-0.0401160829,
-0.2227500677,
-0.042441681,
0.3229544759,
0.0481723547,
-0.1957854331,
0.0668941289,
0.1534006298,
-0.2971335053,
-0.1280110329,
-0.0810010433,
-0.398724407,
-0.2029238939,
-0.0015435937,
0.0409982875,
0.1024120972,
0.1651544869,
-0.0439473428,
0.039993383,
-0.1767993867,
0.1112605929,
-0.1959138364,
-0.5463487506,
0.1524967402,
-0.0229182374,
-0.2902197242,
-0.1396175772,
-0.0799594223,
0.1385860592,
0.2206831872,
-0.0128688039,
0.115886189,
-0.2101252079,
0.4909321964,
0.0909305438,
-0.0949427634,
0.1557549387,
0.1762556434,
0.1384196877,
-0.2511658669,
-0.1176665872,
0.2310352772,
-0.3556729257,
0.283018142,
0.2095107585,
-0.1625982523,
0.3103232682,
0.5404540896,
0.0646587536,
-0.4485714436,
0.658018589,
-0.0632330701,
0.0367329642,
-0.0528674424,
-0.5302308798,
-0.1007553488,
0.0489967875,
-0.1999997497,
0.1675212532,
-0.2166356891,
0.3675014973,
0.2530467808,
-0.0938391387,
-0.4194611311,
-0.2844651639,
0.1701907665,
0.0100753186,
0.023203345,
0.018644521,
0.0716274157,
0.0931468233,
-0.2374302447,
0.0882018059,
0.1123885363,
-0.0080092251,
0.2254105508,
-0.3480645418,
-0.1606261879,
-0.0121608563,
0.1516553462,
0.0018499478,
0.6496222019,
-0.3341351151,
-0.0326856337,
0.0116718356,
0.1500446945,
0.5063470006,
-0.3134467602,
0.2174639851,
0.2441744208,
-0.1328842342,
0.2730717957,
-0.3095413744,
-0.2748121321,
0.4669102132,
0.151848644,
0.4360796511,
-0.2806734145,
0.089700073,
-0.0260195527,
0.1104194149,
0.0163213816,
0.0398565345,
-0.2078765035,
0.0274157599,
-0.2544297874,
0.1486523598,
-0.0139431125,
0.3509781957,
0.1144280434,
0.1137029156,
-0.2285264134,
-0.3311949968,
0.0212135985,
0.1344624609,
0.0931417122,
-0.1248481125,
0.3866323829,
-0.2869854867,
0.1531801671,
0.0576768927,
0.3597967327,
0.1018457413,
-0.4830713272,
-0.2248996049,
-0.1058279499,
0.1986412406,
0.2728036642,
-0.0880790949,
0.322096318,
-0.1087870523,
0.028251905,
0.0867958218,
0.2104933411,
0.1615778059,
0.1686565727,
-0.4326957464,
0.0554656982,
0.3112519085,
0.171020627,
-0.0361163542,
-0.022772342,
0.1751399785,
-0.3406805396,
0.4461533129,
0.2815915942,
1.2980004549,
-0.1158357859,
-0.0815618336,
-0.0376719497,
0.3427511454,
0.6281681657,
-0.0047751153,
-0.0637118965,
-0.2960307598,
-0.0373425521,
-0.0196647532,
-0.0832910836,
0.4282989502,
0.0768294036,
-0.110401392,
0.1596340835,
-0.4422547221,
-0.2462898344,
-0.0062782853,
0.0995812193,
-0.2199065089,
-0.1601839811,
0.1497466415,
-0.0449612848,
-0.3405068517,
0.3380144238,
-0.0139570013,
-0.0397674665,
-0.2785816789,
-0.1287188679,
-0.5075514913,
0.1321091056,
-0.2401426733,
0.077969633,
0.1785475165,
0.1499052346,
0.002595281,
-0.3315670788,
0.4971368909,
0.397376895,
-0.0863510743,
0.0583578572,
-0.0053254063,
-0.2267412841,
0.2406246066,
-0.0009640727,
0.5052663088,
0.1125775054,
-0.0049079708,
-0.2517134249,
0.0071727601,
-0.0144628156,
-0.2387796789,
-0.0017566568,
0.2449572682,
-0.3661653697,
-0.4907000661,
-0.0895317048,
0.0124477968,
-0.2250330448,
-0.0155829266,
0.0913009644,
-0.0856952518,
0.2112417519,
0.0587833337,
-0.1739728302,
-0.0077851992,
0.1336868703,
0.0580744855,
0.2336702049,
0.4034205675,
-0.0270993896,
-0.2810717523,
-0.065806061,
-0.050757613,
-0.1043203026,
0.0212903302,
0.0201701932,
-0.0487438813,
-0.2473257929,
-0.424144268,
0.4363887608,
0.3371751308,
0.1167273819,
-0.1022853702,
-0.4436214864,
-0.1478161514,
0.1858899593,
-0.1083173975,
-0.0321706422,
-0.1761490852,
0.8972696662,
-0.1178735048,
-0.1244419962,
-0.0896608382,
-0.0607659854,
-0.252043575,
0.0429904498,
0.2539970875,
0.1062388271,
-0.2125083655,
-0.0547054522,
-0.0610696971,
0.2394860685,
0.0623016544,
-0.0029367607,
-0.4034935534,
0.1946725547,
0.4432670474,
0.0760604963,
-0.1604299694,
-0.1373716891,
0.1805870533,
-0.2636670768,
-0.2539542019,
0.4749056697,
0.2321776003,
0.4184497595,
0.1967936158,
0.2749226987,
-0.0653802231,
0.0270640384,
-0.0921382904,
0.1749438047,
0.0017400493,
0.0215360802,
0.2186419815,
0.1148916781,
-0.204926759,
-0.1758001298,
-0.2116881907,
0.3480989933,
0.0008483459,
0.0011611009,
0.3057721853,
0.0638405457,
0.1857886165,
0.2191876024,
-0.0020264396,
-0.5876792073,
0.4587335289,
0.0280445293,
-0.4276821017,
-0.147218734,
0.0309781134,
0.0807972476,
-0.0735364631,
0.2868472934,
-0.2121807784,
0.2877137065,
-0.7462058067,
-0.0635889471,
0.5026014447,
-0.1601416469,
-0.0615712889,
-0.1991842091,
-0.1536071748,
0.3174808323,
0.28349787,
-0.0587094687,
0.0185796786,
0.4506964087,
-0.2275973707,
0.4550673664,
0.2652670741,
0.1009547412,
-0.0410911962,
-0.3341942132,
0.431022346,
0.2582305372,
0.2840678096,
0.1921057254,
-0.0064201425,
0.0553124249,
-0.0671324283,
-0.284339726,
0.0628115535,
0.3188642263,
-0.2507953048,
-0.1182130277,
-0.1136940941,
0.0208654497,
-0.323400259,
0.0282415543,
-0.0000111144,
0.3174370229,
0.3843381703,
-0.0727047101,
-0.2046419531,
-0.3929638565,
-0.0689787045,
0.1495275795,
0.0466881394,
-0.3392073512,
0.1224664226,
-0.1451081634,
-0.0543557666,
-0.2438494265,
0.1802670658,
0.3568904996,
0.4325848222,
0.1198400557,
-0.1940246522,
-0.3718809187,
0.1307142079,
-0.2088869661,
0.4987926483,
0.2577508092,
0.0108773643,
0.0827217922,
-0.115213275,
-0.0966749117,
0.3931744993,
0.3485361338,
0.1090464443,
-0.0801922008,
0.1890759766,
0.0699377954,
-0.1930680424,
0.0417050943,
0.0294961948,
-0.1845296323,
-0.0385489017,
0.4466285408,
0.1294782311,
0.3553231359,
-0.3326562941,
0.0218980368,
0.3511330783,
0.0810933858,
0.5432698131,
-0.0535807051,
-0.4718731046,
0.6238460541,
-0.5803315639,
0.3404592872,
-0.1978703886,
-0.3355073035,
-0.2210291475,
0.1417924166,
0.0583970137,
0.1976752281,
-0.1559436619,
0.5343947411,
-0.0876789615,
0.0118968263,
-0.1175985262,
0.0271564759,
-0.1152742282,
-0.1859707236,
0.0591473356,
-0.4235768616,
0.3720368445,
-0.162925899,
-0.0777222514,
-0.1368248016,
-0.4115264714,
0.3600969613,
0.1749584526,
0.2012335807,
0.4671104252,
0.5732735991,
-0.0765715986,
0.1230083928,
-0.3830678463,
-0.2349012792,
-0.1785785854,
0.3983487487,
-0.1059957221,
0.0254362319,
-0.041132655,
0.176678732,
-0.4238360822,
0.1713766158,
-0.3041483164,
-0.0763450265,
-0.1750941426,
0.2838480473,
-0.0343426019,
0.0743419528,
-0.2653817534,
0.4218532741,
-0.1129603907,
0.3408609033,
-0.2827915251,
-0.4867301285,
0.4779389501,
-0.5187080503,
-0.171952188,
0.0099418517,
0.1570142359,
0.2735477984,
-0.1657187194,
-0.4894462526,
-0.4313940704,
0.3024000525,
-0.1926945299,
-0.1562816948,
0.0346319228,
0.2694478929,
-0.0029802034,
-0.0985471159,
0.561190486,
-0.1310111433,
-0.224154368,
0.5392277241,
0.0612847582
] |
https://github.com/huggingface/datasets/issues/3178 | "Property couldn't be hashed properly" even though fully picklable | It can be even simpler to hash the bytes of the pipeline instead
```python
nlp1.to_bytes() == nlp2.to_bytes() # True
```
IMO we should integrate the custom hashing for spacy models into `datasets` (we use a custom Pickler for that).
What could be done on Spacy's side instead (if they think it's nice to have) is to implement a custom pickling for these classes using `to_bytes`/`from_bytes` to have deterministic pickle dumps.
Finally I think it would be nice in the future to add an API to let `datasets` users control this kind of things. Something like being able to define your own hashing if you use complex objects.
```python
@datasets.register_hash(spacy.language.Language)
def hash_spacy_language(nlp):
return Hasher.hash(nlp.to_bytes())
``` | ## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
| 114 | "Property couldn't be hashed properly" even though fully picklable
## Describe the bug
I am trying to tokenize a dataset with spaCy. I found that no matter what I do, the spaCy language object (`nlp`) prevents `datasets` from pickling correctly - or so the warning says - even though manually pickling is no issue. It should not be an issue either, since spaCy objects are picklable.
## Steps to reproduce the bug
Here is a [colab](https://colab.research.google.com/drive/1gt75LCBIzsmBMvvipEOvWulvyZseBiA7?usp=sharing) but for some reason I cannot reproduce it there. That may have to do with logging/tqdm on Colab, or with running things in notebooks. I tried below code on Windows and Ubuntu as a Python script and getting the same issue (warning below).
```python
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10%]")
ds = ds.map(self.parse, batched=True, num_proc=6)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled!")
pr.process()
```
---
Here is a small change that includes `Hasher.hash` that shows that the hasher cannot seem to successfully pickle parts form the NLP object.
```python
from datasets.fingerprint import Hasher
import pickle
from datasets import load_dataset
import spacy
class Processor:
def __init__(self):
self.nlp = spacy.load("en_core_web_sm", disable=["tagger", "parser", "ner", "lemmatizer"])
@staticmethod
def collate(batch):
return [d["en"] for d in batch]
def parse(self, batch):
batch = batch["translation"]
return {"translation_tok": [{"en_tok": " ".join([t.text for t in doc])} for doc in self.nlp.pipe(self.collate(batch))]}
def process(self):
ds = load_dataset("wmt16", "de-en", split="train[:10]")
return ds.map(self.parse, batched=True)
if __name__ == '__main__':
pr = Processor()
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr, f)
print("Successfully pickled class instance!")
# succeeds
with open("temp.pkl", "wb") as f:
pickle.dump(pr.nlp, f)
print("Successfully pickled nlp!")
# fails
print(Hasher.hash(pr.nlp))
pr.process()
```
## Expected results
This to be picklable, working (fingerprinted), and no warning.
## Actual results
In the first snippet, I get this warning
Parameter 'function'=<function Processor.parse at 0x7f44982247a0> of the transform datasets.arrow_dataset.Dataset._map_single couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed.
In the second, I get this traceback which directs to the `Hasher.hash` line.
```
Traceback (most recent call last):
File " \Python\Python36\lib\pickle.py", line 918, in save_global
obj2, parent = _getattribute(module, name)
File " \Python\Python36\lib\pickle.py", line 266, in _getattribute
.format(name, obj))
AttributeError: Can't get local attribute 'add_codes.<locals>.ErrorsWithCodes' on <function add_codes at 0x00000296FF606EA0>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File " scratch_4.py", line 40, in <module>
print(Hasher.hash(pr.nlp))
File " \lib\site-packages\datasets\fingerprint.py", line 191, in hash
return cls.hash_default(value)
File " \lib\site-packages\datasets\fingerprint.py", line 184, in hash_default
return cls.hash_bytes(dumps(value))
File " \lib\site-packages\datasets\utils\py_utils.py", line 345, in dumps
dump(obj, file)
File " \lib\site-packages\datasets\utils\py_utils.py", line 320, in dump
Pickler(file, recurse=True).dump(obj)
File " \lib\site-packages\dill\_dill.py", line 498, in dump
StockPickler.dump(self, obj)
File " \Python\Python36\lib\pickle.py", line 409, in dump
self.save(obj)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 781, in save_list
self._batch_appends(obj)
File " \Python\Python36\lib\pickle.py", line 805, in _batch_appends
save(x)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 634, in save_reduce
save(state)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1176, in save_instancemethod0
pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 736, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\datasets\utils\py_utils.py", line 523, in save_function
obj=obj,
File " \Python\Python36\lib\pickle.py", line 610, in save_reduce
save(args)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \Python\Python36\lib\pickle.py", line 751, in save_tuple
save(element)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 990, in save_module_dict
StockPickler.save_dict(pickler, obj)
File " \Python\Python36\lib\pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File " \Python\Python36\lib\pickle.py", line 847, in _batch_setitems
save(v)
File " \Python\Python36\lib\pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File " \Python\Python36\lib\pickle.py", line 605, in save_reduce
save(cls)
File " \Python\Python36\lib\pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File " \lib\site-packages\dill\_dill.py", line 1439, in save_type
StockPickler.save_global(pickler, obj, name=name)
File " \Python\Python36\lib\pickle.py", line 922, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle <class 'spacy.errors.add_codes.<locals>.ErrorsWithCodes'>: it's not found as spacy.errors.add_codes.<locals>.ErrorsWithCodes
```
## Environment info
Tried on both Linux and Windows
- `datasets` version: 1.14.0
- Platform: Windows-10-10.0.19041-SP0 + Python 3.7.9; Linux-5.11.0-38-generic-x86_64-with-Ubuntu-20.04-focal + Python 3.7.12
- PyArrow version: 6.0.0
It can be even simpler to hash the bytes of the pipeline instead
```python
nlp1.to_bytes() == nlp2.to_bytes() # True
```
IMO we should integrate the custom hashing for spacy models into `datasets` (we use a custom Pickler for that).
What could be done on Spacy's side instead (if they think it's nice to have) is to implement a custom pickling for these classes using `to_bytes`/`from_bytes` to have deterministic pickle dumps.
Finally I think it would be nice in the future to add an API to let `datasets` users control this kind of things. Something like being able to define your own hashing if you use complex objects.
```python
@datasets.register_hash(spacy.language.Language)
def hash_spacy_language(nlp):
return Hasher.hash(nlp.to_bytes())
``` | [
-0.0547037572,
-0.0296596158,
0.1383616775,
0.1674575657,
0.2572079003,
-0.1886388958,
0.3345493674,
0.0546137951,
0.0525931679,
0.1248953864,
0.0389523171,
0.5095518827,
-0.2360349447,
0.3779696524,
-0.1779329479,
0.0818778947,
0.0879114941,
-0.0570349731,
0.0878298432,
-0.1197966412,
-0.0697439685,
-0.0256732684,
-0.3639787436,
0.0150344642,
-0.5814357996,
-0.2471628636,
0.1233717129,
-0.0043504587,
-0.1769182086,
-0.3019955456,
0.1507757157,
-0.0842573196,
-0.0198123567,
0.0914173946,
-0.0001276944,
-0.0400400944,
0.2713608742,
-0.0208546668,
-0.0257947762,
-0.4120488167,
0.1907008439,
-0.3608407974,
0.0740303248,
-0.211347267,
-0.1636205316,
0.3611479104,
-0.2467535585,
-0.2143102884,
0.260607183,
0.0114906086,
0.0392241217,
0.3941231072,
0.0432313383,
0.2574501336,
-0.0588377379,
-0.0148635246,
-0.4733221233,
0.109114565,
0.1186906546,
0.1557988673,
-0.0484532043,
-0.019749077,
0.0093573071,
-0.1011296362,
-0.0401526913,
0.1538345963,
-0.237302959,
-0.0516985804,
0.1653799862,
0.0052834945,
0.0333908945,
-0.3204625547,
-0.3859625161,
-0.1491619647,
0.0474647768,
-0.5314664841,
0.4600654542,
0.0664499253,
0.1255585104,
0.1659148633,
-0.0848168954,
0.0914708599,
0.1008479819,
0.164870128,
0.2551167011,
0.4194827676,
-0.0190647002,
0.2278356701,
-0.0405594781,
-0.1689594835,
0.2658732235,
0.0705322027,
0.1795156002,
0.0836890414,
-0.0195625331,
-0.0307151452,
-0.1670056432,
0.2477212697,
0.2644006908,
-0.0484205522,
0.007160774,
0.1911672354,
-0.33025226,
0.0856915861,
0.1315112412,
-0.265206784,
0.2935669422,
0.4055650532,
-0.0374953933,
0.0583079755,
-0.4280025661,
0.0356123522,
0.0313389413,
-0.0029143307,
0.114661321,
0.1762257218,
0.202796936,
-0.1554870158,
-0.1113362238,
0.2510730624,
-0.4037123024,
-0.0514079742,
0.1103123873,
0.1127123684,
-0.1159863397,
-0.2407061011,
-0.192309469,
0.241377309,
-0.337374419,
-0.3447399735,
-0.0766617879,
0.0834250227,
-0.4073736072,
-0.0222928561,
0.0333841667,
0.1963319182,
0.377796948,
0.1117832139,
-0.1122461334,
0.1048943773,
-0.0382502154,
-0.2463395,
0.1190531179,
0.0087581398,
-0.159172371,
0.1909403354,
0.1781331003,
-0.4805569351,
-0.2565742433,
0.0611921549,
-0.2101026773,
0.0271804929,
-0.0223347694,
-0.0561760366,
-0.3674880564,
-0.103926219,
-0.010629083,
0.2302388847,
0.3314209282,
0.0433118492,
0.0690918565,
-0.3608968258,
-0.3603518009,
-0.2394995093,
0.0475333519,
0.2380011231,
-0.2766398787,
-0.2168492526,
-0.2440198362,
0.0189822223,
0.9000562429,
0.2183276415,
-0.0556712486,
0.0234984681,
-0.2343845814,
0.7594913244,
0.0905847177,
-0.1478681713,
-0.5776648521,
-0.167631045,
-0.0203919969,
0.1384986192,
0.0229974706,
0.0227617323,
0.3518770039,
0.0264439993,
0.3190077543,
0.3026783466,
0.1961114109,
-0.302872628,
-0.3790924549,
-0.142558828,
0.3757954538,
-0.3132485449,
0.1351573169,
0.1308348775,
0.3068951368,
0.4246308804,
0.2254492939,
0.2583018839,
0.1783137918,
-0.0941027328,
0.3221184313,
-0.0918224007,
-0.1540010273,
-0.1793636531,
-0.1915613562,
0.2066816986,
0.023735825,
0.2731806338,
-0.3610523045,
-0.1430864185,
0.0524439774,
0.176856339,
-0.1652963012,
-0.3081740141,
-0.0823015496,
0.0367540531,
-0.1271738857,
0.0828393549,
-0.1993957609,
-0.0555443875,
-0.1569062918,
0.0780029073,
0.119815439,
0.0761380196,
-0.1625960618,
-0.4827044308,
-0.1736913025,
0.2461585402,
0.3014327884,
0.0034809171,
-0.2449755818,
-0.0888495892,
0.1731424034,
-0.3360346854,
-0.1316605508,
0.2585936785,
0.3164643347,
0.0204325486,
0.0327867754,
0.010144542,
-0.0102995848,
-0.0306296796,
0.2863678038,
0.284411788,
-0.1854794919,
0.0013758254,
-0.1170924157,
0.1922469139,
0.4385982752,
-0.0604097769,
0.005020828,
-0.4889424145,
0.1553365141,
-0.0615307167,
0.4590315819,
0.3527908623,
-0.3520230651,
0.3137389719,
0.7528020144,
0.1944844574,
0.3439007401,
-0.0378361195,
0.0523134544,
0.0474330261,
0.1562965661,
-0.0160856824,
0.1846254468,
-0.0083616348,
0.1808769405,
0.1700421125,
-0.210577473,
-0.1544239074,
0.0091514932,
-0.0678443611,
-0.1412783265,
0.2443773746,
0.0432107039,
0.1253934354,
-0.170493111,
-0.1573505849,
0.0509857908,
0.306831181,
-0.3004431427,
-0.090945676,
-0.7436493635,
0.3857062459,
-0.0108448761,
-0.0645975247,
-0.1444186568,
-0.1175103709,
0.0300632454,
0.1875724941,
-0.1544266492,
0.2837776244,
-0.3315267563,
0.1442704648,
-0.0231079198,
-0.1037352756,
-0.0666976497,
0.0035622192,
-0.3922694623,
-0.0960427821,
0.1824147403,
0.0437409021,
0.158203274,
0.0307286568,
-0.1245734394,
-0.1211785525,
-0.1619984806,
0.207660377,
-0.101419501,
0.6599536538,
0.015188084,
-0.0401160829,
-0.2227500677,
-0.042441681,
0.3229544759,
0.0481723547,
-0.1957854331,
0.0668941289,
0.1534006298,
-0.2971335053,
-0.1280110329,
-0.0810010433,
-0.398724407,
-0.2029238939,
-0.0015435937,
0.0409982875,
0.1024120972,
0.1651544869,
-0.0439473428,
0.039993383,
-0.1767993867,
0.1112605929,
-0.1959138364,
-0.5463487506,
0.1524967402,
-0.0229182374,
-0.2902197242,
-0.1396175772,
-0.0799594223,
0.1385860592,
0.2206831872,
-0.0128688039,
0.115886189,
-0.2101252079,
0.4909321964,
0.0909305438,
-0.0949427634,
0.1557549387,
0.1762556434,
0.1384196877,
-0.2511658669,
-0.1176665872,
0.2310352772,
-0.3556729257,
0.283018142,
0.2095107585,
-0.1625982523,
0.3103232682,
0.5404540896,
0.0646587536,
-0.4485714436,
0.658018589,
-0.0632330701,
0.0367329642,
-0.0528674424,
-0.5302308798,
-0.1007553488,
0.0489967875,
-0.1999997497,
0.1675212532,
-0.2166356891,
0.3675014973,
0.2530467808,
-0.0938391387,
-0.4194611311,
-0.2844651639,
0.1701907665,
0.0100753186,
0.023203345,
0.018644521,
0.0716274157,
0.0931468233,
-0.2374302447,
0.0882018059,
0.1123885363,
-0.0080092251,
0.2254105508,
-0.3480645418,
-0.1606261879,
-0.0121608563,
0.1516553462,
0.0018499478,
0.6496222019,
-0.3341351151,
-0.0326856337,
0.0116718356,
0.1500446945,
0.5063470006,
-0.3134467602,
0.2174639851,
0.2441744208,
-0.1328842342,
0.2730717957,
-0.3095413744,
-0.2748121321,
0.4669102132,
0.151848644,
0.4360796511,
-0.2806734145,
0.089700073,
-0.0260195527,
0.1104194149,
0.0163213816,
0.0398565345,
-0.2078765035,
0.0274157599,
-0.2544297874,
0.1486523598,
-0.0139431125,
0.3509781957,
0.1144280434,
0.1137029156,
-0.2285264134,
-0.3311949968,
0.0212135985,
0.1344624609,
0.0931417122,
-0.1248481125,
0.3866323829,
-0.2869854867,
0.1531801671,
0.0576768927,
0.3597967327,
0.1018457413,
-0.4830713272,
-0.2248996049,
-0.1058279499,
0.1986412406,
0.2728036642,
-0.0880790949,
0.322096318,
-0.1087870523,
0.028251905,
0.0867958218,
0.2104933411,
0.1615778059,
0.1686565727,
-0.4326957464,
0.0554656982,
0.3112519085,
0.171020627,
-0.0361163542,
-0.022772342,
0.1751399785,
-0.3406805396,
0.4461533129,
0.2815915942,
1.2980004549,
-0.1158357859,
-0.0815618336,
-0.0376719497,
0.3427511454,
0.6281681657,
-0.0047751153,
-0.0637118965,
-0.2960307598,
-0.0373425521,
-0.0196647532,
-0.0832910836,
0.4282989502,
0.0768294036,
-0.110401392,
0.1596340835,
-0.4422547221,
-0.2462898344,
-0.0062782853,
0.0995812193,
-0.2199065089,
-0.1601839811,
0.1497466415,
-0.0449612848,
-0.3405068517,
0.3380144238,
-0.0139570013,
-0.0397674665,
-0.2785816789,
-0.1287188679,
-0.5075514913,
0.1321091056,
-0.2401426733,
0.077969633,
0.1785475165,
0.1499052346,
0.002595281,
-0.3315670788,
0.4971368909,
0.397376895,
-0.0863510743,
0.0583578572,
-0.0053254063,
-0.2267412841,
0.2406246066,
-0.0009640727,
0.5052663088,
0.1125775054,
-0.0049079708,
-0.2517134249,
0.0071727601,
-0.0144628156,
-0.2387796789,
-0.0017566568,
0.2449572682,
-0.3661653697,
-0.4907000661,
-0.0895317048,
0.0124477968,
-0.2250330448,
-0.0155829266,
0.0913009644,
-0.0856952518,
0.2112417519,
0.0587833337,
-0.1739728302,
-0.0077851992,
0.1336868703,
0.0580744855,
0.2336702049,
0.4034205675,
-0.0270993896,
-0.2810717523,
-0.065806061,
-0.050757613,
-0.1043203026,
0.0212903302,
0.0201701932,
-0.0487438813,
-0.2473257929,
-0.424144268,
0.4363887608,
0.3371751308,
0.1167273819,
-0.1022853702,
-0.4436214864,
-0.1478161514,
0.1858899593,
-0.1083173975,
-0.0321706422,
-0.1761490852,
0.8972696662,
-0.1178735048,
-0.1244419962,
-0.0896608382,
-0.0607659854,
-0.252043575,
0.0429904498,
0.2539970875,
0.1062388271,
-0.2125083655,
-0.0547054522,
-0.0610696971,
0.2394860685,
0.0623016544,
-0.0029367607,
-0.4034935534,
0.1946725547,
0.4432670474,
0.0760604963,
-0.1604299694,
-0.1373716891,
0.1805870533,
-0.2636670768,
-0.2539542019,
0.4749056697,
0.2321776003,
0.4184497595,
0.1967936158,
0.2749226987,
-0.0653802231,
0.0270640384,
-0.0921382904,
0.1749438047,
0.0017400493,
0.0215360802,
0.2186419815,
0.1148916781,
-0.204926759,
-0.1758001298,
-0.2116881907,
0.3480989933,
0.0008483459,
0.0011611009,
0.3057721853,
0.0638405457,
0.1857886165,
0.2191876024,
-0.0020264396,
-0.5876792073,
0.4587335289,
0.0280445293,
-0.4276821017,
-0.147218734,
0.0309781134,
0.0807972476,
-0.0735364631,
0.2868472934,
-0.2121807784,
0.2877137065,
-0.7462058067,
-0.0635889471,
0.5026014447,
-0.1601416469,
-0.0615712889,
-0.1991842091,
-0.1536071748,
0.3174808323,
0.28349787,
-0.0587094687,
0.0185796786,
0.4506964087,
-0.2275973707,
0.4550673664,
0.2652670741,
0.1009547412,
-0.0410911962,
-0.3341942132,
0.431022346,
0.2582305372,
0.2840678096,
0.1921057254,
-0.0064201425,
0.0553124249,
-0.0671324283,
-0.284339726,
0.0628115535,
0.3188642263,
-0.2507953048,
-0.1182130277,
-0.1136940941,
0.0208654497,
-0.323400259,
0.0282415543,
-0.0000111144,
0.3174370229,
0.3843381703,
-0.0727047101,
-0.2046419531,
-0.3929638565,
-0.0689787045,
0.1495275795,
0.0466881394,
-0.3392073512,
0.1224664226,
-0.1451081634,
-0.0543557666,
-0.2438494265,
0.1802670658,
0.3568904996,
0.4325848222,
0.1198400557,
-0.1940246522,
-0.3718809187,
0.1307142079,
-0.2088869661,
0.4987926483,
0.2577508092,
0.0108773643,
0.0827217922,
-0.115213275,
-0.0966749117,
0.3931744993,
0.3485361338,
0.1090464443,
-0.0801922008,
0.1890759766,
0.0699377954,
-0.1930680424,
0.0417050943,
0.0294961948,
-0.1845296323,
-0.0385489017,
0.4466285408,
0.1294782311,
0.3553231359,
-0.3326562941,
0.0218980368,
0.3511330783,
0.0810933858,
0.5432698131,
-0.0535807051,
-0.4718731046,
0.6238460541,
-0.5803315639,
0.3404592872,
-0.1978703886,
-0.3355073035,
-0.2210291475,
0.1417924166,
0.0583970137,
0.1976752281,
-0.1559436619,
0.5343947411,
-0.0876789615,
0.0118968263,
-0.1175985262,
0.0271564759,
-0.1152742282,
-0.1859707236,
0.0591473356,
-0.4235768616,
0.3720368445,
-0.162925899,
-0.0777222514,
-0.1368248016,
-0.4115264714,
0.3600969613,
0.1749584526,
0.2012335807,
0.4671104252,
0.5732735991,
-0.0765715986,
0.1230083928,
-0.3830678463,
-0.2349012792,
-0.1785785854,
0.3983487487,
-0.1059957221,
0.0254362319,
-0.041132655,
0.176678732,
-0.4238360822,
0.1713766158,
-0.3041483164,
-0.0763450265,
-0.1750941426,
0.2838480473,
-0.0343426019,
0.0743419528,
-0.2653817534,
0.4218532741,
-0.1129603907,
0.3408609033,
-0.2827915251,
-0.4867301285,
0.4779389501,
-0.5187080503,
-0.171952188,
0.0099418517,
0.1570142359,
0.2735477984,
-0.1657187194,
-0.4894462526,
-0.4313940704,
0.3024000525,
-0.1926945299,
-0.1562816948,
0.0346319228,
0.2694478929,
-0.0029802034,
-0.0985471159,
0.561190486,
-0.1310111433,
-0.224154368,
0.5392277241,
0.0612847582
] |
Subsets and Splits