html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 70
51.8k
| body
stringlengths 0
29.8k
| comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/2945 | Protect master branch | @lhoestq now the 2 are implemented.
Please note that for the the second protection, finally I have chosen to protect the master branch only from **merge commits** (see update comment above), so no need to disable/re-enable the protection on each release (direct commits, different from merge commits, can be pushed to the remote master branch; and eventually reverted without messing up the repo history). | After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.:
- 00cc036fea7c7745cfe722360036ed306796a3f2
- 13ae8c98602bbad8197de3b9b425f4c78f582af1
- ...
I propose to protect our master branch, so that we avoid we can accidentally make this kind of mistakes in the future:
- [x] For Pull Requests using GitHub, allow only squash merging, so that only a single commit per Pull Request is merged into the master branch
- Currently, simple merge commits are already disabled
- I propose to disable rebase merging as well
- ~~Protect the master branch from direct pushes (to avoid accidentally pushing of merge commits)~~
- ~~This protection would reject direct pushes to master branch~~
- ~~If so, for each release (when we need to commit directly to the master branch), we should previously disable the protection and re-enable it again after the release~~
- [x] Protect the master branch only from direct pushing of **merge commits**
- GitHub offers the possibility to protect the master branch only from merge commits (which are the ones that introduce all the commits from the feature branch into the master branch).
- No need to disable/re-enable this protection on each release
This purpose of this Issue is to open a discussion about this problem and to agree in a solution. | 64 | Protect master branch
After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.:
- 00cc036fea7c7745cfe722360036ed306796a3f2
- 13ae8c98602bbad8197de3b9b425f4c78f582af1
- ...
I propose to protect our master branch, so that we avoid we can accidentally make this kind of mistakes in the future:
- [x] For Pull Requests using GitHub, allow only squash merging, so that only a single commit per Pull Request is merged into the master branch
- Currently, simple merge commits are already disabled
- I propose to disable rebase merging as well
- ~~Protect the master branch from direct pushes (to avoid accidentally pushing of merge commits)~~
- ~~This protection would reject direct pushes to master branch~~
- ~~If so, for each release (when we need to commit directly to the master branch), we should previously disable the protection and re-enable it again after the release~~
- [x] Protect the master branch only from direct pushing of **merge commits**
- GitHub offers the possibility to protect the master branch only from merge commits (which are the ones that introduce all the commits from the feature branch into the master branch).
- No need to disable/re-enable this protection on each release
This purpose of this Issue is to open a discussion about this problem and to agree in a solution.
@lhoestq now the 2 are implemented.
Please note that for the the second protection, finally I have chosen to protect the master branch only from **merge commits** (see update comment above), so no need to disable/re-enable the protection on each release (direct commits, different from merge commits, can be pushed to the remote master branch; and eventually reverted without messing up the repo history). | [
-0.1553196907,
-0.1002302244,
-0.0703211576,
-0.0798171014,
-0.1042536274,
-0.1879872978,
0.010403702,
0.2728639543,
-0.0098490976,
-0.0841396898,
0.2926149666,
-0.0778749511,
-0.1324568242,
0.2158906311,
-0.0562291816,
0.1705456823,
0.2003229409,
-0.0407976881,
-0.0923327506,
0.0279234499,
0.022608377,
-0.068702966,
0.083200261,
0.043630518,
-0.1837822497,
0.005400816,
-0.0148118101,
0.1564962417,
-0.4397662878,
-0.4695701003,
0.1452461928,
0.2322402894,
0.025106214,
0.5705345869,
-0.0001043637,
-0.0003454536,
0.1694867164,
-0.0406007245,
-0.1401026398,
-0.2154635787,
-0.4901071191,
-0.4447952211,
-0.0700631961,
-0.0083541572,
0.1288065612,
0.0528679639,
-0.132500127,
0.0238453001,
0.3848451376,
0.1055523828,
0.2386110425,
-0.1028514579,
0.1812401265,
0.0137692541,
0.3920086026,
0.547452569,
-0.0666347072,
0.3031994402,
0.0540182739,
0.0006758235,
0.0611056946,
0.1741086245,
-0.082372427,
-0.2866697907,
0.2270195484,
-0.1779911816,
0.5181742311,
-0.4243532717,
-0.2415837348,
-0.0831172615,
0.0523793474,
-0.1781464219,
-0.4089039564,
-0.241936788,
-0.1499474496,
0.0076339841,
0.0677804947,
0.2468640208,
0.0397399627,
0.0036498865,
-0.3773655295,
-0.2718090415,
-0.004407756,
0.0492043719,
0.1419407725,
-0.1626292467,
0.0664263889,
-0.1270382851,
0.2942225039,
-0.0473279059,
-0.1469835639,
-0.3676343262,
-0.2413336635,
-0.0125877634,
-0.1026131809,
-0.1957471967,
-0.2462064922,
-0.3248275518,
0.4251306653,
0.3889689147,
-0.3832729161,
0.0137398429,
-0.0304894838,
-0.0810164139,
0.207185179,
0.1178582534,
-0.0104902275,
0.0584888235,
0.5307134986,
0.3144406974,
0.0051583126,
0.3255857229,
0.3015701175,
0.0030474477,
0.0344461277,
0.5741183162,
0.4289449751,
-0.262920469,
0.1276475191,
0.1959736943,
-0.3412005603,
-0.3845079243,
0.0711311847,
-0.086172089,
0.1103257611,
0.0271335281,
-0.1147115231,
0.0668014362,
0.0451907441,
-0.0380863994,
-0.3079028428,
-0.1414854825,
-0.3744004369,
-0.0685302094,
0.1860403866,
-0.4571045637,
0.1491677165,
0.4325240254,
-0.0680370554,
-0.199284181,
0.0445524901,
0.1292254925,
0.0555874109,
0.2961195409,
-0.1537979245,
-0.4526281357,
0.2235966325,
0.1313330233,
-0.0668997169,
0.194004178,
-0.1598995775,
-0.2616217434,
-0.1049758047,
0.2977659702,
-0.1482722312,
0.3071559072,
-0.523766458,
0.03637309,
-0.0044835657,
0.3506705761,
0.4910375178,
0.3025480807,
0.3280783296,
-0.1685935706,
0.0617564917,
0.1903456151,
0.3235116601,
-0.0516864583,
0.0623042136,
-0.2877365053,
0.1095034257,
0.1450733691,
-0.3121601641,
0.0175556634,
-0.0052361824,
-0.1312821805,
0.0107762292,
-0.0714069754,
-0.1119880378,
-0.098929286,
-0.3666859269,
0.0694026873,
-0.0407375954,
-0.1007769406,
0.2079570442,
-0.3201758564,
-0.0947938636,
0.205081895,
-0.1481234133,
0.0208984315,
-0.2919873893,
-0.6061382294,
-0.1636559516,
-0.0634389222,
0.1249144822,
0.2275641412,
0.3607693613,
-0.0050312988,
-0.0283613615,
-0.1714022607,
-0.009397408,
0.1125068367,
0.3421368003,
-0.1496780962,
-0.2415419072,
0.1322465837,
-0.3545881212,
0.091140613,
-0.0785118267,
-0.0097749047,
0.0344482884,
-0.3157883883,
0.3412796855,
-0.0440525971,
-0.1208015978,
-0.1141507775,
0.2415171564,
0.0959514603,
-0.1747334599,
-0.2039213181,
-0.2074066252,
0.2601908445,
-0.2408303171,
0.3018656671,
0.1300137788,
0.1026374176,
-0.1411807537,
-0.036453113,
-0.0250962898,
0.3619363308,
0.2363044173,
-0.0899173692,
-0.0591583997,
0.168760851,
-0.0490628257,
0.2035703808,
0.2246948034,
0.425242424,
0.3736156225,
-0.1026817039,
0.0626012236,
-0.091792725,
-0.0787246376,
0.0245946124,
-0.3291273415,
0.3280376196,
0.0736942887,
-0.1394644529,
-0.1740319133,
-0.1033323854,
-0.1740739644,
-0.2202689946,
-0.1707725227,
-0.0129516497,
-0.1690977365,
0.194364801,
-0.3365916014,
0.2223694026,
-0.2772078812,
0.1485798657,
0.015052475,
-0.2516067922,
-0.1024009362,
0.0682979077,
-0.0059674382,
-0.1327148974,
0.1241710931,
0.3773834109,
0.1278745532,
0.1701000631,
0.004274508,
0.0201515388,
0.2572822571,
-0.1164359599,
0.3533256054,
0.1443069577,
-0.1054450795,
0.0540641136,
0.3364559412,
0.1812186539,
0.0643320307,
0.346919477,
-0.0033243559,
0.0352583304,
-0.208406806,
-0.0459842533,
-0.2602105737,
-0.5283414721,
0.2192375958,
-0.1106379479,
-0.3552160859,
-0.0085042305,
-0.0453657992,
0.0474182665,
-0.5248721242,
0.1360301524,
0.1835808158,
0.2905260623,
-0.317802906,
-0.1199781969,
0.1263159215,
-0.0225954037,
0.0123442393,
0.1285601258,
0.363160044,
-0.2266808748,
0.4594512582,
0.2389811426,
-0.1695563346,
-0.4726403058,
-0.3434129953,
0.0191300288,
-0.2039362043,
-0.1179745346,
0.0098188072,
-0.098930642,
0.0921540707,
-0.3585399389,
-0.3257124126,
-0.0187740698,
-0.3730048835,
-0.1600954831,
0.0695957541,
0.0628854185,
-0.2346179634,
-0.1140405238,
-0.386589855,
-0.2821526527,
0.4793556035,
-0.0164330937,
0.1156589538,
-0.043173328,
-0.2923768461,
-0.0459179543,
0.0874826163,
0.1366391182,
-0.0000451989,
-0.3609322011,
0.0325667709,
-0.0406605117,
-0.0293471701,
0.3526099324,
0.1854909211,
-0.4302403927,
0.0712515712,
-0.3217608631,
-0.1558190882,
-0.052084662,
0.4864441752,
0.3141197562,
-0.0973736122,
0.0710804239,
0.1035511345,
-0.1919004619,
0.0550890416,
-0.1816119254,
0.1472242028,
0.3454881608,
0.2857185006,
0.0378994346,
0.1458676606,
0.0254973769,
0.7140871882,
0.3778495789,
-0.0596571825,
0.2103371769,
0.3106970489,
-0.0277176723,
0.003990192,
-0.2601565421,
0.0650469288,
-0.1012430415,
-0.0000208244,
0.0867040455,
-0.1295782328,
-0.1229653805,
-0.0112110078,
-0.4777137041,
0.0091562644,
-0.4146765172,
-0.2396629453,
-0.3181840479,
0.1842497289,
-0.0225255378,
-0.4854881763,
0.1313801408,
0.0537710227,
0.2305762023,
0.2159709036,
0.2142061442,
0.1812156588,
-0.0202592388,
-0.0510847531,
-0.1200737655,
-0.0677260458,
-0.004330989,
0.1452501416,
0.090580292,
-0.1670409441,
0.0318055078,
0.0695504099,
0.3299908042,
-0.0148684233,
0.1402915865,
-0.1708071232,
-0.5094850659,
0.6086310744,
-0.3185942173,
0.1394026577,
0.2990987003,
0.5112240314,
0.4397637248,
-0.2954542041,
-0.1953164637,
0.2071225941,
0.0325558931,
0.1978366524,
0.177350089,
0.1449770778,
0.2783071995,
-0.490381062,
0.2887741327,
0.1548330486,
-0.2504822016,
-0.1551760435,
-0.0039055645,
-0.0270504691,
0.1264626384,
-0.0263034515,
-0.2453977317,
0.0091273412,
-0.1094376519,
0.1734459251,
0.132920295,
0.0698279589,
0.4152194262,
0.5946590304,
0.1349337995,
-0.3891985118,
-0.0482013151,
-0.1750734895,
-0.0742833316,
0.3271440268,
0.1983507723,
0.2482280582,
0.0203484297,
0.1776859909,
-0.1234724671,
-0.2662384212,
-0.2033668756,
-0.038491156,
-0.0767425895,
0.0075889528,
0.0873294622,
-0.0458978787,
-0.0909923464,
0.0130485268,
0.1399984956,
-0.366099894,
0.1637847275,
0.6180497408,
0.9825441837,
0.3975672126,
0.0890337974,
-0.2546566427,
-0.327382952,
0.3259907961,
-0.3401076198,
-0.1664509624,
-0.2470171899,
-0.1235882342,
-0.1842461228,
-0.3403116465,
-0.0386946835,
-0.4898471236,
-0.3528554738,
0.1351124793,
-0.2180550992,
0.5279188752,
0.008177802,
0.1233861893,
0.1910187453,
-0.1223143935,
0.2551512718,
0.1982709765,
0.0618111044,
0.1040950343,
-0.0040275864,
-0.4687904418,
-0.0022330359,
0.0205387697,
-0.3772696257,
0.0891471058,
-0.3437779546,
0.0388468765,
-0.2063531429,
-0.3160519004,
0.1158269271,
-0.0870480314,
0.60594064,
0.1666304618,
-0.0794519261,
-0.0446207225,
0.2913889885,
0.4645249844,
-0.2288515866,
-0.2195305675,
0.5223727226,
-0.2133639902,
-0.130217582,
-0.2047615945,
-0.0803343728,
-0.2370927036,
-0.2609477639,
-0.1280431151,
-0.3282327652,
0.0795016736,
0.0417145081,
0.2636536062,
-0.0910696089,
-0.1676062942,
0.185993135,
0.1154859811,
-0.1075729132,
-0.1185849756,
-0.1695202589,
-0.2610398531,
-0.0678160638,
0.2016011328,
0.1616056263,
-0.120606795,
-0.0767641887,
0.0996574312,
-0.2443368286,
-0.2207898796,
-0.2072925866,
0.1059877798,
-0.1394683868,
0.0929815024,
-0.5486777425,
-0.3299345076,
0.0517465174,
0.2461931109,
0.2794155478,
0.3304982185,
0.1180000901,
-0.0997707248,
-0.22444956,
0.2186436057,
-0.3279265463,
0.1686488837,
0.0235842615,
0.1588115692,
-0.0260099247,
0.0404300094,
-0.3905958831,
0.1603152156,
-0.1254808605,
-0.021126302,
-0.2255208343,
-0.1017532647,
-0.0006300434,
-0.3081862628,
0.0324876606,
0.0234331153,
-0.1957565844,
-0.2830154002,
0.0926689059,
0.0656955764,
0.0647893697,
-0.057013534,
-0.0574608296,
-0.1081574485,
0.0827528611,
0.2720324695,
0.2396922559,
-0.1584912837,
0.1097131371,
-0.0322249383,
0.1710882187,
0.1105847955,
-0.0247726999,
0.0892418474,
0.0146323238,
-0.2658015192,
-0.0353750549,
0.267160058,
-0.181746006,
-0.2171440274,
-0.2685393095,
0.1888353527,
0.105633691,
0.5840902328,
0.202880308,
0.1442173272,
-0.4050823748,
0.1754092425,
-0.0531975478,
-0.0036353469,
-0.1692356318,
-0.096940428,
-0.0849621594,
0.2793602645,
-0.0867192447,
-0.3035973907,
0.2713840604,
0.188181743,
0.0007487535,
0.1049711257,
0.5280753374,
0.129620865,
-0.1896521002,
0.4221355319,
0.2712431252,
-0.0876761824,
0.4948998988,
0.470233202,
-0.1131819561,
-0.0203251615,
-0.082735762,
0.1166146696,
0.2306873947,
-0.2540960908,
0.128471598,
0.2962189019,
0.64629668,
-0.168884024,
0.3935548961,
-0.0330963545,
0.3437393606,
0.1979929954,
0.0587404147,
-0.2460492551,
0.3927091062,
0.2117074728,
0.3301509917,
-0.6189892292,
0.1363728642,
0.4914030433,
0.0492829382,
0.1995817125,
-0.400105536,
-0.049232699,
-0.0584761947,
-0.0483132638,
-0.0781827718,
0.1634954959,
0.1237374693,
0.2829663157,
0.0065842085,
-0.0883785337,
-0.0434402637,
0.1850478798,
0.24156183,
-0.1169978157,
-0.1811730713,
0.3577546477,
-0.2761979401,
0.0664940625,
0.2154601067,
0.1350682825,
-0.0747164264,
-0.0686337799,
0.1802344918,
0.4503943324,
-0.1699341536,
0.0225113444,
0.0557495728,
-0.1625678539,
0.1577174962,
0.0801473781,
0.2580326796,
-0.0533407964,
0.1128026769,
0.0354270115,
-0.4152975082,
-0.025322251,
0.4330807328,
0.5564643145,
-0.3377305865,
0.4601386487,
0.1192683578,
0.2847005129,
-0.0326846391,
0.437435478,
-0.047126241,
0.1163922101,
-0.0051538534,
0.1430787295,
0.0280899256,
0.2575882971,
0.141499728,
-0.0333453305,
-0.159288466,
0.0301066935,
-0.1215411574,
0.1274356544,
0.2968393564,
0.1730703264,
0.4198884964,
-0.294713825,
0.1275686622,
0.12823461,
-0.0875692815,
-0.3413963318,
0.0095218755,
0.0940848961,
-0.3605291843,
0.0042474959,
0.2224818468,
-0.0694396719,
-0.0241941847,
0.1189335212,
0.4094777107,
0.1927904338,
0.1120927334,
0.1051309481,
-0.0493476987,
0.3209429979,
-0.3918456137,
0.2249618769,
0.1892230809,
-0.1029295474,
-0.2218884081,
-0.051098831,
0.0073657287,
0.0212803893,
-0.4355088174,
-0.1401805431,
-0.1622254997,
0.4209836125,
-0.13559708,
0.0682981312,
-0.3722177148,
0.0687670708,
-0.0371344686,
0.2683556974,
-0.3000993729,
0.0864086002,
0.0525472015,
0.0173381157,
0.0883702934,
0.13057971,
0.0684344023,
0.2528502345,
-0.3523155749,
-0.1248895526,
0.3586621881,
-0.0194703974,
0.091035977,
-0.2172686458,
0.4182044268,
0.4654459357,
-0.1480812579,
-0.3321150541,
-0.2635182738,
-0.0111564659,
-0.2798339427,
-0.5420891643,
0.298637718,
0.1378679574,
0.1974382848,
-0.1058709025,
0.0366071947,
-0.0743264854,
-0.1527633518,
0.0611718819,
-0.1987861097
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | Hi ! I guess the caching mechanism should have considered the new `filter` to be different from the old one, and don't use cached results from the old `filter`.
To avoid other users from having this issue we could make the caching differentiate the two, what do you think ? | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 50 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
Hi ! I guess the caching mechanism should have considered the new `filter` to be different from the old one, and don't use cached results from the old `filter`.
To avoid other users from having this issue we could make the caching differentiate the two, what do you think ? | [
-0.3049952984,
0.124387905,
-0.0465586074,
0.2368963808,
0.1517290622,
-0.0666599274,
-0.0069408538,
0.3285394311,
0.173739031,
0.0293815993,
-0.2313866317,
0.3581927419,
-0.1503304243,
0.2527367473,
-0.2977858186,
-0.1378118992,
0.0444690213,
0.0321245417,
-0.0614950396,
0.1664126813,
-0.1239174008,
0.4988579154,
-0.1957764924,
0.0070791524,
0.2221656293,
0.0513209552,
0.1091238931,
0.1385661364,
0.0798623711,
-0.3392695189,
0.5981169939,
0.1064067036,
-0.0348690674,
0.4980957508,
-0.0001213098,
0.0998678803,
0.4398062527,
-0.1073977277,
-0.4579494298,
-0.3686877191,
-0.192853868,
0.131993711,
0.213113606,
0.0811630934,
-0.0715119913,
0.1143421978,
-0.3034938872,
-0.346047163,
0.2488766313,
0.198933199,
0.2267288119,
0.2136142105,
0.2657418251,
0.0665871575,
0.170178771,
0.0826521963,
0.0259718895,
-0.0490863472,
0.2940285206,
0.0142610073,
0.0436854511,
0.4806105494,
-0.3283526003,
-0.2146459818,
0.3046188354,
-0.2982529998,
0.1030711457,
-0.3957035244,
0.2999310791,
0.0781373307,
0.1462637037,
-0.2555182278,
-0.5773367286,
-0.3483258784,
-0.5121471882,
-0.2868289351,
0.4164728522,
-0.2163588405,
-0.2009970397,
0.2200829983,
-0.3342646956,
-0.0270038154,
0.0934983119,
0.0535095222,
-0.058482416,
0.2941836417,
-0.1318319142,
-0.0048627183,
0.0149830263,
-0.1329007149,
0.1924080253,
-0.2750048637,
-0.1968746781,
0.172580272,
-0.0155594852,
-0.0546129793,
0.0954228565,
0.3323277235,
0.1405711174,
0.03562852,
0.0192101784,
0.0845403224,
-0.0409640595,
0.0536776111,
0.1373272091,
0.475378871,
0.4901199639,
0.2467905581,
0.2727873623,
0.2854888439,
-0.0078852251,
-0.0013804897,
0.5281857252,
-0.1666410863,
0.0747073814,
0.1517301351,
0.1966951489,
-0.4048687816,
-0.3602137566,
0.1689628959,
-0.0770000666,
-0.12503995,
0.2207262367,
0.0534947515,
0.1005651876,
0.2142344117,
0.1320813596,
0.0338565484,
-0.1964720488,
0.0612347014,
-0.1725098789,
-0.1739456654,
0.0011613891,
-0.1112987772,
-0.0473049097,
-0.8997768164,
0.1747696698,
0.0482600704,
0.0063486509,
0.1058093458,
-0.0697736889,
0.2074347734,
0.173016876,
0.5229281187,
-0.221358642,
0.0839004442,
0.167191118,
-0.5483285189,
-0.1386866271,
0.0125279408,
-0.2415380627,
-0.1112060249,
0.2085877508,
0.1735863686,
-0.3296717405,
0.0126508549,
-0.1702991426,
0.4515429139,
0.259213686,
-0.5466867089,
-0.077957198,
-0.2133800983,
-0.4382347167,
-0.1997144818,
0.0971906483,
0.4131376743,
-0.5942544937,
-0.3216673732,
0.0216872506,
0.0319067761,
0.0399167389,
-0.122934185,
-0.0634391457,
-0.2444724739,
-0.1077684015,
-0.1384177506,
0.3606542647,
-0.319554776,
-0.7338929176,
0.1537259221,
0.2360214591,
0.5342667103,
-0.0709590018,
-0.137484327,
0.2813946903,
-0.2578287721,
0.14599213,
0.0848447308,
-0.1649033874,
-0.0079936609,
-0.3409692049,
-0.2346944362,
0.223870039,
-0.1502911896,
0.0904171094,
0.3348589838,
0.0790063888,
-0.2542200089,
0.0502921864,
0.0350502208,
0.1049241349,
0.1990929544,
0.245324105,
0.2237652242,
0.2863060832,
-0.4365181327,
-0.2801405787,
0.2506178617,
0.2141300738,
-0.0600014552,
-0.1524062455,
-0.1982274652,
-0.2678266168,
-0.0884184092,
-0.1589773148,
-0.3044101596,
0.0788738877,
0.0225765929,
0.3843640089,
-0.0385037623,
-0.1145257875,
0.6218647957,
0.3084534407,
0.0944801942,
-0.5049408078,
0.2296410799,
-0.0548518002,
0.0051684044,
-0.0591857396,
0.0377821624,
0.293959558,
-0.0685251504,
-0.2895758152,
0.4078748822,
0.039259091,
0.0841677487,
-0.0276332423,
0.1937459111,
0.1773461401,
0.2105838656,
0.0639336035,
0.274181962,
-0.0148834847,
0.2087214887,
-0.1954571605,
0.5572487116,
0.0293753594,
0.3240503669,
0.1208346188,
0.1487564147,
0.3702496588,
0.1305632442,
-0.2189948112,
-0.137078464,
0.3204488754,
-0.4587231874,
0.0626678169,
0.0123390742,
-0.1297933459,
0.3776257634,
0.0716822147,
0.0755120367,
-0.033451993,
0.3119211197,
-0.1593657285,
-0.0421907902,
0.1813622117,
0.4024862647,
0.4014505744,
0.2088319212,
0.0507172123,
0.0758816898,
-0.1615393907,
-0.0248772688,
0.2082491219,
0.1293460727,
-0.169640258,
0.153575331,
0.3034209907,
0.2732039988,
-0.3061975837,
0.093393065,
-0.2356238663,
0.1195331067,
-0.2705812752,
0.3616371453,
-0.2810100913,
-0.2280871719,
0.0761421546,
-0.167832166,
-0.261514008,
-0.3875222206,
0.0898991004,
0.3934392929,
-0.0862187967,
0.2567745447,
0.0147165284,
0.244541198,
0.1361676008,
-0.1996820867,
-0.4005722404,
-0.2078812569,
-0.3476477861,
0.0053976849,
0.2051319033,
-0.156849131,
0.2970356047,
-0.0763089433,
-0.2066244036,
-0.3902941346,
-0.9079105258,
-0.0486291237,
-0.1239648387,
0.6180295348,
0.3176226914,
-0.091625616,
-0.1352720708,
-0.2327560931,
0.1665795594,
-0.0413153023,
-0.4310829639,
0.1568388641,
0.066622749,
0.1682223082,
-0.2003855109,
-0.2270281166,
-0.1135407612,
-0.1458193362,
0.0079397857,
-0.127689749,
0.0849653408,
0.3094043136,
0.1123534516,
-0.3165152669,
-0.0872012228,
0.1330857277,
-0.3335404098,
-0.0773376524,
0.0739420801,
-0.0541622452,
-0.2302437872,
-0.0341396034,
-0.0319809318,
0.0831898302,
0.3736630976,
-0.406958878,
-0.3791770339,
-0.2713731229,
-0.0048742518,
0.23117733,
0.0683609024,
0.2319664061,
0.1899943352,
0.0391032174,
-0.2794685662,
-0.4342857897,
-0.0886204168,
-0.2365953624,
0.1095489562,
0.1482242942,
0.6309944391,
0.0345639586,
0.4764264524,
0.2947267294,
0.0489608869,
0.1398263574,
0.1815549731,
0.4972689748,
-0.3258458674,
-0.4095647633,
-0.0467091389,
-0.0461941659,
0.0505126566,
-0.1531917304,
0.1795817316,
-0.1120615155,
-0.348788321,
0.0000889525,
-0.2515637875,
-0.2498104721,
-0.2386272997,
-0.0136437304,
0.269005388,
0.3906215429,
0.1407711655,
-0.3225957155,
-0.1763849556,
-0.0081371665,
0.4007479548,
0.1035780013,
0.2502201796,
-0.1815417409,
-0.0471421517,
-0.4509261847,
0.4925593734,
0.2151453644,
0.2648921609,
-0.1177540869,
-0.162966162,
-0.3294480145,
-0.0492411032,
0.5928118825,
-0.3631772995,
0.0443487205,
0.1019542664,
-0.2081840038,
-0.3828818798,
0.0511295795,
0.0076627731,
0.3649111986,
0.0543547198,
0.3508077264,
-0.0821148306,
-0.0730154216,
-0.0869159251,
0.2223744392,
-0.1245946959,
0.0196015723,
-0.2743617892,
-0.2049435079,
-0.1433088183,
0.0314203613,
-0.1528895497,
0.165067479,
-0.1800073832,
-0.0685373768,
-0.113143228,
-0.0563925393,
0.1153810173,
0.1347035319,
0.2945026457,
-0.1000053883,
0.118739292,
0.1441813409,
0.240529418,
0.042369619,
0.4583911002,
-0.2755984962,
-0.278095752,
-0.0670713782,
0.1208043993,
-0.114640519,
0.3437378705,
-0.2040163279,
-0.0173399746,
-0.0444571488,
-0.1020427868,
-0.0212401226,
-0.1411030889,
-0.0019393526,
0.3703024685,
-0.2049248368,
-0.2889378667,
0.2329641134,
0.2390515506,
-0.2043494284,
0.4367762506,
0.3422555327,
-0.2809349895,
0.1687894464,
-0.1999589503,
0.7136856318,
0.1521682441,
-0.0298539922,
0.0877991617,
-0.1695175767,
0.4524543583,
0.312545687,
0.1559780091,
-0.0667678118,
-0.2370488644,
-0.0655061454,
-0.034747418,
0.1580223143,
-0.111061506,
-0.2036341429,
0.563148737,
-0.0592190921,
-0.035387788,
0.1755871475,
-0.117328532,
-0.2023076862,
0.0190882459,
-0.4372625351,
0.0991253406,
-0.0213231258,
0.2521659434,
0.0010583699,
-0.0767223239,
0.0552206635,
-0.3087655604,
-0.2637810111,
-0.0523917601,
-0.3992069364,
-0.0659273863,
0.2081238925,
-0.4332802594,
0.0089730322,
0.0526267737,
0.2566774487,
-0.0081805456,
-0.0373011343,
-0.0075373081,
0.0702683851,
0.4977717996,
0.2345930636,
0.0250331312,
0.2863309085,
0.0890945792,
0.1867843717,
0.0195987541,
-0.1420111954,
-0.3608395755,
-0.0186533779,
0.0038107838,
0.1180323213,
-0.1588667631,
0.0288233161,
-0.242854923,
0.0213064551,
-0.3648616672,
0.0650938898,
-0.089833878,
-0.0098388381,
0.0943214372,
-0.0165628176,
-0.2268176377,
-0.0053526862,
0.6357889175,
-0.1438152194,
-0.4367527068,
0.127720058,
-0.0055662245,
-0.2235847116,
0.0353584141,
-0.2044419199,
0.0274195895,
-0.2750840187,
0.297878325,
-0.2511253953,
-0.1071276963,
0.2691297233,
0.322792232,
0.1886075288,
0.2146120071,
-0.151667282,
-0.3945677578,
-0.1370823532,
0.2854577303,
0.0442741737,
0.0549805909,
-0.0311487652,
-0.3236707151,
-0.1444217861,
-0.2066637874,
-0.225788936,
0.0087528154,
0.3313150108,
0.0712086186,
0.1904865801,
0.2205635011,
0.1548966765,
-0.1995645314,
-0.0134113915,
0.0725869313,
-0.2038202733,
-0.10209319,
-0.0933457538,
0.0935417935,
-0.0911599323,
-0.2648987174,
-0.1546195447,
-0.0057540983,
0.0614033639,
-0.1646930128,
0.4182680845,
0.3214155436,
-0.1182498261,
-0.0536906682,
-0.0327781402,
0.0472253412,
0.3035395741,
0.1383114457,
0.0185653735,
0.0326713324,
0.0427049398,
0.1994483769,
-0.1875814348,
0.0140964836,
0.0820162818,
0.0423961766,
-0.2510477006,
0.0270900764,
0.3569348454,
-0.2952964008,
-0.021639429,
0.5987739563,
0.3562678397,
0.2437597811,
-0.1398065835,
0.1138306782,
-0.0777394623,
0.1533576101,
-0.273904711,
-0.332678169,
0.2057785541,
0.2732262015,
0.0609576702,
0.1860819906,
-0.002107203,
0.0291594714,
0.6171159148,
0.2176479399,
0.4478166997,
-0.1253158301,
0.3508078754,
0.5271655917,
0.2326288372,
0.184375748,
0.2417199612,
0.0737256259,
0.0160926357,
0.5080397725,
-0.0660086721,
0.2586890757,
0.2197470069,
0.1287701428,
-0.0355190933,
-0.4662740827,
-0.165674895,
0.0283218995,
-0.0797490105,
0.2506763041,
0.1661576927,
0.0856597796,
-0.2232842445,
-0.3345977664,
0.0114883706,
0.0248980299,
-0.1936261356,
-0.2161097825,
0.1446397007,
-0.3639175296,
-0.0571492612,
0.0134867504,
-0.120843865,
0.0703996271,
0.4529307187,
-0.2469493896,
-0.128362447,
-0.4731903672,
-0.3793773055,
0.0500450991,
0.1747642756,
-0.0140106902,
0.4047628343,
0.2587805688,
-0.2298550904,
0.221988216,
0.2503438592,
0.4856495261,
0.2468239665,
0.0276925862,
0.0133471526,
-0.1420495212,
-0.0540066808,
-0.0907230526,
0.3356419802,
-0.087083146,
0.030568976,
0.1879346967,
0.1134103388,
0.0007337667,
0.2053899765,
-0.0408544727,
0.3989400864,
-0.466181457,
0.0895343721,
-0.2369528115,
0.2848795652,
0.0150144249,
0.100014098,
-0.2490250766,
-0.118114993,
0.171214819,
0.2318111956,
0.2039028108,
-0.1064849868,
0.0748108327,
0.134854272,
0.0739090294,
0.4687883854,
-0.0930127054,
-0.0892462805,
-0.146488905,
-0.6535097361,
-0.0558623038,
0.1423009783,
0.1280673742,
-0.0635152906,
0.0375309512,
0.0490150899,
0.1846857965,
0.0434730016,
-0.1836021245,
0.1054587439,
-0.2515143752,
-0.2000014484,
-0.1759466231,
0.2301194966,
-0.2421483696,
0.0548489988,
-0.2659101486,
0.0627726167,
-0.04169254,
0.02695366,
-0.005927844,
-0.0628841817,
0.0675144494,
0.3473343253,
-0.1370733082,
0.3493894935,
0.2663171589,
0.0334930569,
-0.0034477115,
-0.278297931,
-0.1931355,
-0.2683140337,
0.0700842142,
-0.2921245098,
0.4918607473,
-0.4018592536,
-0.3019632995,
-0.1804216802,
0.2724742591,
0.1233780235,
-0.1268286705,
-0.4767788351,
0.1658579111,
-0.0587570518,
0.0838124603,
0.0044374987,
0.508733809,
0.0599868,
0.3379510641,
-0.2266304791,
-0.3412218094,
0.5358172655,
-0.4137625992,
-0.2617648244,
-0.1319275945,
-0.0639737546,
0.6073153615,
-0.4836448431,
-0.3043729663,
-0.2037672251,
0.2719913721,
-0.1200055629,
-0.1490255296,
0.1555722952,
-0.2652983069,
0.1745558083,
-0.189201951,
-0.0870611668,
0.4393820167,
-0.0882679746,
0.2773536444,
-0.1299419254
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | If it's easy enough to implement, then yes please 😄 But this issue can be low-priority, since I've only encountered it in a couple of `transformers` CI tests. | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 28 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
If it's easy enough to implement, then yes please 😄 But this issue can be low-priority, since I've only encountered it in a couple of `transformers` CI tests. | [
-0.3049952984,
0.124387905,
-0.0465586074,
0.2368963808,
0.1517290622,
-0.0666599274,
-0.0069408538,
0.3285394311,
0.173739031,
0.0293815993,
-0.2313866317,
0.3581927419,
-0.1503304243,
0.2527367473,
-0.2977858186,
-0.1378118992,
0.0444690213,
0.0321245417,
-0.0614950396,
0.1664126813,
-0.1239174008,
0.4988579154,
-0.1957764924,
0.0070791524,
0.2221656293,
0.0513209552,
0.1091238931,
0.1385661364,
0.0798623711,
-0.3392695189,
0.5981169939,
0.1064067036,
-0.0348690674,
0.4980957508,
-0.0001213098,
0.0998678803,
0.4398062527,
-0.1073977277,
-0.4579494298,
-0.3686877191,
-0.192853868,
0.131993711,
0.213113606,
0.0811630934,
-0.0715119913,
0.1143421978,
-0.3034938872,
-0.346047163,
0.2488766313,
0.198933199,
0.2267288119,
0.2136142105,
0.2657418251,
0.0665871575,
0.170178771,
0.0826521963,
0.0259718895,
-0.0490863472,
0.2940285206,
0.0142610073,
0.0436854511,
0.4806105494,
-0.3283526003,
-0.2146459818,
0.3046188354,
-0.2982529998,
0.1030711457,
-0.3957035244,
0.2999310791,
0.0781373307,
0.1462637037,
-0.2555182278,
-0.5773367286,
-0.3483258784,
-0.5121471882,
-0.2868289351,
0.4164728522,
-0.2163588405,
-0.2009970397,
0.2200829983,
-0.3342646956,
-0.0270038154,
0.0934983119,
0.0535095222,
-0.058482416,
0.2941836417,
-0.1318319142,
-0.0048627183,
0.0149830263,
-0.1329007149,
0.1924080253,
-0.2750048637,
-0.1968746781,
0.172580272,
-0.0155594852,
-0.0546129793,
0.0954228565,
0.3323277235,
0.1405711174,
0.03562852,
0.0192101784,
0.0845403224,
-0.0409640595,
0.0536776111,
0.1373272091,
0.475378871,
0.4901199639,
0.2467905581,
0.2727873623,
0.2854888439,
-0.0078852251,
-0.0013804897,
0.5281857252,
-0.1666410863,
0.0747073814,
0.1517301351,
0.1966951489,
-0.4048687816,
-0.3602137566,
0.1689628959,
-0.0770000666,
-0.12503995,
0.2207262367,
0.0534947515,
0.1005651876,
0.2142344117,
0.1320813596,
0.0338565484,
-0.1964720488,
0.0612347014,
-0.1725098789,
-0.1739456654,
0.0011613891,
-0.1112987772,
-0.0473049097,
-0.8997768164,
0.1747696698,
0.0482600704,
0.0063486509,
0.1058093458,
-0.0697736889,
0.2074347734,
0.173016876,
0.5229281187,
-0.221358642,
0.0839004442,
0.167191118,
-0.5483285189,
-0.1386866271,
0.0125279408,
-0.2415380627,
-0.1112060249,
0.2085877508,
0.1735863686,
-0.3296717405,
0.0126508549,
-0.1702991426,
0.4515429139,
0.259213686,
-0.5466867089,
-0.077957198,
-0.2133800983,
-0.4382347167,
-0.1997144818,
0.0971906483,
0.4131376743,
-0.5942544937,
-0.3216673732,
0.0216872506,
0.0319067761,
0.0399167389,
-0.122934185,
-0.0634391457,
-0.2444724739,
-0.1077684015,
-0.1384177506,
0.3606542647,
-0.319554776,
-0.7338929176,
0.1537259221,
0.2360214591,
0.5342667103,
-0.0709590018,
-0.137484327,
0.2813946903,
-0.2578287721,
0.14599213,
0.0848447308,
-0.1649033874,
-0.0079936609,
-0.3409692049,
-0.2346944362,
0.223870039,
-0.1502911896,
0.0904171094,
0.3348589838,
0.0790063888,
-0.2542200089,
0.0502921864,
0.0350502208,
0.1049241349,
0.1990929544,
0.245324105,
0.2237652242,
0.2863060832,
-0.4365181327,
-0.2801405787,
0.2506178617,
0.2141300738,
-0.0600014552,
-0.1524062455,
-0.1982274652,
-0.2678266168,
-0.0884184092,
-0.1589773148,
-0.3044101596,
0.0788738877,
0.0225765929,
0.3843640089,
-0.0385037623,
-0.1145257875,
0.6218647957,
0.3084534407,
0.0944801942,
-0.5049408078,
0.2296410799,
-0.0548518002,
0.0051684044,
-0.0591857396,
0.0377821624,
0.293959558,
-0.0685251504,
-0.2895758152,
0.4078748822,
0.039259091,
0.0841677487,
-0.0276332423,
0.1937459111,
0.1773461401,
0.2105838656,
0.0639336035,
0.274181962,
-0.0148834847,
0.2087214887,
-0.1954571605,
0.5572487116,
0.0293753594,
0.3240503669,
0.1208346188,
0.1487564147,
0.3702496588,
0.1305632442,
-0.2189948112,
-0.137078464,
0.3204488754,
-0.4587231874,
0.0626678169,
0.0123390742,
-0.1297933459,
0.3776257634,
0.0716822147,
0.0755120367,
-0.033451993,
0.3119211197,
-0.1593657285,
-0.0421907902,
0.1813622117,
0.4024862647,
0.4014505744,
0.2088319212,
0.0507172123,
0.0758816898,
-0.1615393907,
-0.0248772688,
0.2082491219,
0.1293460727,
-0.169640258,
0.153575331,
0.3034209907,
0.2732039988,
-0.3061975837,
0.093393065,
-0.2356238663,
0.1195331067,
-0.2705812752,
0.3616371453,
-0.2810100913,
-0.2280871719,
0.0761421546,
-0.167832166,
-0.261514008,
-0.3875222206,
0.0898991004,
0.3934392929,
-0.0862187967,
0.2567745447,
0.0147165284,
0.244541198,
0.1361676008,
-0.1996820867,
-0.4005722404,
-0.2078812569,
-0.3476477861,
0.0053976849,
0.2051319033,
-0.156849131,
0.2970356047,
-0.0763089433,
-0.2066244036,
-0.3902941346,
-0.9079105258,
-0.0486291237,
-0.1239648387,
0.6180295348,
0.3176226914,
-0.091625616,
-0.1352720708,
-0.2327560931,
0.1665795594,
-0.0413153023,
-0.4310829639,
0.1568388641,
0.066622749,
0.1682223082,
-0.2003855109,
-0.2270281166,
-0.1135407612,
-0.1458193362,
0.0079397857,
-0.127689749,
0.0849653408,
0.3094043136,
0.1123534516,
-0.3165152669,
-0.0872012228,
0.1330857277,
-0.3335404098,
-0.0773376524,
0.0739420801,
-0.0541622452,
-0.2302437872,
-0.0341396034,
-0.0319809318,
0.0831898302,
0.3736630976,
-0.406958878,
-0.3791770339,
-0.2713731229,
-0.0048742518,
0.23117733,
0.0683609024,
0.2319664061,
0.1899943352,
0.0391032174,
-0.2794685662,
-0.4342857897,
-0.0886204168,
-0.2365953624,
0.1095489562,
0.1482242942,
0.6309944391,
0.0345639586,
0.4764264524,
0.2947267294,
0.0489608869,
0.1398263574,
0.1815549731,
0.4972689748,
-0.3258458674,
-0.4095647633,
-0.0467091389,
-0.0461941659,
0.0505126566,
-0.1531917304,
0.1795817316,
-0.1120615155,
-0.348788321,
0.0000889525,
-0.2515637875,
-0.2498104721,
-0.2386272997,
-0.0136437304,
0.269005388,
0.3906215429,
0.1407711655,
-0.3225957155,
-0.1763849556,
-0.0081371665,
0.4007479548,
0.1035780013,
0.2502201796,
-0.1815417409,
-0.0471421517,
-0.4509261847,
0.4925593734,
0.2151453644,
0.2648921609,
-0.1177540869,
-0.162966162,
-0.3294480145,
-0.0492411032,
0.5928118825,
-0.3631772995,
0.0443487205,
0.1019542664,
-0.2081840038,
-0.3828818798,
0.0511295795,
0.0076627731,
0.3649111986,
0.0543547198,
0.3508077264,
-0.0821148306,
-0.0730154216,
-0.0869159251,
0.2223744392,
-0.1245946959,
0.0196015723,
-0.2743617892,
-0.2049435079,
-0.1433088183,
0.0314203613,
-0.1528895497,
0.165067479,
-0.1800073832,
-0.0685373768,
-0.113143228,
-0.0563925393,
0.1153810173,
0.1347035319,
0.2945026457,
-0.1000053883,
0.118739292,
0.1441813409,
0.240529418,
0.042369619,
0.4583911002,
-0.2755984962,
-0.278095752,
-0.0670713782,
0.1208043993,
-0.114640519,
0.3437378705,
-0.2040163279,
-0.0173399746,
-0.0444571488,
-0.1020427868,
-0.0212401226,
-0.1411030889,
-0.0019393526,
0.3703024685,
-0.2049248368,
-0.2889378667,
0.2329641134,
0.2390515506,
-0.2043494284,
0.4367762506,
0.3422555327,
-0.2809349895,
0.1687894464,
-0.1999589503,
0.7136856318,
0.1521682441,
-0.0298539922,
0.0877991617,
-0.1695175767,
0.4524543583,
0.312545687,
0.1559780091,
-0.0667678118,
-0.2370488644,
-0.0655061454,
-0.034747418,
0.1580223143,
-0.111061506,
-0.2036341429,
0.563148737,
-0.0592190921,
-0.035387788,
0.1755871475,
-0.117328532,
-0.2023076862,
0.0190882459,
-0.4372625351,
0.0991253406,
-0.0213231258,
0.2521659434,
0.0010583699,
-0.0767223239,
0.0552206635,
-0.3087655604,
-0.2637810111,
-0.0523917601,
-0.3992069364,
-0.0659273863,
0.2081238925,
-0.4332802594,
0.0089730322,
0.0526267737,
0.2566774487,
-0.0081805456,
-0.0373011343,
-0.0075373081,
0.0702683851,
0.4977717996,
0.2345930636,
0.0250331312,
0.2863309085,
0.0890945792,
0.1867843717,
0.0195987541,
-0.1420111954,
-0.3608395755,
-0.0186533779,
0.0038107838,
0.1180323213,
-0.1588667631,
0.0288233161,
-0.242854923,
0.0213064551,
-0.3648616672,
0.0650938898,
-0.089833878,
-0.0098388381,
0.0943214372,
-0.0165628176,
-0.2268176377,
-0.0053526862,
0.6357889175,
-0.1438152194,
-0.4367527068,
0.127720058,
-0.0055662245,
-0.2235847116,
0.0353584141,
-0.2044419199,
0.0274195895,
-0.2750840187,
0.297878325,
-0.2511253953,
-0.1071276963,
0.2691297233,
0.322792232,
0.1886075288,
0.2146120071,
-0.151667282,
-0.3945677578,
-0.1370823532,
0.2854577303,
0.0442741737,
0.0549805909,
-0.0311487652,
-0.3236707151,
-0.1444217861,
-0.2066637874,
-0.225788936,
0.0087528154,
0.3313150108,
0.0712086186,
0.1904865801,
0.2205635011,
0.1548966765,
-0.1995645314,
-0.0134113915,
0.0725869313,
-0.2038202733,
-0.10209319,
-0.0933457538,
0.0935417935,
-0.0911599323,
-0.2648987174,
-0.1546195447,
-0.0057540983,
0.0614033639,
-0.1646930128,
0.4182680845,
0.3214155436,
-0.1182498261,
-0.0536906682,
-0.0327781402,
0.0472253412,
0.3035395741,
0.1383114457,
0.0185653735,
0.0326713324,
0.0427049398,
0.1994483769,
-0.1875814348,
0.0140964836,
0.0820162818,
0.0423961766,
-0.2510477006,
0.0270900764,
0.3569348454,
-0.2952964008,
-0.021639429,
0.5987739563,
0.3562678397,
0.2437597811,
-0.1398065835,
0.1138306782,
-0.0777394623,
0.1533576101,
-0.273904711,
-0.332678169,
0.2057785541,
0.2732262015,
0.0609576702,
0.1860819906,
-0.002107203,
0.0291594714,
0.6171159148,
0.2176479399,
0.4478166997,
-0.1253158301,
0.3508078754,
0.5271655917,
0.2326288372,
0.184375748,
0.2417199612,
0.0737256259,
0.0160926357,
0.5080397725,
-0.0660086721,
0.2586890757,
0.2197470069,
0.1287701428,
-0.0355190933,
-0.4662740827,
-0.165674895,
0.0283218995,
-0.0797490105,
0.2506763041,
0.1661576927,
0.0856597796,
-0.2232842445,
-0.3345977664,
0.0114883706,
0.0248980299,
-0.1936261356,
-0.2161097825,
0.1446397007,
-0.3639175296,
-0.0571492612,
0.0134867504,
-0.120843865,
0.0703996271,
0.4529307187,
-0.2469493896,
-0.128362447,
-0.4731903672,
-0.3793773055,
0.0500450991,
0.1747642756,
-0.0140106902,
0.4047628343,
0.2587805688,
-0.2298550904,
0.221988216,
0.2503438592,
0.4856495261,
0.2468239665,
0.0276925862,
0.0133471526,
-0.1420495212,
-0.0540066808,
-0.0907230526,
0.3356419802,
-0.087083146,
0.030568976,
0.1879346967,
0.1134103388,
0.0007337667,
0.2053899765,
-0.0408544727,
0.3989400864,
-0.466181457,
0.0895343721,
-0.2369528115,
0.2848795652,
0.0150144249,
0.100014098,
-0.2490250766,
-0.118114993,
0.171214819,
0.2318111956,
0.2039028108,
-0.1064849868,
0.0748108327,
0.134854272,
0.0739090294,
0.4687883854,
-0.0930127054,
-0.0892462805,
-0.146488905,
-0.6535097361,
-0.0558623038,
0.1423009783,
0.1280673742,
-0.0635152906,
0.0375309512,
0.0490150899,
0.1846857965,
0.0434730016,
-0.1836021245,
0.1054587439,
-0.2515143752,
-0.2000014484,
-0.1759466231,
0.2301194966,
-0.2421483696,
0.0548489988,
-0.2659101486,
0.0627726167,
-0.04169254,
0.02695366,
-0.005927844,
-0.0628841817,
0.0675144494,
0.3473343253,
-0.1370733082,
0.3493894935,
0.2663171589,
0.0334930569,
-0.0034477115,
-0.278297931,
-0.1931355,
-0.2683140337,
0.0700842142,
-0.2921245098,
0.4918607473,
-0.4018592536,
-0.3019632995,
-0.1804216802,
0.2724742591,
0.1233780235,
-0.1268286705,
-0.4767788351,
0.1658579111,
-0.0587570518,
0.0838124603,
0.0044374987,
0.508733809,
0.0599868,
0.3379510641,
-0.2266304791,
-0.3412218094,
0.5358172655,
-0.4137625992,
-0.2617648244,
-0.1319275945,
-0.0639737546,
0.6073153615,
-0.4836448431,
-0.3043729663,
-0.2037672251,
0.2719913721,
-0.1200055629,
-0.1490255296,
0.1555722952,
-0.2652983069,
0.1745558083,
-0.189201951,
-0.0870611668,
0.4393820167,
-0.0882679746,
0.2773536444,
-0.1299419254
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | Well it can cause issue with anyone that updates `datasets` and re-run some code that uses filter, so I'm creating a PR | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 22 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
Well it can cause issue with anyone that updates `datasets` and re-run some code that uses filter, so I'm creating a PR | [
-0.3049952984,
0.124387905,
-0.0465586074,
0.2368963808,
0.1517290622,
-0.0666599274,
-0.0069408538,
0.3285394311,
0.173739031,
0.0293815993,
-0.2313866317,
0.3581927419,
-0.1503304243,
0.2527367473,
-0.2977858186,
-0.1378118992,
0.0444690213,
0.0321245417,
-0.0614950396,
0.1664126813,
-0.1239174008,
0.4988579154,
-0.1957764924,
0.0070791524,
0.2221656293,
0.0513209552,
0.1091238931,
0.1385661364,
0.0798623711,
-0.3392695189,
0.5981169939,
0.1064067036,
-0.0348690674,
0.4980957508,
-0.0001213098,
0.0998678803,
0.4398062527,
-0.1073977277,
-0.4579494298,
-0.3686877191,
-0.192853868,
0.131993711,
0.213113606,
0.0811630934,
-0.0715119913,
0.1143421978,
-0.3034938872,
-0.346047163,
0.2488766313,
0.198933199,
0.2267288119,
0.2136142105,
0.2657418251,
0.0665871575,
0.170178771,
0.0826521963,
0.0259718895,
-0.0490863472,
0.2940285206,
0.0142610073,
0.0436854511,
0.4806105494,
-0.3283526003,
-0.2146459818,
0.3046188354,
-0.2982529998,
0.1030711457,
-0.3957035244,
0.2999310791,
0.0781373307,
0.1462637037,
-0.2555182278,
-0.5773367286,
-0.3483258784,
-0.5121471882,
-0.2868289351,
0.4164728522,
-0.2163588405,
-0.2009970397,
0.2200829983,
-0.3342646956,
-0.0270038154,
0.0934983119,
0.0535095222,
-0.058482416,
0.2941836417,
-0.1318319142,
-0.0048627183,
0.0149830263,
-0.1329007149,
0.1924080253,
-0.2750048637,
-0.1968746781,
0.172580272,
-0.0155594852,
-0.0546129793,
0.0954228565,
0.3323277235,
0.1405711174,
0.03562852,
0.0192101784,
0.0845403224,
-0.0409640595,
0.0536776111,
0.1373272091,
0.475378871,
0.4901199639,
0.2467905581,
0.2727873623,
0.2854888439,
-0.0078852251,
-0.0013804897,
0.5281857252,
-0.1666410863,
0.0747073814,
0.1517301351,
0.1966951489,
-0.4048687816,
-0.3602137566,
0.1689628959,
-0.0770000666,
-0.12503995,
0.2207262367,
0.0534947515,
0.1005651876,
0.2142344117,
0.1320813596,
0.0338565484,
-0.1964720488,
0.0612347014,
-0.1725098789,
-0.1739456654,
0.0011613891,
-0.1112987772,
-0.0473049097,
-0.8997768164,
0.1747696698,
0.0482600704,
0.0063486509,
0.1058093458,
-0.0697736889,
0.2074347734,
0.173016876,
0.5229281187,
-0.221358642,
0.0839004442,
0.167191118,
-0.5483285189,
-0.1386866271,
0.0125279408,
-0.2415380627,
-0.1112060249,
0.2085877508,
0.1735863686,
-0.3296717405,
0.0126508549,
-0.1702991426,
0.4515429139,
0.259213686,
-0.5466867089,
-0.077957198,
-0.2133800983,
-0.4382347167,
-0.1997144818,
0.0971906483,
0.4131376743,
-0.5942544937,
-0.3216673732,
0.0216872506,
0.0319067761,
0.0399167389,
-0.122934185,
-0.0634391457,
-0.2444724739,
-0.1077684015,
-0.1384177506,
0.3606542647,
-0.319554776,
-0.7338929176,
0.1537259221,
0.2360214591,
0.5342667103,
-0.0709590018,
-0.137484327,
0.2813946903,
-0.2578287721,
0.14599213,
0.0848447308,
-0.1649033874,
-0.0079936609,
-0.3409692049,
-0.2346944362,
0.223870039,
-0.1502911896,
0.0904171094,
0.3348589838,
0.0790063888,
-0.2542200089,
0.0502921864,
0.0350502208,
0.1049241349,
0.1990929544,
0.245324105,
0.2237652242,
0.2863060832,
-0.4365181327,
-0.2801405787,
0.2506178617,
0.2141300738,
-0.0600014552,
-0.1524062455,
-0.1982274652,
-0.2678266168,
-0.0884184092,
-0.1589773148,
-0.3044101596,
0.0788738877,
0.0225765929,
0.3843640089,
-0.0385037623,
-0.1145257875,
0.6218647957,
0.3084534407,
0.0944801942,
-0.5049408078,
0.2296410799,
-0.0548518002,
0.0051684044,
-0.0591857396,
0.0377821624,
0.293959558,
-0.0685251504,
-0.2895758152,
0.4078748822,
0.039259091,
0.0841677487,
-0.0276332423,
0.1937459111,
0.1773461401,
0.2105838656,
0.0639336035,
0.274181962,
-0.0148834847,
0.2087214887,
-0.1954571605,
0.5572487116,
0.0293753594,
0.3240503669,
0.1208346188,
0.1487564147,
0.3702496588,
0.1305632442,
-0.2189948112,
-0.137078464,
0.3204488754,
-0.4587231874,
0.0626678169,
0.0123390742,
-0.1297933459,
0.3776257634,
0.0716822147,
0.0755120367,
-0.033451993,
0.3119211197,
-0.1593657285,
-0.0421907902,
0.1813622117,
0.4024862647,
0.4014505744,
0.2088319212,
0.0507172123,
0.0758816898,
-0.1615393907,
-0.0248772688,
0.2082491219,
0.1293460727,
-0.169640258,
0.153575331,
0.3034209907,
0.2732039988,
-0.3061975837,
0.093393065,
-0.2356238663,
0.1195331067,
-0.2705812752,
0.3616371453,
-0.2810100913,
-0.2280871719,
0.0761421546,
-0.167832166,
-0.261514008,
-0.3875222206,
0.0898991004,
0.3934392929,
-0.0862187967,
0.2567745447,
0.0147165284,
0.244541198,
0.1361676008,
-0.1996820867,
-0.4005722404,
-0.2078812569,
-0.3476477861,
0.0053976849,
0.2051319033,
-0.156849131,
0.2970356047,
-0.0763089433,
-0.2066244036,
-0.3902941346,
-0.9079105258,
-0.0486291237,
-0.1239648387,
0.6180295348,
0.3176226914,
-0.091625616,
-0.1352720708,
-0.2327560931,
0.1665795594,
-0.0413153023,
-0.4310829639,
0.1568388641,
0.066622749,
0.1682223082,
-0.2003855109,
-0.2270281166,
-0.1135407612,
-0.1458193362,
0.0079397857,
-0.127689749,
0.0849653408,
0.3094043136,
0.1123534516,
-0.3165152669,
-0.0872012228,
0.1330857277,
-0.3335404098,
-0.0773376524,
0.0739420801,
-0.0541622452,
-0.2302437872,
-0.0341396034,
-0.0319809318,
0.0831898302,
0.3736630976,
-0.406958878,
-0.3791770339,
-0.2713731229,
-0.0048742518,
0.23117733,
0.0683609024,
0.2319664061,
0.1899943352,
0.0391032174,
-0.2794685662,
-0.4342857897,
-0.0886204168,
-0.2365953624,
0.1095489562,
0.1482242942,
0.6309944391,
0.0345639586,
0.4764264524,
0.2947267294,
0.0489608869,
0.1398263574,
0.1815549731,
0.4972689748,
-0.3258458674,
-0.4095647633,
-0.0467091389,
-0.0461941659,
0.0505126566,
-0.1531917304,
0.1795817316,
-0.1120615155,
-0.348788321,
0.0000889525,
-0.2515637875,
-0.2498104721,
-0.2386272997,
-0.0136437304,
0.269005388,
0.3906215429,
0.1407711655,
-0.3225957155,
-0.1763849556,
-0.0081371665,
0.4007479548,
0.1035780013,
0.2502201796,
-0.1815417409,
-0.0471421517,
-0.4509261847,
0.4925593734,
0.2151453644,
0.2648921609,
-0.1177540869,
-0.162966162,
-0.3294480145,
-0.0492411032,
0.5928118825,
-0.3631772995,
0.0443487205,
0.1019542664,
-0.2081840038,
-0.3828818798,
0.0511295795,
0.0076627731,
0.3649111986,
0.0543547198,
0.3508077264,
-0.0821148306,
-0.0730154216,
-0.0869159251,
0.2223744392,
-0.1245946959,
0.0196015723,
-0.2743617892,
-0.2049435079,
-0.1433088183,
0.0314203613,
-0.1528895497,
0.165067479,
-0.1800073832,
-0.0685373768,
-0.113143228,
-0.0563925393,
0.1153810173,
0.1347035319,
0.2945026457,
-0.1000053883,
0.118739292,
0.1441813409,
0.240529418,
0.042369619,
0.4583911002,
-0.2755984962,
-0.278095752,
-0.0670713782,
0.1208043993,
-0.114640519,
0.3437378705,
-0.2040163279,
-0.0173399746,
-0.0444571488,
-0.1020427868,
-0.0212401226,
-0.1411030889,
-0.0019393526,
0.3703024685,
-0.2049248368,
-0.2889378667,
0.2329641134,
0.2390515506,
-0.2043494284,
0.4367762506,
0.3422555327,
-0.2809349895,
0.1687894464,
-0.1999589503,
0.7136856318,
0.1521682441,
-0.0298539922,
0.0877991617,
-0.1695175767,
0.4524543583,
0.312545687,
0.1559780091,
-0.0667678118,
-0.2370488644,
-0.0655061454,
-0.034747418,
0.1580223143,
-0.111061506,
-0.2036341429,
0.563148737,
-0.0592190921,
-0.035387788,
0.1755871475,
-0.117328532,
-0.2023076862,
0.0190882459,
-0.4372625351,
0.0991253406,
-0.0213231258,
0.2521659434,
0.0010583699,
-0.0767223239,
0.0552206635,
-0.3087655604,
-0.2637810111,
-0.0523917601,
-0.3992069364,
-0.0659273863,
0.2081238925,
-0.4332802594,
0.0089730322,
0.0526267737,
0.2566774487,
-0.0081805456,
-0.0373011343,
-0.0075373081,
0.0702683851,
0.4977717996,
0.2345930636,
0.0250331312,
0.2863309085,
0.0890945792,
0.1867843717,
0.0195987541,
-0.1420111954,
-0.3608395755,
-0.0186533779,
0.0038107838,
0.1180323213,
-0.1588667631,
0.0288233161,
-0.242854923,
0.0213064551,
-0.3648616672,
0.0650938898,
-0.089833878,
-0.0098388381,
0.0943214372,
-0.0165628176,
-0.2268176377,
-0.0053526862,
0.6357889175,
-0.1438152194,
-0.4367527068,
0.127720058,
-0.0055662245,
-0.2235847116,
0.0353584141,
-0.2044419199,
0.0274195895,
-0.2750840187,
0.297878325,
-0.2511253953,
-0.1071276963,
0.2691297233,
0.322792232,
0.1886075288,
0.2146120071,
-0.151667282,
-0.3945677578,
-0.1370823532,
0.2854577303,
0.0442741737,
0.0549805909,
-0.0311487652,
-0.3236707151,
-0.1444217861,
-0.2066637874,
-0.225788936,
0.0087528154,
0.3313150108,
0.0712086186,
0.1904865801,
0.2205635011,
0.1548966765,
-0.1995645314,
-0.0134113915,
0.0725869313,
-0.2038202733,
-0.10209319,
-0.0933457538,
0.0935417935,
-0.0911599323,
-0.2648987174,
-0.1546195447,
-0.0057540983,
0.0614033639,
-0.1646930128,
0.4182680845,
0.3214155436,
-0.1182498261,
-0.0536906682,
-0.0327781402,
0.0472253412,
0.3035395741,
0.1383114457,
0.0185653735,
0.0326713324,
0.0427049398,
0.1994483769,
-0.1875814348,
0.0140964836,
0.0820162818,
0.0423961766,
-0.2510477006,
0.0270900764,
0.3569348454,
-0.2952964008,
-0.021639429,
0.5987739563,
0.3562678397,
0.2437597811,
-0.1398065835,
0.1138306782,
-0.0777394623,
0.1533576101,
-0.273904711,
-0.332678169,
0.2057785541,
0.2732262015,
0.0609576702,
0.1860819906,
-0.002107203,
0.0291594714,
0.6171159148,
0.2176479399,
0.4478166997,
-0.1253158301,
0.3508078754,
0.5271655917,
0.2326288372,
0.184375748,
0.2417199612,
0.0737256259,
0.0160926357,
0.5080397725,
-0.0660086721,
0.2586890757,
0.2197470069,
0.1287701428,
-0.0355190933,
-0.4662740827,
-0.165674895,
0.0283218995,
-0.0797490105,
0.2506763041,
0.1661576927,
0.0856597796,
-0.2232842445,
-0.3345977664,
0.0114883706,
0.0248980299,
-0.1936261356,
-0.2161097825,
0.1446397007,
-0.3639175296,
-0.0571492612,
0.0134867504,
-0.120843865,
0.0703996271,
0.4529307187,
-0.2469493896,
-0.128362447,
-0.4731903672,
-0.3793773055,
0.0500450991,
0.1747642756,
-0.0140106902,
0.4047628343,
0.2587805688,
-0.2298550904,
0.221988216,
0.2503438592,
0.4856495261,
0.2468239665,
0.0276925862,
0.0133471526,
-0.1420495212,
-0.0540066808,
-0.0907230526,
0.3356419802,
-0.087083146,
0.030568976,
0.1879346967,
0.1134103388,
0.0007337667,
0.2053899765,
-0.0408544727,
0.3989400864,
-0.466181457,
0.0895343721,
-0.2369528115,
0.2848795652,
0.0150144249,
0.100014098,
-0.2490250766,
-0.118114993,
0.171214819,
0.2318111956,
0.2039028108,
-0.1064849868,
0.0748108327,
0.134854272,
0.0739090294,
0.4687883854,
-0.0930127054,
-0.0892462805,
-0.146488905,
-0.6535097361,
-0.0558623038,
0.1423009783,
0.1280673742,
-0.0635152906,
0.0375309512,
0.0490150899,
0.1846857965,
0.0434730016,
-0.1836021245,
0.1054587439,
-0.2515143752,
-0.2000014484,
-0.1759466231,
0.2301194966,
-0.2421483696,
0.0548489988,
-0.2659101486,
0.0627726167,
-0.04169254,
0.02695366,
-0.005927844,
-0.0628841817,
0.0675144494,
0.3473343253,
-0.1370733082,
0.3493894935,
0.2663171589,
0.0334930569,
-0.0034477115,
-0.278297931,
-0.1931355,
-0.2683140337,
0.0700842142,
-0.2921245098,
0.4918607473,
-0.4018592536,
-0.3019632995,
-0.1804216802,
0.2724742591,
0.1233780235,
-0.1268286705,
-0.4767788351,
0.1658579111,
-0.0587570518,
0.0838124603,
0.0044374987,
0.508733809,
0.0599868,
0.3379510641,
-0.2266304791,
-0.3412218094,
0.5358172655,
-0.4137625992,
-0.2617648244,
-0.1319275945,
-0.0639737546,
0.6073153615,
-0.4836448431,
-0.3043729663,
-0.2037672251,
0.2719913721,
-0.1200055629,
-0.1490255296,
0.1555722952,
-0.2652983069,
0.1745558083,
-0.189201951,
-0.0870611668,
0.4393820167,
-0.0882679746,
0.2773536444,
-0.1299419254
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | I just merged a fix, let me know if you're still having this kind of issues :)
We'll do a release soon to make this fix available | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 27 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
I just merged a fix, let me know if you're still having this kind of issues :)
We'll do a release soon to make this fix available | [
-0.3049952984,
0.124387905,
-0.0465586074,
0.2368963808,
0.1517290622,
-0.0666599274,
-0.0069408538,
0.3285394311,
0.173739031,
0.0293815993,
-0.2313866317,
0.3581927419,
-0.1503304243,
0.2527367473,
-0.2977858186,
-0.1378118992,
0.0444690213,
0.0321245417,
-0.0614950396,
0.1664126813,
-0.1239174008,
0.4988579154,
-0.1957764924,
0.0070791524,
0.2221656293,
0.0513209552,
0.1091238931,
0.1385661364,
0.0798623711,
-0.3392695189,
0.5981169939,
0.1064067036,
-0.0348690674,
0.4980957508,
-0.0001213098,
0.0998678803,
0.4398062527,
-0.1073977277,
-0.4579494298,
-0.3686877191,
-0.192853868,
0.131993711,
0.213113606,
0.0811630934,
-0.0715119913,
0.1143421978,
-0.3034938872,
-0.346047163,
0.2488766313,
0.198933199,
0.2267288119,
0.2136142105,
0.2657418251,
0.0665871575,
0.170178771,
0.0826521963,
0.0259718895,
-0.0490863472,
0.2940285206,
0.0142610073,
0.0436854511,
0.4806105494,
-0.3283526003,
-0.2146459818,
0.3046188354,
-0.2982529998,
0.1030711457,
-0.3957035244,
0.2999310791,
0.0781373307,
0.1462637037,
-0.2555182278,
-0.5773367286,
-0.3483258784,
-0.5121471882,
-0.2868289351,
0.4164728522,
-0.2163588405,
-0.2009970397,
0.2200829983,
-0.3342646956,
-0.0270038154,
0.0934983119,
0.0535095222,
-0.058482416,
0.2941836417,
-0.1318319142,
-0.0048627183,
0.0149830263,
-0.1329007149,
0.1924080253,
-0.2750048637,
-0.1968746781,
0.172580272,
-0.0155594852,
-0.0546129793,
0.0954228565,
0.3323277235,
0.1405711174,
0.03562852,
0.0192101784,
0.0845403224,
-0.0409640595,
0.0536776111,
0.1373272091,
0.475378871,
0.4901199639,
0.2467905581,
0.2727873623,
0.2854888439,
-0.0078852251,
-0.0013804897,
0.5281857252,
-0.1666410863,
0.0747073814,
0.1517301351,
0.1966951489,
-0.4048687816,
-0.3602137566,
0.1689628959,
-0.0770000666,
-0.12503995,
0.2207262367,
0.0534947515,
0.1005651876,
0.2142344117,
0.1320813596,
0.0338565484,
-0.1964720488,
0.0612347014,
-0.1725098789,
-0.1739456654,
0.0011613891,
-0.1112987772,
-0.0473049097,
-0.8997768164,
0.1747696698,
0.0482600704,
0.0063486509,
0.1058093458,
-0.0697736889,
0.2074347734,
0.173016876,
0.5229281187,
-0.221358642,
0.0839004442,
0.167191118,
-0.5483285189,
-0.1386866271,
0.0125279408,
-0.2415380627,
-0.1112060249,
0.2085877508,
0.1735863686,
-0.3296717405,
0.0126508549,
-0.1702991426,
0.4515429139,
0.259213686,
-0.5466867089,
-0.077957198,
-0.2133800983,
-0.4382347167,
-0.1997144818,
0.0971906483,
0.4131376743,
-0.5942544937,
-0.3216673732,
0.0216872506,
0.0319067761,
0.0399167389,
-0.122934185,
-0.0634391457,
-0.2444724739,
-0.1077684015,
-0.1384177506,
0.3606542647,
-0.319554776,
-0.7338929176,
0.1537259221,
0.2360214591,
0.5342667103,
-0.0709590018,
-0.137484327,
0.2813946903,
-0.2578287721,
0.14599213,
0.0848447308,
-0.1649033874,
-0.0079936609,
-0.3409692049,
-0.2346944362,
0.223870039,
-0.1502911896,
0.0904171094,
0.3348589838,
0.0790063888,
-0.2542200089,
0.0502921864,
0.0350502208,
0.1049241349,
0.1990929544,
0.245324105,
0.2237652242,
0.2863060832,
-0.4365181327,
-0.2801405787,
0.2506178617,
0.2141300738,
-0.0600014552,
-0.1524062455,
-0.1982274652,
-0.2678266168,
-0.0884184092,
-0.1589773148,
-0.3044101596,
0.0788738877,
0.0225765929,
0.3843640089,
-0.0385037623,
-0.1145257875,
0.6218647957,
0.3084534407,
0.0944801942,
-0.5049408078,
0.2296410799,
-0.0548518002,
0.0051684044,
-0.0591857396,
0.0377821624,
0.293959558,
-0.0685251504,
-0.2895758152,
0.4078748822,
0.039259091,
0.0841677487,
-0.0276332423,
0.1937459111,
0.1773461401,
0.2105838656,
0.0639336035,
0.274181962,
-0.0148834847,
0.2087214887,
-0.1954571605,
0.5572487116,
0.0293753594,
0.3240503669,
0.1208346188,
0.1487564147,
0.3702496588,
0.1305632442,
-0.2189948112,
-0.137078464,
0.3204488754,
-0.4587231874,
0.0626678169,
0.0123390742,
-0.1297933459,
0.3776257634,
0.0716822147,
0.0755120367,
-0.033451993,
0.3119211197,
-0.1593657285,
-0.0421907902,
0.1813622117,
0.4024862647,
0.4014505744,
0.2088319212,
0.0507172123,
0.0758816898,
-0.1615393907,
-0.0248772688,
0.2082491219,
0.1293460727,
-0.169640258,
0.153575331,
0.3034209907,
0.2732039988,
-0.3061975837,
0.093393065,
-0.2356238663,
0.1195331067,
-0.2705812752,
0.3616371453,
-0.2810100913,
-0.2280871719,
0.0761421546,
-0.167832166,
-0.261514008,
-0.3875222206,
0.0898991004,
0.3934392929,
-0.0862187967,
0.2567745447,
0.0147165284,
0.244541198,
0.1361676008,
-0.1996820867,
-0.4005722404,
-0.2078812569,
-0.3476477861,
0.0053976849,
0.2051319033,
-0.156849131,
0.2970356047,
-0.0763089433,
-0.2066244036,
-0.3902941346,
-0.9079105258,
-0.0486291237,
-0.1239648387,
0.6180295348,
0.3176226914,
-0.091625616,
-0.1352720708,
-0.2327560931,
0.1665795594,
-0.0413153023,
-0.4310829639,
0.1568388641,
0.066622749,
0.1682223082,
-0.2003855109,
-0.2270281166,
-0.1135407612,
-0.1458193362,
0.0079397857,
-0.127689749,
0.0849653408,
0.3094043136,
0.1123534516,
-0.3165152669,
-0.0872012228,
0.1330857277,
-0.3335404098,
-0.0773376524,
0.0739420801,
-0.0541622452,
-0.2302437872,
-0.0341396034,
-0.0319809318,
0.0831898302,
0.3736630976,
-0.406958878,
-0.3791770339,
-0.2713731229,
-0.0048742518,
0.23117733,
0.0683609024,
0.2319664061,
0.1899943352,
0.0391032174,
-0.2794685662,
-0.4342857897,
-0.0886204168,
-0.2365953624,
0.1095489562,
0.1482242942,
0.6309944391,
0.0345639586,
0.4764264524,
0.2947267294,
0.0489608869,
0.1398263574,
0.1815549731,
0.4972689748,
-0.3258458674,
-0.4095647633,
-0.0467091389,
-0.0461941659,
0.0505126566,
-0.1531917304,
0.1795817316,
-0.1120615155,
-0.348788321,
0.0000889525,
-0.2515637875,
-0.2498104721,
-0.2386272997,
-0.0136437304,
0.269005388,
0.3906215429,
0.1407711655,
-0.3225957155,
-0.1763849556,
-0.0081371665,
0.4007479548,
0.1035780013,
0.2502201796,
-0.1815417409,
-0.0471421517,
-0.4509261847,
0.4925593734,
0.2151453644,
0.2648921609,
-0.1177540869,
-0.162966162,
-0.3294480145,
-0.0492411032,
0.5928118825,
-0.3631772995,
0.0443487205,
0.1019542664,
-0.2081840038,
-0.3828818798,
0.0511295795,
0.0076627731,
0.3649111986,
0.0543547198,
0.3508077264,
-0.0821148306,
-0.0730154216,
-0.0869159251,
0.2223744392,
-0.1245946959,
0.0196015723,
-0.2743617892,
-0.2049435079,
-0.1433088183,
0.0314203613,
-0.1528895497,
0.165067479,
-0.1800073832,
-0.0685373768,
-0.113143228,
-0.0563925393,
0.1153810173,
0.1347035319,
0.2945026457,
-0.1000053883,
0.118739292,
0.1441813409,
0.240529418,
0.042369619,
0.4583911002,
-0.2755984962,
-0.278095752,
-0.0670713782,
0.1208043993,
-0.114640519,
0.3437378705,
-0.2040163279,
-0.0173399746,
-0.0444571488,
-0.1020427868,
-0.0212401226,
-0.1411030889,
-0.0019393526,
0.3703024685,
-0.2049248368,
-0.2889378667,
0.2329641134,
0.2390515506,
-0.2043494284,
0.4367762506,
0.3422555327,
-0.2809349895,
0.1687894464,
-0.1999589503,
0.7136856318,
0.1521682441,
-0.0298539922,
0.0877991617,
-0.1695175767,
0.4524543583,
0.312545687,
0.1559780091,
-0.0667678118,
-0.2370488644,
-0.0655061454,
-0.034747418,
0.1580223143,
-0.111061506,
-0.2036341429,
0.563148737,
-0.0592190921,
-0.035387788,
0.1755871475,
-0.117328532,
-0.2023076862,
0.0190882459,
-0.4372625351,
0.0991253406,
-0.0213231258,
0.2521659434,
0.0010583699,
-0.0767223239,
0.0552206635,
-0.3087655604,
-0.2637810111,
-0.0523917601,
-0.3992069364,
-0.0659273863,
0.2081238925,
-0.4332802594,
0.0089730322,
0.0526267737,
0.2566774487,
-0.0081805456,
-0.0373011343,
-0.0075373081,
0.0702683851,
0.4977717996,
0.2345930636,
0.0250331312,
0.2863309085,
0.0890945792,
0.1867843717,
0.0195987541,
-0.1420111954,
-0.3608395755,
-0.0186533779,
0.0038107838,
0.1180323213,
-0.1588667631,
0.0288233161,
-0.242854923,
0.0213064551,
-0.3648616672,
0.0650938898,
-0.089833878,
-0.0098388381,
0.0943214372,
-0.0165628176,
-0.2268176377,
-0.0053526862,
0.6357889175,
-0.1438152194,
-0.4367527068,
0.127720058,
-0.0055662245,
-0.2235847116,
0.0353584141,
-0.2044419199,
0.0274195895,
-0.2750840187,
0.297878325,
-0.2511253953,
-0.1071276963,
0.2691297233,
0.322792232,
0.1886075288,
0.2146120071,
-0.151667282,
-0.3945677578,
-0.1370823532,
0.2854577303,
0.0442741737,
0.0549805909,
-0.0311487652,
-0.3236707151,
-0.1444217861,
-0.2066637874,
-0.225788936,
0.0087528154,
0.3313150108,
0.0712086186,
0.1904865801,
0.2205635011,
0.1548966765,
-0.1995645314,
-0.0134113915,
0.0725869313,
-0.2038202733,
-0.10209319,
-0.0933457538,
0.0935417935,
-0.0911599323,
-0.2648987174,
-0.1546195447,
-0.0057540983,
0.0614033639,
-0.1646930128,
0.4182680845,
0.3214155436,
-0.1182498261,
-0.0536906682,
-0.0327781402,
0.0472253412,
0.3035395741,
0.1383114457,
0.0185653735,
0.0326713324,
0.0427049398,
0.1994483769,
-0.1875814348,
0.0140964836,
0.0820162818,
0.0423961766,
-0.2510477006,
0.0270900764,
0.3569348454,
-0.2952964008,
-0.021639429,
0.5987739563,
0.3562678397,
0.2437597811,
-0.1398065835,
0.1138306782,
-0.0777394623,
0.1533576101,
-0.273904711,
-0.332678169,
0.2057785541,
0.2732262015,
0.0609576702,
0.1860819906,
-0.002107203,
0.0291594714,
0.6171159148,
0.2176479399,
0.4478166997,
-0.1253158301,
0.3508078754,
0.5271655917,
0.2326288372,
0.184375748,
0.2417199612,
0.0737256259,
0.0160926357,
0.5080397725,
-0.0660086721,
0.2586890757,
0.2197470069,
0.1287701428,
-0.0355190933,
-0.4662740827,
-0.165674895,
0.0283218995,
-0.0797490105,
0.2506763041,
0.1661576927,
0.0856597796,
-0.2232842445,
-0.3345977664,
0.0114883706,
0.0248980299,
-0.1936261356,
-0.2161097825,
0.1446397007,
-0.3639175296,
-0.0571492612,
0.0134867504,
-0.120843865,
0.0703996271,
0.4529307187,
-0.2469493896,
-0.128362447,
-0.4731903672,
-0.3793773055,
0.0500450991,
0.1747642756,
-0.0140106902,
0.4047628343,
0.2587805688,
-0.2298550904,
0.221988216,
0.2503438592,
0.4856495261,
0.2468239665,
0.0276925862,
0.0133471526,
-0.1420495212,
-0.0540066808,
-0.0907230526,
0.3356419802,
-0.087083146,
0.030568976,
0.1879346967,
0.1134103388,
0.0007337667,
0.2053899765,
-0.0408544727,
0.3989400864,
-0.466181457,
0.0895343721,
-0.2369528115,
0.2848795652,
0.0150144249,
0.100014098,
-0.2490250766,
-0.118114993,
0.171214819,
0.2318111956,
0.2039028108,
-0.1064849868,
0.0748108327,
0.134854272,
0.0739090294,
0.4687883854,
-0.0930127054,
-0.0892462805,
-0.146488905,
-0.6535097361,
-0.0558623038,
0.1423009783,
0.1280673742,
-0.0635152906,
0.0375309512,
0.0490150899,
0.1846857965,
0.0434730016,
-0.1836021245,
0.1054587439,
-0.2515143752,
-0.2000014484,
-0.1759466231,
0.2301194966,
-0.2421483696,
0.0548489988,
-0.2659101486,
0.0627726167,
-0.04169254,
0.02695366,
-0.005927844,
-0.0628841817,
0.0675144494,
0.3473343253,
-0.1370733082,
0.3493894935,
0.2663171589,
0.0334930569,
-0.0034477115,
-0.278297931,
-0.1931355,
-0.2683140337,
0.0700842142,
-0.2921245098,
0.4918607473,
-0.4018592536,
-0.3019632995,
-0.1804216802,
0.2724742591,
0.1233780235,
-0.1268286705,
-0.4767788351,
0.1658579111,
-0.0587570518,
0.0838124603,
0.0044374987,
0.508733809,
0.0599868,
0.3379510641,
-0.2266304791,
-0.3412218094,
0.5358172655,
-0.4137625992,
-0.2617648244,
-0.1319275945,
-0.0639737546,
0.6073153615,
-0.4836448431,
-0.3043729663,
-0.2037672251,
0.2719913721,
-0.1200055629,
-0.1490255296,
0.1555722952,
-0.2652983069,
0.1745558083,
-0.189201951,
-0.0870611668,
0.4393820167,
-0.0882679746,
0.2773536444,
-0.1299419254
] |
https://github.com/huggingface/datasets/issues/2937 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied | Hi @daqieq, thanks for reporting.
Unfortunately, I was not able to reproduce this bug:
```ipython
In [1]: from datasets import load_dataset
...: ds = load_dataset('wiki_bio')
Downloading: 7.58kB [00:00, 26.3kB/s]
Downloading: 2.71kB [00:00, ?B/s]
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\
1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Downloading: 334MB [01:17, 4.32MB/s]
Dataset wiki_bio downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9. Subsequent calls will reuse thi
s data.
```
This kind of error messages usually happen because:
- Your running Python script hasn't write access to that directory
- You have another program (the File Explorer?) already browsing inside that directory | ## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
| 109 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
Hi @daqieq, thanks for reporting.
Unfortunately, I was not able to reproduce this bug:
```ipython
In [1]: from datasets import load_dataset
...: ds = load_dataset('wiki_bio')
Downloading: 7.58kB [00:00, 26.3kB/s]
Downloading: 2.71kB [00:00, ?B/s]
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\
1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Downloading: 334MB [01:17, 4.32MB/s]
Dataset wiki_bio downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9. Subsequent calls will reuse thi
s data.
```
This kind of error messages usually happen because:
- Your running Python script hasn't write access to that directory
- You have another program (the File Explorer?) already browsing inside that directory | [
-0.2289306819,
0.3834536374,
0.0403455123,
0.2550398707,
-0.0121114748,
0.2622570992,
0.5036686659,
0.1329528391,
0.3442815542,
0.1357177198,
-0.1089740172,
0.0772838667,
0.073150292,
-0.0056993067,
-0.1256227195,
0.0789284036,
0.0364450403,
-0.0053883456,
0.2149499953,
0.1039546505,
-0.4238831997,
0.1072951853,
-0.1728550494,
0.18611525,
0.0260949396,
-0.1363422424,
0.1212602928,
0.3607298136,
-0.0307891499,
-0.3922067285,
0.3530230522,
0.0634533614,
0.4639181495,
0.2582460642,
-0.000119246,
-0.0137066245,
0.2306839526,
0.1244995147,
-0.0737274811,
0.0871000364,
-0.1839850396,
-0.1409677565,
0.1652295887,
-0.0976865813,
0.1767437905,
0.363491416,
-0.1021371782,
-0.2009293735,
-0.0130414814,
0.3790340126,
0.1573003381,
-0.038185209,
-0.1186793,
-0.0752040446,
0.4933359325,
-0.1592981517,
-0.133180216,
0.2798379064,
0.079024978,
-0.1145702899,
-0.0989916921,
0.1995730847,
-0.1621492505,
0.1471575797,
0.0186585188,
0.0311296061,
0.2162310183,
-0.4581093788,
0.3521410227,
0.1512576044,
0.9656503797,
-0.1955736428,
-0.1914042979,
-0.0887491331,
0.0133039914,
-0.0330024846,
0.4326033294,
0.4286228716,
-0.3245688677,
0.252370894,
0.0659692809,
0.0835652128,
-0.0825508237,
-0.001908889,
0.0712851733,
0.1486521959,
-0.0504702814,
0.1195564419,
-0.114730984,
-0.0834005624,
0.3863353729,
-0.2138272524,
-0.2546019256,
0.1916670203,
-0.3394364715,
0.2898703218,
0.0534536913,
0.7778065205,
0.1578776687,
0.3155295551,
0.1250243187,
-0.0540523119,
0.213623777,
0.0651902109,
0.0085930564,
0.3214896321,
-0.1122386605,
-0.0169231072,
0.427105844,
0.117442362,
-0.0816166177,
-0.0089903977,
-0.0200454462,
-0.4294739366,
0.3538796902,
0.105407238,
0.4081186354,
-0.2856416702,
-0.1217011064,
-0.0002952218,
0.1581319273,
-0.0239709187,
0.05888303,
0.5011534691,
-0.2717711926,
0.0426834486,
0.0682515353,
0.1794450283,
0.0186105669,
0.0977605879,
-0.0877998918,
-0.089002721,
-0.2667179406,
-0.0514381379,
0.4086471796,
-0.3225749135,
0.0955643952,
0.2566770911,
0.0270482227,
-0.1792940795,
0.191831857,
-0.0414975584,
-0.0328566693,
0.357686609,
0.397295773,
0.3376339674,
0.174932465,
-0.2122965753,
-0.0349954516,
0.1863115728,
-0.4872899652,
-0.4025040567,
-0.0336631201,
0.1213276833,
-0.0833241865,
0.0632049516,
-0.1980365515,
-0.0482575409,
0.3823127449,
-0.3008549809,
-0.0618357137,
-0.0137259383,
-0.2206201851,
-0.5042763352,
0.0407075882,
0.4012889862,
-0.359698832,
0.130366981,
-0.0915538967,
-0.2640864253,
0.1504323184,
0.0056377389,
0.0056344233,
0.3616816998,
-0.2812202573,
0.0156069994,
0.2774583995,
-0.3938951194,
-1.0015972853,
-0.0210030675,
0.073099874,
0.1660425365,
0.2444062084,
0.1191370711,
0.3659378886,
-0.0303457454,
0.170476988,
0.3187129498,
0.1300749481,
0.1119743437,
-0.0629963279,
-0.2038551867,
0.2796608806,
0.1339262724,
0.0883390605,
0.3009034991,
0.3125997186,
-0.0569340698,
0.2510955632,
-0.1872614026,
0.1168041155,
0.1925157607,
0.0114951627,
-0.0351364501,
0.1375143826,
-0.1277376264,
-0.4204092622,
0.3514482975,
-0.0081170052,
0.0851671621,
0.0759793371,
-0.2027432919,
-0.3184638917,
0.0913410336,
-0.5447551012,
-0.2889967859,
0.0851063654,
0.2938991785,
0.2124252915,
0.0236819461,
0.1891639531,
0.3374144137,
-0.2082268894,
0.1271958947,
-0.1811407059,
0.0386060849,
-0.1883372813,
-0.136449039,
-0.2122478187,
0.0469156131,
0.2001281381,
0.252748549,
-0.2134329677,
0.1961009949,
0.1512132138,
0.0374988988,
-0.3785575032,
-0.0595559031,
-0.0223774984,
0.1217298508,
0.1568485498,
0.1381784081,
0.148323521,
-0.0443944484,
-0.192219004,
0.1377543956,
-0.1596345305,
0.1437312663,
-0.3266508281,
0.2430362999,
0.2447061986,
0.0900503322,
0.0856965557,
0.0344528556,
0.3054703474,
0.0241180807,
0.0745957047,
-0.2858041525,
0.1012612879,
-0.0778077692,
0.0593028516,
0.0225473121,
0.0812819451,
0.2497535348,
-0.1746014953,
0.0168862492,
0.2869938016,
0.3496789932,
0.5377132893,
-0.0409863256,
0.0515503176,
0.0667969286,
0.0479119457,
0.0896691382,
0.1192514747,
0.0857711285,
-0.0702272207,
0.263449043,
0.1284335256,
0.2241659015,
-0.0647976249,
-0.113860786,
-0.1075413004,
0.4194296896,
-0.4875138998,
-0.0843875632,
0.1000551581,
0.0748399794,
0.181201458,
-0.2428469807,
-0.0887820274,
-0.1460986584,
-0.2430456877,
0.3116367459,
0.0940705985,
0.0835374966,
-0.5119578242,
0.164441511,
0.0075376779,
-0.2018062174,
-0.1137571037,
0.1238791943,
-0.165833801,
-0.0141073428,
0.1862449348,
-0.1799400002,
0.1873877198,
-0.2951590419,
0.2437519729,
-0.3901757598,
-0.1954322159,
0.0151099861,
0.0578858294,
0.4098418951,
0.1254312247,
0.1551068723,
0.1864108443,
-0.3417646289,
0.0566029251,
-0.1075194478,
-0.151061058,
0.2333707958,
-0.0550265051,
0.093855381,
0.0341967791,
-0.2493750155,
-0.5408245921,
-0.2501788139,
-0.0095761176,
0.3858901262,
0.0983012617,
-0.002851326,
-0.1126532406,
0.0033441521,
0.2670296431,
0.3937679231,
-0.2108281106,
-0.2492018938,
0.2102497518,
-0.2092679441,
-0.3346995711,
0.0819490775,
-0.1042307615,
0.044570744,
0.2523833811,
-0.478848815,
-0.0906345695,
-0.3600654602,
0.4096083045,
-0.2326152027,
0.0938281342,
0.3463047743,
0.0892929062,
0.1463987231,
-0.0417489335,
-0.2757164538,
-0.0651356578,
-0.2946413755,
-0.0682324842,
0.3381983042,
0.4274493754,
-0.0575701892,
0.3770319819,
0.3002277017,
0.3604495525,
0.3344712257,
0.0458412766,
0.3711137176,
0.0542610958,
-0.2594741583,
0.108775273,
-0.1943463087,
-0.1401606798,
0.3007433116,
0.0889824033,
-0.1952639222,
-0.0525318235,
-0.3804526627,
-0.2807891965,
-0.2852860689,
-0.0992423743,
-0.2463322729,
0.2537563443,
0.1191408932,
0.1100430414,
-0.4462447762,
-0.3691141903,
0.0288439281,
0.5546327233,
-0.3098393977,
0.1115754396,
-0.3508036733,
0.1366984397,
-0.6549721956,
0.2522454858,
0.0340252779,
0.4958057106,
-0.1741241962,
0.126697138,
-0.0015079491,
-0.1074296087,
0.5570680499,
-0.6522980928,
0.46183002,
0.0581228882,
0.1157311201,
0.0101969615,
-0.2243449986,
-0.0922561362,
0.2416802496,
0.1369417459,
0.214554742,
0.1639220566,
0.0440417156,
0.0762093514,
0.1665932685,
-0.2001325935,
-0.2790575624,
-0.2271350026,
-0.3418878019,
-0.3903852403,
0.1280059814,
0.0421994478,
0.1854701936,
-0.1517434716,
0.1171617955,
-0.4046883583,
0.2369778305,
0.1301798522,
0.1602822542,
0.1877918988,
0.0645755827,
0.2181591392,
-0.0480449386,
0.0753487349,
-0.1291564405,
0.5240868926,
-0.2804766893,
-0.3283787966,
-0.0524906367,
-0.1999856532,
-0.1171173379,
0.1122425422,
-0.3265575767,
-0.0500915684,
-0.1384818554,
-0.1327375472,
-0.3143308461,
0.1170744598,
0.0426039472,
-0.1354340613,
-0.3776836395,
-0.3201940656,
0.3641436398,
0.2117006332,
-0.4467276931,
0.3404746354,
0.1198480427,
-0.4280629754,
0.182469219,
0.0517599434,
0.7466568947,
0.0798900202,
0.278021127,
0.09727709,
-0.1122954637,
0.2001173794,
0.1161782891,
0.0565572493,
-0.3728863001,
-0.4541018009,
-0.0988717899,
-0.2205426991,
-0.1345372349,
-0.0249410085,
-0.2337932885,
0.2817450762,
-0.1129787266,
0.3188051879,
0.2743099928,
0.04803738,
-0.3741956353,
-0.3764995933,
-0.1209943816,
0.1251862943,
-0.1938234866,
0.1358687431,
-0.2274904847,
0.0911156386,
0.0849042386,
-0.1673949063,
-0.4391218424,
0.1967894584,
-0.4114460945,
0.1381168962,
-0.2974180281,
-0.383682549,
0.087799713,
0.5960641503,
0.2849672139,
0.3604593277,
-0.1543028504,
0.060066551,
0.0793892294,
0.1179450899,
0.0249578729,
0.0074553415,
0.196264267,
-0.0806937888,
-0.2981881797,
-0.0151689686,
-0.2781271338,
-0.3215303421,
-0.1055536121,
0.2862681746,
0.4039054215,
-0.3201122284,
-0.2076889426,
-0.3106456101,
0.0849743038,
-0.2798958421,
0.0937028453,
0.0470424704,
-0.0756008029,
0.3795402646,
-0.3368884921,
-0.4257120192,
-0.1475177407,
0.5242763162,
-0.0790770203,
-0.1337568164,
0.5711381435,
-0.0485030413,
-0.1785395592,
-0.0130322464,
0.1454920769,
-0.1009837091,
-0.4624590278,
-0.1003440619,
-0.1225367188,
0.107828021,
-0.0291068386,
0.1698506922,
0.2787975669,
-0.0963104218,
0.0534037948,
-0.7581390738,
-0.2621004283,
-0.1129845753,
-0.2311436832,
0.1716350615,
0.1831113547,
-0.4405415058,
-0.1353052557,
-0.2840807736,
-0.2030029446,
0.0441008732,
-0.2147328556,
-0.1294413656,
0.2779016495,
0.1545574516,
-0.0013405159,
0.1245134324,
-0.0026246868,
0.0926586911,
0.1227550209,
-0.1713697463,
-0.1237097606,
0.1475241631,
0.1037820205,
-0.0917998925,
0.0267538689,
-0.3284253478,
-0.0735969618,
-0.0984260663,
0.3940446377,
0.2593080997,
-0.0281577855,
0.0679169223,
-0.1276832521,
0.2894710898,
-0.2827047706,
0.4151190221,
-0.3472835124,
-0.0251296461,
-0.0133728236,
0.334769249,
-0.1413164735,
0.054126814,
-0.1174534783,
-0.0824943334,
0.1532539725,
0.067897521,
0.0646064579,
-0.3769118488,
0.0850263089,
0.1787574291,
0.0593336225,
0.0623649172,
-0.2331831753,
0.0148411766,
0.2450494915,
0.1589922756,
-0.0922702253,
-0.1294874996,
-0.0120075559,
-0.3234774768,
-0.179044351,
0.3004156053,
0.1639570743,
-0.3836255968,
0.1359912753,
-0.0324051306,
0.5581637621,
-0.224694699,
-0.05772084,
0.4813492,
-0.2174007595,
0.2738089859,
0.2185859084,
0.2596436739,
-0.0843800232,
0.5514784455,
0.1820428073,
0.1367383748,
-0.005867789,
-0.172048375,
-0.1030526459,
-0.6628077626,
0.2800289392,
0.0652532652,
-0.0736902952,
0.0509435683,
-0.0296166316,
-0.0086357668,
-0.3041152358,
-0.0021535866,
-0.4382818937,
-0.2168944031,
-0.180883497,
-0.2836595774,
0.0684351027,
-0.2338435948,
0.172539115,
0.0927765369,
-0.1707767546,
-0.1451970041,
-0.0699780062,
-0.0427518673,
-0.3035750687,
-0.2684686184,
0.1116327345,
0.4133674204,
-0.26629287,
-0.1926916242,
0.0890492797,
0.0064424723,
0.2395811677,
0.0886424705,
0.0961361006,
0.7200034857,
0.3696609735,
-0.1867061555,
-0.0827121288,
0.2043792456,
0.0849799588,
-0.1013357937,
0.3095622659,
0.1992661208,
0.177231878,
0.3453570008,
0.1196847185,
-0.1244665906,
0.0374585949,
0.0380601063,
-0.0089478046,
-0.0834793597,
0.1873594075,
-0.1764344722,
-0.1684233248,
0.1405664831,
0.1980234832,
-0.072777532,
0.1700269878,
0.2323685437,
0.0627375469,
0.194508791,
-0.1900536865,
0.0200616792,
0.1487800479,
0.315546006,
0.3503625393,
0.0980699062,
-0.2335532159,
-0.0683590919,
-0.5775801539,
0.2545948327,
-0.0182251967,
-0.3800155818,
-0.0322350785,
-0.1324878931,
-0.3368007839,
0.106135495,
0.1619228125,
-0.109096691,
0.0555580929,
0.2668964267,
-0.15676108,
-0.2936109304,
0.3894381821,
-0.0377686471,
-0.0781007633,
-0.6786635518,
0.0366011113,
-0.0887598991,
0.0320076868,
-0.1506993771,
-0.1666384935,
0.0341497734,
-0.0260736439,
0.5437771678,
0.2644130886,
0.4555603862,
0.0078378692,
0.0918127075,
-0.5622055531,
-0.068797648,
-0.1452899277,
-0.0336943828,
-0.0778261572,
0.2713478804,
-0.2275038064,
0.0414362848,
-0.1241924092,
0.1670939773,
0.2662992179,
0.3795419037,
-0.0054565854,
0.2279052585,
0.1809429228,
0.1571902037,
0.347844094,
0.0699720681,
-0.0961795077,
0.446036607,
-0.2409338653,
-0.3420478702,
0.2109490484,
-0.394151181,
-0.3340472281,
-0.0192079395,
0.3251574039,
-0.2549185455,
-0.1531336606,
-0.2379635572,
0.2061090171,
0.247839421,
-0.1434803456,
-0.3868971765,
0.1413453072,
-0.1570355594,
0.140291661,
-0.0227521993,
0.0342237987,
0.010134723,
-0.2253904045,
0.170867458,
-0.2374368906
] |
https://github.com/huggingface/datasets/issues/2937 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied | Thanks @albertvillanova for looking at it! I tried on my personal Windows machine and it downloaded just fine.
Running on my work machine and on a colleague's machine it is consistently hitting this error. It's not a write access issue because the `.incomplete` directory is written just fine. It just won't rename and then it deletes the directory in the `finally` step. Also the zip file is written and extracted fine in the downloads directory.
That leaves another program that might be interfering, and there are plenty of those in my work machine ... (full antivirus, data loss prevention, etc.). So the question remains, why not extend the `try` block to allow catching the error and circle back to the rename after the unknown program is finished doing its 'stuff'. This is the approach that I read about in the linked repo (see my comments above).
If it's not high priority, that's fine. However, if someone were to write an PR that solved this issue in our environment in an `except` clause, would it be reviewed for inclusion in a future release? Just wondering whether I should spend any more time on this issue. | ## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
| 194 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
Thanks @albertvillanova for looking at it! I tried on my personal Windows machine and it downloaded just fine.
Running on my work machine and on a colleague's machine it is consistently hitting this error. It's not a write access issue because the `.incomplete` directory is written just fine. It just won't rename and then it deletes the directory in the `finally` step. Also the zip file is written and extracted fine in the downloads directory.
That leaves another program that might be interfering, and there are plenty of those in my work machine ... (full antivirus, data loss prevention, etc.). So the question remains, why not extend the `try` block to allow catching the error and circle back to the rename after the unknown program is finished doing its 'stuff'. This is the approach that I read about in the linked repo (see my comments above).
If it's not high priority, that's fine. However, if someone were to write an PR that solved this issue in our environment in an `except` clause, would it be reviewed for inclusion in a future release? Just wondering whether I should spend any more time on this issue. | [
-0.2289306819,
0.3834536374,
0.0403455123,
0.2550398707,
-0.0121114748,
0.2622570992,
0.5036686659,
0.1329528391,
0.3442815542,
0.1357177198,
-0.1089740172,
0.0772838667,
0.073150292,
-0.0056993067,
-0.1256227195,
0.0789284036,
0.0364450403,
-0.0053883456,
0.2149499953,
0.1039546505,
-0.4238831997,
0.1072951853,
-0.1728550494,
0.18611525,
0.0260949396,
-0.1363422424,
0.1212602928,
0.3607298136,
-0.0307891499,
-0.3922067285,
0.3530230522,
0.0634533614,
0.4639181495,
0.2582460642,
-0.000119246,
-0.0137066245,
0.2306839526,
0.1244995147,
-0.0737274811,
0.0871000364,
-0.1839850396,
-0.1409677565,
0.1652295887,
-0.0976865813,
0.1767437905,
0.363491416,
-0.1021371782,
-0.2009293735,
-0.0130414814,
0.3790340126,
0.1573003381,
-0.038185209,
-0.1186793,
-0.0752040446,
0.4933359325,
-0.1592981517,
-0.133180216,
0.2798379064,
0.079024978,
-0.1145702899,
-0.0989916921,
0.1995730847,
-0.1621492505,
0.1471575797,
0.0186585188,
0.0311296061,
0.2162310183,
-0.4581093788,
0.3521410227,
0.1512576044,
0.9656503797,
-0.1955736428,
-0.1914042979,
-0.0887491331,
0.0133039914,
-0.0330024846,
0.4326033294,
0.4286228716,
-0.3245688677,
0.252370894,
0.0659692809,
0.0835652128,
-0.0825508237,
-0.001908889,
0.0712851733,
0.1486521959,
-0.0504702814,
0.1195564419,
-0.114730984,
-0.0834005624,
0.3863353729,
-0.2138272524,
-0.2546019256,
0.1916670203,
-0.3394364715,
0.2898703218,
0.0534536913,
0.7778065205,
0.1578776687,
0.3155295551,
0.1250243187,
-0.0540523119,
0.213623777,
0.0651902109,
0.0085930564,
0.3214896321,
-0.1122386605,
-0.0169231072,
0.427105844,
0.117442362,
-0.0816166177,
-0.0089903977,
-0.0200454462,
-0.4294739366,
0.3538796902,
0.105407238,
0.4081186354,
-0.2856416702,
-0.1217011064,
-0.0002952218,
0.1581319273,
-0.0239709187,
0.05888303,
0.5011534691,
-0.2717711926,
0.0426834486,
0.0682515353,
0.1794450283,
0.0186105669,
0.0977605879,
-0.0877998918,
-0.089002721,
-0.2667179406,
-0.0514381379,
0.4086471796,
-0.3225749135,
0.0955643952,
0.2566770911,
0.0270482227,
-0.1792940795,
0.191831857,
-0.0414975584,
-0.0328566693,
0.357686609,
0.397295773,
0.3376339674,
0.174932465,
-0.2122965753,
-0.0349954516,
0.1863115728,
-0.4872899652,
-0.4025040567,
-0.0336631201,
0.1213276833,
-0.0833241865,
0.0632049516,
-0.1980365515,
-0.0482575409,
0.3823127449,
-0.3008549809,
-0.0618357137,
-0.0137259383,
-0.2206201851,
-0.5042763352,
0.0407075882,
0.4012889862,
-0.359698832,
0.130366981,
-0.0915538967,
-0.2640864253,
0.1504323184,
0.0056377389,
0.0056344233,
0.3616816998,
-0.2812202573,
0.0156069994,
0.2774583995,
-0.3938951194,
-1.0015972853,
-0.0210030675,
0.073099874,
0.1660425365,
0.2444062084,
0.1191370711,
0.3659378886,
-0.0303457454,
0.170476988,
0.3187129498,
0.1300749481,
0.1119743437,
-0.0629963279,
-0.2038551867,
0.2796608806,
0.1339262724,
0.0883390605,
0.3009034991,
0.3125997186,
-0.0569340698,
0.2510955632,
-0.1872614026,
0.1168041155,
0.1925157607,
0.0114951627,
-0.0351364501,
0.1375143826,
-0.1277376264,
-0.4204092622,
0.3514482975,
-0.0081170052,
0.0851671621,
0.0759793371,
-0.2027432919,
-0.3184638917,
0.0913410336,
-0.5447551012,
-0.2889967859,
0.0851063654,
0.2938991785,
0.2124252915,
0.0236819461,
0.1891639531,
0.3374144137,
-0.2082268894,
0.1271958947,
-0.1811407059,
0.0386060849,
-0.1883372813,
-0.136449039,
-0.2122478187,
0.0469156131,
0.2001281381,
0.252748549,
-0.2134329677,
0.1961009949,
0.1512132138,
0.0374988988,
-0.3785575032,
-0.0595559031,
-0.0223774984,
0.1217298508,
0.1568485498,
0.1381784081,
0.148323521,
-0.0443944484,
-0.192219004,
0.1377543956,
-0.1596345305,
0.1437312663,
-0.3266508281,
0.2430362999,
0.2447061986,
0.0900503322,
0.0856965557,
0.0344528556,
0.3054703474,
0.0241180807,
0.0745957047,
-0.2858041525,
0.1012612879,
-0.0778077692,
0.0593028516,
0.0225473121,
0.0812819451,
0.2497535348,
-0.1746014953,
0.0168862492,
0.2869938016,
0.3496789932,
0.5377132893,
-0.0409863256,
0.0515503176,
0.0667969286,
0.0479119457,
0.0896691382,
0.1192514747,
0.0857711285,
-0.0702272207,
0.263449043,
0.1284335256,
0.2241659015,
-0.0647976249,
-0.113860786,
-0.1075413004,
0.4194296896,
-0.4875138998,
-0.0843875632,
0.1000551581,
0.0748399794,
0.181201458,
-0.2428469807,
-0.0887820274,
-0.1460986584,
-0.2430456877,
0.3116367459,
0.0940705985,
0.0835374966,
-0.5119578242,
0.164441511,
0.0075376779,
-0.2018062174,
-0.1137571037,
0.1238791943,
-0.165833801,
-0.0141073428,
0.1862449348,
-0.1799400002,
0.1873877198,
-0.2951590419,
0.2437519729,
-0.3901757598,
-0.1954322159,
0.0151099861,
0.0578858294,
0.4098418951,
0.1254312247,
0.1551068723,
0.1864108443,
-0.3417646289,
0.0566029251,
-0.1075194478,
-0.151061058,
0.2333707958,
-0.0550265051,
0.093855381,
0.0341967791,
-0.2493750155,
-0.5408245921,
-0.2501788139,
-0.0095761176,
0.3858901262,
0.0983012617,
-0.002851326,
-0.1126532406,
0.0033441521,
0.2670296431,
0.3937679231,
-0.2108281106,
-0.2492018938,
0.2102497518,
-0.2092679441,
-0.3346995711,
0.0819490775,
-0.1042307615,
0.044570744,
0.2523833811,
-0.478848815,
-0.0906345695,
-0.3600654602,
0.4096083045,
-0.2326152027,
0.0938281342,
0.3463047743,
0.0892929062,
0.1463987231,
-0.0417489335,
-0.2757164538,
-0.0651356578,
-0.2946413755,
-0.0682324842,
0.3381983042,
0.4274493754,
-0.0575701892,
0.3770319819,
0.3002277017,
0.3604495525,
0.3344712257,
0.0458412766,
0.3711137176,
0.0542610958,
-0.2594741583,
0.108775273,
-0.1943463087,
-0.1401606798,
0.3007433116,
0.0889824033,
-0.1952639222,
-0.0525318235,
-0.3804526627,
-0.2807891965,
-0.2852860689,
-0.0992423743,
-0.2463322729,
0.2537563443,
0.1191408932,
0.1100430414,
-0.4462447762,
-0.3691141903,
0.0288439281,
0.5546327233,
-0.3098393977,
0.1115754396,
-0.3508036733,
0.1366984397,
-0.6549721956,
0.2522454858,
0.0340252779,
0.4958057106,
-0.1741241962,
0.126697138,
-0.0015079491,
-0.1074296087,
0.5570680499,
-0.6522980928,
0.46183002,
0.0581228882,
0.1157311201,
0.0101969615,
-0.2243449986,
-0.0922561362,
0.2416802496,
0.1369417459,
0.214554742,
0.1639220566,
0.0440417156,
0.0762093514,
0.1665932685,
-0.2001325935,
-0.2790575624,
-0.2271350026,
-0.3418878019,
-0.3903852403,
0.1280059814,
0.0421994478,
0.1854701936,
-0.1517434716,
0.1171617955,
-0.4046883583,
0.2369778305,
0.1301798522,
0.1602822542,
0.1877918988,
0.0645755827,
0.2181591392,
-0.0480449386,
0.0753487349,
-0.1291564405,
0.5240868926,
-0.2804766893,
-0.3283787966,
-0.0524906367,
-0.1999856532,
-0.1171173379,
0.1122425422,
-0.3265575767,
-0.0500915684,
-0.1384818554,
-0.1327375472,
-0.3143308461,
0.1170744598,
0.0426039472,
-0.1354340613,
-0.3776836395,
-0.3201940656,
0.3641436398,
0.2117006332,
-0.4467276931,
0.3404746354,
0.1198480427,
-0.4280629754,
0.182469219,
0.0517599434,
0.7466568947,
0.0798900202,
0.278021127,
0.09727709,
-0.1122954637,
0.2001173794,
0.1161782891,
0.0565572493,
-0.3728863001,
-0.4541018009,
-0.0988717899,
-0.2205426991,
-0.1345372349,
-0.0249410085,
-0.2337932885,
0.2817450762,
-0.1129787266,
0.3188051879,
0.2743099928,
0.04803738,
-0.3741956353,
-0.3764995933,
-0.1209943816,
0.1251862943,
-0.1938234866,
0.1358687431,
-0.2274904847,
0.0911156386,
0.0849042386,
-0.1673949063,
-0.4391218424,
0.1967894584,
-0.4114460945,
0.1381168962,
-0.2974180281,
-0.383682549,
0.087799713,
0.5960641503,
0.2849672139,
0.3604593277,
-0.1543028504,
0.060066551,
0.0793892294,
0.1179450899,
0.0249578729,
0.0074553415,
0.196264267,
-0.0806937888,
-0.2981881797,
-0.0151689686,
-0.2781271338,
-0.3215303421,
-0.1055536121,
0.2862681746,
0.4039054215,
-0.3201122284,
-0.2076889426,
-0.3106456101,
0.0849743038,
-0.2798958421,
0.0937028453,
0.0470424704,
-0.0756008029,
0.3795402646,
-0.3368884921,
-0.4257120192,
-0.1475177407,
0.5242763162,
-0.0790770203,
-0.1337568164,
0.5711381435,
-0.0485030413,
-0.1785395592,
-0.0130322464,
0.1454920769,
-0.1009837091,
-0.4624590278,
-0.1003440619,
-0.1225367188,
0.107828021,
-0.0291068386,
0.1698506922,
0.2787975669,
-0.0963104218,
0.0534037948,
-0.7581390738,
-0.2621004283,
-0.1129845753,
-0.2311436832,
0.1716350615,
0.1831113547,
-0.4405415058,
-0.1353052557,
-0.2840807736,
-0.2030029446,
0.0441008732,
-0.2147328556,
-0.1294413656,
0.2779016495,
0.1545574516,
-0.0013405159,
0.1245134324,
-0.0026246868,
0.0926586911,
0.1227550209,
-0.1713697463,
-0.1237097606,
0.1475241631,
0.1037820205,
-0.0917998925,
0.0267538689,
-0.3284253478,
-0.0735969618,
-0.0984260663,
0.3940446377,
0.2593080997,
-0.0281577855,
0.0679169223,
-0.1276832521,
0.2894710898,
-0.2827047706,
0.4151190221,
-0.3472835124,
-0.0251296461,
-0.0133728236,
0.334769249,
-0.1413164735,
0.054126814,
-0.1174534783,
-0.0824943334,
0.1532539725,
0.067897521,
0.0646064579,
-0.3769118488,
0.0850263089,
0.1787574291,
0.0593336225,
0.0623649172,
-0.2331831753,
0.0148411766,
0.2450494915,
0.1589922756,
-0.0922702253,
-0.1294874996,
-0.0120075559,
-0.3234774768,
-0.179044351,
0.3004156053,
0.1639570743,
-0.3836255968,
0.1359912753,
-0.0324051306,
0.5581637621,
-0.224694699,
-0.05772084,
0.4813492,
-0.2174007595,
0.2738089859,
0.2185859084,
0.2596436739,
-0.0843800232,
0.5514784455,
0.1820428073,
0.1367383748,
-0.005867789,
-0.172048375,
-0.1030526459,
-0.6628077626,
0.2800289392,
0.0652532652,
-0.0736902952,
0.0509435683,
-0.0296166316,
-0.0086357668,
-0.3041152358,
-0.0021535866,
-0.4382818937,
-0.2168944031,
-0.180883497,
-0.2836595774,
0.0684351027,
-0.2338435948,
0.172539115,
0.0927765369,
-0.1707767546,
-0.1451970041,
-0.0699780062,
-0.0427518673,
-0.3035750687,
-0.2684686184,
0.1116327345,
0.4133674204,
-0.26629287,
-0.1926916242,
0.0890492797,
0.0064424723,
0.2395811677,
0.0886424705,
0.0961361006,
0.7200034857,
0.3696609735,
-0.1867061555,
-0.0827121288,
0.2043792456,
0.0849799588,
-0.1013357937,
0.3095622659,
0.1992661208,
0.177231878,
0.3453570008,
0.1196847185,
-0.1244665906,
0.0374585949,
0.0380601063,
-0.0089478046,
-0.0834793597,
0.1873594075,
-0.1764344722,
-0.1684233248,
0.1405664831,
0.1980234832,
-0.072777532,
0.1700269878,
0.2323685437,
0.0627375469,
0.194508791,
-0.1900536865,
0.0200616792,
0.1487800479,
0.315546006,
0.3503625393,
0.0980699062,
-0.2335532159,
-0.0683590919,
-0.5775801539,
0.2545948327,
-0.0182251967,
-0.3800155818,
-0.0322350785,
-0.1324878931,
-0.3368007839,
0.106135495,
0.1619228125,
-0.109096691,
0.0555580929,
0.2668964267,
-0.15676108,
-0.2936109304,
0.3894381821,
-0.0377686471,
-0.0781007633,
-0.6786635518,
0.0366011113,
-0.0887598991,
0.0320076868,
-0.1506993771,
-0.1666384935,
0.0341497734,
-0.0260736439,
0.5437771678,
0.2644130886,
0.4555603862,
0.0078378692,
0.0918127075,
-0.5622055531,
-0.068797648,
-0.1452899277,
-0.0336943828,
-0.0778261572,
0.2713478804,
-0.2275038064,
0.0414362848,
-0.1241924092,
0.1670939773,
0.2662992179,
0.3795419037,
-0.0054565854,
0.2279052585,
0.1809429228,
0.1571902037,
0.347844094,
0.0699720681,
-0.0961795077,
0.446036607,
-0.2409338653,
-0.3420478702,
0.2109490484,
-0.394151181,
-0.3340472281,
-0.0192079395,
0.3251574039,
-0.2549185455,
-0.1531336606,
-0.2379635572,
0.2061090171,
0.247839421,
-0.1434803456,
-0.3868971765,
0.1413453072,
-0.1570355594,
0.140291661,
-0.0227521993,
0.0342237987,
0.010134723,
-0.2253904045,
0.170867458,
-0.2374368906
] |
https://github.com/huggingface/datasets/issues/2934 | to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows | I did some investigation and, as it seems, the bug stems from [this line](https://github.com/huggingface/datasets/blob/8004d7c3e1d74b29c3e5b0d1660331cd26758363/src/datasets/arrow_dataset.py#L325). The lifecycle of the dataset from the linked line is bound to one of the returned `tf.data.Dataset`. So my (hacky) solution involves wrapping the linked dataset with `weakref.proxy` and adding a custom `__del__` to `tf.python.data.ops.dataset_ops.TensorSliceDataset` (this is the type of a dataset that is returned by `tf.data.Dataset.from_tensor_slices`; this works for TF 2.x, but I'm not sure `tf.python.data.ops.dataset_ops` is a valid path for TF 1.x) that deletes the linked dataset, which is assigned to the dataset object as a property. Will open a draft PR soon! | To reproduce:
```python
import datasets as ds
import weakref
import gc
d = ds.load_dataset("mnist", split="train")
ref = weakref.ref(d._data.table)
tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label")
del tfd, d
gc.collect()
assert ref() is None, "Error: there is at least one reference left"
```
This causes issues because the table holds a reference to an open arrow file that should be closed. So on windows it's not possible to delete or move the arrow file afterwards.
Moreover the CI test of the `to_tf_dataset` method isn't able to clean up the temporary arrow files because of this.
cc @Rocketknight1 | 99 | to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows
To reproduce:
```python
import datasets as ds
import weakref
import gc
d = ds.load_dataset("mnist", split="train")
ref = weakref.ref(d._data.table)
tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label")
del tfd, d
gc.collect()
assert ref() is None, "Error: there is at least one reference left"
```
This causes issues because the table holds a reference to an open arrow file that should be closed. So on windows it's not possible to delete or move the arrow file afterwards.
Moreover the CI test of the `to_tf_dataset` method isn't able to clean up the temporary arrow files because of this.
cc @Rocketknight1
I did some investigation and, as it seems, the bug stems from [this line](https://github.com/huggingface/datasets/blob/8004d7c3e1d74b29c3e5b0d1660331cd26758363/src/datasets/arrow_dataset.py#L325). The lifecycle of the dataset from the linked line is bound to one of the returned `tf.data.Dataset`. So my (hacky) solution involves wrapping the linked dataset with `weakref.proxy` and adding a custom `__del__` to `tf.python.data.ops.dataset_ops.TensorSliceDataset` (this is the type of a dataset that is returned by `tf.data.Dataset.from_tensor_slices`; this works for TF 2.x, but I'm not sure `tf.python.data.ops.dataset_ops` is a valid path for TF 1.x) that deletes the linked dataset, which is assigned to the dataset object as a property. Will open a draft PR soon! | [
0.0456906855,
0.3345080316,
0.1148889512,
0.0804506093,
0.2304305434,
0.1188877076,
0.3988847733,
0.2548753023,
-0.1099168733,
0.2674389482,
-0.3353856802,
0.4040720761,
-0.1644808352,
-0.1074624807,
-0.0342663452,
-0.1066429764,
0.0511107743,
0.145164758,
-0.1666639894,
-0.1226121858,
-0.2103367746,
0.0351908058,
-0.1274757832,
0.0721155554,
-0.1387631446,
-0.281144619,
0.0105894208,
0.1006438658,
0.2441079319,
-0.0183546767,
0.0682791099,
0.0211764704,
-0.1777959019,
0.4797621071,
-0.0001166652,
0.4142078757,
-0.0061278846,
0.1301537156,
-0.2355813086,
0.0565107875,
-0.0690316707,
0.1760493815,
0.1245590001,
-0.0599729568,
0.1349684447,
-0.2177764028,
-0.0255723502,
0.0832733959,
0.2824957073,
0.4290578663,
0.1738770008,
0.6678112745,
0.0490496904,
-0.0070740059,
0.3827848136,
0.063897185,
-0.2742590308,
0.1161700636,
-0.2370098531,
-0.1935151964,
0.0655605942,
0.5781883001,
0.0173821375,
-0.0747983605,
-0.1346867383,
0.0793779641,
-0.2474850863,
-0.2132098973,
0.0991552919,
0.386462003,
0.2942150533,
-0.3177288771,
-0.0704426616,
-0.128684029,
-0.0647846833,
-0.1454349607,
0.191347748,
-0.0462072156,
0.0173867345,
0.1348502785,
0.0582146272,
-0.1622670889,
-0.2615069151,
-0.0061725415,
-0.2810889482,
-0.107219398,
0.0857436806,
0.0801384151,
0.4141067863,
-0.0271511786,
-0.0686376169,
0.0416292585,
0.020164147,
0.1307914704,
-0.2023016363,
-0.1820207238,
-0.0392584875,
-0.1770305187,
-0.0281794928,
-0.0708619505,
0.2392521501,
-0.1570444852,
-0.2443444133,
0.067739971,
0.1644196957,
-0.0705887154,
-0.6655332446,
0.1451995075,
0.2680507302,
-0.1933341473,
-0.1119191051,
-0.0286710784,
0.0027097426,
-0.4981429279,
0.2861166894,
-0.2107922137,
0.4638059735,
0.0174133852,
-0.58344841,
0.1703358889,
-0.1943604499,
0.4077931941,
-0.0392661095,
0.3421228528,
-0.0097243525,
0.2793690264,
0.3236466646,
-0.0036119809,
-0.4970703721,
-0.016201023,
-0.0546676889,
-0.0396625996,
-0.2995607257,
-0.3319227397,
0.1675924957,
0.0439530686,
-0.0478492379,
0.1728075296,
0.0610826872,
0.1025774777,
0.2539456487,
-0.2808155715,
0.5246314406,
0.48127231,
-0.0750979558,
0.2450948358,
0.0949580222,
-0.2507019043,
-0.1292223334,
0.353417784,
-0.2710707486,
-0.1585650444,
-0.2603646517,
0.1245643422,
-0.1202332303,
-0.1552469879,
-0.2238021493,
0.0450048298,
0.0343124382,
-0.05954713,
0.0862919763,
-0.1370919049,
-0.5523477793,
-0.2646560669,
0.0109039545,
0.3650913239,
-0.1991527081,
0.1795514226,
-0.0254389681,
-0.393191725,
-0.1594110429,
0.2656011283,
0.0646050125,
0.3153831363,
-0.4097916484,
-0.1304868758,
0.4838192463,
-0.2320681214,
-0.4512840807,
0.2350059152,
-0.2089942396,
0.2142525613,
-0.3518176377,
0.1303172261,
0.2125168741,
-0.2066657543,
0.0123628564,
-0.0070452467,
-0.06231042,
-0.0091277137,
-0.3236088753,
-0.0108149648,
-0.0680187419,
-0.1952710599,
-0.0157280769,
-0.0124156512,
0.131864816,
-0.0493952669,
0.3902635574,
0.2196919918,
0.1933262199,
0.1417479664,
0.3756608963,
-0.1729134023,
-0.0790890828,
0.0432888046,
-0.377517581,
0.1395243555,
0.4056794047,
0.0777033865,
-0.1249043569,
-0.1479363889,
-0.0149694346,
0.1985373944,
-0.1919496655,
0.0200804286,
0.0784436315,
-0.1194250435,
-0.3427839279,
0.2097571641,
-0.0087736696,
-0.1780347377,
-0.2768907249,
0.0820085928,
0.1028023809,
0.4687247276,
0.2687639296,
-0.0055730566,
-0.244813621,
0.1943386644,
-0.1494650841,
-0.0300622955,
-0.2719016969,
0.4269394875,
0.1747719347,
0.3178132474,
-0.1541972309,
0.5814439654,
0.1066851988,
-0.5981357098,
-0.2948665917,
0.3456803262,
0.1319474578,
-0.0286236182,
-0.0179552957,
0.1456978321,
-0.2007221431,
0.1713245809,
0.0537686795,
0.239264071,
0.0408271551,
0.0214638934,
-0.0363969728,
-0.3410163522,
-0.0483818986,
0.3614163101,
-0.3146297634,
0.2986147106,
-0.6084029675,
0.1965303868,
0.3866645694,
0.0311067477,
-0.1689247936,
0.2358302176,
-0.169494614,
0.0617296398,
0.0715380311,
0.3181353211,
0.4760547876,
0.0223622248,
0.1727906018,
0.1367988139,
-0.1937398314,
-0.0902522653,
0.237364307,
0.0887135416,
0.3124322593,
0.2039207518,
0.2570449114,
0.1931035817,
-0.302403599,
0.0330185518,
0.1302036941,
0.1728960425,
-0.4525786936,
0.1747217923,
-0.1807387918,
-0.038846653,
-0.3074898422,
0.0117458552,
0.0377213284,
-0.1348004341,
0.315459758,
0.3967654407,
-0.4561236501,
0.153922677,
-0.3289418519,
0.1290332079,
0.0227685496,
-0.2959319949,
0.1803024411,
-0.169178918,
-0.2714837193,
0.0344428271,
0.3643866181,
-0.2442777306,
0.4180339873,
-0.0013579726,
-0.0747495443,
-0.1528535187,
-0.2631630898,
0.0897796899,
-0.0949535072,
0.1932280362,
0.2937165499,
0.336810261,
-0.1232666075,
-0.1301763952,
0.1462335438,
-0.4851278961,
-0.1786133349,
0.1372667998,
-0.1227180064,
0.2090111077,
0.020397976,
-0.1520888507,
0.0741769299,
-0.3432302177,
0.0670824349,
-0.1913795918,
0.127728194,
0.6203323007,
0.1520406604,
-0.0800019652,
0.3789709806,
0.1076797247,
-0.1736002862,
-0.1127344221,
0.2009139955,
-0.2037229538,
-0.4296332598,
0.2909049988,
0.0338889658,
0.1325789392,
0.2955588698,
-0.6434158087,
-0.1689424068,
-0.0437353179,
0.1776636541,
-0.1088864952,
-0.0470070429,
0.1665740311,
0.1164369732,
-0.1197147295,
-0.343247354,
0.0827861726,
0.3821261227,
-0.2270807028,
-0.0485797636,
0.0422705263,
0.088244848,
0.3135707974,
0.6243582964,
0.0508326069,
-0.3429433703,
0.0208035335,
-0.2982518077,
0.5073612928,
-0.1590901464,
-0.2795747817,
0.0158005692,
0.0420312509,
-0.1327363998,
0.2462736368,
-0.0795773864,
-0.2103794068,
0.057861954,
0.2167323232,
-0.037591856,
-0.5290263891,
0.1369027048,
-0.396507293,
0.1983656734,
0.1509985626,
-0.0425542146,
-0.158177644,
-0.4451107681,
0.22895962,
0.2040209621,
0.0930263549,
-0.1366163641,
-0.1987894177,
-0.2823880315,
-0.3425536752,
0.0680474415,
0.1306472421,
0.5035334826,
0.0921354145,
-0.2987199426,
0.1360502839,
0.2798966765,
0.7769180536,
-0.0301158335,
-0.0992755517,
0.2773327231,
0.3224095702,
-0.4041953385,
0.055564329,
-0.1050164402,
-0.0046283938,
0.0281626992,
0.241694659,
0.0772358179,
-0.3887940645,
0.2129504085,
0.1766911596,
-0.2477181554,
0.2110396773,
-0.3918556571,
-0.3986026049,
0.1013681665,
0.0878464878,
0.2604940236,
0.049755998,
-0.1087201685,
-0.1115121245,
-0.3012362123,
-0.2482331842,
0.0881450474,
-0.0156273134,
0.3283711672,
0.3708718121,
0.3975337148,
0.0533414707,
0.5702841878,
0.3938702047,
0.4075017869,
-0.5431132317,
0.0214277413,
0.0755056217,
0.191133678,
0.125191614,
0.4420393705,
-0.1866853237,
0.0531416759,
-0.4151875675,
0.0002782717,
-0.3923722208,
0.5302585363,
0.1395114064,
-0.2031340897,
-0.0013098195,
-0.0922305435,
0.1333689094,
-0.0103616379,
-0.148902446,
0.6897455454,
0.2165825516,
-0.1877484918,
0.2651526034,
0.1582136303,
1.1080409288,
-0.0935678184,
0.233469069,
0.5235840678,
-0.2643699646,
0.2126545012,
-0.0553807914,
0.1353134811,
-0.0632257164,
-0.5360182524,
0.0201392844,
-0.0125074312,
-0.360824585,
-0.2005609572,
0.189327687,
0.0023708828,
0.157206744,
0.4106847048,
0.2291461229,
0.0776232332,
0.2959439754,
-0.2186194956,
0.0396569632,
0.0224719755,
0.4466588795,
-0.1266207099,
-0.202606976,
-0.1223223954,
0.165946871,
0.0271230191,
-0.0344650745,
-0.0096407533,
-0.722563982,
0.2756165862,
0.0422484726,
-0.0904387459,
-0.0240594968,
0.4012314975,
0.3712235391,
-0.0988770872,
-0.1523476243,
0.2883421481,
0.3773629367,
0.2930125594,
0.0938070416,
-0.016785726,
0.4750954211,
0.0383026823,
-0.0803635046,
0.1676329523,
-0.054471869,
-0.0525227711,
-0.0370947272,
-0.1225821376,
0.0382938683,
-0.1205562055,
0.0445846617,
-0.0995849222,
-0.2459054291,
-0.0579577684,
0.1035772711,
-0.1804872751,
-0.1070264429,
0.2344727218,
-0.1927343011,
-0.4316692352,
0.2392566651,
0.39225474,
-0.1205128282,
0.1710347384,
0.3036811948,
-0.076104477,
-0.0731282011,
-0.2562384605,
0.3445344269,
0.0378303453,
-0.567092061,
0.2645977437,
-0.1810760796,
0.3202284276,
-0.1079887152,
0.514718473,
-0.1970302314,
0.0209410582,
0.0221597999,
-0.1397223324,
-0.3977710605,
0.2361744344,
0.0018206821,
0.4124106467,
-0.2537191212,
0.4747988582,
-0.1287530363,
-0.2527931333,
-0.2997977734,
0.2343673408,
-0.0281139389,
0.0787902698,
-0.1058860421,
0.0576506034,
0.3181126714,
-0.2779518962,
0.0576958805,
0.1073204875,
-0.1381113976,
-0.1384907663,
-0.1637139916,
0.1632773727,
0.0280179828,
-0.3234010637,
-0.0129801482,
-0.1738721132,
0.076291576,
-0.111380294,
0.3281942904,
0.0700532719,
-0.3296965063,
0.0270977207,
-0.2136469036,
0.1309411079,
0.1392471641,
0.0077433065,
-0.0305916928,
0.3758685887,
0.0896959454,
0.0981486291,
-0.2366092205,
-0.2325259447,
-0.0303852763,
0.2842663527,
-0.035637565,
-0.3600644767,
0.037712615,
-0.0558479689,
-0.2938880026,
-0.0599050336,
0.3766299784,
0.1799757928,
-0.4634622931,
-0.1362241805,
0.2592976391,
0.2242169678,
-0.2404212356,
0.1624508053,
-0.1217676103,
0.0198639929,
0.0385115743,
0.166296646,
0.1840274036,
-0.1465543211,
-0.1428776532,
0.1772314459,
-0.2008032799,
-0.20362477,
0.0310161822,
0.5156288743,
-0.0325355902,
0.2373233587,
-0.1476537883,
0.1036646366,
0.1264172494,
0.2481572479,
-0.0781783611,
0.4826430082,
0.1981097162,
-0.0654389858,
-0.0354683064,
-0.31345281,
-0.0555219986,
0.1641894579,
-0.1238171011,
0.2421869636,
-0.0361494273,
0.2217095494,
0.1549313366,
-0.4245825112,
-0.0117487237,
0.2324925065,
-0.0859793872,
-0.3671879172,
-0.3900305629,
-0.20805493,
-0.272334218,
0.0311244279,
-0.0055277343,
-0.0865741596,
0.009404134,
0.1060138717,
-0.0662820041,
-0.2825776935,
-0.1198214591,
0.3330773115,
0.2778065205,
-0.2325667739,
0.0656124502,
-0.0248094872,
-0.0656781197,
-0.0021086484,
0.2082014084,
0.0835288167,
0.0284214877,
-0.1759397984,
0.0114994124,
-0.0346539989,
0.0922639072,
-0.0400927253,
0.2144378722,
-0.0489173345,
-0.1405197978,
0.2157977819,
-0.0491835326,
-0.0700247735,
0.1828449368,
0.0519723222,
0.0976672024,
-0.4182253778,
0.1498895139,
-0.0033791186,
-0.1016805917,
-0.2287627608,
-0.0051180832,
0.050867185,
-0.1086790487,
0.4808009267,
-0.4602067769,
0.364477694,
-0.0873914808,
0.0682187378,
-0.0095314439,
0.2219791114,
0.1271089762,
0.3292398751,
-0.2891254425,
-0.3842817545,
-0.5309659243,
0.2625988722,
-0.0495070256,
-0.0506450534,
0.2118177116,
0.031771712,
-0.0888987482,
-0.0664602742,
0.0274048857,
-0.1865465641,
0.1133229285,
0.2672547698,
-0.265827477,
-0.0360958874,
-0.4830034375,
0.098432675,
0.0199030191,
-0.5478619337,
-0.1800813079,
-0.1762709618,
0.0375099257,
-0.0818458945,
-0.021551773,
-0.0166111402,
0.5460250974,
0.5247311592,
0.1254573017,
0.0754964799,
0.1195666045,
-0.102561377,
-0.2674233317,
-0.1794993132,
-0.3766337633,
-0.1837469935,
0.0070535615,
-0.0237968713,
-0.052944012,
0.197137326,
0.0137046389,
-0.2977708578,
0.1801952422,
0.3653976023,
-0.4400824606,
0.1956056058,
-0.2059034109,
0.3725327849,
0.2628457248,
0.4234926701,
-0.1296610981,
0.2166780233,
-0.3998851776,
-0.3820689321,
0.4928815067,
-0.5328620672,
-0.0930068493,
-0.0245975591,
0.3842856884,
-0.0938029438,
0.0362868905,
-0.5819959641,
-0.1765553802,
0.3898157775,
-0.083492808,
-0.5030674338,
0.1706115752,
0.130146414,
0.1384346038,
0.1181670725,
0.5913181305,
0.140175879,
-0.1933636367,
0.0364977866,
-0.286213547
] |
https://github.com/huggingface/datasets/issues/2924 | "File name too long" error for file locks | Hi, the filename here is less than 255
```python
>>> len("_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock")
154
```
so not sure why it's considered too long for your filesystem.
(also note that the lock files we use always have smaller filenames than 255)
https://github.com/huggingface/datasets/blob/5d1a9f1e3c6c495dc0610b459e39d2eb8893f152/src/datasets/utils/filelock.py#L135-L135 | ## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
| 39 | "File name too long" error for file locks
## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
Hi, the filename here is less than 255
```python
>>> len("_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock")
154
```
so not sure why it's considered too long for your filesystem.
(also note that the lock files we use always have smaller filenames than 255)
https://github.com/huggingface/datasets/blob/5d1a9f1e3c6c495dc0610b459e39d2eb8893f152/src/datasets/utils/filelock.py#L135-L135 | [
0.0493387729,
0.0920009762,
-0.0714941099,
0.401848197,
0.4151671231,
0.2358948588,
0.6366623044,
0.2435027659,
0.2364588678,
0.2313295007,
0.0185687691,
0.0077437051,
-0.1442687213,
-0.3100363016,
-0.2015361935,
-0.244314611,
-0.158109054,
-0.0416219905,
-0.1770785898,
0.2177186608,
-0.1549791098,
0.3787366152,
0.0246381462,
0.1570836753,
-0.5360065699,
0.0900787339,
-0.129596293,
0.388674587,
-0.0215062648,
-0.3729910254,
0.0511184931,
-0.046716623,
0.0688150823,
0.8113575578,
-0.0001220686,
-0.3334413171,
0.3542335927,
-0.056298919,
-0.3271901011,
-0.2243083715,
-0.1685818732,
-0.5117117763,
-0.0345850736,
-0.4988022745,
0.1872132421,
-0.0951191336,
-0.0331906974,
-0.8021569848,
0.0410522968,
0.3733056784,
0.1268748045,
-0.0783472732,
0.0910247043,
-0.2579203546,
0.3323120773,
-0.2779889703,
0.0040847734,
0.3564024568,
0.3556976616,
-0.0988673419,
-0.1546516567,
0.2032181621,
-0.0368967988,
0.0273247212,
0.2471579909,
0.0795376152,
-0.0874830484,
-0.326164484,
0.2958056629,
0.4273938537,
0.471437484,
-0.093061924,
-0.2793130577,
-0.467697531,
0.1424981207,
-0.1251060069,
0.488530755,
-0.0762399882,
-0.2220745683,
0.1514883637,
-0.1704196483,
-0.0196211301,
-0.1235968992,
-0.1102386117,
-0.1019758433,
0.0650620982,
0.0405087098,
0.0362790152,
0.3111135066,
-0.3483148813,
0.2395954728,
0.0048368443,
0.0742737055,
0.2694600523,
-0.6542135477,
0.1469124109,
0.084268108,
0.3854928613,
0.2534899712,
0.0576435216,
-0.2659730911,
-0.1483080387,
0.1947483271,
-0.0104661286,
-0.064955011,
0.3742070794,
0.1944443434,
0.1612815559,
0.3012427092,
0.0779470801,
-0.3367466033,
-0.1069349945,
-0.0764873996,
-0.5534628034,
0.4451378584,
0.1335907578,
0.0741625279,
-0.3437120616,
0.1504582018,
0.5705772638,
0.1057045311,
-0.0104901902,
0.2287025154,
0.2733798623,
0.0054354407,
0.1107668504,
0.0830742121,
-0.0899365395,
-0.0889611915,
0.1008350775,
-0.1473124921,
-0.1107303798,
-0.2270202786,
0.1124097332,
0.0892054141,
-0.3083955646,
0.2792794108,
-0.2274651378,
0.3152399063,
-0.1249575615,
-0.0829686001,
-0.2377423942,
-0.0667323321,
0.1559672207,
-0.0591067746,
0.0739143044,
0.2452138513,
-0.2607334256,
-0.1920616627,
-0.0771117061,
-0.3397485018,
-0.285187602,
-0.0617213845,
0.0947030634,
-0.1654944718,
0.2159019858,
0.241554901,
-0.2671949267,
0.6555526257,
-0.0798194259,
0.0127977468,
-0.2747654617,
-0.1418098509,
0.0071926489,
0.0408247709,
0.5534656644,
0.1325239539,
-0.0175628886,
-0.0687893331,
0.1282822043,
0.0086660907,
0.3722594082,
0.1806451082,
-0.0535968207,
-0.4219526052,
0.3124940395,
0.2268716991,
-0.240280807,
-0.4869856834,
0.3215384781,
-0.3943073452,
0.0994933248,
0.3229114413,
0.0228829682,
0.0517103672,
-0.0245827306,
0.2853382826,
0.1822130829,
-0.0260958299,
0.0234952867,
-0.2025244832,
-0.1073305756,
-0.0406304337,
0.1691957116,
0.0109545132,
0.0670008212,
0.0796194971,
-0.1751917005,
0.2715683877,
0.0314634889,
-0.2040444613,
0.3736800551,
0.1382421255,
0.3267183602,
0.1860824227,
-0.1063276678,
-0.593750596,
0.2637210786,
-0.1218476444,
-0.1787317842,
-0.2175931036,
-0.1868049204,
-0.174988687,
-0.0072901174,
0.0034601605,
0.1351370215,
-0.0204084329,
0.283249557,
0.1417795569,
-0.1317637563,
0.0934400707,
0.5883799195,
-0.1702440977,
0.0175973661,
-0.4781186283,
-0.1711263955,
-0.1178537458,
-0.1125400066,
0.0315069407,
0.001639422,
0.3693964183,
-0.1089681834,
-0.3443508148,
0.4480754435,
0.3332765102,
0.0975326225,
-0.1789246202,
-0.0044302642,
-0.0568642244,
0.2207756937,
0.0726701021,
0.0398116149,
0.0077854358,
0.0142917857,
-0.2135763168,
0.3000160754,
-0.1408158243,
0.27127707,
0.0286139771,
0.1682408005,
0.2461793423,
-0.1318138242,
0.0643452853,
-0.1761223972,
0.6458846331,
-0.2163525224,
0.3048402369,
0.0547802746,
0.0452313498,
-0.1448626965,
0.645819366,
0.045392707,
-0.0001777746,
0.1977424622,
0.1562013775,
-0.0408152863,
-0.0193725601,
0.3064888716,
0.51114434,
0.192058593,
-0.0301227085,
-0.206505999,
0.3941577375,
-0.2238345295,
0.256318748,
0.015908191,
-0.0027930178,
0.3657029271,
0.0496182665,
-0.1290876865,
0.0514838323,
-0.8095088005,
-0.050442148,
0.223697558,
-0.3198086619,
0.1480822563,
-0.1393255591,
-0.0432044677,
-0.0237995163,
0.0004905537,
-0.0803986639,
-0.4162821174,
-0.1888938546,
0.2785061002,
-0.1418367475,
0.2145340145,
-0.1188359708,
-0.0032407343,
0.2712829709,
-0.0145384036,
-0.2950280905,
-0.0016125664,
0.0803441554,
-0.0837600976,
0.2720729709,
-0.5375036597,
0.0838036239,
-0.1256634593,
-0.063107416,
-0.5083526373,
-0.249880299,
0.1116677821,
-0.1684809625,
0.2935638726,
0.3413660824,
0.2078575045,
0.1666621864,
0.0588971674,
0.0049614832,
-0.2622788548,
0.0236697048,
0.2326638997,
0.177900672,
-0.0228181574,
-0.1917994916,
-0.0234549604,
-0.3463731706,
-0.4160332084,
0.3207849264,
0.0303033888,
0.2279278636,
0.3411895037,
-0.0708732456,
0.2978124321,
-0.0179731809,
0.2472921908,
-0.0879070163,
-0.4463702142,
0.4170608819,
-0.1525217444,
-0.2990591526,
-0.4318083823,
0.2980132997,
-0.0355094969,
0.1055191457,
-0.4223636985,
-0.1790713966,
-0.4012610912,
0.3389858603,
-0.335719645,
0.0054094102,
0.1970202625,
-0.0852011293,
-0.056348715,
-0.1069381684,
0.0849028602,
0.2325124592,
0.0110358074,
-0.0095209405,
0.0929810554,
0.2951666117,
-0.1160778031,
0.4532133639,
0.3616655767,
0.0753480345,
0.1953795552,
-0.1376696378,
0.1843571216,
-0.2590323091,
-0.1269459277,
0.0239379853,
0.1744715571,
-0.2215842754,
0.1342059076,
-0.0853910595,
0.0140822716,
-0.1333197653,
-0.057792075,
0.1078079566,
-0.2960295081,
0.0073164683,
0.0485864654,
0.0524901152,
0.031080313,
0.1456944644,
-0.1948867738,
-0.130910188,
-0.0240891837,
0.3084782958,
0.0540785715,
-0.0233559478,
-0.2468733191,
0.0915109962,
-0.3371422589,
0.4440094829,
0.1830918342,
0.2137980461,
-0.0693597645,
-0.1601749957,
-0.0800487325,
0.0460067019,
0.6831175089,
0.0991291851,
0.3160925806,
0.1554957032,
0.2547035515,
-0.1230870932,
0.0391723216,
0.0795528516,
0.37018767,
0.1390411407,
0.4079337418,
-0.230809778,
0.0376087353,
-0.1833171695,
0.1855424047,
-0.1166331917,
-0.4492169321,
-0.026285693,
0.0087962672,
-0.2636859715,
0.1616199017,
0.0336055979,
0.2442287058,
0.061672166,
0.0049132183,
-0.0601772517,
-0.0747793615,
0.1601552814,
0.1748355031,
0.281263113,
-0.4468776882,
0.2643654644,
-0.027559286,
-0.1595292985,
0.2304125279,
0.5639727712,
-0.4439827502,
-0.2478428483,
0.4144732952,
-0.3565593958,
0.0764389038,
0.428709507,
-0.3107660413,
-0.158424601,
0.3582059741,
0.6321595907,
0.1236555874,
0.0257822722,
0.0325682759,
0.1308743954,
-0.1530222595,
-0.3346109688,
0.2163308859,
0.2430950701,
-0.0178354084,
0.5360286832,
0.0242516566,
-0.3025456071,
0.2613931298,
-0.2059546858,
1.0209487677,
-0.1854491234,
0.1871505678,
-0.0190805662,
0.1287677884,
0.4992989004,
0.0092908144,
-0.0842247382,
-0.4268136919,
-0.482785821,
0.1402027607,
-0.1498040259,
0.2397721112,
-0.0366778672,
-0.1301994473,
0.3139282763,
-0.2595100999,
0.0177617222,
-0.1745312661,
0.4527937174,
-0.6466597915,
-0.2542140484,
-0.2503229976,
0.0479837768,
-0.0439813025,
0.1101505235,
0.0617119335,
0.1686862707,
-0.3292619586,
-0.2781672478,
-0.2272059619,
0.0370317623,
-0.4157633781,
0.0835296139,
-0.2439021319,
-0.2822076678,
-0.0902423263,
0.2852125168,
-0.0320499055,
0.4013367295,
-0.2035952359,
0.0923506916,
0.0828220099,
0.0968723074,
0.0729996115,
-0.0632443875,
0.3176955879,
0.0168972239,
0.0743538588,
-0.2857044935,
0.0053975023,
-0.1422323883,
0.0324823409,
-0.0234268755,
0.150413841,
-0.2308296114,
-0.3237560987,
-0.3392715156,
-0.2038623989,
-0.1504356861,
0.052160468,
0.3335696459,
-0.2387237549,
-0.0088772327,
-0.2857560515,
-0.4090463519,
-0.0096646473,
0.3055092096,
-0.1481093615,
-0.0472045727,
0.4327270687,
0.3000044525,
-0.2102095038,
-0.1779171228,
-0.0190173909,
-0.1799962819,
-0.6621263027,
0.0823080689,
0.0360399596,
-0.042710796,
-0.2416070849,
-0.2668298781,
0.2053604722,
0.1265296191,
0.1113988757,
-0.4697988629,
-0.4082911313,
-0.2329965532,
-0.2976685166,
0.201614961,
-0.0566246845,
-0.3551496863,
-0.2588423789,
0.0327730179,
-0.2122100294,
0.0599939302,
-0.1423734725,
-0.0618366711,
0.4633506536,
-0.1418499053,
0.2244607508,
-0.1397038847,
0.0463556647,
0.401208967,
0.0694131404,
-0.1816515177,
-0.3011113703,
0.1451772451,
0.0411615483,
0.058584623,
-0.0672907233,
-0.3786490262,
-0.0527515113,
-0.2798326015,
0.1326039582,
0.3364622295,
0.242445454,
0.0756184012,
0.0943305045,
0.0986532569,
-0.0325292125,
0.3306850791,
-0.1649504006,
-0.1383993775,
0.0095240064,
0.2725931406,
-0.2107259631,
0.1175263226,
-0.3212474585,
0.153660506,
-0.0095390752,
-0.036181666,
0.0752807558,
-0.0265366957,
-0.1096813157,
0.5564430356,
0.2327182889,
0.2920390964,
-0.2722925842,
-0.2302523553,
0.275631547,
0.1339131296,
0.0165831223,
-0.2051157057,
0.1073662192,
-0.1286122501,
-0.099584952,
0.3734355867,
-0.0706341118,
-0.1355884075,
-0.1899377406,
-0.1248223186,
0.5824733973,
0.0935560167,
-0.0696672946,
0.2455470115,
-0.0136259198,
0.0776756108,
0.4613702893,
0.2502688766,
0.0169344209,
0.5474847555,
-0.3130880594,
0.0298885647,
-0.1627935916,
-0.0062185861,
-0.2004128098,
-0.4473773241,
0.1316618621,
0.310780704,
-0.0724566877,
0.1873664856,
-0.1468191892,
0.3045752645,
-0.2501968741,
0.1819010824,
0.0543670505,
0.0492204018,
-0.1095730364,
-0.0142701454,
0.3495129943,
-0.0250100493,
-0.2757629752,
-0.0046617165,
-0.1150470376,
0.1466552466,
0.379602015,
0.2733507752,
0.1335938126,
-0.1753618866,
0.0041430574,
0.2133580595,
0.1663142294,
-0.4822300076,
0.1435224861,
0.3909597695,
-0.0886782482,
0.262295723,
-0.001731379,
0.5537605882,
0.1397945881,
0.0983081311,
-0.0007226951,
-0.1064625531,
-0.0113883279,
-0.1354414523,
0.4446235597,
-0.0308795534,
-0.1025132835,
0.3387676775,
0.0280347615,
-0.1576936394,
0.1146626472,
0.1928841472,
0.123716116,
-0.1751527786,
0.2012575269,
0.0158895403,
-0.2077659667,
-0.1786324531,
0.1449804604,
-0.3786619902,
-0.1633839309,
0.2516909838,
0.0403836928,
0.2624588907,
-0.1355941147,
0.0489801392,
-0.1194115281,
0.1483440548,
0.3839923143,
0.2433495075,
-0.2853366137,
-0.0405623168,
-0.6024459004,
0.224628225,
-0.048773583,
-0.1710737795,
0.0451598838,
-0.1129756942,
-0.0471115671,
-0.1518051475,
0.3878984153,
-0.015927773,
0.1115339845,
0.2670121789,
-0.4752603173,
-0.2240056992,
0.1703025103,
-0.0663013309,
0.2272349596,
-0.3988767266,
0.1303194612,
-0.2667441368,
-0.0137349628,
-0.1426666677,
-0.1962015331,
0.1286678761,
0.3134683669,
0.3546337783,
0.1124141812,
0.2980175614,
0.0608977824,
-0.2498636246,
-0.3230273128,
0.1182480007,
-0.1321164817,
0.0156514756,
0.2199657261,
0.2973279059,
-0.4038829207,
-0.432920754,
-0.377073437,
0.5200784206,
-0.1345875263,
0.0714469254,
-0.1244054586,
-0.0493410081,
-0.0306261256,
0.273988992,
0.263312161,
0.2337563634,
0.0706376582,
0.4157320857,
-0.190689072,
-0.2998300195,
0.6595064998,
-0.1065888852,
-0.4276303649,
0.0981978923,
0.4086523056,
0.0720972568,
-0.1614484191,
-0.4712713659,
0.1547386199,
0.3244367838,
0.0784330368,
-0.2918293774,
0.2315366119,
-0.2830386758,
0.1289328337,
-0.1040055826,
0.2516618967,
0.26928249,
-0.2087138742,
-0.0591595545,
-0.1967327595
] |
https://github.com/huggingface/datasets/issues/2924 | "File name too long" error for file locks | Yes, you're right! I need to get you more info here. Either there's something going with the name itself that the file system doesn't like (an encoding that blows up the name length??) or perhaps there's something with the path that's causing the entire string to be used as a name. I haven't seen this on any system before and the Internet's not forthcoming with any info. | ## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
| 67 | "File name too long" error for file locks
## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
Yes, you're right! I need to get you more info here. Either there's something going with the name itself that the file system doesn't like (an encoding that blows up the name length??) or perhaps there's something with the path that's causing the entire string to be used as a name. I haven't seen this on any system before and the Internet's not forthcoming with any info. | [
0.0493387729,
0.0920009762,
-0.0714941099,
0.401848197,
0.4151671231,
0.2358948588,
0.6366623044,
0.2435027659,
0.2364588678,
0.2313295007,
0.0185687691,
0.0077437051,
-0.1442687213,
-0.3100363016,
-0.2015361935,
-0.244314611,
-0.158109054,
-0.0416219905,
-0.1770785898,
0.2177186608,
-0.1549791098,
0.3787366152,
0.0246381462,
0.1570836753,
-0.5360065699,
0.0900787339,
-0.129596293,
0.388674587,
-0.0215062648,
-0.3729910254,
0.0511184931,
-0.046716623,
0.0688150823,
0.8113575578,
-0.0001220686,
-0.3334413171,
0.3542335927,
-0.056298919,
-0.3271901011,
-0.2243083715,
-0.1685818732,
-0.5117117763,
-0.0345850736,
-0.4988022745,
0.1872132421,
-0.0951191336,
-0.0331906974,
-0.8021569848,
0.0410522968,
0.3733056784,
0.1268748045,
-0.0783472732,
0.0910247043,
-0.2579203546,
0.3323120773,
-0.2779889703,
0.0040847734,
0.3564024568,
0.3556976616,
-0.0988673419,
-0.1546516567,
0.2032181621,
-0.0368967988,
0.0273247212,
0.2471579909,
0.0795376152,
-0.0874830484,
-0.326164484,
0.2958056629,
0.4273938537,
0.471437484,
-0.093061924,
-0.2793130577,
-0.467697531,
0.1424981207,
-0.1251060069,
0.488530755,
-0.0762399882,
-0.2220745683,
0.1514883637,
-0.1704196483,
-0.0196211301,
-0.1235968992,
-0.1102386117,
-0.1019758433,
0.0650620982,
0.0405087098,
0.0362790152,
0.3111135066,
-0.3483148813,
0.2395954728,
0.0048368443,
0.0742737055,
0.2694600523,
-0.6542135477,
0.1469124109,
0.084268108,
0.3854928613,
0.2534899712,
0.0576435216,
-0.2659730911,
-0.1483080387,
0.1947483271,
-0.0104661286,
-0.064955011,
0.3742070794,
0.1944443434,
0.1612815559,
0.3012427092,
0.0779470801,
-0.3367466033,
-0.1069349945,
-0.0764873996,
-0.5534628034,
0.4451378584,
0.1335907578,
0.0741625279,
-0.3437120616,
0.1504582018,
0.5705772638,
0.1057045311,
-0.0104901902,
0.2287025154,
0.2733798623,
0.0054354407,
0.1107668504,
0.0830742121,
-0.0899365395,
-0.0889611915,
0.1008350775,
-0.1473124921,
-0.1107303798,
-0.2270202786,
0.1124097332,
0.0892054141,
-0.3083955646,
0.2792794108,
-0.2274651378,
0.3152399063,
-0.1249575615,
-0.0829686001,
-0.2377423942,
-0.0667323321,
0.1559672207,
-0.0591067746,
0.0739143044,
0.2452138513,
-0.2607334256,
-0.1920616627,
-0.0771117061,
-0.3397485018,
-0.285187602,
-0.0617213845,
0.0947030634,
-0.1654944718,
0.2159019858,
0.241554901,
-0.2671949267,
0.6555526257,
-0.0798194259,
0.0127977468,
-0.2747654617,
-0.1418098509,
0.0071926489,
0.0408247709,
0.5534656644,
0.1325239539,
-0.0175628886,
-0.0687893331,
0.1282822043,
0.0086660907,
0.3722594082,
0.1806451082,
-0.0535968207,
-0.4219526052,
0.3124940395,
0.2268716991,
-0.240280807,
-0.4869856834,
0.3215384781,
-0.3943073452,
0.0994933248,
0.3229114413,
0.0228829682,
0.0517103672,
-0.0245827306,
0.2853382826,
0.1822130829,
-0.0260958299,
0.0234952867,
-0.2025244832,
-0.1073305756,
-0.0406304337,
0.1691957116,
0.0109545132,
0.0670008212,
0.0796194971,
-0.1751917005,
0.2715683877,
0.0314634889,
-0.2040444613,
0.3736800551,
0.1382421255,
0.3267183602,
0.1860824227,
-0.1063276678,
-0.593750596,
0.2637210786,
-0.1218476444,
-0.1787317842,
-0.2175931036,
-0.1868049204,
-0.174988687,
-0.0072901174,
0.0034601605,
0.1351370215,
-0.0204084329,
0.283249557,
0.1417795569,
-0.1317637563,
0.0934400707,
0.5883799195,
-0.1702440977,
0.0175973661,
-0.4781186283,
-0.1711263955,
-0.1178537458,
-0.1125400066,
0.0315069407,
0.001639422,
0.3693964183,
-0.1089681834,
-0.3443508148,
0.4480754435,
0.3332765102,
0.0975326225,
-0.1789246202,
-0.0044302642,
-0.0568642244,
0.2207756937,
0.0726701021,
0.0398116149,
0.0077854358,
0.0142917857,
-0.2135763168,
0.3000160754,
-0.1408158243,
0.27127707,
0.0286139771,
0.1682408005,
0.2461793423,
-0.1318138242,
0.0643452853,
-0.1761223972,
0.6458846331,
-0.2163525224,
0.3048402369,
0.0547802746,
0.0452313498,
-0.1448626965,
0.645819366,
0.045392707,
-0.0001777746,
0.1977424622,
0.1562013775,
-0.0408152863,
-0.0193725601,
0.3064888716,
0.51114434,
0.192058593,
-0.0301227085,
-0.206505999,
0.3941577375,
-0.2238345295,
0.256318748,
0.015908191,
-0.0027930178,
0.3657029271,
0.0496182665,
-0.1290876865,
0.0514838323,
-0.8095088005,
-0.050442148,
0.223697558,
-0.3198086619,
0.1480822563,
-0.1393255591,
-0.0432044677,
-0.0237995163,
0.0004905537,
-0.0803986639,
-0.4162821174,
-0.1888938546,
0.2785061002,
-0.1418367475,
0.2145340145,
-0.1188359708,
-0.0032407343,
0.2712829709,
-0.0145384036,
-0.2950280905,
-0.0016125664,
0.0803441554,
-0.0837600976,
0.2720729709,
-0.5375036597,
0.0838036239,
-0.1256634593,
-0.063107416,
-0.5083526373,
-0.249880299,
0.1116677821,
-0.1684809625,
0.2935638726,
0.3413660824,
0.2078575045,
0.1666621864,
0.0588971674,
0.0049614832,
-0.2622788548,
0.0236697048,
0.2326638997,
0.177900672,
-0.0228181574,
-0.1917994916,
-0.0234549604,
-0.3463731706,
-0.4160332084,
0.3207849264,
0.0303033888,
0.2279278636,
0.3411895037,
-0.0708732456,
0.2978124321,
-0.0179731809,
0.2472921908,
-0.0879070163,
-0.4463702142,
0.4170608819,
-0.1525217444,
-0.2990591526,
-0.4318083823,
0.2980132997,
-0.0355094969,
0.1055191457,
-0.4223636985,
-0.1790713966,
-0.4012610912,
0.3389858603,
-0.335719645,
0.0054094102,
0.1970202625,
-0.0852011293,
-0.056348715,
-0.1069381684,
0.0849028602,
0.2325124592,
0.0110358074,
-0.0095209405,
0.0929810554,
0.2951666117,
-0.1160778031,
0.4532133639,
0.3616655767,
0.0753480345,
0.1953795552,
-0.1376696378,
0.1843571216,
-0.2590323091,
-0.1269459277,
0.0239379853,
0.1744715571,
-0.2215842754,
0.1342059076,
-0.0853910595,
0.0140822716,
-0.1333197653,
-0.057792075,
0.1078079566,
-0.2960295081,
0.0073164683,
0.0485864654,
0.0524901152,
0.031080313,
0.1456944644,
-0.1948867738,
-0.130910188,
-0.0240891837,
0.3084782958,
0.0540785715,
-0.0233559478,
-0.2468733191,
0.0915109962,
-0.3371422589,
0.4440094829,
0.1830918342,
0.2137980461,
-0.0693597645,
-0.1601749957,
-0.0800487325,
0.0460067019,
0.6831175089,
0.0991291851,
0.3160925806,
0.1554957032,
0.2547035515,
-0.1230870932,
0.0391723216,
0.0795528516,
0.37018767,
0.1390411407,
0.4079337418,
-0.230809778,
0.0376087353,
-0.1833171695,
0.1855424047,
-0.1166331917,
-0.4492169321,
-0.026285693,
0.0087962672,
-0.2636859715,
0.1616199017,
0.0336055979,
0.2442287058,
0.061672166,
0.0049132183,
-0.0601772517,
-0.0747793615,
0.1601552814,
0.1748355031,
0.281263113,
-0.4468776882,
0.2643654644,
-0.027559286,
-0.1595292985,
0.2304125279,
0.5639727712,
-0.4439827502,
-0.2478428483,
0.4144732952,
-0.3565593958,
0.0764389038,
0.428709507,
-0.3107660413,
-0.158424601,
0.3582059741,
0.6321595907,
0.1236555874,
0.0257822722,
0.0325682759,
0.1308743954,
-0.1530222595,
-0.3346109688,
0.2163308859,
0.2430950701,
-0.0178354084,
0.5360286832,
0.0242516566,
-0.3025456071,
0.2613931298,
-0.2059546858,
1.0209487677,
-0.1854491234,
0.1871505678,
-0.0190805662,
0.1287677884,
0.4992989004,
0.0092908144,
-0.0842247382,
-0.4268136919,
-0.482785821,
0.1402027607,
-0.1498040259,
0.2397721112,
-0.0366778672,
-0.1301994473,
0.3139282763,
-0.2595100999,
0.0177617222,
-0.1745312661,
0.4527937174,
-0.6466597915,
-0.2542140484,
-0.2503229976,
0.0479837768,
-0.0439813025,
0.1101505235,
0.0617119335,
0.1686862707,
-0.3292619586,
-0.2781672478,
-0.2272059619,
0.0370317623,
-0.4157633781,
0.0835296139,
-0.2439021319,
-0.2822076678,
-0.0902423263,
0.2852125168,
-0.0320499055,
0.4013367295,
-0.2035952359,
0.0923506916,
0.0828220099,
0.0968723074,
0.0729996115,
-0.0632443875,
0.3176955879,
0.0168972239,
0.0743538588,
-0.2857044935,
0.0053975023,
-0.1422323883,
0.0324823409,
-0.0234268755,
0.150413841,
-0.2308296114,
-0.3237560987,
-0.3392715156,
-0.2038623989,
-0.1504356861,
0.052160468,
0.3335696459,
-0.2387237549,
-0.0088772327,
-0.2857560515,
-0.4090463519,
-0.0096646473,
0.3055092096,
-0.1481093615,
-0.0472045727,
0.4327270687,
0.3000044525,
-0.2102095038,
-0.1779171228,
-0.0190173909,
-0.1799962819,
-0.6621263027,
0.0823080689,
0.0360399596,
-0.042710796,
-0.2416070849,
-0.2668298781,
0.2053604722,
0.1265296191,
0.1113988757,
-0.4697988629,
-0.4082911313,
-0.2329965532,
-0.2976685166,
0.201614961,
-0.0566246845,
-0.3551496863,
-0.2588423789,
0.0327730179,
-0.2122100294,
0.0599939302,
-0.1423734725,
-0.0618366711,
0.4633506536,
-0.1418499053,
0.2244607508,
-0.1397038847,
0.0463556647,
0.401208967,
0.0694131404,
-0.1816515177,
-0.3011113703,
0.1451772451,
0.0411615483,
0.058584623,
-0.0672907233,
-0.3786490262,
-0.0527515113,
-0.2798326015,
0.1326039582,
0.3364622295,
0.242445454,
0.0756184012,
0.0943305045,
0.0986532569,
-0.0325292125,
0.3306850791,
-0.1649504006,
-0.1383993775,
0.0095240064,
0.2725931406,
-0.2107259631,
0.1175263226,
-0.3212474585,
0.153660506,
-0.0095390752,
-0.036181666,
0.0752807558,
-0.0265366957,
-0.1096813157,
0.5564430356,
0.2327182889,
0.2920390964,
-0.2722925842,
-0.2302523553,
0.275631547,
0.1339131296,
0.0165831223,
-0.2051157057,
0.1073662192,
-0.1286122501,
-0.099584952,
0.3734355867,
-0.0706341118,
-0.1355884075,
-0.1899377406,
-0.1248223186,
0.5824733973,
0.0935560167,
-0.0696672946,
0.2455470115,
-0.0136259198,
0.0776756108,
0.4613702893,
0.2502688766,
0.0169344209,
0.5474847555,
-0.3130880594,
0.0298885647,
-0.1627935916,
-0.0062185861,
-0.2004128098,
-0.4473773241,
0.1316618621,
0.310780704,
-0.0724566877,
0.1873664856,
-0.1468191892,
0.3045752645,
-0.2501968741,
0.1819010824,
0.0543670505,
0.0492204018,
-0.1095730364,
-0.0142701454,
0.3495129943,
-0.0250100493,
-0.2757629752,
-0.0046617165,
-0.1150470376,
0.1466552466,
0.379602015,
0.2733507752,
0.1335938126,
-0.1753618866,
0.0041430574,
0.2133580595,
0.1663142294,
-0.4822300076,
0.1435224861,
0.3909597695,
-0.0886782482,
0.262295723,
-0.001731379,
0.5537605882,
0.1397945881,
0.0983081311,
-0.0007226951,
-0.1064625531,
-0.0113883279,
-0.1354414523,
0.4446235597,
-0.0308795534,
-0.1025132835,
0.3387676775,
0.0280347615,
-0.1576936394,
0.1146626472,
0.1928841472,
0.123716116,
-0.1751527786,
0.2012575269,
0.0158895403,
-0.2077659667,
-0.1786324531,
0.1449804604,
-0.3786619902,
-0.1633839309,
0.2516909838,
0.0403836928,
0.2624588907,
-0.1355941147,
0.0489801392,
-0.1194115281,
0.1483440548,
0.3839923143,
0.2433495075,
-0.2853366137,
-0.0405623168,
-0.6024459004,
0.224628225,
-0.048773583,
-0.1710737795,
0.0451598838,
-0.1129756942,
-0.0471115671,
-0.1518051475,
0.3878984153,
-0.015927773,
0.1115339845,
0.2670121789,
-0.4752603173,
-0.2240056992,
0.1703025103,
-0.0663013309,
0.2272349596,
-0.3988767266,
0.1303194612,
-0.2667441368,
-0.0137349628,
-0.1426666677,
-0.1962015331,
0.1286678761,
0.3134683669,
0.3546337783,
0.1124141812,
0.2980175614,
0.0608977824,
-0.2498636246,
-0.3230273128,
0.1182480007,
-0.1321164817,
0.0156514756,
0.2199657261,
0.2973279059,
-0.4038829207,
-0.432920754,
-0.377073437,
0.5200784206,
-0.1345875263,
0.0714469254,
-0.1244054586,
-0.0493410081,
-0.0306261256,
0.273988992,
0.263312161,
0.2337563634,
0.0706376582,
0.4157320857,
-0.190689072,
-0.2998300195,
0.6595064998,
-0.1065888852,
-0.4276303649,
0.0981978923,
0.4086523056,
0.0720972568,
-0.1614484191,
-0.4712713659,
0.1547386199,
0.3244367838,
0.0784330368,
-0.2918293774,
0.2315366119,
-0.2830386758,
0.1289328337,
-0.1040055826,
0.2516618967,
0.26928249,
-0.2087138742,
-0.0591595545,
-0.1967327595
] |
https://github.com/huggingface/datasets/issues/2918 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming | Hi @SBrandeis, thanks for reporting! ^^
I think this is an issue with `fsspec`: https://github.com/intake/filesystem_spec/issues/389
I will ask them if they are planning to fix it... | ## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
| 26 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
Hi @SBrandeis, thanks for reporting! ^^
I think this is an issue with `fsspec`: https://github.com/intake/filesystem_spec/issues/389
I will ask them if they are planning to fix it... | [
-0.3864648342,
-0.2204954028,
0.0894812346,
0.4387411475,
0.2157088816,
0.1229232103,
-0.0369099304,
0.3093880415,
0.2422772944,
0.0955025926,
-0.2264312804,
0.4261532128,
-0.0641759783,
0.3035329282,
-0.0094657149,
-0.2584783137,
-0.0045060329,
0.2337660491,
-0.1049253345,
0.1268759519,
-0.0005552247,
0.1941257715,
-0.2469927967,
-0.0304233357,
0.0522288159,
-0.1081044674,
0.0124068782,
0.2805254459,
-0.0595832467,
-0.4462356567,
0.1259049773,
-0.0615480281,
0.412114352,
0.3375739455,
-0.0001145032,
0.273448348,
0.4721425474,
-0.1227843612,
-0.4853444099,
-0.2121145725,
-0.2186653912,
0.0961271897,
0.0428348333,
-0.1566339433,
-0.0091344267,
0.0711133182,
-0.0400048569,
-0.7192989588,
0.3178498149,
0.3456362188,
0.177849859,
0.0426002666,
-0.0489488281,
0.026822377,
0.068838805,
-0.2986649871,
-0.0920066088,
0.1218171716,
0.2367272973,
0.2287400663,
-0.3595731258,
0.3845902681,
-0.0658879802,
0.060183946,
0.0944150537,
0.0967236087,
-0.1749502718,
-0.4655050933,
-0.0073940558,
0.1884143203,
0.6776788235,
-0.2555165887,
-0.4161982536,
-0.2319882214,
-0.0021709763,
-0.6144573689,
0.1465313435,
0.1489271969,
-0.4673650861,
0.1280595064,
0.245963186,
-0.0087530576,
-0.3279941678,
-0.0458732359,
-0.2467990518,
0.388222456,
-0.0767855197,
-0.0237270556,
0.0272941515,
-0.0866288543,
0.4627742171,
-0.2110349238,
-0.284593761,
-0.06397935,
-0.4397553802,
-0.0420654863,
-0.0765122473,
-0.0941094235,
0.1681464314,
0.2153903097,
0.2953205109,
0.0882523358,
0.1543644965,
0.092644155,
0.3555267751,
0.360866785,
0.0598315187,
0.1853773296,
0.1311808228,
0.0994314179,
0.1366243809,
-0.1818916947,
-0.1464888602,
-0.0372806117,
0.0281630084,
-0.0131143257,
0.2628583312,
-0.1912379116,
-0.4138479531,
0.0297919512,
-0.305721581,
-0.0794671923,
0.0055906363,
0.2817170322,
0.095834136,
0.418780148,
0.0194581151,
0.1178673655,
-0.2396833897,
-0.4573937953,
-0.0878112018,
-0.1247183457,
-0.0010086223,
0.1233464703,
0.0153353065,
-0.1886833608,
0.151573807,
-0.0465375893,
0.1621008515,
-0.0012184083,
-0.0208561607,
-0.1100593656,
0.0216294136,
0.2049841136,
0.2180561125,
0.164035216,
0.179515332,
-0.1997853965,
-0.1306825131,
0.0886228085,
-0.1416330785,
-0.1671276838,
-0.1788373142,
0.2166469991,
-0.009402249,
-0.3506268561,
-0.0937892646,
0.2814686596,
0.1409592628,
-0.2037899792,
-0.1410703659,
-0.0391464457,
-0.1241322234,
-0.0865158141,
0.1792778969,
0.5796176791,
-0.1855917424,
-0.1380211264,
-0.1521385312,
0.0008937344,
0.5833054185,
0.3344026804,
-0.0607915819,
0.0897967964,
-0.1707224548,
0.1476538479,
0.5017136335,
-0.1436582506,
-0.5796043873,
0.5436658263,
-0.0396082923,
0.5637280941,
0.2707029283,
0.0225365721,
0.1742345691,
0.0431194082,
0.3135291934,
0.3299021721,
-0.1484594196,
0.0074818879,
-0.3334666491,
-0.0399839543,
0.4416947365,
0.1912288219,
0.0674292073,
0.2502860725,
-0.02887417,
-0.0626680106,
0.3689775467,
-0.0752569586,
0.0763452575,
0.0410077199,
0.1468884051,
0.0120372931,
0.1379382908,
-0.2090768516,
-0.310682863,
0.297231108,
0.0749307871,
0.0127099585,
-0.3174343705,
0.2031728178,
-0.1906454861,
0.0017470643,
-0.2628930211,
-0.2590404749,
0.1243169904,
0.3170803189,
0.0756207407,
0.0505897701,
-0.3084765673,
0.7747215033,
-0.0782549381,
-0.0131347179,
-0.4549140334,
0.2024927884,
-0.0707771033,
-0.201457262,
0.0164403692,
-0.1265656799,
0.067255415,
-0.0161920432,
-0.2579913735,
0.331320107,
-0.2366141379,
0.2640711963,
-0.1954373717,
-0.1731968075,
0.2897444367,
-0.3644789457,
-0.0866842717,
0.2706030309,
0.107503891,
0.1252098978,
-0.0176987406,
0.1480840296,
0.2070917338,
0.2361333817,
0.0434488654,
0.1143488213,
0.1961681545,
-0.0816748887,
-0.0686836541,
-0.0850089863,
0.3240483999,
-0.3548791111,
0.0467498153,
-0.1989232302,
-0.2722991705,
0.0823630542,
0.3586786091,
-0.1403827518,
-0.0492742881,
0.3303243518,
-0.2885321975,
-0.1639077365,
0.3145601749,
0.1940100491,
0.4723354578,
0.0815223008,
0.2573351562,
-0.0455883741,
-0.1886482388,
-0.0735060126,
0.3051701188,
0.1374841779,
0.0314635076,
0.2464114279,
0.0300060846,
0.1635745317,
-0.3229162097,
-0.3497171402,
-0.0566318557,
0.1123418137,
-0.320186913,
0.306301713,
-0.3882682323,
-0.4651740491,
0.0463514589,
0.1560088545,
0.0689052045,
-0.3235586286,
-0.1817545891,
0.2325055003,
-0.0038824454,
0.1636845171,
-0.268206507,
0.0895482749,
0.2671771646,
-0.0134687396,
-0.3418698907,
-0.1808480024,
-0.2729628682,
0.0591980219,
0.1749955416,
-0.422804594,
0.176919207,
0.0074263141,
-0.116053015,
-0.1401736885,
-0.0764234588,
0.3197819591,
-0.1554996967,
0.1568954736,
-0.2774870396,
0.1493913531,
0.2213631719,
-0.250348866,
0.1219482943,
0.0908335373,
-0.1187845469,
0.2801246047,
0.0940898061,
-0.0241613425,
-0.0305835083,
-0.3010805547,
-0.3024662733,
-0.6177491546,
0.0549682453,
0.0454261452,
0.2135514915,
0.1643047035,
0.0170348659,
0.0968244523,
0.3292070925,
0.0991601646,
-0.1142122,
-0.4199432731,
0.3747450411,
-0.1670145541,
-0.2868407965,
-0.3248367608,
-0.068159759,
0.197289899,
0.2589268088,
-0.5295243263,
0.2950168252,
-0.408103317,
0.0848926604,
-0.3834520578,
-0.0974560529,
-0.0261519365,
0.0762888789,
-0.0349893793,
-0.1878575832,
0.0707456768,
-0.1169515103,
0.099007532,
0.2066107243,
0.1086307317,
0.3698712587,
0.1008495316,
0.3327508271,
0.4812107384,
-0.0195495207,
0.340754807,
0.0828914344,
0.1538008004,
-0.1004335433,
-0.0627882555,
-0.0955620185,
-0.2280800343,
-0.0261197612,
0.0981995016,
-0.0962132961,
-0.5762302876,
-0.2840516567,
0.0549152717,
-0.0692367107,
-0.2383102626,
0.0528835431,
-0.511775136,
0.0420480222,
-0.1872567534,
0.158339709,
0.0807968155,
0.0520014092,
0.0860458016,
0.1772524118,
0.126164645,
0.172119841,
-0.1850209981,
-0.0639052689,
-0.4881905019,
0.1825859249,
0.1051265746,
0.4215747118,
-0.1678104103,
-0.1327164173,
0.079114981,
-0.0652067959,
0.3487039804,
-0.2754174471,
0.003567344,
0.2673938274,
0.1421359777,
-0.141551882,
0.0917669758,
-0.3209462762,
0.1368290484,
0.2359539717,
0.0974200815,
-0.1718233079,
0.0333401039,
-0.0884199217,
-0.0724965036,
-0.1253026724,
-0.0163988993,
-0.1704962552,
-0.2492374927,
-0.152010262,
-0.1342425346,
0.2032724023,
0.1256834567,
-0.0124602318,
-0.0567927919,
-0.0460818298,
-0.0396244228,
0.2418597192,
0.2213253379,
0.1399097294,
-0.072280094,
0.2290112525,
0.0671990812,
0.2844446599,
0.229216665,
0.8364325762,
0.1181944758,
-0.562425375,
0.2350821197,
0.2339566648,
0.1660988778,
0.1305403411,
-0.1482324898,
-0.0085168146,
-0.040384464,
0.2698211968,
-0.3024733961,
0.2146551162,
0.2112326026,
-0.0507210419,
-0.5149304271,
-0.4357539117,
0.5883386731,
-0.0393684581,
-0.0761906728,
0.7872931957,
-0.1665047705,
-0.3171558976,
0.4775416255,
0.023435384,
0.7585883141,
0.0943951458,
0.2168688178,
0.2407481968,
-0.3207278252,
0.5003328323,
-0.2320683897,
0.3346685469,
-0.1206095293,
-0.3350296617,
-0.0831094384,
-0.104109481,
0.1709020287,
-0.1476038396,
-0.6302540898,
0.1709610522,
-0.0596439317,
-0.2528054118,
0.3353526592,
0.2742265463,
-0.6082693934,
-0.3062929511,
-0.0675496459,
0.1388827115,
-0.2213594615,
0.3239611387,
0.1382447928,
-0.2202336192,
-0.0515734516,
-0.0843103752,
-0.470235914,
0.4758627415,
-0.2765564322,
0.1624137312,
-0.2390312552,
-0.476098299,
0.1513126493,
0.2664023638,
-0.1421327591,
-0.2257857323,
-0.1582509279,
0.2350440919,
0.1860539317,
0.128023535,
0.0993066132,
0.1514587104,
0.388358593,
0.0532773808,
-0.0168123841,
0.1884423494,
-0.0089799501,
-0.1606285572,
-0.0637813061,
0.0554575026,
0.3183137774,
-0.2681801915,
0.2368576229,
-0.1058514044,
0.042925328,
-0.184253186,
0.0869721249,
-0.0188317224,
-0.174054563,
-0.0738877654,
-0.081296958,
-0.2196761668,
-0.084744215,
0.3771201372,
0.1454578191,
0.3179714084,
0.4994189143,
0.0281168967,
-0.1778804362,
-0.1036715209,
-0.0551505983,
-0.2931397259,
-0.2526119053,
0.0693600997,
-0.2414766699,
-0.1610281765,
-0.2706694603,
0.0038263733,
0.0448378474,
-0.1035543606,
-0.1137387976,
-0.2993662357,
-0.1906369328,
-0.0266143344,
-0.1242438555,
0.2199307382,
-0.1722204089,
0.0222038664,
0.0031198412,
0.1290861517,
-0.2706837952,
-0.1228594556,
-0.0753693059,
0.0231181793,
0.2672104836,
0.029267557,
0.2592339218,
0.109669283,
0.1476227641,
0.313904345,
-0.0276747905,
-0.1609540135,
-0.1787950695,
0.1384893656,
0.0165314712,
-0.3480512798,
-0.1548940837,
-0.0566204414,
0.0126906075,
-0.1251360923,
0.3503145874,
0.181230247,
0.0380967334,
0.2706008554,
0.1240137368,
0.0563359968,
-0.2326476872,
0.1542366892,
-0.2642732859,
0.2401307076,
0.0811118111,
0.0928403959,
-0.0755398124,
-0.0118691325,
-0.3646137714,
0.0622696355,
0.1017948836,
-0.0280174632,
0.5909270644,
-0.4241806269,
0.1720450073,
-0.0497745387,
0.0660299733,
0.4045223892,
-0.229618609,
-0.2089620382,
0.0850853324,
0.2000515163,
-0.0432030633,
-0.2126209289,
-0.4010485411,
-0.1016408652,
0.0112390146,
0.1459596306,
-0.1068902537,
-0.2721834779,
0.0999631286,
-0.2103082985,
0.48598364,
0.3358430862,
0.2670662999,
0.4836386442,
-0.1811282486,
0.0228469688,
-0.2260247916,
0.0204594508,
0.1999065429,
0.2970435023,
0.0035515912,
-0.0078699626,
-0.1613660157,
0.217818886,
-0.1859749407,
-0.4821960926,
-0.0797477886,
0.1024475992,
-0.164754957,
0.390193522,
0.1489098668,
0.1521605253,
-0.2779349387,
-0.0519218668,
-0.0458418429,
-0.0661265701,
-0.0142798405,
-0.0960804075,
0.1068765968,
-0.0128561333,
-0.3279227614,
0.0976090282,
0.0123998635,
0.0633682758,
-0.0198641904,
0.2808056474,
-0.2884627879,
-0.1185013875,
-0.0822275877,
0.1043176353,
0.2999255657,
-0.3544149995,
0.4440691769,
0.3661907911,
-0.1568612754,
0.0282510035,
0.0700020269,
0.4816073477,
0.2853378356,
-0.176650703,
0.0946500301,
0.3374168277,
-0.0436373316,
-0.0402214304,
0.0442540981,
0.2830949128,
0.1793198287,
0.4566898048,
0.0887393951,
-0.1485420465,
0.104571797,
0.0814352483,
0.2538891733,
-0.2799381614,
0.4623195827,
-0.1195058674,
0.0366923809,
0.0272422433,
-0.3365722299,
-0.5624158382,
-0.0282045491,
0.0348957665,
-0.2285001278,
0.0745237544,
-0.0081124082,
0.0628782436,
0.1139546931,
0.4926683009,
0.3248411119,
-0.0188455544,
-0.2245095074,
-0.1508788764,
-0.235583514,
0.2332023382,
-0.0674799085,
-0.1231483817,
0.1752854586,
0.2219230831,
-0.004841473,
0.1680495143,
-0.158444792,
0.0204545669,
-0.2672834694,
0.1405725628,
-0.3995795846,
-0.3515672982,
0.1919632256,
0.1735795438,
-0.0483117215,
-0.576480031,
0.1881390959,
-0.150238961,
0.160817802,
0.0926133096,
-0.241848141,
0.101145193,
-0.2756582797,
0.5297336578,
0.2331106514,
0.3792003691,
-0.1842953563,
-0.4119566083,
-0.0992462337,
-0.3762303293,
-0.2749149203,
-0.0155846253,
0.1083336696,
0.5696321726,
-0.1493341923,
-0.2373838723,
-0.3574707806,
0.3262626231,
0.0608898401,
-0.2656731308,
-0.2735390067,
0.1733702123,
-0.1194599271,
0.2131261379,
0.3050512075,
0.3803451955,
-0.0287129171,
0.1639949232,
-0.2235155702,
-0.4333210588,
0.5773114562,
-0.3461061716,
-0.2659670711,
0.2418414205,
0.0638137534,
0.326497674,
0.2410196811,
-0.4596661925,
0.0893657058,
0.3556544781,
-0.2354130596,
-0.1511853337,
0.1421460807,
0.22597,
-0.0607199222,
-0.0850398764,
0.4553109407,
0.2423965186,
-0.2492040098,
0.1750814915,
-0.1786387712
] |
https://github.com/huggingface/datasets/issues/2918 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming | Code to reproduce the bug: `ClientPayloadError: 400, message='Can not decode content-encoding: gzip'`
```python
In [1]: import fsspec
In [2]: import json
In [3]: with fsspec.open('https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/test.jsonl', encoding="utf-8") as f:
...: for row in f:
...: data = json.loads(row)
...:
---------------------------------------------------------------------------
ClientPayloadError Traceback (most recent call last)
``` | ## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
| 46 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
Code to reproduce the bug: `ClientPayloadError: 400, message='Can not decode content-encoding: gzip'`
```python
In [1]: import fsspec
In [2]: import json
In [3]: with fsspec.open('https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/test.jsonl', encoding="utf-8") as f:
...: for row in f:
...: data = json.loads(row)
...:
---------------------------------------------------------------------------
ClientPayloadError Traceback (most recent call last)
``` | [
-0.3864648342,
-0.2204954028,
0.0894812346,
0.4387411475,
0.2157088816,
0.1229232103,
-0.0369099304,
0.3093880415,
0.2422772944,
0.0955025926,
-0.2264312804,
0.4261532128,
-0.0641759783,
0.3035329282,
-0.0094657149,
-0.2584783137,
-0.0045060329,
0.2337660491,
-0.1049253345,
0.1268759519,
-0.0005552247,
0.1941257715,
-0.2469927967,
-0.0304233357,
0.0522288159,
-0.1081044674,
0.0124068782,
0.2805254459,
-0.0595832467,
-0.4462356567,
0.1259049773,
-0.0615480281,
0.412114352,
0.3375739455,
-0.0001145032,
0.273448348,
0.4721425474,
-0.1227843612,
-0.4853444099,
-0.2121145725,
-0.2186653912,
0.0961271897,
0.0428348333,
-0.1566339433,
-0.0091344267,
0.0711133182,
-0.0400048569,
-0.7192989588,
0.3178498149,
0.3456362188,
0.177849859,
0.0426002666,
-0.0489488281,
0.026822377,
0.068838805,
-0.2986649871,
-0.0920066088,
0.1218171716,
0.2367272973,
0.2287400663,
-0.3595731258,
0.3845902681,
-0.0658879802,
0.060183946,
0.0944150537,
0.0967236087,
-0.1749502718,
-0.4655050933,
-0.0073940558,
0.1884143203,
0.6776788235,
-0.2555165887,
-0.4161982536,
-0.2319882214,
-0.0021709763,
-0.6144573689,
0.1465313435,
0.1489271969,
-0.4673650861,
0.1280595064,
0.245963186,
-0.0087530576,
-0.3279941678,
-0.0458732359,
-0.2467990518,
0.388222456,
-0.0767855197,
-0.0237270556,
0.0272941515,
-0.0866288543,
0.4627742171,
-0.2110349238,
-0.284593761,
-0.06397935,
-0.4397553802,
-0.0420654863,
-0.0765122473,
-0.0941094235,
0.1681464314,
0.2153903097,
0.2953205109,
0.0882523358,
0.1543644965,
0.092644155,
0.3555267751,
0.360866785,
0.0598315187,
0.1853773296,
0.1311808228,
0.0994314179,
0.1366243809,
-0.1818916947,
-0.1464888602,
-0.0372806117,
0.0281630084,
-0.0131143257,
0.2628583312,
-0.1912379116,
-0.4138479531,
0.0297919512,
-0.305721581,
-0.0794671923,
0.0055906363,
0.2817170322,
0.095834136,
0.418780148,
0.0194581151,
0.1178673655,
-0.2396833897,
-0.4573937953,
-0.0878112018,
-0.1247183457,
-0.0010086223,
0.1233464703,
0.0153353065,
-0.1886833608,
0.151573807,
-0.0465375893,
0.1621008515,
-0.0012184083,
-0.0208561607,
-0.1100593656,
0.0216294136,
0.2049841136,
0.2180561125,
0.164035216,
0.179515332,
-0.1997853965,
-0.1306825131,
0.0886228085,
-0.1416330785,
-0.1671276838,
-0.1788373142,
0.2166469991,
-0.009402249,
-0.3506268561,
-0.0937892646,
0.2814686596,
0.1409592628,
-0.2037899792,
-0.1410703659,
-0.0391464457,
-0.1241322234,
-0.0865158141,
0.1792778969,
0.5796176791,
-0.1855917424,
-0.1380211264,
-0.1521385312,
0.0008937344,
0.5833054185,
0.3344026804,
-0.0607915819,
0.0897967964,
-0.1707224548,
0.1476538479,
0.5017136335,
-0.1436582506,
-0.5796043873,
0.5436658263,
-0.0396082923,
0.5637280941,
0.2707029283,
0.0225365721,
0.1742345691,
0.0431194082,
0.3135291934,
0.3299021721,
-0.1484594196,
0.0074818879,
-0.3334666491,
-0.0399839543,
0.4416947365,
0.1912288219,
0.0674292073,
0.2502860725,
-0.02887417,
-0.0626680106,
0.3689775467,
-0.0752569586,
0.0763452575,
0.0410077199,
0.1468884051,
0.0120372931,
0.1379382908,
-0.2090768516,
-0.310682863,
0.297231108,
0.0749307871,
0.0127099585,
-0.3174343705,
0.2031728178,
-0.1906454861,
0.0017470643,
-0.2628930211,
-0.2590404749,
0.1243169904,
0.3170803189,
0.0756207407,
0.0505897701,
-0.3084765673,
0.7747215033,
-0.0782549381,
-0.0131347179,
-0.4549140334,
0.2024927884,
-0.0707771033,
-0.201457262,
0.0164403692,
-0.1265656799,
0.067255415,
-0.0161920432,
-0.2579913735,
0.331320107,
-0.2366141379,
0.2640711963,
-0.1954373717,
-0.1731968075,
0.2897444367,
-0.3644789457,
-0.0866842717,
0.2706030309,
0.107503891,
0.1252098978,
-0.0176987406,
0.1480840296,
0.2070917338,
0.2361333817,
0.0434488654,
0.1143488213,
0.1961681545,
-0.0816748887,
-0.0686836541,
-0.0850089863,
0.3240483999,
-0.3548791111,
0.0467498153,
-0.1989232302,
-0.2722991705,
0.0823630542,
0.3586786091,
-0.1403827518,
-0.0492742881,
0.3303243518,
-0.2885321975,
-0.1639077365,
0.3145601749,
0.1940100491,
0.4723354578,
0.0815223008,
0.2573351562,
-0.0455883741,
-0.1886482388,
-0.0735060126,
0.3051701188,
0.1374841779,
0.0314635076,
0.2464114279,
0.0300060846,
0.1635745317,
-0.3229162097,
-0.3497171402,
-0.0566318557,
0.1123418137,
-0.320186913,
0.306301713,
-0.3882682323,
-0.4651740491,
0.0463514589,
0.1560088545,
0.0689052045,
-0.3235586286,
-0.1817545891,
0.2325055003,
-0.0038824454,
0.1636845171,
-0.268206507,
0.0895482749,
0.2671771646,
-0.0134687396,
-0.3418698907,
-0.1808480024,
-0.2729628682,
0.0591980219,
0.1749955416,
-0.422804594,
0.176919207,
0.0074263141,
-0.116053015,
-0.1401736885,
-0.0764234588,
0.3197819591,
-0.1554996967,
0.1568954736,
-0.2774870396,
0.1493913531,
0.2213631719,
-0.250348866,
0.1219482943,
0.0908335373,
-0.1187845469,
0.2801246047,
0.0940898061,
-0.0241613425,
-0.0305835083,
-0.3010805547,
-0.3024662733,
-0.6177491546,
0.0549682453,
0.0454261452,
0.2135514915,
0.1643047035,
0.0170348659,
0.0968244523,
0.3292070925,
0.0991601646,
-0.1142122,
-0.4199432731,
0.3747450411,
-0.1670145541,
-0.2868407965,
-0.3248367608,
-0.068159759,
0.197289899,
0.2589268088,
-0.5295243263,
0.2950168252,
-0.408103317,
0.0848926604,
-0.3834520578,
-0.0974560529,
-0.0261519365,
0.0762888789,
-0.0349893793,
-0.1878575832,
0.0707456768,
-0.1169515103,
0.099007532,
0.2066107243,
0.1086307317,
0.3698712587,
0.1008495316,
0.3327508271,
0.4812107384,
-0.0195495207,
0.340754807,
0.0828914344,
0.1538008004,
-0.1004335433,
-0.0627882555,
-0.0955620185,
-0.2280800343,
-0.0261197612,
0.0981995016,
-0.0962132961,
-0.5762302876,
-0.2840516567,
0.0549152717,
-0.0692367107,
-0.2383102626,
0.0528835431,
-0.511775136,
0.0420480222,
-0.1872567534,
0.158339709,
0.0807968155,
0.0520014092,
0.0860458016,
0.1772524118,
0.126164645,
0.172119841,
-0.1850209981,
-0.0639052689,
-0.4881905019,
0.1825859249,
0.1051265746,
0.4215747118,
-0.1678104103,
-0.1327164173,
0.079114981,
-0.0652067959,
0.3487039804,
-0.2754174471,
0.003567344,
0.2673938274,
0.1421359777,
-0.141551882,
0.0917669758,
-0.3209462762,
0.1368290484,
0.2359539717,
0.0974200815,
-0.1718233079,
0.0333401039,
-0.0884199217,
-0.0724965036,
-0.1253026724,
-0.0163988993,
-0.1704962552,
-0.2492374927,
-0.152010262,
-0.1342425346,
0.2032724023,
0.1256834567,
-0.0124602318,
-0.0567927919,
-0.0460818298,
-0.0396244228,
0.2418597192,
0.2213253379,
0.1399097294,
-0.072280094,
0.2290112525,
0.0671990812,
0.2844446599,
0.229216665,
0.8364325762,
0.1181944758,
-0.562425375,
0.2350821197,
0.2339566648,
0.1660988778,
0.1305403411,
-0.1482324898,
-0.0085168146,
-0.040384464,
0.2698211968,
-0.3024733961,
0.2146551162,
0.2112326026,
-0.0507210419,
-0.5149304271,
-0.4357539117,
0.5883386731,
-0.0393684581,
-0.0761906728,
0.7872931957,
-0.1665047705,
-0.3171558976,
0.4775416255,
0.023435384,
0.7585883141,
0.0943951458,
0.2168688178,
0.2407481968,
-0.3207278252,
0.5003328323,
-0.2320683897,
0.3346685469,
-0.1206095293,
-0.3350296617,
-0.0831094384,
-0.104109481,
0.1709020287,
-0.1476038396,
-0.6302540898,
0.1709610522,
-0.0596439317,
-0.2528054118,
0.3353526592,
0.2742265463,
-0.6082693934,
-0.3062929511,
-0.0675496459,
0.1388827115,
-0.2213594615,
0.3239611387,
0.1382447928,
-0.2202336192,
-0.0515734516,
-0.0843103752,
-0.470235914,
0.4758627415,
-0.2765564322,
0.1624137312,
-0.2390312552,
-0.476098299,
0.1513126493,
0.2664023638,
-0.1421327591,
-0.2257857323,
-0.1582509279,
0.2350440919,
0.1860539317,
0.128023535,
0.0993066132,
0.1514587104,
0.388358593,
0.0532773808,
-0.0168123841,
0.1884423494,
-0.0089799501,
-0.1606285572,
-0.0637813061,
0.0554575026,
0.3183137774,
-0.2681801915,
0.2368576229,
-0.1058514044,
0.042925328,
-0.184253186,
0.0869721249,
-0.0188317224,
-0.174054563,
-0.0738877654,
-0.081296958,
-0.2196761668,
-0.084744215,
0.3771201372,
0.1454578191,
0.3179714084,
0.4994189143,
0.0281168967,
-0.1778804362,
-0.1036715209,
-0.0551505983,
-0.2931397259,
-0.2526119053,
0.0693600997,
-0.2414766699,
-0.1610281765,
-0.2706694603,
0.0038263733,
0.0448378474,
-0.1035543606,
-0.1137387976,
-0.2993662357,
-0.1906369328,
-0.0266143344,
-0.1242438555,
0.2199307382,
-0.1722204089,
0.0222038664,
0.0031198412,
0.1290861517,
-0.2706837952,
-0.1228594556,
-0.0753693059,
0.0231181793,
0.2672104836,
0.029267557,
0.2592339218,
0.109669283,
0.1476227641,
0.313904345,
-0.0276747905,
-0.1609540135,
-0.1787950695,
0.1384893656,
0.0165314712,
-0.3480512798,
-0.1548940837,
-0.0566204414,
0.0126906075,
-0.1251360923,
0.3503145874,
0.181230247,
0.0380967334,
0.2706008554,
0.1240137368,
0.0563359968,
-0.2326476872,
0.1542366892,
-0.2642732859,
0.2401307076,
0.0811118111,
0.0928403959,
-0.0755398124,
-0.0118691325,
-0.3646137714,
0.0622696355,
0.1017948836,
-0.0280174632,
0.5909270644,
-0.4241806269,
0.1720450073,
-0.0497745387,
0.0660299733,
0.4045223892,
-0.229618609,
-0.2089620382,
0.0850853324,
0.2000515163,
-0.0432030633,
-0.2126209289,
-0.4010485411,
-0.1016408652,
0.0112390146,
0.1459596306,
-0.1068902537,
-0.2721834779,
0.0999631286,
-0.2103082985,
0.48598364,
0.3358430862,
0.2670662999,
0.4836386442,
-0.1811282486,
0.0228469688,
-0.2260247916,
0.0204594508,
0.1999065429,
0.2970435023,
0.0035515912,
-0.0078699626,
-0.1613660157,
0.217818886,
-0.1859749407,
-0.4821960926,
-0.0797477886,
0.1024475992,
-0.164754957,
0.390193522,
0.1489098668,
0.1521605253,
-0.2779349387,
-0.0519218668,
-0.0458418429,
-0.0661265701,
-0.0142798405,
-0.0960804075,
0.1068765968,
-0.0128561333,
-0.3279227614,
0.0976090282,
0.0123998635,
0.0633682758,
-0.0198641904,
0.2808056474,
-0.2884627879,
-0.1185013875,
-0.0822275877,
0.1043176353,
0.2999255657,
-0.3544149995,
0.4440691769,
0.3661907911,
-0.1568612754,
0.0282510035,
0.0700020269,
0.4816073477,
0.2853378356,
-0.176650703,
0.0946500301,
0.3374168277,
-0.0436373316,
-0.0402214304,
0.0442540981,
0.2830949128,
0.1793198287,
0.4566898048,
0.0887393951,
-0.1485420465,
0.104571797,
0.0814352483,
0.2538891733,
-0.2799381614,
0.4623195827,
-0.1195058674,
0.0366923809,
0.0272422433,
-0.3365722299,
-0.5624158382,
-0.0282045491,
0.0348957665,
-0.2285001278,
0.0745237544,
-0.0081124082,
0.0628782436,
0.1139546931,
0.4926683009,
0.3248411119,
-0.0188455544,
-0.2245095074,
-0.1508788764,
-0.235583514,
0.2332023382,
-0.0674799085,
-0.1231483817,
0.1752854586,
0.2219230831,
-0.004841473,
0.1680495143,
-0.158444792,
0.0204545669,
-0.2672834694,
0.1405725628,
-0.3995795846,
-0.3515672982,
0.1919632256,
0.1735795438,
-0.0483117215,
-0.576480031,
0.1881390959,
-0.150238961,
0.160817802,
0.0926133096,
-0.241848141,
0.101145193,
-0.2756582797,
0.5297336578,
0.2331106514,
0.3792003691,
-0.1842953563,
-0.4119566083,
-0.0992462337,
-0.3762303293,
-0.2749149203,
-0.0155846253,
0.1083336696,
0.5696321726,
-0.1493341923,
-0.2373838723,
-0.3574707806,
0.3262626231,
0.0608898401,
-0.2656731308,
-0.2735390067,
0.1733702123,
-0.1194599271,
0.2131261379,
0.3050512075,
0.3803451955,
-0.0287129171,
0.1639949232,
-0.2235155702,
-0.4333210588,
0.5773114562,
-0.3461061716,
-0.2659670711,
0.2418414205,
0.0638137534,
0.326497674,
0.2410196811,
-0.4596661925,
0.0893657058,
0.3556544781,
-0.2354130596,
-0.1511853337,
0.1421460807,
0.22597,
-0.0607199222,
-0.0850398764,
0.4553109407,
0.2423965186,
-0.2492040098,
0.1750814915,
-0.1786387712
] |
https://github.com/huggingface/datasets/issues/2917 | windows download abnormal | Hi ! Is there some kind of proxy that is configured in your browser that gives you access to internet ? If it's the case it could explain why it doesn't work in the code, since the proxy wouldn't be used | ## Describe the bug
The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why??
## Steps to reproduce the bug
```python3.7 + windows
![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png)
# Sample code to reproduce the bug
```
## Expected results
It can be downloaded normally.
## Actual results
it cann't
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.11.0
- Platform:windows
- Python version:3.7
- PyArrow version:
| 41 | windows download abnormal
## Describe the bug
The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why??
## Steps to reproduce the bug
```python3.7 + windows
![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png)
# Sample code to reproduce the bug
```
## Expected results
It can be downloaded normally.
## Actual results
it cann't
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.11.0
- Platform:windows
- Python version:3.7
- PyArrow version:
Hi ! Is there some kind of proxy that is configured in your browser that gives you access to internet ? If it's the case it could explain why it doesn't work in the code, since the proxy wouldn't be used | [
-0.1240488887,
-0.2018252164,
-0.0703398064,
0.1894593984,
0.2147732973,
-0.1120501086,
0.0276675727,
0.0718734711,
0.2805815339,
0.0850562528,
0.1648732573,
0.1174070984,
0.1554814279,
0.1022038758,
0.1588473022,
-0.2615040839,
0.0301856399,
0.0393100455,
-0.169151172,
0.0088646263,
-0.3215380311,
0.0859282911,
-0.3066692352,
-0.1127144322,
0.1635586768,
0.0324398428,
-0.2886961699,
0.3004710376,
-0.2546001375,
-0.1694043577,
0.0993697718,
-0.0709082186,
0.1850662977,
0.3519498408,
-0.0001087431,
0.0813255683,
0.3922839761,
0.0235311761,
0.0174284242,
-0.0581744313,
-0.2938909233,
-0.1413685679,
-0.1911944151,
-0.3151717186,
0.0997060388,
0.2347301245,
0.0454375595,
-0.1112285852,
0.2443626821,
0.4491446018,
0.3060822785,
0.4809368849,
-0.1150027737,
0.0517268591,
0.455463171,
0.0505651236,
-0.1816766709,
0.2491995245,
0.3063494563,
-0.1419381499,
0.2570020854,
-0.0594111979,
-0.1210112572,
0.0115585625,
0.0310036615,
0.1206355989,
-0.0494647808,
-0.5093154311,
0.1234318316,
0.1743747741,
0.3126612604,
-0.1531089842,
-0.1585405618,
0.1158471853,
-0.1493998468,
-0.1856969893,
0.2733875513,
0.2762598395,
-0.1393173039,
0.1871819943,
-0.2805482745,
0.1743874103,
-0.2056799978,
0.2596930861,
-0.119107537,
0.3299075961,
-0.0759499595,
0.1894465387,
-0.1710140407,
0.3167180121,
0.03771073,
-0.3272550106,
-0.0156769026,
-0.0039894953,
0.0856896043,
0.1057075113,
0.0493557155,
0.5118296146,
0.0573040396,
0.2643458843,
0.033488024,
-0.0560189895,
0.2410900742,
0.0700189471,
0.0902726352,
0.0949796215,
-0.2958666086,
0.0660439283,
0.3817819655,
0.3139165938,
-0.0065796748,
-0.02620079,
-0.0330497399,
-0.3155065775,
0.2965117991,
-0.0053919833,
0.4860351682,
-0.0474271923,
-0.5569108725,
0.0026351959,
0.0146285817,
0.0908919573,
-0.002352789,
0.2526860237,
-0.3218320608,
-0.0225809328,
0.1233704463,
0.3000147045,
-0.1240451187,
0.1943567395,
0.0040628873,
0.1806814075,
-0.2520694137,
-0.2260729373,
0.3475829959,
-0.06712915,
0.1201247722,
0.1935616732,
-0.0914586112,
-0.0428735502,
0.0132015496,
-0.0805156454,
0.0271826889,
0.4316019416,
0.1952558309,
0.3702530861,
-0.0094594127,
0.0780785084,
-0.0707269013,
0.206293419,
-0.1463155895,
-0.0249698088,
0.0211349856,
0.2608018816,
-0.3265891671,
-0.188560009,
0.0397937968,
-0.26646626,
-0.0409109034,
-0.0293884203,
0.2495980859,
-0.1964798272,
-0.289147824,
-0.3841309249,
0.0929921865,
0.5247912407,
-0.3482267857,
0.2068513334,
0.0614638366,
-0.2714428902,
0.4014220834,
0.0586098172,
0.1309568286,
0.160509944,
-0.4302998185,
0.0415053368,
0.1171313971,
-0.3501322269,
-0.4970427454,
0.3584974408,
-0.1899528503,
0.3206912577,
0.1783814132,
0.0919841528,
0.2939104438,
-0.0833817273,
-0.0120383985,
0.3098939061,
-0.0224834196,
0.0582433119,
-0.1245777756,
-0.1297620237,
0.1300002038,
0.1085214466,
0.1208593249,
0.1432957649,
0.2932306826,
-0.1360394657,
0.3164028525,
0.1788196564,
0.0964891165,
0.2375453562,
0.2550178766,
0.2680895925,
0.1236546785,
-0.2269860059,
0.0015704669,
0.2861068249,
-0.0804184601,
-0.1590323746,
-0.2410325855,
-0.221806109,
-0.5582577586,
0.0224495903,
-0.1886621267,
-0.2219812721,
0.1653015018,
0.137260139,
0.2495528758,
0.0426939055,
0.0754467472,
0.1793364882,
-0.0071864501,
-0.0684595406,
0.0751904324,
0.3602053821,
-0.3439498246,
-0.050523743,
-0.0965959281,
-0.0721758455,
0.2299173474,
-0.0566850603,
-0.0152282398,
0.1972682923,
0.0202619061,
-0.0426290445,
0.0362092257,
0.0486599132,
0.0167183187,
-0.1805610359,
0.271666199,
0.5724846125,
0.2685571015,
-0.0967834443,
-0.0322300084,
0.0053619668,
-0.0750253424,
0.017755989,
-0.0222579762,
0.1486974061,
0.1936406195,
-0.1889594644,
-0.1011112928,
0.0021010414,
0.3638002276,
0.0613047332,
-0.0991424248,
-0.1685340703,
-0.1679936647,
0.1670808494,
0.5450261831,
-0.2752331197,
0.3014793098,
0.0706219524,
-0.0966637805,
0.2094730437,
-0.1800905168,
0.1059188992,
0.6080438495,
0.0332965814,
0.1129609048,
0.3711541593,
0.008862894,
-0.1436059028,
0.2149287164,
0.1461234391,
-0.2989702821,
0.1730047017,
-0.0520784259,
0.176919058,
-0.2095149457,
-0.2376023233,
-0.0571575984,
0.0526771992,
-0.345222652,
0.2429891229,
-0.1614445448,
-0.1740006506,
-0.3291527927,
-0.0869572908,
-0.0766708106,
-0.0632941052,
0.0246917941,
0.2807942331,
-0.1450742632,
-0.1818347126,
-0.4370901585,
0.0925901607,
0.2119115293,
-0.3590193391,
-0.0015149489,
0.1992020011,
-0.2863780558,
0.133358866,
0.1517556161,
-0.0984133855,
0.5485377312,
-0.5067275763,
0.057921052,
-0.3667599559,
-0.1009360105,
-0.0654941648,
0.0553083308,
0.3579996526,
0.1826390326,
0.1857502908,
0.0548137873,
0.10315606,
0.2081248462,
-0.2389805317,
-0.179515332,
0.1597156823,
0.0564893149,
-0.3985370398,
-0.2559874058,
-0.249146089,
-0.2066612691,
-0.350972414,
0.0161345378,
0.110010162,
0.1269877702,
-0.1030682623,
0.0080768429,
0.0372453406,
0.0731872842,
0.2246694416,
-0.0830264837,
0.0263499394,
0.3867480159,
-0.0423501879,
-0.6439448595,
0.2405601442,
-0.018974755,
-0.357840538,
0.3052415848,
-0.5030599236,
-0.132392019,
-0.2873799801,
0.2506048381,
0.0892270505,
0.2778798044,
0.3353271484,
-0.2777275741,
-0.024596639,
-0.3039753735,
-0.0659072772,
-0.2901854813,
-0.1096736938,
0.2428966165,
0.1826854795,
0.3031281829,
-0.0289381221,
0.2855457366,
0.2206115127,
0.1294396371,
0.4378713369,
-0.386438638,
0.4741621912,
0.0012999214,
-0.1765860319,
0.0351163633,
-0.2722176611,
0.0180080011,
0.2376571298,
0.0223879181,
-0.0049438942,
-0.2312291116,
-0.1656047106,
-0.2313092798,
-0.2478712797,
0.1438774019,
0.1106835678,
0.0407824591,
0.124169752,
0.2241894603,
0.1028405428,
-0.1557341516,
0.1141645014,
0.5970375538,
-0.261562556,
0.1439667195,
0.0227811411,
-0.1640786082,
-0.4693879783,
0.0716751069,
0.102764301,
0.4488422275,
-0.0301671773,
0.0443423837,
0.215620026,
-0.161996305,
0.7495210171,
-0.2151190788,
0.3322596252,
0.2032122612,
-0.006715931,
-0.3780362308,
-0.2583529949,
-0.5120756626,
0.1230988801,
0.0817759335,
-0.0529248826,
-0.0555248037,
0.185233146,
0.1150576472,
0.2468602806,
-0.1428904533,
-0.3871605992,
-0.3885152936,
-0.6134721637,
-0.244539991,
0.0850909278,
0.4038747251,
-0.0435089618,
-0.379685998,
-0.1664033532,
-0.0642809272,
0.1533762962,
-0.0725113899,
-0.0277297571,
0.0795959085,
-0.0177748762,
0.1780820191,
-0.2506741285,
0.2862490714,
-0.1739081442,
0.6596164703,
0.1054917276,
-0.1496221423,
0.1620589495,
-0.2683570981,
-0.2014205456,
0.2051968575,
-0.1649343222,
-0.2201993316,
-0.0797210559,
0.0492504835,
-0.3298474848,
-0.0799626932,
0.5729663372,
-0.1016835868,
-0.0054187439,
-0.2596152723,
0.1787784696,
0.0138972029,
-0.1558489949,
0.2674738765,
0.0348853394,
-0.0924988687,
-0.1083408818,
-0.2890716195,
0.6511150002,
0.2145092487,
0.2358659059,
0.2590303421,
-0.5253791213,
0.0419861004,
0.2136851549,
0.0738658905,
-0.20706366,
-0.2838785648,
-0.0373835601,
-0.1332619786,
0.0825863853,
-0.0341504402,
-0.277936399,
0.2207876742,
-0.0865819603,
0.1747571081,
0.2744152546,
-0.1581595838,
-0.3131061792,
0.1084561944,
-0.032816112,
0.1951173693,
0.2385890037,
0.6629056334,
-0.2662180662,
0.0184961408,
-0.1715998054,
-0.2779659629,
-0.3965133429,
0.2550303936,
-0.1340843737,
0.0074540861,
-0.1599158645,
0.1396335214,
0.0225493461,
-0.0147369765,
0.0021660998,
0.1571852863,
-0.2298112512,
0.0857384503,
0.13416107,
-0.0822364837,
0.2630039752,
-0.0994027108,
0.1180739179,
-0.2447075844,
-0.422942102,
-0.0727606863,
0.0214396007,
-0.0027245209,
-0.0277116299,
0.2639419138,
0.2187705934,
-0.1882332265,
-0.1784810722,
-0.3920813203,
0.0838622451,
-0.070894435,
0.2175155729,
0.0490463674,
0.0885433108,
0.5029724836,
-0.2861324549,
-0.2359028757,
-0.1554897875,
0.3932054043,
-0.167370379,
-0.0755676478,
0.1102359742,
0.0948683843,
-0.3069734871,
-0.2523459792,
0.0131361112,
-0.3942269981,
-0.2205287367,
0.0540070347,
-0.0543696284,
0.2869073153,
-0.147176519,
0.0090058707,
0.1335751563,
-0.0578683615,
-0.015184775,
-0.6815166473,
0.1296804845,
-0.2197965533,
0.4122012556,
0.0466447435,
0.0262458697,
-0.1572071016,
0.4631691575,
-0.5489162803,
-0.3702113032,
-0.0008697137,
0.0495046005,
-0.129058063,
0.1779979765,
0.1302771568,
0.1998713762,
0.0118945614,
0.1212282553,
0.0002450002,
-0.0661848485,
-0.2484520227,
-0.1650172025,
0.1045996025,
-0.0540888123,
-0.2632084489,
0.1900730282,
-0.4511164427,
0.0091406628,
0.1889901161,
0.1473043114,
0.3043761551,
-0.0957729742,
0.0366582647,
0.0956630558,
0.1146365553,
-0.2398875952,
0.2471019775,
-0.4936735928,
0.5263614655,
0.005651392,
0.1713123918,
0.2247190773,
0.006555669,
-0.0548022911,
-0.2813496292,
0.0627045929,
0.1826202124,
0.3916452229,
-0.1167963892,
0.2606547475,
-0.0006222688,
0.2832520604,
0.5525351763,
-0.352714628,
-0.0893503577,
0.1433630735,
0.2758116126,
-0.2590068281,
-0.034684971,
0.0842291191,
0.1091724634,
0.0576287955,
0.1179931164,
0.0555242151,
-0.2826643586,
-0.0912481993,
-0.0500901118,
0.4335025549,
0.3670791388,
-0.1808378398,
0.39471367,
0.0065175593,
0.1476496756,
-0.0576697439,
-0.0217517074,
-0.0486025885,
0.4234353006,
0.0409804881,
0.0692655966,
-0.1091256216,
0.0251743197,
-0.131576404,
-0.2052458227,
0.0766844749,
-0.201256752,
0.0254506823,
0.0977100879,
0.0770513266,
-0.1540477276,
-0.2748750448,
0.2177976072,
-0.3454124033,
-0.0678375214,
0.0694723427,
-0.0125075318,
-0.3036754727,
-0.0721511021,
-0.1196656898,
0.025266856,
0.1473331898,
-0.0054129586,
0.2599419057,
0.0745273083,
-0.2369662225,
-0.31607005,
0.0126229152,
-0.2048033327,
0.1134122312,
-0.2885008752,
0.0778896064,
0.3658394814,
0.1674334407,
0.1078387946,
0.1148518249,
0.5545538664,
0.3852177262,
-0.1072472408,
-0.0611049905,
0.0784613192,
-0.1331627965,
-0.3258145154,
0.4363555908,
0.0716331154,
0.1930941045,
0.2363511622,
0.2184063792,
-0.2301053405,
0.2584096193,
-0.0308184773,
-0.0795632452,
-0.0589464679,
0.1791744828,
-0.2505965531,
0.0937960148,
-0.3897889555,
-0.1013928652,
-0.4083537459,
-0.098580204,
0.1772195846,
-0.0879957974,
0.1667041481,
-0.3462208211,
0.1035932228,
0.0375299044,
0.2180999517,
0.3795767426,
0.3196723461,
-0.0881666914,
-0.0573233664,
-0.5226137638,
0.3419147432,
-0.225843206,
-0.5296083689,
-0.0877918899,
0.0447274297,
-0.6105855703,
0.0722364932,
0.3415540457,
0.2679616213,
-0.0636080801,
0.3222131133,
-0.1352424026,
-0.3121243715,
0.0335875712,
0.1525715888,
0.0759184882,
-0.5940466523,
0.2918206453,
-0.4170545042,
0.1697361022,
-0.2700896859,
-0.1863707304,
-0.0113286749,
-0.008855598,
0.5608645678,
0.150778383,
0.519914031,
-0.1912190318,
-0.125682652,
-0.462992698,
0.0781010389,
-0.1126954481,
0.2469520271,
0.1166754365,
-0.1811443269,
0.0191521719,
-0.2678038478,
-0.0600162894,
0.3138540089,
-0.0368411019,
0.0905803964,
-0.0571232922,
-0.0728072226,
-0.1830928326,
0.1488179564,
0.0811510831,
0.1466139108,
-0.378793329,
-0.1018520221,
-0.0337748677,
-0.5434587002,
0.2741711736,
-0.2698807716,
-0.3332622647,
-0.2687217891,
0.2311912477,
-0.4032008052,
0.0730403662,
-0.0221857056,
0.1500967443,
0.1658334285,
-0.0674840808,
0.0399889424,
0.2936097085,
-0.3748458624,
0.0406057164,
0.2576870322,
0.4179151356,
-0.0696629509,
-0.1712902784,
0.3069995046,
-0.214860335
] |
https://github.com/huggingface/datasets/issues/2913 | timit_asr dataset only includes one text phrase | Hi @margotwagner,
This bug was fixed in #1995. Upgrading the datasets should work (min v1.8.0 ideally) | ## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
| 16 | timit_asr dataset only includes one text phrase
## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
Hi @margotwagner,
This bug was fixed in #1995. Upgrading the datasets should work (min v1.8.0 ideally) | [
0.1612902731,
-0.1380540133,
-0.0205535367,
0.2273862511,
0.1176240146,
-0.1575976163,
0.2670055032,
0.2965664566,
-0.5154979229,
0.2804079056,
0.1454420388,
0.4508610666,
-0.0935285985,
-0.1810209751,
0.0642998964,
-0.0575761274,
0.1221430227,
0.2484456748,
-0.071534507,
-0.2342913747,
0.1333343536,
0.3007958233,
-0.2574562728,
-0.0646616817,
-0.273752898,
0.0847610757,
-0.0766701773,
-0.2693383396,
-0.0532862283,
-0.4953400493,
0.1539395005,
0.0111223105,
0.1049449742,
0.3338851333,
-0.0001155144,
-0.0851756483,
0.0369370244,
0.0938123763,
-0.2382419258,
-0.1577619761,
-0.0969276428,
0.088622719,
-0.0698395744,
-0.0270565152,
-0.0834107921,
0.1937476099,
0.0529346317,
-0.098161988,
0.5147069097,
0.2915841937,
0.1400678009,
-0.0102436505,
-0.25211972,
-0.0659531727,
0.3198693097,
0.0313075297,
0.0850754678,
-0.1780212075,
0.2137238979,
0.031479165,
-0.051667653,
0.6180684566,
-0.2813325822,
0.3980182111,
-0.2359144837,
0.1242304444,
-0.3711774349,
-0.5308328271,
0.2668364346,
0.2161648273,
0.6465563178,
-0.2296240181,
-0.2044669986,
-0.2378615737,
0.3199088275,
-0.1560649574,
-0.0421696007,
-0.0161783863,
-0.2728024125,
0.2350625992,
-0.0094949491,
0.0476475582,
-0.2204017639,
0.1288806647,
0.0558110327,
-0.1074197069,
-0.073136121,
0.1385567337,
-0.177100271,
0.0994096845,
-0.0858643502,
0.2703582942,
-0.1442613751,
0.0341255739,
-0.1497620046,
-0.067490235,
0.1925161183,
-0.3049419224,
0.2917182148,
-0.0602201149,
0.3855576217,
0.0374374576,
-0.185671553,
-0.0881004483,
0.3239298165,
0.019808244,
-0.0233678631,
0.1496764421,
0.229897067,
-0.2340690494,
-0.2531853914,
0.0737155974,
-0.0144180655,
0.2162741572,
0.3318795562,
-0.2650298476,
0.2829245329,
-0.3676445484,
-0.5658826828,
0.0642498583,
-0.4400378168,
-0.1030389518,
-0.2528010905,
0.1816737801,
0.1693309397,
0.3009268343,
0.1449252516,
0.2226765156,
0.0693396702,
-0.5628320575,
-0.1818622649,
0.0267981812,
0.209860146,
0.0308406949,
0.2113290876,
-0.3237068057,
0.3398513794,
0.3417339325,
0.1954528987,
-0.4315994382,
-0.2874111533,
-0.1301769018,
0.0255612563,
0.0091861859,
-0.0264899656,
0.3916679621,
0.0738198608,
-0.0182899311,
0.0072352737,
0.061006967,
-0.1065562218,
0.0068644807,
0.2134013623,
0.1364107281,
-0.0805881023,
-0.1671146154,
0.123248212,
0.3605878055,
0.0779451728,
-0.3008700609,
0.0030108094,
-0.182742402,
-0.3919641674,
-0.0386589095,
0.0773314014,
0.3024607003,
-0.3355480433,
0.0954273641,
0.1785346866,
0.4213980138,
0.3944750428,
0.248454079,
-0.0465102345,
0.3734383583,
-0.1168164462,
0.300144732,
0.2041981369,
-0.462130636,
-0.3920543194,
0.2112352848,
-0.0496034771,
0.2464138567,
0.1548907608,
-0.1627835333,
0.302733779,
0.1427074969,
0.3759354353,
0.1534788609,
0.1457359195,
0.0334793851,
-0.2446885854,
-0.0578924865,
0.0868308544,
-0.013140697,
0.0021537198,
0.0955833495,
0.0370380729,
0.2329707146,
0.5271515846,
0.074584201,
0.0924515203,
0.1029673964,
0.1659647077,
-0.1012318656,
0.223977834,
-0.2631006539,
0.256485641,
-0.0488978773,
0.2068275511,
0.2837988138,
0.1540314704,
0.0793674141,
-0.3015448749,
-0.2188884318,
-0.2991881967,
-0.3250729442,
0.1145815998,
0.3257374465,
-0.0144316107,
0.0420464724,
-0.1898580194,
0.3409901261,
-0.220326364,
-0.0741857961,
0.0233060345,
0.0991652682,
0.0638567656,
-0.2447071373,
0.5248854756,
0.2528992593,
0.1851495504,
0.2016844749,
-0.1669406444,
0.2235519737,
-0.0147676263,
0.0219675135,
-0.2637170255,
-0.3288921118,
0.1099484414,
-0.5017573833,
-0.1113950163,
0.2344706357,
0.3181718886,
-0.0045002848,
-0.3036762178,
-0.1834709644,
0.1390079707,
0.2569385469,
-0.0554438978,
-0.0651192218,
0.3011586964,
0.0662532076,
-0.3537994027,
-0.3246977329,
0.2526896,
-0.2349808365,
0.2662213743,
0.0202848818,
-0.3417765796,
0.1585987508,
0.3928953707,
0.224511385,
0.0852087811,
0.2943885028,
-0.2468324006,
-0.0270177387,
-0.1227288097,
0.0949120969,
0.2907656431,
0.2881050408,
0.0543025173,
-0.3764549494,
-0.1287488788,
-0.1132323146,
0.1393361092,
-0.1307565868,
-0.3556300402,
0.4351169765,
0.3585452139,
0.0863875002,
-0.4493836164,
-0.1341286898,
-0.1424039006,
0.4703673422,
-0.3349604011,
-0.2316325158,
-0.4356051683,
-0.1205522045,
-0.1090054661,
0.0662912652,
0.0797034353,
0.2255510092,
0.2190562636,
-0.0127123753,
0.0054568797,
0.1367990673,
0.1719907224,
0.2340623438,
0.0712053701,
0.1117986217,
0.0863047391,
0.3191402555,
-0.3069571257,
-0.0242700987,
0.0259719864,
0.2716125846,
0.1074291766,
-0.1422469318,
-0.1639023423,
-0.4067964256,
0.0590182394,
0.2675643861,
-0.3301687837,
0.5113493204,
0.1133633256,
0.1602489352,
-0.225165695,
-0.3130812347,
0.0026725121,
-0.0268873014,
-0.1686864793,
0.3555681705,
0.0829433054,
-0.0056142658,
-0.0482561365,
-0.6989753246,
0.0993928909,
-0.2500090003,
0.2359428555,
-0.0328675359,
0.2103789449,
0.3641360402,
0.0606072769,
0.0812699944,
-0.0587119348,
0.2053696513,
-0.4102098644,
-0.2545931339,
0.3561107814,
0.26060462,
-0.3348696232,
-0.340569675,
0.0509583876,
0.2652951181,
-0.0322292708,
-0.4001086354,
0.1003537476,
-0.2674658597,
0.1453482509,
-0.2972605824,
0.2826198936,
0.3854672909,
0.0129938759,
-0.1495048404,
-0.1692215055,
-0.1078338027,
0.2658358514,
0.3553735614,
0.0058844835,
0.1011466682,
0.0699136704,
-0.0593266524,
0.3506976664,
0.6459599137,
0.2025158256,
0.2600062788,
-0.1765540689,
0.094235301,
-0.0324933827,
-0.399579823,
0.0270797573,
-0.1173249036,
-0.0625671744,
0.4981201887,
-0.0899956599,
0.0536313131,
-0.1695878804,
-0.0572772175,
-0.3290622532,
-0.1686405241,
0.0674922541,
-0.2359401435,
0.1839740574,
0.1747752875,
0.0528289899,
0.1619520038,
0.0347348675,
-0.2861664295,
-0.2988383174,
0.2851737738,
-0.1499723792,
-0.0820299685,
-0.2836108804,
-0.3772889972,
-0.1241015047,
0.1385838389,
0.509554565,
-0.2117004991,
-0.0375208594,
0.3600181937,
0.291478008,
0.3810286224,
-0.3069944978,
0.0908771232,
0.0103906915,
0.2287912816,
0.0055079088,
0.0054614544,
-0.520500958,
-0.1967587322,
-0.047500696,
-0.043032255,
-0.1668931693,
-0.0080188178,
0.1089592725,
0.3927439451,
-0.0097474083,
-0.2408113927,
-0.2557696402,
-0.0757930726,
-0.330141902,
0.1615659148,
0.3422314823,
0.0443936475,
-0.1651335955,
-0.1203247681,
0.1603989154,
-0.0627516657,
0.5332372189,
0.0798593313,
0.3751766086,
0.0739651099,
0.3011750281,
0.2748405039,
-0.3577798605,
-0.2591430247,
0.360815227,
0.1009693295,
-0.1420252919,
-0.003674034,
-0.3468616903,
0.3289577961,
0.4931567907,
-0.2231911868,
0.2419294268,
-0.2970615327,
0.2568938732,
-0.1529489756,
0.0957464427,
0.3195283115,
-0.0749834105,
-0.075181514,
-0.4102868438,
0.3822799921,
-0.0364948325,
-0.1979483962,
0.3445506692,
0.090918839,
-0.3103822768,
0.4712516367,
-0.2578840554,
0.8118335605,
0.2264073044,
0.3666304052,
0.3155017495,
0.1381513774,
0.3261645436,
-0.1960100532,
0.0902332067,
-0.0220172405,
-0.0018167123,
-0.021560315,
0.0583432913,
-0.0778568164,
-0.0417594314,
-0.5769283772,
0.1775287539,
0.0647165179,
0.0288713761,
0.1868021488,
-0.0118521973,
-0.1294961721,
-0.1064070612,
0.1252994835,
0.0325714797,
-0.3839385509,
0.3074729443,
0.3099323511,
-0.0242958292,
0.0314043462,
-0.5837305188,
-0.822481513,
-0.0301678739,
-0.0825177208,
-0.2259410918,
-0.1996797919,
-0.3336215019,
0.368199259,
0.2585996985,
0.191553697,
0.3256591558,
-0.137968272,
-0.0852640793,
0.368242979,
0.277651459,
-0.2679567933,
-0.0255919266,
0.1445186585,
-0.0860314369,
-0.3883320093,
0.1766034812,
0.0551583506,
0.0989633948,
-0.388065666,
0.2538313568,
-0.1146805361,
-0.2331589013,
0.0857377872,
0.4289046526,
0.1415172517,
-0.5119701624,
0.1032074764,
0.1241721809,
-0.4588641226,
0.3286850154,
0.1725839674,
-0.4755196869,
-0.0637626201,
0.2593403459,
0.1283606291,
0.0002505258,
0.6646648049,
-0.0414827764,
0.0483880341,
-0.370475769,
0.0406965911,
-0.0209284127,
-0.2641956508,
0.1791122854,
0.0586632863,
0.1739624739,
-0.2265273333,
0.253549844,
0.0265138261,
0.2048027962,
-0.2814756036,
-0.3617306352,
-0.0619774982,
-0.0314538106,
0.1234354228,
0.0552398823,
-0.2911970615,
0.1181855947,
0.068815887,
0.3186089396,
-0.298191905,
0.0059748478,
-0.0517943054,
0.2173200995,
-0.0840426981,
0.0813203901,
-0.0378094129,
0.0851735026,
0.2000401914,
0.3185154498,
0.0672915578,
-0.1598699987,
-0.3062141538,
0.1838443279,
0.0417442322,
0.1562648416,
-0.0407684594,
0.1001059711,
0.1492387056,
-0.1337079257,
-0.1010109037,
0.334582597,
0.1253622472,
0.2183781862,
-0.0296326876,
0.0370717905,
0.185156092,
-0.1598647833,
-0.183976844,
-0.1724588871,
0.3399857879,
0.180613637,
0.0487437211,
-0.048195757,
0.1186248958,
0.0399238802,
-0.1340517104,
0.1186957136,
-0.077834174,
-0.2655765116,
0.1333700567,
0.2876860499,
-0.11947947,
0.3786883354,
-0.3459938765,
-0.1118995398,
0.0911948234,
0.2351439744,
-0.2654985785,
-0.1237110943,
-0.3232503831,
-0.1065508574,
-0.0583089478,
0.2784046233,
-0.0598310754,
-0.4723797739,
0.1214666814,
-0.0649381429,
0.3360201716,
-0.5360028744,
-0.0734216124,
0.398514539,
0.0149739757,
-0.3611198664,
-0.1933410913,
-0.0151967863,
0.0208014213,
0.5450986624,
-0.367543757,
0.137358129,
-0.3386057615,
0.0263878778,
0.1915481389,
0.0256050304,
-0.0382200666,
0.405641675,
-0.3271882534,
-0.0489631891,
-0.0716249198,
0.305047363,
-0.117672503,
0.0334456414,
-0.1280478239,
-0.0514147878,
-0.1239193156,
-0.1248623282,
-0.3380391598,
-0.2734287977,
-0.2303763926,
0.0061818808,
0.0975420699,
-0.0125556774,
0.1405141801,
0.1916216612,
-0.2668842971,
-0.5332415104,
-0.1980940104,
-0.0377838761,
0.1720767021,
-0.3900322318,
0.3403880596,
0.3084274232,
-0.2217701524,
0.2584379017,
0.2433645874,
0.5199831128,
0.0715809613,
0.0334476456,
0.1065190062,
-0.5706882477,
-0.0919025466,
-0.0517225526,
0.3297679126,
-0.124241814,
0.0587560609,
0.0218635425,
0.0158727318,
-0.0956397802,
0.0293481201,
0.2285464406,
-0.0756255835,
-0.5632570386,
0.2190778553,
-0.1411622018,
0.1117325425,
0.0406587012,
0.0749842525,
-0.4736692905,
0.4417380989,
0.3421673775,
0.0575964004,
-0.0106266178,
0.0021903627,
0.0813888311,
-0.1263747662,
-0.1126125157,
0.2673047185,
0.1579867452,
-0.2770341635,
-0.159135446,
-0.6735782623,
-0.0714833736,
-0.0488051437,
-0.0049524829,
0.0006291419,
0.1189807802,
0.1586840898,
0.1362602711,
0.0692648813,
-0.0260407105,
-0.5322327614,
0.3291485906,
-0.215463087,
-0.0053818165,
-0.0877879709,
0.436660707,
0.0414891466,
-0.1064979434,
0.0108351959,
0.0946914032,
0.0340189114,
0.0655479729,
0.0059460253,
0.0175629109,
-0.120662123,
0.1582386941,
0.1423450857,
0.1708151102,
-0.2348543555,
0.1895657182,
-0.2832582593,
0.029293377,
-0.1982437819,
0.1561560333,
0.2698151171,
0.5158418417,
-0.1834514141,
-0.0686846673,
-0.0636009425,
0.1653608084,
0.1112444997,
-0.0649594292,
-0.1914126277,
0.0897695571,
-0.0087000653,
0.2714968026,
-0.2622261941,
0.1059424132,
0.0038293982,
0.0026379824,
-0.4920397103,
-0.7109146714,
0.4522461295,
-0.4033150077,
-0.5287761688,
-0.0796566382,
0.5906728506,
0.2403547168,
-0.0321537107,
-0.708696425,
-0.0359899774,
0.3959988356,
0.2443485558,
-0.3021711707,
0.2129859924,
0.1219397038,
0.0085308924,
0.0144247562,
0.6226138473,
0.3105244637,
-0.2327545881,
0.2679713368,
-0.4604580104
] |
https://github.com/huggingface/datasets/issues/2913 | timit_asr dataset only includes one text phrase | Hi @margotwagner,
Yes, as @bhavitvyamalik has commented, this bug was fixed in `datasets` version 1.5.0. You need to update it, as your current version is 1.4.1:
> Environment info
> - `datasets` version: 1.4.1 | ## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
| 34 | timit_asr dataset only includes one text phrase
## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
Hi @margotwagner,
Yes, as @bhavitvyamalik has commented, this bug was fixed in `datasets` version 1.5.0. You need to update it, as your current version is 1.4.1:
> Environment info
> - `datasets` version: 1.4.1 | [
0.1612902731,
-0.1380540133,
-0.0205535367,
0.2273862511,
0.1176240146,
-0.1575976163,
0.2670055032,
0.2965664566,
-0.5154979229,
0.2804079056,
0.1454420388,
0.4508610666,
-0.0935285985,
-0.1810209751,
0.0642998964,
-0.0575761274,
0.1221430227,
0.2484456748,
-0.071534507,
-0.2342913747,
0.1333343536,
0.3007958233,
-0.2574562728,
-0.0646616817,
-0.273752898,
0.0847610757,
-0.0766701773,
-0.2693383396,
-0.0532862283,
-0.4953400493,
0.1539395005,
0.0111223105,
0.1049449742,
0.3338851333,
-0.0001155144,
-0.0851756483,
0.0369370244,
0.0938123763,
-0.2382419258,
-0.1577619761,
-0.0969276428,
0.088622719,
-0.0698395744,
-0.0270565152,
-0.0834107921,
0.1937476099,
0.0529346317,
-0.098161988,
0.5147069097,
0.2915841937,
0.1400678009,
-0.0102436505,
-0.25211972,
-0.0659531727,
0.3198693097,
0.0313075297,
0.0850754678,
-0.1780212075,
0.2137238979,
0.031479165,
-0.051667653,
0.6180684566,
-0.2813325822,
0.3980182111,
-0.2359144837,
0.1242304444,
-0.3711774349,
-0.5308328271,
0.2668364346,
0.2161648273,
0.6465563178,
-0.2296240181,
-0.2044669986,
-0.2378615737,
0.3199088275,
-0.1560649574,
-0.0421696007,
-0.0161783863,
-0.2728024125,
0.2350625992,
-0.0094949491,
0.0476475582,
-0.2204017639,
0.1288806647,
0.0558110327,
-0.1074197069,
-0.073136121,
0.1385567337,
-0.177100271,
0.0994096845,
-0.0858643502,
0.2703582942,
-0.1442613751,
0.0341255739,
-0.1497620046,
-0.067490235,
0.1925161183,
-0.3049419224,
0.2917182148,
-0.0602201149,
0.3855576217,
0.0374374576,
-0.185671553,
-0.0881004483,
0.3239298165,
0.019808244,
-0.0233678631,
0.1496764421,
0.229897067,
-0.2340690494,
-0.2531853914,
0.0737155974,
-0.0144180655,
0.2162741572,
0.3318795562,
-0.2650298476,
0.2829245329,
-0.3676445484,
-0.5658826828,
0.0642498583,
-0.4400378168,
-0.1030389518,
-0.2528010905,
0.1816737801,
0.1693309397,
0.3009268343,
0.1449252516,
0.2226765156,
0.0693396702,
-0.5628320575,
-0.1818622649,
0.0267981812,
0.209860146,
0.0308406949,
0.2113290876,
-0.3237068057,
0.3398513794,
0.3417339325,
0.1954528987,
-0.4315994382,
-0.2874111533,
-0.1301769018,
0.0255612563,
0.0091861859,
-0.0264899656,
0.3916679621,
0.0738198608,
-0.0182899311,
0.0072352737,
0.061006967,
-0.1065562218,
0.0068644807,
0.2134013623,
0.1364107281,
-0.0805881023,
-0.1671146154,
0.123248212,
0.3605878055,
0.0779451728,
-0.3008700609,
0.0030108094,
-0.182742402,
-0.3919641674,
-0.0386589095,
0.0773314014,
0.3024607003,
-0.3355480433,
0.0954273641,
0.1785346866,
0.4213980138,
0.3944750428,
0.248454079,
-0.0465102345,
0.3734383583,
-0.1168164462,
0.300144732,
0.2041981369,
-0.462130636,
-0.3920543194,
0.2112352848,
-0.0496034771,
0.2464138567,
0.1548907608,
-0.1627835333,
0.302733779,
0.1427074969,
0.3759354353,
0.1534788609,
0.1457359195,
0.0334793851,
-0.2446885854,
-0.0578924865,
0.0868308544,
-0.013140697,
0.0021537198,
0.0955833495,
0.0370380729,
0.2329707146,
0.5271515846,
0.074584201,
0.0924515203,
0.1029673964,
0.1659647077,
-0.1012318656,
0.223977834,
-0.2631006539,
0.256485641,
-0.0488978773,
0.2068275511,
0.2837988138,
0.1540314704,
0.0793674141,
-0.3015448749,
-0.2188884318,
-0.2991881967,
-0.3250729442,
0.1145815998,
0.3257374465,
-0.0144316107,
0.0420464724,
-0.1898580194,
0.3409901261,
-0.220326364,
-0.0741857961,
0.0233060345,
0.0991652682,
0.0638567656,
-0.2447071373,
0.5248854756,
0.2528992593,
0.1851495504,
0.2016844749,
-0.1669406444,
0.2235519737,
-0.0147676263,
0.0219675135,
-0.2637170255,
-0.3288921118,
0.1099484414,
-0.5017573833,
-0.1113950163,
0.2344706357,
0.3181718886,
-0.0045002848,
-0.3036762178,
-0.1834709644,
0.1390079707,
0.2569385469,
-0.0554438978,
-0.0651192218,
0.3011586964,
0.0662532076,
-0.3537994027,
-0.3246977329,
0.2526896,
-0.2349808365,
0.2662213743,
0.0202848818,
-0.3417765796,
0.1585987508,
0.3928953707,
0.224511385,
0.0852087811,
0.2943885028,
-0.2468324006,
-0.0270177387,
-0.1227288097,
0.0949120969,
0.2907656431,
0.2881050408,
0.0543025173,
-0.3764549494,
-0.1287488788,
-0.1132323146,
0.1393361092,
-0.1307565868,
-0.3556300402,
0.4351169765,
0.3585452139,
0.0863875002,
-0.4493836164,
-0.1341286898,
-0.1424039006,
0.4703673422,
-0.3349604011,
-0.2316325158,
-0.4356051683,
-0.1205522045,
-0.1090054661,
0.0662912652,
0.0797034353,
0.2255510092,
0.2190562636,
-0.0127123753,
0.0054568797,
0.1367990673,
0.1719907224,
0.2340623438,
0.0712053701,
0.1117986217,
0.0863047391,
0.3191402555,
-0.3069571257,
-0.0242700987,
0.0259719864,
0.2716125846,
0.1074291766,
-0.1422469318,
-0.1639023423,
-0.4067964256,
0.0590182394,
0.2675643861,
-0.3301687837,
0.5113493204,
0.1133633256,
0.1602489352,
-0.225165695,
-0.3130812347,
0.0026725121,
-0.0268873014,
-0.1686864793,
0.3555681705,
0.0829433054,
-0.0056142658,
-0.0482561365,
-0.6989753246,
0.0993928909,
-0.2500090003,
0.2359428555,
-0.0328675359,
0.2103789449,
0.3641360402,
0.0606072769,
0.0812699944,
-0.0587119348,
0.2053696513,
-0.4102098644,
-0.2545931339,
0.3561107814,
0.26060462,
-0.3348696232,
-0.340569675,
0.0509583876,
0.2652951181,
-0.0322292708,
-0.4001086354,
0.1003537476,
-0.2674658597,
0.1453482509,
-0.2972605824,
0.2826198936,
0.3854672909,
0.0129938759,
-0.1495048404,
-0.1692215055,
-0.1078338027,
0.2658358514,
0.3553735614,
0.0058844835,
0.1011466682,
0.0699136704,
-0.0593266524,
0.3506976664,
0.6459599137,
0.2025158256,
0.2600062788,
-0.1765540689,
0.094235301,
-0.0324933827,
-0.399579823,
0.0270797573,
-0.1173249036,
-0.0625671744,
0.4981201887,
-0.0899956599,
0.0536313131,
-0.1695878804,
-0.0572772175,
-0.3290622532,
-0.1686405241,
0.0674922541,
-0.2359401435,
0.1839740574,
0.1747752875,
0.0528289899,
0.1619520038,
0.0347348675,
-0.2861664295,
-0.2988383174,
0.2851737738,
-0.1499723792,
-0.0820299685,
-0.2836108804,
-0.3772889972,
-0.1241015047,
0.1385838389,
0.509554565,
-0.2117004991,
-0.0375208594,
0.3600181937,
0.291478008,
0.3810286224,
-0.3069944978,
0.0908771232,
0.0103906915,
0.2287912816,
0.0055079088,
0.0054614544,
-0.520500958,
-0.1967587322,
-0.047500696,
-0.043032255,
-0.1668931693,
-0.0080188178,
0.1089592725,
0.3927439451,
-0.0097474083,
-0.2408113927,
-0.2557696402,
-0.0757930726,
-0.330141902,
0.1615659148,
0.3422314823,
0.0443936475,
-0.1651335955,
-0.1203247681,
0.1603989154,
-0.0627516657,
0.5332372189,
0.0798593313,
0.3751766086,
0.0739651099,
0.3011750281,
0.2748405039,
-0.3577798605,
-0.2591430247,
0.360815227,
0.1009693295,
-0.1420252919,
-0.003674034,
-0.3468616903,
0.3289577961,
0.4931567907,
-0.2231911868,
0.2419294268,
-0.2970615327,
0.2568938732,
-0.1529489756,
0.0957464427,
0.3195283115,
-0.0749834105,
-0.075181514,
-0.4102868438,
0.3822799921,
-0.0364948325,
-0.1979483962,
0.3445506692,
0.090918839,
-0.3103822768,
0.4712516367,
-0.2578840554,
0.8118335605,
0.2264073044,
0.3666304052,
0.3155017495,
0.1381513774,
0.3261645436,
-0.1960100532,
0.0902332067,
-0.0220172405,
-0.0018167123,
-0.021560315,
0.0583432913,
-0.0778568164,
-0.0417594314,
-0.5769283772,
0.1775287539,
0.0647165179,
0.0288713761,
0.1868021488,
-0.0118521973,
-0.1294961721,
-0.1064070612,
0.1252994835,
0.0325714797,
-0.3839385509,
0.3074729443,
0.3099323511,
-0.0242958292,
0.0314043462,
-0.5837305188,
-0.822481513,
-0.0301678739,
-0.0825177208,
-0.2259410918,
-0.1996797919,
-0.3336215019,
0.368199259,
0.2585996985,
0.191553697,
0.3256591558,
-0.137968272,
-0.0852640793,
0.368242979,
0.277651459,
-0.2679567933,
-0.0255919266,
0.1445186585,
-0.0860314369,
-0.3883320093,
0.1766034812,
0.0551583506,
0.0989633948,
-0.388065666,
0.2538313568,
-0.1146805361,
-0.2331589013,
0.0857377872,
0.4289046526,
0.1415172517,
-0.5119701624,
0.1032074764,
0.1241721809,
-0.4588641226,
0.3286850154,
0.1725839674,
-0.4755196869,
-0.0637626201,
0.2593403459,
0.1283606291,
0.0002505258,
0.6646648049,
-0.0414827764,
0.0483880341,
-0.370475769,
0.0406965911,
-0.0209284127,
-0.2641956508,
0.1791122854,
0.0586632863,
0.1739624739,
-0.2265273333,
0.253549844,
0.0265138261,
0.2048027962,
-0.2814756036,
-0.3617306352,
-0.0619774982,
-0.0314538106,
0.1234354228,
0.0552398823,
-0.2911970615,
0.1181855947,
0.068815887,
0.3186089396,
-0.298191905,
0.0059748478,
-0.0517943054,
0.2173200995,
-0.0840426981,
0.0813203901,
-0.0378094129,
0.0851735026,
0.2000401914,
0.3185154498,
0.0672915578,
-0.1598699987,
-0.3062141538,
0.1838443279,
0.0417442322,
0.1562648416,
-0.0407684594,
0.1001059711,
0.1492387056,
-0.1337079257,
-0.1010109037,
0.334582597,
0.1253622472,
0.2183781862,
-0.0296326876,
0.0370717905,
0.185156092,
-0.1598647833,
-0.183976844,
-0.1724588871,
0.3399857879,
0.180613637,
0.0487437211,
-0.048195757,
0.1186248958,
0.0399238802,
-0.1340517104,
0.1186957136,
-0.077834174,
-0.2655765116,
0.1333700567,
0.2876860499,
-0.11947947,
0.3786883354,
-0.3459938765,
-0.1118995398,
0.0911948234,
0.2351439744,
-0.2654985785,
-0.1237110943,
-0.3232503831,
-0.1065508574,
-0.0583089478,
0.2784046233,
-0.0598310754,
-0.4723797739,
0.1214666814,
-0.0649381429,
0.3360201716,
-0.5360028744,
-0.0734216124,
0.398514539,
0.0149739757,
-0.3611198664,
-0.1933410913,
-0.0151967863,
0.0208014213,
0.5450986624,
-0.367543757,
0.137358129,
-0.3386057615,
0.0263878778,
0.1915481389,
0.0256050304,
-0.0382200666,
0.405641675,
-0.3271882534,
-0.0489631891,
-0.0716249198,
0.305047363,
-0.117672503,
0.0334456414,
-0.1280478239,
-0.0514147878,
-0.1239193156,
-0.1248623282,
-0.3380391598,
-0.2734287977,
-0.2303763926,
0.0061818808,
0.0975420699,
-0.0125556774,
0.1405141801,
0.1916216612,
-0.2668842971,
-0.5332415104,
-0.1980940104,
-0.0377838761,
0.1720767021,
-0.3900322318,
0.3403880596,
0.3084274232,
-0.2217701524,
0.2584379017,
0.2433645874,
0.5199831128,
0.0715809613,
0.0334476456,
0.1065190062,
-0.5706882477,
-0.0919025466,
-0.0517225526,
0.3297679126,
-0.124241814,
0.0587560609,
0.0218635425,
0.0158727318,
-0.0956397802,
0.0293481201,
0.2285464406,
-0.0756255835,
-0.5632570386,
0.2190778553,
-0.1411622018,
0.1117325425,
0.0406587012,
0.0749842525,
-0.4736692905,
0.4417380989,
0.3421673775,
0.0575964004,
-0.0106266178,
0.0021903627,
0.0813888311,
-0.1263747662,
-0.1126125157,
0.2673047185,
0.1579867452,
-0.2770341635,
-0.159135446,
-0.6735782623,
-0.0714833736,
-0.0488051437,
-0.0049524829,
0.0006291419,
0.1189807802,
0.1586840898,
0.1362602711,
0.0692648813,
-0.0260407105,
-0.5322327614,
0.3291485906,
-0.215463087,
-0.0053818165,
-0.0877879709,
0.436660707,
0.0414891466,
-0.1064979434,
0.0108351959,
0.0946914032,
0.0340189114,
0.0655479729,
0.0059460253,
0.0175629109,
-0.120662123,
0.1582386941,
0.1423450857,
0.1708151102,
-0.2348543555,
0.1895657182,
-0.2832582593,
0.029293377,
-0.1982437819,
0.1561560333,
0.2698151171,
0.5158418417,
-0.1834514141,
-0.0686846673,
-0.0636009425,
0.1653608084,
0.1112444997,
-0.0649594292,
-0.1914126277,
0.0897695571,
-0.0087000653,
0.2714968026,
-0.2622261941,
0.1059424132,
0.0038293982,
0.0026379824,
-0.4920397103,
-0.7109146714,
0.4522461295,
-0.4033150077,
-0.5287761688,
-0.0796566382,
0.5906728506,
0.2403547168,
-0.0321537107,
-0.708696425,
-0.0359899774,
0.3959988356,
0.2443485558,
-0.3021711707,
0.2129859924,
0.1219397038,
0.0085308924,
0.0144247562,
0.6226138473,
0.3105244637,
-0.2327545881,
0.2679713368,
-0.4604580104
] |
https://github.com/huggingface/datasets/issues/2904 | FORCE_REDOWNLOAD does not work | Hi ! Thanks for reporting. The error seems to happen only if you use compressed files.
The second dataset is prepared in another dataset cache directory than the first - which is normal, since the source file is different. However, it doesn't uncompress the new data file because it finds the old uncompressed data in the extraction cache directory.
If we fix the extraction cache mechanism to uncompress a local file if it changed then it should fix the issue.
Currently the extraction cache mechanism only takes into account the path of the compressed file, which is an issue. | ## Describe the bug
With GenerateMode.FORCE_REDOWNLOAD, the documentation says
+------------------------------------+-----------+---------+
| | Downloads | Dataset |
+====================================+===========+=========+
| `REUSE_DATASET_IF_EXISTS` (default)| Reuse | Reuse |
+------------------------------------+-----------+---------+
| `REUSE_CACHE_IF_EXISTS` | Reuse | Fresh |
+------------------------------------+-----------+---------+
| `FORCE_REDOWNLOAD` | Fresh | Fresh |
+------------------------------------+-----------+---------+
However, the old dataset is loaded even when FORCE_REDOWNLOAD is chosen.
## Steps to reproduce the bug
```python
import pandas as pd
from datasets import load_dataset, GenerateMode
pd.DataFrame(range(5), columns=['numbers']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
pd.DataFrame(range(10), columns=['numerals']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
```
## Expected results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numerals'],
num_rows: 10
})
## Actual results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numbers'],
num_rows: 5
})
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-4.14.181-108.257.amzn1.x86_64-x86_64-with-glibc2.10
- Python version: 3.7.10
- PyArrow version: 3.0.0
| 99 | FORCE_REDOWNLOAD does not work
## Describe the bug
With GenerateMode.FORCE_REDOWNLOAD, the documentation says
+------------------------------------+-----------+---------+
| | Downloads | Dataset |
+====================================+===========+=========+
| `REUSE_DATASET_IF_EXISTS` (default)| Reuse | Reuse |
+------------------------------------+-----------+---------+
| `REUSE_CACHE_IF_EXISTS` | Reuse | Fresh |
+------------------------------------+-----------+---------+
| `FORCE_REDOWNLOAD` | Fresh | Fresh |
+------------------------------------+-----------+---------+
However, the old dataset is loaded even when FORCE_REDOWNLOAD is chosen.
## Steps to reproduce the bug
```python
import pandas as pd
from datasets import load_dataset, GenerateMode
pd.DataFrame(range(5), columns=['numbers']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
pd.DataFrame(range(10), columns=['numerals']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
```
## Expected results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numerals'],
num_rows: 10
})
## Actual results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numbers'],
num_rows: 5
})
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-4.14.181-108.257.amzn1.x86_64-x86_64-with-glibc2.10
- Python version: 3.7.10
- PyArrow version: 3.0.0
Hi ! Thanks for reporting. The error seems to happen only if you use compressed files.
The second dataset is prepared in another dataset cache directory than the first - which is normal, since the source file is different. However, it doesn't uncompress the new data file because it finds the old uncompressed data in the extraction cache directory.
If we fix the extraction cache mechanism to uncompress a local file if it changed then it should fix the issue.
Currently the extraction cache mechanism only takes into account the path of the compressed file, which is an issue. | [
-0.1253404319,
0.0207805187,
0.0185131431,
0.0257141255,
0.1821044832,
0.0251932293,
0.4788661599,
0.2438329905,
0.1457959265,
-0.2338697463,
-0.1162829325,
0.2687396407,
0.0850748718,
0.1121126562,
-0.0132029261,
0.3137484789,
0.1101020873,
0.2144832313,
-0.0722498894,
-0.0051927194,
-0.2910995185,
0.0634416938,
-0.1833178997,
-0.2195640504,
-0.2065765262,
0.2937992215,
-0.0426937751,
0.3026084304,
0.0084058847,
-0.3731205463,
0.1836808622,
0.2550068498,
0.1820977181,
0.6611075401,
-0.000109716,
0.0617887825,
0.1586242616,
-0.1793151498,
-0.1704427451,
-0.1858088374,
0.0419965088,
-0.0455285385,
-0.3461464047,
-0.0842091963,
-0.0005326644,
-0.2207529694,
-0.1748756617,
-0.346150279,
0.5304934978,
0.4028014243,
0.2320072353,
-0.1104159653,
0.1202412322,
-0.0721177608,
0.1787123382,
0.1414144039,
-0.0699523836,
0.3557819724,
0.1045253277,
-0.2072237134,
-0.0906311572,
0.0714472607,
-0.1301324219,
0.0515933037,
-0.1007768661,
-0.0266389027,
0.3280928731,
-0.1360900998,
0.0856571943,
0.1706221998,
0.6073064208,
-0.3377119303,
-0.4172842205,
0.0072848946,
0.0183142461,
-0.2442768812,
0.165023312,
0.1792492867,
-0.0074187629,
0.3686660826,
-0.0126198605,
-0.0254523531,
0.0721381605,
-0.194806546,
-0.0308576301,
-0.1178198159,
-0.1004163176,
-0.0362133011,
0.0516209938,
0.0602482818,
0.4213585854,
-0.0216162056,
-0.0566803887,
0.0342853516,
-0.0291525982,
-0.1342204809,
0.2153063416,
-0.3018358052,
0.0747370124,
-0.028192129,
-0.0764475688,
-0.1077360883,
-0.0592024587,
0.048979722,
0.0738613904,
0.2261445969,
-0.1387258619,
-0.0901200771,
0.3910107315,
0.1767414808,
-0.2513785362,
-0.0726185739,
0.0294126309,
-0.2027268559,
0.5261005759,
-0.0647601709,
0.261403501,
-0.1472215801,
-0.4044617414,
-0.0181816313,
-0.1070785671,
0.0032649636,
-0.2742645442,
0.1767623276,
0.0207744986,
0.3530654907,
0.1341453344,
0.1856256276,
0.058139652,
-0.2063570321,
-0.2226337492,
-0.1226870343,
-0.3091840148,
0.0251519457,
0.2947833836,
-0.1708824337,
0.3440059125,
0.5470419526,
-0.3297730684,
-0.5027304292,
-0.0621350408,
-0.0314326808,
0.1452516466,
0.2964736819,
-0.0633029714,
-0.0863984972,
0.2666995525,
-0.0901364684,
-0.0168401077,
0.3552975059,
-0.091447264,
-0.3069288433,
0.1436536312,
0.1975640059,
0.0511061102,
0.1958487183,
-0.1279504448,
0.015527714,
0.3042723238,
-0.0705187619,
-0.0457961932,
-0.0500781015,
-0.0136532784,
-0.2484515011,
0.0476664156,
0.7337828875,
-0.468116045,
0.008141458,
-0.2922009528,
-0.0890842229,
0.2404543906,
0.0785244554,
0.0047031567,
0.0423926227,
-0.4686898887,
-0.3603312373,
0.1667579412,
-0.1669527143,
-0.4369602203,
0.0058208294,
-0.2142423838,
0.257532984,
0.1665148884,
-0.0449787378,
-0.150135994,
-0.0172343571,
0.0970482379,
0.2490072548,
0.0923939422,
0.0448235124,
-0.3246172071,
-0.2888210714,
0.045567859,
-0.1329661012,
0.2855156064,
0.4056807756,
0.3521437049,
0.166620627,
0.3699394166,
0.0625927597,
0.015510235,
0.0143863931,
0.3367366791,
-0.0180100575,
0.0330759026,
0.176521346,
-0.5221682787,
0.3075174391,
-0.0336040705,
-0.2515619695,
0.0728958547,
-0.0701956972,
-0.5719494224,
-0.2283391207,
-0.0720977336,
-0.3877545595,
0.1725478172,
0.471341908,
-0.0334353521,
0.0184989423,
-0.143489331,
0.4725979269,
-0.3845012784,
-0.0480713807,
-0.0413010791,
0.2855198681,
-0.1932278126,
-0.1814610958,
-0.2195678949,
-0.1187962741,
0.2447942197,
-0.1625745595,
-0.1215587854,
0.4299702048,
0.1860479116,
0.272087127,
-0.3619136512,
-0.1950369924,
0.1652199626,
-0.0160630941,
-0.1465485245,
0.1185460389,
0.2459685504,
-0.0776266605,
-0.0173953176,
0.278904736,
-0.4031003416,
-0.0885869935,
0.0713748261,
-0.0462190732,
0.2666132748,
-0.2367841601,
0.2828174531,
-0.3403977752,
-0.3403313458,
0.2947022319,
0.0018239841,
0.1279277503,
0.0989248678,
0.1121158004,
0.2867795527,
0.0066713914,
0.0475182198,
-0.0890124664,
-0.1765655577,
-0.2945634127,
0.0131209102,
0.3500009775,
0.5929614305,
0.1657259166,
-0.0166614577,
0.1451728493,
-0.0583075806,
-0.2538090646,
0.2043863386,
-0.2613335252,
-0.0064700097,
0.3311824203,
0.1878523678,
0.0763364658,
-0.6370837688,
0.1860153824,
0.5140928626,
0.2118022144,
-0.2195149064,
-0.1909854114,
-0.1673645973,
0.4125153124,
0.0630174279,
0.1435507536,
-0.0300566405,
-0.1065666601,
-0.1382732242,
0.5955287218,
-0.0589989237,
0.0732918903,
-0.1850811988,
-0.0749257654,
-0.0461661182,
-0.1426969022,
-0.147280395,
-0.1764150709,
-0.1414827108,
0.0910960063,
0.2313582301,
-0.3419227898,
0.147731021,
-0.1828767359,
-0.126756981,
-0.3267622292,
-0.0833430514,
-0.1293942481,
0.0340040252,
0.2224017978,
-0.2250491977,
0.1471372098,
0.1697577685,
0.0325685665,
-0.0047153011,
-0.3554544449,
-0.3341686726,
-0.1029286981,
0.1511997283,
0.2633759677,
-0.2600108385,
-0.455455482,
0.1090232655,
-0.3711392581,
-0.0406574681,
0.1015612856,
-0.0919758901,
0.3833363652,
0.2238112241,
-0.0310829934,
0.4020083547,
0.2698831558,
-0.4376192093,
-0.2790603638,
0.0805035606,
-0.1014776304,
-0.2633704841,
0.014791131,
0.0609153137,
-0.01211996,
0.2737060785,
-0.4307680428,
-0.0845258087,
-0.2824060023,
0.0837785006,
-0.0585754961,
0.2336962521,
0.2081230432,
0.1207605153,
-0.2136410922,
-0.1040797979,
-0.0956789181,
-0.0414951853,
0.2334915996,
0.1269830167,
0.0212046951,
0.2292777747,
0.093539536,
0.6404245496,
0.0503103286,
-0.1254807115,
0.5086990595,
0.1254238039,
0.7294852138,
-0.0740368366,
-0.3390604258,
-0.0056345873,
-0.18458426,
0.3192576468,
0.0420286804,
-0.1061970145,
0.130979836,
-0.1564230472,
0.0242269486,
-0.1678122282,
-0.2236510366,
-0.117909424,
-0.2493902147,
-0.0220436528,
0.3142302632,
-0.1047641709,
-0.134165585,
0.081380859,
-0.018525321,
0.0876278728,
0.3220419586,
0.08849217,
0.0994392037,
0.5284664035,
-0.1080815047,
-0.0133392215,
-0.087797679,
0.3645616174,
0.2040730566,
-0.202382952,
0.058592353,
-0.0231181774,
0.7181987762,
-0.2194462717,
0.3132911026,
0.2286944985,
0.011422947,
-0.08702185,
-0.196765691,
0.1032616943,
-0.1487743556,
0.1887096465,
0.364929229,
0.0375474393,
0.0390017033,
-0.1003571302,
0.2032169402,
0.062129043,
-0.1629727781,
-0.2788122892,
-0.1599722505,
-0.4588589966,
0.3117336333,
0.1915879846,
0.0890045911,
-0.320887506,
0.0846343338,
-0.2478238493,
-0.4116816819,
-0.0395847186,
0.1951415241,
0.2008187026,
0.1139606982,
0.0489873812,
-0.0161830783,
-0.1171156615,
0.2674766481,
0.4194466472,
-0.1649918556,
0.0667290986,
-0.1280568093,
0.1093957722,
-0.0675815195,
0.3193865418,
-0.0657962188,
-0.1120611578,
-0.3978951275,
-0.161882177,
0.0620967448,
0.067345798,
0.0029718503,
-0.3354583383,
-0.0954509974,
-0.4370095432,
0.2871856093,
-0.0682171509,
-0.0515980199,
0.4572839737,
0.2364324331,
-0.2039114088,
0.1625165641,
0.0528944209,
0.8192446232,
-0.122147873,
0.1651923954,
0.0327904336,
-0.0593870841,
0.4034760892,
-0.288682282,
0.1940590441,
-0.1767738611,
-0.3061234951,
0.1044935659,
-0.0408079773,
0.2328796983,
0.2079222798,
-0.1264044791,
0.1385399848,
-0.0984726101,
0.4167667031,
0.2764786482,
-0.003026031,
-0.2224706262,
-0.1413928568,
-0.2291932851,
0.1468186826,
0.281172961,
0.1926803589,
-0.1454819888,
-0.0086176768,
0.1220361218,
-0.0229483023,
-0.2685616016,
0.2866363227,
-0.1642528325,
0.3783462346,
-0.4507656991,
-0.1098409444,
0.0326459631,
0.2600930333,
0.254960984,
0.257820189,
0.0146767776,
0.0830926895,
0.4122846425,
0.1323083043,
-0.1551140696,
0.000856854,
0.4158845842,
0.1006285995,
-0.3379720449,
0.1988292485,
-0.0907846019,
-0.1476550549,
0.003759101,
0.2748384774,
-0.0433281548,
-0.1125033423,
-0.092763789,
0.0935378596,
-0.074974604,
-0.4186441898,
0.1443356425,
-0.0522537902,
-0.1282392591,
0.1212556213,
-0.448102802,
-0.4539900422,
-0.2699025273,
0.5651442409,
0.165303871,
0.0896879062,
0.3432315886,
-0.1958157271,
0.0092305094,
-0.1956040412,
0.0348326936,
-0.1255518198,
-0.3250434995,
0.5315563083,
-0.2140320241,
-0.1011315584,
0.1889257878,
-0.1737540513,
0.1105416715,
0.3808701038,
0.1637352407,
-0.2844934762,
-0.5291987658,
-0.3904181123,
-0.0524905659,
0.2282983363,
0.0508476049,
-0.0072953049,
-0.0107129738,
-0.0045594815,
-0.3350777626,
0.2403883934,
0.091907233,
0.0729335099,
0.1242786348,
-0.1043482274,
-0.2560697198,
-0.259272784,
0.177595377,
0.3209486604,
-0.0254105274,
-0.2779420912,
-0.3296149075,
0.0958331525,
0.3220798969,
-0.1090263799,
-0.1992630363,
-0.0858468562,
-0.2128358036,
-0.1136853099,
0.2098958641,
0.4146846235,
-0.0505066775,
-0.0152493082,
0.3320708871,
0.0022461843,
-0.1997738779,
-0.0958506614,
-0.2755775452,
-0.1480357647,
0.0696584284,
0.2725879252,
-0.0361605026,
0.1273907721,
-0.4385436773,
-0.0649158806,
0.1195173711,
0.0885498077,
0.1913102269,
-0.2284956425,
-0.1663824916,
-0.0860036016,
0.2218851447,
0.4013639688,
0.0489362441,
-0.1580480039,
0.2325664461,
0.2389935702,
-0.5628598332,
-0.0106937252,
0.1943590343,
-0.0036499109,
0.0985646173,
0.1986981034,
0.2104046196,
-0.168173641,
-0.0613068342,
0.1347884238,
0.2547548413,
-0.0625271872,
0.3317424953,
0.6826942563,
0.1762797385,
0.2481752634,
0.2562506497,
0.1975748986,
0.1642527878,
0.3292225003,
0.0229684971,
-0.0241937451,
-0.2815636098,
0.0184472296,
-0.3797064722,
-0.3709609509,
0.3160880208,
0.4231718481,
-0.2143075615,
0.2365920395,
0.0353623219,
-0.3099909425,
-0.0264860485,
0.0299496166,
-0.2805519998,
0.2032454312,
-0.1236359254,
-0.3274009228,
0.387868315,
-0.202611506,
-0.1777495444,
0.196498692,
-0.0410758182,
0.0262601674,
-0.1356978416,
-0.0048754476,
-0.2721964419,
-0.4071185887,
-0.0643910021,
0.1155257151,
0.1304228306,
-0.2057666183,
-0.0984742045,
0.3018858433,
-0.136428073,
-0.0018367833,
0.2399720997,
0.3788968027,
0.2111080438,
0.1534902155,
-0.0022814907,
0.1738818437,
-0.0088152029,
-0.3157629371,
0.4200020432,
0.0662741438,
-0.0240944717,
-0.137090534,
0.2039389312,
-0.2506952286,
-0.0812054276,
0.1522061229,
0.0141360164,
-0.1547082067,
0.4992973506,
0.071996212,
-0.3092765808,
-0.0027597118,
0.2752628624,
0.025196746,
-0.0798182786,
0.3267327249,
-0.1332304329,
0.2819016576,
-0.2300074548,
0.1109810024,
0.1148270443,
-0.0347524993,
0.4555132091,
-0.4898699224,
-0.2097951025,
0.0988612771,
-0.8164003491,
0.0120940804,
0.0328482091,
0.2008300722,
-0.1417103708,
0.0833702087,
-0.0083176121,
0.0212944727,
0.1145127937,
0.3138948381,
0.0724568367,
0.3102657497,
-0.0539459288,
-0.1346901506,
-0.0958662704,
-0.1477007419,
-0.1163654327,
-0.5594714284,
0.0759589002,
-0.1853276193,
0.2095306218,
-0.0370591059,
0.0065101311,
0.21801503,
0.2444199473,
0.4945929945,
0.028728405,
-0.0332199596,
-0.0520026721,
-0.1335050166,
-0.566588819,
-0.0398007669,
-0.2466408759,
0.0500842258,
0.1520661712,
0.1390789747,
-0.3625163734,
-0.3033446074,
-0.2144048363,
0.3089039028,
0.2004513443,
-0.0365047343,
-0.3225578666,
-0.0226421505,
-0.086475268,
0.0237417035,
0.261890471,
0.2817649245,
-0.3526061773,
0.3924573958,
-0.3913658261,
-0.3119351268,
0.2078100741,
-0.3488788903,
-0.3597281873,
-0.1109974012,
0.2195088565,
-0.0590105914,
-0.0838466138,
0.0804016739,
0.3842257261,
0.2200256437,
-0.1292812526,
-0.2282671183,
0.1182788759,
-0.4038989842,
0.1522313952,
-0.0926431641,
0.1583369076,
0.151463449,
-0.2153836489,
0.1477643102,
-0.0796993971
] |
https://github.com/huggingface/datasets/issues/2902 | Add WIT Dataset | WikiMedia is now hosting the pixel values directly which should make it a lot easier!
The files can be found here:
https://techblog.wikimedia.org/2021/09/09/the-wikipedia-image-caption-matching-challenge-and-a-huge-release-of-image-data-for-research/
https://analytics.wikimedia.org/published/datasets/one-off/caption_competition/training/image_pixels/ | ## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 23 | Add WIT Dataset
## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
WikiMedia is now hosting the pixel values directly which should make it a lot easier!
The files can be found here:
https://techblog.wikimedia.org/2021/09/09/the-wikipedia-image-caption-matching-challenge-and-a-huge-release-of-image-data-for-research/
https://analytics.wikimedia.org/published/datasets/one-off/caption_competition/training/image_pixels/ | [
-0.049786251,
-0.0547439605,
-0.1280666441,
0.000300426,
-0.0393541008,
-0.0071310773,
0.3546050191,
0.1659150422,
0.1936855912,
0.2055809498,
0.063979961,
0.1460070014,
-0.0242924429,
0.1997421682,
-0.0148758469,
-0.2061530352,
-0.0474180207,
0.0075570196,
-0.095439963,
-0.0953546613,
-0.1237477213,
0.1472278237,
-0.1375915557,
-0.2112541795,
-0.4580721855,
-0.0875772685,
-0.1730556041,
-0.0253451541,
-0.1721293181,
-0.0776186436,
-0.1209004521,
0.1993556023,
-0.1435847133,
0.3342962861,
-0.0000973471,
-0.1190001518,
0.2309072316,
-0.1802839041,
-0.0871032551,
0.0576612316,
0.1233593822,
-0.0183559954,
-0.3197693825,
-0.4497414529,
-0.1917415112,
-0.0919260085,
0.2502597868,
0.0872262865,
0.2207233608,
-0.0171945021,
0.3280396461,
-0.1210447699,
0.1039479375,
0.0242982134,
0.0408666097,
0.1121117026,
-0.1330120862,
-0.0007009823,
0.0150086842,
-0.3246175051,
-0.1604317874,
0.6847470999,
0.017172493,
0.0272536688,
0.0614412874,
0.0563659109,
-0.1721414626,
-0.3297244906,
0.179035008,
0.4349498451,
0.5310003757,
0.0022285867,
-0.1660662144,
-0.0531980768,
-0.0875588432,
-0.0650096685,
0.1432963461,
0.2999424934,
-0.1368230879,
0.0239425618,
-0.2666971982,
0.002892442,
-0.2545391917,
0.1593598723,
-0.1959468424,
0.4131115675,
0.0215666406,
0.0326526724,
-0.0001826733,
-0.210152179,
-0.4369372129,
-0.0127321053,
0.2125471234,
0.0099949129,
0.0381095558,
-0.2509275079,
-0.0503862463,
-0.1546090394,
0.369222641,
-0.1973781884,
-0.0403583907,
0.0733240992,
-0.182513535,
0.3001660109,
0.1151568443,
-0.2735809088,
-0.1728781313,
0.0215192735,
0.1827846169,
0.0874058008,
-0.2466637194,
0.1344640106,
0.2253026813,
-0.1029727608,
-0.1772986054,
-0.0878006369,
0.1070198566,
-0.0466614328,
-0.1075611115,
-0.0085833706,
-0.1467047632,
-0.0710132271,
-0.4360580146,
0.2165164053,
-0.0335758477,
0.1098505408,
0.1278967261,
0.1473862529,
-0.2188079953,
-0.1533712149,
-0.1057867631,
0.1009150222,
0.0557396114,
0.2790457308,
0.1211024672,
0.3311383128,
0.2567344606,
-0.0824030489,
0.174645409,
0.0947208256,
0.0416482389,
-0.0953106284,
0.2555250525,
-0.008912405,
0.0164621323,
-0.1227280051,
-0.0512414053,
-0.2793620229,
-0.19902426,
0.0270650964,
-0.108472757,
0.2036318034,
-0.321290046,
0.2668367326,
0.1446976662,
-0.0583519451,
-0.0045634173,
0.698210001,
0.0959761441,
0.0308419988,
0.1365308911,
0.1445247382,
-0.3958845437,
-0.0636470616,
0.2453515828,
0.4490686059,
-0.0886284336,
0.0255282596,
0.3061003387,
0.3564617038,
0.0193693861,
0.1932201535,
0.0245505311,
-0.0181515738,
0.0488756076,
0.2630173564,
-0.105621174,
-0.2358686477,
-0.1195389852,
-0.1759905815,
-0.0965116173,
0.1020762101,
0.0326435715,
0.286051482,
0.2700508535,
-0.1027757972,
0.093534492,
0.6013004184,
-0.1892948151,
0.213765353,
-0.2130067348,
-0.3863323927,
-0.0069001801,
0.3273806572,
0.1285638213,
-0.4685771763,
0.2250232399,
0.1909395307,
0.03199834,
-0.3845872581,
0.0987226143,
0.0075335819,
-0.0310355574,
0.0995842293,
0.0918280184,
-0.2398947924,
-0.0079524294,
0.0546786562,
0.2049161345,
0.4832217991,
-0.1773445308,
-0.248134166,
-0.0389954746,
-0.1513749063,
-0.1065134406,
-0.3698705137,
0.3537431061,
0.1205863953,
-0.0045493841,
0.2210573554,
0.0784497261,
-0.0594157726,
-0.3163437247,
-0.045601666,
0.1199061722,
0.1867600977,
-0.262372613,
-0.0185758173,
0.1218655854,
0.0860535577,
-0.0835608095,
0.1807651967,
0.091175124,
0.1913249046,
0.0461769924,
0.3455416858,
0.2677954137,
0.0530584082,
0.3559019566,
-0.6900473833,
-0.0690082535,
0.1912342757,
0.003061071,
0.0122597292,
-0.2659724951,
0.1819277108,
0.271704495,
0.0452174284,
-0.080445081,
-0.0083080977,
0.1473469734,
-0.0244391188,
0.0583700761,
-0.3646616936,
-0.0810375735,
0.2129996121,
-0.2515607774,
-0.2326060534,
-0.1890243292,
0.18087551,
0.5132708549,
0.2433170825,
0.3687904477,
0.1684177667,
-0.1199678332,
-0.1401046216,
-0.0068698442,
-0.0960154161,
-0.1688123345,
0.3742108941,
-0.0537725575,
-0.1260633171,
-0.2724705338,
-0.0922953188,
0.1780957878,
-0.0158919059,
0.2231316119,
0.048664175,
0.2492242157,
-0.0249908324,
-0.4577435851,
-0.1271144152,
-0.1574494541,
-0.1973032951,
0.0562822968,
0.0784646422,
-0.0713318139,
-0.1991606951,
-0.0669649765,
0.2833606303,
-0.3087125719,
-0.1143090129,
0.3522227407,
0.0152186509,
-0.1103115678,
0.1833132207,
0.0873239785,
0.1733572483,
0.1862345338,
0.0245580766,
-0.1337939203,
-0.5455775857,
-0.0611163341,
0.2686133385,
0.1743591726,
-0.0161512345,
0.5377415419,
-0.1781013906,
0.0367743783,
-0.2884243429,
-0.705337584,
0.1020469368,
-0.1840779781,
0.1969556957,
0.0155184641,
0.2760655582,
-0.2234157622,
-0.1541128457,
0.1546295285,
-0.1017461643,
-0.1935487241,
-0.2209585607,
0.0480771586,
0.0420999639,
-0.2291865945,
-0.2148962021,
-0.1442072242,
-0.2447484881,
0.1066019386,
0.3489590585,
0.172186926,
0.0647367015,
0.3838176429,
0.0280660763,
-0.0238699093,
0.2764135003,
-0.3571160436,
-0.0322025567,
0.3682465553,
-0.3039097488,
-0.403814584,
-0.1645275354,
-0.1827673614,
0.1699131876,
0.0591958426,
-0.3852043748,
-0.3932057619,
0.0160928313,
0.196457684,
0.2606025338,
0.0776554123,
0.1688966751,
0.1696978658,
-0.2888213992,
-0.1201303899,
-0.0905003995,
0.1087626368,
0.0804395527,
0.0327172801,
0.215632692,
0.0916362852,
0.226503402,
0.6132438779,
-0.1613395214,
-0.0281571522,
0.4119820893,
-0.0383807719,
0.2241046429,
-0.0002331547,
-0.070511505,
0.4972851574,
0.0091165006,
0.1581447721,
0.2489970773,
0.1093951911,
-0.4575265348,
-0.1425065696,
0.0741074905,
-0.4309841394,
-0.1831287146,
0.1126238108,
0.2822227776,
0.1359025836,
-0.1255719066,
-0.1118768379,
-0.1950075626,
-0.2140991688,
0.1501376182,
0.1365457773,
-0.0330668576,
-0.08544036,
-0.1478023529,
0.0440794639,
-0.2099581659,
0.1326002777,
0.3808393478,
-0.1713137925,
-0.123529762,
-0.0641895011,
-0.1482822895,
-0.2265732735,
0.245616883,
-0.3066809773,
-0.0396220051,
-0.0001856685,
-0.0057734102,
0.0171941519,
0.2211833,
-0.2088256776,
-0.3443022668,
-0.0452316925,
0.2477725744,
-0.4293946624,
0.0881707966,
0.3906086385,
0.1875753403,
-0.0982596055,
0.0725137889,
-0.1535127908,
-0.4466048181,
-0.4639799595,
0.07592801,
-0.0179232173,
0.2340523005,
0.1692748964,
-0.0461041294,
-0.0495609045,
-0.034580458,
-0.031356439,
0.3599344492,
0.023260504,
0.2451538444,
-0.1866829246,
0.0159258228,
-0.0362759121,
-0.039268136,
0.2646234334,
0.0655593872,
0.0620995611,
-0.190488562,
-0.179886356,
-0.0081321448,
0.1325875968,
0.2491253465,
-0.0325292014,
0.0099018589,
0.0323805101,
-0.3869567513,
0.2138520479,
0.1015859619,
0.1107607782,
-0.0148324519,
-0.2682085633,
0.357532233,
0.0139689445,
0.0896826386,
0.3896493316,
0.0827481821,
-0.407733053,
0.1313975751,
0.6063616276,
0.8766950369,
-0.1784273833,
0.1968856007,
0.1156533882,
-0.1227695048,
0.4901362062,
-0.0125113353,
0.0893897191,
-0.0903045684,
0.0462061949,
-0.0482572168,
0.18107678,
0.0233862493,
-0.0071795899,
-0.238396436,
-0.0591488779,
0.4950778484,
0.0509890914,
0.022318216,
0.2454407364,
-0.0180006959,
-0.3712227046,
-0.1638909429,
0.239621371,
-0.1347940862,
-0.0386185795,
0.0205545984,
-0.1282646954,
-0.056306906,
-0.240872696,
-0.2661219835,
-0.0375265367,
-0.3923749924,
0.2052640915,
-0.2520483136,
-0.2321316898,
0.0540003702,
0.192571193,
0.1538774818,
-0.0118548628,
-0.1931019574,
0.2699620426,
-0.2166959643,
-0.1297282279,
0.099448368,
-0.0778561309,
0.3134613037,
-0.1621257365,
-0.2310336828,
0.0682640821,
0.3530695736,
-0.2003536224,
-0.3784059882,
-0.1596206129,
0.2148568481,
0.3098062873,
-0.0714116096,
0.0368097983,
-0.4080921412,
-0.25505656,
0.2662608922,
-0.1720843613,
0.128096059,
0.095322758,
0.3381572068,
-0.0661716461,
0.0120413862,
0.2799663544,
0.1513241827,
0.0692157745,
0.252928853,
0.1970508248,
-0.159377709,
-0.262548238,
-0.1428263783,
-0.214379102,
-0.305133462,
-0.1352980286,
0.0671667159,
-0.2043527812,
-0.1338025481,
0.3641970754,
0.1625053585,
-0.0255597234,
0.0916182622,
-0.0791772306,
-0.0435320586,
0.3351589441,
-0.2645079792,
0.2620087862,
0.1362606734,
0.0919236764,
0.0621005148,
0.2466656864,
-0.4697705805,
0.0008082725,
-0.2768233716,
0.2204384208,
0.2841959,
-0.1862061322,
-0.0280306172,
0.1253684163,
0.3021201789,
0.0017987983,
-0.1685612798,
-0.3627262115,
-0.243143782,
0.0422773212,
0.0334105454,
-0.1346722543,
0.0254574195,
-0.0790321454,
-0.0836150944,
-0.1622534394,
0.0931931585,
-0.2240976542,
-0.2472416461,
0.2228256762,
-0.1823137552,
0.0700712055,
0.0948467255,
-0.1861074716,
-0.0950849503,
0.415605396,
0.0535982884,
-0.1083416194,
0.2208645344,
-0.1395663023,
-0.0260136295,
0.2909346223,
-0.2630016804,
0.0133083314,
0.2766338587,
0.1419245601,
-0.0343246348,
0.2441201359,
0.2616047263,
-0.2128532231,
-0.2781762481,
-0.0709295943,
0.2034054548,
0.3885401487,
-0.3480495512,
-0.0002683289,
0.3647508025,
-0.40264979,
0.4058005214,
0.3052505255,
0.1680757403,
-0.0470948294,
-0.2581309378,
0.0765388384,
-0.0169943832,
-0.4340022504,
-0.0203034598,
0.1415559053,
0.1105762869,
0.0487361215,
-0.0601711348,
0.1592474878,
0.279044807,
0.2702629566,
-0.0576714091,
0.4003248811,
0.0700722411,
0.053658843,
0.2820591927,
0.2163241655,
0.5008889437,
0.152039364,
0.0615331754,
0.3375334144,
0.0667119995,
-0.0489494465,
0.0231668763,
-0.1415087879,
-0.1176150441,
0.3134405911,
-0.0147498893,
-0.0715857595,
-0.3975220919,
-0.2155853659,
-0.0502536222,
0.0992040485,
0.0855666846,
-0.1450579464,
0.2354639769,
0.0524964333,
-0.1196645498,
-0.2443863004,
-0.0430715531,
-0.0664650649,
0.5451588035,
-0.1991380006,
0.0696594566,
0.2658622563,
-0.0356094763,
0.0963546485,
0.4021224976,
0.1985041648,
0.078916207,
-0.2381747663,
0.1088348776,
-0.0445785969,
-0.1440981627,
-0.1425257474,
-0.0305382796,
0.1477591544,
-0.2748592794,
0.349375248,
0.2631459832,
-0.3019367158,
-0.3211146891,
0.3872311413,
-0.134588033,
-0.0100661479,
-0.6193218231,
-0.002628237,
0.0443203449,
-0.1521769762,
0.1048778966,
-0.5363390446,
-0.0952257216,
-0.088542968,
-0.0321344994,
0.027719792,
-0.1648293138,
0.1338630766,
0.0752424374,
0.4413731396,
0.2891281843,
0.0606764108,
0.0619642772,
-0.227934286,
-0.5278970003,
0.1167536825,
-0.0799410194,
-0.4166086316,
-0.1129242182,
0.350566119,
0.2454899997,
0.238532424,
0.1003210098,
-0.1506654024,
0.2423654944,
0.0709741861,
-0.2875418961,
0.0808580518,
0.0561880022,
0.0541798249,
-0.0941887647,
-0.1719166785,
0.1251951903,
-0.2471843213,
0.3233295381,
-0.2411758453,
0.1120427698,
-0.1701766998,
0.0729581416,
0.0646916032,
-0.0272891168,
0.1814374477,
-0.4356129467,
-0.3198750615,
-0.0362589471,
0.011588946,
-0.1519788951,
0.1135639027,
0.1561067402,
0.5797205567,
0.0692495853,
-0.0713021159,
0.1066628024,
0.4916709065,
0.0201846883,
0.0295590721,
0.0948420018,
0.0310271904,
0.2517524362,
-0.1997820139,
-0.0788600147,
0.396351397,
-0.0907163173,
-0.1283349395,
-0.0551320538,
-0.6203970909,
0.1190894544,
-0.4396670759,
-0.1874822974,
-0.0373209491,
-0.1397859603,
0.1088621914,
0.3996540904,
-0.3055773377,
0.2087804377,
0.2238701135,
0.1930085421,
-0.2440024614,
0.3604777157,
0.1155557185,
-0.1429822445,
-0.0835570246,
-0.1805303991,
-0.0429826826,
-0.0756493732,
-0.2174598575,
-0.3298110664
] |
https://github.com/huggingface/datasets/issues/2902 | Add WIT Dataset | > @hassiahk is working on it #2810
Thank you @bhavitvyamalik! Added this issue so we could track progress 😄 . Just linked the PR as well for visibility. | ## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 28 | Add WIT Dataset
## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
> @hassiahk is working on it #2810
Thank you @bhavitvyamalik! Added this issue so we could track progress 😄 . Just linked the PR as well for visibility. | [
-0.080951564,
-0.2214549333,
-0.1989731789,
0.0133092906,
0.0548566207,
0.0012879595,
0.4317960739,
0.0905279517,
0.2972512543,
0.1470825076,
-0.0140025001,
0.117820859,
-0.18012923,
0.2750625312,
0.1759227812,
-0.2347300947,
0.0528858341,
-0.0525589399,
-0.1111660898,
-0.0794198662,
-0.0522571616,
0.1980129182,
-0.1938382089,
-0.247792989,
-0.3986716866,
-0.1057199314,
-0.1739890724,
-0.0169519521,
-0.1846639067,
0.0327741019,
-0.2608134151,
0.0733175352,
-0.115697667,
0.4770055711,
-0.0000964032,
-0.064580135,
0.2143843472,
-0.1423905194,
-0.05456011,
-0.1777074337,
0.0415352806,
-0.0049116053,
-0.2549007535,
-0.2813228965,
-0.1839790642,
-0.1538776159,
0.2700460255,
-0.0029816628,
0.3053424954,
0.1210971028,
0.3088105619,
-0.1474683881,
0.2071536779,
-0.0514377505,
0.1326429546,
0.1544086784,
-0.2482748032,
-0.0964364037,
0.0966394544,
-0.2267572284,
-0.2421551645,
0.6854544282,
0.1160563678,
0.0250155143,
-0.0252820104,
0.0070956014,
-0.0926499814,
-0.2954963446,
0.188639462,
0.4700401425,
0.5937218666,
-0.1630618274,
-0.1721826345,
0.0919664577,
-0.0487030074,
0.0397697836,
0.0408560932,
0.3571048677,
-0.1618404239,
0.0649589747,
-0.1783178151,
-0.1513322741,
-0.1726875752,
0.2914960086,
-0.094911024,
0.407866478,
-0.031545274,
-0.0555810742,
-0.0373772345,
-0.1777150035,
-0.2164236307,
0.0523082167,
0.2419602424,
0.0662367195,
0.0335867852,
-0.1256910563,
0.0385493636,
-0.1135112643,
0.3417509198,
-0.2774722278,
-0.0565750673,
0.1329014748,
-0.3231122792,
0.3092395961,
0.1385569572,
-0.2174253166,
-0.1450337023,
-0.1854815483,
0.1951013803,
0.0325000882,
-0.2619888783,
0.1505583078,
0.0997209847,
-0.021424178,
-0.2273958027,
-0.1607689559,
-0.0516468696,
0.0911392868,
0.1193966195,
-0.0707591921,
-0.1421587467,
-0.0661800578,
-0.3177126944,
0.2407009155,
0.1010046601,
0.0815591216,
0.0965302736,
0.2475895137,
-0.1470990181,
-0.1765170991,
-0.0881534815,
0.2248413861,
-0.1903707832,
0.1265025437,
0.1592802554,
0.511336565,
0.2537500262,
-0.0733773112,
0.1129092053,
0.0018322989,
0.0856604129,
-0.1001402289,
0.2069842368,
-0.0557914004,
0.0809680521,
-0.1524136662,
-0.0733732581,
-0.3102893233,
-0.1555390954,
0.0773522332,
-0.088991411,
0.04937765,
-0.4161144197,
0.2530648112,
0.1284849197,
-0.0809181556,
0.09084782,
0.7699180841,
0.0582490563,
-0.0342354439,
0.1798475832,
0.2833343148,
-0.3797135651,
-0.0025157779,
0.1757737547,
0.3905651271,
-0.0924205482,
-0.0642547607,
0.1328475475,
0.2665219605,
-0.0583943427,
0.2173907757,
-0.0567307584,
0.0878571272,
0.0246499032,
0.2322875559,
0.0694602281,
-0.1395290792,
-0.0435002074,
-0.1011100486,
-0.0813608617,
0.0106060058,
0.0836545378,
0.2981449068,
-0.012793798,
0.0965286046,
0.0080791134,
0.6753441095,
-0.1098163575,
0.2285999656,
-0.2737776041,
-0.4278276563,
-0.0113982279,
0.3287437558,
0.1453769654,
-0.4055054188,
0.3278428912,
0.2322439253,
0.094986558,
-0.3136897385,
0.108585678,
0.0223199986,
-0.0005048956,
0.1467116922,
0.1092846096,
-0.2964725792,
-0.0836763084,
-0.1304022521,
0.1318240166,
0.4837468565,
-0.248289451,
-0.2480279803,
0.004285574,
-0.2053585798,
-0.0621922947,
-0.2704661787,
0.3617102206,
0.1716300845,
-0.1306217909,
0.2724725604,
0.0430584401,
-0.0919281915,
-0.2533150911,
-0.0622686483,
-0.0406290852,
0.1581879854,
-0.2046280205,
-0.0177776255,
0.0472489297,
0.1987010837,
-0.2961710691,
0.0533347465,
0.1038890481,
0.1865648776,
0.0792260692,
0.3698842227,
0.3873916566,
0.1120802537,
0.2921238244,
-0.6291124225,
0.1154157445,
0.076028645,
-0.006125994,
-0.0176066831,
-0.3841995895,
0.0472672582,
0.192834124,
-0.0016579255,
0.1144333333,
0.0733930543,
0.2081532776,
-0.095678106,
-0.0049934909,
-0.36685431,
0.0016061342,
0.1734440327,
-0.1884855181,
-0.1824616939,
-0.2030259669,
0.0807694048,
0.5237084627,
0.2258418202,
0.550599277,
0.1254281998,
-0.1420795918,
-0.2888578176,
0.0549860075,
-0.294126302,
-0.1655779183,
0.3116268516,
-0.0251247771,
-0.1782428622,
-0.0482350737,
-0.0855278224,
0.1338160336,
-0.0276925527,
0.1904967725,
0.0914436728,
0.2914771438,
-0.1149810404,
-0.5630299449,
-0.0705271214,
-0.0223843679,
-0.2100637108,
0.095563665,
0.053229019,
0.0085637867,
-0.281354785,
-0.0914487839,
0.1090580076,
-0.2741342783,
-0.0460893959,
0.3448167741,
-0.0612962618,
-0.1088429093,
0.2226289213,
0.2646662593,
0.2659244239,
0.0535227805,
-0.032708101,
-0.0569327474,
-0.4480120242,
-0.0012575397,
0.2744466066,
0.309452951,
0.0774365962,
0.4492531717,
-0.1706188321,
-0.0032698773,
-0.1970396936,
-0.6828351021,
0.1931856275,
-0.179933548,
0.2222972512,
0.0465348959,
0.0597998872,
-0.216209054,
-0.1784385443,
0.1267047226,
-0.1550562829,
-0.1278321743,
-0.0514387786,
0.0643263161,
0.079196766,
-0.1711822152,
-0.2651810646,
-0.1608144641,
-0.3226845264,
0.3241013288,
0.2365680039,
0.1134488732,
-0.0567814894,
0.3845592439,
0.0518008992,
-0.0231321752,
0.278318733,
-0.3127381802,
-0.0589279719,
0.1515591741,
-0.3646038771,
-0.3476808071,
-0.2444109321,
-0.1988815218,
0.2525682449,
0.0808436796,
-0.4292117953,
-0.3522475362,
0.0311821681,
0.2061468065,
0.1419825256,
0.0842592344,
0.2448362857,
0.190408811,
-0.2793112397,
-0.1548066437,
-0.0041609406,
0.0255122464,
-0.1157208383,
0.0760342479,
0.1783278286,
0.0139506906,
0.2965380549,
0.4465199709,
-0.2176057547,
0.1476778686,
0.3842279613,
0.0036175493,
0.1714647859,
-0.2575018704,
-0.1082879454,
0.5114597082,
-0.0155885369,
0.0532227904,
0.3055921495,
0.1387230456,
-0.4937735498,
-0.104774341,
0.1593846381,
-0.5112807155,
-0.1331508011,
0.1892558187,
0.1403898299,
0.1600530148,
-0.151372239,
-0.3017926514,
-0.1755919605,
-0.1879560351,
0.1834860742,
0.2554948926,
-0.0663222671,
-0.0857872516,
-0.1768642366,
0.0369858146,
-0.1211136132,
0.0471083745,
0.3025898039,
-0.1103601754,
-0.1657051146,
-0.1256041825,
-0.069181174,
-0.1423523277,
0.2711535692,
-0.3945427239,
-0.180249691,
0.102445066,
-0.0627272725,
-0.0776358396,
0.2761699557,
-0.3302929103,
-0.2617785335,
0.0633344799,
0.3113535345,
-0.3719662726,
0.0762864202,
0.4057543576,
0.1531731933,
0.0045683905,
-0.0382464677,
-0.0839483961,
-0.2303083837,
-0.4416758716,
0.075609386,
-0.0475241728,
0.1286155581,
0.2946781516,
-0.0733427703,
-0.0314383507,
-0.0484546386,
-0.0901325792,
0.2570099235,
-0.0899744257,
0.2848594785,
-0.1690305173,
-0.1259717196,
-0.1103043705,
-0.1840959638,
0.1707032919,
-0.0802197754,
-0.0567744039,
-0.2014105618,
-0.2966365218,
0.0954906642,
0.0731393397,
0.2481430173,
0.0807808638,
-0.0638770163,
-0.016713161,
-0.3351790011,
0.1609587669,
0.2288004458,
0.2169884592,
0.0056776442,
-0.2819875777,
0.3445269465,
-0.0730210766,
0.0397839099,
0.3688853085,
-0.1323996186,
-0.4168664217,
0.3294694722,
0.3667803705,
0.9066293836,
-0.1412281394,
0.2516910732,
0.052111093,
0.0443728641,
0.3796298802,
-0.2828924954,
0.060483031,
0.0479292423,
0.056386102,
-0.0548547432,
0.192368269,
-0.01178631,
0.0325936079,
-0.2751648426,
-0.1745014936,
0.350412786,
0.1096889973,
0.0581244156,
0.3463209569,
-0.0501320325,
-0.4585263729,
-0.2810155451,
0.2333672941,
0.0736546293,
-0.1327344179,
-0.0186841786,
-0.0988534391,
0.0398560166,
-0.0720822215,
-0.3393505812,
-0.0706248432,
-0.3228843212,
0.2183895111,
-0.3081167042,
-0.3472009301,
0.1668402702,
0.2316641808,
0.2130427063,
0.1262043566,
-0.2604320049,
0.2059070617,
-0.0819386244,
-0.1436519176,
0.0000348911,
-0.093664363,
0.3640668094,
-0.1577277035,
-0.1965642571,
0.0312891528,
0.27191782,
-0.1914390028,
-0.4962574244,
-0.1763630956,
0.3231759667,
0.2469759136,
0.0594021007,
0.2734152675,
-0.4200814962,
-0.279899776,
0.2923045754,
-0.1240276992,
0.139734745,
0.0906268209,
0.2457035333,
-0.0870906562,
-0.0481113009,
0.240969792,
0.2811493576,
0.081773147,
0.2042908967,
0.3132545352,
-0.123145774,
-0.4118821025,
-0.2268983275,
0.011282742,
-0.3043801188,
-0.0997031704,
0.0750293881,
-0.3576359749,
-0.1853454113,
0.2977904677,
0.0945068076,
-0.0108859837,
-0.0280814022,
-0.1047071889,
-0.0504858308,
0.4871656299,
-0.1233901009,
0.1704571694,
0.0498322397,
0.1368634105,
0.1661448479,
0.2778990567,
-0.4913753271,
0.0999073386,
-0.1608648747,
0.1617065221,
0.114098236,
-0.2118066102,
0.0391211919,
0.1311942637,
0.2852494419,
-0.0028899154,
-0.1713039279,
-0.3745979071,
-0.1606841534,
0.0489701703,
0.0406192429,
-0.0218043663,
0.2007371336,
-0.1021693796,
-0.075192228,
-0.209364593,
0.1701404601,
-0.0332110487,
-0.2352694124,
0.1865300983,
-0.1608069241,
0.1187049299,
0.1141009331,
-0.1843492389,
-0.0202732719,
0.2034231275,
0.1748363078,
-0.1693173647,
0.2350271344,
-0.0905753747,
0.0716956556,
0.2352730632,
-0.1609389782,
0.1508628279,
0.2236831635,
0.115617305,
0.0467400774,
0.0889116377,
0.2442272305,
-0.2031770498,
-0.3575417101,
0.0098929182,
0.2128426731,
0.3950456977,
-0.378852725,
-0.1032667607,
0.1637055427,
-0.3952117562,
0.4144685268,
0.2580402195,
0.1857474446,
-0.0102851912,
-0.104149878,
0.0706409514,
-0.1911444217,
-0.3604946136,
-0.0429541506,
0.043650575,
0.0383598357,
0.0862424374,
-0.1259574741,
0.1100240797,
0.2090561688,
0.2760358155,
-0.0548094101,
0.3306505084,
-0.0164462905,
0.0951901972,
0.3387246132,
0.2413451374,
0.4937804937,
0.0987098217,
0.0264338683,
0.3570220768,
-0.0418582745,
0.2647002339,
0.1094168723,
-0.0347853526,
-0.1574991643,
0.187232554,
0.0186633226,
-0.1193161085,
-0.2749851644,
-0.1580922008,
-0.1344574094,
0.0357707962,
-0.0121381991,
-0.0608972423,
0.1425049752,
0.0659471825,
-0.1128230542,
-0.201325044,
0.061597608,
-0.0594317392,
0.4502528906,
-0.2346452773,
0.2587012053,
0.1951896399,
-0.004693795,
0.0203924812,
0.4529601336,
0.1121042222,
0.0199772231,
-0.1175722629,
0.0875310898,
-0.1143087447,
-0.0617716312,
-0.1920992583,
0.0724603981,
0.3947675824,
-0.0750952661,
0.247558549,
0.2361382246,
-0.3471648097,
-0.1523067057,
0.4345371127,
-0.1978105009,
-0.0468035005,
-0.5462716818,
0.0078051016,
0.0408356115,
-0.289258033,
0.0690492392,
-0.6371955872,
-0.0430858694,
-0.0008574314,
-0.0671568662,
0.0473665968,
-0.095145084,
0.1405508369,
0.123673439,
0.442150265,
0.3087599576,
0.1302764267,
0.0961520746,
-0.3838953674,
-0.4464388788,
0.1654718667,
-0.1000232399,
-0.0665671527,
-0.1452488899,
0.3211542368,
0.2846550047,
0.2771972418,
-0.0085252449,
-0.1527163833,
-0.0146442987,
0.1127074063,
-0.3975599706,
0.1767693311,
0.0961188674,
0.1993731856,
-0.0299790241,
-0.1019915491,
0.1034428924,
-0.0561994649,
0.2615946531,
-0.2036401033,
0.1029622704,
-0.126500085,
-0.065851599,
0.1697730422,
-0.1092777923,
0.0920384377,
-0.4555150867,
-0.311136961,
-0.1391869783,
-0.1233396977,
-0.1475510597,
0.2659367025,
0.2873287797,
0.4175907969,
-0.0261234194,
-0.106395714,
0.2146100104,
0.4109919965,
-0.0069875941,
0.0813286901,
0.0300203785,
-0.0731003433,
0.303054899,
-0.1591518372,
-0.0985057801,
0.4811173081,
-0.1448981166,
-0.2175182849,
-0.0372311249,
-0.5459349751,
0.0817109346,
-0.3308126032,
-0.2261418402,
-0.0765326247,
-0.082496345,
0.0465267077,
0.2357188016,
-0.4232020378,
0.1949175596,
0.2078906298,
0.3215321898,
-0.0627835989,
0.3240291178,
0.1668281555,
-0.1704507768,
-0.1509879827,
-0.0996924788,
0.0432734303,
-0.0744076818,
-0.1939667463,
-0.382758379
] |
https://github.com/huggingface/datasets/issues/2901 | Incompatibility with pytest | Sorry, my bad... When implementing `xpathopen`, I just considered the use case in the COUNTER dataset... I'm fixing it! | ## Describe the bug
pytest complains about xpathopen / path.open("w")
## Steps to reproduce the bug
Create a test file, `test.py`:
```python
import datasets as ds
def load_dataset():
ds.load_dataset("counter", split="train", streaming=True)
```
And launch it with pytest:
```bash
python -m pytest test.py
```
## Expected results
It should give something like:
```
collected 1 item
test.py . [100%]
======= 1 passed in 3.15s =======
```
## Actual results
```
============================================================================================================================= test session starts ==============================================================================================================================
platform linux -- Python 3.8.11, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /home/slesage/hf/datasets-preview-backend, configfile: pyproject.toml
plugins: anyio-3.3.1
collected 1 item
tests/queries/test_rows.py . [100%]Traceback (most recent call last):
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pytest/__main__.py", line 5, in <module>
raise SystemExit(pytest.console_main())
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 185, in console_main
code = main()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 162, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall
return outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main
return wrap_session(config, _main)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 304, in wrap_session
config.hook.pytest_sessionfinish(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 55, in _multicall
gen.send(outcome)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/terminal.py", line 803, in pytest_sessionfinish
outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 428, in pytest_sessionfinish
config.cache.set("cache/nodeids", sorted(self.cached_nodeids))
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 188, in set
f = path.open("w")
TypeError: xpathopen() takes 1 positional argument but 2 were given
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Linux-5.11.0-1017-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 19 | Incompatibility with pytest
## Describe the bug
pytest complains about xpathopen / path.open("w")
## Steps to reproduce the bug
Create a test file, `test.py`:
```python
import datasets as ds
def load_dataset():
ds.load_dataset("counter", split="train", streaming=True)
```
And launch it with pytest:
```bash
python -m pytest test.py
```
## Expected results
It should give something like:
```
collected 1 item
test.py . [100%]
======= 1 passed in 3.15s =======
```
## Actual results
```
============================================================================================================================= test session starts ==============================================================================================================================
platform linux -- Python 3.8.11, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /home/slesage/hf/datasets-preview-backend, configfile: pyproject.toml
plugins: anyio-3.3.1
collected 1 item
tests/queries/test_rows.py . [100%]Traceback (most recent call last):
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pytest/__main__.py", line 5, in <module>
raise SystemExit(pytest.console_main())
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 185, in console_main
code = main()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 162, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall
return outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main
return wrap_session(config, _main)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 304, in wrap_session
config.hook.pytest_sessionfinish(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 55, in _multicall
gen.send(outcome)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/terminal.py", line 803, in pytest_sessionfinish
outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 428, in pytest_sessionfinish
config.cache.set("cache/nodeids", sorted(self.cached_nodeids))
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 188, in set
f = path.open("w")
TypeError: xpathopen() takes 1 positional argument but 2 were given
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Linux-5.11.0-1017-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Sorry, my bad... When implementing `xpathopen`, I just considered the use case in the COUNTER dataset... I'm fixing it! | [
-0.3016422987,
-0.1903874427,
-0.024149321,
0.099028796,
0.3130395114,
-0.1301406175,
0.3114985824,
0.2646483183,
-0.1026782542,
0.2515561581,
-0.0329413861,
0.3579747677,
-0.0499670953,
0.0878712386,
-0.1619877219,
0.1268498152,
-0.0505258292,
0.0685191602,
0.0408934653,
0.1136001498,
-0.5712686777,
-0.1570851356,
-0.2168756723,
0.0572490171,
0.0126788616,
0.0686676651,
0.0916296244,
0.2422820181,
-0.0774932876,
-0.4698895216,
0.1960370541,
-0.0263331365,
-0.0422578752,
0.4722328782,
-0.0001045304,
-0.0628834069,
0.4584934413,
0.2026191801,
-0.4859765768,
-0.2095859051,
-0.1490359753,
0.2063350379,
0.2531502843,
-0.2543864846,
-0.1224501058,
-0.2215160131,
0.0800603181,
-0.5224380493,
0.0328105241,
0.2298583984,
0.2646004856,
0.5858451128,
0.1764910072,
-0.1220323741,
0.3920012116,
-0.1865622997,
-0.0988034159,
0.1512852907,
0.2791417241,
0.0342655778,
-0.155218333,
0.2738157511,
-0.2516683042,
0.2581939399,
0.0830629617,
0.040314775,
0.1071799845,
0.1236743629,
0.0054617533,
0.1477264911,
-0.0244683363,
-0.2447357625,
-0.1871631145,
0.0132809877,
-0.1560320258,
-0.4709230959,
0.0660296381,
0.2990926206,
-0.1927742958,
0.0707391649,
-0.1533981711,
0.285312444,
-0.2178354114,
0.2086601257,
-0.0414644554,
0.4749422967,
0.0106467716,
0.0582296364,
0.0282522626,
0.0535727926,
0.3718392551,
-0.0290901028,
0.0258876588,
-0.2166383415,
-0.0353300758,
0.0447734594,
0.3098429143,
0.1299088448,
0.1545518637,
0.1684168875,
-0.0050129853,
-0.0647073686,
0.1099801883,
0.1257053316,
-0.0156705398,
-0.0932242125,
-0.0586432926,
0.1788802594,
0.1195266098,
0.1648671329,
-0.1360279918,
0.0084635736,
-0.0668130219,
-0.307094276,
0.0900240615,
0.1294366419,
0.5126135945,
-0.0637781322,
-0.3585410416,
-0.163783282,
-0.3168658018,
0.1315581799,
-0.0887979418,
0.1646848172,
-0.3344548643,
0.0525153913,
0.2567435503,
0.1665858626,
-0.3985976875,
0.1734840721,
-0.1729392111,
-0.0025558267,
-0.2071771622,
-0.198186785,
0.0244948044,
-0.0061058495,
0.0369945988,
0.0258495063,
-0.0169164687,
-0.0553665087,
0.172971651,
-0.0304494482,
0.0978284106,
0.0834880471,
0.1038080454,
0.0230856314,
0.0646958575,
0.2365551144,
0.0004668385,
0.4194877446,
-0.1334885061,
-0.2440329641,
0.1164920479,
0.35601753,
0.0041355938,
-0.156583637,
0.1820519865,
-0.3767897487,
-0.1220363677,
-0.0800676569,
0.0026527196,
-0.2985854745,
-0.1478590965,
-0.2639122903,
0.2254215926,
0.2425371706,
0.2605784535,
0.0505344123,
-0.0282768216,
0.1627344042,
0.3797309399,
0.1669937372,
-0.1939088553,
-0.0896540508,
-0.137957409,
0.1596085131,
-0.0486293286,
-0.4239594936,
-0.3278155923,
-0.160774827,
-0.1731502414,
-0.0750363022,
0.0496310778,
0.0323372707,
0.3179514408,
0.0479338244,
-0.031858407,
0.412953496,
-0.0740913898,
0.0748519525,
-0.4666413665,
-0.3798173368,
0.5641195774,
0.1517055929,
0.0570297614,
-0.3497413993,
0.2054485977,
0.0608400181,
0.514895618,
-0.1897210777,
-0.1518408656,
-0.2993409634,
0.7524661422,
-0.0474504717,
0.0110381022,
-0.0960697085,
0.066527307,
0.0204420164,
0.2316298783,
-0.2802454829,
-0.1499123126,
-0.089154385,
-0.1524518132,
0.1319253147,
-0.3466831148,
-0.3821575046,
0.2474721968,
0.2782581151,
-0.1456097066,
-0.130903855,
-0.0118954629,
-0.0933068767,
-0.3045151234,
0.1004940718,
0.0386144929,
0.1053286493,
-0.0396607965,
-0.0941250026,
-0.1193553656,
0.2987480164,
0.1629391015,
-0.0600544736,
-0.1179708987,
0.3312664628,
0.2449483722,
0.1955464929,
-0.0468192101,
0.0072494745,
0.0820177346,
-0.3156889975,
-0.2024821341,
0.3221008182,
0.0975408629,
-0.002581507,
0.0227514245,
0.1893988848,
-0.2354015112,
0.1002925783,
0.2986404896,
0.0012304857,
-0.0390899666,
-0.1708397567,
0.0159266591,
0.3352187872,
0.2535386384,
0.4091949761,
0.438431263,
0.0471037105,
-0.1185916588,
-0.0291305892,
0.1720730066,
0.0163349435,
0.232763648,
0.1700842679,
-0.4000134468,
-0.0777248219,
-0.084398903,
0.3033125699,
0.3952054679,
0.2755783796,
0.0969720632,
0.0887241066,
-0.1324124038,
-0.2870433331,
0.29929775,
0.1152057797,
0.0208726674,
0.241583541,
0.2297436148,
0.1021425948,
-0.2554799318,
-0.0732265264,
-0.1389923692,
0.0566168129,
-0.1460096091,
-0.0478305891,
-0.1640128791,
0.2011268139,
-0.1140681654,
-0.5005604029,
0.1816409379,
-0.200860247,
0.0143490136,
0.3810869157,
-0.2022752017,
0.1200969592,
-0.2770577669,
0.0942123085,
0.0885686502,
-0.0884962678,
0.1415921301,
-0.2295173705,
-0.1760162711,
0.1794955134,
0.0489556603,
-0.1769528538,
0.3923767209,
-0.0935230628,
-0.026575122,
-0.1780976504,
-0.1293667108,
0.0228035524,
0.2426381707,
0.0753106475,
0.1114993244,
0.0548161305,
0.1084304154,
-0.2810976505,
0.3347679377,
-0.2257569581,
-0.0527908206,
0.122259818,
0.0974361598,
-0.0859624147,
-0.1513890475,
-0.6303587556,
-0.1750361174,
-0.3355154693,
0.004438201,
-0.1078127176,
0.1289742142,
0.4354723096,
0.038797725,
0.1618680954,
-0.1536656916,
0.1216436699,
-0.0872598439,
-0.0211114138,
0.2169374228,
-0.1349029541,
-0.4010961056,
-0.1983468235,
-0.1213338226,
-0.1045443863,
0.4339271486,
-0.2609217763,
-0.2592202425,
-0.231327787,
0.0872521549,
-0.1294534057,
-0.0232154019,
0.3986385763,
0.2484316528,
-0.2569613159,
-0.2864580452,
0.0643373728,
-0.0433720946,
-0.0686284006,
0.038186729,
-0.0875442997,
0.1517155468,
0.1127801463,
0.2772788703,
-0.0392001458,
-0.038717635,
0.1129380539,
-0.2495964766,
0.1978778988,
-0.0433229096,
-0.2569164038,
0.1621053517,
-0.2219972312,
-0.3214871287,
0.0484664142,
0.2195310891,
0.1148819029,
0.0141729191,
0.0208037868,
-0.3543072939,
-0.2621159852,
-0.2463584095,
0.3780518174,
0.0837341622,
-0.0672198832,
0.1626052558,
-0.1316147298,
-0.1256522089,
0.1881817281,
0.3759931326,
0.1093445718,
-0.0119343288,
0.2482952178,
0.01234442,
-0.0862111226,
0.0998783559,
0.0090178698,
0.1281883568,
0.0566872656,
-0.1912215948,
0.0785222426,
-0.02000775,
0.1643274128,
0.3458765745,
0.3874814212,
0.3010591865,
-0.1472477466,
-0.2551454604,
0.0189633816,
-0.518209517,
-0.3018000424,
0.0700561181,
0.1623146236,
-0.275069952,
0.0511013903,
0.3745267987,
0.1937803924,
0.0627760664,
0.0518819392,
0.0086365789,
-0.4112389088,
-0.0766517818,
0.0733637139,
-0.013393227,
0.451197505,
-0.0368969478,
-0.2186554968,
-0.3560897708,
-0.333645463,
-0.0098669678,
-0.0695356876,
0.4101050496,
-0.1614900082,
0.181757763,
0.006477057,
0.3672038317,
0.3949999511,
0.2157016844,
0.1406855136,
0.1515155137,
-0.0076534236,
-0.1830338836,
0.0305455476,
0.1035784781,
-0.3520216644,
0.2259793431,
-0.3184484243,
0.2777010202,
-0.2909504771,
0.1956374049,
0.3502267599,
0.1843055785,
0.273234129,
0.0076180995,
0.1056671739,
-0.1933569461,
-0.0941650122,
0.553153038,
-0.1504651159,
-0.2331055701,
-0.1227028146,
0.142702803,
0.7989794612,
0.2282717526,
0.1575278938,
0.857852459,
-0.3794221878,
-0.1998088062,
0.3360407054,
0.1782061905,
-0.3571628928,
0.0383414179,
0.081216611,
-0.2287752628,
0.0273006558,
-0.2691111267,
-0.0185523033,
-0.1856173575,
-0.0207114369,
0.0446326397,
0.1084755659,
0.0523586124,
0.0402534083,
0.0424531661,
-0.2928383946,
0.1929398924,
-0.0179147571,
0.1270106733,
-0.0508780926,
-0.0839507952,
0.2480623126,
-0.1010971069,
-0.2043587863,
0.3419601321,
-0.5799900889,
0.1721819043,
-0.2692231238,
-0.4562353194,
-0.1075187474,
-0.0367892683,
-0.228549853,
0.1678053439,
-0.0340318382,
0.1088866517,
-0.0250189081,
0.1675111651,
0.2350718379,
0.0307643302,
0.2065544277,
-0.2243107259,
0.0097957999,
-0.1305308938,
0.0516776368,
-0.4160590768,
-0.0600329787,
0.0467678271,
0.4949307442,
-0.2594944537,
-0.2402206957,
-0.2332241535,
-0.1814633012,
-0.3135357201,
0.2200746536,
-0.0131486021,
0.1351000667,
0.1709565371,
0.0870711952,
-0.3995955288,
-0.1094915271,
-0.0123057924,
0.0119484402,
0.1383817941,
0.4005645514,
0.1243489236,
-0.3258515298,
-0.2226492018,
0.1260189861,
0.1640534103,
-0.0271101594,
0.0868694633,
-0.0412155092,
0.1951786578,
-0.1118135303,
0.0058584474,
0.2094228715,
0.0991213173,
-0.1979447901,
-0.4055494666,
-0.1660557389,
0.1417737454,
0.202881664,
0.1181827188,
-0.0264825486,
0.2930474579,
-0.0213115178,
-0.2504850924,
-0.3906232417,
0.1107911691,
0.2336135209,
0.1192180663,
-0.1454876959,
-0.2076458186,
0.3068410158,
-0.0104084387,
0.2542710304,
-0.0516874082,
-0.134772867,
-0.3061599135,
-0.3753735721,
0.0859212503,
0.0782094821,
-0.3529869616,
0.1614412516,
-0.1700134575,
0.0037518404,
-0.1876562834,
0.1137397215,
0.3402267694,
-0.2084239125,
-0.0727986246,
0.3792562485,
0.1400483698,
-0.236230731,
0.0073806886,
-0.2387419045,
0.281237781,
-0.1352637261,
-0.0331274606,
0.1245578974,
-0.0565306805,
-0.144180119,
-0.2388964295,
0.2134497166,
0.1605947316,
0.2762319446,
-0.1227830797,
-0.1152912304,
-0.1517729461,
0.5579531789,
0.1981471032,
-0.1018953919,
-0.0254690014,
0.0657822937,
0.377564013,
-0.2160443366,
-0.0246563945,
-0.1456672251,
-0.1745385081,
0.1609789729,
-0.069709979,
-0.4467021525,
0.072419703,
-0.1336331964,
0.0843943283,
-0.0011717863,
-0.1661702096,
-0.0122291557,
0.1776827872,
-0.1440190375,
-0.049987711,
0.0935865119,
-0.0745284557,
0.1813108623,
0.2331059426,
-0.0133847259,
0.6520751119,
0.5496271253,
-0.2443288863,
0.0571718588,
-0.05493173,
0.0069866558,
-0.1236410588,
-0.0362573378,
0.0326863751,
0.0409412719,
0.2288156599,
-0.2829380929,
0.1047509909,
-0.051148396,
-0.0435397252,
-0.0990095586,
-0.2635804713,
0.0496006012,
-0.004705064,
-0.0728652999,
-0.029367853,
-0.1020357907,
0.0224537794,
0.0303374045,
0.0476335883,
-0.1048741639,
-0.3494411409,
0.0213046111,
0.207913816,
0.1573516726,
-0.3372325897,
0.0876499712,
0.2187740207,
0.1431939155,
-0.1703722775,
0.4733754098,
0.3304479122,
0.4719164968,
-0.2293341756,
-0.1304813027,
-0.1675471365,
-0.0063680783,
-0.0394409448,
-0.0647637546,
0.0134154484,
0.1269379556,
0.2298046052,
0.3690746725,
-0.3680002391,
0.2118324935,
-0.0242782719,
-0.2714371681,
-0.1849634349,
0.27952528,
0.1443217099,
-0.2951875627,
0.0125997867,
-0.0279964618,
-0.2422026396,
-0.0668569952,
0.2900870442,
0.2645173371,
0.087609224,
-0.0397083946,
0.1404090971,
0.1440565884,
0.1232811064,
0.1019616425,
-0.0070682336,
-0.423419714,
0.0328576416,
-0.4711898565,
0.4904586673,
-0.1441804469,
-0.4465854466,
0.07254228,
-0.0549176,
-0.2503592372,
0.2345560491,
0.3334581256,
0.3571135402,
0.1524519324,
-0.0025295382,
-0.2554328442,
0.1322989762,
0.2028843611,
-0.1032731012,
-0.1260176897,
-0.3461899459,
0.2244306356,
-0.2395661771,
0.2582560182,
0.0934690908,
0.0410268158,
0.2902907729,
0.0138180275,
0.0178298708,
-0.0170892887,
0.3950656652,
-0.3205384016,
0.0409308374,
-0.1458015144,
-0.2275681198,
0.0252155066,
0.0532081686,
0.0172632392,
0.0858795047,
0.1734695435,
-0.598605454,
-0.4342437983,
0.4738563597,
-0.3005674481,
-0.1423756778,
0.1085445881,
0.3310375214,
0.0011339858,
0.1555802673,
-0.0374319106,
0.1749422252,
-0.1264828295,
0.0589327365,
-0.2458042353,
-0.7254011631,
0.2943548262,
-0.732760787,
-0.2969195247,
-0.2304129153,
0.4603823125,
0.0212487839,
0.2380445153,
-0.2867963314,
0.103011474,
0.2128990293,
0.0478451625,
-0.1016831994,
0.1259423196,
0.0170269758,
-0.0238352716,
0.1139788851,
0.6136496067,
0.1038717031,
-0.0976273343,
-0.0312425978,
-0.282785356
] |
https://github.com/huggingface/datasets/issues/2892 | Error when encoding a dataset with None objects with a Sequence feature | This has been fixed by https://github.com/huggingface/datasets/pull/2900
We're doing a new release 1.12 today to make the fix available :) | There is an error when encoding a dataset with None objects with a Sequence feature
To reproduce:
```python
from datasets import Dataset, Features, Value, Sequence
data = {"a": [[0], None]}
features = Features({"a": Sequence(Value("int32"))})
dataset = Dataset.from_dict(data, features=features)
```
raises
```python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-24-40add67f8751> in <module>
2 data = {"a": [[0], None]}
3 features = Features({"a": Sequence(Value("int32"))})
----> 4 dataset = Dataset.from_dict(data, features=features)
[...]
~/datasets/features.py in encode_nested_example(schema, obj)
888 if isinstance(obj, str): # don't interpret a string as a list
889 raise ValueError("Got a string but expected a list instead: '{}'".format(obj))
--> 890 return [encode_nested_example(schema.feature, o) for o in obj]
891 # Object with special encoding:
892 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
TypeError: 'NoneType' object is not iterable
```
Instead, if should run without error, as if the `features` were not passed | 19 | Error when encoding a dataset with None objects with a Sequence feature
There is an error when encoding a dataset with None objects with a Sequence feature
To reproduce:
```python
from datasets import Dataset, Features, Value, Sequence
data = {"a": [[0], None]}
features = Features({"a": Sequence(Value("int32"))})
dataset = Dataset.from_dict(data, features=features)
```
raises
```python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-24-40add67f8751> in <module>
2 data = {"a": [[0], None]}
3 features = Features({"a": Sequence(Value("int32"))})
----> 4 dataset = Dataset.from_dict(data, features=features)
[...]
~/datasets/features.py in encode_nested_example(schema, obj)
888 if isinstance(obj, str): # don't interpret a string as a list
889 raise ValueError("Got a string but expected a list instead: '{}'".format(obj))
--> 890 return [encode_nested_example(schema.feature, o) for o in obj]
891 # Object with special encoding:
892 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
TypeError: 'NoneType' object is not iterable
```
Instead, if should run without error, as if the `features` were not passed
This has been fixed by https://github.com/huggingface/datasets/pull/2900
We're doing a new release 1.12 today to make the fix available :) | [
-0.083034724,
-0.2502435744,
-0.0386256203,
0.3015390038,
0.2076892704,
0.0788370967,
0.5001557469,
0.1494155824,
0.1255292892,
0.1421062648,
0.3285634518,
0.0508399643,
-0.2967574,
0.3420608044,
-0.2623352408,
-0.2604984045,
0.0345354825,
0.2224868238,
0.0154920705,
-0.0224472433,
-0.3130666912,
0.1709362566,
-0.3648769855,
-0.2221620977,
-0.1550779343,
-0.2108082026,
-0.21602422,
-0.2960245013,
0.0542513207,
-0.5987135768,
0.281948328,
-0.0695158541,
0.0921096429,
0.238322109,
-0.0001144155,
0.1054919958,
0.6381923556,
-0.14531596,
-0.26280424,
-0.3394745588,
-0.5618312359,
-0.4227803648,
0.124165304,
-0.357847333,
-0.0965123624,
-0.0749711394,
0.0947183445,
-0.3724970222,
0.2042123377,
0.2839667201,
0.2130594403,
0.3830008507,
-0.0845514089,
-0.0744026899,
0.2068212926,
0.4162611663,
-0.2607551217,
-0.1798532307,
0.0357588865,
0.2699484825,
0.094628647,
0.349239707,
-0.111404717,
-0.1305068582,
0.2094346732,
0.0849352181,
0.088562265,
-0.4521937072,
-0.2671244442,
0.2014953494,
0.2924090028,
0.0013617745,
-0.4084640145,
-0.2180886865,
0.0188715495,
-0.6638946533,
0.2666680515,
0.0551011339,
-0.0386277586,
-0.0269637126,
-0.168392837,
0.1450014263,
-0.2138954252,
0.1660171747,
-0.1209754571,
0.0807906762,
-0.139454022,
0.0341408774,
-0.2402793765,
-0.2700187266,
0.0587494597,
-0.3706254661,
-0.025751939,
0.2111458629,
-0.2515127659,
-0.1936300844,
0.1673505306,
0.0101850536,
0.1697198749,
0.1379936635,
-0.0658706576,
-0.1037981287,
-0.0693589449,
-0.0169596784,
0.2529114783,
0.213602066,
0.4112967551,
-0.0680696815,
-0.0581747591,
0.1961245388,
0.0996619761,
-0.0175982974,
0.1192841083,
0.0517398492,
0.0169259459,
0.4072840214,
0.6467190385,
-0.0525628328,
-0.3934818506,
0.2361949086,
-0.3853595853,
-0.0304983854,
-0.0211954415,
0.0061912555,
0.0841206163,
0.2916482985,
-0.1465798169,
0.2161678821,
-0.2736035585,
-0.2508829534,
-0.2348465025,
0.0721954554,
0.1018403471,
0.0885987505,
-0.0547401048,
-0.0332996361,
0.0658170506,
0.1560103744,
0.0796799064,
0.100985311,
-0.0555228814,
-0.3658084571,
0.0925060958,
0.152372092,
-0.0070466921,
0.2921590209,
0.3762358427,
-0.2581284046,
-0.1091620922,
0.1182434112,
-0.2788110971,
-0.2175138891,
-0.0058274344,
0.1725295037,
-0.3795675635,
0.0441267379,
-0.0734037757,
0.2263461798,
0.2108575106,
-0.0775897875,
-0.0965436548,
-0.086929433,
-0.2196164429,
-0.1535142213,
-0.0919656828,
0.6465165019,
-0.1091335416,
-0.0125880614,
0.1191491112,
-0.0898963436,
0.3521230817,
0.2327206731,
0.0481475331,
-0.0572481826,
-0.340411067,
0.1900295913,
0.0831348374,
-0.1115485728,
-0.2086067796,
0.5657571554,
0.023990564,
0.3598699868,
0.1134640649,
0.0959462374,
0.158570081,
-0.3072295189,
0.0130885597,
0.1975987554,
-0.1874653995,
-0.2206796557,
-0.2418986857,
-0.1231627613,
0.5206927061,
-0.0743466169,
-0.0640908256,
0.2067833096,
-0.3010615706,
-0.0231109746,
-0.1406466961,
-0.3186880648,
0.1288141906,
0.505325675,
0.2192391008,
0.0375959277,
-0.0967496708,
-0.4028448761,
-0.3626865149,
0.1312111765,
-0.1796043217,
0.2839999199,
-0.4932684302,
-0.1799387038,
0.07352034,
0.0190412402,
-0.3947463036,
0.0015029069,
0.1547810435,
0.1214927211,
-0.153511256,
0.1999227107,
-0.0773416087,
0.2772001326,
0.1561112702,
-0.1248552576,
-0.5673226714,
0.369987309,
0.0695003942,
-0.22622554,
0.0071671382,
0.3033719659,
0.3317840993,
-0.0899982601,
0.0183187239,
0.1505863965,
0.0259707943,
-0.3309907019,
-0.3067798615,
-0.1571383774,
0.3190596104,
-0.4185929298,
-0.2214333564,
0.3747457862,
0.1825433373,
-0.1073415801,
-0.1209882498,
0.657542944,
0.0157376025,
0.4647911489,
0.0042069703,
0.176014185,
0.0537276044,
-0.0018612295,
-0.3271429837,
-0.2869088054,
0.1755581349,
0.2026409209,
-0.1650792062,
-0.0399115644,
-0.3015941083,
0.0058683529,
0.4108923078,
0.0884369612,
0.0354630798,
0.0570803136,
-0.0770580694,
-0.0368382409,
0.1092405543,
-0.1595926881,
0.2998837233,
0.0505587272,
-0.0732198805,
0.0735785812,
0.0075448491,
0.0745384693,
0.1758684218,
-0.0350372382,
0.2430824339,
0.0285673961,
0.1076483205,
0.1176978648,
-0.177972272,
-0.543848753,
-0.039858222,
0.1430887133,
-0.2491215467,
0.249281764,
-0.4795847535,
-0.2056160569,
0.1304166466,
-0.2173658311,
-0.3862959445,
-0.4440226257,
-0.1639414132,
0.0275586899,
-0.1408403069,
0.2236982286,
0.0148139969,
-0.2624563873,
0.2985751629,
-0.0243489407,
-0.083137542,
-0.1392293274,
-0.0242329724,
0.0463200323,
0.1656645536,
-0.0481025986,
0.2467773408,
0.0332956165,
-0.3499839604,
-0.2126868963,
-0.2085351646,
0.0565494373,
-0.3503637016,
0.0777076855,
0.3079497516,
0.1277273595,
-0.0494071804,
-0.1998874694,
0.4227288365,
0.424372077,
-0.2120992392,
0.3217693567,
-0.1020625532,
-0.035473682,
-0.2110653073,
-0.095902361,
-0.1572209299,
-0.2278928906,
0.1076046973,
0.2109688818,
0.210161224,
0.4471025765,
0.0470193401,
0.120879367,
0.1355807334,
-0.1756286323,
0.0008854382,
-0.015036121,
0.4824746549,
-0.1827880442,
-0.2712482214,
0.1487998813,
-0.2987255454,
0.0875614434,
0.2041171193,
-0.3575527072,
-0.1763040423,
-0.1413787007,
0.161131084,
0.0745363533,
-0.104658246,
0.3775746524,
0.2816057503,
-0.1083456129,
-0.0367694721,
-0.0508112684,
0.2569002211,
-0.0705508739,
0.0287488848,
0.2296872735,
0.5177566409,
0.0398103073,
0.097234875,
0.4376426935,
0.1970638335,
0.4261663556,
-0.0823319331,
0.0689360648,
-0.1690149754,
0.0005423203,
-0.1711452007,
0.1079395264,
-0.0178559087,
0.0836273804,
-0.2327572554,
-0.119191274,
-0.0793070942,
-0.0630712062,
0.1038520336,
-0.2357092202,
0.1293705553,
-0.4676787853,
0.4429669678,
-0.0864082053,
0.0182908326,
-0.3036097288,
-0.0047004372,
-0.1684736162,
-0.0083026253,
0.3227556944,
-0.147867322,
-0.6496185064,
-0.1722307652,
-0.2026043534,
0.1215541065,
0.3011383712,
0.5467792153,
-0.0337625146,
-0.0624159165,
-0.1075646281,
-0.0191714261,
0.4020333588,
-0.1643885225,
-0.1837624907,
0.245421201,
-0.2638015151,
-0.2387934923,
-0.0567739867,
-0.3692709208,
0.3344593644,
-0.2252191454,
0.3618202806,
-0.3405365944,
-0.2225625068,
0.2660458386,
0.0742506683,
-0.0913684443,
-0.1132183224,
-0.0910777003,
-0.2235618681,
-0.1456011236,
0.0129505321,
0.2087669075,
0.2621577978,
-0.1340862662,
-0.0023912191,
-0.5279823542,
0.0307508335,
0.3058232367,
-0.2428043634,
0.3555574715,
-0.0859425813,
0.1051604822,
-0.1363124549,
0.1940724999,
0.2076593339,
0.3552798033,
0.3771530092,
-0.6484145522,
0.0111574233,
-0.2274464518,
0.1626977473,
0.2772228122,
-0.0934666544,
0.0936513394,
0.0833646506,
0.1915251613,
-0.2102060616,
-0.3317121565,
0.4189606607,
-0.0805432498,
-0.6726536751,
-0.2872208953,
0.264912039,
0.0967708081,
0.2421813607,
-0.1336614043,
0.2232287973,
-0.2113030702,
0.3653744161,
-0.0063010938,
0.6850799918,
0.4925389886,
0.0419000797,
0.5505332947,
0.4471415579,
0.6043528914,
0.4047943354,
0.2582223117,
-0.1625066102,
-0.6721649766,
-0.1485055685,
-0.0585915446,
0.4232237637,
0.1191024929,
-0.4531505108,
0.489103049,
-0.1281990856,
-0.0638247579,
-0.0981587842,
-0.2965756655,
-0.1317240298,
-0.0439693853,
-0.2515957355,
0.1245701462,
0.0693784952,
0.1620188653,
0.0573868863,
-0.3246814907,
0.0522960052,
-0.1667524427,
-0.1947969347,
0.1696543097,
-0.1433667541,
0.0941160992,
0.036424648,
-0.3463888168,
0.2818096876,
0.2232398093,
0.1879019588,
-0.1312099397,
-0.1560934931,
-0.1969088614,
0.0400293991,
0.1034144014,
-0.0801588446,
-0.0777151436,
0.3071269989,
-0.0268943645,
-0.1485313475,
0.1475495398,
-0.2142960578,
0.1054212898,
0.3429111838,
0.059051238,
-0.1748201549,
-0.1611664742,
-0.4532508552,
0.0302398168,
0.171084255,
-0.050085105,
0.1164651364,
0.0069035506,
-0.2920265198,
-0.0495645627,
-0.1978929639,
-0.0086771101,
-0.0171597358,
0.3072856367,
0.5229854584,
0.0768127143,
0.6932665706,
0.1918628663,
-0.2426928729,
-0.1660665423,
0.1627270579,
0.1830894947,
-0.5128663182,
0.3100554049,
-0.1137080491,
0.1459200978,
-0.2419807613,
0.4570830762,
-0.2819414735,
0.2090836316,
-0.0393035412,
-0.1175030917,
-0.1571840346,
0.2325697541,
-0.1332803667,
0.1057096124,
-0.2226437181,
0.1152292639,
-0.0790471733,
-0.2166758776,
-0.2946245968,
-0.0973040164,
-0.4076426029,
0.3669988215,
0.1148904711,
0.0858328566,
0.2190837711,
0.1607997119,
0.1681338251,
0.0856593698,
-0.1367596686,
-0.1968508661,
-0.0751662478,
0.126849249,
0.1073027775,
-0.1864512861,
0.1410098672,
0.0269030482,
-0.0628484339,
-0.1389683783,
0.0139900818,
0.178492412,
-0.0842980295,
0.4305183291,
0.3046931326,
0.3934034407,
-0.1181100681,
0.1606228799,
-0.0320249349,
0.2289991975,
-0.0731262937,
0.0898114741,
-0.0715096071,
0.0787385404,
-0.4437333941,
0.1356505752,
-0.1291669905,
0.1195798442,
0.2263302207,
-0.360227704,
0.0355110094,
0.3236737549,
-0.0311145522,
0.0755376816,
-0.1983239949,
-0.0149548054,
0.0908647031,
0.1674839109,
-0.1610237211,
0.0044075064,
0.1928001344,
0.0983771011,
0.0553646088,
0.2497327626,
0.0238152444,
0.2197773606,
0.1523765624,
0.0410665199,
0.0576354638,
-0.1304041445,
0.4767722189,
0.2502487004,
0.1060067713,
-0.0059617702,
-0.0451645814,
-0.1361156851,
0.2374778688,
0.4095087051,
-0.0225145146,
0.1133538261,
0.4354733527,
-0.0183567889,
-0.0299487375,
-0.2667696476,
-0.1832301617,
0.0874817222,
0.3381928205,
0.202853173,
0.1870117188,
-0.3521424234,
-0.325812757,
-0.2701641023,
-0.0695832148,
0.3099344671,
-0.0583299734,
-0.0029456131,
0.03566733,
0.0114390552,
-0.3740220666,
-0.241598621,
-0.0964922607,
-0.1092924923,
0.2701233625,
0.2186553329,
0.1762787849,
-0.3771929741,
0.274759829,
0.2808688581,
0.2680348754,
-0.1144815981,
0.2841907442,
0.3918451071,
0.0941932499,
0.193238318,
0.5161975026,
0.3695504069,
0.2945845425,
-0.0201034769,
0.1129489914,
-0.0390785038,
-0.3450120687,
0.0877991915,
-0.0598453768,
-0.2485658675,
0.2879633605,
0.1558264196,
0.1228243411,
-0.1254131943,
0.3168383539,
0.0544719584,
-0.1103279889,
-0.2857101262,
0.7374000549,
-0.2703438699,
0.0276813358,
-0.0651039481,
-0.252120465,
-0.4581921101,
-0.0652409792,
0.3814007044,
0.1698072702,
0.1495150924,
0.2177316844,
0.0697703958,
-0.4082433879,
0.3309636116,
0.3403661847,
0.0769058764,
-0.265132159,
0.0617088526,
-0.275061667,
0.1116446331,
-0.1015283614,
-0.069122754,
0.2495634258,
0.1278142035,
-0.1932552755,
0.114860259,
-0.2204784751,
-0.1393817663,
-0.1043238491,
0.2524556518,
-0.3717961609,
-0.1946514696,
0.2883965671,
-0.08923807,
-0.1251150817,
-0.2652549744,
0.0353321731,
0.0039456375,
0.0739234537,
0.0550831854,
-0.0448911339,
-0.322753191,
-0.0278718043,
0.0572514534,
0.6041784883,
0.1074121296,
-0.0593111552,
-0.392254293,
-0.2225102484,
-0.2722545564,
-0.1133320332,
0.5871053934,
0.2825134099,
0.6090584397,
-0.137103796,
0.2531859279,
-0.0552066974,
0.3776592016,
-0.060990613,
0.0438414067,
-0.424490571,
0.5184668303,
-0.3719533086,
0.1762697697,
0.0068771802,
0.1811162531,
0.1390515864,
0.1774706393,
-0.0504959896,
-0.2920153439,
0.3989829421,
-0.3084869683,
-0.3456189632,
0.201938659,
-0.0813746974,
0.1927641034,
-0.0473877899,
-0.3078511357,
-0.1343804002,
0.4044966698,
-0.1600381434,
-0.2725832462,
0.0046120472,
0.1497469991,
-0.0676550791,
-0.1205622032,
0.1607692391,
-0.0707522929,
-0.2598538399,
0.3602845073,
-0.310298115
] |
https://github.com/huggingface/datasets/issues/2888 | v1.11.1 release date | @albertvillanova i think this issue is still valid and should not be closed till `>1.11.0` is published :) | Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago.
When do you plan to publush v1.11.1 release? | 18 | v1.11.1 release date
Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago.
When do you plan to publush v1.11.1 release?
@albertvillanova i think this issue is still valid and should not be closed till `>1.11.0` is published :) | [
-0.2534321547,
-0.1435916722,
-0.1170086563,
0.1250974536,
-0.0803615749,
-0.206943363,
0.3182257712,
0.2595033646,
-0.2662115097,
0.2432929873,
0.4498228729,
-0.07759884,
-0.0092685781,
0.3775970638,
-0.3972173631,
-0.0890163332,
0.0787208527,
0.1089020073,
-0.052683033,
0.0449186862,
-0.2720680237,
0.0686574355,
-0.3964476883,
0.1608795077,
0.0663990825,
-0.0716042966,
-0.1215934083,
-0.2543472648,
-0.667160809,
-0.5313287377,
0.3133551776,
0.2034500837,
0.0760270432,
0.2712755799,
-0.0001110468,
-0.4238657057,
0.5205679536,
0.1486696005,
-0.2614663839,
-0.1513034254,
-0.4164438248,
-0.5353800058,
-0.1008593515,
-0.0137666166,
-0.3072519898,
-0.1077146083,
0.0117484275,
-0.1943196058,
-0.0628163069,
-0.0156023502,
0.2480116785,
0.1673393399,
0.4019794464,
-0.3542859256,
0.1863051951,
-0.1159244776,
-0.3703643084,
-0.2499653697,
0.5717850327,
0.2568039298,
0.2268875986,
0.3849834204,
0.1912631094,
-0.1922256649,
0.1507630646,
-0.0097723436,
0.2396770567,
-0.2660329044,
0.0415395163,
0.0777785927,
0.9955615401,
0.0203633364,
-0.3793467581,
0.2034738213,
-0.0927332789,
-0.2712351382,
0.2412475348,
0.0272826552,
-0.0292446576,
0.1492429823,
0.0873355567,
-0.458419323,
-0.1516827345,
0.1602149606,
-0.0272044465,
0.4591050148,
-0.0887170658,
0.1067650169,
-0.0215258263,
-0.3015368581,
0.2346978635,
0.0200972669,
0.0850307494,
0.156445384,
0.0514525063,
-0.4402128458,
0.1060788929,
-0.0172465816,
0.1498130858,
0.1924145073,
-0.2606179714,
-0.2491659224,
-0.0464441702,
0.0133374557,
0.6594328284,
0.0745628029,
0.3405663669,
0.1880095899,
0.432944417,
0.2551416755,
0.0644606128,
0.0997428671,
0.0618427843,
-0.0808661878,
-0.1455138326,
0.2052434683,
0.4584417343,
-0.5718427896,
0.3661364019,
0.1454992145,
0.0115311071,
-0.0739973858,
-0.3209313452,
-0.150846839,
-0.0373872519,
0.3257051706,
0.0893601403,
-0.1983120888,
0.1348609328,
-0.1805580556,
-0.1951921582,
-0.1088339388,
-0.2009811103,
-0.0183628015,
-0.0315612629,
-0.3116752803,
-0.2775351405,
0.1134498566,
-0.1254056394,
-0.0434128717,
0.0564596578,
0.1302085519,
-0.2246667296,
0.4118486345,
-0.246632129,
0.0828441232,
-0.3096275032,
0.2402787805,
-0.0819455236,
0.3500743806,
-0.0424563549,
-0.1780536473,
-0.3391314447,
0.2919041216,
-0.1666525602,
-0.0776966959,
0.2701284885,
0.1953231096,
-0.203018859,
-0.2382989079,
-0.0494298637,
0.1722418517,
-0.2394902855,
-0.2569317818,
-0.0695380718,
0.0432327725,
-0.1193420067,
0.1540279537,
-0.2632967234,
-0.2000603229,
0.11972785,
0.0051402524,
-0.1842307746,
-0.3186811507,
0.1262589842,
-0.2455534637,
0.3016964495,
-0.343300581,
-0.6395595074,
0.3815336525,
-0.284142524,
-0.3894362748,
0.4114665985,
0.1741335243,
0.2954377532,
-0.3212957382,
-0.1409742385,
-0.0816184431,
-0.1616332978,
-0.3559685946,
-0.4418997169,
-0.4019604921,
0.0429005846,
0.0181116015,
0.2204885334,
0.1503368616,
0.0952751189,
0.4235880375,
0.074982658,
0.2797824442,
0.2078802288,
0.0765661597,
0.4828038216,
-0.1286070049,
0.0529901385,
-0.1006551087,
-0.2767001987,
0.0938938782,
-0.1435723752,
0.15911825,
0.4384334981,
-0.3189629316,
-0.2085862607,
-0.0561053529,
0.3260711432,
-0.070952557,
0.0817816854,
0.091573298,
-0.2478199899,
0.1673499346,
-0.4060977995,
0.1368638724,
-0.0098661408,
-0.0706637502,
-0.0884416103,
0.0452465564,
-0.2908728421,
0.0994253606,
0.1788440347,
0.0838300064,
0.1694515049,
-0.2390571982,
0.1745637357,
-0.0815129429,
-0.0723999143,
0.3089862764,
0.3561561406,
0.1862891465,
0.2350972593,
0.2040315419,
0.0746111348,
0.1710560024,
-0.0586111471,
0.2303553373,
-0.2253147066,
0.3460874557,
0.3549922109,
-0.2632009387,
-0.0564746223,
0.1447252035,
0.1307964027,
-0.2599106431,
-0.0981652811,
-0.2556483448,
0.0817662179,
-0.2211178392,
-0.2914198637,
0.2252822965,
-0.2763940096,
0.2965316176,
0.5968987346,
0.0184192806,
-0.0478302017,
0.0809679627,
0.2573699057,
-0.0809907615,
0.1679660976,
-0.0462062582,
0.088492468,
0.2539901733,
-0.0210185945,
0.0049677007,
0.1221920401,
0.0425284319,
0.1027603894,
0.0455322228,
-0.4042111635,
-0.0299373604,
0.0530674793,
0.0633867681,
0.1152783483,
0.1767402887,
0.1918158829,
0.2266005129,
0.0650809705,
-0.3978861868,
-0.2835032344,
-0.0675675869,
0.0291237906,
-0.0194903594,
0.0619625635,
0.0534456596,
0.1382157654,
0.146872744,
0.0316265002,
0.1826280355,
-0.1548497081,
0.7969361544,
-0.388908416,
0.4114346206,
-0.1566393673,
-0.1199047491,
-0.3110973835,
0.2345053852,
-0.0124806687,
-0.2776047289,
0.2567167878,
0.0537330881,
0.2090212554,
-0.6258597374,
-0.4577411413,
0.0528514236,
-0.1441260427,
0.0452976376,
0.034303695,
-0.2054462433,
-0.1070224047,
0.2207037508,
0.0384895764,
-0.0587676838,
-0.2087224722,
-0.1666584164,
-0.0068193786,
0.0721506327,
-0.2570262253,
-0.6848427653,
-0.1318626702,
-0.3363643289,
-0.0185508057,
-0.1078772098,
0.1569405496,
-0.1232447773,
-0.0514249764,
-0.1049095839,
0.0217199475,
-0.3342834115,
-0.0948760062,
-0.0487307571,
0.0945050642,
-0.0082828328,
-0.4569732547,
0.1993881911,
0.1774876267,
-0.2025113404,
0.1531126499,
-0.5314668417,
-0.2725239694,
0.2065206021,
-0.0438622646,
0.1573559642,
-0.1776328385,
0.5536838174,
-0.1086382046,
-0.2538419366,
-0.1345506907,
-0.2866040766,
0.0720610917,
0.171246022,
0.3246346712,
0.40918082,
0.2624561191,
0.0242746547,
0.3892101347,
0.1903089434,
0.0267373621,
0.2341601998,
0.1795133501,
0.192406401,
-0.0937660038,
-0.2098539621,
0.0676553249,
0.126013115,
0.1618109047,
0.1551783234,
0.2125054747,
-0.0854247212,
-0.3764596283,
-0.0002549961,
-0.0050692409,
0.1066496223,
-0.2045839429,
0.19392021,
0.6248509884,
0.155980736,
-0.0690405369,
-0.1899854392,
-0.0502804592,
-0.1242641062,
0.2394969165,
0.2186527103,
-0.0803114474,
0.0049763843,
0.3057093322,
-0.2312407047,
0.3685390949,
-0.0162633993,
0.3051941991,
-0.1745794117,
0.1836996973,
0.1675744653,
-0.0165349301,
-0.0022481121,
-0.4258728623,
0.2501204014,
0.5538980961,
-0.2577003837,
0.1758042574,
0.0319326371,
-0.1597498953,
-0.1175886244,
-0.1852881312,
0.5539383888,
-0.0616520867,
-0.3503076136,
0.5332701206,
0.0958011523,
-0.1159934327,
0.0116964988,
-0.1489772648,
-0.0391740873,
0.036184743,
-0.0692066625,
-0.1455719471,
0.0450962447,
0.0707549006,
-0.2735245228,
-0.2130564004,
-0.2302903682,
-0.0789409578,
-0.1162238196,
0.2302824855,
-0.0054953285,
0.2637896538,
0.1018653065,
-0.0069388077,
0.2944149077,
0.3105015755,
0.1103014797,
-0.2645043135,
0.1126392782,
-0.0766574293,
0.1321160793,
0.3621135056,
-0.144061327,
0.1353560686,
-0.0324912891,
0.0674982816,
-0.0920339748,
-0.2673430145,
0.4327608943,
-0.1655804962,
-0.2975935638,
-0.0365021527,
0.2060317099,
0.1686381996,
-0.3554572165,
0.5559963584,
0.2967344224,
0.0080542564,
-0.023656426,
-0.2770446539,
1.0293961763,
-0.0287327841,
-0.0709770843,
-0.2229949385,
-0.2106603086,
0.3116075993,
0.1518329978,
0.1275593787,
-0.1479124129,
-0.1200415492,
-0.1563587934,
0.0255763158,
0.3566545844,
0.0137888808,
-0.4522591233,
0.1800193787,
-0.1066874117,
0.3458712697,
0.1815044582,
0.4181371331,
0.2039347738,
0.2149990946,
-0.1357865334,
0.181218192,
0.0415112302,
0.344406575,
-0.1115805954,
-0.1123418435,
0.0506093055,
-0.1684787869,
-0.3772751987,
-0.1627555788,
0.0946234763,
0.128495723,
-0.0418814868,
-0.3295048475,
0.1501636058,
-0.2067041993,
0.2394613624,
0.0587116629,
-0.1543530822,
0.1066334248,
-0.1002987176,
-0.2956924438,
0.0422356613,
0.2025134563,
0.2493475229,
-0.3657997251,
-0.1296643913,
0.2075188458,
-0.0665958822,
-0.1957612336,
-0.3805609345,
0.0144145582,
0.1904997528,
-0.085849613,
0.0902346522,
0.0793108791,
0.0000393912,
-0.2687569261,
0.216641888,
0.2363907695,
0.1730726361,
-0.0704720616,
0.0909127966,
-0.0943971127,
-0.0462282822,
0.331574887,
0.4488438964,
-0.0869516805,
-0.0577267334,
-0.1046480611,
-0.0253154784,
-0.2967375517,
0.1651072502,
0.148371011,
-0.1926547736,
0.3166780174,
0.0451813824,
-0.1771447659,
0.0966311544,
0.8037606478,
0.1132905409,
-0.0867023543,
-0.3089387417,
-0.226914227,
-0.201273337,
0.4007468522,
-0.3507453799,
-0.0632592291,
-0.1728218347,
0.0035142601,
0.1783650219,
-0.2588582039,
-0.3582353592,
0.1094940379,
-0.0229327977,
-0.1558409631,
0.3805618286,
-0.1397654116,
-0.1268882751,
-0.1695241332,
0.0683611035,
-0.1914257854,
-0.4219688475,
-0.182589978,
-0.0068810061,
0.1795588136,
-0.0994987264,
0.1105904058,
-0.2188424766,
-0.33317101,
-0.3294795454,
0.5655472279,
-0.0574625283,
0.2105581164,
0.2658178508,
-0.0013694242,
-0.1911033392,
0.0832068473,
-0.0473588072,
0.1444200724,
0.2916862965,
0.0616741739,
0.0525817052,
0.219250977,
0.3352406323,
-0.0512459427,
-0.3188316822,
-0.0857314318,
0.0283790827,
0.1082439125,
0.2533845901,
0.0845070481,
0.0778550953,
0.3177064061,
0.2613410056,
0.1477470398,
0.0235875621,
-0.1045157611,
0.1499727666,
0.2290465832,
-0.4348062575,
-0.2144449651,
-0.1024439782,
0.1954157948,
-0.3519692421,
-0.0586643815,
0.4161959291,
0.374510169,
0.3306235671,
0.2353342474,
0.3252156675,
-0.2875548601,
0.1753371507,
0.2986513078,
0.2821615934,
0.0819242001,
0.2702080905,
0.3563082218,
0.1198410988,
-0.1174160838,
0.1162220836,
0.2579933703,
0.6770774722,
0.4611136913,
0.2945822179,
-0.167414695,
0.1528616101,
0.1450760961,
0.024856817,
-0.0097035076,
-0.028064128,
0.2341251373,
-0.2223805785,
0.0008826815,
-0.2526206374,
-0.1989823878,
-0.1395764053,
-0.2066178322,
0.0804792866,
-0.2013022602,
-0.1639318764,
-0.0490339287,
-0.0818430334,
0.3881368041,
0.4651462734,
-0.1723365486,
0.0645909384,
-0.101997219,
-0.1264231205,
0.1757826954,
0.2655945718,
-0.1845963895,
0.3018837869,
-0.4171668291,
0.1055941731,
0.204600215,
0.5415050387,
0.066887632,
-0.0055140322,
-0.0966516137,
-0.0346168131,
-0.2049902678,
-0.096451968,
0.1199663132,
0.4839954972,
0.2810302079,
0.3264017999,
0.0233848132,
0.0755378157,
-0.1421592534,
0.4168713689,
-0.1079074964,
-0.1283363253,
-0.6276836395,
0.217490837,
-0.1051722765,
-0.1579534858,
-0.0612815246,
0.126012221,
-0.0126636922,
-0.3415769935,
0.2715969384,
0.2166881561,
-0.0643058121,
-0.2486471087,
0.1112186909,
-0.2308492064,
0.0420172811,
0.0135726128,
-0.0086574834,
-0.0197401755,
-0.309686482,
-0.4489582181,
0.3907983303,
0.1115974933,
-0.2408151329,
0.1052803397,
0.2133009136,
0.0889783874,
0.3081979156,
0.0924185887,
-0.1790392846,
-0.3171943426,
-0.144687593,
-0.4022742212,
0.1941872835,
0.3912085593,
0.0847941861,
-0.0422422849,
-0.2774841189,
0.2742190957,
-0.2932405472,
0.0322428271,
0.104475677,
-0.3337162137,
0.3860048652,
0.1406668276,
0.5287460089,
0.0321316272,
0.1304540932,
0.233035028,
-0.1344193816,
-0.4677241147,
-0.1328877509,
-0.0336714387,
-0.1085674465,
0.0418229029,
0.0438948572,
-0.2677304447,
0.1162143648,
-0.1990456134,
0.0510432459,
-0.3705940247,
0.4114429355,
0.066254802,
0.109508127,
0.0662498102,
-0.2569505572,
0.2648652792,
0.0552678183,
-0.1163001657,
-0.259881109,
-0.4447281659,
-0.3196742535,
0.2948859334,
0.0099986456,
-0.1469421685,
-0.118685931,
0.0751412585,
0.2601591349,
-0.2630874813,
-0.4047783315,
-0.1358787417,
0.3026438057,
0.2290501595,
-0.1205537319,
0.003720399,
0.0116369985,
-0.1853570938,
0.0748224109,
0.3017756939,
-0.1473493129,
-0.110548988,
-0.1910789609,
0.0743447915
] |
https://github.com/huggingface/datasets/issues/2885 | Adding an Elastic Search index to a Dataset | Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ?
Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env | ## Describe the bug
When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break:
Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453)
90%|████████████████████████████████████████████▉ | 9501/10570 [00:01<00:00, 6335.61docs/s]
No error is thrown, but the indexing breaks ~90%.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
from elasticsearch import Elasticsearch
es = Elasticsearch()
squad = load_dataset('squad', split='validation')
index_name = "corpus"
es_config = {
"settings": {
"number_of_shards": 1,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {
"properties": {
"idx" : {"type" : "keyword"},
"title" : {"type" : "keyword"},
"text": {
"type": "text",
"analyzer": "standard",
"similarity": "BM25"
},
}
},
}
class IndexBuilder:
"""
Elastic search indexing of a corpus
"""
def __init__(
self,
*args,
#corpus : None,
dataset : squad,
index_name = str,
query = str,
config = dict,
**kwargs,
):
#instantiate HuggingFace dataset
self.dataset = dataset
#instantiate ElasticSearch config
self.config = config
self.es = Elasticsearch()
self.index_name = index_name
self.query = query
def elastic_index(self):
print(self.es.info)
self.es.indices.delete(index=self.index_name, ignore=[400, 404])
search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config)
return search_index
def exact_match_method(self, index):
scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1)
return scores, retrieved_examples
if __name__ == "__main__":
print(type(squad))
Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config)
search_index = Index.elastic_index()
scores, examples = Index.exact_match_method(search_index)
print(scores, examples)
for name in squad.column_names:
print(type(squad[name]))
```
## Environment info
We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment.
Poetry:
- Python version: 3.8
- PyArrow: 4.0.1
- Elasticsearch: 7.13.4
- datasets: 1.10.2
Local:
- Python version: 3.8
- PyArrow: 3.0.0
- Elasticsearch: 7.7.1
- datasets: 1.7.0
| 44 | Adding an Elastic Search index to a Dataset
## Describe the bug
When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break:
Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453)
90%|████████████████████████████████████████████▉ | 9501/10570 [00:01<00:00, 6335.61docs/s]
No error is thrown, but the indexing breaks ~90%.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
from elasticsearch import Elasticsearch
es = Elasticsearch()
squad = load_dataset('squad', split='validation')
index_name = "corpus"
es_config = {
"settings": {
"number_of_shards": 1,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {
"properties": {
"idx" : {"type" : "keyword"},
"title" : {"type" : "keyword"},
"text": {
"type": "text",
"analyzer": "standard",
"similarity": "BM25"
},
}
},
}
class IndexBuilder:
"""
Elastic search indexing of a corpus
"""
def __init__(
self,
*args,
#corpus : None,
dataset : squad,
index_name = str,
query = str,
config = dict,
**kwargs,
):
#instantiate HuggingFace dataset
self.dataset = dataset
#instantiate ElasticSearch config
self.config = config
self.es = Elasticsearch()
self.index_name = index_name
self.query = query
def elastic_index(self):
print(self.es.info)
self.es.indices.delete(index=self.index_name, ignore=[400, 404])
search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config)
return search_index
def exact_match_method(self, index):
scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1)
return scores, retrieved_examples
if __name__ == "__main__":
print(type(squad))
Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config)
search_index = Index.elastic_index()
scores, examples = Index.exact_match_method(search_index)
print(scores, examples)
for name in squad.column_names:
print(type(squad[name]))
```
## Environment info
We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment.
Poetry:
- Python version: 3.8
- PyArrow: 4.0.1
- Elasticsearch: 7.13.4
- datasets: 1.10.2
Local:
- Python version: 3.8
- PyArrow: 3.0.0
- Elasticsearch: 7.7.1
- datasets: 1.7.0
Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ?
Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env | [
-0.1423354894,
0.1727275848,
-0.004471384,
0.0400959104,
0.0997369736,
0.0273679495,
-0.0132044498,
0.0684222579,
0.0138257146,
0.0531153865,
-0.0395592563,
0.3000072241,
0.3499436677,
-0.3781625926,
-0.104925856,
0.1306152791,
0.090972811,
0.0941494107,
0.2756744623,
0.1979279667,
-0.0359145775,
0.0959082916,
-0.1247542575,
-0.0892916471,
-0.3346315026,
0.0212133061,
-0.0316707343,
-0.1235373616,
-0.0287177917,
-0.4167428911,
0.3019477427,
-0.150185436,
-0.1225856692,
0.3576344252,
-0.0001185079,
0.0780739486,
0.4348546267,
-0.0329714045,
-0.0183224753,
-0.2907197475,
-0.0723801702,
-0.1354441345,
0.2791986167,
-0.1591312587,
-0.0953470394,
0.1617635489,
0.098748751,
-0.6114605665,
0.4415228665,
0.3961338401,
0.2210111618,
0.3180064559,
0.3437500298,
-0.1243833452,
0.4198286831,
-0.1281123161,
-0.0489516072,
-0.256423682,
0.2530342042,
-0.0388998874,
-0.0290675648,
0.145228982,
-0.0944894552,
-0.2707443535,
0.1085039303,
0.14813447,
-0.4625431299,
-0.2957314253,
0.3149895668,
0.1134227216,
0.1910259426,
-0.0712337941,
-0.2519366741,
0.045184277,
-0.0008994341,
0.1622105241,
0.1994203925,
0.1894566566,
0.0606100522,
0.1190421209,
0.0653901398,
-0.1248973459,
-0.2391613424,
0.4135324359,
-0.0537094846,
0.1734438986,
-0.0975416899,
0.1064754128,
0.1365945041,
-0.1460799277,
0.0782292187,
0.2522954643,
-0.2729326785,
-0.055515863,
-0.3764426112,
0.1024472862,
-0.1168944612,
-0.2002717704,
0.4185051918,
-0.0634525865,
-0.0926842541,
0.1597322971,
0.651411593,
0.0823701993,
0.2860307097,
-0.0631041154,
0.0613813661,
0.3085790873,
0.0735873729,
-0.3172646463,
-0.3174723387,
-0.2593562603,
0.2854792476,
-0.2149692923,
0.4180775881,
-0.4818148315,
0.2134567946,
-0.0300273821,
-0.1590661108,
0.2193003595,
-0.5879530907,
-0.006157741,
-0.075349912,
0.1353487968,
0.1364614516,
-0.4953053892,
0.0383687615,
0.2725164592,
-0.2289303094,
0.1452211142,
-0.2356662452,
-0.2659832239,
0.0408692509,
0.0179615431,
0.1160363257,
-0.6583971977,
0.2295722067,
0.0021880232,
0.084259823,
-0.3945711851,
0.2630118728,
-0.082899943,
0.1773642004,
0.21885553,
0.0615347028,
0.0234888867,
0.0232268479,
-0.4385561943,
-0.0351552814,
-0.1221937463,
-0.3814528883,
-0.2521404326,
-0.2764836848,
0.2102274001,
-0.1385772824,
0.0171780363,
0.135752067,
0.2181544155,
0.1103123873,
-0.0082744658,
0.077575691,
-0.0403551981,
-0.289768517,
0.0814165473,
0.2997895479,
0.2074806988,
0.116084829,
-0.1290069073,
0.0345479511,
0.4276869297,
-0.2609294355,
0.2141186595,
-0.2313276678,
0.0364291519,
-0.173141107,
0.417922318,
0.3350299299,
-0.4630020261,
-0.6134619713,
0.1387205273,
-0.2306157798,
-0.0950086862,
-0.2723559141,
0.0607843585,
0.6483933926,
0.0107717328,
0.1798676252,
0.2476817667,
-0.1762580127,
-0.1678982377,
-0.1523008347,
-0.0007273555,
-0.1430877,
-0.1772021651,
0.0628993511,
0.0903356597,
0.2576123476,
0.2004104108,
-0.0055738837,
0.1895457208,
0.0115429983,
0.3066952825,
0.3564861715,
0.1077486724,
0.2526798546,
-0.1288018227,
-0.2565322518,
0.2232704014,
0.0895298272,
0.0836864486,
-0.182776317,
-0.1198632568,
-0.137904793,
0.0071618333,
-0.156992197,
0.0309963152,
0.1074970216,
-0.2377430797,
-0.2198880017,
0.192254141,
0.0002295226,
-0.1667473167,
0.0728108659,
0.2382161915,
-0.2376388758,
0.3120533526,
-0.0830119401,
-0.0867528617,
-0.1883606911,
-0.0127895921,
0.2368166,
-0.206038624,
-0.1446202844,
0.3325415552,
-0.0994064361,
0.3171952963,
0.1542845219,
0.0251945928,
0.1261184663,
-0.6889181137,
-0.1038775593,
0.1420570314,
0.0571958013,
-0.276191175,
-0.0003127493,
0.0152493156,
0.0072255759,
0.3724023104,
-0.2171026319,
0.0868739411,
-0.007397756,
-0.1734817326,
-0.4597904682,
-0.0337327495,
-0.0198459253,
-0.3641360402,
-0.0424910858,
-0.1129409745,
-0.1182910353,
0.0319061913,
0.0161154009,
0.154251799,
0.1046618223,
0.3709858954,
0.0202299766,
-0.1001923829,
-0.3800415993,
-0.0208592936,
0.2398630381,
0.1784041226,
0.1413086802,
-0.0003947094,
0.0159997605,
-0.0571262054,
0.3174200952,
0.3449326754,
0.0851908922,
0.3284896314,
0.4267830849,
0.0807353705,
-0.2349992096,
-0.055623848,
-0.2187711746,
-0.0349606164,
-0.2483057082,
0.4837775826,
-0.0381796435,
0.1216891706,
-0.1421810836,
0.0366984122,
-0.2608761489,
-0.4408208132,
-0.1000708789,
0.191887632,
-0.0298060961,
0.0101966076,
-0.3896364272,
-0.0280156136,
0.2536531985,
-0.2719683051,
0.1400228292,
-0.1382578462,
-0.1423628479,
-0.034251105,
0.1852952987,
0.0559355989,
0.2390913963,
0.2277610004,
-0.1308040917,
-0.3857410848,
-0.4401707947,
0.135384962,
0.0270664394,
0.3381629884,
0.1061838418,
-0.2070371956,
-0.4189090431,
-0.1392356008,
0.239174217,
-0.1569138914,
0.0960529745,
0.0989903659,
0.0812270194,
0.1654561907,
0.2521837354,
-0.2988061905,
-0.1856295764,
-0.1773059666,
0.0319295339,
-0.1300621331,
-0.0701900795,
0.3265487552,
-0.0100668184,
0.1334315091,
-0.117994003,
-0.0943660885,
-0.1205612049,
-0.1552781016,
0.0512905866,
-0.1617364883,
-0.31464836,
0.1664025187,
-0.03586597,
-0.2476518154,
0.2399178147,
-0.3951132894,
0.2129149139,
0.1262053698,
-0.2579470277,
-0.309286356,
0.0559350997,
0.0856450871,
-0.2632974982,
-0.0152956173,
-0.0331743285,
0.0292059854,
0.175463587,
0.2231554687,
0.0925874412,
-0.09783943,
0.236107856,
-0.0709360465,
0.6817721128,
0.1603986323,
-0.0134617537,
0.1587851197,
-0.1708621532,
0.3219514489,
-0.2369929105,
-0.5023804903,
-0.1412397325,
-0.1059441268,
-0.1054210216,
-0.0283704028,
0.1095745414,
-0.2827528119,
-0.115599826,
-0.2426896393,
-0.0605003871,
-0.546048522,
0.189392969,
0.1710995734,
0.0693425536,
0.0568657666,
0.1564290673,
0.1233406812,
-0.4360742569,
-0.4252508283,
-0.1272196174,
-0.1278417408,
0.0157796927,
-0.2675441802,
0.1987192929,
-0.6068627834,
0.1646701396,
-0.0542108044,
0.5287724733,
0.0551701933,
0.0009337515,
0.1420911998,
0.168677792,
0.7477440834,
-0.2251747102,
-0.118597351,
-0.0158348568,
0.054792881,
-0.5928249955,
0.0987463817,
-0.147644043,
0.6286974549,
0.2092178911,
0.3737727106,
0.0288935602,
0.1745185256,
0.0755366683,
-0.1005470306,
0.0790705234,
-0.0778413266,
-0.2256829143,
-0.220026806,
0.3044427037,
0.2742736638,
0.3445191979,
0.0810016543,
0.3223794401,
-0.2284778357,
-0.2969670296,
-0.0309455879,
0.0437187143,
-0.2290928811,
0.2575105727,
-0.0781475678,
0.2960501313,
0.4340249896,
0.2177848369,
0.2762291133,
0.4081855714,
-0.2440409064,
0.0885934681,
-0.0196735598,
-0.0375475213,
0.1764101684,
0.3452103138,
0.2333941609,
0.1530000567,
0.1788765788,
0.0665414855,
-0.2147426307,
-0.1878592819,
0.503118515,
0.1382859647,
-0.4760864973,
0.0670424774,
0.362065345,
-0.0627517775,
-0.0308657885,
0.0745156929,
0.5442925096,
-0.3988695443,
0.6471536756,
0.1135980934,
0.6712862253,
0.0891942978,
-0.0725565702,
-0.2630757689,
0.1109261811,
0.7352773547,
-0.3347018063,
0.2549375296,
-0.2097499073,
-0.5855284929,
-0.0690588728,
-0.2858498096,
0.0086796787,
-0.2234170288,
-0.3603475988,
0.016650293,
-0.382299453,
0.2821262479,
-0.0841553956,
0.3374673724,
-0.1510460079,
-0.1274802238,
0.035268601,
0.1547402889,
0.2227142006,
0.269232899,
0.1916234195,
0.0424445421,
-0.0174229071,
-0.2775606215,
-0.4944608808,
-0.0191287249,
-0.1274600327,
0.1551731378,
0.1827656031,
-0.045323059,
0.3815465569,
0.0988958776,
0.048148334,
0.1075572073,
-0.1812238842,
0.2406514287,
-0.0080879778,
-0.0569829568,
0.444668591,
-0.2205830961,
0.0711794868,
0.1791229695,
-0.4024156332,
-0.0184441879,
0.2618077099,
-0.1858660579,
-0.0822700709,
0.3471038342,
-0.2522743344,
-0.3732704222,
-0.2347562313,
-0.1285913587,
-0.0675491616,
-0.1432646215,
0.0892321244,
0.0084904293,
-0.12428464,
0.2830710709,
0.3689795732,
-0.2495321631,
0.0721012801,
0.8503790498,
-0.2160513848,
-0.1386742294,
0.2074772418,
0.0603951439,
-0.1718025655,
-0.1100915819,
0.326431632,
0.2859370112,
-0.1506771296,
-0.2592435479,
-0.4627506733,
0.228315562,
0.0369620733,
0.0377153121,
0.2122459859,
-0.0092375129,
-0.1842620671,
-0.1904773265,
0.1433346868,
0.1566766053,
0.4442587793,
0.1021858603,
-0.3198875189,
-0.4058084488,
-0.0958275124,
0.1374998093,
-0.2438108772,
0.3268667459,
-0.2520278394,
0.0064503849,
-0.129592523,
-0.0516158752,
0.585639298,
-0.3752815723,
0.0591964871,
0.1744847596,
-0.05121921,
-0.1685403734,
-0.0637014657,
0.1191378161,
-0.0450759381,
-0.1070084721,
-0.1666346043,
-0.2316607237,
-0.0473488756,
-0.2600592375,
0.0268884227,
0.4245568514,
0.1292695552,
-0.1663026512,
-0.1522526592,
-0.1260861456,
0.3549259305,
-0.0860517919,
0.2210677266,
0.2574340701,
0.0169343241,
0.2850543857,
0.1095147207,
-0.0313539505,
-0.1166429967,
0.2705664337,
-0.0437090695,
0.0783665478,
0.2038309574,
-0.2371040285,
-0.0961810872,
0.5086317062,
0.4194706976,
0.3942955434,
-0.3104346097,
-0.1650982797,
-0.0005255118,
0.2413312644,
0.0492484719,
-0.2417104244,
0.6126323342,
0.0900261551,
0.128388539,
0.2012026608,
0.0890382826,
-0.3130934238,
-0.3525202274,
0.0291856527,
0.769525528,
0.1349659413,
0.1062522233,
-0.1847230196,
-0.0298993438,
-0.0307878926,
0.0969652608,
0.1540450454,
0.3628751338,
0.2108799219,
0.0093515124,
0.4457627237,
0.0946384817,
0.2002349496,
0.1958204806,
0.1463282704,
0.2819835246,
0.2778771222,
0.198345989,
0.064883709,
-0.0310210995,
0.8150578141,
-0.0081772637,
-0.3089000583,
-0.1074741855,
0.0123539288,
-0.0718850642,
-0.1382000744,
0.2133595049,
-0.1653797626,
-0.00084728,
-0.2416386008,
0.084900558,
-0.0269592851,
-0.3901276588,
0.1575502306,
0.1124817953,
-0.0430951267,
0.0508892052,
-0.1414973587,
0.0767194703,
-0.1664368808,
0.0036228299,
-0.1519071311,
0.1252123713,
0.2351681888,
0.3312087953,
0.4035591781,
-0.0747237206,
-0.1400463283,
0.4058650136,
-0.035012532,
-0.1445529759,
0.1079207733,
0.0318372399,
-0.0002725311,
-0.5440949798,
0.1478164047,
0.0487127081,
-0.0635886118,
0.0140419826,
0.2640840411,
0.4321983755,
-0.1540918648,
-0.3470180035,
-0.2106317282,
0.074432537,
-0.1783645153,
-0.1506303698,
-0.1600373685,
0.0988607034,
0.2971238196,
-0.2123095989,
0.1440628767,
0.1429018229,
0.0628881305,
-0.0869218558,
0.1966793388,
0.1160484776,
-0.055046387,
-0.0333969742,
0.0747524202,
-0.2059542239,
0.3186417818,
-0.4508092105,
0.1692676991,
0.5591516495,
0.2960520387,
-0.2047138363,
0.1067673713,
0.1807713807,
-0.2350660712,
-0.29931283,
-0.07724493,
-0.0160413384,
-0.2238672376,
-0.101560533,
0.0261781011,
-0.0101416968,
-0.0251556933,
0.1090445444,
-0.5017799735,
0.0234618485,
-0.235397175,
-0.1540964842,
-0.1983956695,
-0.1749739349,
0.1152513996,
0.0764288157,
0.2546804547,
-0.010825254,
0.0705433935,
-0.194272995,
-0.4698739052,
-0.2817730308,
0.2653591633,
0.0957906395,
0.0309687853,
-0.255800575,
-0.4981393814,
-0.2089364529,
0.1482594311,
0.0951694176,
-0.1051605269,
-0.4935901761,
0.0211843178,
-0.0664745569,
0.1254033446,
-0.282428503,
0.3217878044,
-0.0584607869,
0.4555456638,
0.0576233268,
-0.4273315072,
0.4724075794,
-0.3319601119,
0.0055784136,
-0.0409939699,
0.2926782966,
0.6038851738,
0.1409936249,
-0.2386952192,
-0.1673590094,
0.2756535709,
-0.194346264,
-0.2440594137,
-0.0981738418,
-0.0150668379,
0.1926185936,
-0.0259732194,
-0.1619801968,
0.2742902339,
-0.0292489156,
0.0151275769,
-0.0911699533
] |
https://github.com/huggingface/datasets/issues/2882 | `load_dataset('docred')` results in a `NonMatchingChecksumError` | Hi @tmpr, thanks for reporting.
Two weeks ago (23th Aug), the host of the source `docred` dataset updated one of the files (`dev.json`): you can see it [here](https://drive.google.com/drive/folders/1c5-0YwnoJx8NS6CV2f-NoTHR__BdkNqw).
Therefore, the checksum needs to be updated.
Normally, in the meantime, you could avoid the error by passing `ignore_verifications=True` to `load_dataset`. However, as the old link points to a non-existing file, the link must be updated too.
I'm fixing all this.
| ## Describe the bug
I get consistent `NonMatchingChecksumError: Checksums didn't match for dataset source files` errors when trying to execute `datasets.load_dataset('docred')`.
## Steps to reproduce the bug
It is quasi only this code:
```python
import datasets
data = datasets.load_dataset('docred')
```
## Expected results
The DocRED dataset should be loaded without any problems.
## Actual results
```
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-4-b1b83f25a16c> in <module>
----> 1 d = datasets.load_dataset('docred')
~/anaconda3/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
673 # Checksums verification
674 if verify_infos:
--> 675 verify_checksums(
676 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
677 )
~/anaconda3/lib/python3.8/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
38 if len(bad_urls) > 0:
39 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls))
41 logger.info("All the checksums matched successfully" + for_verification_name)
42
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?export=download&id=1fDmfUUo5G7gfaoqWWvK81u08m71TK2g7']
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Linux-5.11.0-7633-generic-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 5.0.0
This error also happened on my Windows-partition, after freshly installing python 3.9 and `datasets`.
## Remarks
- I have already called `rm -rf /home/<user>/.cache/huggingface`, i.e., I have tried clearing the cache.
- The problem does not exist for other datasets, i.e., it seems to be DocRED-specific. | 69 | `load_dataset('docred')` results in a `NonMatchingChecksumError`
## Describe the bug
I get consistent `NonMatchingChecksumError: Checksums didn't match for dataset source files` errors when trying to execute `datasets.load_dataset('docred')`.
## Steps to reproduce the bug
It is quasi only this code:
```python
import datasets
data = datasets.load_dataset('docred')
```
## Expected results
The DocRED dataset should be loaded without any problems.
## Actual results
```
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-4-b1b83f25a16c> in <module>
----> 1 d = datasets.load_dataset('docred')
~/anaconda3/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
673 # Checksums verification
674 if verify_infos:
--> 675 verify_checksums(
676 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
677 )
~/anaconda3/lib/python3.8/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
38 if len(bad_urls) > 0:
39 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls))
41 logger.info("All the checksums matched successfully" + for_verification_name)
42
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?export=download&id=1fDmfUUo5G7gfaoqWWvK81u08m71TK2g7']
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Linux-5.11.0-7633-generic-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 5.0.0
This error also happened on my Windows-partition, after freshly installing python 3.9 and `datasets`.
## Remarks
- I have already called `rm -rf /home/<user>/.cache/huggingface`, i.e., I have tried clearing the cache.
- The problem does not exist for other datasets, i.e., it seems to be DocRED-specific.
Hi @tmpr, thanks for reporting.
Two weeks ago (23th Aug), the host of the source `docred` dataset updated one of the files (`dev.json`): you can see it [here](https://drive.google.com/drive/folders/1c5-0YwnoJx8NS6CV2f-NoTHR__BdkNqw).
Therefore, the checksum needs to be updated.
Normally, in the meantime, you could avoid the error by passing `ignore_verifications=True` to `load_dataset`. However, as the old link points to a non-existing file, the link must be updated too.
I'm fixing all this.
| [
-0.2659117579,
0.3422697484,
0.0355652124,
0.3098574579,
0.2141980082,
0.0404331759,
0.3646672666,
0.4201548398,
0.3040326834,
0.0715028048,
-0.2768665552,
0.1901185513,
0.1306953281,
-0.1951105595,
-0.161291644,
0.3339127898,
0.1246937439,
0.1053826138,
-0.2242237926,
-0.125279963,
-0.3106812835,
0.1985793859,
-0.218444556,
-0.2843059599,
-0.0529534854,
0.1835623235,
0.153259784,
0.2324343622,
-0.1207002476,
-0.3587096334,
0.2788214684,
0.2785294056,
0.1736341268,
0.429613173,
-0.0001249282,
0.1207988262,
0.2817708254,
-0.0242787078,
-0.501280725,
-0.2013863623,
-0.5633547902,
-0.3742281497,
-0.0070421919,
-0.1583376676,
-0.0344875529,
0.2363340408,
-0.0177815817,
-0.2750717103,
0.0001791269,
0.373694241,
0.1168586016,
0.3918667436,
0.1610015035,
0.0871692151,
0.3812577426,
0.0504982397,
-0.090103209,
0.4119759202,
0.2193900198,
-0.0385965966,
-0.2582115233,
0.1683275849,
-0.4234546423,
0.3069978356,
0.2320553958,
0.0618824773,
0.0648706555,
-0.1373660415,
0.2532413602,
0.2994746864,
0.4981358647,
-0.4146618247,
-0.3278162479,
-0.2285786867,
-0.2983038127,
-0.318864435,
0.3791347742,
0.1398550272,
-0.1967771649,
0.0336278863,
-0.3680790067,
0.1499669254,
0.0037717968,
0.1940126717,
0.2422608733,
0.0545322411,
0.0316537768,
-0.0187698156,
0.0221100226,
0.0298728682,
0.3937072158,
-0.5399646163,
-0.2046733797,
0.2048074901,
-0.5590268373,
0.0730830133,
0.0080573261,
0.2777062654,
0.3526382446,
0.4925116003,
0.0890112817,
0.204277575,
-0.0375445895,
0.1885136664,
0.1643134803,
0.211974889,
-0.064741239,
0.4100408554,
0.2708574235,
0.3656845689,
-0.134778887,
0.0432132259,
-0.0054316744,
-0.1764250398,
0.6712614894,
-0.1259946823,
0.30842942,
-0.4890397787,
-0.4388929307,
0.2713243663,
0.0082045346,
-0.0947969556,
0.086947009,
0.3220212162,
-0.2265844494,
0.1516591907,
0.1470183432,
0.1476902664,
-0.2125052512,
-0.05413289,
-0.1873377264,
-0.0764370114,
-0.0596776418,
0.1976077408,
0.2942278981,
-0.1821975112,
0.2553657293,
0.1083123237,
0.2190235406,
-0.1960805953,
0.2999761403,
-0.1955656856,
-0.0533631556,
0.318069458,
-0.0322259553,
0.0961275995,
0.2476604134,
-0.1812211275,
-0.1439391226,
0.1828757823,
-0.2557734847,
-0.2137422711,
-0.1269114763,
0.151154235,
-0.3514276743,
0.008207662,
-0.2378199995,
-0.400021553,
0.4063309133,
-0.3223441243,
-0.0154794715,
-0.3542110026,
-0.2637991607,
-0.3539441824,
0.2389695048,
0.4025945365,
0.0419261456,
0.0426535159,
-0.0905656144,
-0.0114821065,
0.2941899896,
0.183512643,
0.0093246251,
0.1056279242,
-0.4124952555,
-0.0635624751,
0.2606512308,
-0.3542022705,
-0.6170939207,
0.1036195904,
0.1277517676,
0.6295825243,
0.0476488173,
0.0750024691,
0.183166042,
-0.0502422415,
0.2216963917,
0.1532355249,
-0.0387856737,
0.1244794801,
-0.2528078556,
-0.0325590149,
-0.0434743948,
0.1044863015,
0.0201722067,
0.2498009205,
0.2889229059,
-0.1661152393,
0.2637804449,
-0.0953651965,
-0.1257362962,
0.2321080416,
0.2991942763,
0.0468714908,
0.0639729053,
-0.0167484283,
-0.7693799734,
0.3423186541,
-0.1505940557,
-0.0280084126,
-0.0733516291,
-0.0444172584,
-0.1803079098,
-0.1141535789,
-0.3073676825,
-0.0912047699,
-0.012598455,
0.3906364441,
0.2074202001,
0.0201074257,
0.0379507318,
0.4137744606,
-0.3047956228,
0.1248285174,
-0.3346241713,
0.4118485451,
0.0743402988,
-0.1029384285,
0.1318235695,
-0.0030256361,
0.1328219175,
-0.0562921092,
-0.2745424509,
0.4387037754,
0.3811521232,
0.1363841891,
-0.1962372363,
0.3414199352,
-0.0699198097,
-0.1395468712,
-0.0126214419,
0.4393100441,
0.1203998476,
-0.1690556109,
-0.1533756256,
0.347396493,
-0.00063302,
0.1946743727,
0.0062623769,
0.0575816855,
0.2450563908,
-0.1167021915,
-0.1461344063,
-0.2618703842,
0.3650651574,
0.1296012998,
0.226625219,
0.1969412267,
-0.1572065949,
-0.0258854702,
0.4515280128,
-0.073506929,
-0.0205244198,
0.1288514584,
0.0474659428,
-0.043695569,
0.0753770247,
0.2370779663,
0.5027197003,
0.0668876469,
-0.0462787822,
0.1425257772,
-0.1718102396,
-0.0678282306,
0.0968004018,
-0.0407391079,
0.1989536732,
0.6168552637,
0.1380468756,
-0.1526707709,
-0.2818835676,
-0.0774430186,
-0.1217620596,
0.3029149175,
-0.490300715,
0.0769681111,
-0.1072901785,
0.0858299807,
-0.3731724322,
-0.1268986762,
-0.1855981052,
-0.2465114892,
-0.2533235848,
0.6255097389,
0.029179275,
0.1770889163,
-0.5438383818,
0.0261701494,
-0.0482736938,
-0.3658803701,
0.0178650022,
0.2034312189,
-0.2111103535,
-0.1547372639,
0.5788051486,
-0.0910895616,
0.3742568493,
-0.4110648632,
-0.0268511251,
-0.5500836372,
-0.2233639359,
0.094517529,
0.0162294786,
0.2236747146,
0.1711831093,
0.0406545401,
-0.0192008466,
-0.2501038611,
0.2409217358,
-0.0442295,
-0.2682688534,
0.3236270547,
-0.1510276347,
-0.0955459774,
0.170935601,
-0.1985138059,
-0.0594485402,
-0.3050559163,
-0.1297383755,
0.2319205701,
0.2133795768,
0.193633616,
-0.0064718127,
0.0152917951,
0.1389675736,
0.3373709619,
-0.1682054698,
-0.6134568453,
0.4448587894,
-0.0378272086,
-0.2202059776,
-0.144333899,
-0.1069901288,
0.1174563617,
0.397405833,
-0.5095453262,
0.0167494267,
-0.2880911529,
0.0945627391,
0.0950633734,
-0.024060335,
0.2160276175,
0.1453534812,
0.0829632878,
-0.2499595582,
-0.2719065547,
0.1908726394,
-0.1372274458,
0.1996578574,
0.0226444639,
0.3025072217,
-0.2673501372,
0.5462414622,
0.4274441004,
0.0061364956,
0.2280855179,
0.046743758,
0.5268796682,
-0.1603344977,
-0.3179927468,
-0.0785080194,
-0.2098640203,
-0.1336315721,
0.1367129087,
-0.025604587,
-0.1290740967,
-0.1602385044,
0.0565647781,
-0.2643247545,
-0.2664653659,
0.0557022691,
-0.299925983,
0.3418451846,
0.1807071418,
0.178768754,
-0.1449638307,
-0.3675036132,
-0.0111273304,
0.2551629543,
-0.0621700473,
-0.0646566749,
-0.275421381,
0.0361304991,
-0.0963149816,
0.3009770513,
0.216688484,
0.4385883808,
0.1286438704,
-0.0846551359,
-0.0186727308,
0.0235367678,
0.2270696014,
-0.2749717534,
0.2956964076,
0.1485592723,
-0.0079605356,
-0.1783613563,
-0.254458189,
-0.0432508402,
0.0618159287,
0.0433869921,
0.5564790964,
-0.3165851831,
-0.0163533613,
0.2413592637,
0.4100424945,
-0.1461863369,
-0.2883683443,
-0.4403586388,
-0.1881667078,
-0.2969534099,
-0.1807301342,
-0.1434830129,
0.1207044944,
-0.2336374819,
-0.1006111205,
-0.0179818496,
0.0570390821,
0.2971669137,
-0.0569481179,
0.4486528933,
-0.0627139732,
0.4389171004,
0.0435418822,
0.0607738234,
0.4035257101,
0.8385467529,
-0.3677006066,
-0.442088753,
-0.079532668,
-0.1300328672,
-0.1770053208,
0.0727124289,
-0.0297106057,
-0.1339789033,
0.2369091213,
-0.1334202886,
-0.0876612067,
-0.0725696385,
0.210417971,
0.1998604238,
-0.4859289229,
-0.4705500305,
0.1424984932,
0.0854979008,
-0.056496568,
0.5796285272,
-0.0678583384,
-0.1726596355,
0.0975926518,
0.1562773883,
0.7910795808,
-0.0374636948,
0.2097781003,
0.2671901584,
-0.3216500282,
-0.0153312646,
-0.288484484,
0.1176058277,
-0.5410559177,
-0.4565607905,
0.0023741871,
-0.4108851552,
0.069489859,
0.0244539399,
-0.0058732629,
0.3644320667,
-0.1365399063,
0.363984108,
0.1626487374,
0.1503243297,
-0.1333120018,
-0.0192529149,
-0.0246917866,
0.0563705154,
-0.1063242182,
0.2817862928,
-0.1043262035,
0.0744755715,
-0.0837389305,
-0.2491398454,
-0.3359657526,
0.2686149478,
-0.0484248661,
0.3063893318,
0.3144674003,
-0.1562395692,
-0.1932056397,
0.3079378903,
0.1931920201,
0.1256465316,
-0.2024257332,
-0.0966122746,
0.4446142316,
0.1859633178,
0.1080894917,
-0.117475003,
0.4294383824,
-0.0164769292,
-0.1706134528,
-0.0195094272,
-0.1567081064,
-0.5109888911,
-0.0638421327,
-0.1865805387,
-0.0139559135,
-0.3327466547,
-0.1821814775,
-0.1491383016,
-0.0026478097,
-0.1799383163,
0.1034974977,
0.1509207934,
-0.1339935958,
0.379924655,
-0.0015963302,
-0.460085094,
-0.1274675429,
0.513128221,
0.1256913394,
-0.0666729808,
0.5254390836,
-0.0354992375,
-0.2741113603,
-0.1303780377,
-0.0239340067,
0.0429769792,
-0.2795835435,
0.1564935148,
-0.2923182845,
0.3266908824,
-0.1656534523,
0.2309195399,
0.1746151745,
-0.0282149054,
0.080373548,
-0.5436576605,
-0.1149596646,
-0.0545215085,
0.0714056045,
0.2256109118,
-0.0961704627,
-0.1318738908,
-0.1686249673,
-0.1643117517,
-0.2196473479,
-0.0509598181,
-0.2850658894,
-0.0503923409,
0.0666948929,
0.1091088206,
0.0954703912,
-0.0847994164,
0.1070706695,
-0.1395271122,
-0.1586121768,
-0.0982482582,
-0.247314021,
0.1913026422,
0.0078082141,
-0.2195225954,
0.1011905968,
-0.2507104278,
-0.123105593,
-0.2926604152,
0.0412836596,
0.3332221508,
-0.1663247049,
0.0240589306,
0.0479133427,
-0.0059106704,
-0.0702901781,
0.0598668307,
-0.356772244,
-0.0949053019,
0.0353375115,
0.085188359,
0.0412025675,
-0.0427585244,
0.0382647403,
0.200740546,
0.0974865407,
-0.0341188759,
0.4755351841,
-0.4363495409,
0.0402532667,
0.1563016772,
0.2356874943,
0.4222281575,
-0.3856225014,
-0.1175229251,
0.1396679878,
0.1710720509,
-0.2858358324,
-0.1420302689,
0.1406699121,
-0.2054575533,
0.0249943957,
0.2416557074,
0.144294396,
-0.5312724113,
0.3154070377,
0.0365453586,
0.1829681098,
-0.1733941734,
0.0952960402,
0.4206507206,
0.1013370901,
0.1403634697,
0.1325901449,
-0.031044554,
-0.0105611645,
0.0478045754,
-0.0750080496,
0.3036597967,
-0.3571100831,
0.0880221575,
-0.2201276273,
-0.5279687643,
0.3481909037,
0.2502379417,
-0.0698258877,
0.1256923825,
0.0152219888,
0.0834442377,
-0.0615339428,
0.2207081616,
-0.3515163958,
-0.112199977,
-0.116039589,
0.0300300531,
0.0056750998,
-0.3382465541,
0.0237839818,
0.2282621861,
-0.0487357862,
0.1440568864,
0.1589455009,
0.1219188422,
-0.1803323627,
-0.2696264684,
0.2587604821,
0.0842611939,
-0.0409873202,
-0.1821428537,
0.2920822501,
0.0527243204,
0.0603766777,
0.083399877,
0.2604498863,
0.4520936608,
0.5969522595,
0.1655569524,
-0.2217400372,
-0.0189454667,
-0.0231259689,
-0.0942030251,
0.7059628367,
-0.1801465452,
-0.2599339485,
0.3139158785,
0.0530927479,
-0.1471289545,
0.0253869388,
-0.0972280279,
-0.2940341234,
-0.0907659382,
0.5079359412,
-0.0236265138,
0.0174970999,
-0.0995534509,
0.222004205,
-0.2275823057,
-0.2491732836,
0.432647109,
0.227005437,
0.1376861036,
0.0776112229,
0.0341993384,
-0.0186289996,
0.1766089499,
0.2722484171,
0.0902169123,
-0.3786656559,
-0.342133075,
-0.7264219522,
0.3454353511,
-0.1576509625,
-0.0619915761,
0.1172376573,
0.1326258779,
0.0116175003,
0.1041901186,
0.314648211,
-0.0641267151,
-0.2050145864,
-0.0098498575,
-0.1759045124,
-0.3004679084,
-0.1592686921,
-0.1377313733,
-0.192040205,
-0.5703731775,
0.2017880976,
0.1151958629,
0.0482629761,
-0.122947365,
0.2097163498,
0.0996091217,
0.2080221325,
0.1852986366,
0.1540620774,
0.6352698803,
-0.0647114068,
-0.2254853845,
-0.0971973985,
-0.114167124,
-0.1586398333,
0.3163267374,
-0.1148586124,
0.3463056684,
-0.1001496613,
-0.3019787371,
-0.3574887514,
0.3911956251,
0.2497394383,
-0.3221427202,
-0.0838528126,
0.0728310943,
-0.2557838559,
0.2184865475,
0.0259721614,
0.1138150096,
0.1335905939,
0.4593373239,
-0.1675975472,
-0.2450244427,
0.4646668434,
-0.2160878479,
-0.1596829295,
-0.1233222559,
0.2576872408,
-0.2743936181,
-0.2150913626,
-0.6132447124,
0.175946027,
0.4812848866,
-0.1356477886,
-0.166929394,
0.2582945228,
-0.2036871612,
0.3876014948,
0.0163915381,
0.3485514522,
0.0122527331,
-0.2221435606,
-0.0536835417,
-0.1185232103
] |
https://github.com/huggingface/datasets/issues/2879 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?" | Hi @rcgale, thanks for reporting.
Please note that this bug was fixed on `datasets` version 1.5.0: https://github.com/huggingface/datasets/commit/a23c73e526e1c30263834164f16f1fdf76722c8c#diff-f12a7a42d4673bb6c2ca5a40c92c29eb4fe3475908c84fd4ce4fad5dc2514878
If you update `datasets` version, that should work.
On the other hand, would it be possible for @patrickvonplaten to update the [blog post](https://huggingface.co/blog/fine-tune-wav2vec2-english) with the correct version of `datasets`? | ## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
| 46 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?"
## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
Hi @rcgale, thanks for reporting.
Please note that this bug was fixed on `datasets` version 1.5.0: https://github.com/huggingface/datasets/commit/a23c73e526e1c30263834164f16f1fdf76722c8c#diff-f12a7a42d4673bb6c2ca5a40c92c29eb4fe3475908c84fd4ce4fad5dc2514878
If you update `datasets` version, that should work.
On the other hand, would it be possible for @patrickvonplaten to update the [blog post](https://huggingface.co/blog/fine-tune-wav2vec2-english) with the correct version of `datasets`? | [
0.1248529255,
-0.0535936952,
0.0293308459,
0.0739795715,
0.2047278434,
-0.0245769322,
0.2489386499,
0.4213004708,
-0.4746904373,
0.1751619577,
0.1361840665,
0.5513861775,
-0.3347690403,
-0.0850956962,
0.0344840996,
0.1865643859,
-0.0921123028,
0.138455838,
-0.2678906322,
-0.2130741775,
0.0398925692,
0.3963992596,
-0.1676282138,
-0.068596229,
-0.3741770685,
0.2448775172,
0.2273773402,
-0.2314912677,
0.1054834127,
-0.4600343704,
0.2924748063,
0.1486976445,
0.0194597617,
0.3702304363,
-0.0001191299,
0.0063223615,
0.2757811844,
0.0352543369,
-0.2775233388,
-0.4479435086,
-0.0650264323,
0.1085861325,
0.0530342609,
0.1475537568,
-0.4656307697,
-0.1793128252,
0.2337314487,
-0.3409469724,
0.0292007104,
0.4485591054,
0.0685844421,
-0.0634171069,
-0.2496643215,
-0.0824671239,
0.3689353466,
0.0125432462,
-0.0625189617,
0.0592697859,
-0.068335712,
0.2411287725,
0.219675079,
0.3755480349,
-0.0313246958,
0.0129959583,
-0.1954177916,
-0.0935639441,
-0.2540266812,
-0.3487868309,
0.0747666061,
0.2519177198,
0.7106904984,
-0.2958622575,
-0.3215118349,
-0.2683335245,
0.3369949162,
-0.0542203374,
0.2911205888,
0.0254177228,
-0.294492662,
0.1627252102,
-0.5629913211,
0.0742399395,
-0.304174602,
0.1429014802,
-0.0974290371,
-0.3596349955,
-0.1437713504,
0.1845411211,
-0.1975935251,
0.1163859218,
0.1141553521,
0.188438803,
-0.0396125056,
-0.0923857987,
-0.320623517,
-0.0985560119,
0.0559261143,
-0.0815377682,
0.0717147589,
0.3172882497,
0.2842968106,
0.0675944015,
-0.4174664319,
-0.1355051994,
0.032232482,
0.148169145,
0.1823078096,
-0.1778396219,
0.1011010855,
-0.0720299408,
-0.1533745378,
0.0139923096,
0.0189835653,
-0.0720992684,
-0.1062531471,
-0.0153032327,
0.3571920395,
-0.1175770089,
-0.5631765127,
0.1525672376,
-0.5025027394,
0.2135900557,
-0.0520563796,
0.1947725415,
-0.2154175192,
0.1350187063,
0.2971950173,
0.0870631933,
0.0248791575,
-0.3115249872,
-0.0998026356,
-0.1971574277,
0.1828784645,
0.0968629196,
0.2440092117,
-0.2103732526,
0.2123046368,
0.257135272,
0.2615032196,
-0.153883487,
-0.0926650837,
-0.0326226689,
0.2529812455,
0.2668444514,
-0.1248195618,
0.3939132392,
-0.056512218,
0.1157931015,
0.1066708863,
0.2571234703,
-0.0651220754,
-0.0061711073,
0.5623429418,
0.0605887733,
-0.1836537123,
-0.300652504,
-0.107121557,
0.333304882,
0.0442795753,
-0.066832304,
0.2504211366,
-0.2751783729,
-0.2271512002,
0.0158826821,
0.135892421,
0.1566539854,
-0.5853286386,
0.0243282765,
0.1945608854,
0.0684714317,
0.3222908974,
0.3032738566,
0.1651952714,
0.1811704338,
-0.0816667974,
0.1170217544,
-0.219933033,
-0.3883655071,
-0.206043154,
0.2092841119,
-0.2708131373,
0.2642602324,
-0.0832699239,
-0.2192171216,
0.0802668333,
0.0991330668,
0.3640692234,
-0.1891601086,
0.2466820478,
-0.10566964,
-0.3831147552,
-0.1445573717,
0.1893378049,
0.1755268574,
-0.0177114885,
0.0532647036,
-0.2982361615,
-0.0164563172,
0.4027053416,
0.0394102335,
-0.0291298144,
-0.0257318243,
0.3644499779,
-0.1775299311,
0.263861388,
-0.1554236263,
0.2872298956,
0.0272913352,
0.160473302,
0.2198722661,
0.5499913096,
-0.1693306118,
-0.1779456139,
-0.0762333721,
-0.0728196651,
-0.068315953,
0.058260262,
0.1486586928,
-0.1489185095,
0.3247834146,
-0.0285168067,
0.4712551832,
-0.4881335199,
-0.0153096393,
-0.0879816189,
-0.1088418067,
0.303391248,
-0.0987992883,
0.1165295169,
0.2411421537,
0.0172995199,
0.0872963294,
-0.1101424247,
0.3636824787,
0.2269498706,
0.1219172403,
-0.368201077,
-0.4027223587,
0.2316687703,
-0.5078884363,
-0.4552858174,
0.5677572489,
-0.0276650935,
0.2008172274,
-0.1534454823,
0.0604418702,
0.0807491094,
0.0480001383,
0.0348500609,
0.036078155,
-0.0194091015,
-0.107921578,
-0.4708497524,
-0.1607663482,
0.2607945204,
-0.2098270655,
0.159021467,
-0.1161287501,
-0.3203788102,
0.1368898451,
0.3158721328,
-0.0502403304,
0.0395468548,
0.2744300961,
-0.1326721609,
0.2099831253,
0.0375694782,
0.1719761044,
0.2373922765,
0.2009199858,
0.080727227,
-0.0535477251,
-0.078192614,
-0.2605935633,
0.2923918962,
0.1945408136,
-0.3651404977,
0.3840384185,
0.2203697711,
0.0489813611,
-0.437225461,
-0.0049821734,
-0.1904431581,
0.2824563086,
-0.4494032562,
-0.1749292612,
-0.3977606297,
0.1078350097,
-0.1361608058,
-0.0218014624,
0.0710958987,
0.0436780378,
0.3717918694,
-0.0027074441,
-0.0859976485,
0.2743452787,
0.1501077861,
0.1915656477,
-0.110423021,
0.1713414639,
-0.0096687451,
0.1939064711,
-0.4710185528,
0.0452457368,
-0.1606468558,
-0.2644658089,
0.150438264,
-0.1925743073,
-0.1099143773,
-0.4143465161,
-0.0715462416,
0.1478732526,
-0.1916622221,
0.4232138097,
0.2326955795,
-0.0426133312,
-0.1860426366,
-0.1944306344,
-0.1887597293,
-0.0310721099,
-0.0671299547,
0.0714480057,
-0.1346394122,
0.041585695,
-0.2561318278,
-0.8888213038,
0.1003020555,
-0.220467627,
0.7185174823,
0.0599350482,
-0.0460496359,
0.5412362218,
0.282204628,
0.2012917697,
0.079253979,
0.1863067746,
-0.3713883758,
-0.1230800971,
0.0792587698,
0.0293457583,
-0.4573094547,
-0.298314333,
0.1936385334,
0.1548014581,
0.207411021,
-0.4953386486,
0.3497344553,
-0.108994633,
-0.1306297183,
0.0102870064,
-0.1989104897,
0.2906791866,
-0.2038050145,
-0.1159161255,
-0.2554522455,
0.1175911576,
0.3896951675,
0.1017958373,
0.1127122641,
0.3398632109,
0.2160487771,
0.2003067285,
0.3506760597,
0.7158635259,
0.0828192532,
0.039017614,
-0.1280340403,
0.424453944,
-0.0728554726,
-0.0528326705,
0.160076499,
0.059085425,
-0.1087117493,
0.4583724141,
-0.084242776,
-0.0255119838,
-0.0293365382,
-0.064268209,
-0.090488635,
-0.3277725577,
-0.0225208439,
-0.4580340385,
0.0512961261,
0.1535511017,
0.2963802218,
0.1280048192,
-0.1144672632,
-0.0452858843,
0.1441748887,
0.3194570243,
-0.1257755607,
-0.3150960803,
-0.3613073826,
-0.4153892696,
0.0612778626,
0.186918512,
0.5611051917,
-0.2880937457,
-0.2019723952,
0.2231434882,
0.1043021828,
0.4215113819,
-0.3380558789,
-0.0422928445,
0.1251644194,
0.2728697658,
-0.2976225317,
-0.0735442787,
-0.3262291551,
-0.2899854779,
0.2791607976,
0.0972535759,
-0.1177075282,
-0.1351197511,
0.0686609745,
0.0584215336,
0.0167314559,
-0.0990044847,
-0.0332192481,
0.030631721,
-0.027278617,
0.1637770683,
0.1725981236,
-0.124804832,
-0.4919112027,
-0.3849043846,
-0.0554663986,
0.1896433085,
0.551681757,
0.0221093893,
0.284060657,
-0.1308686435,
0.2439791858,
0.2357367277,
-0.2960316837,
0.2580800056,
0.1936603189,
0.1173486561,
-0.0414016061,
0.137037605,
-0.1260074377,
0.3830217421,
0.3855086863,
-0.4349808395,
-0.0189785995,
-0.3385871947,
0.1840331256,
-0.2829482555,
0.3459415436,
0.4015238285,
-0.1441547871,
-0.1260796785,
-0.4360538721,
0.4181836843,
0.022924073,
-0.164012745,
0.4557494521,
0.1619812697,
-0.2460981905,
0.1927155107,
-0.1567518711,
0.8095885515,
0.1871283054,
0.2667511702,
0.3340373635,
0.1109344959,
0.1609195918,
-0.4287745357,
0.0356835686,
-0.0055845678,
0.069863677,
-0.1306087524,
0.0897011757,
-0.1681433022,
0.3797656,
-0.2919410765,
-0.0783906356,
0.2101616561,
0.1972837448,
0.2774980962,
-0.0788459033,
-0.258141011,
0.0186330825,
0.0897453055,
0.0458312519,
0.0587444417,
0.3057944179,
0.2888188362,
-0.1282046288,
0.0097756013,
-0.265276432,
-0.659521997,
0.0203249082,
-0.5996916294,
-0.0947106704,
0.1489201486,
-0.3863424063,
0.1838310659,
0.3397492766,
0.1764549017,
0.4337402582,
-0.4633072317,
-0.0267993417,
0.251109004,
0.1131988093,
-0.0246277191,
-0.0830142051,
0.3481531143,
-0.0840319619,
-0.1434057206,
-0.071005024,
0.0281199403,
0.1660568118,
-0.1545241475,
-0.0496856049,
-0.1185677648,
-0.3426325321,
0.0497710854,
0.0989603624,
0.1527894437,
-0.236983493,
0.0680045262,
-0.1038811207,
-0.0651219115,
0.2742634416,
0.2779471874,
-0.5032378435,
-0.1089578867,
0.5379332304,
-0.0835737213,
0.1077650338,
0.6408998966,
-0.1893859655,
-0.0512989387,
-0.2775192857,
0.0168700814,
0.259085834,
-0.3368994892,
0.1719174385,
0.0321258493,
0.3006647825,
0.0966018736,
-0.04447373,
0.0463049896,
-0.058991611,
-0.2513127327,
-0.238933593,
-0.0812482387,
0.1200235337,
0.0252263322,
0.2911800146,
0.0278385952,
0.3665987253,
0.0767615959,
-0.3470374048,
-0.2017675936,
-0.0237252656,
0.0557581484,
0.0804857314,
-0.0478358828,
0.0278625973,
0.1107274741,
0.0545188263,
0.0149589665,
0.1027085558,
-0.1335516125,
-0.0833662897,
-0.2990176082,
0.1511185616,
0.2011466324,
0.1130730957,
-0.0153080188,
0.0650833696,
-0.0542604178,
-0.0600517541,
0.0761153251,
0.3808923364,
0.0174183287,
0.3620301187,
0.1188441068,
0.397614032,
-0.0936356783,
-0.2623870075,
-0.0354404971,
-0.0775723308,
0.1644934118,
-0.0624374971,
-0.1850818992,
-0.0580993146,
-0.1324887127,
0.0220973901,
0.0893227011,
0.151861012,
-0.0546602756,
-0.289630115,
0.2135310769,
0.1549113542,
0.050664708,
0.3179009855,
-0.1531380862,
-0.2708625793,
-0.1102766544,
0.0789905936,
-0.0246087611,
0.0176902041,
-0.3351353109,
-0.0152756535,
-0.0255125389,
0.0031255931,
0.055481419,
-0.3541378379,
0.3623180389,
-0.0125005879,
0.112134859,
-0.5960305333,
0.1129646301,
0.374699533,
0.0613390058,
-0.0079184435,
-0.2586422563,
-0.2529650331,
-0.0035203397,
0.4860924482,
-0.2427178174,
0.2749044299,
-0.1475842446,
-0.0262317806,
0.2557943463,
-0.2615299821,
-0.2477715611,
0.2055237889,
-0.4631261826,
0.1609559357,
0.1013555825,
0.4035342336,
-0.0463260934,
0.10066697,
-0.2105020583,
-0.0210332423,
-0.1480745077,
-0.1586382389,
-0.3575799763,
-0.0887537897,
-0.1383640468,
-0.1716293693,
-0.0802432299,
-0.0285865888,
0.1238232106,
0.239233315,
-0.2778192759,
-0.5319438577,
-0.2491967678,
-0.1834075749,
0.2514193952,
-0.1140983105,
0.3520129621,
0.1031285077,
-0.0186601132,
0.1629293263,
0.3187714815,
0.5043583512,
0.1790821254,
-0.1014209539,
0.1203381494,
-0.2998447418,
-0.0056220405,
0.0208825395,
0.62394315,
0.0326779634,
0.1173428148,
0.0509870648,
0.051892288,
0.0013061389,
0.0413614735,
-0.0084989518,
0.0400379673,
-0.696881175,
0.4176641405,
0.0176095627,
0.239338547,
-0.2014487237,
-0.0412870087,
-0.219551757,
0.3418332934,
0.6031695604,
0.1864221692,
0.0186090581,
-0.093484275,
0.0555081554,
-0.1810230762,
0.1212913394,
0.0766028613,
-0.0048449039,
-0.1068458706,
-0.0195503682,
-0.2139690071,
0.0899251625,
0.265216291,
0.2187432945,
0.0150079504,
-0.1638360023,
0.0671151206,
0.0615045168,
-0.0098667741,
-0.118204236,
-0.2539235055,
0.2244302779,
-0.1969869733,
0.0151611306,
-0.0069398619,
0.1406156123,
0.149586603,
-0.0737226754,
-0.1326640695,
0.1910312176,
-0.1454406083,
-0.0570772067,
-0.0759501755,
0.17733711,
0.3487207294,
0.0686021373,
0.0964070261,
0.3599496484,
-0.091555573,
0.0773109794,
-0.4108831286,
-0.1420517117,
-0.229960084,
0.2994241416,
0.0498118214,
0.3389100432,
0.0066421032,
-0.3442054093,
0.1354150325,
0.2597311139,
0.3330134153,
-0.1628272533,
-0.1400981992,
0.0477316454,
-0.3230913877,
0.213967517,
0.000055775,
0.2621965408,
0.0430665053,
0.1607147753,
-0.5121689439,
-0.9930143356,
0.6250436902,
-0.7181702256,
-0.2236550748,
-0.142776534,
0.2892614603,
0.3226872087,
-0.1015830114,
-0.5634548664,
-0.0728692934,
0.4693163037,
-0.0401694812,
-0.0920305103,
0.1123212799,
0.1479112804,
0.3100139797,
-0.1644334495,
0.9622847438,
0.323774457,
-0.162897408,
0.1872401386,
-0.4706267715
] |
https://github.com/huggingface/datasets/issues/2879 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?" | I just proposed a change in the blog post.
I had assumed there was a data format change that broke a previous version of the code, since presumably @patrickvonplaten tested the tutorial with the version they explicitly referenced. But that fix you linked suggests a problem in the code, which surprised me.
I still wonder, though, is there a way for downloads to be invalidated server-side? If the client can announce its version during a download request, perhaps the server could reject known incompatibilities? It would save much valuable time if `datasets` raised an informative error on a known problem ("Error: the requested data set requires `datasets>=1.5.0`."). This kind of API versioning is a prudent move anyhow, as there will surely come a time when you'll need to make a breaking change to data. | ## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
| 134 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?"
## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
I just proposed a change in the blog post.
I had assumed there was a data format change that broke a previous version of the code, since presumably @patrickvonplaten tested the tutorial with the version they explicitly referenced. But that fix you linked suggests a problem in the code, which surprised me.
I still wonder, though, is there a way for downloads to be invalidated server-side? If the client can announce its version during a download request, perhaps the server could reject known incompatibilities? It would save much valuable time if `datasets` raised an informative error on a known problem ("Error: the requested data set requires `datasets>=1.5.0`."). This kind of API versioning is a prudent move anyhow, as there will surely come a time when you'll need to make a breaking change to data. | [
-0.0884854272,
0.0373966843,
-0.0213858075,
0.1496123523,
-0.0189266149,
-0.0777353495,
0.2245493531,
0.36217767,
-0.4294896126,
0.1633365899,
0.1525295675,
0.2624571323,
-0.4324910343,
-0.0201308355,
-0.0711193755,
0.2396376878,
-0.1268622726,
0.2598144412,
-0.3329853117,
-0.0231145248,
0.0825959891,
0.2425756454,
-0.0296560451,
0.0283613484,
-0.086596325,
-0.01430545,
0.2008778453,
-0.093485117,
-0.312286377,
-0.6014052033,
0.2304866612,
0.276407063,
0.0768749863,
0.1653758883,
-0.0001274555,
0.1065071225,
0.1652282923,
-0.0230599232,
-0.490722537,
-0.1459855139,
-0.1808247864,
0.1132926941,
0.0111581832,
-0.0032401979,
0.1294738352,
-0.2341337204,
0.2061716467,
-0.1966676414,
0.3206734657,
0.529242456,
0.0049743503,
0.2393674552,
-0.1227484792,
0.1194094568,
0.3548436463,
-0.1067726761,
-0.0561468378,
0.076656118,
0.0378668942,
0.2733800709,
0.2134603858,
0.3169702888,
0.0864055455,
-0.1138321832,
-0.2907948494,
-0.1938822269,
-0.1545202583,
-0.2383069098,
-0.2170853168,
0.3288349509,
0.7538303137,
-0.3150245547,
-0.6087896228,
-0.3401041031,
0.1912579238,
-0.1430551261,
0.3923213482,
-0.1902453601,
-0.2573826611,
0.3908391297,
-0.6390116215,
-0.2049099058,
-0.3079319894,
0.1295721531,
0.015353635,
-0.1147585958,
0.0225795954,
0.1235875115,
-0.1734605283,
0.0642667934,
0.1816412807,
0.1108350679,
0.0387302265,
-0.0109755415,
-0.1475488096,
-0.3412713706,
0.0423947722,
-0.1861124486,
0.0421030894,
0.4260552227,
0.5204833746,
0.0642904863,
-0.5445076227,
-0.0775152668,
0.1737653762,
0.2407868505,
-0.0252581052,
-0.2616613805,
0.1569304913,
0.0426038876,
0.1903323829,
0.1748283654,
0.0237040743,
-0.3405400515,
-0.12930125,
0.1194926649,
0.3347737789,
-0.1888238937,
-0.5020070672,
0.0776052177,
-0.454580456,
0.1854379475,
-0.0716409981,
0.1207240373,
-0.2241947651,
0.4196059108,
0.1554580927,
0.064097926,
-0.1348513961,
-0.404071331,
0.1883214414,
-0.1559714228,
0.1908432543,
-0.0499084741,
0.2960180044,
-0.3722984195,
0.0881591067,
0.142776832,
0.1810636222,
-0.1214633435,
-0.1279874146,
0.1010570377,
0.1780343801,
0.2132160366,
-0.1896711886,
0.1723004431,
-0.0805888996,
0.0884557515,
-0.0172107294,
-0.0199686624,
-0.1741253138,
-0.110357523,
0.3484824896,
-0.0193801671,
-0.2260965705,
-0.2067114413,
-0.002878245,
0.1341749728,
-0.0354008675,
-0.2685543001,
0.1478760242,
-0.1158048511,
-0.3188740015,
-0.0152799226,
0.0157302618,
0.2144398689,
-0.6616709232,
-0.1349117756,
0.1824918687,
-0.009823367,
-0.0802732036,
0.2591879666,
-0.0182489119,
0.1335976571,
-0.0214255266,
0.0613842607,
-0.04310783,
-0.4288669229,
-0.3187330365,
0.1890930384,
-0.2718710899,
0.2365473658,
0.1732595861,
-0.2317659408,
0.325789243,
-0.1745209694,
0.1762592942,
-0.2554744482,
0.1786212325,
-0.1710286289,
-0.4389977753,
-0.4511151612,
0.0310189277,
-0.0533377677,
0.0681203306,
0.0648185983,
0.0564529821,
0.0423983522,
0.3488159478,
0.0829288512,
0.011816211,
-0.0338025764,
0.2000454068,
-0.0843637884,
0.0186146237,
-0.2243675739,
0.0837664902,
0.2081038207,
0.076581955,
0.1705435663,
0.4247848094,
-0.1788809448,
-0.2476138026,
0.0383234173,
0.1872701645,
0.1262850314,
-0.0395877324,
0.2273308039,
-0.0825186446,
0.350441277,
-0.2704241872,
0.4691355824,
-0.4019190371,
0.0372849926,
-0.0536286458,
-0.1635845602,
0.2474773079,
0.0825915486,
0.1019177735,
-0.0394122079,
-0.1032757536,
-0.0926557407,
-0.0245239362,
0.5187946558,
0.1530637741,
0.2767787874,
-0.1384763867,
-0.2536576092,
0.214370504,
-0.2618274093,
-0.3397195935,
0.548640132,
-0.0972197056,
0.4484134614,
-0.025513079,
0.1951503456,
0.1404720545,
-0.0403087139,
0.0705883205,
-0.0731969327,
-0.0213092975,
-0.0093517601,
-0.5304040313,
-0.1736079156,
0.1465593278,
-0.2134277076,
0.1417781413,
-0.1460383981,
-0.2046636194,
-0.0846564919,
0.2301438451,
-0.0212982371,
0.0592089258,
0.1565670371,
0.083252117,
0.2117864192,
0.0553548932,
0.31839329,
0.3474944532,
0.0831102729,
0.0246619023,
0.0214085933,
-0.2565381229,
-0.1302024275,
0.276820302,
0.2188894898,
-0.3133857846,
0.3226566315,
0.2063319981,
0.0317541249,
-0.4395202994,
0.031971857,
-0.0409545004,
0.0367239639,
-0.6262533665,
-0.0090596527,
-0.5513138175,
0.169015646,
-0.3306768835,
-0.0818262398,
-0.1623635143,
0.0047678351,
0.5723301172,
0.1694379151,
-0.0812914297,
0.2194668055,
-0.0876340792,
0.3680039346,
-0.1986395717,
-0.0618023798,
0.0382375345,
0.2359500378,
-0.4149255455,
0.0028020293,
0.0273972079,
-0.3462301195,
0.2414891422,
-0.4148810804,
-0.300960809,
-0.2322781086,
-0.0679202229,
0.1891994476,
0.0653942153,
0.2402109206,
0.3457307816,
0.1270096153,
-0.0146290958,
-0.0418711752,
-0.2779378593,
0.0484671593,
-0.1159969419,
-0.1051496565,
0.1344980896,
0.0982848853,
-0.2827248573,
-0.8775423765,
0.0841023773,
-0.1689091027,
0.4604311883,
0.0795202255,
0.1856422573,
0.3558038175,
0.3462037444,
0.1059157103,
-0.044132825,
0.1544435918,
-0.0882077515,
-0.2302576154,
0.0935372561,
0.0836209729,
-0.2186216414,
-0.0057524368,
0.2806984484,
0.0527221225,
0.3915786743,
-0.416885376,
0.2677829862,
0.2194800973,
-0.1391706169,
0.001931434,
-0.3680184782,
0.546649158,
-0.0834406614,
0.0156954378,
-0.2377286702,
0.2056241482,
0.1374917626,
0.1225762665,
0.2549111843,
0.3231088519,
0.2804227173,
0.2665040493,
0.5263997912,
0.3263047636,
-0.2103034556,
0.2247065902,
-0.1228170246,
0.4726444483,
0.0411539562,
0.0922420099,
-0.0651078224,
-0.0960021168,
-0.1824166477,
0.3834346533,
-0.0364109427,
-0.0770953223,
-0.1888982654,
0.2259606719,
-0.2749902606,
-0.2729184628,
0.0425743833,
-0.3952448368,
0.1360570937,
0.2876462042,
0.3582552373,
0.1015630364,
0.0322360955,
-0.0319887921,
0.2270747423,
0.3397324681,
-0.0098602548,
-0.2052220106,
-0.0876504779,
-0.2094878107,
0.2032209039,
0.4069232047,
0.6541616321,
-0.1864348352,
-0.0886587873,
0.1288475543,
-0.0191108212,
0.2862905264,
-0.4888175428,
-0.0456890352,
-0.0792834088,
0.3533950448,
-0.1327288151,
-0.129483372,
-0.1357856095,
-0.3984864056,
0.1170823723,
0.0794343352,
-0.1247218922,
-0.0330576003,
-0.0315414928,
0.1264818311,
-0.1087497175,
0.176342845,
-0.1473098993,
-0.0187249035,
-0.1351140738,
-0.0089129172,
0.0840161666,
-0.2780801058,
-0.4168045521,
-0.0725167766,
-0.0888439566,
0.2681666315,
0.3895972669,
0.162150383,
0.28742221,
-0.1167987958,
0.0239203125,
0.0930399522,
0.0980092138,
0.3213099539,
0.2371073961,
0.1738162041,
-0.184338212,
0.0630599484,
0.08204896,
0.1017825827,
0.5416073799,
-0.3363021016,
-0.1183998138,
-0.1456230432,
0.0961888433,
-0.2815688848,
0.3941450417,
0.5397120118,
-0.2854301333,
-0.3250680566,
-0.4289260209,
0.4246481061,
-0.090447396,
-0.2281327695,
0.3700993359,
0.1016522795,
-0.3230114281,
0.1511369944,
0.0276334006,
0.922003746,
0.2088726312,
0.2067638338,
0.1859175563,
-0.1246661767,
0.4331421852,
-0.5090641975,
0.1522115767,
0.1198085472,
0.0101091415,
-0.3668874204,
0.109200947,
0.0915937573,
0.439971596,
-0.1749594957,
0.04851925,
0.1938172579,
0.3199472129,
0.2437159419,
-0.022406809,
-0.4007432163,
0.0955583602,
-0.1448122561,
-0.0000624731,
0.1024666578,
0.289703697,
0.0265423357,
-0.0909920037,
-0.0498295799,
-0.4163595736,
-0.7078107595,
-0.2266651839,
-0.4140574932,
-0.1478800327,
-0.0445110872,
-0.119061701,
0.1190104112,
0.2762687504,
0.2014931887,
0.241851002,
-0.3773288429,
0.0200513694,
0.0144650824,
0.07429488,
0.1023883671,
-0.0653454959,
0.3629058897,
-0.0745205656,
0.041327253,
0.0539518036,
-0.0798189491,
-0.0671609268,
-0.1024445966,
-0.0455862656,
-0.0551968738,
-0.3396164477,
0.1325670034,
-0.1026442349,
0.0545614287,
-0.1985495239,
-0.0092557082,
-0.2127404064,
0.1121368557,
0.1885817647,
0.0892388225,
-0.4363735914,
-0.0978494585,
0.6311430931,
-0.2886927724,
0.12894696,
0.484149009,
-0.3160095215,
-0.0333171003,
-0.1941361278,
-0.0213659033,
-0.1992963552,
-0.5194515586,
0.0147856288,
-0.044604145,
0.0800758302,
-0.127022326,
0.0733650699,
0.1802176535,
0.1770589203,
-0.1799434125,
-0.3772439361,
0.0420022309,
0.2579895258,
0.2447489053,
0.3469188213,
0.0996374041,
0.2187811285,
-0.0042200908,
-0.5193979144,
-0.1086388379,
-0.10017813,
0.1144045368,
0.0074444916,
0.0580740198,
0.3495641649,
0.0714686215,
-0.2546704412,
-0.1440990269,
0.1539246589,
-0.1497366428,
0.0224602185,
-0.2373715192,
0.2285161316,
0.0468568243,
0.1454442888,
-0.0425271466,
-0.0164452009,
-0.0305593647,
0.0448144786,
-0.088673979,
0.3584473133,
0.1018415913,
0.1913808733,
0.1421768516,
0.4053520858,
-0.2433031797,
-0.0650705099,
0.0682468712,
0.1981732249,
0.1225379184,
0.2254868448,
-0.2010091692,
-0.071331352,
-0.1664498597,
0.2583249509,
0.2247249037,
0.0503339432,
0.059495952,
-0.1397161782,
0.2466144413,
0.0786285177,
0.3503730893,
0.6881967187,
-0.1185356081,
-0.4578855634,
0.1832002103,
-0.0270988438,
-0.1317240149,
-0.0254199412,
-0.3005430102,
0.0465860926,
-0.1627552658,
0.1273008287,
0.0149540305,
-0.3517833054,
0.4608775377,
0.1213577539,
0.1400361657,
-0.4294636846,
0.1858081371,
0.6682866812,
0.0034413263,
0.2189690322,
-0.419690907,
-0.3038706779,
0.1169410199,
0.3170002997,
-0.3769645691,
0.2690321803,
-0.1761018336,
-0.0776476711,
0.0045767929,
-0.1181808859,
-0.3301262558,
0.2845062017,
-0.0586042665,
0.4738271534,
0.5105354786,
0.514228642,
-0.0172046144,
-0.090956226,
-0.4596329927,
0.0934664905,
0.0878876373,
-0.1986487359,
-0.5646128654,
-0.2639586926,
-0.1481104046,
-0.020208478,
-0.1672483087,
0.1114050746,
0.219239682,
0.2884187698,
-0.2779068351,
-0.5320429206,
-0.2158830315,
-0.2374021113,
0.3170852363,
-0.2049437761,
0.2701925337,
0.2036053538,
0.0774116963,
0.2706264257,
0.3161221445,
0.4058339894,
0.0915577263,
0.0079939738,
0.026317887,
-0.2494979501,
0.2277777493,
0.0264973491,
0.4185409248,
-0.0022927076,
0.1665540636,
0.3360882401,
-0.029655328,
0.0563845858,
0.1897279024,
-0.3109253645,
0.0160302147,
-0.8132577538,
0.3678288758,
-0.0193115436,
0.2532854676,
-0.2053135186,
0.0359719805,
-0.0377472192,
0.3639241457,
0.3746537268,
0.2076766044,
0.0715544522,
-0.0014276467,
-0.0013188645,
0.0427962355,
0.1832632869,
0.3172470331,
-0.0597408712,
0.0115214959,
-0.0177087784,
-0.5737127066,
0.0423171371,
0.0510376282,
0.0625444427,
-0.0109653957,
-0.2795839608,
0.2245614231,
0.3119567037,
0.14393574,
-0.0390034989,
-0.2761302888,
0.3555091918,
-0.1490617394,
0.0674829632,
-0.0336020328,
0.204939425,
0.093679592,
-0.4758707881,
0.1259449124,
0.0696861595,
-0.2321199775,
-0.0411867797,
-0.0239275247,
0.1523930877,
0.1186014265,
0.2039055228,
0.0417624041,
0.3559783101,
-0.0677289069,
-0.114814505,
-0.5655719042,
-0.0974953026,
-0.2459744066,
0.3128046691,
-0.1374591589,
0.3027484417,
-0.1450625956,
0.0440846831,
-0.0077924281,
0.3880823255,
0.3565627337,
0.0990418494,
-0.1623946428,
-0.2619996667,
-0.3227410614,
0.1392247379,
0.2651118934,
0.2450652868,
-0.0310611613,
0.1129159033,
-0.4395874143,
-0.7549798489,
0.446339041,
-0.5544965267,
-0.0952444971,
0.0162802115,
0.3003900051,
0.3546909094,
-0.0889632404,
-0.5038308501,
-0.1051777303,
0.3698129952,
0.0651457161,
-0.0476121567,
0.0583502799,
0.1136679277,
0.0546239614,
-0.0278609432,
1.0447942019,
0.2161822468,
-0.1762980223,
0.1037138551,
-0.4345040321
] |
https://github.com/huggingface/datasets/issues/2871 | datasets.config.PYARROW_VERSION has no attribute 'major' | Hi @bwang482,
I'm sorry but I'm not able to reproduce your bug.
Please note that in our current master branch, we made a commit (d03223d4d64b89e76b48b00602aba5aa2f817f1e) that simultaneously modified:
- test_dataset_common.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-a1bc225bd9a5bade373d1f140e24d09cbbdc97971c2f73bb627daaa803ada002L289 that introduces the usage of `datasets.config.PYARROW_VERSION.major`
- but also changed config.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-e021fcfc41811fb970fab889b8d245e68382bca8208e63eaafc9a396a336f8f2L40, so that `datasets.config.PYARROW_VERSION.major` exists
| In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
| 47 | datasets.config.PYARROW_VERSION has no attribute 'major'
In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
Hi @bwang482,
I'm sorry but I'm not able to reproduce your bug.
Please note that in our current master branch, we made a commit (d03223d4d64b89e76b48b00602aba5aa2f817f1e) that simultaneously modified:
- test_dataset_common.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-a1bc225bd9a5bade373d1f140e24d09cbbdc97971c2f73bb627daaa803ada002L289 that introduces the usage of `datasets.config.PYARROW_VERSION.major`
- but also changed config.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-e021fcfc41811fb970fab889b8d245e68382bca8208e63eaafc9a396a336f8f2L40, so that `datasets.config.PYARROW_VERSION.major` exists
| [
-0.3742082715,
0.1478583813,
0.0884074792,
0.0458859652,
0.2804539204,
0.1281490028,
0.1531108022,
0.3776513338,
-0.2427560389,
0.201121375,
0.3052013516,
0.4177036881,
-0.1865008622,
0.1149607077,
-0.1479020119,
0.0099560805,
0.053092137,
0.2520796359,
0.1291817129,
0.0060467869,
-0.1062644795,
0.1722441614,
-0.1942497343,
0.2815796435,
-0.2942166626,
0.1177278608,
-0.0419812314,
-0.0479393266,
-0.1290826797,
-0.5930624008,
0.3376211822,
-0.1589788049,
0.2437151372,
0.3399905562,
-0.0001267467,
0.1114127934,
0.4063087702,
-0.0081882402,
-0.2549677193,
-0.5021970868,
-0.1217939556,
-0.0536485873,
0.3664948642,
-0.0817653835,
0.1027121693,
-0.7000573874,
0.0134146102,
0.0499354377,
-0.1659478843,
0.329719305,
0.1360016614,
0.0637334138,
0.2616917491,
-0.0975201577,
0.2251864523,
0.0621268749,
-0.0079680383,
0.464941591,
0.0723095462,
-0.110189423,
0.2356002927,
-0.0848245993,
0.0687130913,
-0.0513687208,
0.0992350727,
0.1825545132,
0.2629992366,
-0.1627098769,
0.1989027709,
0.0318586379,
0.5882599354,
-0.6263433695,
-0.4298152328,
-0.0176615417,
0.220207274,
-0.2607832849,
0.2262852788,
0.2429367006,
-0.1009411812,
0.1628728211,
-0.0570025295,
-0.120620966,
-0.0635351241,
-0.0164816119,
-0.4222541153,
0.3365791142,
0.1881286502,
0.1403082162,
-0.1132395044,
-0.0093298722,
0.0025074817,
-0.1097335294,
0.1019929647,
-0.0780157,
-0.2746735215,
-0.0144314393,
-0.0775343478,
0.1633088887,
0.1757596135,
0.2084085345,
0.003034953,
-0.2792116106,
0.2704049647,
0.0860599205,
0.1035958529,
0.1269083172,
-0.020438984,
0.1562924832,
0.1005842686,
-0.1070767418,
0.0690042824,
-0.0031421804,
-0.0581312403,
-0.0568243153,
0.3815540373,
0.0283410065,
0.7426700592,
-0.2355116904,
-0.2066711485,
0.1739301831,
-0.3724194765,
-0.179325372,
-0.266005218,
0.2187241614,
0.0305576548,
0.3607173562,
-0.1849213988,
0.3320732117,
-0.0956050158,
-0.2356073856,
-0.1135949865,
0.145772323,
0.0022744164,
-0.1549611241,
0.0268714651,
-0.3101927042,
-0.0878967419,
0.3905236125,
0.0014738571,
0.1260320544,
-0.1415989995,
-0.0541732311,
-0.1536235809,
0.4754760861,
-0.2805732787,
0.2540763617,
0.1305660903,
-0.4681429267,
-0.3429702222,
0.2116097808,
-0.2033768296,
-0.4039483666,
-0.4072817266,
0.1281084865,
-0.1272283494,
-0.1809759289,
-0.1497176886,
-0.0052620391,
0.230634436,
-0.1509695202,
-0.0146371536,
-0.6668521762,
0.1032238454,
-0.3199045956,
0.2467019856,
0.1543768197,
-0.633502841,
0.0087505132,
0.1704794317,
-0.190020889,
0.1658154875,
-0.1197976246,
0.0055149458,
-0.1398757249,
0.0290390849,
0.0476634502,
0.3468934894,
-0.1955855191,
-0.3685946465,
0.0728682801,
0.0580837652,
-0.0002380684,
0.2594130039,
-0.3139026761,
0.0474223904,
0.1808192283,
-0.167907089,
0.0811103657,
0.0019093063,
0.0160691738,
-0.1740120649,
-0.0421569236,
0.3828533888,
0.2783964276,
0.149921298,
-0.1601756066,
0.0293609388,
-0.2005847991,
0.1286724806,
-0.0868611783,
0.0851055384,
0.0264915377,
0.4046370685,
-0.1430397332,
0.0339467973,
-0.2175853699,
-0.3197010458,
0.1867123544,
0.0698746443,
0.0265332889,
-0.3560788035,
-0.1848595738,
-0.1795896441,
0.1088648587,
-0.1084896475,
-0.0283280127,
0.0058019497,
0.3832252324,
0.0711454004,
0.1115478799,
-0.2974826694,
0.2475377768,
0.0242410153,
0.1781356037,
-0.0212112777,
0.4727579653,
-0.4082579017,
-0.3153122663,
0.0902255625,
0.0457067899,
0.102861926,
0.039166946,
-0.0002052151,
0.2879416645,
-0.0028912649,
0.0584645942,
-0.02767675,
0.2250143588,
0.0138646495,
-0.1725011766,
-0.1926609278,
0.2565887868,
0.0011451654,
0.4009822905,
0.1184243411,
0.3715969622,
0.5518645644,
0.3002988994,
-0.0234601423,
0.0936509818,
-0.1508526802,
-0.0168526545,
0.1085570753,
-0.0839205831,
0.0393526368,
-0.1069300026,
0.2100667804,
-0.0077001844,
-0.5035152435,
0.084020406,
0.3833172023,
-0.0595607907,
0.1452020705,
0.1436307728,
-0.260905385,
0.0484304652,
0.0339329094,
0.1345784664,
0.2741984725,
0.1518547833,
-0.1246566772,
0.1309268326,
-0.318816483,
0.1648000926,
0.182839632,
0.1089480892,
0.1759982854,
0.1831197292,
0.2829287052,
0.0866184905,
-0.0567069091,
-0.3240152597,
0.1387682855,
0.3523795605,
-0.4344473779,
0.2530077696,
-0.3444129527,
0.2502820492,
-0.1669088751,
-0.18621099,
-0.4147617519,
-0.2429393828,
-0.03043814,
0.0963686258,
0.1005034447,
0.2397006452,
-0.3122081161,
-0.1296306103,
0.0462816879,
-0.398812741,
-0.2186689675,
-0.1758570373,
-0.4486288428,
-0.0190908443,
0.2013365626,
-0.3951259255,
0.0396513268,
-0.2199629098,
-0.2137854546,
-0.3060595393,
-0.1851970255,
0.0833885223,
-0.2393287867,
0.2992103696,
0.2597302794,
-0.0382421799,
-0.0473478921,
-0.0988906398,
0.3235454857,
-0.3321583867,
-0.2847577035,
0.1006461233,
-0.0942855775,
0.0356608294,
-0.0603934899,
-0.4970042109,
-0.357511282,
-0.1462481916,
0.0124238543,
0.0410997495,
0.1555685401,
-0.0624718517,
0.2309514731,
-0.1249247789,
-0.148911804,
-0.010573322,
-0.0276865698,
0.0039669275,
0.2373255938,
0.0062802844,
-0.2969487607,
-0.0511557087,
0.0064248815,
0.0896271765,
0.0367037728,
-0.3144405782,
-0.1439501345,
0.0547291785,
0.5389251113,
-0.3207368553,
0.0192000214,
0.297077477,
0.2694778442,
-0.0367961228,
0.0630885065,
-0.178724736,
-0.1892793477,
0.1446789503,
0.1415686011,
0.1744130403,
0.241091311,
-0.0849477947,
0.579000771,
-0.070344165,
-0.2986300886,
0.2510006428,
-0.2920910418,
0.3411945701,
0.0630542412,
-0.1798297763,
-0.088697955,
-0.0483297706,
0.0156399384,
0.2517922521,
-0.2184790969,
-0.149674803,
-0.1239425242,
-0.2539522648,
-0.2212260514,
-0.0426101796,
-0.061210759,
0.0359983109,
0.2440868616,
-0.0551077649,
0.0298618078,
-0.0403755568,
-0.0545972586,
0.1456446648,
0.3016494215,
-0.2157077789,
0.1017486006,
-0.1830851436,
-0.1527077109,
-0.1803332567,
0.3837954402,
0.0439698137,
0.4377393723,
0.1552539319,
-0.1999729872,
0.0833068937,
-0.1641712785,
0.5928216577,
-0.1187064648,
0.1239388436,
0.1585400105,
-0.1371154189,
-0.395542264,
-0.4143472314,
-0.4618230462,
0.08394216,
0.0049618557,
0.197327897,
-0.2952905297,
-0.1378475726,
0.2305309176,
0.1844813228,
0.0506921932,
-0.0268237591,
-0.4164668918,
-0.0658162907,
-0.1691920161,
0.2111216784,
-0.1269625127,
0.3692862093,
-0.1657081246,
0.4781221151,
-0.1405241638,
-0.1776959002,
0.1654680669,
0.2207292616,
0.3384036422,
-0.3253701031,
-0.0032505244,
-0.1957052052,
0.2242891788,
0.6268396974,
0.5107083321,
0.3266796172,
-0.3425289392,
0.2157905698,
0.2769281864,
0.5334733129,
-0.0198666155,
-0.4827550054,
-0.095860593,
-0.2471355349,
0.0602891855,
-0.0659035742,
-0.0321026817,
0.5593259931,
-0.1096104532,
-0.5021072626,
-0.0202025957,
0.5698214173,
0.1894669086,
-0.0793705955,
0.0957341194,
0.3778427243,
-0.1557371318,
0.3602989614,
-0.133469075,
0.7824114561,
0.0175449103,
0.2209134698,
0.1155822873,
-0.4412600398,
0.2862612009,
-0.0613787398,
0.0911193267,
-0.5176573992,
-0.336623013,
-0.1464529186,
-0.2395019233,
0.1303436607,
0.0145636369,
-0.206828028,
0.2747063935,
0.0475890189,
0.4116236866,
0.3609588146,
0.3171048164,
-0.0719517246,
0.2720513344,
-0.2521820664,
-0.0217563305,
-0.0593511723,
0.0917054787,
0.128119424,
0.0586950742,
-0.2239384353,
-0.4248757958,
-0.3383874893,
0.0584695041,
-0.2342780679,
-0.0421389751,
0.450894773,
-0.5700244904,
0.1182596833,
0.042615559,
-0.1173637509,
-0.032963369,
-0.1581281424,
-0.0164401494,
-0.0627332032,
0.1840557605,
0.1415056884,
0.0766140074,
0.4222029448,
-0.0112856925,
-0.3214783669,
0.2916192114,
-0.0392377898,
0.019097656,
-0.0512055457,
-0.0198285393,
0.1973825246,
-0.2740911245,
0.1948557496,
-0.5745172501,
0.2753390074,
-0.2236594707,
0.0186476633,
-0.1024588048,
0.000749629,
-0.0163123868,
0.1178033948,
-0.2898898125,
-0.2125736922,
0.3666989207,
0.0528494529,
0.2823128402,
0.5269951224,
-0.0676544085,
-0.0817731246,
-0.0454058796,
0.0528813899,
0.2541746795,
-0.3957657218,
-0.0471704006,
-0.0543741658,
0.0327483416,
0.0790852904,
0.1984804422,
0.2237325013,
0.2555362284,
0.0201188028,
-0.5458893776,
-0.0552602112,
0.1743022203,
-0.1844222546,
0.0464428067,
0.2021575421,
0.2829450965,
0.1664928496,
-0.2004851103,
-0.1850071251,
-0.0044213161,
-0.043110922,
0.139864251,
-0.1864717007,
0.1530421823,
0.1342081875,
-0.0325629935,
0.1182300001,
-0.2170259207,
-0.070616968,
-0.0740984008,
-0.2204392552,
0.1982031465,
0.0624702387,
0.2393829674,
0.1128435582,
0.0884267613,
-0.0120736575,
-0.0264757778,
0.1066361442,
0.1785605848,
-0.2272363603,
0.3060316443,
0.4929538071,
-0.262290746,
-0.342782706,
-0.0386491045,
-0.1529735774,
-0.115770936,
0.1555683762,
0.4499002695,
-0.1631076336,
0.1811011881,
-0.2985675037,
0.0400751568,
-0.2388182729,
-0.0395775139,
0.1804854423,
-0.4256383181,
-0.2396808416,
-0.0433828719,
0.4485314488,
0.2221604586,
-0.2303750217,
-0.0980584174,
0.1173267812,
0.0090721436,
-0.4490540028,
0.0356155261,
0.2640765607,
0.1550161839,
-0.0410299078,
0.4426926374,
0.4489092529,
-0.287322253,
-0.0974354595,
0.1774397343,
0.4901803136,
0.2559276521,
0.1621129513,
0.5159204602,
-0.0438938886,
0.1582225263,
0.4991028011,
0.2005465627,
-0.099890247,
0.4372413456,
-0.1124541685,
0.1261387169,
0.116466105,
-0.2075041533,
0.0423413441,
-0.1860406399,
0.2623977065,
0.0324445888,
0.3752457798,
-0.2654275596,
0.1894046813,
0.3313001394,
0.2059776187,
-0.2006646991,
-0.1015893146,
0.0663826764,
-0.0794086158,
-0.0449129678,
0.1113160849,
-0.253487587,
-0.2293631434,
-0.0513659529,
-0.1425134987,
-0.2100434303,
0.6946988106,
0.2750623822,
-0.1903173625,
-0.3078862727,
0.1221389771,
0.1174295545,
0.048912961,
-0.2738500535,
0.3728528917,
0.0805969983,
-0.081271857,
0.223117128,
0.3539700806,
0.8215013742,
0.2467615604,
-0.0757997334,
-0.3166640401,
-0.1711075902,
0.0428911448,
0.2550631762,
-0.0129180672,
0.0328656361,
0.0312778018,
0.2523141205,
0.0757339448,
0.0942194313,
-0.0254333206,
0.1040951759,
-0.0186159015,
-0.4002718925,
0.3342920542,
0.1377335489,
-0.2329227626,
0.0334779136,
0.3048775494,
-0.2463754117,
-0.0460600518,
0.2661555707,
0.5599738359,
-0.1200681403,
-0.1416712999,
-0.0092102699,
0.2585319579,
0.3113088906,
0.5630508065,
0.1585424989,
-0.2242983878,
-0.1859927475,
-0.4756968617,
0.4308846593,
-0.2150819451,
-0.1064558476,
0.2760232091,
0.0639475435,
0.0704118907,
0.1569856703,
0.3471614718,
0.4209793806,
-0.3910067677,
0.1344710588,
-0.3857069016,
-0.2570206523,
0.0194004327,
-0.1237018183,
-0.0705664009,
-0.0510135628,
0.1715072691,
-0.5911439657,
0.0238801017,
-0.1454248726,
-0.2321885973,
0.1721450686,
-0.0550272204,
0.5031514168,
0.00703777,
0.6460561156,
0.0470302701,
-0.1947337389,
-0.2284394503,
-0.1045868918,
-0.4692243338,
0.60171628,
-0.268347919,
0.2230910659,
-0.1235532165,
-0.3353490829,
-0.2232297063,
0.2529108524,
0.0031419992,
0.0884143114,
0.004312411,
0.1209903732,
0.071386531,
-0.0406130664,
-0.0173882581,
-0.058698982,
0.0150131732,
0.3013275564,
-0.5924038887,
-0.697758913,
0.4954079092,
-0.3196097314,
-0.3000345826,
-0.4309998155,
0.2480505705,
0.0159251168,
-0.0336425155,
-0.5722134113,
0.1170048118,
0.4677249491,
0.0741852894,
-0.221197933,
-0.1495644152,
-0.0770952702,
0.379760772,
-0.1158955321,
0.4920506179,
-0.2867053747,
-0.1916608959,
-0.2343586236,
-0.2670708895
] |
https://github.com/huggingface/datasets/issues/2871 | datasets.config.PYARROW_VERSION has no attribute 'major' | Reopening this. Although the `test_dataset_common.py` script works fine now.
Has this got something to do with my pull request not passing `ci/circleci: run_dataset_script_tests_pyarrow` tests?
https://github.com/huggingface/datasets/pull/2873 | In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
| 25 | datasets.config.PYARROW_VERSION has no attribute 'major'
In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
Reopening this. Although the `test_dataset_common.py` script works fine now.
Has this got something to do with my pull request not passing `ci/circleci: run_dataset_script_tests_pyarrow` tests?
https://github.com/huggingface/datasets/pull/2873 | [
-0.3413380682,
0.2006243169,
0.0493727773,
0.0571893826,
0.1107941791,
0.0854445249,
0.235339731,
0.2816727757,
-0.1760854423,
0.1386214495,
0.4381389022,
0.3304320574,
-0.1294844598,
0.2977351248,
-0.1947031617,
0.0704641864,
0.0133856386,
0.142753616,
0.3433146179,
0.0562439114,
-0.1254508346,
0.2392578125,
-0.1946723759,
0.1283948123,
-0.1329981089,
0.0372126177,
-0.1708889008,
0.0408573933,
-0.1387817562,
-0.4680927098,
0.4385560155,
0.0902259499,
0.1819552928,
0.6217030287,
-0.0001299516,
0.1380508542,
0.4102709591,
-0.0885429904,
-0.2731286585,
-0.5470474362,
0.0774913803,
-0.0126979426,
0.3988083005,
-0.1040789187,
0.0965569243,
-0.3847818375,
-0.0448813997,
0.1092318743,
-0.0679034591,
0.3774313033,
0.0892631635,
0.2561307549,
0.0892846137,
0.0130178109,
0.2664372921,
0.3202233315,
-0.1790554225,
0.4346642494,
0.1634720713,
-0.136852622,
0.1822316349,
-0.0818930566,
-0.0010011271,
0.0381131694,
0.058765918,
0.0650134459,
-0.0054224916,
-0.2756884396,
0.2095606178,
-0.0046765124,
0.4738270342,
-0.5655618906,
-0.4999670386,
0.0325701535,
0.1310690492,
-0.2759969532,
0.1989558786,
0.1092876419,
-0.2475143671,
0.1120674983,
-0.1768940687,
-0.1210495085,
-0.0797205046,
-0.0597055443,
-0.4520730674,
0.1955432594,
0.1415926665,
0.1933697611,
0.0005675841,
-0.0080451323,
0.0825761333,
-0.1077339947,
0.1832362711,
-0.0202006381,
-0.2383794338,
-0.0761250854,
0.0723487586,
0.3277741075,
0.2713032365,
0.4195836186,
0.0403553843,
-0.1306673586,
0.1742662638,
0.0946187377,
0.0676532388,
0.2015321851,
-0.0325331129,
0.1100755781,
0.2688364089,
0.0022646524,
0.0251367539,
-0.0340528563,
-0.0820882916,
-0.1183394641,
0.2201673388,
0.0307948999,
0.832904458,
-0.3100615442,
-0.2644136548,
0.0647197217,
-0.4131417274,
-0.145634532,
-0.1949629933,
0.212033391,
0.1063022763,
0.3991498649,
-0.0541127101,
0.3935262859,
-0.0928058326,
-0.0335156843,
-0.1254985631,
0.0960213542,
0.0741092488,
-0.0745832101,
0.2243501991,
-0.3418166637,
-0.0214520022,
0.2785850167,
0.2317497581,
0.1688361764,
0.0847872496,
0.1707448512,
-0.0158238821,
0.5882760286,
-0.1170845404,
0.3030571938,
0.1808869839,
-0.4662671685,
-0.3240083754,
0.2942481339,
-0.3417187929,
-0.311983943,
-0.1544469893,
0.0395624861,
-0.3309829831,
-0.2279404998,
-0.2230110615,
-0.1995643675,
0.2305959165,
-0.0955438465,
0.0377826542,
-0.643155098,
0.1101012006,
-0.2451970279,
0.2660878897,
0.2522025108,
-0.4532642066,
0.0551286042,
-0.0058160424,
0.0077624582,
0.1686532646,
0.1081847996,
-0.0699361339,
-0.1368115395,
-0.0259975381,
0.0800720751,
0.452093184,
-0.4171760678,
-0.3087328076,
0.2504969835,
-0.0502100512,
0.0525270104,
0.2544583678,
-0.4099239409,
0.0670627281,
0.1091566756,
-0.1023416743,
-0.055972334,
-0.0132138999,
0.100846827,
-0.1170873344,
-0.0518477038,
0.4205109775,
0.2592458129,
0.0945968628,
-0.1817266643,
-0.0615672059,
-0.3520299196,
0.2080372274,
-0.0581730269,
-0.0000344366,
-0.0472281091,
0.415410012,
-0.301741153,
0.0376630127,
-0.0054553822,
-0.2810012698,
0.2353982329,
0.1397242844,
0.183251977,
-0.4007820189,
-0.2460962683,
-0.2957420051,
0.1120927557,
-0.1815856397,
-0.0250832066,
-0.0734231472,
0.3676603734,
0.0943573862,
0.0908513963,
-0.2459864765,
0.1231615022,
-0.054971002,
0.1216385514,
-0.0157054067,
0.3610075414,
-0.3976746798,
-0.3114206791,
0.1486183405,
0.0152978925,
0.1552102566,
-0.0953351259,
0.049207408,
0.1977921277,
0.0182923973,
-0.0615075752,
0.0249139667,
0.2371183932,
0.0974486619,
-0.1439390182,
-0.1320541352,
0.2738496959,
-0.0527514443,
0.228892222,
0.0089536309,
0.4483507872,
0.4337403476,
0.4135376215,
-0.0052917004,
0.1331375241,
-0.0789799243,
0.0464651659,
-0.1026587486,
0.0235416144,
0.06232059,
-0.1579684615,
0.2385577559,
-0.0083107138,
-0.4083738327,
0.1789083779,
0.4755970538,
0.0045281947,
0.0512076318,
0.1263184249,
-0.0464048907,
0.0135154724,
0.1427054852,
0.1196601763,
0.3690713644,
0.1315706819,
-0.1269988865,
0.1280187815,
-0.3089669645,
-0.0002404824,
0.0881364197,
0.0855408162,
-0.0177239664,
0.1066994369,
0.2934766412,
0.0094749704,
-0.1714619398,
-0.5069292784,
0.1386286467,
0.3523925245,
-0.554453671,
0.2957420349,
-0.2599962056,
0.2412187308,
-0.0563948676,
-0.0995177627,
-0.3512247205,
-0.3400329947,
-0.0426340848,
0.1322476119,
0.1855419278,
0.1987329721,
-0.3156893849,
0.0858148932,
0.0278858617,
-0.5474076867,
-0.3988510966,
-0.2250472307,
-0.3432812393,
-0.0082414709,
0.3350316286,
-0.3440192938,
0.1043744385,
-0.353600651,
-0.0615597814,
-0.3151575327,
-0.3276816905,
0.0971032754,
-0.3790065944,
0.3400277495,
0.264110744,
0.1390075386,
-0.0936908945,
-0.0775849521,
0.2825621367,
-0.3451506197,
-0.3498210609,
0.0558033958,
-0.0393704996,
-0.0816588104,
-0.2297521681,
-0.4395766556,
-0.1756116152,
-0.1256150603,
0.1797548532,
0.1345766038,
0.0894501954,
0.1602126956,
0.261731267,
-0.1119602174,
0.0015941411,
-0.0800454021,
0.0416264832,
-0.1853195429,
0.3113857508,
-0.1229891032,
-0.2905150354,
0.076814115,
0.0901875794,
0.2567838132,
0.0905641466,
-0.3195662498,
-0.208856374,
0.0071462039,
0.5721033812,
-0.1528172344,
0.0589571074,
0.3950418234,
0.1801726222,
0.0335803628,
0.0303172544,
-0.2007783353,
-0.0994261354,
0.1576835215,
0.0561937094,
0.1956198215,
0.2270440757,
-0.064581275,
0.77778548,
-0.091266118,
-0.2477526665,
0.3013985157,
-0.3482934535,
0.4125494361,
0.0924602821,
-0.3143630624,
-0.1148334444,
-0.0043496266,
-0.0983641818,
0.1719358265,
-0.1672708392,
-0.1968490481,
-0.1316080987,
-0.2043839395,
-0.1171978042,
-0.0901858732,
-0.0458138473,
-0.0148273855,
0.2799759805,
-0.0396879092,
0.1678756326,
-0.1324228644,
-0.0496871844,
0.1742268652,
0.4427693486,
-0.0196972005,
0.0237190574,
-0.262448132,
-0.2940680981,
-0.2959464192,
0.3724194467,
0.0611568876,
0.4008817673,
-0.0266814306,
-0.1610319018,
0.1031046137,
-0.3025606871,
0.6163401604,
-0.2401423454,
0.08069361,
0.3421915472,
-0.2250522822,
-0.4068374038,
-0.3200124502,
-0.4515898228,
0.1839900017,
-0.0279773585,
0.2594495118,
-0.2801223993,
-0.3214557767,
0.2671275139,
0.1050607413,
0.0664295405,
0.0288711004,
-0.5246192813,
-0.4429925382,
-0.2986674309,
0.2140106857,
0.0544984862,
0.2545916736,
-0.3563590646,
0.4444728196,
-0.0712302923,
-0.2317401171,
0.2484553456,
0.2951728106,
0.2508277595,
-0.1330597103,
-0.0640559644,
-0.1815864444,
0.0097760949,
0.4776946008,
0.5681916475,
0.37771824,
-0.2568674684,
0.3769101799,
0.203181237,
0.5758683085,
0.2257900536,
-0.4059254527,
-0.05272099,
-0.1149653569,
-0.0379135832,
-0.0809892267,
0.122076124,
0.514346242,
-0.2152795792,
-0.351526618,
-0.0673800185,
0.3762575984,
0.2904919982,
-0.0491690412,
0.1210092902,
0.4069831073,
-0.1331268698,
0.3132098615,
-0.1312796772,
0.8649087548,
0.0573807433,
0.2569828629,
0.1712691337,
-0.322670877,
0.0820888728,
-0.0039618313,
0.0175483823,
-0.4571154118,
-0.1686370671,
-0.179682821,
-0.2954652607,
0.2304840237,
-0.0226179343,
-0.1865593791,
0.229722634,
0.0601243675,
0.4995065629,
0.4300906062,
0.3966608346,
-0.2316231728,
0.3145559728,
-0.2194424421,
-0.017298542,
0.0293018743,
0.2286306024,
0.1244779155,
-0.0027930737,
-0.2746599317,
-0.4961459041,
-0.370462656,
-0.0256940387,
-0.2890322208,
-0.1104237437,
0.3295891881,
-0.7482534051,
0.2486485094,
0.0339218974,
0.1098258346,
0.0075347805,
-0.3014063835,
0.0366481468,
-0.1004753113,
0.1164052188,
0.230558753,
-0.0126890466,
0.3798059523,
0.0022485182,
-0.3695719242,
0.2487474978,
-0.0775891393,
-0.1284071803,
-0.1045807526,
0.0652093291,
-0.0416566655,
-0.3378791809,
0.1743742228,
-0.5917773247,
0.1822230965,
-0.0884274021,
-0.0206443965,
-0.1191922873,
0.0958006084,
0.025434332,
0.2053677738,
-0.2256226838,
-0.1250715256,
0.274312824,
-0.0698660165,
0.1688298583,
0.5413681865,
-0.013897486,
0.0417849496,
-0.0379352458,
0.0337936133,
0.2881394625,
-0.4225571752,
0.0193726458,
-0.0664408058,
0.0207806379,
-0.0079839826,
0.5095459819,
0.0708175823,
0.2001806945,
-0.0391865447,
-0.4795255363,
-0.009307038,
0.2478468716,
-0.0300480854,
0.1569506824,
0.1399678439,
0.2862485647,
0.2056423724,
-0.4054955244,
-0.1714911163,
-0.0400296263,
-0.0005372614,
0.0970596075,
-0.1244994402,
0.0023441846,
0.1719813794,
-0.0211473852,
0.0245667771,
-0.1681085527,
-0.076664716,
-0.0485597327,
-0.1229086816,
0.2095739096,
0.0366380066,
0.1580320299,
0.1997239143,
0.0126826167,
0.0098166354,
-0.013130201,
0.16014494,
0.0829433203,
-0.1392779201,
0.0932433233,
0.1914658248,
-0.1461137533,
-0.3684508204,
0.0260949917,
-0.1601085365,
0.0838334411,
0.1734333932,
0.3831005991,
-0.124329716,
0.1700464338,
-0.1644285321,
0.136464417,
-0.1596183628,
0.0139148217,
0.2238866389,
-0.3504801393,
-0.2246345729,
-0.0711622983,
0.5016793609,
0.2746839821,
-0.1880667508,
0.0494722649,
0.0735974312,
-0.065756239,
-0.3324202597,
0.0811483264,
0.3131483197,
0.1644695997,
-0.0142202377,
0.5696219206,
0.3624664545,
-0.2893330455,
0.1590238214,
0.11968413,
0.7548350692,
0.2659271955,
0.0646335855,
0.1735049039,
-0.1727521867,
0.1701313555,
0.4858204722,
0.0595218465,
-0.0590774156,
0.1139838621,
-0.1660735011,
0.180677101,
0.0633859411,
-0.1396624744,
0.001239147,
-0.166103065,
0.3387808502,
-0.2645158768,
0.3434378803,
-0.2066048384,
0.1852729768,
0.4347059131,
0.0754558295,
-0.1739104539,
-0.2398149967,
0.106615141,
-0.0229048543,
-0.0884504318,
-0.1149528474,
-0.2485226393,
-0.1854368299,
-0.0515635461,
-0.1260226667,
-0.1242797971,
0.6650737524,
0.1825417131,
-0.1802323163,
-0.2559808493,
-0.0092404205,
0.0285578705,
0.0777161345,
-0.2637619972,
0.4144212902,
0.0703172758,
-0.1295516342,
0.0619428158,
0.3388366997,
0.9245892167,
0.1384817064,
-0.1193417162,
-0.3575939536,
-0.2355308086,
0.0099259093,
0.1386949718,
0.0076979659,
-0.0125987642,
0.1495124847,
0.1344965398,
0.0862469226,
0.0714662522,
-0.0586300716,
0.1186977029,
-0.1172771156,
-0.4760379791,
0.3648821712,
-0.0168358814,
-0.1769956648,
-0.0490624271,
0.1928957403,
-0.2198528051,
0.0186759271,
0.1510178149,
0.4744873643,
-0.1413978487,
-0.2653831542,
-0.0160906501,
0.1495952308,
0.3990332186,
0.4798592925,
0.2936070859,
-0.2884004712,
-0.1620029062,
-0.6309649348,
0.2499450296,
-0.108917892,
-0.0733904988,
0.1761759073,
0.1923176646,
0.1261360645,
0.1565834284,
0.2528316975,
0.1572814286,
-0.2526710927,
0.074048236,
-0.2817490101,
-0.1842303574,
-0.1126002446,
-0.1680735052,
-0.0837306306,
-0.0515797026,
0.1233396605,
-0.6046463847,
-0.0450350456,
-0.2213485986,
-0.3686111569,
0.1300191283,
-0.2846066952,
0.4359490871,
-0.0453368202,
0.7685066462,
0.1256026626,
-0.150116235,
-0.3288878202,
-0.1370656043,
-0.2852409184,
0.5235646963,
-0.3340821266,
0.2942072749,
-0.0719059184,
-0.3801870346,
-0.2367647141,
0.212556839,
0.1473570466,
0.0150843486,
0.1390546262,
0.1891037226,
-0.0995963737,
-0.0554139391,
-0.0435977653,
-0.0308012329,
-0.025937289,
0.2249901146,
-0.5183082819,
-0.642111063,
0.5877326727,
-0.3876189291,
-0.2811568677,
-0.3539839387,
0.2209096253,
-0.1894459724,
-0.1547932327,
-0.4908483624,
0.0212919116,
0.3034402132,
0.1360801309,
-0.25627321,
0.0768879652,
0.0237820633,
0.2902071476,
-0.0882467851,
0.499348551,
-0.3625540435,
-0.0745921135,
-0.1757295728,
-0.1907046139
] |
https://github.com/huggingface/datasets/issues/2871 | datasets.config.PYARROW_VERSION has no attribute 'major' | Hi @bwang482,
If you click on `Details` (on the right of your non passing CI test names: `ci/circleci: run_dataset_script_tests_pyarrow`), you can have more information about the non-passing tests.
For example, for ["ci/circleci: run_dataset_script_tests_pyarrow_1" details](https://circleci.com/gh/huggingface/datasets/46324?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link), you can see that the only non-passing test has to do with the dataset card (missing information in the `README.md` file): `test_changed_dataset_card`
```
=========================== short test summary info ============================
FAILED tests/test_dataset_cards.py::test_changed_dataset_card[swedish_medical_ner]
= 1 failed, 3214 passed, 2874 skipped, 2 xfailed, 1 xpassed, 15 warnings in 175.59s (0:02:55) =
```
Therefore, your PR non-passing test has nothing to do with this issue. | In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
| 95 | datasets.config.PYARROW_VERSION has no attribute 'major'
In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
Hi @bwang482,
If you click on `Details` (on the right of your non passing CI test names: `ci/circleci: run_dataset_script_tests_pyarrow`), you can have more information about the non-passing tests.
For example, for ["ci/circleci: run_dataset_script_tests_pyarrow_1" details](https://circleci.com/gh/huggingface/datasets/46324?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link), you can see that the only non-passing test has to do with the dataset card (missing information in the `README.md` file): `test_changed_dataset_card`
```
=========================== short test summary info ============================
FAILED tests/test_dataset_cards.py::test_changed_dataset_card[swedish_medical_ner]
= 1 failed, 3214 passed, 2874 skipped, 2 xfailed, 1 xpassed, 15 warnings in 175.59s (0:02:55) =
```
Therefore, your PR non-passing test has nothing to do with this issue. | [
-0.4502639174,
0.1362893283,
0.0727611184,
-0.0077380314,
0.2104403079,
0.1455689669,
0.1347787529,
0.3891865909,
-0.2612732053,
0.1966491044,
0.2423588932,
0.440992415,
-0.1745342761,
0.1955471635,
-0.2465570122,
0.0201375857,
-0.0359612107,
0.1991019547,
0.1349837631,
0.0418356508,
-0.1486247331,
0.162590459,
-0.2162211686,
0.26479581,
-0.1537037492,
-0.0561997816,
-0.088939175,
-0.0443793647,
-0.1304094791,
-0.5437796116,
0.3741038144,
-0.0596003532,
0.1746741235,
0.5324843526,
-0.0001234939,
0.1340291202,
0.3579033315,
-0.09974356,
-0.3201579452,
-0.4985060096,
0.0303548202,
0.0250715911,
0.3309288621,
-0.1497162431,
0.045702666,
-0.590531528,
-0.0560617298,
0.0112039968,
-0.026458323,
0.4921305776,
0.1557276696,
0.1648602188,
0.0755559951,
-0.1378794909,
0.2102550864,
0.0898554623,
-0.0760814324,
0.470676899,
0.1216386557,
-0.0717130452,
0.1600069404,
-0.1023204923,
-0.0217080079,
-0.0166187864,
-0.0197364707,
0.0890948996,
0.2701403201,
-0.2540643215,
0.275823772,
0.0213560238,
0.6139841676,
-0.6099302769,
-0.402813077,
0.0584964678,
0.1510486305,
-0.197794348,
0.2043726444,
0.1740199327,
-0.2345985472,
0.1370752305,
-0.1940619946,
-0.0381155796,
-0.0790200979,
-0.1012424678,
-0.3796560764,
0.2510073185,
0.1984759569,
0.171202004,
-0.0156710986,
-0.1160793751,
0.0763114691,
-0.1649235189,
0.1704021543,
0.0014239177,
-0.2107874155,
-0.1296832263,
-0.0683171898,
0.3605410159,
0.2446825206,
0.2437425405,
0.0395205244,
-0.2193708122,
0.2899463475,
0.1493430734,
-0.0002068989,
0.0608307309,
0.0282585211,
0.1525739729,
0.1156842411,
-0.074304074,
0.0116417482,
0.0125757828,
-0.0356714055,
-0.1347550005,
0.2806887329,
-0.0175589025,
0.7477177382,
-0.3860925436,
-0.3294264078,
0.1127075404,
-0.3191032112,
-0.1121122763,
-0.1496734172,
0.3698423505,
0.0801953897,
0.3064727187,
-0.2025550306,
0.3027331531,
-0.1487697363,
-0.1783849299,
-0.0953059271,
0.0878899693,
-0.0219248757,
-0.1331826746,
0.1687430292,
-0.2979693413,
-0.0465056039,
0.3469099402,
0.1025215238,
0.1879932433,
0.0652617961,
-0.0026952662,
-0.0544138551,
0.4611657262,
-0.2218510509,
0.2516640723,
0.1780834943,
-0.5087431669,
-0.3634718657,
0.2743992507,
-0.2164252996,
-0.3534747362,
-0.2432027757,
0.1512814909,
-0.0920186117,
-0.2586001754,
-0.0489279442,
-0.061350897,
0.1802082658,
-0.1575634778,
-0.00429447,
-0.6692391634,
0.1291497946,
-0.3172440529,
0.2979749143,
0.2355629206,
-0.540328145,
0.0511985049,
0.1171006784,
-0.1538693011,
0.220856294,
-0.0480545163,
0.0285182074,
-0.168448016,
0.0083823353,
0.0004041493,
0.3619307876,
-0.3157840371,
-0.2808327675,
0.2037827373,
0.1373578757,
-0.0054160506,
0.2581102848,
-0.355954051,
0.0676775277,
0.1332529485,
-0.2449014485,
0.0707522109,
-0.0634789616,
0.0394992828,
-0.1724349856,
0.0111092851,
0.4310902059,
0.2942527533,
0.0776940212,
-0.1869190931,
0.0541621335,
-0.2536588907,
0.1724238694,
-0.1534915417,
0.0145557523,
-0.0952104181,
0.4228503406,
-0.3071484566,
0.0091018341,
-0.0820848942,
-0.3720259368,
0.2142075002,
0.1426871568,
0.0427833907,
-0.3331010044,
-0.2545280457,
-0.3418053091,
0.0929808244,
-0.1178569198,
-0.0309028104,
0.0290229768,
0.3834605515,
0.0836452246,
0.0666083246,
-0.1785342693,
0.1259469092,
0.0109810755,
0.1843897551,
-0.0219143014,
0.4052855372,
-0.3848953247,
-0.3287784755,
0.1164525598,
0.0147690326,
0.2110704333,
-0.0747006536,
-0.0244302936,
0.3569452167,
0.0668138564,
0.0324972086,
0.0375453345,
0.2812751532,
0.009507997,
-0.274484247,
-0.2255578637,
0.2845185697,
-0.0563144051,
0.3358911574,
-0.0477800108,
0.4245945215,
0.4690215886,
0.2440939546,
0.0434893221,
0.120716162,
-0.0876625031,
0.0307111144,
0.0175957382,
-0.1027696729,
0.123955071,
-0.0975145996,
0.2429558784,
0.0073817857,
-0.4534867406,
0.0181125216,
0.3326228261,
-0.1036968455,
0.0797223747,
0.1088910252,
-0.1348174363,
0.0713324696,
0.1310130507,
0.1286025047,
0.2671001852,
0.1545218974,
-0.0664285868,
0.1459350437,
-0.3957769871,
0.0493684746,
0.1474570334,
0.0469506271,
0.0843834653,
0.1178496256,
0.2030751109,
0.0692256913,
-0.1964524537,
-0.4386538863,
0.169008106,
0.3975125253,
-0.4556102157,
0.2525030673,
-0.2593021393,
0.2879624963,
-0.1762989312,
-0.1013132036,
-0.281275332,
-0.2871733308,
0.0298088677,
0.1613861769,
0.1280525774,
0.2844820023,
-0.3949877024,
0.1308536679,
0.060436897,
-0.538961947,
-0.3587735295,
-0.1788503826,
-0.4358463883,
0.0564847514,
0.2930060029,
-0.2936736047,
0.187001124,
-0.3385721147,
-0.1041573882,
-0.278003037,
-0.2546267509,
0.1000232995,
-0.2732537687,
0.4224727452,
0.2331347167,
0.0653008074,
-0.0509415157,
-0.139446035,
0.2985115051,
-0.5006915331,
-0.2382099777,
0.1075783595,
-0.0609145127,
-0.0281598456,
-0.099257946,
-0.6026317477,
-0.2700943053,
-0.1767315269,
-0.0738295838,
0.1012944654,
0.1171792001,
0.0153191015,
0.179499507,
-0.0414384417,
-0.1064005941,
0.0407316983,
0.0227800384,
-0.0935678035,
0.2638747096,
-0.1412260532,
-0.2470617592,
0.0030328333,
0.059398815,
0.3075079918,
0.0263137743,
-0.3157666922,
-0.1785080135,
0.087080799,
0.5713326931,
-0.2137545943,
-0.0088342139,
0.2017014027,
0.3253878057,
-0.0461312532,
0.0438687503,
-0.1561381221,
-0.2257908136,
0.0831050798,
0.1174169406,
0.1173682213,
0.2478049397,
-0.0001470447,
0.7000099421,
0.0901696309,
-0.2647122741,
0.2456341535,
-0.290442884,
0.3646115363,
0.0215920731,
-0.2104300559,
-0.0293029826,
-0.0032849982,
-0.0899683163,
0.2567012608,
-0.1834509671,
-0.2540483475,
-0.0747876018,
-0.1884065568,
-0.2296491265,
-0.0697396249,
-0.0385252498,
-0.0507596619,
0.2692648768,
-0.0709143877,
0.1493454576,
-0.07006035,
-0.1060435474,
0.2032533884,
0.3706051707,
-0.2543411851,
0.0308761261,
-0.2697108984,
-0.2007371038,
-0.2348986268,
0.4246785343,
-0.0129909925,
0.4772617817,
-0.01696302,
-0.129408896,
0.0974078402,
-0.2080832422,
0.4789678752,
-0.2268108279,
0.0811512619,
0.2893919945,
-0.1709694564,
-0.4463436604,
-0.3620916307,
-0.4987751544,
0.0781410038,
-0.0376699567,
0.2260659039,
-0.2343871295,
-0.2319651395,
0.2269615531,
0.1185378581,
0.0725108981,
0.0037121587,
-0.4310704768,
-0.2614600062,
-0.2430777103,
0.3034364581,
-0.1024957001,
0.3525217772,
-0.3325915039,
0.407581389,
-0.0961005688,
-0.1727210283,
0.2449414134,
0.3544299304,
0.224941805,
-0.2119113058,
0.0260770246,
-0.1250226349,
0.2323431224,
0.5753102899,
0.5339666605,
0.232109651,
-0.2221551239,
0.1890180558,
0.2378937006,
0.6089586616,
0.0379685313,
-0.4350987673,
-0.1311751604,
-0.2159734964,
0.0436225422,
-0.009059852,
0.1054687873,
0.5369827151,
-0.1258685738,
-0.535292387,
0.0339511484,
0.4779815972,
0.2792465985,
-0.1366873235,
0.075934723,
0.315625608,
-0.167442739,
0.4376078546,
-0.1025655195,
0.8173342943,
-0.0009263624,
0.1719652414,
0.1389712095,
-0.302030772,
0.1291726083,
0.0200278908,
0.0107888021,
-0.4951126575,
-0.3523809314,
-0.1284809262,
-0.260692358,
0.249534741,
0.0580629893,
-0.3433745503,
0.3005762696,
0.0194640607,
0.4572970867,
0.4209087491,
0.2916842103,
-0.1678934246,
0.2989629209,
-0.2507618368,
0.0380313993,
0.0244171433,
0.0722336844,
0.1154954359,
0.0764661133,
-0.1413773894,
-0.4948062003,
-0.2790380716,
0.0151465461,
-0.2930015326,
-0.1004594713,
0.3964216113,
-0.573356986,
0.2118076831,
0.0720920712,
0.0481837429,
0.0640389696,
-0.2333732694,
0.0129598957,
-0.1457784474,
0.1276948154,
0.1839487851,
0.0475331619,
0.4533497095,
-0.008721903,
-0.3378643692,
0.3581655622,
-0.0813952163,
-0.0119386762,
0.0148286372,
-0.1256126761,
0.1773063838,
-0.3368037045,
0.246415481,
-0.6286606789,
0.1099734753,
-0.1781970263,
0.045037318,
-0.1984386593,
0.0036134757,
0.1091616005,
0.2272609919,
-0.3318323195,
-0.2118320614,
0.208390221,
0.0059666429,
0.2285711169,
0.5235667825,
-0.088712886,
-0.0480781496,
-0.1036170125,
0.0581535324,
0.3272997439,
-0.3375205398,
-0.0491203889,
-0.0297178887,
0.0656095743,
0.1523430794,
0.3768547475,
0.2776258588,
0.2131870538,
-0.0744464621,
-0.5255507231,
-0.0729651749,
0.2375107259,
-0.0712139755,
0.1975882947,
0.1174603403,
0.3237076104,
0.2238595188,
-0.1134937108,
-0.23970294,
-0.0329566486,
-0.1323350668,
0.1919336617,
-0.0868290812,
0.0964452773,
0.0517006256,
0.0634483695,
0.0887568071,
-0.1928303242,
-0.1422794014,
-0.1109476462,
-0.1475550979,
0.1835368723,
0.1018511951,
0.1381860077,
0.1264923513,
0.0560473949,
0.0490146019,
-0.0467185453,
0.1385231912,
0.039386183,
-0.1792175025,
0.2147744894,
0.3473410308,
-0.1672765017,
-0.3585491776,
-0.0370980799,
-0.204127565,
-0.0396419801,
0.1470279098,
0.3860640526,
-0.2622256875,
0.0606439412,
-0.1839809567,
0.0891806632,
-0.0386755802,
-0.0581179,
0.1145235151,
-0.3145360053,
-0.2465545088,
0.0138947889,
0.4490870833,
0.2860861719,
-0.2015555799,
-0.0300502405,
0.2351494431,
0.0334137604,
-0.4120021462,
0.0085356608,
0.2943554223,
0.1643490642,
0.0969959646,
0.4992053509,
0.3679383397,
-0.3373356462,
0.0763204098,
0.0541082621,
0.4890700579,
0.2271459699,
0.1624105424,
0.4281889796,
-0.1206048056,
0.1489738822,
0.5001077056,
0.0717378557,
-0.06867484,
0.3365829289,
-0.2265963107,
0.2901755273,
0.0518493354,
-0.0947278291,
0.0120785683,
-0.1402912736,
0.3303789496,
-0.0836482793,
0.3031800091,
-0.1854192019,
0.2107686251,
0.3404171467,
0.0991525203,
-0.310397476,
-0.2646107078,
0.007388927,
-0.0769664198,
-0.1239806861,
-0.0777562112,
-0.2487848252,
-0.3113353252,
-0.0424008705,
-0.1833259463,
-0.2136459053,
0.6925197244,
0.2094758749,
-0.1458515823,
-0.2887676954,
0.0996060893,
0.1255618185,
0.066141203,
-0.2412376851,
0.4364032447,
-0.0067152493,
-0.0461822189,
0.1553471684,
0.2981884181,
0.8132762909,
0.2181601673,
-0.173540011,
-0.3258233964,
-0.2322146893,
0.0645577088,
0.2646584213,
0.0630192757,
-0.0373361707,
0.0212637074,
0.2920491397,
0.1168119907,
0.0277589485,
-0.0784620643,
0.0650032386,
-0.1590970159,
-0.4842329621,
0.2990455329,
0.1847797334,
-0.1018588543,
0.0164226424,
0.1767463982,
-0.2542059124,
0.0268723667,
0.2197717428,
0.4025390148,
-0.0997013748,
-0.1280665547,
0.0130576752,
0.2641709447,
0.3753708601,
0.4660415053,
0.3042025268,
-0.3263895512,
-0.2322639823,
-0.5930101871,
0.308155179,
-0.1118551865,
-0.0641734004,
0.2311529517,
0.070342496,
0.1258245707,
0.2151812166,
0.3055859804,
0.3428935111,
-0.2636964917,
0.1026007906,
-0.4001894295,
-0.1769959331,
-0.0904513374,
-0.1819172502,
-0.0943458527,
-0.1717553884,
0.1907267272,
-0.5734675527,
0.0147785693,
-0.1284412593,
-0.3459655941,
0.2003540695,
-0.1925392449,
0.4588809013,
-0.0203616582,
0.7599463463,
0.0570643246,
-0.1314645708,
-0.199570775,
-0.1574077755,
-0.3382562399,
0.5084723234,
-0.2153963894,
0.2439024001,
-0.0355879068,
-0.222345829,
-0.1448098272,
0.2334986776,
0.1409817636,
0.0157281831,
0.0833623111,
0.0926646888,
0.0641423166,
-0.0942071229,
-0.0230029933,
-0.019734202,
-0.0309024565,
0.2972711325,
-0.4680340886,
-0.6723169088,
0.540030241,
-0.338793546,
-0.2352793515,
-0.4275919497,
0.2575132251,
-0.096946165,
-0.0870121792,
-0.4807569087,
0.1060672998,
0.3818357885,
0.0325494967,
-0.2270981669,
-0.0324547626,
0.032650765,
0.320150733,
-0.1376314759,
0.5239676833,
-0.2877165973,
-0.1514036655,
-0.1682211459,
-0.2710401714
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | Hi, @Chenfei-Kang.
I'm sorry, but I'm not able to reproduce your bug:
```python
from datasets import load_dataset
ds = load_dataset("glue", 'cola')
ds
```
```
DatasetDict({
train: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 8551
})
validation: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1043
})
test: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1063
})
})
```
Could you please give more details and environment info (platform, PyArrow version)? | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 66 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
Hi, @Chenfei-Kang.
I'm sorry, but I'm not able to reproduce your bug:
```python
from datasets import load_dataset
ds = load_dataset("glue", 'cola')
ds
```
```
DatasetDict({
train: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 8551
})
validation: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1043
})
test: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1063
})
})
```
Could you please give more details and environment info (platform, PyArrow version)? | [
-0.0594904572,
-0.1199714541,
0.0148643553,
0.2438832521,
0.4732632637,
-0.0013414845,
0.4414614439,
0.1253973544,
-0.0142948739,
0.2675636411,
-0.179977417,
0.4658890069,
-0.1191557497,
0.1054261476,
0.0933513194,
-0.1634458452,
-0.1493486017,
0.1789053082,
-0.095051609,
0.0041560084,
-0.2951408625,
-0.1227453053,
-0.2647021413,
0.1601056904,
-0.4545834363,
-0.2473363131,
-0.1237277836,
-0.0289072134,
-0.2947977483,
-0.307205379,
0.3905931115,
0.0455320813,
0.080201827,
0.5733892322,
-0.0001046333,
0.0857430696,
0.5220627785,
0.0795244575,
-0.1019384712,
-0.4897305369,
-0.1364545226,
-0.1668335795,
0.2139174044,
-0.3938792944,
-0.1748815626,
-0.043417871,
0.0156308077,
0.1047203094,
0.3135634363,
0.4849513769,
0.3089385033,
0.4509331286,
0.0464524627,
-0.2673179209,
0.2966392636,
0.1515996456,
-0.0532515012,
0.3601016402,
-0.0297630988,
-0.1026376188,
0.1846833527,
0.156706512,
-0.2669481933,
-0.0967592821,
0.1903867424,
0.0687864423,
-0.0415394455,
-0.2908974886,
-0.0751495808,
0.4143869579,
0.3387811482,
-0.4593112767,
-0.2788105309,
0.1180643365,
0.2122837007,
-0.2495185435,
0.2602466345,
0.085617438,
-0.0128444843,
0.1975730658,
-0.0867944956,
0.2796070874,
-0.2793030739,
0.3049075603,
-0.164794296,
0.1444950998,
-0.0630867556,
0.0345242172,
0.2060510516,
-0.1919636428,
0.0597911887,
-0.1310275495,
0.0356739648,
0.1007023454,
-0.243606925,
-0.136994496,
0.1091516018,
-0.055024974,
0.1305611879,
-0.299328804,
0.1565279961,
-0.0825744122,
-0.0047007315,
0.4082545042,
0.1836158931,
0.3742778003,
0.2353916168,
0.1467328966,
0.2031041533,
0.1250562668,
-0.2914269865,
0.0851671696,
-0.1916306764,
-0.0795558318,
0.3350314796,
0.1417779177,
0.4543799758,
0.0042140111,
-0.4538617134,
-0.0484701656,
-0.4231694937,
0.0795800835,
0.22692056,
0.4578571022,
-0.1490904838,
0.1119722202,
0.0448689312,
0.1539013386,
-0.1707453281,
-0.2831355929,
-0.2869075835,
0.4119272232,
-0.3327416778,
-0.2005890161,
0.172569707,
0.0631762594,
-0.0440938063,
-0.0142762437,
-0.1245324612,
0.0147929192,
0.0312173069,
-0.4864667356,
-0.1069179475,
0.1802369952,
0.0366909355,
-0.1434197128,
0.2177434117,
-0.438563019,
0.0038601458,
0.2104465961,
-0.1390266567,
-0.2205246985,
-0.064401634,
0.292147845,
-0.3297556043,
-0.161749959,
-0.122081086,
0.1581525207,
0.1588943452,
0.0152817294,
0.0386043787,
-0.0845264196,
-0.0218605697,
-0.3067057431,
0.0268775448,
0.3902687728,
-0.3743341267,
-0.2277736068,
-0.116348587,
-0.0573348999,
0.33097592,
-0.0552942455,
-0.0139304549,
0.2842516601,
-0.0162358023,
0.1270190775,
0.6166727543,
-0.3811467588,
-0.3189839721,
-0.0871519148,
-0.0525562912,
-0.0323505811,
-0.0000085868,
-0.1415093094,
0.0952095166,
0.185192883,
0.4305965304,
0.1825712025,
0.010849677,
-0.0068765134,
-0.2708133161,
-0.2111279964,
0.1911939383,
0.089531146,
0.1389750987,
-0.0566436537,
-0.0780088603,
-0.2422534227,
0.0179311447,
-0.1191948056,
-0.132361263,
-0.0616729334,
0.5806079507,
-0.0895552784,
-0.1220896691,
-0.5331308842,
-0.2384611368,
0.1451273263,
-0.0384060666,
0.4400660396,
-0.1647625118,
-0.2132974267,
-0.4087541997,
0.0467492118,
-0.0534320511,
-0.0422442257,
0.2887168527,
0.0327205099,
-0.1623722166,
0.1476722658,
-0.093931973,
0.0690902174,
-0.1891066432,
0.1402492523,
0.1150692552,
0.3248270154,
-0.0526560396,
-0.4338490963,
0.0160555169,
0.2450487018,
0.4278887808,
0.0615986399,
-0.0518303812,
0.3103210032,
0.0966811776,
-0.2166446745,
-0.3329289556,
-0.0375641733,
0.1061593741,
-0.3284878135,
-0.1916383356,
-0.0286101773,
0.1814016402,
-0.0039086789,
0.0155866463,
0.5066563487,
0.0730464533,
0.07515499,
-0.0834586173,
0.1962544322,
-0.0521301925,
-0.1202241182,
-0.1189236268,
-0.0935665816,
0.0853726417,
-0.0516476259,
0.160461992,
0.0839668885,
-0.1486921906,
-0.0939606726,
0.6276283264,
0.0661336705,
0.4066177607,
-0.1278575957,
-0.2530850768,
0.146933794,
0.0753544867,
0.0935157761,
0.3560039997,
0.309184581,
-0.174183473,
-0.0120029021,
-0.169913739,
0.0200338289,
0.0936977342,
-0.0300578699,
0.3375006914,
-0.0191667266,
0.3265653849,
0.0025226623,
-0.3129945695,
0.115497902,
0.03831622,
0.1894648075,
-0.3931482434,
0.1806953847,
-0.3155396581,
-0.1539053768,
0.0592738725,
-0.1398230493,
-0.042199742,
-0.2707496881,
-0.0855269805,
0.1815253794,
0.0589708015,
0.2643627524,
0.1597473472,
-0.0327073038,
0.0847379267,
-0.0655736625,
-0.1022355556,
-0.2201067507,
-0.1743910164,
0.1428497732,
0.1274091154,
0.2078600675,
0.2995345294,
-0.1425537467,
0.0480943471,
0.0138055738,
-0.3602246046,
0.0857334882,
-0.1215343103,
0.4401928782,
0.3425598145,
0.0728834718,
-0.2368693948,
0.0173932463,
0.3619662821,
-0.3473314047,
-0.1080509126,
0.3983773887,
-0.1979980469,
0.0502507277,
-0.2161715031,
-0.3248872459,
-0.5105349422,
-0.3189550936,
0.1311065555,
-0.0294713639,
0.0872788504,
0.3062438965,
0.2281629741,
0.4508944452,
-0.0525711998,
0.0395835266,
-0.1739951372,
-0.0077805817,
0.3531799912,
-0.0148417242,
-0.3720352352,
0.0079914778,
-0.1651002616,
0.1313915253,
-0.0117579438,
-0.1790904999,
-0.5396493077,
-0.1400607377,
0.288400054,
0.0229436606,
-0.0957489014,
0.3742547035,
0.0539730601,
-0.151051268,
-0.1974765658,
-0.0822638497,
0.0317740254,
0.3172570169,
0.0219649002,
-0.0694891065,
0.2908797264,
0.0552210212,
0.2811390758,
-0.1133231968,
-0.2513749897,
0.4198065996,
-0.2915056348,
0.2461431324,
-0.0716579109,
-0.4766028225,
-0.0776230097,
-0.055500716,
-0.0022873953,
-0.0360606611,
-0.2989490628,
-0.2200713903,
-0.2970080376,
-0.1219757125,
-0.3595553041,
-0.1541766822,
0.0609145314,
0.0891188681,
0.0558057129,
0.1404543519,
0.1550658643,
-0.3061166704,
0.0088768713,
0.0000187755,
0.1075970232,
0.037208043,
-0.2144531161,
-0.2214945108,
-0.2509329915,
-0.291007936,
0.3232396245,
0.04779502,
-0.0251007918,
-0.1071846336,
-0.1048601717,
0.0847712606,
-0.054349795,
0.676769495,
-0.1964524239,
0.071040675,
0.4911931455,
0.2105487883,
-0.432089597,
0.0249227285,
-0.4132964015,
0.1125911772,
0.1601797789,
0.3240835071,
-0.3951094151,
-0.0542450286,
0.2625238895,
-0.0359853096,
-0.0594216809,
-0.269669652,
-0.2357651144,
-0.2557885647,
-0.107765466,
0.1962946802,
0.0353267267,
0.4339828789,
-0.2649322748,
-0.1105706245,
-0.2390619516,
0.0428948253,
0.1868529618,
0.2545812726,
0.2625080347,
-0.1614429802,
-0.1597974002,
-0.1762634814,
0.0588018782,
0.278000474,
0.2882103622,
0.044540856,
-0.4137678742,
0.0157187283,
0.0581392683,
0.261190474,
0.046425961,
-0.1333331913,
-0.0307981521,
-0.0403295159,
0.0974308401,
0.1435641646,
0.2177046686,
0.3860842586,
0.0595959909,
-0.3346405327,
-0.2437651753,
0.3455173969,
0.1484424174,
0.0505365133,
0.0170092694,
0.2781255543,
-0.2117079645,
0.2881134152,
-0.0201546326,
1.0111835003,
0.0690520108,
-0.0597924888,
0.5816112161,
-0.0952844098,
0.5560988784,
-0.0648018718,
0.1861323863,
-0.2962427139,
-0.3566813171,
-0.0365722701,
-0.1678648591,
0.2394372225,
0.0646674782,
-0.6077865362,
0.2306773365,
-0.2865703106,
0.1413259059,
0.0372002199,
-0.0313406065,
-0.0069273487,
-0.0241818968,
-0.3856898248,
0.2118214369,
-0.1228690743,
0.1014268622,
-0.0845643431,
-0.1063788831,
-0.1233798936,
-0.1591432989,
-0.1048096493,
0.0431122184,
-0.5134392381,
-0.1531042159,
0.0520419925,
-0.1772313118,
-0.0729141384,
0.1872905791,
0.0402173698,
0.077523008,
-0.1871166676,
0.1700201333,
0.1999505758,
0.0999666229,
-0.0692627132,
-0.0332883075,
0.4308817983,
-0.091692619,
-0.3986717463,
0.127502948,
-0.0470684767,
0.1355868429,
0.3548526466,
0.0182907321,
-0.020785436,
-0.4515143335,
-0.0984327346,
-0.1435845643,
0.2059476972,
-0.3068612218,
0.2612115145,
-0.0072332956,
-0.1372917145,
0.0108394716,
-0.0357735716,
-0.0185115412,
-0.0398777723,
0.3423735201,
0.3180932403,
0.4484286904,
0.246530652,
0.2419534475,
-0.1212222576,
-0.3200916052,
0.1532205641,
0.2308021784,
-0.4224051237,
0.2418851107,
0.2260046899,
-0.1214660481,
-0.0534198806,
0.4723204076,
0.0875409693,
0.1689210534,
-0.1257396638,
-0.1489033848,
-0.2344332933,
0.3241611123,
0.1022828072,
0.0040799007,
0.1147458851,
0.4286703467,
0.2379004955,
0.0177307073,
-0.4440495372,
-0.0286852438,
-0.4677802026,
0.0705267787,
-0.0260699876,
-0.2602924407,
0.2004091591,
-0.0038481727,
0.2606967092,
0.1246231869,
-0.0757148936,
-0.3621689081,
-0.1629696041,
0.0902142897,
-0.0021696128,
0.1705980003,
0.1876295358,
0.0336485803,
-0.2303370088,
-0.1281399876,
0.0921764821,
-0.0553294867,
-0.1467016488,
0.2181792259,
0.2054446042,
0.3228452206,
0.0179910213,
-0.0136704352,
0.0152385738,
-0.092462115,
-0.0348309949,
-0.0050639799,
0.1245716214,
-0.0292171165,
-0.091405347,
-0.0829481035,
0.1921164095,
0.1356506944,
0.0203486923,
-0.2578231394,
-0.2741310596,
-0.1145556569,
0.215873301,
0.1211166084,
-0.1575215459,
0.1765080839,
-0.01093233,
0.3513850272,
-0.3763156831,
-0.0102529451,
0.2301225364,
-0.0349600576,
0.226983428,
0.0463017114,
-0.2856044173,
0.3148674369,
-0.203125909,
0.0906802118,
0.2280463278,
-0.0443475544,
0.1081101969,
0.2768344581,
-0.1694982946,
-0.0334680937,
0.4123375714,
0.0703869462,
0.1482769549,
0.0211712122,
0.0128192455,
0.1463377923,
-0.0221672952,
0.085866943,
0.3090980947,
-0.3254112601,
0.0323025286,
0.2096981108,
0.0278553013,
-0.0797007829,
-0.2609017193,
0.5160673261,
-0.2635022998,
-0.1445792019,
-0.334438473,
0.1385081261,
-0.2003162205,
0.0369850211,
-0.201544106,
-0.1111778766,
-0.186993584,
-0.306619823,
0.0259557739,
-0.0909686834,
0.2416603863,
-0.0493584312,
-0.0289358124,
-0.2844854295,
-0.0523672476,
0.3596525788,
0.2271607816,
-0.2038592398,
0.1030541956,
0.0247035772,
0.1235100776,
-0.1864320785,
0.5136398077,
0.4270204008,
0.28573367,
-0.1543843895,
-0.0936768949,
0.0345489979,
-0.309096843,
0.0706594884,
0.0969655737,
0.2919445336,
0.2387930155,
0.06440413,
0.2788919806,
-0.2833414376,
0.1762274504,
-0.0601929575,
0.0752438232,
-0.3707784712,
0.3305321634,
-0.1943283081,
-0.1633211821,
-0.1663211584,
-0.008691147,
-0.480571419,
0.170041278,
0.3345672488,
0.1505532563,
0.1827458292,
-0.189844206,
0.142625913,
-0.2063409984,
0.2242958695,
-0.0433820821,
0.3339890838,
-0.2799003422,
0.1178941429,
-0.4362550974,
0.3936929405,
-0.0448483489,
-0.0489646383,
0.0756323189,
-0.0840158686,
-0.1616725475,
0.0349480845,
-0.0744248629,
0.2408673316,
0.1278526783,
0.0993816853,
-0.6071126461,
-0.1996482313,
-0.1119105071,
-0.230769679,
0.1361707449,
-0.241450876,
-0.047243353,
-0.1864422709,
0.1147017404,
0.0427971147,
-0.3028404713,
0.1948675215,
0.2954317331,
0.6067340374,
0.1576177329,
0.4007615149,
-0.0138513185,
0.0997694358,
0.0633202791,
-0.2700613141,
-0.1527520567,
0.1926423013,
0.1350934356,
0.3505524397,
0.0757683963,
0.23201783,
-0.0688419193,
0.0777030289,
0.0588588268,
-0.124382481,
-0.1221506447,
0.1636989266,
-0.1173160747,
-0.2261743844,
-0.2556185126,
0.0282793846,
0.075281918,
0.0470450372,
-0.0877217576,
-0.2791980207,
0.6700654626,
-0.3341490626,
-0.2696869969,
-0.0509191565,
0.200196296,
0.2284437865,
-0.2409946173,
-0.6293932796,
-0.008996129,
0.4204948843,
0.0220114551,
-0.2528336048,
0.2136525959,
-0.0641365349,
0.1553047448,
-0.0634710044,
0.0211866889,
-0.1120163575,
-0.05637566,
0.0475043505,
-0.2333322614
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | > Hi, @Chenfei-Kang.
>
> I'm sorry, but I'm not able to reproduce your bug:
>
> ```python
> from datasets import load_dataset
>
> ds = load_dataset("glue", 'cola')
> ds
> ```
>
> ```
> DatasetDict({
> train: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 8551
> })
> validation: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1043
> })
> test: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1063
> })
> })
> ```
>
> Could you please give more details and environment info (platform, PyArrow version)?
Sorry to reply you so late.
platform: pycharm 2021 + anaconda with python 3.7
PyArrow version: 5.0.0
huggingface-hub: 0.0.16
datasets: 1.9.0
| ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 116 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
> Hi, @Chenfei-Kang.
>
> I'm sorry, but I'm not able to reproduce your bug:
>
> ```python
> from datasets import load_dataset
>
> ds = load_dataset("glue", 'cola')
> ds
> ```
>
> ```
> DatasetDict({
> train: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 8551
> })
> validation: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1043
> })
> test: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1063
> })
> })
> ```
>
> Could you please give more details and environment info (platform, PyArrow version)?
Sorry to reply you so late.
platform: pycharm 2021 + anaconda with python 3.7
PyArrow version: 5.0.0
huggingface-hub: 0.0.16
datasets: 1.9.0
| [
-0.0170860365,
-0.3240522742,
0.062121287,
0.2103665322,
0.3840116262,
-0.0155184865,
0.4157943428,
0.1785911918,
0.1879405528,
0.3116179407,
-0.2562709451,
0.2617365122,
-0.0900785625,
0.1555980742,
0.1346469671,
-0.1783229113,
-0.1780709177,
0.2362429202,
-0.1429380476,
-0.0610416979,
-0.3072666526,
0.0160210226,
-0.2765932083,
0.1563268006,
-0.3710358143,
-0.223229751,
-0.0727498308,
-0.0337859765,
-0.351670295,
-0.3736092448,
0.3502697051,
-0.0149401417,
0.1077513695,
0.3936695158,
-0.000109273,
0.0397488028,
0.5531899929,
0.0916723758,
-0.1215199456,
-0.4864456654,
0.0033010691,
-0.1535928994,
0.2640892863,
-0.2971878648,
-0.2491430044,
-0.1678689867,
-0.0046053641,
0.1546721607,
0.3977608681,
0.5068290234,
0.2735917866,
0.5179864764,
0.1557451636,
-0.3057217002,
0.2476197779,
0.1295627505,
-0.0830332711,
0.3645499945,
0.0868030339,
0.0324823633,
0.2476592064,
0.2256710976,
-0.2615950704,
-0.10203325,
0.2482002527,
0.0714487433,
0.0565818101,
-0.3359336555,
-0.0874414593,
0.3458361328,
0.2176506221,
-0.4307982028,
-0.2740110457,
-0.0156726241,
0.1589333117,
-0.2778738737,
0.2152643055,
0.1117753312,
-0.0614302941,
0.261010915,
-0.0477596149,
0.291643858,
-0.2724865377,
0.2264739275,
0.0332289934,
0.0998285487,
-0.0974353254,
0.0864830688,
0.3184733689,
-0.1978600472,
-0.0712480322,
-0.0744849741,
0.0765409619,
0.1997876167,
-0.2625720501,
-0.1569987535,
0.0412152112,
-0.0527563356,
0.247898519,
-0.0623121522,
0.0106980391,
-0.0784375966,
0.0866333991,
0.3945232332,
0.1457947493,
0.3695580065,
0.2746927738,
0.059642937,
0.1471259296,
0.2683899999,
-0.1179923266,
0.055073645,
-0.1812905073,
-0.0505756326,
0.2737022638,
0.1010778695,
0.4157115221,
-0.0123855323,
-0.3835295737,
-0.0340619162,
-0.249388501,
0.2141660154,
0.2170220613,
0.4983274341,
-0.1098524258,
-0.0065815779,
0.192077145,
0.1782710254,
-0.121160157,
-0.1304864287,
-0.2357184291,
0.3422303498,
-0.321511656,
-0.0617322698,
0.2265958786,
0.0308974497,
0.0039271601,
-0.0047290102,
0.0682611391,
-0.0418036692,
-0.0186939649,
-0.3479029834,
-0.0821479186,
0.2535484433,
0.0323423743,
-0.0685245618,
0.2264001966,
-0.410043925,
-0.0981174111,
0.1309782416,
-0.0746352896,
-0.1795986295,
-0.2304220349,
0.2343913913,
-0.2560872138,
-0.0213028584,
-0.0934342742,
0.0212542266,
0.1447509676,
0.1013657004,
0.1272419989,
-0.0190785397,
0.0178891569,
-0.2180712968,
0.1380719543,
0.3654919565,
-0.1001909301,
-0.3205660582,
0.0321521461,
-0.0025294889,
0.1171865165,
-0.0173706524,
0.0019333251,
0.2421698719,
-0.0305477679,
0.1668854356,
0.4985627234,
-0.6241477132,
-0.3442798853,
-0.2747379541,
-0.0806370825,
-0.0161462799,
0.0393293798,
-0.2286882401,
0.1914647222,
0.2106937617,
0.4453012347,
0.1527808607,
0.1522091627,
0.0167636648,
-0.2598268986,
-0.2841211557,
-0.1492304206,
0.1216639131,
0.0572228692,
-0.0611825027,
-0.1246785298,
-0.3315831721,
0.0439960137,
-0.146424368,
-0.0947786272,
-0.0285352655,
0.4802515805,
-0.0267939195,
-0.0334617384,
-0.5103313923,
-0.3110120893,
0.144410342,
-0.0827430114,
0.4963117838,
-0.2935870588,
-0.2401022315,
-0.3797980845,
0.0216784254,
-0.026030641,
-0.1073649749,
0.2608531117,
-0.0292996317,
-0.079390049,
0.203985557,
-0.1481571496,
0.306181401,
-0.062967293,
0.3361932039,
-0.0899122879,
0.2520772219,
-0.0519089177,
-0.4535895884,
0.0178124607,
0.3152451217,
0.4074851871,
0.018430274,
0.0400746725,
0.2059645206,
0.1200733185,
-0.251660794,
-0.3879703581,
-0.2059796005,
0.090895392,
-0.2052682042,
-0.1253311485,
-0.1193975806,
0.1875580251,
0.0432373881,
0.0816028789,
0.4845339656,
0.0002890676,
0.1447361559,
-0.0010888353,
0.2192266434,
0.046425119,
-0.2223508656,
-0.1943702698,
-0.1116543487,
0.109837532,
0.0302243531,
0.248070389,
0.0179757942,
-0.145416379,
0.0168013573,
0.6618236303,
0.0420249328,
0.2582576573,
-0.1182071865,
-0.3660909832,
0.2513479888,
0.1739430279,
0.0876058191,
0.3652844727,
0.2524148524,
-0.2956424057,
0.0845415741,
-0.1635934711,
0.0505569316,
0.0976490453,
-0.0679601878,
0.3684992194,
-0.0912532061,
0.3075383902,
0.0185328238,
-0.3090059161,
0.0744578391,
-0.0793070421,
0.106287472,
-0.3757321239,
0.1150496528,
-0.2569514513,
-0.1478514075,
-0.0088819992,
-0.1333729923,
0.0266573057,
-0.1974049062,
-0.0598684587,
0.358489424,
0.0893842056,
0.2826405466,
0.2069193423,
0.0192362219,
-0.0590616092,
-0.103048414,
-0.1551313549,
-0.1086173356,
-0.1170014739,
0.0823392123,
0.0588654093,
0.1915500015,
0.3331587315,
-0.3143271506,
0.0909603536,
0.1370238811,
-0.3026357591,
0.0858221576,
-0.1740435213,
0.2888208032,
0.26844877,
0.1589439958,
-0.1759039164,
-0.0624606088,
0.4340489805,
-0.3824962676,
-0.1924285591,
0.2827730477,
-0.141436249,
-0.0550835319,
-0.2623381913,
-0.2640990615,
-0.5197223425,
-0.2946314812,
0.255032599,
0.0227003247,
0.0717563629,
0.3472691774,
0.2340485901,
0.4523184597,
-0.3834222555,
-0.022939235,
-0.1441197097,
0.0412893891,
0.2728776932,
-0.0820256472,
-0.4259678125,
-0.0077680945,
-0.0855099559,
0.2539596856,
-0.1286981255,
-0.0568947159,
-0.44794783,
-0.1266303062,
0.3238246441,
0.0086144162,
-0.1531502455,
0.6029994488,
0.0156402402,
-0.1078105122,
-0.158334285,
-0.1767388582,
0.1045935154,
0.1382759064,
0.0056556463,
-0.0700705647,
0.2453282475,
-0.0265150443,
0.3515641987,
-0.0049933866,
-0.2051894665,
0.3471206427,
-0.3044427335,
0.3146962225,
-0.1218410432,
-0.5708716512,
-0.0727781355,
-0.0265238136,
0.0520669892,
-0.1330881119,
-0.2462659925,
-0.089776814,
-0.3285744786,
-0.1738543659,
-0.441508323,
-0.2324539572,
0.0581631213,
0.1306093633,
-0.0827689916,
0.0958866328,
0.0774861649,
-0.3568073213,
0.056310989,
-0.01321695,
0.2122405916,
0.0356146693,
-0.1878068894,
-0.4234542847,
-0.2692600787,
-0.3553895652,
0.3830409646,
0.0468405411,
0.011089284,
-0.0506008305,
-0.1024789885,
0.1410766095,
0.0076349005,
0.6806132197,
-0.0301303957,
-0.0055902605,
0.416000694,
0.141753301,
-0.623016715,
0.0706071407,
-0.3021711111,
0.0531920716,
0.1227648407,
0.3985317647,
-0.4662341177,
-0.1559692025,
0.3363058865,
-0.0372491591,
-0.0328229927,
-0.2179400027,
-0.2882823348,
-0.3978615105,
-0.2136867344,
0.1251842976,
0.14489007,
0.385992974,
-0.2250213921,
-0.1091162786,
-0.1240672022,
0.0948003158,
0.0340226665,
0.2724271715,
0.2362678796,
-0.2280844003,
-0.0954125822,
0.0113190133,
0.0838170201,
0.2514650226,
0.2685818672,
-0.0433206297,
-0.5514891148,
-0.1514344811,
0.1056522429,
0.21616368,
0.0786006898,
-0.135761708,
0.0079717524,
-0.0911872685,
0.133993119,
0.2157753706,
0.1181627959,
0.4902130365,
0.1698918194,
-0.2991672456,
-0.1917204559,
0.4521496296,
0.1290630996,
0.0447196811,
0.1472746134,
0.4835729003,
-0.1690778583,
0.2779712975,
-0.1196073443,
1.0848120451,
-0.003083365,
-0.005263852,
0.5609256029,
-0.106334433,
0.6737443209,
0.0900181979,
0.2337673903,
-0.3639943004,
-0.1940106452,
-0.0178168416,
-0.1334920675,
0.2924984097,
-0.0650961548,
-0.508783102,
0.1753668934,
-0.2362162471,
0.1639979184,
0.0437814295,
0.0470250919,
-0.1116011217,
-0.163441956,
-0.3191111088,
0.1553269327,
-0.0189954676,
0.2381697744,
-0.0293427594,
-0.1032171696,
-0.2884886265,
-0.2500368953,
-0.1799213141,
0.0486413985,
-0.4893499613,
-0.2644636929,
0.2028946877,
-0.1735015959,
-0.2620544434,
0.0350557901,
0.1736057401,
0.0271783564,
-0.2295172662,
0.0850423872,
-0.0116315931,
-0.0057277344,
-0.0612283722,
-0.120116815,
0.4516775012,
-0.1806232333,
-0.5559985638,
-0.0021973811,
0.0283422954,
0.1189503223,
0.3397733569,
0.0533939302,
-0.0720779896,
-0.3765560687,
-0.1956296712,
-0.0863559246,
0.2171399593,
-0.2849392891,
0.2158723176,
-0.0756184161,
-0.1748705655,
-0.0020164028,
-0.0216982681,
-0.0546835139,
0.018115839,
0.3995353878,
0.2500369847,
0.3563725948,
0.2536879778,
0.1453514993,
-0.127704531,
-0.278809607,
0.0454512835,
0.2644444108,
-0.5634872913,
0.1480279416,
0.2177879512,
-0.1283230633,
-0.0758903325,
0.4255403578,
0.0340969078,
0.0199873764,
-0.1081612483,
-0.1711101085,
-0.2474557608,
0.4519790411,
-0.0532883443,
-0.0533894338,
0.2934165895,
0.5443695784,
0.222872436,
0.007743774,
-0.4028415382,
0.0258474872,
-0.3943942785,
0.0516048893,
0.050623998,
-0.2735676765,
0.2741543055,
-0.0607874282,
0.2235944867,
0.2008979619,
-0.0648374856,
-0.329241842,
-0.1574600935,
0.1020702198,
0.0132467113,
0.1558354199,
0.1404901892,
0.042923294,
-0.1865489781,
-0.1436392665,
0.1646617353,
-0.0484871976,
-0.0519674793,
0.2371672839,
0.1691437662,
0.3118651211,
0.0495463312,
0.0909304097,
-0.0028735623,
-0.1294037402,
-0.081783019,
0.017882131,
0.0095178187,
0.0264174789,
-0.0565490276,
-0.1073946357,
0.1240907162,
0.1748038977,
0.0907403231,
-0.2451833338,
-0.3529209793,
-0.2803741992,
0.181710273,
0.153381139,
-0.154381454,
0.1704661846,
-0.0670955628,
0.2948552072,
-0.4210547507,
0.0239631943,
0.2194125056,
-0.0067798104,
0.1791749001,
0.1512842476,
-0.2732407451,
0.206310913,
-0.0471633226,
0.0283580236,
0.466655612,
0.0181071386,
0.0889502764,
0.2631125748,
-0.1317113638,
-0.0344261862,
0.4894235134,
0.1561266035,
0.2242721617,
-0.0069706654,
-0.0884023905,
0.2236964107,
-0.124009639,
0.0749217421,
0.2926057577,
-0.2168335766,
-0.0012596585,
0.1987000704,
0.0942937955,
-0.1275271326,
-0.3349511027,
0.5498443246,
-0.2395892441,
-0.2107710242,
-0.1777209342,
0.1950449347,
-0.2097447813,
-0.0012293905,
-0.1400180161,
-0.081048958,
-0.1268616915,
-0.4116222858,
0.0561530702,
-0.1514628381,
0.4862965047,
-0.1211126745,
-0.0871196389,
-0.2842108011,
-0.2175370306,
0.4087487459,
0.3050471246,
-0.1542929858,
0.1880834699,
0.0706385151,
0.1759785116,
-0.2439058572,
0.5857952237,
0.4205300212,
0.2032049596,
-0.0877041146,
-0.039412383,
-0.0987182036,
-0.3073502183,
0.0758495927,
0.1601037979,
0.3437224329,
0.2210116982,
0.002097249,
0.2533308864,
-0.2443264127,
0.2270523906,
-0.1037406772,
0.0440702476,
-0.4042607248,
0.3363031149,
-0.3260599375,
-0.2499151826,
-0.3251256645,
0.0070019811,
-0.4086143672,
0.1709913611,
0.340310961,
0.0040549971,
0.1531256437,
-0.3124785423,
0.1025998145,
-0.1237488911,
0.2872798145,
-0.0421429761,
0.299259603,
-0.1812501997,
0.0731785893,
-0.4249607921,
0.3959838748,
-0.1252932698,
-0.1122622415,
0.0873510242,
-0.1618831903,
-0.1488877535,
0.039984569,
0.0557341948,
0.4386816025,
0.0567035079,
-0.0590521656,
-0.5389716625,
-0.1532922089,
-0.1344294399,
-0.2273553461,
0.2009894252,
-0.2520208657,
0.0800778121,
-0.1442410648,
0.0637668669,
0.0295061097,
-0.0963593125,
0.1442124099,
0.0670827329,
0.6210795045,
0.1881041825,
0.3392411768,
-0.0430542827,
-0.0689967498,
0.0249926038,
-0.1740671843,
-0.2406359613,
0.2803043425,
0.2160283029,
0.2756661177,
0.0625708401,
0.0870544165,
-0.0475448966,
0.1085867584,
0.0825029984,
-0.2264687866,
-0.0616676509,
0.1197946072,
-0.0202589482,
-0.2373048961,
-0.1996346563,
0.0610712916,
0.0052937986,
0.0769679695,
-0.2243450582,
-0.2481002808,
0.7152535915,
-0.2563150227,
-0.2637998462,
0.0553935468,
0.2930931449,
0.1165039986,
-0.4328462481,
-0.7834490538,
0.0166445076,
0.2939422727,
0.0839263201,
-0.2240286171,
0.2948250771,
0.010084264,
0.0482181013,
-0.0746178031,
0.1352371722,
0.0407709666,
-0.0168590657,
0.0712472796,
-0.2007399946
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | - For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
- In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error? | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 69 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
- For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
- In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error? | [
-0.2277718037,
-0.3193504214,
0.0008598901,
0.3918525279,
0.3677239716,
0.0557457879,
0.3176339865,
0.1545283943,
0.1733449399,
0.2960277498,
-0.1426855922,
0.4552956223,
-0.07765688,
0.2298434228,
0.0493330918,
-0.1651719809,
-0.2105035484,
0.2611338496,
-0.1191705912,
0.0262278467,
-0.5092206001,
-0.0741478652,
-0.1640852988,
0.134992376,
-0.237754643,
-0.2719812691,
-0.1240944043,
0.0408254787,
-0.1921424866,
-0.283849895,
0.3645710647,
-0.0801880509,
0.2122618854,
0.5988924503,
-0.0001008489,
-0.1514544934,
0.4352060258,
0.0476003811,
-0.1254921257,
-0.352304399,
-0.2946640849,
-0.3847203255,
0.1898575127,
-0.3827018738,
-0.0743027031,
-0.0082013682,
0.0286095943,
-0.2426374704,
0.3481249809,
0.3484522104,
0.3506994247,
0.4159022868,
0.0833576992,
-0.2823811173,
0.1884768009,
0.0775726885,
-0.1048532501,
0.2966802418,
0.0623727031,
-0.0164798498,
0.3145343363,
0.1602043957,
-0.2830137312,
-0.0542993397,
0.2551214099,
0.0645875111,
-0.0053246021,
-0.3559245765,
0.0310366005,
0.3066705167,
0.4195716381,
-0.3946248889,
-0.1872212738,
0.0607764274,
0.1299086958,
-0.22349751,
0.1539729685,
-0.01155979,
-0.0064770244,
0.0658866614,
-0.0040365793,
0.1557923853,
-0.2368042618,
0.2183835506,
-0.166424349,
0.0901958123,
-0.212100327,
0.1070637107,
0.0670969784,
-0.1992393285,
0.0452293605,
-0.1839863956,
0.0351358876,
0.1096042544,
-0.2211264372,
-0.1452787817,
0.1299012303,
0.111167796,
0.1270103902,
-0.2455775142,
0.1168719083,
-0.0483122468,
-0.0236971248,
0.4071713388,
0.2398946732,
0.216065079,
0.1970724612,
0.1496332586,
0.2160288095,
0.044134587,
-0.1853793263,
-0.0519745387,
-0.1255760193,
-0.1014556289,
0.2814618647,
0.1962063015,
0.5696898699,
-0.0633770525,
-0.4451118112,
-0.0369893163,
-0.2070900351,
0.0923673809,
0.2541407645,
0.3783913255,
-0.1840860248,
0.1531827003,
0.2149182558,
0.0695832968,
-0.1426403075,
-0.2327833176,
-0.240268454,
0.3336755633,
-0.2726965845,
-0.2324481905,
0.0732235163,
0.0800085068,
-0.1016523391,
0.0515346117,
-0.0466056168,
0.0736264139,
0.1052563116,
-0.3829740286,
-0.1715995371,
0.1613505334,
0.1342369616,
-0.010921862,
0.3575490713,
-0.4132311344,
-0.1455423236,
0.1080864519,
-0.3179211915,
-0.0927534103,
-0.0903912932,
0.3212557137,
-0.2362896055,
-0.0792096481,
-0.1951908469,
-0.0047348533,
0.0772169456,
-0.2021207809,
0.024387829,
-0.1612924635,
0.009970881,
-0.4124752283,
0.0396713987,
0.5434522629,
-0.3702254891,
-0.1319314092,
-0.3560010791,
-0.0526705906,
0.3650828302,
-0.1617242545,
0.0869188607,
0.2049261779,
-0.1619558185,
-0.0783799216,
0.5953559279,
-0.3626015484,
-0.1942621022,
0.0556300916,
-0.0792514086,
-0.0580399707,
-0.067448765,
-0.014070427,
0.0950178504,
0.1139309332,
0.4095413685,
0.2211551964,
-0.0633311197,
-0.0278702565,
-0.195039928,
-0.1733903587,
0.1649027765,
0.0918371975,
0.1436721087,
0.1626262814,
0.0630827695,
-0.2037845254,
0.018493969,
-0.0397912487,
-0.0929174423,
-0.065241918,
0.656524837,
-0.0872238651,
-0.0788742751,
-0.5945641994,
-0.3253455758,
0.1684784591,
-0.0677351058,
0.2807235122,
-0.1447330713,
-0.1707683504,
-0.3664008975,
0.0677766353,
-0.0498286262,
0.0480884872,
0.3426538706,
0.1271567047,
-0.1998728514,
0.0451180562,
-0.1443469673,
0.1779201627,
-0.1498600096,
0.101995945,
-0.0057356078,
0.3032821417,
-0.0105572455,
-0.3550935388,
0.0437215194,
0.2375443876,
0.5392078757,
0.0301109329,
-0.0714497864,
0.2961717546,
0.0839735419,
-0.1378159523,
-0.1490658969,
-0.0828544348,
0.1191907302,
-0.2615096867,
0.0761328042,
0.1135108173,
0.3413479924,
-0.0806763768,
0.1379155517,
0.550291121,
0.0705427229,
0.218250677,
-0.0425800756,
0.2359929979,
-0.0458752215,
-0.0404753238,
-0.0913203955,
-0.1391233653,
0.1310136616,
0.0969331264,
0.1783952713,
-0.0640902817,
-0.1166950762,
0.0628791228,
0.567563653,
0.0985858142,
0.3846488595,
-0.0710383207,
-0.3002264202,
0.1548447907,
0.08901795,
0.2822793722,
0.445822984,
0.3082371056,
-0.1348170787,
0.0028446671,
-0.1054731458,
0.0909258872,
0.0695770383,
-0.0082739368,
0.2112076879,
-0.0183987543,
0.1782516241,
0.0799448043,
-0.1778932661,
-0.0452204682,
-0.2235445082,
0.2644327879,
-0.358817935,
0.1916419119,
-0.2675388753,
-0.1693611294,
0.0416819677,
-0.0662412792,
-0.1583895534,
-0.3439971805,
-0.2322415709,
0.0256401449,
0.1133053228,
0.1315737665,
0.1144248322,
0.1559721678,
0.0080656335,
0.0855935514,
-0.165648967,
-0.1026748642,
-0.1289934218,
0.1639402509,
0.1211263835,
0.2124069184,
0.4851676226,
-0.2281130552,
0.2450817376,
-0.0264439713,
-0.2279940248,
0.0638849884,
-0.096003674,
0.4924280047,
0.4533851445,
0.1707101166,
-0.0828901306,
-0.016710259,
0.3197821677,
-0.3656995595,
0.0297312289,
0.2110722661,
-0.2212311924,
0.1077205613,
-0.1586057544,
-0.1741411984,
-0.568441689,
-0.4111051261,
0.1035613716,
0.1680117399,
0.1657064706,
0.1624201089,
0.1247418374,
0.5334134698,
0.1375747323,
0.1933975667,
-0.1958464682,
-0.0487353466,
0.2836107016,
-0.1228597984,
-0.2586843967,
0.147084713,
-0.1050432324,
0.2065627873,
0.0155348405,
-0.1752417982,
-0.539342463,
-0.1731456816,
0.1546035558,
-0.0829331279,
0.0919004381,
0.2602024078,
0.115539968,
-0.139054507,
-0.2339773774,
-0.142865479,
-0.1661493182,
0.2557976842,
0.0672937036,
0.0401758626,
0.3397761583,
-0.1783676445,
0.1294479072,
0.0065672547,
-0.2346486151,
0.3460305035,
-0.262945503,
0.3489434123,
-0.124832049,
-0.5024337769,
-0.1444405019,
0.0058216453,
-0.0900055468,
-0.0492301136,
-0.1613157839,
-0.1666392684,
-0.3757923841,
-0.1235674843,
-0.4473454356,
-0.1732089221,
-0.0268354379,
0.2132813931,
0.019658491,
-0.0107807331,
0.1226411089,
-0.4682358503,
0.0489342958,
-0.0516468473,
0.2382137179,
0.0197486188,
-0.2432867587,
-0.2479407936,
-0.3090171516,
-0.1854938716,
0.4490617514,
-0.162989825,
0.0337659195,
-0.1722391993,
-0.0209150948,
0.0463816263,
-0.0175553933,
0.5029236078,
-0.3419145048,
0.0797720924,
0.4985003471,
0.1387617141,
-0.384028405,
0.1739848703,
-0.4070261121,
0.3183742762,
0.151731953,
0.2837770283,
-0.3160906434,
-0.0206109863,
0.2402315587,
0.130039081,
-0.1309812069,
-0.2083940804,
-0.1448208541,
-0.2342958152,
-0.1278313845,
0.0245008934,
-0.0037168041,
0.3006118834,
-0.131614536,
-0.1478493512,
-0.3589733243,
0.0226065814,
0.2575157583,
0.2095246762,
0.2955666482,
-0.0968764126,
-0.0735841841,
-0.0680018812,
0.0821266174,
0.1955123544,
0.2744945288,
0.0189453475,
-0.3915487528,
0.0630286038,
0.0565040708,
0.2511690259,
0.0781227276,
-0.1441670507,
-0.053579852,
-0.0800632909,
0.1943782419,
-0.0523577929,
0.1001055241,
0.2666033506,
0.0928933993,
-0.4500444531,
-0.3444150686,
0.388646245,
0.1911038756,
-0.0468109474,
0.2515254617,
0.2554998398,
-0.2587034106,
0.2411355525,
0.058511883,
1.0566797256,
0.0451303944,
-0.1790634841,
0.4914719462,
-0.1253182739,
0.5688887239,
0.0427969173,
0.0154064223,
-0.337897718,
-0.2656220496,
-0.051065024,
-0.1546157748,
0.3252924085,
-0.0990186334,
-0.6059661508,
0.2722358704,
-0.4187105,
-0.0113038346,
-0.0516175032,
-0.1450726241,
-0.1615753174,
-0.1305699348,
-0.4006145,
0.2759850621,
-0.1767885089,
0.1705227196,
-0.1539546549,
-0.0489456169,
0.0174541548,
-0.1243233979,
-0.1045433879,
-0.0068157874,
-0.435423851,
-0.2015479952,
-0.1179325581,
-0.1617845893,
0.0173738375,
0.1457436085,
0.1715210378,
0.1336825043,
-0.2375277728,
0.0901855826,
0.0600659251,
0.0691441298,
-0.0843932629,
0.035328012,
0.2427478582,
-0.0197915919,
-0.3155230284,
0.1725397706,
0.0347913466,
0.1483976543,
0.3645583391,
0.0996136367,
-0.0831792206,
-0.3884962499,
-0.144743681,
-0.0601997599,
0.2035061121,
-0.2569366097,
0.2733273506,
0.1267130524,
-0.0753657147,
0.1074778438,
-0.0244919546,
-0.0938686654,
-0.0563317128,
0.275046885,
0.3504139483,
0.2657757998,
0.0927114636,
0.201552406,
-0.2149725556,
-0.3738942146,
0.2654362321,
0.0770249814,
-0.2265850008,
0.23995094,
0.1424386948,
-0.0477565229,
-0.0740084276,
0.3281373382,
0.1060339436,
0.0496935174,
-0.1529468298,
-0.28883937,
-0.2707047164,
0.2582175434,
0.1262253672,
0.077632606,
-0.028472349,
0.2088868022,
0.1913178563,
-0.0492135063,
-0.4822713435,
0.0605647191,
-0.3836083114,
-0.087080583,
0.0551758185,
-0.0908132941,
0.1894113421,
-0.0005161762,
0.261056304,
0.0888259634,
-0.0810423493,
-0.3424241841,
-0.1005695611,
0.0964427441,
0.0030664727,
0.0352185592,
0.1485671252,
-0.1207062006,
-0.1707187444,
-0.1411679536,
0.0266074613,
0.0593882278,
-0.1587968171,
0.115049243,
0.1243264675,
0.2831473351,
0.0352999866,
0.2056676596,
0.0769664347,
-0.0229455717,
-0.0435422361,
0.0187972318,
0.0036229193,
-0.0640793666,
-0.0301971249,
0.0279701296,
0.1451294571,
0.1402733177,
0.1255752295,
-0.1008504033,
-0.2102199793,
0.0878475085,
0.1658075899,
0.1559680104,
-0.1419837624,
0.2770461738,
-0.0868308023,
0.3664442599,
-0.2744099498,
0.060805589,
0.1910201013,
-0.1125191599,
0.2319391668,
0.1514575779,
-0.3416774273,
0.2574728727,
-0.1605985314,
-0.0241745822,
0.3763528764,
-0.159505859,
0.1542953402,
0.2322443426,
-0.1036695838,
-0.0269344747,
0.391049087,
0.2250014096,
0.089335233,
0.069766745,
-0.1052327976,
0.1659093201,
-0.0354885869,
0.0229823627,
0.2391762137,
-0.4080982208,
0.2459842712,
0.2516361773,
-0.0291608796,
-0.0656305179,
-0.1686449051,
0.2762495875,
-0.5681786537,
-0.1020832807,
-0.3088049889,
0.0113965627,
-0.1732568145,
0.1290312558,
-0.128262341,
-0.1437102705,
-0.2699721456,
-0.3319655657,
0.0556729138,
-0.1790089905,
0.1954616159,
-0.1371624768,
0.1048785746,
-0.195263952,
-0.0611733384,
0.2457259595,
0.1937716305,
-0.2082417607,
-0.0402509272,
-0.0125764161,
0.2360839248,
-0.1725241095,
0.539488852,
0.3954845369,
0.3322072029,
-0.1617973447,
-0.027438987,
0.0731183589,
-0.2820371985,
-0.060315717,
0.048549097,
0.0340397879,
0.2409245074,
0.0659549609,
0.3405121565,
-0.319793433,
0.096768111,
-0.0659999028,
0.0167920403,
-0.3043794036,
0.4304432273,
-0.3063570559,
-0.1328264326,
-0.1199343503,
-0.1177723408,
-0.5592742562,
0.0602602661,
0.4006093442,
0.0640407801,
0.1086075976,
-0.1182627603,
0.1509963274,
-0.1716414392,
0.1180159897,
-0.0006212853,
0.3370814025,
-0.2615211904,
0.077384308,
-0.4892737567,
0.3647936285,
0.0276361238,
-0.1982378811,
0.0315374546,
-0.119094789,
-0.1470416486,
0.0097000664,
0.0401229076,
0.2380815893,
0.2386032939,
0.0062593785,
-0.5759981871,
-0.3410036266,
-0.1011375412,
-0.2159599066,
0.1086910814,
-0.2300250828,
-0.0447580777,
-0.1500620544,
0.1826708317,
-0.0428104177,
-0.2579146922,
0.0840296,
0.1191138774,
0.655023694,
0.1934751868,
0.3989141881,
-0.1208964288,
-0.0226044618,
0.157094568,
-0.3202403784,
-0.0817681849,
0.2735519707,
0.121013537,
0.200299114,
0.0415459275,
0.163148433,
-0.2030333877,
0.0024249032,
0.0274579674,
0.0585399009,
-0.1464444399,
0.3077628314,
-0.1645614207,
-0.2361534238,
-0.229144603,
0.1095359921,
0.0604570694,
0.1458995342,
-0.0198302567,
-0.1106985435,
0.6249819994,
-0.1692859828,
-0.2598848939,
-0.0570388585,
0.372446835,
0.0044079032,
-0.1203285679,
-0.4922210574,
0.0031385422,
0.4646419287,
-0.048813872,
-0.1663853824,
0.2039654553,
-0.1955645084,
-0.0195630491,
-0.0393959843,
0.1110217422,
-0.0188861638,
0.0038261265,
0.2579203248,
-0.1187548637
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | > * For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
> * In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error?
1. For the platform, here are the output:
- datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.7.10
- PyArrow version: 5.0.0
2. For the code and error:
```python
from datasets import load_dataset, load_metric
dataset = load_dataset("glue", "cola")
```
```python
Traceback (most recent call last):
....
....
File "my_file.py", line 2, in <module>
dataset = load_dataset("glue", "cola")
File "My environments\lib\site-packages\datasets\load.py", line 830, in load_dataset
**config_kwargs,
File "My environments\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder
**config_kwargs,
TypeError: 'NoneType' object is not callable
```
Thank you! | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 154 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
> * For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
> * In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error?
1. For the platform, here are the output:
- datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.7.10
- PyArrow version: 5.0.0
2. For the code and error:
```python
from datasets import load_dataset, load_metric
dataset = load_dataset("glue", "cola")
```
```python
Traceback (most recent call last):
....
....
File "my_file.py", line 2, in <module>
dataset = load_dataset("glue", "cola")
File "My environments\lib\site-packages\datasets\load.py", line 830, in load_dataset
**config_kwargs,
File "My environments\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder
**config_kwargs,
TypeError: 'NoneType' object is not callable
```
Thank you! | [
-0.2333928347,
-0.2121914029,
0.0151841417,
0.354036659,
0.4313125014,
0.0565461516,
0.4275262356,
0.1668834537,
0.1619591266,
0.2543879151,
-0.1491200328,
0.4838868082,
-0.0326275341,
0.2008447945,
0.135114789,
-0.18757689,
-0.178048864,
0.1836340278,
-0.2075743824,
0.0554908812,
-0.5303388834,
-0.0694578886,
-0.1311004758,
0.1142205745,
-0.1653044969,
-0.2441824824,
-0.1580199003,
0.0987922177,
-0.1795853972,
-0.3501780331,
0.4064701498,
-0.1164287627,
0.2196373194,
0.5620657206,
-0.0001015193,
-0.045920305,
0.4622377157,
0.0741887763,
-0.1826767027,
-0.3177575767,
-0.2952967882,
-0.3818570375,
0.1700715423,
-0.3912401199,
-0.0481695943,
-0.0371989273,
-0.0039750924,
-0.2519207001,
0.2980601788,
0.3795798421,
0.3288026452,
0.4538743794,
0.0911622643,
-0.248876363,
0.1904572248,
0.091002658,
-0.0621268898,
0.3023778796,
0.05389487,
-0.0567669086,
0.2113880366,
0.1328092217,
-0.3628786206,
-0.0556367971,
0.27193138,
0.0631390065,
0.0336344317,
-0.3873291016,
0.0748673975,
0.3000453711,
0.4482412934,
-0.3896302581,
-0.2469754368,
0.0235932469,
0.122348994,
-0.1994509846,
0.2123642862,
0.0509504229,
0.0008063614,
0.0616287068,
0.0196444131,
0.1935778409,
-0.1930176914,
0.2497529387,
-0.1554912329,
0.1598447263,
-0.1672743708,
0.1182281822,
0.0708542019,
-0.2033920288,
0.0497955382,
-0.2369980812,
0.0077663269,
0.1136212945,
-0.2622623742,
-0.0578033775,
0.1595872939,
0.1328142136,
0.0924718976,
-0.2031246126,
0.0840388685,
-0.0385783762,
0.0005316176,
0.373462677,
0.2657109201,
0.2719013393,
0.2630654573,
0.105349429,
0.3113081157,
0.096850872,
-0.1035400257,
0.0171602927,
-0.1741404831,
-0.1962878406,
0.2919623256,
0.2714717388,
0.5614542961,
-0.0071395189,
-0.4003364444,
-0.1129117534,
-0.1762717962,
0.0414780192,
0.1914938837,
0.3488390148,
-0.1659965217,
0.1930410862,
0.2003635168,
0.1248330474,
-0.2139802277,
-0.2602630854,
-0.2342294753,
0.2774359286,
-0.256262362,
-0.1992108077,
0.1157745048,
-0.0126312338,
-0.0741726682,
0.0112991631,
-0.1771455407,
0.1546334028,
0.1403734088,
-0.3297453225,
-0.1945307851,
0.1805401444,
0.0513511226,
0.0468541533,
0.3396642208,
-0.3767824769,
-0.144908905,
0.0857278258,
-0.2972789109,
-0.1406731457,
-0.155543834,
0.3137726486,
-0.2038107216,
-0.0596018098,
-0.2211027741,
-0.027177237,
0.1290351748,
-0.1592083275,
0.0224946178,
-0.1568118632,
-0.0343940258,
-0.4068642557,
0.0919898301,
0.6147865057,
-0.4071786404,
-0.1555483341,
-0.3654868603,
-0.1499287188,
0.3206854165,
-0.2192046046,
0.0420473889,
0.2053422034,
-0.1884396076,
-0.0670419633,
0.558726728,
-0.4109597504,
-0.2658073008,
0.0713305995,
-0.1287923604,
-0.0868590549,
0.0406508297,
-0.0299980231,
0.0722307339,
0.1137080789,
0.4100980163,
0.2751322091,
0.001114592,
0.0079013258,
-0.186445117,
-0.2357116938,
0.1991768032,
0.0649753213,
0.1384466588,
0.1023558378,
0.1406213641,
-0.1971792579,
0.0246631913,
-0.0487639084,
-0.0327244997,
-0.0577895939,
0.5558084249,
-0.0468547717,
-0.0448435917,
-0.5518351197,
-0.4227516353,
0.1897543669,
-0.0799525529,
0.3541661799,
-0.1335036755,
-0.1872806698,
-0.3264652789,
0.0583027229,
-0.1389629245,
-0.0200662278,
0.3176529109,
0.1545749307,
-0.1688735187,
0.0288683176,
-0.0564696081,
0.2119384408,
-0.0756309927,
0.0736122578,
-0.1429308057,
0.3080178201,
-0.0576368347,
-0.3339875042,
0.037768133,
0.2538016438,
0.5117611289,
-0.0004489832,
-0.0633197203,
0.324480325,
0.0866747275,
-0.0496541969,
-0.1650349349,
-0.0999804586,
0.1509414911,
-0.2289371341,
0.0971657112,
0.0872648954,
0.3168589175,
-0.0662048161,
0.0954948664,
0.47752285,
0.0889251232,
0.2869644761,
-0.0390482321,
0.2417568415,
-0.0411588363,
-0.0287828371,
-0.0849920288,
-0.1743536294,
0.0761679411,
0.1894837618,
0.2709220052,
-0.0320917591,
-0.0377045199,
0.0921960324,
0.5580120087,
0.0443214253,
0.3538883328,
-0.0804425478,
-0.3818503618,
0.0884136111,
0.1868630201,
0.2703931332,
0.4774661064,
0.3163057268,
-0.117727533,
-0.0135746766,
-0.0687377751,
0.0689718872,
0.0899053067,
0.0000689365,
0.2182747722,
0.0326350853,
0.2071537375,
0.0608283505,
-0.211371839,
-0.0529056489,
-0.1733762622,
0.2231470644,
-0.407775104,
0.1184413359,
-0.3216185868,
-0.1545062959,
-0.0203860719,
0.0009132102,
-0.1665669084,
-0.3700624704,
-0.2923040986,
0.0090755327,
0.0586136431,
0.1355309933,
0.0729430914,
0.0848089084,
0.0303804502,
0.0038108286,
-0.1432914436,
-0.1506636143,
-0.1972368509,
0.1309271157,
0.1724001467,
0.2035220265,
0.4579096437,
-0.17239362,
0.1496830136,
-0.0668232292,
-0.2592737079,
0.0691071153,
-0.0358920097,
0.5192120671,
0.4751574099,
0.1759486794,
0.0373363569,
-0.0723708421,
0.3917131722,
-0.3375652134,
-0.0363608152,
0.281317085,
-0.2262488604,
0.1912381351,
-0.1627744138,
-0.2709550261,
-0.5850610733,
-0.4314646721,
0.0900494978,
0.158193469,
0.1574171782,
0.229073137,
0.1376304328,
0.4989830554,
0.0554461516,
0.1736274511,
-0.1574212909,
-0.0517016985,
0.2869262695,
-0.1282684505,
-0.3188621998,
0.0627030134,
-0.1610588878,
0.2123719752,
0.0095065311,
-0.2091803402,
-0.5421626568,
-0.1937738359,
0.2488985211,
-0.0088548334,
0.1406644285,
0.2820861936,
0.1652371883,
-0.1718963832,
-0.2008979023,
-0.1451960802,
-0.0958749056,
0.2647383809,
0.00327852,
0.1268493235,
0.3415831327,
-0.1613710523,
0.1591747105,
0.021252282,
-0.1993085146,
0.4149999619,
-0.264028877,
0.3553537428,
-0.1553535461,
-0.5011109114,
-0.1316000372,
-0.0341553688,
0.0119616911,
-0.0257775001,
-0.14988482,
-0.1616334766,
-0.3645353913,
-0.1962911487,
-0.4402102828,
-0.1943258643,
-0.0451902337,
0.1996701658,
0.0204200819,
-0.0293067507,
0.1270927489,
-0.4808776677,
0.0326098837,
0.0426804163,
0.2218270898,
-0.0436264947,
-0.1767760366,
-0.2460243553,
-0.2401106954,
-0.2647053897,
0.4546616673,
-0.1586206108,
0.0367191769,
-0.1481581479,
-0.0604274049,
0.0030127317,
-0.0713323802,
0.5519666076,
-0.3454788923,
0.1679468751,
0.5127312541,
0.1982305795,
-0.3972997069,
0.1448309571,
-0.3467212915,
0.1978713572,
0.0658442229,
0.3129544854,
-0.3585752547,
-0.0375087671,
0.2515778542,
0.2019122541,
-0.1292981207,
-0.174051106,
-0.1447781473,
-0.2503760457,
-0.1316993237,
-0.0584860556,
-0.1246137023,
0.3594865799,
-0.1265375018,
-0.1583640575,
-0.3093513548,
-0.0301201604,
0.1789495051,
0.1840766668,
0.2802937329,
-0.0759281889,
-0.03676093,
-0.0464058332,
0.0716992468,
0.2319861203,
0.3442592621,
-0.0239477977,
-0.3606001437,
0.066776216,
0.0140343197,
0.2356525362,
0.0585266426,
-0.1843718439,
-0.1035961956,
-0.0533857346,
0.2002054602,
-0.1060455441,
0.0749845952,
0.3068715334,
0.0640614778,
-0.3982107937,
-0.3787679076,
0.4075769782,
0.1482773423,
-0.0558765456,
0.2646421194,
0.2493724525,
-0.3079307079,
0.2636660039,
0.0765034556,
0.9972298145,
0.0634363592,
-0.1427222937,
0.5291193128,
-0.099249877,
0.5708353519,
0.0216645896,
0.0737808719,
-0.3225642145,
-0.240317896,
-0.0621667281,
-0.1458811164,
0.363782227,
0.0177569762,
-0.5546256304,
0.2570112944,
-0.4040378928,
0.0338810086,
-0.0993949547,
-0.0540794656,
-0.1680081785,
-0.1555939168,
-0.4221652746,
0.2615644336,
-0.139160037,
0.1646667719,
-0.0964663923,
-0.0559898019,
0.000704892,
-0.1505106091,
-0.0544884354,
0.0260488763,
-0.4705292881,
-0.0928323418,
-0.1959892511,
-0.1402023733,
-0.0150174722,
0.2117722034,
0.1081973165,
0.0798803791,
-0.2208485156,
0.0747628957,
0.1003002003,
0.1113615781,
-0.0745938569,
0.0186238177,
0.2860432267,
-0.0365926623,
-0.3421167135,
0.1451579034,
-0.0346254632,
0.1750635505,
0.3781579733,
0.0789965987,
-0.058396101,
-0.3603260815,
-0.1006427109,
-0.0581626594,
0.2370613068,
-0.2568029761,
0.2513566613,
0.0545559525,
-0.0355337933,
0.0711978823,
-0.1054589003,
-0.0828102231,
-0.09730272,
0.3941633701,
0.2912923396,
0.2772477269,
0.2169929445,
0.2351005524,
-0.2244954556,
-0.3636666834,
0.288949877,
0.0990769789,
-0.3086125255,
0.1984175742,
0.2202886641,
-0.0483227968,
-0.0357771814,
0.3472391665,
0.011434515,
0.0498364456,
-0.1350132376,
-0.2807761431,
-0.2225388438,
0.2674213052,
0.090643242,
0.0844056904,
0.0283269957,
0.1621983647,
0.1774457097,
-0.0547243208,
-0.4514693916,
-0.0117364582,
-0.3375882506,
-0.0379745364,
0.1141252518,
-0.0688914359,
0.2117236704,
0.0469735265,
0.2668264806,
-0.0270953067,
-0.0954018086,
-0.3234717846,
-0.1007949486,
0.1007453278,
-0.0319782645,
-0.0041056424,
0.2243580818,
-0.1309218109,
-0.1626258194,
-0.1651719809,
0.1755300313,
0.0577327833,
-0.1902178526,
0.1038781255,
0.1569738239,
0.2834070325,
0.043025203,
0.2171772271,
-0.0266573727,
-0.0581224076,
-0.0226647519,
0.0391198136,
0.0156678483,
-0.0498563945,
-0.0160414465,
0.0438439399,
0.0941354707,
0.1154539436,
0.1023314595,
-0.1328702867,
-0.2397716939,
0.1010525674,
0.1707956195,
0.1672706157,
-0.116989553,
0.2498271167,
-0.085239999,
0.3432339132,
-0.3024182916,
0.0496236905,
0.1867100298,
-0.1545251161,
0.2260235697,
0.1156063527,
-0.3048251271,
0.224593997,
-0.1469651312,
-0.0125417598,
0.4131201208,
-0.1344490796,
0.214096278,
0.3211933672,
-0.0835604519,
-0.0166894719,
0.3776884377,
0.1835822016,
0.1086515486,
0.0316773988,
-0.0579560585,
0.147086665,
-0.0196429007,
0.0855417699,
0.2414098233,
-0.505023241,
0.2710330486,
0.2405997813,
-0.0243103206,
-0.1121373475,
-0.1639894098,
0.3712480664,
-0.5745440722,
-0.0636712611,
-0.3064313531,
0.0594135523,
-0.1685568243,
0.115952462,
-0.1114946008,
-0.1400386393,
-0.256551981,
-0.2784866095,
0.0633288026,
-0.2414884269,
0.2439765334,
-0.1118729711,
0.0211273134,
-0.2714127302,
-0.0401525497,
0.2217799425,
0.1276277304,
-0.1941972077,
0.0097097941,
0.0506010614,
0.2041798383,
-0.1806844175,
0.5522728562,
0.3988935351,
0.3800224662,
-0.1354632825,
-0.0664788634,
0.1149361879,
-0.2638258636,
-0.0904529095,
0.010561645,
-0.036264196,
0.2590774,
0.104394719,
0.3203140497,
-0.3022007942,
-0.0068908087,
-0.019003205,
0.0057309493,
-0.2694805264,
0.3833440542,
-0.2941299677,
-0.1339459717,
-0.1130260527,
-0.0764847994,
-0.5723279119,
0.0453011915,
0.4337009192,
0.0553496443,
0.1160497442,
-0.1790064275,
0.1447363198,
-0.1381018162,
0.1920722276,
-0.0137897581,
0.2897504866,
-0.2669523358,
0.0805812478,
-0.524718821,
0.3150632381,
0.0391138121,
-0.1924295276,
-0.0284715332,
-0.1205903888,
-0.1418035924,
0.0033039683,
0.0252629519,
0.27408427,
0.2506787777,
0.0156387296,
-0.5449014306,
-0.2936491668,
-0.0416167863,
-0.1840640157,
0.0557726696,
-0.3411945403,
-0.0023587178,
-0.174048394,
0.1497214139,
0.0006316528,
-0.249928534,
0.1440656632,
0.0977681726,
0.6802560687,
0.1865137666,
0.4030939937,
-0.0869980901,
-0.0436692163,
0.0363890976,
-0.2932220101,
-0.1100364476,
0.234005779,
0.0753232315,
0.2027740479,
0.0346168429,
0.1456870884,
-0.2451830953,
0.0854275823,
0.0174438283,
0.1328040957,
-0.147585243,
0.310908258,
-0.150909394,
-0.2978287339,
-0.1912624836,
0.0007489193,
0.105097726,
0.1029955149,
-0.0694364309,
-0.2385255396,
0.5177173018,
-0.2855586708,
-0.1767609119,
-0.0903273299,
0.352011919,
-0.0403811149,
-0.1172365993,
-0.506731391,
0.0546451211,
0.4887305796,
-0.0022291904,
-0.1500932127,
0.163882792,
-0.2067312002,
0.0215015858,
-0.0706167296,
0.0114975777,
-0.0409059785,
0.0008291677,
0.1980814636,
-0.1320044696
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem. | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 20 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem. | [
-0.2608939707,
-0.2007062733,
0.0659998506,
0.400195837,
0.4645991623,
0.0115251243,
0.3240973055,
0.0941316262,
0.1896000057,
0.3001817167,
-0.284909308,
0.46675843,
-0.0366439708,
0.1668578088,
0.0777646005,
-0.1253730357,
-0.2606467903,
0.2636677623,
-0.1777468771,
0.0613666475,
-0.523363173,
0.023198599,
-0.2373638302,
0.0858906582,
-0.276800096,
-0.1533991694,
-0.0281503759,
0.0797132999,
-0.2462173998,
-0.2805505395,
0.4611608684,
-0.0159624666,
0.1640478671,
0.5104132295,
-0.000102348,
-0.0184574723,
0.5836997628,
0.0530033186,
-0.0761519223,
-0.4211901128,
-0.225562796,
-0.3977998197,
0.2870039344,
-0.3548146486,
-0.1275417209,
0.0055778101,
0.0405133069,
-0.1819052547,
0.2621394992,
0.3204342425,
0.3242149949,
0.529689908,
0.0114420429,
-0.3599713147,
0.19651182,
0.080829896,
-0.0636898279,
0.3710537851,
0.0265842639,
-0.0474931672,
0.2439642251,
0.0870307088,
-0.3353534639,
0.0527607724,
0.2847361565,
0.0382547714,
0.0095303971,
-0.2701701224,
0.0964758843,
0.3694059253,
0.3855828345,
-0.3826203942,
-0.1514431387,
0.1750091761,
0.2239647806,
-0.2032710165,
0.2116490602,
0.046877481,
0.0163051747,
0.0907447413,
-0.0130722485,
0.1712201387,
-0.2445575744,
0.2749374509,
-0.2020063698,
0.1065497547,
-0.1935496777,
0.1447966099,
0.0849972665,
-0.1188600287,
0.076334089,
-0.1345976293,
-0.0619973019,
0.0890903398,
-0.2083805352,
0.0349295586,
0.1152057499,
0.1535796374,
0.1636117101,
-0.2843678296,
0.1018848717,
-0.0238336027,
0.0397983156,
0.4501174688,
0.2414611429,
0.1897559315,
0.2724780142,
0.0886931717,
0.2660124898,
0.0667874962,
-0.2417135686,
-0.0120893149,
-0.1543583572,
-0.0610720515,
0.2427948713,
0.141184777,
0.5124644041,
0.0189153478,
-0.4501630664,
-0.1742379665,
-0.1721327901,
0.0913003609,
0.2716416121,
0.427763015,
-0.1526401043,
0.0820784569,
0.1332415938,
0.1743282676,
-0.1884509027,
-0.2918043435,
-0.3183253706,
0.3539676666,
-0.2528479397,
-0.2349546403,
0.1911381483,
0.0579656847,
-0.0449790694,
0.0134670697,
-0.095847711,
0.1027006507,
0.088668637,
-0.2908605933,
-0.2310649753,
0.3132710457,
0.2443050146,
-0.0628331527,
0.2800610065,
-0.4668277204,
-0.0915967897,
0.2292029709,
-0.2898916304,
-0.1671738327,
-0.0732441396,
0.2667024732,
-0.3390545249,
-0.0697352737,
-0.2441666722,
0.0466723293,
0.0489579961,
-0.1566347033,
-0.1024088636,
-0.0962614268,
-0.1126569733,
-0.4234249294,
0.0446181744,
0.5165780783,
-0.3751865029,
-0.1992407143,
-0.3078097701,
-0.1091820896,
0.3522841036,
-0.1473015696,
0.014566876,
0.0629001483,
-0.1706567705,
-0.0006858185,
0.6008650064,
-0.3847205639,
-0.2815135717,
0.0563008562,
-0.0371870995,
-0.1165538281,
-0.0517221019,
-0.0470440798,
0.0718875453,
0.1356430054,
0.4128213823,
0.244653374,
0.0493589267,
-0.0324675031,
-0.2109588683,
-0.2381095588,
0.1280456483,
0.1516580582,
0.1272704899,
0.1630408466,
0.0712501183,
-0.2506301999,
-0.0557165593,
-0.0061882641,
-0.1022448689,
-0.0301640648,
0.5365024209,
-0.1599624604,
-0.0399642512,
-0.5328828096,
-0.3950176537,
0.2330814749,
-0.0779281259,
0.2541696429,
-0.1054887474,
-0.1700355113,
-0.3529816866,
0.1019509658,
-0.0170239545,
0.0607615709,
0.2853279412,
0.0909615308,
-0.2011490464,
0.1454880536,
-0.0809035301,
0.1637727171,
-0.087349765,
0.0512319021,
0.0335051864,
0.2916672826,
0.074778311,
-0.3356171548,
0.0352952406,
0.1897848248,
0.4574479163,
-0.0104596857,
-0.0672703534,
0.2640904486,
0.0708924383,
-0.0788057446,
-0.2070860565,
-0.053817898,
0.0879927427,
-0.3130641282,
-0.030365875,
0.0379849188,
0.3187096119,
-0.0943739638,
0.0625384003,
0.60389328,
0.0668435246,
0.1744621694,
-0.0730603412,
0.2714181244,
0.0653242245,
-0.0385557301,
-0.1490772516,
-0.1286281198,
0.045984745,
0.1176182479,
0.2486369312,
0.0061036889,
-0.0880213529,
-0.0231885426,
0.5769151449,
0.0913833827,
0.360791117,
-0.1375174522,
-0.4204134941,
0.1137950793,
0.0370062441,
0.2525542676,
0.5032668114,
0.3323158324,
-0.106863752,
0.0236292649,
-0.0571722686,
0.040472731,
0.1032920927,
0.0494470224,
0.2328972369,
-0.0000239713,
0.3057211637,
-0.0209418833,
-0.3462260664,
0.1613913476,
-0.0538480021,
0.1842064112,
-0.3760870695,
0.1845390052,
-0.2747033238,
-0.0767575428,
0.1425513178,
-0.1027246565,
-0.1250049919,
-0.3286288381,
-0.2664068639,
0.1081376821,
0.1210905612,
0.1938207597,
0.1422474086,
0.07632,
0.0087453499,
-0.0255288649,
-0.1826612949,
-0.1326550692,
-0.1483922005,
0.0880741403,
0.1653356701,
0.1819407791,
0.4119825661,
-0.1496376097,
0.2284884453,
-0.0511269607,
-0.2455981225,
0.1001776606,
-0.0573290661,
0.5299284458,
0.408608675,
0.0602922142,
-0.1410641521,
0.1004513651,
0.4188910425,
-0.4658014476,
0.0264789313,
0.363583684,
-0.3070642948,
0.0837265402,
-0.2518776357,
-0.1060988158,
-0.5478299856,
-0.4280378222,
0.0683306605,
0.0958197415,
0.0449771434,
0.172417298,
0.119117707,
0.4440963268,
0.1123927534,
0.0157599896,
-0.2330420762,
-0.085408181,
0.3311127722,
-0.169325158,
-0.3608908653,
0.204248786,
-0.13234815,
0.254873842,
0.0285871103,
-0.1609788239,
-0.5243912339,
-0.1556177586,
0.2053532153,
-0.0051885177,
-0.0110914437,
0.2912257314,
0.0402859747,
-0.1367864907,
-0.2726748586,
-0.1413016021,
-0.0488151647,
0.2352695167,
-0.0683874488,
0.0471842289,
0.2825388312,
-0.1223014444,
0.143637836,
-0.1094391719,
-0.1853010803,
0.4059677422,
-0.3138793707,
0.3742717505,
-0.1514654905,
-0.4665457308,
-0.2108909041,
0.0278711319,
0.0422419608,
0.0484343804,
-0.1829000711,
-0.2429658175,
-0.3873914182,
-0.1840576231,
-0.3091233373,
-0.1176473126,
-0.0448230244,
0.1869137883,
-0.0344656929,
0.1282409579,
0.1506692767,
-0.4099554121,
-0.0440215059,
-0.0145164058,
0.1907590032,
0.00033338,
-0.1874932349,
-0.1343231648,
-0.239413783,
-0.3349730372,
0.4665147066,
-0.1304174811,
-0.0214519519,
-0.104810752,
-0.0228137821,
0.1187150776,
-0.0458018295,
0.5801779032,
-0.2944788635,
0.1719287932,
0.5542984605,
0.0904799476,
-0.551659286,
0.1077314913,
-0.331844449,
0.3005692661,
0.1331282109,
0.2810215354,
-0.3470427394,
-0.0193873215,
0.2158619314,
0.0685858876,
-0.115108788,
-0.2407926917,
-0.2334079742,
-0.2933898568,
-0.0492700823,
-0.0665730238,
-0.0586116724,
0.4225765467,
-0.1354665011,
-0.1273060739,
-0.4123404026,
-0.0367354043,
0.1656019241,
0.1939740181,
0.3422515988,
-0.1359106898,
-0.0259815566,
-0.0587921478,
0.0830498338,
0.1330540478,
0.3568015099,
0.0888103098,
-0.4469740987,
0.1390764117,
0.0736013874,
0.2392613739,
0.0024293587,
-0.2127712965,
-0.1564222425,
-0.0973183587,
0.1256740987,
0.0694905892,
0.1411264241,
0.2321472615,
0.0137667991,
-0.3646834791,
-0.23113361,
0.4325917065,
0.1745892465,
0.0250270218,
0.2719004154,
0.2346458435,
-0.2254340649,
0.2237932384,
-0.0649300143,
0.9164005518,
-0.0016310364,
-0.1102361977,
0.6165454388,
-0.0979903564,
0.5674658418,
0.0650797188,
0.06793347,
-0.3704263568,
-0.2879860103,
-0.0052314736,
-0.145375669,
0.2548451424,
-0.0493532084,
-0.5216739178,
0.2098066211,
-0.3250361085,
0.0563873984,
-0.0338758603,
-0.0862725526,
-0.0688718185,
-0.1625674814,
-0.3169092834,
0.2203887105,
-0.1160021424,
0.165247947,
-0.0905515254,
-0.0729374886,
0.0201875493,
-0.0793529898,
-0.085989736,
0.051867485,
-0.4105742574,
-0.1025811732,
0.008886178,
-0.1489423066,
-0.049235858,
0.1097770333,
0.0439090356,
0.0238105133,
-0.3483444452,
0.2360745966,
0.0525085554,
0.0174740031,
-0.0742552504,
0.0752041936,
0.2092092037,
-0.0593719892,
-0.2678528726,
0.1072411239,
-0.0471313968,
0.167549476,
0.3512033224,
0.1351453364,
-0.1057784781,
-0.3018783331,
-0.2150234878,
-0.138738066,
0.2945331037,
-0.2950991988,
0.2529355288,
0.0883855373,
-0.112839818,
0.0237116516,
0.0370560735,
-0.1807859242,
-0.0391987674,
0.4054491222,
0.331543684,
0.3266710639,
0.1742116511,
0.2139462233,
-0.1330502927,
-0.3562078476,
0.2356428504,
0.0744931847,
-0.3519968987,
0.3284548223,
0.2739298046,
-0.0456543863,
0.0271228477,
0.4190956056,
0.0177648626,
-0.0406256989,
-0.1278359294,
-0.2977451682,
-0.2052851319,
0.2201708853,
0.0076372889,
-0.0133153033,
0.1036313623,
0.2353743464,
0.1969152093,
-0.0753163695,
-0.4256238341,
0.118460834,
-0.3420971036,
-0.1064499319,
0.035814371,
-0.0839427412,
0.1991973817,
0.0943031162,
0.2200211883,
0.0412442908,
-0.1173670217,
-0.3198771477,
-0.1708855927,
0.1157299876,
-0.060352385,
0.0984602273,
0.1912233233,
-0.0978017077,
-0.3399778306,
-0.1138170585,
0.0863472745,
0.0186831132,
-0.2485669851,
0.038939558,
0.1841406226,
0.2960724831,
0.0243149623,
0.2214776725,
0.0648288354,
-0.0516981333,
-0.1667805314,
0.007017191,
0.073860921,
-0.0377257988,
0.0453984924,
-0.0242693834,
0.1464239061,
0.1258281916,
0.1472238004,
-0.1821621805,
-0.1376379132,
-0.0106541142,
0.162267819,
0.1054019481,
-0.1678972691,
0.3169000745,
-0.1511396915,
0.3191595376,
-0.3713178635,
-0.01812624,
0.2591812611,
-0.0037932061,
0.2337245345,
0.0487343706,
-0.2177034467,
0.2784507573,
-0.1001747772,
-0.0086977035,
0.4537390172,
-0.1244417429,
0.0648772717,
0.2385078818,
-0.1500530094,
0.067467615,
0.4041025639,
0.2606098056,
0.0971259177,
0.1352505535,
-0.0299772732,
0.1296593249,
-0.0773410648,
0.0511166416,
0.1697780341,
-0.5580496788,
0.1861063689,
0.1685795486,
0.0023656413,
-0.079158783,
-0.2323796898,
0.4102465212,
-0.4937512279,
-0.0605659112,
-0.3794311881,
0.0643697754,
-0.1630285084,
-0.001375936,
-0.1433873624,
-0.1149193123,
-0.1717611849,
-0.2528253198,
0.0416352823,
-0.0990594476,
0.2412426174,
-0.1137953922,
0.104686588,
-0.1930139512,
-0.039943181,
0.2786888182,
0.0477991551,
-0.1555452347,
0.0398127958,
-0.0601671226,
0.25269261,
-0.1166726053,
0.4984672368,
0.4282828569,
0.2650190294,
-0.2017351985,
-0.1184141189,
0.0438960791,
-0.2949292064,
-0.1482041925,
0.144887507,
0.1621519923,
0.1861359477,
0.0748437122,
0.2893257141,
-0.284999162,
0.130823642,
-0.003674889,
-0.0078190863,
-0.2805201113,
0.3590801954,
-0.3625503182,
-0.1178257018,
-0.1554855704,
-0.1072710901,
-0.479308784,
0.0987949073,
0.3647945821,
0.1218606234,
0.1348398328,
-0.1550242007,
0.1431169361,
-0.2600434721,
0.2424016297,
-0.0232323259,
0.3653591275,
-0.2398388982,
0.0257781595,
-0.5430265069,
0.4481771588,
0.0129254591,
-0.0782644227,
0.0848242193,
-0.1217020601,
-0.1154602543,
-0.0344451778,
-0.0048421919,
0.3630886674,
0.2708312869,
-0.0477744862,
-0.5591888428,
-0.3568102419,
-0.0946182683,
-0.2772192657,
0.046137698,
-0.2907798886,
-0.0501830727,
-0.1604976058,
0.132650882,
-0.0683540106,
-0.2736572027,
0.1152130738,
0.2708913982,
0.6669095755,
0.2045689821,
0.4079796672,
-0.087473087,
0.0932617038,
0.0733774453,
-0.2984469533,
-0.075420171,
0.190566808,
0.1010605022,
0.136260882,
0.0150282159,
0.1734220684,
-0.1472680569,
-0.0376885794,
-0.0404812992,
0.0578767695,
-0.2393030971,
0.3138108552,
-0.289704442,
-0.1945981681,
-0.2668878734,
0.0952340215,
0.0843105987,
0.109661743,
0.0218844712,
-0.0939405337,
0.6466469765,
-0.2551370263,
-0.3148621917,
0.0029653795,
0.2552379668,
0.034093529,
-0.1752846837,
-0.4145068526,
0.0628260672,
0.4432112277,
-0.054986354,
-0.2183594108,
0.2427143455,
-0.1774554998,
0.0503366664,
-0.1022100076,
0.0111542828,
0.0516406223,
-0.0675836876,
0.1296827197,
-0.0830132216
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | One naive question: do you have internet access from the machine where you execute the code? | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 16 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
One naive question: do you have internet access from the machine where you execute the code? | [
-0.2466747165,
-0.216607213,
-0.0038837157,
0.3586862981,
0.4009476304,
0.0355367959,
0.3025213778,
0.1521889865,
0.1650360674,
0.3566101789,
-0.1779199541,
0.4452128112,
-0.0382571146,
0.1990445554,
0.0816195309,
-0.0899615139,
-0.2033717483,
0.2447065115,
-0.1842229366,
0.010521777,
-0.4728770256,
-0.0185201094,
-0.1821441948,
0.0199328475,
-0.2480739355,
-0.2002854496,
-0.116398558,
0.064500697,
-0.214898631,
-0.2530292273,
0.3632110953,
0.0450635217,
0.1123680919,
0.5467213988,
-0.0001019842,
-0.086210236,
0.4975405037,
0.0762402564,
-0.1133385301,
-0.222715348,
-0.2704130411,
-0.3431524038,
0.1823254377,
-0.4260804951,
-0.091654405,
0.0288907029,
0.0123816524,
-0.248190999,
0.3053151071,
0.3072139919,
0.3397085071,
0.4426212013,
-0.0190168247,
-0.3322892785,
0.2162290812,
0.042104397,
-0.0323109291,
0.3622152507,
0.0633599758,
-0.0537312143,
0.1767417789,
0.182411164,
-0.2867753804,
-0.0029554125,
0.2504887283,
0.0876016989,
-0.0245358683,
-0.2595614791,
0.1022055671,
0.2668828368,
0.2856885195,
-0.4520846009,
-0.1245521903,
0.1114802212,
0.1043581069,
-0.2367099524,
0.1430764198,
-0.0036110617,
-0.0197006837,
0.1060362011,
-0.0351591259,
0.1336912513,
-0.2316649407,
0.2396647334,
-0.2091167867,
0.1492933035,
-0.1894277036,
0.0967107415,
0.0752302334,
-0.0852818862,
0.0532207265,
-0.1713411957,
0.0210762136,
0.0105691925,
-0.1507950425,
-0.0472185723,
0.1830176562,
0.1402940154,
0.1534053385,
-0.2545788586,
0.1078878343,
-0.0058755167,
0.1186241582,
0.4159374833,
0.1543829888,
0.2415637374,
0.215063557,
0.0880804062,
0.2187137306,
0.1302515864,
-0.2568059266,
-0.0115337223,
-0.0923354253,
-0.0363530666,
0.3084874749,
0.1605718136,
0.4978731275,
0.014809683,
-0.4372945726,
-0.0482417718,
-0.2314785868,
0.1063998789,
0.2851623595,
0.3828614354,
-0.2197889835,
0.0280768722,
0.1954131424,
0.1463474929,
-0.1679080427,
-0.2896849811,
-0.3228366077,
0.3451817036,
-0.3253238797,
-0.1996293813,
0.1255361438,
0.0956025571,
-0.0785863698,
0.0480369106,
-0.0357118882,
0.0553012341,
0.0763485208,
-0.2473662794,
-0.1706801206,
0.185605377,
0.2096799761,
-0.1042111665,
0.3234434724,
-0.4836683869,
-0.1027236134,
0.1058213115,
-0.2070775926,
-0.0896054283,
-0.0359199978,
0.318017751,
-0.3513983786,
-0.1008676291,
-0.1515368968,
0.1008074135,
0.0612458549,
-0.1549363285,
0.0268286467,
-0.08387959,
-0.0460205413,
-0.4438782632,
0.0987587348,
0.5773770213,
-0.3923663497,
-0.1583534479,
-0.3149742484,
-0.0410093702,
0.3569570482,
-0.2316164672,
0.1328967959,
0.1612988412,
-0.1505949944,
0.0307373405,
0.5494579673,
-0.3594249487,
-0.2982894182,
-0.0194497369,
-0.1195068508,
-0.0845604837,
-0.0080688894,
-0.1045467556,
0.075864777,
0.1502963305,
0.4117964208,
0.2450774014,
-0.0244921148,
-0.0403470732,
-0.2356397212,
-0.2162142098,
0.0301531181,
0.1072424501,
0.1855029762,
0.1609572023,
0.1086663529,
-0.2254883051,
0.0150828268,
-0.0165604614,
-0.0678271428,
-0.0664630383,
0.5562682152,
-0.1198011488,
-0.1030110717,
-0.5486019254,
-0.3364982009,
0.2137775868,
-0.0644095242,
0.258382082,
-0.1622747332,
-0.1771241724,
-0.4169960916,
0.117374815,
-0.059169326,
0.0415955335,
0.3479427695,
0.1584894657,
-0.1316381246,
0.1201645657,
-0.0389239751,
0.1554773152,
-0.0975590497,
0.061542213,
0.0028669666,
0.3624255061,
0.0288161058,
-0.3402500749,
0.0125433132,
0.2390863299,
0.492028594,
0.025128603,
-0.0366600715,
0.342571348,
0.0153981298,
-0.0589251332,
-0.0713607147,
0.0129816011,
0.0355377495,
-0.3102555275,
0.0903075114,
0.0740947276,
0.274333328,
-0.0501495488,
0.0455591232,
0.5526733398,
0.0639083236,
0.1631186903,
-0.0774781555,
0.274751991,
-0.1043331027,
-0.0652055368,
-0.1591197699,
-0.1482453942,
0.1165028065,
0.0529981032,
0.1941262633,
-0.0445725545,
-0.1024119481,
0.0711863562,
0.6148299575,
0.0744789541,
0.4100615978,
-0.1350680143,
-0.3626484275,
0.1363147497,
0.0632822365,
0.2627355456,
0.437394917,
0.3606953025,
-0.0552526973,
0.0725061148,
-0.0956001505,
0.0463586375,
0.0818471238,
0.0780009329,
0.1710066497,
-0.0235595554,
0.2648814023,
0.0000485238,
-0.3021973968,
0.0393877923,
-0.2115721703,
0.1999683976,
-0.3442276418,
0.2703233659,
-0.2761572301,
-0.1083707362,
0.0665706992,
-0.134164542,
-0.1119984388,
-0.397225827,
-0.1896920204,
0.0495735593,
0.0846981779,
0.1596635431,
0.1331481636,
0.1780960411,
0.0435848236,
-0.0506396219,
-0.2169364393,
-0.0929437876,
-0.1491836905,
0.1245200858,
0.1127888262,
0.2195498049,
0.4563967586,
-0.2264527977,
0.2653894424,
0.0405264944,
-0.2521407604,
0.1091041788,
-0.1113009453,
0.5382028818,
0.4217019081,
0.0849711299,
-0.1375482082,
0.0479234867,
0.4025656879,
-0.3987689912,
0.0345611572,
0.2760671675,
-0.1733169109,
0.0993671939,
-0.2214979231,
-0.1091302559,
-0.4937295914,
-0.4305159152,
0.0535356998,
0.09401647,
0.0907850862,
0.166135788,
0.1647698283,
0.5161485672,
0.0903602242,
0.0853420496,
-0.2309447527,
-0.0928332955,
0.2652716935,
-0.1356294155,
-0.3170880973,
0.1164374948,
-0.1327293664,
0.1882433295,
0.0346634798,
-0.2173748463,
-0.5696405768,
-0.176106751,
0.2179041505,
-0.0343910865,
0.0933206305,
0.269998759,
0.0949119329,
-0.1569222808,
-0.2845882773,
-0.1625178754,
-0.091495961,
0.1541404724,
-0.0318300463,
-0.0249703601,
0.2786459923,
-0.1161086708,
0.1320553124,
-0.0665606186,
-0.2075436115,
0.3825693727,
-0.3480912149,
0.3984665573,
-0.0996408761,
-0.5201002955,
-0.1736069322,
0.0353285372,
-0.0609326884,
0.0489658192,
-0.1714958847,
-0.2166231126,
-0.3766877353,
-0.0562464893,
-0.362701416,
-0.1873271763,
-0.0391592756,
0.1560377926,
-0.036883533,
0.0749150217,
0.1888152063,
-0.4491064847,
0.0570054129,
-0.0169513859,
0.1537909061,
-0.0894058198,
-0.1648555696,
-0.1185743511,
-0.2468069792,
-0.2861299217,
0.4680054486,
-0.1499367058,
-0.056393154,
-0.2046155035,
-0.0660795718,
0.090541929,
-0.0358794853,
0.5689524412,
-0.3503736854,
0.1897080988,
0.4768278003,
0.1251966059,
-0.4568900466,
0.1350765675,
-0.4355597198,
0.2517587245,
0.2185433805,
0.2802274823,
-0.3060500622,
0.0191352777,
0.2399569154,
0.1026438549,
-0.1106583327,
-0.2221297622,
-0.221788466,
-0.3183930516,
-0.0803544819,
0.0420139432,
-0.0252926461,
0.4193621576,
-0.098345384,
-0.1282832623,
-0.3264185488,
-0.0256801173,
0.2025929987,
0.2596052587,
0.2894296944,
-0.1231494546,
-0.1225852817,
-0.0823644698,
0.0792323947,
0.1359491646,
0.3235683143,
0.079357177,
-0.344630003,
0.0907276273,
0.0888889506,
0.2781876624,
0.0573619008,
-0.17625916,
-0.144050777,
-0.0869550705,
0.2175623775,
0.0061374307,
0.1769182682,
0.254858315,
0.0897865593,
-0.3811887503,
-0.2307593673,
0.4337723255,
0.1766113043,
-0.0381239578,
0.2948854268,
0.2082068771,
-0.2366477847,
0.2260972261,
-0.0221613906,
1.0133314133,
0.0526238717,
-0.1635144055,
0.5793555379,
-0.1488887817,
0.5672780275,
-0.0199493989,
0.0393971577,
-0.331808269,
-0.2921087742,
-0.0050111748,
-0.1491660327,
0.2573119402,
-0.0939403996,
-0.607548058,
0.1944485605,
-0.3985604942,
0.0609820336,
0.0078524295,
-0.1274121255,
-0.1191682518,
-0.109427698,
-0.345857203,
0.264438808,
-0.1378705502,
0.1916238368,
-0.1486471146,
-0.0662538707,
-0.0817672908,
-0.1098182499,
-0.1274233311,
0.0437015295,
-0.3669554889,
-0.1849407554,
-0.0509840101,
-0.1615006626,
-0.1080824584,
0.0942900777,
0.0813170224,
0.1470958292,
-0.27799505,
0.0880823061,
0.0845175534,
0.0242377371,
-0.0069388896,
0.0085473992,
0.1958829612,
-0.0370819196,
-0.2943583131,
0.10687235,
0.0457874686,
0.1151763201,
0.3087919652,
0.1035760194,
-0.0675777569,
-0.3244168758,
-0.1034837812,
-0.0974466354,
0.2481090128,
-0.3131103516,
0.2714839876,
0.0891999975,
-0.1201469451,
0.0999450907,
-0.012930695,
-0.1413191408,
-0.0845807195,
0.3065217137,
0.2475551367,
0.3110373616,
0.065114215,
0.2337540388,
-0.1451797336,
-0.3778773844,
0.1946111172,
0.1266462207,
-0.3094278276,
0.245184809,
0.113203302,
-0.1002139673,
-0.0189669114,
0.3583428562,
0.087267302,
0.012129155,
-0.1319915503,
-0.3177197278,
-0.2275744975,
0.1974660307,
0.126283884,
0.0467937738,
0.0409473702,
0.2409868389,
0.2160648853,
-0.0149478409,
-0.4777273536,
0.023357369,
-0.3548015058,
-0.1210963503,
0.0553100705,
-0.1312023699,
0.2106186748,
0.030774314,
0.2626607418,
0.0611374341,
-0.1230163276,
-0.3603872657,
-0.1196231171,
0.0878794268,
-0.0960550457,
0.1212470978,
0.1928563267,
-0.0655951351,
-0.2737082839,
-0.1821471155,
0.0655785799,
-0.0048970506,
-0.1561484933,
0.0742096305,
0.1955160797,
0.3057777584,
0.0542220101,
0.0768093616,
0.1181697249,
-0.0472167209,
-0.094090797,
0.0504163466,
0.0114918724,
-0.0916208103,
0.0615545698,
0.047316473,
0.1579474807,
0.1204229742,
0.1462676972,
-0.1426481158,
-0.1761247814,
0.0342856459,
0.2458389848,
0.1684487462,
-0.1826534569,
0.2451196611,
-0.203199625,
0.3686017394,
-0.3018472791,
0.0448667854,
0.2334460616,
-0.0057719983,
0.2976728678,
0.1492144316,
-0.2892276645,
0.2251116037,
-0.1543214917,
0.0022289231,
0.4208868742,
-0.0848290771,
0.0941329896,
0.2553797662,
-0.1617472768,
0.0726770163,
0.4207954705,
0.2157664895,
0.080896616,
0.1147266179,
-0.0120391883,
0.2092017084,
-0.059548039,
-0.0088515338,
0.1725983024,
-0.4266691804,
0.1862839609,
0.1980998218,
0.0223721266,
-0.0381644666,
-0.2197996825,
0.4153004587,
-0.5084770918,
-0.0565226004,
-0.3237144351,
0.0487762876,
-0.174115479,
0.0605983101,
-0.1682130545,
-0.1289481968,
-0.2265688181,
-0.2804174721,
0.1312568635,
-0.1609178483,
0.2799319029,
-0.1695612818,
0.1022947356,
-0.1938088089,
-0.0666628331,
0.2105488777,
0.1612251103,
-0.2031766474,
0.0029689781,
-0.0198348761,
0.2243939936,
-0.1444882452,
0.4721125662,
0.4282213449,
0.2557368279,
-0.1851378828,
-0.0929748863,
-0.0065720603,
-0.2934384346,
-0.1710651517,
0.0933049694,
0.1752071083,
0.1753777862,
0.1074572429,
0.3313247859,
-0.33416152,
0.0941619202,
-0.0237929709,
-0.0138927987,
-0.2267356515,
0.3832156956,
-0.294754535,
-0.0855251774,
-0.1702575386,
-0.1365142465,
-0.5748509765,
0.0405892022,
0.341946125,
0.093017444,
0.1262921393,
-0.1605506539,
0.1524770856,
-0.1748817563,
0.1722018868,
0.0148291793,
0.4054065645,
-0.2588351667,
-0.0027992427,
-0.5410189033,
0.4275764823,
0.0155635141,
-0.1588081717,
0.031513568,
-0.0331472903,
-0.1146660447,
-0.0179117676,
0.0220622979,
0.3360386193,
0.2262088656,
-0.0256576873,
-0.5814422369,
-0.2901703119,
-0.1248452365,
-0.2796957493,
0.1322258711,
-0.2572003901,
-0.0358443968,
-0.2061257809,
0.2160844505,
-0.0379305407,
-0.2939602137,
0.0869978517,
0.1420838833,
0.6847299337,
0.1776429117,
0.4054073989,
-0.1641920507,
0.0316921994,
0.0117774205,
-0.2423883975,
-0.1033018455,
0.2090906799,
0.075565815,
0.1736914665,
0.0127598569,
0.1335808933,
-0.1275080442,
0.0320262387,
0.110480316,
0.0701005086,
-0.1159144714,
0.2584398091,
-0.232537657,
-0.1188336462,
-0.1874584109,
0.0807323605,
0.0883737206,
0.2076717615,
-0.0338693783,
-0.1781321168,
0.6508179903,
-0.1992693543,
-0.375453651,
-0.0056765042,
0.3330243826,
0.0251545198,
-0.1825994402,
-0.4330867529,
0.0186704993,
0.4222233593,
-0.0488338806,
-0.2132586837,
0.2750218511,
-0.2542454302,
0.0392030701,
-0.0233493187,
0.0766800568,
0.0071150437,
-0.0488665812,
0.1620783508,
-0.1435601264
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | > For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem.
But I can download other task dataset such as `dataset = load_dataset('squad')`. I don't know what went wrong. Thank you so much! | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 43 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
> For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem.
But I can download other task dataset such as `dataset = load_dataset('squad')`. I don't know what went wrong. Thank you so much! | [
-0.2479815185,
-0.3217712045,
0.076350078,
0.4701035619,
0.4953815937,
0.0185084939,
0.3540443182,
0.0614947043,
0.2402579486,
0.3128610551,
-0.2764089704,
0.4540321827,
-0.0626187921,
0.1033332124,
0.1556580216,
-0.1557853222,
-0.2255953997,
0.1679677814,
-0.0779854804,
0.1020547748,
-0.4996091127,
-0.0293462053,
-0.2632772923,
0.1951636374,
-0.1559654623,
-0.1863708794,
-0.073768571,
0.0807148367,
-0.1478743404,
-0.2537325323,
0.5681660175,
-0.1083381996,
0.2122285664,
0.5568336844,
-0.0001079977,
0.0223296583,
0.5475672483,
0.0222913995,
-0.1812626421,
-0.5533771515,
-0.1755929589,
-0.4152662754,
0.3201849163,
-0.3743577003,
-0.1145966798,
0.0790942013,
0.1459890306,
-0.1117732823,
0.3590353727,
0.4540640712,
0.2855805457,
0.7018620968,
-0.0197480172,
-0.3421173692,
0.1333467662,
0.054144673,
-0.1285513639,
0.2871589959,
0.1371667534,
-0.0082341395,
0.433459878,
-0.037331596,
-0.3705086112,
0.0904456526,
0.3338053823,
0.017311655,
0.0456818454,
-0.408441186,
0.0989959165,
0.3526201546,
0.4291328788,
-0.2789868116,
-0.1445526332,
0.1062166393,
0.2393291444,
-0.0619951934,
0.1765794307,
0.0757430941,
-0.0298106428,
0.0413530916,
0.0463871956,
0.1718295962,
-0.2779861093,
0.212599203,
-0.1284302771,
-0.0353671424,
-0.1932724118,
0.2176221609,
0.0380365625,
-0.0971405804,
0.0310849249,
-0.1765828729,
0.0018496987,
0.1451956332,
-0.3074560165,
-0.0370386466,
0.1003601253,
0.0206405092,
0.2188019454,
-0.239726916,
0.214146778,
-0.0814070925,
0.0014895797,
0.3541439176,
0.346270442,
0.2386878133,
0.215810135,
0.140845716,
0.1517539024,
0.0227292068,
-0.1789035499,
0.0621399879,
-0.2835335135,
-0.0460710563,
0.2485666573,
0.2519290447,
0.6219201088,
0.0226176083,
-0.525790453,
-0.1946156621,
-0.069702968,
0.0744645372,
0.1489260197,
0.4044242799,
-0.2522180378,
0.0734109059,
0.0253309086,
0.2898434401,
-0.1949325055,
-0.3826384544,
-0.2504279613,
0.1526834071,
-0.2685993016,
-0.2705710232,
0.2402618229,
0.092544198,
0.0312474743,
0.0430609211,
-0.2270827591,
0.085944064,
0.1672884971,
-0.3710011244,
-0.3183166087,
0.2031288147,
0.2981903255,
0.0132748261,
0.2797114849,
-0.3238169849,
-0.0456265286,
0.2975198627,
-0.3877719045,
-0.1205918193,
-0.1263933033,
0.1935600191,
-0.3629306555,
-0.1565004438,
-0.53642869,
0.0805209428,
0.0401178151,
-0.0892853811,
-0.0573688671,
-0.142540887,
-0.0697557628,
-0.3583667576,
-0.0551823527,
0.4761921167,
-0.2147596031,
-0.2288664877,
-0.3011832535,
-0.244319275,
0.3596111834,
-0.1455557346,
-0.0476030894,
0.2456552982,
-0.1385617256,
0.0195396543,
0.6420366764,
-0.5051139593,
-0.2810823619,
0.1532610655,
-0.1181737483,
-0.0764405504,
-0.0949232206,
-0.0446146317,
0.28639552,
0.0758707821,
0.3716193438,
0.3349785805,
0.0008509308,
-0.0305649638,
-0.1311075091,
-0.2105619013,
0.2909451127,
0.1949025691,
0.2361098826,
0.2211595625,
0.054533489,
-0.1998475194,
-0.0358050764,
0.0527692847,
-0.0813173354,
-0.0201197602,
0.4355517328,
-0.0436966978,
-0.025766328,
-0.5290390253,
-0.5686807632,
0.1899500191,
-0.0841614604,
0.1826206148,
-0.1157300621,
-0.0673961788,
-0.3040426373,
0.0426243991,
-0.0780211836,
-0.0217454806,
0.1823787391,
0.0794132128,
-0.2668653131,
0.0558814257,
-0.0770036429,
0.1909017712,
-0.152610153,
0.0957814679,
0.1212611198,
0.2611955404,
0.1016980186,
-0.3987406194,
-0.0017726496,
0.1362131834,
0.478135854,
0.0183627047,
-0.0826572478,
0.1729601324,
0.045810245,
-0.1020455807,
-0.2171079814,
-0.176204741,
0.057555519,
-0.3366028666,
-0.0447616577,
0.1347159147,
0.3460839391,
-0.1604821086,
0.0836436003,
0.4571965933,
-0.0167928915,
0.3421860635,
-0.143779248,
0.2406294346,
0.0525164679,
-0.0606725812,
-0.1331076324,
0.1804715842,
0.1290695965,
0.0913747996,
0.2827320993,
-0.0355856493,
-0.2706820965,
0.0046682842,
0.616209507,
0.0299598873,
0.3194145262,
-0.0831518844,
-0.3378823996,
0.1462026238,
0.0000326317,
0.041826658,
0.5353928804,
0.2632281482,
-0.1103598848,
-0.016473392,
0.0007064119,
0.0515690371,
0.0333780088,
0.0690901875,
0.2856584787,
0.0461299866,
0.2759691775,
0.0386636704,
-0.2005326003,
0.1444481611,
-0.0084362216,
0.1951353848,
-0.396962136,
0.1878786832,
-0.1423570961,
-0.1165722311,
-0.0304605607,
0.1370224804,
-0.1042251587,
-0.1990455538,
-0.3134956956,
0.1589778066,
0.2137134671,
0.1265256107,
0.1616359204,
0.0088399798,
-0.0113128349,
-0.0408863276,
-0.1634947658,
-0.1458586752,
-0.1861841083,
0.0462164134,
0.1946973205,
0.0735260099,
0.3495369852,
-0.1900553852,
0.124567911,
-0.100048542,
-0.1240717322,
0.0189166293,
-0.077443026,
0.5409656167,
0.2683839798,
0.2594896853,
-0.162481904,
0.1194112748,
0.3791871965,
-0.4782692194,
-0.0512072295,
0.3330360651,
-0.334943682,
0.0967636108,
-0.2121216059,
-0.3186375499,
-0.5942171216,
-0.3938196301,
0.2054922581,
-0.0129523873,
0.069687292,
0.3293658495,
0.1026411653,
0.4716495275,
0.2177548409,
0.0916105956,
-0.1844632775,
-0.034202747,
0.2794252932,
-0.1346673816,
-0.38846457,
0.1575419903,
-0.0971029326,
0.2852426767,
0.079908818,
-0.12456467,
-0.263061583,
-0.0669113994,
0.1975755095,
-0.1246707663,
-0.1207069829,
0.3231537342,
-0.0845758319,
-0.0469947681,
-0.2115350068,
-0.1213956922,
-0.0482250713,
0.3319037855,
-0.0071723647,
0.0945167094,
0.3415933847,
-0.1624030471,
0.3309932053,
-0.0868293867,
-0.0393967889,
0.4093083441,
-0.3032317162,
0.2776999474,
-0.0965931565,
-0.4811327755,
0.0073160902,
0.0563483834,
0.0693824962,
0.0789808035,
-0.2715213001,
-0.2479571253,
-0.3175478578,
-0.2529807389,
-0.4196513593,
-0.0761851147,
-0.0940623879,
0.1780700982,
0.0090040732,
0.1709618121,
0.1889688969,
-0.4353351295,
-0.1018506512,
0.0006976873,
0.2376154959,
0.0146930665,
-0.1129617691,
-0.2612105608,
-0.2340477854,
-0.3139868379,
0.3455926776,
-0.2557939589,
0.0833013952,
-0.1400284916,
0.0895221382,
0.1889621168,
0.0027527846,
0.7596029043,
-0.182307303,
0.2290207148,
0.3868349195,
0.2017735094,
-0.6543718576,
-0.0279393531,
-0.2924176753,
0.336103797,
0.0906109065,
0.3959356546,
-0.4269513488,
-0.0443889275,
0.152525112,
0.0314961821,
-0.093923077,
-0.2425147593,
-0.2687613964,
-0.3051567078,
-0.0087273791,
0.0218204428,
0.0090195686,
0.4349663258,
-0.17009902,
-0.1275981665,
-0.4085873067,
0.1602925062,
0.1126148552,
-0.0253701024,
0.2526393831,
-0.0568152927,
-0.0093021467,
0.0635726154,
-0.0077940188,
0.1148454249,
0.3582164049,
0.027281303,
-0.4528543353,
0.2615328431,
-0.021163892,
0.2443993539,
0.070957236,
-0.1279031485,
-0.0851994455,
0.0087842532,
0.0780044943,
-0.0141756218,
0.0905464068,
0.3425086737,
0.0383048281,
-0.3234172761,
-0.4045232236,
0.2545502484,
0.3031942844,
0.0401416868,
0.3135275245,
0.008307483,
-0.1673140973,
0.0610587113,
-0.1346741766,
0.8996837139,
-0.0605403371,
-0.1017849594,
0.6653996706,
-0.2444547117,
0.4785051942,
0.0302949995,
0.0903266668,
-0.292825371,
-0.2700549364,
-0.0155691803,
-0.256827414,
0.2637601197,
0.0815496147,
-0.4304998219,
0.3003608584,
-0.2911160588,
0.2078089863,
0.0213773102,
-0.0544001497,
-0.060865216,
-0.1126742512,
-0.3436709642,
0.1629804224,
-0.2664074302,
0.2688082457,
-0.1147507057,
-0.1441332251,
-0.0331183523,
-0.0753437132,
-0.1297870129,
0.1565761119,
-0.3821198046,
-0.1631512046,
0.1158264428,
-0.2006132603,
0.0768845826,
0.1819681823,
0.0739784464,
-0.1028126925,
-0.3268237412,
0.1788985431,
-0.075883761,
0.1364332289,
-0.0878418013,
0.0000823848,
0.2469839752,
-0.1007039696,
-0.3328214884,
0.1236413568,
-0.0640804097,
0.2198228687,
0.2899283171,
0.1802788675,
-0.0729966909,
-0.2621718347,
-0.2122359574,
-0.1799510121,
0.3643168211,
-0.2759150565,
0.1959187835,
0.0092525277,
-0.1024510488,
0.0800817981,
-0.0507114008,
-0.1253609061,
0.0088544749,
0.4873358607,
0.4263881445,
0.2872932255,
0.2660650611,
0.2743076682,
-0.0806819797,
-0.3562265038,
0.2828985751,
0.1164563075,
-0.335169822,
0.3059953153,
0.1482207775,
0.0116097331,
0.0161368139,
0.4952471554,
0.0256408192,
-0.0226027407,
-0.0756151453,
-0.2714718878,
-0.2940615714,
0.2110466957,
0.007054389,
-0.0486658625,
0.1137512401,
0.1883589625,
0.2880291641,
-0.1538338363,
-0.3571674228,
0.1202095225,
-0.3974449933,
-0.0263756216,
0.0220239162,
-0.0883373618,
0.2679447532,
0.0743282884,
0.136765644,
-0.0063329656,
-0.1159371287,
-0.2485035956,
-0.221764937,
0.1363089383,
-0.0278414637,
0.1512163877,
0.1515446305,
-0.2163802087,
-0.2809673846,
-0.0129060037,
0.0468999967,
0.0201658458,
-0.174415648,
0.0505835898,
0.1910219342,
0.3978153467,
-0.0217827111,
0.2827040553,
-0.0067477971,
0.0345396101,
-0.1433788538,
0.0237682667,
0.2030910254,
0.0252376497,
-0.2087370157,
-0.0644889474,
0.2508500814,
0.1676193178,
0.0940859467,
-0.3053333759,
-0.1231552064,
-0.0976447389,
0.0022101775,
0.1308605671,
-0.172363013,
0.2990865707,
-0.1103161722,
0.2701032758,
-0.2779802084,
0.0524256378,
0.3269571066,
-0.1212088168,
0.0678813159,
0.0283459313,
-0.3222199976,
0.2012979537,
-0.1126514599,
0.1511469036,
0.4406097531,
-0.1247902513,
0.0929890871,
0.2174029648,
-0.116205208,
-0.0157903545,
0.4607021511,
0.2020012885,
0.0393339656,
0.1420466453,
0.0226327349,
0.0366365612,
-0.048286058,
0.1063203961,
0.2827986479,
-0.4781705737,
0.0035834787,
0.1094036102,
-0.0017190725,
-0.0950418785,
-0.3151474595,
0.5316861868,
-0.472945869,
-0.1242426932,
-0.293381542,
-0.0078629851,
-0.1887671649,
0.1411720812,
-0.1920030266,
-0.1300995648,
-0.096024923,
-0.1964515001,
0.0039727055,
-0.1452826262,
0.2983599603,
-0.129879117,
-0.0621955879,
-0.1563252658,
-0.0753151774,
0.4235467017,
-0.0483768731,
-0.1696939915,
0.0714749023,
-0.1513212621,
0.2156937569,
-0.097612448,
0.580760777,
0.3321211338,
0.3286688626,
-0.2131844461,
-0.1695677489,
0.254526794,
-0.3181824684,
-0.1070877463,
0.1548373848,
0.158580035,
0.1606116146,
0.0785212815,
0.2066705972,
-0.2241431326,
0.1420186907,
0.0436599776,
-0.1447924078,
-0.3188246489,
0.4858049154,
-0.3899848759,
-0.1255376637,
-0.1277063638,
-0.0744741112,
-0.5568336248,
0.1190804467,
0.2711360157,
0.2195582688,
0.0988913402,
-0.1955019683,
0.0958702117,
-0.3225294352,
0.2215006351,
0.020388227,
0.3648220599,
-0.3144542873,
0.1156633347,
-0.5239733458,
0.4592312276,
-0.0107850134,
0.0105120018,
0.1541945189,
-0.0931216776,
-0.265440613,
-0.0039145034,
0.0306937024,
0.2047600448,
0.3998900056,
0.1453906298,
-0.5745071769,
-0.3909094334,
-0.0477377139,
-0.0727451369,
0.0916489214,
-0.2621002197,
0.0129265068,
-0.1517876387,
0.0232954174,
-0.1117518544,
-0.3203567564,
0.1511976719,
0.1406891495,
0.7023336887,
0.0446436852,
0.4411260784,
0.0285859928,
-0.0117125548,
0.1216361821,
-0.3079590201,
-0.105045706,
0.1764323562,
-0.0047929096,
0.0528661087,
-0.0209937431,
0.272619009,
-0.217562452,
-0.1812320799,
-0.1439599246,
0.1281731576,
-0.3053529263,
0.3119680882,
-0.3086752295,
-0.1393731534,
-0.3422221839,
-0.0057941135,
0.1176715791,
0.045272775,
-0.1081118807,
0.0493606031,
0.627785027,
-0.1653218716,
-0.344037801,
-0.1038246453,
0.312897265,
-0.0359877348,
-0.112662144,
-0.5198078752,
0.0568198115,
0.4852419198,
-0.0689147785,
-0.192202121,
0.2341873944,
-0.1415183544,
0.132438302,
-0.0214219317,
-0.0941566527,
-0.0095511973,
-0.0314089283,
0.2175459564,
-0.1435790062
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Hi @severo, thanks for reporting.
Just note that currently not all canonical datasets support streaming mode: this is one case!
All datasets that use `pathlib` joins (using `/`) instead of `os.path.join` (as in this dataset) do not support streaming mode yet. | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 41 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Hi @severo, thanks for reporting.
Just note that currently not all canonical datasets support streaming mode: this is one case!
All datasets that use `pathlib` joins (using `/`) instead of `os.path.join` (as in this dataset) do not support streaming mode yet. | [
-0.4171532393,
-0.2417905629,
0.0004067235,
0.193667233,
0.1873791218,
0.05720447,
0.5056349039,
0.1059947759,
0.1942840368,
0.1353351176,
0.0698311776,
0.1297214031,
-0.2097094953,
0.3238827884,
0.0893112272,
0.0787797868,
0.0210813619,
0.1588885039,
0.0335766599,
0.0774050727,
-0.2157025933,
0.202814579,
-0.3865995407,
-0.3339453638,
-0.1323986799,
0.1463262588,
0.1100256965,
0.1485296786,
0.175347805,
-0.6307145357,
0.2604338527,
0.077574268,
0.2229161412,
0.7022690773,
-0.0001109225,
0.1807844341,
0.4209491014,
-0.138756752,
-0.5919359326,
-0.2953983247,
-0.3683614433,
-0.3184560537,
0.1747525185,
-0.1460204124,
-0.1155983955,
0.0416297428,
-0.2645147741,
-0.4016982913,
0.2196302265,
0.445461452,
0.2117785513,
0.4712951183,
-0.1509928107,
-0.1280123591,
0.1274100989,
0.008658994,
-0.152763024,
0.29874596,
0.0759947896,
0.2464786768,
-0.0301849842,
0.4006466568,
-0.0477481037,
0.1930939853,
0.2172412574,
-0.0403115898,
-0.0638406873,
-0.2730312347,
0.0779682547,
0.226718843,
0.3892457187,
-0.3428207636,
-0.1372255981,
-0.4340850115,
-0.0550192744,
-0.4057791233,
0.2461038232,
-0.0120554157,
-0.2402932942,
0.0848755538,
-0.3027440608,
0.1529164463,
0.0393640846,
-0.1008399278,
-0.0583144948,
0.131554231,
-0.0259358864,
0.1768468916,
-0.0182864666,
-0.0394544825,
0.1186182871,
-0.2750137448,
-0.0770447254,
0.19798325,
-0.5796866417,
0.0617473572,
0.3563537896,
-0.483120203,
0.2248358876,
0.0766405985,
0.3723808825,
0.080845207,
0.1294206381,
-0.0054172724,
0.3990356326,
0.2017411888,
0.1839398146,
-0.244638294,
0.1665529013,
0.3514228165,
-0.0046332404,
-0.3092012703,
0.04556394,
-0.0928957462,
0.2623340786,
0.01355974,
0.31324175,
0.0522785038,
-0.3759044409,
0.1984405071,
-0.2598962784,
0.0621635541,
0.3526677191,
0.2470079064,
0.3124101758,
0.331681639,
-0.1649699211,
0.2566636205,
-0.1701622009,
-0.4501440823,
-0.2399167567,
-0.3115687966,
0.0298979804,
0.0585326105,
0.2430290431,
-0.4115731418,
0.2127866447,
0.1143841147,
0.2314707637,
-0.1508325785,
0.2350653708,
-0.3559949994,
0.2714754343,
0.4170612395,
0.2132245451,
0.3055962622,
0.2130861729,
-0.0781214535,
0.0865609944,
0.129298389,
-0.0135737322,
-0.3794959784,
0.1188297197,
0.2418162972,
-0.1854702681,
0.0091847852,
-0.1626184583,
0.3421089649,
0.0492593348,
-0.490398258,
0.1006153971,
-0.1393200457,
-0.1788207591,
-0.1388722658,
0.3767813444,
0.4191718996,
-0.3163486123,
-0.0631756335,
-0.2223776877,
-0.193345964,
0.3068186343,
0.0627037436,
-0.1867484152,
0.0545984358,
-0.1989075243,
-0.0324026197,
0.1652612686,
-0.1338233054,
-0.4505627453,
0.3839793801,
-0.1003186852,
0.4216831028,
0.0033683814,
0.0348957144,
0.0462129153,
-0.1179657355,
0.2082363665,
-0.0482203364,
-0.3429862857,
0.1301705837,
-0.2063286901,
0.0962787122,
0.1745321602,
0.0263378024,
0.1080549061,
0.1456775516,
0.1164151356,
-0.0307610482,
0.1964358538,
-0.0440107174,
0.0053362101,
0.2909403145,
0.042424418,
-0.0588182993,
0.0003673434,
-0.1810714304,
-0.4702011943,
0.3554163575,
0.2276430279,
0.0265538637,
0.0678977221,
0.0377305448,
-0.3046529293,
0.1419356167,
-0.2711747289,
-0.4771590233,
0.1949525177,
0.3907284439,
-0.111849308,
0.0888262168,
-0.2773434818,
0.3020510972,
-0.1696488857,
-0.1002231687,
-0.1528522074,
0.1263131201,
0.1340727061,
-0.3565649688,
-0.0337360017,
0.0897878706,
0.2519125044,
-0.134492889,
-0.2349993885,
0.4969179332,
0.1069905013,
0.0699906051,
-0.0781736672,
-0.1732121259,
0.1972212791,
-0.1314568669,
-0.2321658134,
0.4724212587,
0.3397765756,
-0.2434855998,
-0.1393342614,
0.1867936552,
-0.2051786184,
0.2564635575,
-0.0694207847,
0.0912936851,
0.328330636,
0.3197961748,
-0.0928376168,
-0.0212595537,
0.2077190578,
-0.1777403653,
0.1031239182,
-0.1610923707,
-0.2532595992,
-0.0428621955,
0.1946249902,
0.1955532432,
0.0406558849,
0.0529753938,
-0.3236098886,
-0.2086990476,
0.370659411,
0.0880204886,
0.4839419723,
0.0791207701,
0.2721227407,
0.0922640041,
-0.0106660463,
-0.1263323873,
0.2971057892,
0.0752388462,
0.0984971821,
0.3603755534,
0.2497459203,
-0.1204283088,
-0.4016781151,
-0.2251662761,
0.1358989775,
0.1336641014,
-0.3052349687,
0.0297693089,
-0.1282224357,
-0.2748435736,
0.1133073717,
-0.4021541178,
-0.2225445807,
-0.3337675631,
-0.2058945596,
0.3451241553,
-0.1469638497,
0.1498997509,
-0.1804753244,
-0.0882677585,
0.3082577586,
-0.0031161178,
-0.2322358787,
-0.1135622263,
-0.2594827712,
0.0321406573,
0.0412807539,
-0.3234795034,
0.4347480237,
-0.1234985888,
-0.1801847816,
-0.1512940675,
-0.0745448619,
0.1740905493,
0.0435855016,
0.200140059,
0.2743389904,
0.2197591811,
0.0392215997,
0.0045699924,
0.4241866469,
-0.2919014692,
0.0146438479,
0.3762077689,
0.2012004554,
0.2666825354,
-0.2297267318,
-0.2490313053,
-0.0779715776,
-0.4310796261,
-0.1742306203,
-0.0227722377,
0.0273635313,
0.4507271647,
0.2624841928,
0.3891988695,
0.3127646148,
-0.0566321127,
-0.3348746896,
-0.347517997,
0.13222377,
-0.1974762827,
-0.4097188115,
0.1144936532,
0.0011451766,
0.1664850712,
0.2781508565,
-0.3012994826,
0.0803641528,
-0.0408358686,
0.1188739836,
-0.0593021475,
-0.1120117456,
0.143274799,
-0.0613779277,
-0.1019272059,
-0.3338414729,
-0.1850919873,
-0.1276155412,
-0.152960524,
0.2324115038,
0.038183935,
0.5950307846,
0.2077816427,
0.5280632973,
0.4836460054,
0.058197163,
0.6157111526,
-0.2377378047,
0.2161287814,
-0.3673552871,
-0.3503070176,
0.2225525379,
-0.0085880756,
-0.1320838332,
0.2081882209,
-0.1470542848,
-0.2681729198,
-0.256749481,
0.0351036936,
-0.0647702813,
-0.1755144298,
0.0512215793,
-0.2642836869,
0.3024117351,
0.0359323844,
0.2061442435,
-0.2464565933,
-0.0574942306,
-0.2373394966,
0.0760810077,
-0.0045372359,
0.0064090714,
-0.296765238,
0.0214662477,
-0.5252022147,
0.3021186888,
0.2227876782,
0.615446806,
-0.0391719565,
-0.208869487,
0.0450495481,
0.0117578581,
0.5304385424,
-0.3789147735,
-0.0240583438,
0.2964759469,
-0.0950774625,
-0.4073811769,
-0.1102450266,
-0.2325183302,
0.3465292454,
0.2328931689,
0.1428346932,
-0.2224265337,
-0.0886223763,
0.1366080344,
0.1360026598,
-0.0751256347,
-0.1846506894,
-0.2278952301,
-0.2202229798,
-0.1945457458,
-0.1267377734,
0.0843012258,
0.2432257086,
-0.1949769557,
-0.0850350559,
-0.1033550948,
0.0288990885,
0.0844486132,
0.1044178158,
0.3788570464,
0.090336293,
0.2310872823,
0.3695779741,
0.101572305,
0.3100067377,
0.5074750185,
0.406558454,
-0.3184789419,
0.2045597434,
0.0775872469,
0.0856529549,
0.2882387638,
-0.1116833687,
-0.0276319236,
0.0777180046,
0.0934573263,
-0.2894924879,
0.1943800002,
0.2449226677,
-0.0539537072,
-0.1495430768,
-0.5760561824,
0.3336380422,
0.0304385871,
0.0183756948,
0.3064620495,
-0.2464930415,
-0.2605731785,
-0.0352296941,
-0.0546514988,
0.49818784,
0.1343331933,
0.0661568195,
0.4267182052,
-0.2779954076,
0.2107363343,
-0.1438205242,
0.2207974643,
-0.1879347265,
-0.3919573426,
-0.0941029191,
-0.1085411757,
0.0540995114,
-0.0021505831,
-0.2287914753,
0.2563298941,
0.0245752633,
0.2516515851,
0.0321384221,
0.0513759106,
-0.4211883843,
-0.1044378057,
-0.2310301512,
0.226688385,
0.0391742326,
0.0595657714,
-0.1965501904,
-0.1511450112,
0.2058586776,
-0.3431107998,
-0.2650854886,
-0.0005396307,
-0.2571266294,
0.0304906927,
-0.0789497644,
-0.5586482286,
-0.0092749521,
0.1646381617,
-0.1165742874,
-0.2574974,
-0.160361588,
0.0731906891,
0.1823070496,
0.4032895565,
-0.0304599926,
0.1647266597,
0.3220482469,
-0.0156900436,
-0.1203036904,
0.1713949293,
-0.2056287229,
-0.1386830509,
0.0792044848,
0.0525300242,
0.1477532983,
-0.1950286329,
0.0720986649,
-0.1244528592,
0.0610797107,
-0.2714120746,
0.1379991174,
-0.052292712,
-0.2443106472,
-0.0718857571,
-0.1764227748,
-0.1069567725,
-0.1404852271,
0.3965620995,
-0.1222571805,
0.2639792264,
0.5979732871,
0.2628352642,
-0.0699225888,
-0.2239042222,
0.2011473626,
0.0665024519,
-0.2591680884,
0.3576520085,
-0.0661279261,
-0.0084150583,
-0.0689551979,
0.37358585,
-0.013727692,
-0.0653007179,
-0.1425482929,
-0.2276574671,
-0.3390943408,
-0.0766484141,
-0.0648032278,
0.1809477657,
-0.0614873767,
0.0205044001,
0.344094485,
-0.2483291477,
-0.3373637795,
-0.2206483483,
-0.2257322073,
0.1367568523,
-0.1156359464,
0.0903353542,
0.2451534718,
-0.0245363321,
0.1401753128,
0.1833448112,
-0.0654684156,
-0.2514530718,
-0.0721648782,
0.0910970792,
-0.0126872677,
-0.2120139301,
-0.1004449278,
0.0691824108,
-0.3066589534,
-0.3149644732,
0.2542548776,
0.0261868164,
-0.0648498535,
0.3339466155,
0.1208941191,
0.2269125581,
-0.245801121,
-0.0012789546,
-0.0492912978,
-0.0714227408,
-0.2654005885,
0.1434953362,
0.0741448179,
0.0186536238,
-0.0137112811,
-0.0302396715,
-0.0359066501,
-0.0958979875,
0.3457254767,
-0.3809931278,
0.1985215396,
0.2853871584,
0.4326710403,
0.3073009551,
-0.2745676041,
-0.0601299778,
-0.0283833873,
0.2137220204,
-0.2702539563,
0.1047897637,
-0.1389293373,
0.3404974341,
0.1812907308,
0.1234543324,
0.0429618061,
-0.2800163627,
0.0771738738,
0.1745933592,
0.0768417642,
-0.1775954217,
0.2129437923,
0.4377634525,
-0.1620202661,
0.1636501253,
-0.0975023285,
0.0571440943,
0.0120125674,
0.4437313378,
-0.0766297877,
0.1632127166,
0.2037426531,
-0.136554718,
-0.0510566719,
-0.3139661849,
-0.2231898606,
0.2932851911,
-0.1478384435,
0.2211653292,
0.0607555732,
0.11484918,
-0.2439825237,
0.1240973026,
-0.3192912936,
-0.0808004886,
-0.1555944234,
0.0469757728,
-0.1781295836,
-0.1248733848,
-0.2028405368,
-0.1335260868,
0.150487572,
0.1290386617,
0.371265471,
0.0432593338,
-0.0071961023,
-0.6050089002,
-0.0662221909,
0.3256894052,
0.0365516096,
-0.2266713828,
0.2377026975,
0.425424546,
0.0902427882,
0.384297967,
0.3726783097,
0.3797658086,
0.3374566734,
-0.0666717291,
0.1129235327,
0.1543489695,
-0.1648840308,
-0.2762877345,
0.1785654724,
-0.0458155982,
0.2733044624,
0.3034487069,
0.1270705909,
-0.1446415186,
0.1170550808,
0.0449932441,
0.0575733855,
-0.6023665071,
0.4265976548,
-0.4701415896,
0.0185303986,
-0.1208023801,
-0.1203804016,
-0.2376077324,
0.0821255296,
0.2865522504,
0.0400105715,
0.2274748385,
-0.0990613252,
0.1067298278,
-0.1255406737,
0.2446667105,
-0.0027380604,
-0.2558124065,
-0.2028056979,
-0.1672923416,
-0.8009277582,
0.0148777813,
0.0856727809,
-0.1091408655,
0.1444783062,
0.1989770234,
-0.1189475358,
0.246401757,
0.3879630864,
-0.2339883447,
-0.1309392154,
0.3268942833,
-0.195360586,
-0.4079425037,
-0.4459079206,
-0.025074197,
-0.012066111,
-0.2429809421,
0.2650612891,
-0.2226770669,
0.1452894509,
0.1209751517,
-0.0283925533,
0.1159841269,
-0.0041817799,
0.3461862803,
0.1672823429,
0.314198494,
-0.1446936727,
0.1787154973,
-0.3299388587,
-0.1000358611,
-0.3050259352,
0.3060719967,
-0.1126584858,
0.4945883751,
-0.1233776659,
-0.0124990232,
-0.16372554,
0.2108145207,
0.2584313154,
-0.2667386532,
-0.3577259779,
0.2748012543,
-0.2798827291,
0.2512661815,
0.0318003856,
0.3652265966,
-0.0365185365,
0.1353163421,
-0.2697345018,
-0.5320449471,
0.4457721412,
-0.4308796823,
-0.3953134418,
-0.0651004463,
0.1863381565,
0.2452218682,
-0.2555918396,
-0.3518376946,
0.1235720217,
0.3564774096,
-0.1301044226,
-0.2069170475,
-0.0070770551,
-0.1155155003,
0.0543674976,
-0.0779214874,
0.1456418335,
0.1664126366,
-0.1576849371,
0.2604365349,
-0.0645065457
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | OK. Do you think it's possible to detect this, and raise an exception (maybe `NotImplementedError`, or a specific `StreamingError`)? | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 19 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
OK. Do you think it's possible to detect this, and raise an exception (maybe `NotImplementedError`, or a specific `StreamingError`)? | [
-0.4171532393,
-0.2417905629,
0.0004067235,
0.193667233,
0.1873791218,
0.05720447,
0.5056349039,
0.1059947759,
0.1942840368,
0.1353351176,
0.0698311776,
0.1297214031,
-0.2097094953,
0.3238827884,
0.0893112272,
0.0787797868,
0.0210813619,
0.1588885039,
0.0335766599,
0.0774050727,
-0.2157025933,
0.202814579,
-0.3865995407,
-0.3339453638,
-0.1323986799,
0.1463262588,
0.1100256965,
0.1485296786,
0.175347805,
-0.6307145357,
0.2604338527,
0.077574268,
0.2229161412,
0.7022690773,
-0.0001109225,
0.1807844341,
0.4209491014,
-0.138756752,
-0.5919359326,
-0.2953983247,
-0.3683614433,
-0.3184560537,
0.1747525185,
-0.1460204124,
-0.1155983955,
0.0416297428,
-0.2645147741,
-0.4016982913,
0.2196302265,
0.445461452,
0.2117785513,
0.4712951183,
-0.1509928107,
-0.1280123591,
0.1274100989,
0.008658994,
-0.152763024,
0.29874596,
0.0759947896,
0.2464786768,
-0.0301849842,
0.4006466568,
-0.0477481037,
0.1930939853,
0.2172412574,
-0.0403115898,
-0.0638406873,
-0.2730312347,
0.0779682547,
0.226718843,
0.3892457187,
-0.3428207636,
-0.1372255981,
-0.4340850115,
-0.0550192744,
-0.4057791233,
0.2461038232,
-0.0120554157,
-0.2402932942,
0.0848755538,
-0.3027440608,
0.1529164463,
0.0393640846,
-0.1008399278,
-0.0583144948,
0.131554231,
-0.0259358864,
0.1768468916,
-0.0182864666,
-0.0394544825,
0.1186182871,
-0.2750137448,
-0.0770447254,
0.19798325,
-0.5796866417,
0.0617473572,
0.3563537896,
-0.483120203,
0.2248358876,
0.0766405985,
0.3723808825,
0.080845207,
0.1294206381,
-0.0054172724,
0.3990356326,
0.2017411888,
0.1839398146,
-0.244638294,
0.1665529013,
0.3514228165,
-0.0046332404,
-0.3092012703,
0.04556394,
-0.0928957462,
0.2623340786,
0.01355974,
0.31324175,
0.0522785038,
-0.3759044409,
0.1984405071,
-0.2598962784,
0.0621635541,
0.3526677191,
0.2470079064,
0.3124101758,
0.331681639,
-0.1649699211,
0.2566636205,
-0.1701622009,
-0.4501440823,
-0.2399167567,
-0.3115687966,
0.0298979804,
0.0585326105,
0.2430290431,
-0.4115731418,
0.2127866447,
0.1143841147,
0.2314707637,
-0.1508325785,
0.2350653708,
-0.3559949994,
0.2714754343,
0.4170612395,
0.2132245451,
0.3055962622,
0.2130861729,
-0.0781214535,
0.0865609944,
0.129298389,
-0.0135737322,
-0.3794959784,
0.1188297197,
0.2418162972,
-0.1854702681,
0.0091847852,
-0.1626184583,
0.3421089649,
0.0492593348,
-0.490398258,
0.1006153971,
-0.1393200457,
-0.1788207591,
-0.1388722658,
0.3767813444,
0.4191718996,
-0.3163486123,
-0.0631756335,
-0.2223776877,
-0.193345964,
0.3068186343,
0.0627037436,
-0.1867484152,
0.0545984358,
-0.1989075243,
-0.0324026197,
0.1652612686,
-0.1338233054,
-0.4505627453,
0.3839793801,
-0.1003186852,
0.4216831028,
0.0033683814,
0.0348957144,
0.0462129153,
-0.1179657355,
0.2082363665,
-0.0482203364,
-0.3429862857,
0.1301705837,
-0.2063286901,
0.0962787122,
0.1745321602,
0.0263378024,
0.1080549061,
0.1456775516,
0.1164151356,
-0.0307610482,
0.1964358538,
-0.0440107174,
0.0053362101,
0.2909403145,
0.042424418,
-0.0588182993,
0.0003673434,
-0.1810714304,
-0.4702011943,
0.3554163575,
0.2276430279,
0.0265538637,
0.0678977221,
0.0377305448,
-0.3046529293,
0.1419356167,
-0.2711747289,
-0.4771590233,
0.1949525177,
0.3907284439,
-0.111849308,
0.0888262168,
-0.2773434818,
0.3020510972,
-0.1696488857,
-0.1002231687,
-0.1528522074,
0.1263131201,
0.1340727061,
-0.3565649688,
-0.0337360017,
0.0897878706,
0.2519125044,
-0.134492889,
-0.2349993885,
0.4969179332,
0.1069905013,
0.0699906051,
-0.0781736672,
-0.1732121259,
0.1972212791,
-0.1314568669,
-0.2321658134,
0.4724212587,
0.3397765756,
-0.2434855998,
-0.1393342614,
0.1867936552,
-0.2051786184,
0.2564635575,
-0.0694207847,
0.0912936851,
0.328330636,
0.3197961748,
-0.0928376168,
-0.0212595537,
0.2077190578,
-0.1777403653,
0.1031239182,
-0.1610923707,
-0.2532595992,
-0.0428621955,
0.1946249902,
0.1955532432,
0.0406558849,
0.0529753938,
-0.3236098886,
-0.2086990476,
0.370659411,
0.0880204886,
0.4839419723,
0.0791207701,
0.2721227407,
0.0922640041,
-0.0106660463,
-0.1263323873,
0.2971057892,
0.0752388462,
0.0984971821,
0.3603755534,
0.2497459203,
-0.1204283088,
-0.4016781151,
-0.2251662761,
0.1358989775,
0.1336641014,
-0.3052349687,
0.0297693089,
-0.1282224357,
-0.2748435736,
0.1133073717,
-0.4021541178,
-0.2225445807,
-0.3337675631,
-0.2058945596,
0.3451241553,
-0.1469638497,
0.1498997509,
-0.1804753244,
-0.0882677585,
0.3082577586,
-0.0031161178,
-0.2322358787,
-0.1135622263,
-0.2594827712,
0.0321406573,
0.0412807539,
-0.3234795034,
0.4347480237,
-0.1234985888,
-0.1801847816,
-0.1512940675,
-0.0745448619,
0.1740905493,
0.0435855016,
0.200140059,
0.2743389904,
0.2197591811,
0.0392215997,
0.0045699924,
0.4241866469,
-0.2919014692,
0.0146438479,
0.3762077689,
0.2012004554,
0.2666825354,
-0.2297267318,
-0.2490313053,
-0.0779715776,
-0.4310796261,
-0.1742306203,
-0.0227722377,
0.0273635313,
0.4507271647,
0.2624841928,
0.3891988695,
0.3127646148,
-0.0566321127,
-0.3348746896,
-0.347517997,
0.13222377,
-0.1974762827,
-0.4097188115,
0.1144936532,
0.0011451766,
0.1664850712,
0.2781508565,
-0.3012994826,
0.0803641528,
-0.0408358686,
0.1188739836,
-0.0593021475,
-0.1120117456,
0.143274799,
-0.0613779277,
-0.1019272059,
-0.3338414729,
-0.1850919873,
-0.1276155412,
-0.152960524,
0.2324115038,
0.038183935,
0.5950307846,
0.2077816427,
0.5280632973,
0.4836460054,
0.058197163,
0.6157111526,
-0.2377378047,
0.2161287814,
-0.3673552871,
-0.3503070176,
0.2225525379,
-0.0085880756,
-0.1320838332,
0.2081882209,
-0.1470542848,
-0.2681729198,
-0.256749481,
0.0351036936,
-0.0647702813,
-0.1755144298,
0.0512215793,
-0.2642836869,
0.3024117351,
0.0359323844,
0.2061442435,
-0.2464565933,
-0.0574942306,
-0.2373394966,
0.0760810077,
-0.0045372359,
0.0064090714,
-0.296765238,
0.0214662477,
-0.5252022147,
0.3021186888,
0.2227876782,
0.615446806,
-0.0391719565,
-0.208869487,
0.0450495481,
0.0117578581,
0.5304385424,
-0.3789147735,
-0.0240583438,
0.2964759469,
-0.0950774625,
-0.4073811769,
-0.1102450266,
-0.2325183302,
0.3465292454,
0.2328931689,
0.1428346932,
-0.2224265337,
-0.0886223763,
0.1366080344,
0.1360026598,
-0.0751256347,
-0.1846506894,
-0.2278952301,
-0.2202229798,
-0.1945457458,
-0.1267377734,
0.0843012258,
0.2432257086,
-0.1949769557,
-0.0850350559,
-0.1033550948,
0.0288990885,
0.0844486132,
0.1044178158,
0.3788570464,
0.090336293,
0.2310872823,
0.3695779741,
0.101572305,
0.3100067377,
0.5074750185,
0.406558454,
-0.3184789419,
0.2045597434,
0.0775872469,
0.0856529549,
0.2882387638,
-0.1116833687,
-0.0276319236,
0.0777180046,
0.0934573263,
-0.2894924879,
0.1943800002,
0.2449226677,
-0.0539537072,
-0.1495430768,
-0.5760561824,
0.3336380422,
0.0304385871,
0.0183756948,
0.3064620495,
-0.2464930415,
-0.2605731785,
-0.0352296941,
-0.0546514988,
0.49818784,
0.1343331933,
0.0661568195,
0.4267182052,
-0.2779954076,
0.2107363343,
-0.1438205242,
0.2207974643,
-0.1879347265,
-0.3919573426,
-0.0941029191,
-0.1085411757,
0.0540995114,
-0.0021505831,
-0.2287914753,
0.2563298941,
0.0245752633,
0.2516515851,
0.0321384221,
0.0513759106,
-0.4211883843,
-0.1044378057,
-0.2310301512,
0.226688385,
0.0391742326,
0.0595657714,
-0.1965501904,
-0.1511450112,
0.2058586776,
-0.3431107998,
-0.2650854886,
-0.0005396307,
-0.2571266294,
0.0304906927,
-0.0789497644,
-0.5586482286,
-0.0092749521,
0.1646381617,
-0.1165742874,
-0.2574974,
-0.160361588,
0.0731906891,
0.1823070496,
0.4032895565,
-0.0304599926,
0.1647266597,
0.3220482469,
-0.0156900436,
-0.1203036904,
0.1713949293,
-0.2056287229,
-0.1386830509,
0.0792044848,
0.0525300242,
0.1477532983,
-0.1950286329,
0.0720986649,
-0.1244528592,
0.0610797107,
-0.2714120746,
0.1379991174,
-0.052292712,
-0.2443106472,
-0.0718857571,
-0.1764227748,
-0.1069567725,
-0.1404852271,
0.3965620995,
-0.1222571805,
0.2639792264,
0.5979732871,
0.2628352642,
-0.0699225888,
-0.2239042222,
0.2011473626,
0.0665024519,
-0.2591680884,
0.3576520085,
-0.0661279261,
-0.0084150583,
-0.0689551979,
0.37358585,
-0.013727692,
-0.0653007179,
-0.1425482929,
-0.2276574671,
-0.3390943408,
-0.0766484141,
-0.0648032278,
0.1809477657,
-0.0614873767,
0.0205044001,
0.344094485,
-0.2483291477,
-0.3373637795,
-0.2206483483,
-0.2257322073,
0.1367568523,
-0.1156359464,
0.0903353542,
0.2451534718,
-0.0245363321,
0.1401753128,
0.1833448112,
-0.0654684156,
-0.2514530718,
-0.0721648782,
0.0910970792,
-0.0126872677,
-0.2120139301,
-0.1004449278,
0.0691824108,
-0.3066589534,
-0.3149644732,
0.2542548776,
0.0261868164,
-0.0648498535,
0.3339466155,
0.1208941191,
0.2269125581,
-0.245801121,
-0.0012789546,
-0.0492912978,
-0.0714227408,
-0.2654005885,
0.1434953362,
0.0741448179,
0.0186536238,
-0.0137112811,
-0.0302396715,
-0.0359066501,
-0.0958979875,
0.3457254767,
-0.3809931278,
0.1985215396,
0.2853871584,
0.4326710403,
0.3073009551,
-0.2745676041,
-0.0601299778,
-0.0283833873,
0.2137220204,
-0.2702539563,
0.1047897637,
-0.1389293373,
0.3404974341,
0.1812907308,
0.1234543324,
0.0429618061,
-0.2800163627,
0.0771738738,
0.1745933592,
0.0768417642,
-0.1775954217,
0.2129437923,
0.4377634525,
-0.1620202661,
0.1636501253,
-0.0975023285,
0.0571440943,
0.0120125674,
0.4437313378,
-0.0766297877,
0.1632127166,
0.2037426531,
-0.136554718,
-0.0510566719,
-0.3139661849,
-0.2231898606,
0.2932851911,
-0.1478384435,
0.2211653292,
0.0607555732,
0.11484918,
-0.2439825237,
0.1240973026,
-0.3192912936,
-0.0808004886,
-0.1555944234,
0.0469757728,
-0.1781295836,
-0.1248733848,
-0.2028405368,
-0.1335260868,
0.150487572,
0.1290386617,
0.371265471,
0.0432593338,
-0.0071961023,
-0.6050089002,
-0.0662221909,
0.3256894052,
0.0365516096,
-0.2266713828,
0.2377026975,
0.425424546,
0.0902427882,
0.384297967,
0.3726783097,
0.3797658086,
0.3374566734,
-0.0666717291,
0.1129235327,
0.1543489695,
-0.1648840308,
-0.2762877345,
0.1785654724,
-0.0458155982,
0.2733044624,
0.3034487069,
0.1270705909,
-0.1446415186,
0.1170550808,
0.0449932441,
0.0575733855,
-0.6023665071,
0.4265976548,
-0.4701415896,
0.0185303986,
-0.1208023801,
-0.1203804016,
-0.2376077324,
0.0821255296,
0.2865522504,
0.0400105715,
0.2274748385,
-0.0990613252,
0.1067298278,
-0.1255406737,
0.2446667105,
-0.0027380604,
-0.2558124065,
-0.2028056979,
-0.1672923416,
-0.8009277582,
0.0148777813,
0.0856727809,
-0.1091408655,
0.1444783062,
0.1989770234,
-0.1189475358,
0.246401757,
0.3879630864,
-0.2339883447,
-0.1309392154,
0.3268942833,
-0.195360586,
-0.4079425037,
-0.4459079206,
-0.025074197,
-0.012066111,
-0.2429809421,
0.2650612891,
-0.2226770669,
0.1452894509,
0.1209751517,
-0.0283925533,
0.1159841269,
-0.0041817799,
0.3461862803,
0.1672823429,
0.314198494,
-0.1446936727,
0.1787154973,
-0.3299388587,
-0.1000358611,
-0.3050259352,
0.3060719967,
-0.1126584858,
0.4945883751,
-0.1233776659,
-0.0124990232,
-0.16372554,
0.2108145207,
0.2584313154,
-0.2667386532,
-0.3577259779,
0.2748012543,
-0.2798827291,
0.2512661815,
0.0318003856,
0.3652265966,
-0.0365185365,
0.1353163421,
-0.2697345018,
-0.5320449471,
0.4457721412,
-0.4308796823,
-0.3953134418,
-0.0651004463,
0.1863381565,
0.2452218682,
-0.2555918396,
-0.3518376946,
0.1235720217,
0.3564774096,
-0.1301044226,
-0.2069170475,
-0.0070770551,
-0.1155155003,
0.0543674976,
-0.0779214874,
0.1456418335,
0.1664126366,
-0.1576849371,
0.2604365349,
-0.0645065457
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | We should definitely support datasets using `pathlib` in streaming mode...
For non-supported datasets in streaming mode, we have already a request of raising an error/warning: see #2654. | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 27 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
We should definitely support datasets using `pathlib` in streaming mode...
For non-supported datasets in streaming mode, we have already a request of raising an error/warning: see #2654. | [
-0.4171532393,
-0.2417905629,
0.0004067235,
0.193667233,
0.1873791218,
0.05720447,
0.5056349039,
0.1059947759,
0.1942840368,
0.1353351176,
0.0698311776,
0.1297214031,
-0.2097094953,
0.3238827884,
0.0893112272,
0.0787797868,
0.0210813619,
0.1588885039,
0.0335766599,
0.0774050727,
-0.2157025933,
0.202814579,
-0.3865995407,
-0.3339453638,
-0.1323986799,
0.1463262588,
0.1100256965,
0.1485296786,
0.175347805,
-0.6307145357,
0.2604338527,
0.077574268,
0.2229161412,
0.7022690773,
-0.0001109225,
0.1807844341,
0.4209491014,
-0.138756752,
-0.5919359326,
-0.2953983247,
-0.3683614433,
-0.3184560537,
0.1747525185,
-0.1460204124,
-0.1155983955,
0.0416297428,
-0.2645147741,
-0.4016982913,
0.2196302265,
0.445461452,
0.2117785513,
0.4712951183,
-0.1509928107,
-0.1280123591,
0.1274100989,
0.008658994,
-0.152763024,
0.29874596,
0.0759947896,
0.2464786768,
-0.0301849842,
0.4006466568,
-0.0477481037,
0.1930939853,
0.2172412574,
-0.0403115898,
-0.0638406873,
-0.2730312347,
0.0779682547,
0.226718843,
0.3892457187,
-0.3428207636,
-0.1372255981,
-0.4340850115,
-0.0550192744,
-0.4057791233,
0.2461038232,
-0.0120554157,
-0.2402932942,
0.0848755538,
-0.3027440608,
0.1529164463,
0.0393640846,
-0.1008399278,
-0.0583144948,
0.131554231,
-0.0259358864,
0.1768468916,
-0.0182864666,
-0.0394544825,
0.1186182871,
-0.2750137448,
-0.0770447254,
0.19798325,
-0.5796866417,
0.0617473572,
0.3563537896,
-0.483120203,
0.2248358876,
0.0766405985,
0.3723808825,
0.080845207,
0.1294206381,
-0.0054172724,
0.3990356326,
0.2017411888,
0.1839398146,
-0.244638294,
0.1665529013,
0.3514228165,
-0.0046332404,
-0.3092012703,
0.04556394,
-0.0928957462,
0.2623340786,
0.01355974,
0.31324175,
0.0522785038,
-0.3759044409,
0.1984405071,
-0.2598962784,
0.0621635541,
0.3526677191,
0.2470079064,
0.3124101758,
0.331681639,
-0.1649699211,
0.2566636205,
-0.1701622009,
-0.4501440823,
-0.2399167567,
-0.3115687966,
0.0298979804,
0.0585326105,
0.2430290431,
-0.4115731418,
0.2127866447,
0.1143841147,
0.2314707637,
-0.1508325785,
0.2350653708,
-0.3559949994,
0.2714754343,
0.4170612395,
0.2132245451,
0.3055962622,
0.2130861729,
-0.0781214535,
0.0865609944,
0.129298389,
-0.0135737322,
-0.3794959784,
0.1188297197,
0.2418162972,
-0.1854702681,
0.0091847852,
-0.1626184583,
0.3421089649,
0.0492593348,
-0.490398258,
0.1006153971,
-0.1393200457,
-0.1788207591,
-0.1388722658,
0.3767813444,
0.4191718996,
-0.3163486123,
-0.0631756335,
-0.2223776877,
-0.193345964,
0.3068186343,
0.0627037436,
-0.1867484152,
0.0545984358,
-0.1989075243,
-0.0324026197,
0.1652612686,
-0.1338233054,
-0.4505627453,
0.3839793801,
-0.1003186852,
0.4216831028,
0.0033683814,
0.0348957144,
0.0462129153,
-0.1179657355,
0.2082363665,
-0.0482203364,
-0.3429862857,
0.1301705837,
-0.2063286901,
0.0962787122,
0.1745321602,
0.0263378024,
0.1080549061,
0.1456775516,
0.1164151356,
-0.0307610482,
0.1964358538,
-0.0440107174,
0.0053362101,
0.2909403145,
0.042424418,
-0.0588182993,
0.0003673434,
-0.1810714304,
-0.4702011943,
0.3554163575,
0.2276430279,
0.0265538637,
0.0678977221,
0.0377305448,
-0.3046529293,
0.1419356167,
-0.2711747289,
-0.4771590233,
0.1949525177,
0.3907284439,
-0.111849308,
0.0888262168,
-0.2773434818,
0.3020510972,
-0.1696488857,
-0.1002231687,
-0.1528522074,
0.1263131201,
0.1340727061,
-0.3565649688,
-0.0337360017,
0.0897878706,
0.2519125044,
-0.134492889,
-0.2349993885,
0.4969179332,
0.1069905013,
0.0699906051,
-0.0781736672,
-0.1732121259,
0.1972212791,
-0.1314568669,
-0.2321658134,
0.4724212587,
0.3397765756,
-0.2434855998,
-0.1393342614,
0.1867936552,
-0.2051786184,
0.2564635575,
-0.0694207847,
0.0912936851,
0.328330636,
0.3197961748,
-0.0928376168,
-0.0212595537,
0.2077190578,
-0.1777403653,
0.1031239182,
-0.1610923707,
-0.2532595992,
-0.0428621955,
0.1946249902,
0.1955532432,
0.0406558849,
0.0529753938,
-0.3236098886,
-0.2086990476,
0.370659411,
0.0880204886,
0.4839419723,
0.0791207701,
0.2721227407,
0.0922640041,
-0.0106660463,
-0.1263323873,
0.2971057892,
0.0752388462,
0.0984971821,
0.3603755534,
0.2497459203,
-0.1204283088,
-0.4016781151,
-0.2251662761,
0.1358989775,
0.1336641014,
-0.3052349687,
0.0297693089,
-0.1282224357,
-0.2748435736,
0.1133073717,
-0.4021541178,
-0.2225445807,
-0.3337675631,
-0.2058945596,
0.3451241553,
-0.1469638497,
0.1498997509,
-0.1804753244,
-0.0882677585,
0.3082577586,
-0.0031161178,
-0.2322358787,
-0.1135622263,
-0.2594827712,
0.0321406573,
0.0412807539,
-0.3234795034,
0.4347480237,
-0.1234985888,
-0.1801847816,
-0.1512940675,
-0.0745448619,
0.1740905493,
0.0435855016,
0.200140059,
0.2743389904,
0.2197591811,
0.0392215997,
0.0045699924,
0.4241866469,
-0.2919014692,
0.0146438479,
0.3762077689,
0.2012004554,
0.2666825354,
-0.2297267318,
-0.2490313053,
-0.0779715776,
-0.4310796261,
-0.1742306203,
-0.0227722377,
0.0273635313,
0.4507271647,
0.2624841928,
0.3891988695,
0.3127646148,
-0.0566321127,
-0.3348746896,
-0.347517997,
0.13222377,
-0.1974762827,
-0.4097188115,
0.1144936532,
0.0011451766,
0.1664850712,
0.2781508565,
-0.3012994826,
0.0803641528,
-0.0408358686,
0.1188739836,
-0.0593021475,
-0.1120117456,
0.143274799,
-0.0613779277,
-0.1019272059,
-0.3338414729,
-0.1850919873,
-0.1276155412,
-0.152960524,
0.2324115038,
0.038183935,
0.5950307846,
0.2077816427,
0.5280632973,
0.4836460054,
0.058197163,
0.6157111526,
-0.2377378047,
0.2161287814,
-0.3673552871,
-0.3503070176,
0.2225525379,
-0.0085880756,
-0.1320838332,
0.2081882209,
-0.1470542848,
-0.2681729198,
-0.256749481,
0.0351036936,
-0.0647702813,
-0.1755144298,
0.0512215793,
-0.2642836869,
0.3024117351,
0.0359323844,
0.2061442435,
-0.2464565933,
-0.0574942306,
-0.2373394966,
0.0760810077,
-0.0045372359,
0.0064090714,
-0.296765238,
0.0214662477,
-0.5252022147,
0.3021186888,
0.2227876782,
0.615446806,
-0.0391719565,
-0.208869487,
0.0450495481,
0.0117578581,
0.5304385424,
-0.3789147735,
-0.0240583438,
0.2964759469,
-0.0950774625,
-0.4073811769,
-0.1102450266,
-0.2325183302,
0.3465292454,
0.2328931689,
0.1428346932,
-0.2224265337,
-0.0886223763,
0.1366080344,
0.1360026598,
-0.0751256347,
-0.1846506894,
-0.2278952301,
-0.2202229798,
-0.1945457458,
-0.1267377734,
0.0843012258,
0.2432257086,
-0.1949769557,
-0.0850350559,
-0.1033550948,
0.0288990885,
0.0844486132,
0.1044178158,
0.3788570464,
0.090336293,
0.2310872823,
0.3695779741,
0.101572305,
0.3100067377,
0.5074750185,
0.406558454,
-0.3184789419,
0.2045597434,
0.0775872469,
0.0856529549,
0.2882387638,
-0.1116833687,
-0.0276319236,
0.0777180046,
0.0934573263,
-0.2894924879,
0.1943800002,
0.2449226677,
-0.0539537072,
-0.1495430768,
-0.5760561824,
0.3336380422,
0.0304385871,
0.0183756948,
0.3064620495,
-0.2464930415,
-0.2605731785,
-0.0352296941,
-0.0546514988,
0.49818784,
0.1343331933,
0.0661568195,
0.4267182052,
-0.2779954076,
0.2107363343,
-0.1438205242,
0.2207974643,
-0.1879347265,
-0.3919573426,
-0.0941029191,
-0.1085411757,
0.0540995114,
-0.0021505831,
-0.2287914753,
0.2563298941,
0.0245752633,
0.2516515851,
0.0321384221,
0.0513759106,
-0.4211883843,
-0.1044378057,
-0.2310301512,
0.226688385,
0.0391742326,
0.0595657714,
-0.1965501904,
-0.1511450112,
0.2058586776,
-0.3431107998,
-0.2650854886,
-0.0005396307,
-0.2571266294,
0.0304906927,
-0.0789497644,
-0.5586482286,
-0.0092749521,
0.1646381617,
-0.1165742874,
-0.2574974,
-0.160361588,
0.0731906891,
0.1823070496,
0.4032895565,
-0.0304599926,
0.1647266597,
0.3220482469,
-0.0156900436,
-0.1203036904,
0.1713949293,
-0.2056287229,
-0.1386830509,
0.0792044848,
0.0525300242,
0.1477532983,
-0.1950286329,
0.0720986649,
-0.1244528592,
0.0610797107,
-0.2714120746,
0.1379991174,
-0.052292712,
-0.2443106472,
-0.0718857571,
-0.1764227748,
-0.1069567725,
-0.1404852271,
0.3965620995,
-0.1222571805,
0.2639792264,
0.5979732871,
0.2628352642,
-0.0699225888,
-0.2239042222,
0.2011473626,
0.0665024519,
-0.2591680884,
0.3576520085,
-0.0661279261,
-0.0084150583,
-0.0689551979,
0.37358585,
-0.013727692,
-0.0653007179,
-0.1425482929,
-0.2276574671,
-0.3390943408,
-0.0766484141,
-0.0648032278,
0.1809477657,
-0.0614873767,
0.0205044001,
0.344094485,
-0.2483291477,
-0.3373637795,
-0.2206483483,
-0.2257322073,
0.1367568523,
-0.1156359464,
0.0903353542,
0.2451534718,
-0.0245363321,
0.1401753128,
0.1833448112,
-0.0654684156,
-0.2514530718,
-0.0721648782,
0.0910970792,
-0.0126872677,
-0.2120139301,
-0.1004449278,
0.0691824108,
-0.3066589534,
-0.3149644732,
0.2542548776,
0.0261868164,
-0.0648498535,
0.3339466155,
0.1208941191,
0.2269125581,
-0.245801121,
-0.0012789546,
-0.0492912978,
-0.0714227408,
-0.2654005885,
0.1434953362,
0.0741448179,
0.0186536238,
-0.0137112811,
-0.0302396715,
-0.0359066501,
-0.0958979875,
0.3457254767,
-0.3809931278,
0.1985215396,
0.2853871584,
0.4326710403,
0.3073009551,
-0.2745676041,
-0.0601299778,
-0.0283833873,
0.2137220204,
-0.2702539563,
0.1047897637,
-0.1389293373,
0.3404974341,
0.1812907308,
0.1234543324,
0.0429618061,
-0.2800163627,
0.0771738738,
0.1745933592,
0.0768417642,
-0.1775954217,
0.2129437923,
0.4377634525,
-0.1620202661,
0.1636501253,
-0.0975023285,
0.0571440943,
0.0120125674,
0.4437313378,
-0.0766297877,
0.1632127166,
0.2037426531,
-0.136554718,
-0.0510566719,
-0.3139661849,
-0.2231898606,
0.2932851911,
-0.1478384435,
0.2211653292,
0.0607555732,
0.11484918,
-0.2439825237,
0.1240973026,
-0.3192912936,
-0.0808004886,
-0.1555944234,
0.0469757728,
-0.1781295836,
-0.1248733848,
-0.2028405368,
-0.1335260868,
0.150487572,
0.1290386617,
0.371265471,
0.0432593338,
-0.0071961023,
-0.6050089002,
-0.0662221909,
0.3256894052,
0.0365516096,
-0.2266713828,
0.2377026975,
0.425424546,
0.0902427882,
0.384297967,
0.3726783097,
0.3797658086,
0.3374566734,
-0.0666717291,
0.1129235327,
0.1543489695,
-0.1648840308,
-0.2762877345,
0.1785654724,
-0.0458155982,
0.2733044624,
0.3034487069,
0.1270705909,
-0.1446415186,
0.1170550808,
0.0449932441,
0.0575733855,
-0.6023665071,
0.4265976548,
-0.4701415896,
0.0185303986,
-0.1208023801,
-0.1203804016,
-0.2376077324,
0.0821255296,
0.2865522504,
0.0400105715,
0.2274748385,
-0.0990613252,
0.1067298278,
-0.1255406737,
0.2446667105,
-0.0027380604,
-0.2558124065,
-0.2028056979,
-0.1672923416,
-0.8009277582,
0.0148777813,
0.0856727809,
-0.1091408655,
0.1444783062,
0.1989770234,
-0.1189475358,
0.246401757,
0.3879630864,
-0.2339883447,
-0.1309392154,
0.3268942833,
-0.195360586,
-0.4079425037,
-0.4459079206,
-0.025074197,
-0.012066111,
-0.2429809421,
0.2650612891,
-0.2226770669,
0.1452894509,
0.1209751517,
-0.0283925533,
0.1159841269,
-0.0041817799,
0.3461862803,
0.1672823429,
0.314198494,
-0.1446936727,
0.1787154973,
-0.3299388587,
-0.1000358611,
-0.3050259352,
0.3060719967,
-0.1126584858,
0.4945883751,
-0.1233776659,
-0.0124990232,
-0.16372554,
0.2108145207,
0.2584313154,
-0.2667386532,
-0.3577259779,
0.2748012543,
-0.2798827291,
0.2512661815,
0.0318003856,
0.3652265966,
-0.0365185365,
0.1353163421,
-0.2697345018,
-0.5320449471,
0.4457721412,
-0.4308796823,
-0.3953134418,
-0.0651004463,
0.1863381565,
0.2452218682,
-0.2555918396,
-0.3518376946,
0.1235720217,
0.3564774096,
-0.1301044226,
-0.2069170475,
-0.0070770551,
-0.1155155003,
0.0543674976,
-0.0779214874,
0.1456418335,
0.1664126366,
-0.1576849371,
0.2604365349,
-0.0645065457
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Hi @severo, please note that "counter" dataset will be streamable (at least until it arrives at the missing file, error already in normal mode) once these PRs are merged:
- #2874
- #2876
- #2880
I have tested it. 😉 | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 40 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Hi @severo, please note that "counter" dataset will be streamable (at least until it arrives at the missing file, error already in normal mode) once these PRs are merged:
- #2874
- #2876
- #2880
I have tested it. 😉 | [
-0.4171532393,
-0.2417905629,
0.0004067235,
0.193667233,
0.1873791218,
0.05720447,
0.5056349039,
0.1059947759,
0.1942840368,
0.1353351176,
0.0698311776,
0.1297214031,
-0.2097094953,
0.3238827884,
0.0893112272,
0.0787797868,
0.0210813619,
0.1588885039,
0.0335766599,
0.0774050727,
-0.2157025933,
0.202814579,
-0.3865995407,
-0.3339453638,
-0.1323986799,
0.1463262588,
0.1100256965,
0.1485296786,
0.175347805,
-0.6307145357,
0.2604338527,
0.077574268,
0.2229161412,
0.7022690773,
-0.0001109225,
0.1807844341,
0.4209491014,
-0.138756752,
-0.5919359326,
-0.2953983247,
-0.3683614433,
-0.3184560537,
0.1747525185,
-0.1460204124,
-0.1155983955,
0.0416297428,
-0.2645147741,
-0.4016982913,
0.2196302265,
0.445461452,
0.2117785513,
0.4712951183,
-0.1509928107,
-0.1280123591,
0.1274100989,
0.008658994,
-0.152763024,
0.29874596,
0.0759947896,
0.2464786768,
-0.0301849842,
0.4006466568,
-0.0477481037,
0.1930939853,
0.2172412574,
-0.0403115898,
-0.0638406873,
-0.2730312347,
0.0779682547,
0.226718843,
0.3892457187,
-0.3428207636,
-0.1372255981,
-0.4340850115,
-0.0550192744,
-0.4057791233,
0.2461038232,
-0.0120554157,
-0.2402932942,
0.0848755538,
-0.3027440608,
0.1529164463,
0.0393640846,
-0.1008399278,
-0.0583144948,
0.131554231,
-0.0259358864,
0.1768468916,
-0.0182864666,
-0.0394544825,
0.1186182871,
-0.2750137448,
-0.0770447254,
0.19798325,
-0.5796866417,
0.0617473572,
0.3563537896,
-0.483120203,
0.2248358876,
0.0766405985,
0.3723808825,
0.080845207,
0.1294206381,
-0.0054172724,
0.3990356326,
0.2017411888,
0.1839398146,
-0.244638294,
0.1665529013,
0.3514228165,
-0.0046332404,
-0.3092012703,
0.04556394,
-0.0928957462,
0.2623340786,
0.01355974,
0.31324175,
0.0522785038,
-0.3759044409,
0.1984405071,
-0.2598962784,
0.0621635541,
0.3526677191,
0.2470079064,
0.3124101758,
0.331681639,
-0.1649699211,
0.2566636205,
-0.1701622009,
-0.4501440823,
-0.2399167567,
-0.3115687966,
0.0298979804,
0.0585326105,
0.2430290431,
-0.4115731418,
0.2127866447,
0.1143841147,
0.2314707637,
-0.1508325785,
0.2350653708,
-0.3559949994,
0.2714754343,
0.4170612395,
0.2132245451,
0.3055962622,
0.2130861729,
-0.0781214535,
0.0865609944,
0.129298389,
-0.0135737322,
-0.3794959784,
0.1188297197,
0.2418162972,
-0.1854702681,
0.0091847852,
-0.1626184583,
0.3421089649,
0.0492593348,
-0.490398258,
0.1006153971,
-0.1393200457,
-0.1788207591,
-0.1388722658,
0.3767813444,
0.4191718996,
-0.3163486123,
-0.0631756335,
-0.2223776877,
-0.193345964,
0.3068186343,
0.0627037436,
-0.1867484152,
0.0545984358,
-0.1989075243,
-0.0324026197,
0.1652612686,
-0.1338233054,
-0.4505627453,
0.3839793801,
-0.1003186852,
0.4216831028,
0.0033683814,
0.0348957144,
0.0462129153,
-0.1179657355,
0.2082363665,
-0.0482203364,
-0.3429862857,
0.1301705837,
-0.2063286901,
0.0962787122,
0.1745321602,
0.0263378024,
0.1080549061,
0.1456775516,
0.1164151356,
-0.0307610482,
0.1964358538,
-0.0440107174,
0.0053362101,
0.2909403145,
0.042424418,
-0.0588182993,
0.0003673434,
-0.1810714304,
-0.4702011943,
0.3554163575,
0.2276430279,
0.0265538637,
0.0678977221,
0.0377305448,
-0.3046529293,
0.1419356167,
-0.2711747289,
-0.4771590233,
0.1949525177,
0.3907284439,
-0.111849308,
0.0888262168,
-0.2773434818,
0.3020510972,
-0.1696488857,
-0.1002231687,
-0.1528522074,
0.1263131201,
0.1340727061,
-0.3565649688,
-0.0337360017,
0.0897878706,
0.2519125044,
-0.134492889,
-0.2349993885,
0.4969179332,
0.1069905013,
0.0699906051,
-0.0781736672,
-0.1732121259,
0.1972212791,
-0.1314568669,
-0.2321658134,
0.4724212587,
0.3397765756,
-0.2434855998,
-0.1393342614,
0.1867936552,
-0.2051786184,
0.2564635575,
-0.0694207847,
0.0912936851,
0.328330636,
0.3197961748,
-0.0928376168,
-0.0212595537,
0.2077190578,
-0.1777403653,
0.1031239182,
-0.1610923707,
-0.2532595992,
-0.0428621955,
0.1946249902,
0.1955532432,
0.0406558849,
0.0529753938,
-0.3236098886,
-0.2086990476,
0.370659411,
0.0880204886,
0.4839419723,
0.0791207701,
0.2721227407,
0.0922640041,
-0.0106660463,
-0.1263323873,
0.2971057892,
0.0752388462,
0.0984971821,
0.3603755534,
0.2497459203,
-0.1204283088,
-0.4016781151,
-0.2251662761,
0.1358989775,
0.1336641014,
-0.3052349687,
0.0297693089,
-0.1282224357,
-0.2748435736,
0.1133073717,
-0.4021541178,
-0.2225445807,
-0.3337675631,
-0.2058945596,
0.3451241553,
-0.1469638497,
0.1498997509,
-0.1804753244,
-0.0882677585,
0.3082577586,
-0.0031161178,
-0.2322358787,
-0.1135622263,
-0.2594827712,
0.0321406573,
0.0412807539,
-0.3234795034,
0.4347480237,
-0.1234985888,
-0.1801847816,
-0.1512940675,
-0.0745448619,
0.1740905493,
0.0435855016,
0.200140059,
0.2743389904,
0.2197591811,
0.0392215997,
0.0045699924,
0.4241866469,
-0.2919014692,
0.0146438479,
0.3762077689,
0.2012004554,
0.2666825354,
-0.2297267318,
-0.2490313053,
-0.0779715776,
-0.4310796261,
-0.1742306203,
-0.0227722377,
0.0273635313,
0.4507271647,
0.2624841928,
0.3891988695,
0.3127646148,
-0.0566321127,
-0.3348746896,
-0.347517997,
0.13222377,
-0.1974762827,
-0.4097188115,
0.1144936532,
0.0011451766,
0.1664850712,
0.2781508565,
-0.3012994826,
0.0803641528,
-0.0408358686,
0.1188739836,
-0.0593021475,
-0.1120117456,
0.143274799,
-0.0613779277,
-0.1019272059,
-0.3338414729,
-0.1850919873,
-0.1276155412,
-0.152960524,
0.2324115038,
0.038183935,
0.5950307846,
0.2077816427,
0.5280632973,
0.4836460054,
0.058197163,
0.6157111526,
-0.2377378047,
0.2161287814,
-0.3673552871,
-0.3503070176,
0.2225525379,
-0.0085880756,
-0.1320838332,
0.2081882209,
-0.1470542848,
-0.2681729198,
-0.256749481,
0.0351036936,
-0.0647702813,
-0.1755144298,
0.0512215793,
-0.2642836869,
0.3024117351,
0.0359323844,
0.2061442435,
-0.2464565933,
-0.0574942306,
-0.2373394966,
0.0760810077,
-0.0045372359,
0.0064090714,
-0.296765238,
0.0214662477,
-0.5252022147,
0.3021186888,
0.2227876782,
0.615446806,
-0.0391719565,
-0.208869487,
0.0450495481,
0.0117578581,
0.5304385424,
-0.3789147735,
-0.0240583438,
0.2964759469,
-0.0950774625,
-0.4073811769,
-0.1102450266,
-0.2325183302,
0.3465292454,
0.2328931689,
0.1428346932,
-0.2224265337,
-0.0886223763,
0.1366080344,
0.1360026598,
-0.0751256347,
-0.1846506894,
-0.2278952301,
-0.2202229798,
-0.1945457458,
-0.1267377734,
0.0843012258,
0.2432257086,
-0.1949769557,
-0.0850350559,
-0.1033550948,
0.0288990885,
0.0844486132,
0.1044178158,
0.3788570464,
0.090336293,
0.2310872823,
0.3695779741,
0.101572305,
0.3100067377,
0.5074750185,
0.406558454,
-0.3184789419,
0.2045597434,
0.0775872469,
0.0856529549,
0.2882387638,
-0.1116833687,
-0.0276319236,
0.0777180046,
0.0934573263,
-0.2894924879,
0.1943800002,
0.2449226677,
-0.0539537072,
-0.1495430768,
-0.5760561824,
0.3336380422,
0.0304385871,
0.0183756948,
0.3064620495,
-0.2464930415,
-0.2605731785,
-0.0352296941,
-0.0546514988,
0.49818784,
0.1343331933,
0.0661568195,
0.4267182052,
-0.2779954076,
0.2107363343,
-0.1438205242,
0.2207974643,
-0.1879347265,
-0.3919573426,
-0.0941029191,
-0.1085411757,
0.0540995114,
-0.0021505831,
-0.2287914753,
0.2563298941,
0.0245752633,
0.2516515851,
0.0321384221,
0.0513759106,
-0.4211883843,
-0.1044378057,
-0.2310301512,
0.226688385,
0.0391742326,
0.0595657714,
-0.1965501904,
-0.1511450112,
0.2058586776,
-0.3431107998,
-0.2650854886,
-0.0005396307,
-0.2571266294,
0.0304906927,
-0.0789497644,
-0.5586482286,
-0.0092749521,
0.1646381617,
-0.1165742874,
-0.2574974,
-0.160361588,
0.0731906891,
0.1823070496,
0.4032895565,
-0.0304599926,
0.1647266597,
0.3220482469,
-0.0156900436,
-0.1203036904,
0.1713949293,
-0.2056287229,
-0.1386830509,
0.0792044848,
0.0525300242,
0.1477532983,
-0.1950286329,
0.0720986649,
-0.1244528592,
0.0610797107,
-0.2714120746,
0.1379991174,
-0.052292712,
-0.2443106472,
-0.0718857571,
-0.1764227748,
-0.1069567725,
-0.1404852271,
0.3965620995,
-0.1222571805,
0.2639792264,
0.5979732871,
0.2628352642,
-0.0699225888,
-0.2239042222,
0.2011473626,
0.0665024519,
-0.2591680884,
0.3576520085,
-0.0661279261,
-0.0084150583,
-0.0689551979,
0.37358585,
-0.013727692,
-0.0653007179,
-0.1425482929,
-0.2276574671,
-0.3390943408,
-0.0766484141,
-0.0648032278,
0.1809477657,
-0.0614873767,
0.0205044001,
0.344094485,
-0.2483291477,
-0.3373637795,
-0.2206483483,
-0.2257322073,
0.1367568523,
-0.1156359464,
0.0903353542,
0.2451534718,
-0.0245363321,
0.1401753128,
0.1833448112,
-0.0654684156,
-0.2514530718,
-0.0721648782,
0.0910970792,
-0.0126872677,
-0.2120139301,
-0.1004449278,
0.0691824108,
-0.3066589534,
-0.3149644732,
0.2542548776,
0.0261868164,
-0.0648498535,
0.3339466155,
0.1208941191,
0.2269125581,
-0.245801121,
-0.0012789546,
-0.0492912978,
-0.0714227408,
-0.2654005885,
0.1434953362,
0.0741448179,
0.0186536238,
-0.0137112811,
-0.0302396715,
-0.0359066501,
-0.0958979875,
0.3457254767,
-0.3809931278,
0.1985215396,
0.2853871584,
0.4326710403,
0.3073009551,
-0.2745676041,
-0.0601299778,
-0.0283833873,
0.2137220204,
-0.2702539563,
0.1047897637,
-0.1389293373,
0.3404974341,
0.1812907308,
0.1234543324,
0.0429618061,
-0.2800163627,
0.0771738738,
0.1745933592,
0.0768417642,
-0.1775954217,
0.2129437923,
0.4377634525,
-0.1620202661,
0.1636501253,
-0.0975023285,
0.0571440943,
0.0120125674,
0.4437313378,
-0.0766297877,
0.1632127166,
0.2037426531,
-0.136554718,
-0.0510566719,
-0.3139661849,
-0.2231898606,
0.2932851911,
-0.1478384435,
0.2211653292,
0.0607555732,
0.11484918,
-0.2439825237,
0.1240973026,
-0.3192912936,
-0.0808004886,
-0.1555944234,
0.0469757728,
-0.1781295836,
-0.1248733848,
-0.2028405368,
-0.1335260868,
0.150487572,
0.1290386617,
0.371265471,
0.0432593338,
-0.0071961023,
-0.6050089002,
-0.0662221909,
0.3256894052,
0.0365516096,
-0.2266713828,
0.2377026975,
0.425424546,
0.0902427882,
0.384297967,
0.3726783097,
0.3797658086,
0.3374566734,
-0.0666717291,
0.1129235327,
0.1543489695,
-0.1648840308,
-0.2762877345,
0.1785654724,
-0.0458155982,
0.2733044624,
0.3034487069,
0.1270705909,
-0.1446415186,
0.1170550808,
0.0449932441,
0.0575733855,
-0.6023665071,
0.4265976548,
-0.4701415896,
0.0185303986,
-0.1208023801,
-0.1203804016,
-0.2376077324,
0.0821255296,
0.2865522504,
0.0400105715,
0.2274748385,
-0.0990613252,
0.1067298278,
-0.1255406737,
0.2446667105,
-0.0027380604,
-0.2558124065,
-0.2028056979,
-0.1672923416,
-0.8009277582,
0.0148777813,
0.0856727809,
-0.1091408655,
0.1444783062,
0.1989770234,
-0.1189475358,
0.246401757,
0.3879630864,
-0.2339883447,
-0.1309392154,
0.3268942833,
-0.195360586,
-0.4079425037,
-0.4459079206,
-0.025074197,
-0.012066111,
-0.2429809421,
0.2650612891,
-0.2226770669,
0.1452894509,
0.1209751517,
-0.0283925533,
0.1159841269,
-0.0041817799,
0.3461862803,
0.1672823429,
0.314198494,
-0.1446936727,
0.1787154973,
-0.3299388587,
-0.1000358611,
-0.3050259352,
0.3060719967,
-0.1126584858,
0.4945883751,
-0.1233776659,
-0.0124990232,
-0.16372554,
0.2108145207,
0.2584313154,
-0.2667386532,
-0.3577259779,
0.2748012543,
-0.2798827291,
0.2512661815,
0.0318003856,
0.3652265966,
-0.0365185365,
0.1353163421,
-0.2697345018,
-0.5320449471,
0.4457721412,
-0.4308796823,
-0.3953134418,
-0.0651004463,
0.1863381565,
0.2452218682,
-0.2555918396,
-0.3518376946,
0.1235720217,
0.3564774096,
-0.1301044226,
-0.2069170475,
-0.0070770551,
-0.1155155003,
0.0543674976,
-0.0779214874,
0.1456418335,
0.1664126366,
-0.1576849371,
0.2604365349,
-0.0645065457
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Now (on master), we get:
```
import datasets as ds
ds.load_dataset('counter', split="train", streaming=False)
```
```
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets/src/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
The error is now the same with or without streaming. I close the issue, thanks @albertvillanova and @lhoestq!
| ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 191 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Now (on master), we get:
```
import datasets as ds
ds.load_dataset('counter', split="train", streaming=False)
```
```
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets/src/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
The error is now the same with or without streaming. I close the issue, thanks @albertvillanova and @lhoestq!
| [
-0.4171532393,
-0.2417905629,
0.0004067235,
0.193667233,
0.1873791218,
0.05720447,
0.5056349039,
0.1059947759,
0.1942840368,
0.1353351176,
0.0698311776,
0.1297214031,
-0.2097094953,
0.3238827884,
0.0893112272,
0.0787797868,
0.0210813619,
0.1588885039,
0.0335766599,
0.0774050727,
-0.2157025933,
0.202814579,
-0.3865995407,
-0.3339453638,
-0.1323986799,
0.1463262588,
0.1100256965,
0.1485296786,
0.175347805,
-0.6307145357,
0.2604338527,
0.077574268,
0.2229161412,
0.7022690773,
-0.0001109225,
0.1807844341,
0.4209491014,
-0.138756752,
-0.5919359326,
-0.2953983247,
-0.3683614433,
-0.3184560537,
0.1747525185,
-0.1460204124,
-0.1155983955,
0.0416297428,
-0.2645147741,
-0.4016982913,
0.2196302265,
0.445461452,
0.2117785513,
0.4712951183,
-0.1509928107,
-0.1280123591,
0.1274100989,
0.008658994,
-0.152763024,
0.29874596,
0.0759947896,
0.2464786768,
-0.0301849842,
0.4006466568,
-0.0477481037,
0.1930939853,
0.2172412574,
-0.0403115898,
-0.0638406873,
-0.2730312347,
0.0779682547,
0.226718843,
0.3892457187,
-0.3428207636,
-0.1372255981,
-0.4340850115,
-0.0550192744,
-0.4057791233,
0.2461038232,
-0.0120554157,
-0.2402932942,
0.0848755538,
-0.3027440608,
0.1529164463,
0.0393640846,
-0.1008399278,
-0.0583144948,
0.131554231,
-0.0259358864,
0.1768468916,
-0.0182864666,
-0.0394544825,
0.1186182871,
-0.2750137448,
-0.0770447254,
0.19798325,
-0.5796866417,
0.0617473572,
0.3563537896,
-0.483120203,
0.2248358876,
0.0766405985,
0.3723808825,
0.080845207,
0.1294206381,
-0.0054172724,
0.3990356326,
0.2017411888,
0.1839398146,
-0.244638294,
0.1665529013,
0.3514228165,
-0.0046332404,
-0.3092012703,
0.04556394,
-0.0928957462,
0.2623340786,
0.01355974,
0.31324175,
0.0522785038,
-0.3759044409,
0.1984405071,
-0.2598962784,
0.0621635541,
0.3526677191,
0.2470079064,
0.3124101758,
0.331681639,
-0.1649699211,
0.2566636205,
-0.1701622009,
-0.4501440823,
-0.2399167567,
-0.3115687966,
0.0298979804,
0.0585326105,
0.2430290431,
-0.4115731418,
0.2127866447,
0.1143841147,
0.2314707637,
-0.1508325785,
0.2350653708,
-0.3559949994,
0.2714754343,
0.4170612395,
0.2132245451,
0.3055962622,
0.2130861729,
-0.0781214535,
0.0865609944,
0.129298389,
-0.0135737322,
-0.3794959784,
0.1188297197,
0.2418162972,
-0.1854702681,
0.0091847852,
-0.1626184583,
0.3421089649,
0.0492593348,
-0.490398258,
0.1006153971,
-0.1393200457,
-0.1788207591,
-0.1388722658,
0.3767813444,
0.4191718996,
-0.3163486123,
-0.0631756335,
-0.2223776877,
-0.193345964,
0.3068186343,
0.0627037436,
-0.1867484152,
0.0545984358,
-0.1989075243,
-0.0324026197,
0.1652612686,
-0.1338233054,
-0.4505627453,
0.3839793801,
-0.1003186852,
0.4216831028,
0.0033683814,
0.0348957144,
0.0462129153,
-0.1179657355,
0.2082363665,
-0.0482203364,
-0.3429862857,
0.1301705837,
-0.2063286901,
0.0962787122,
0.1745321602,
0.0263378024,
0.1080549061,
0.1456775516,
0.1164151356,
-0.0307610482,
0.1964358538,
-0.0440107174,
0.0053362101,
0.2909403145,
0.042424418,
-0.0588182993,
0.0003673434,
-0.1810714304,
-0.4702011943,
0.3554163575,
0.2276430279,
0.0265538637,
0.0678977221,
0.0377305448,
-0.3046529293,
0.1419356167,
-0.2711747289,
-0.4771590233,
0.1949525177,
0.3907284439,
-0.111849308,
0.0888262168,
-0.2773434818,
0.3020510972,
-0.1696488857,
-0.1002231687,
-0.1528522074,
0.1263131201,
0.1340727061,
-0.3565649688,
-0.0337360017,
0.0897878706,
0.2519125044,
-0.134492889,
-0.2349993885,
0.4969179332,
0.1069905013,
0.0699906051,
-0.0781736672,
-0.1732121259,
0.1972212791,
-0.1314568669,
-0.2321658134,
0.4724212587,
0.3397765756,
-0.2434855998,
-0.1393342614,
0.1867936552,
-0.2051786184,
0.2564635575,
-0.0694207847,
0.0912936851,
0.328330636,
0.3197961748,
-0.0928376168,
-0.0212595537,
0.2077190578,
-0.1777403653,
0.1031239182,
-0.1610923707,
-0.2532595992,
-0.0428621955,
0.1946249902,
0.1955532432,
0.0406558849,
0.0529753938,
-0.3236098886,
-0.2086990476,
0.370659411,
0.0880204886,
0.4839419723,
0.0791207701,
0.2721227407,
0.0922640041,
-0.0106660463,
-0.1263323873,
0.2971057892,
0.0752388462,
0.0984971821,
0.3603755534,
0.2497459203,
-0.1204283088,
-0.4016781151,
-0.2251662761,
0.1358989775,
0.1336641014,
-0.3052349687,
0.0297693089,
-0.1282224357,
-0.2748435736,
0.1133073717,
-0.4021541178,
-0.2225445807,
-0.3337675631,
-0.2058945596,
0.3451241553,
-0.1469638497,
0.1498997509,
-0.1804753244,
-0.0882677585,
0.3082577586,
-0.0031161178,
-0.2322358787,
-0.1135622263,
-0.2594827712,
0.0321406573,
0.0412807539,
-0.3234795034,
0.4347480237,
-0.1234985888,
-0.1801847816,
-0.1512940675,
-0.0745448619,
0.1740905493,
0.0435855016,
0.200140059,
0.2743389904,
0.2197591811,
0.0392215997,
0.0045699924,
0.4241866469,
-0.2919014692,
0.0146438479,
0.3762077689,
0.2012004554,
0.2666825354,
-0.2297267318,
-0.2490313053,
-0.0779715776,
-0.4310796261,
-0.1742306203,
-0.0227722377,
0.0273635313,
0.4507271647,
0.2624841928,
0.3891988695,
0.3127646148,
-0.0566321127,
-0.3348746896,
-0.347517997,
0.13222377,
-0.1974762827,
-0.4097188115,
0.1144936532,
0.0011451766,
0.1664850712,
0.2781508565,
-0.3012994826,
0.0803641528,
-0.0408358686,
0.1188739836,
-0.0593021475,
-0.1120117456,
0.143274799,
-0.0613779277,
-0.1019272059,
-0.3338414729,
-0.1850919873,
-0.1276155412,
-0.152960524,
0.2324115038,
0.038183935,
0.5950307846,
0.2077816427,
0.5280632973,
0.4836460054,
0.058197163,
0.6157111526,
-0.2377378047,
0.2161287814,
-0.3673552871,
-0.3503070176,
0.2225525379,
-0.0085880756,
-0.1320838332,
0.2081882209,
-0.1470542848,
-0.2681729198,
-0.256749481,
0.0351036936,
-0.0647702813,
-0.1755144298,
0.0512215793,
-0.2642836869,
0.3024117351,
0.0359323844,
0.2061442435,
-0.2464565933,
-0.0574942306,
-0.2373394966,
0.0760810077,
-0.0045372359,
0.0064090714,
-0.296765238,
0.0214662477,
-0.5252022147,
0.3021186888,
0.2227876782,
0.615446806,
-0.0391719565,
-0.208869487,
0.0450495481,
0.0117578581,
0.5304385424,
-0.3789147735,
-0.0240583438,
0.2964759469,
-0.0950774625,
-0.4073811769,
-0.1102450266,
-0.2325183302,
0.3465292454,
0.2328931689,
0.1428346932,
-0.2224265337,
-0.0886223763,
0.1366080344,
0.1360026598,
-0.0751256347,
-0.1846506894,
-0.2278952301,
-0.2202229798,
-0.1945457458,
-0.1267377734,
0.0843012258,
0.2432257086,
-0.1949769557,
-0.0850350559,
-0.1033550948,
0.0288990885,
0.0844486132,
0.1044178158,
0.3788570464,
0.090336293,
0.2310872823,
0.3695779741,
0.101572305,
0.3100067377,
0.5074750185,
0.406558454,
-0.3184789419,
0.2045597434,
0.0775872469,
0.0856529549,
0.2882387638,
-0.1116833687,
-0.0276319236,
0.0777180046,
0.0934573263,
-0.2894924879,
0.1943800002,
0.2449226677,
-0.0539537072,
-0.1495430768,
-0.5760561824,
0.3336380422,
0.0304385871,
0.0183756948,
0.3064620495,
-0.2464930415,
-0.2605731785,
-0.0352296941,
-0.0546514988,
0.49818784,
0.1343331933,
0.0661568195,
0.4267182052,
-0.2779954076,
0.2107363343,
-0.1438205242,
0.2207974643,
-0.1879347265,
-0.3919573426,
-0.0941029191,
-0.1085411757,
0.0540995114,
-0.0021505831,
-0.2287914753,
0.2563298941,
0.0245752633,
0.2516515851,
0.0321384221,
0.0513759106,
-0.4211883843,
-0.1044378057,
-0.2310301512,
0.226688385,
0.0391742326,
0.0595657714,
-0.1965501904,
-0.1511450112,
0.2058586776,
-0.3431107998,
-0.2650854886,
-0.0005396307,
-0.2571266294,
0.0304906927,
-0.0789497644,
-0.5586482286,
-0.0092749521,
0.1646381617,
-0.1165742874,
-0.2574974,
-0.160361588,
0.0731906891,
0.1823070496,
0.4032895565,
-0.0304599926,
0.1647266597,
0.3220482469,
-0.0156900436,
-0.1203036904,
0.1713949293,
-0.2056287229,
-0.1386830509,
0.0792044848,
0.0525300242,
0.1477532983,
-0.1950286329,
0.0720986649,
-0.1244528592,
0.0610797107,
-0.2714120746,
0.1379991174,
-0.052292712,
-0.2443106472,
-0.0718857571,
-0.1764227748,
-0.1069567725,
-0.1404852271,
0.3965620995,
-0.1222571805,
0.2639792264,
0.5979732871,
0.2628352642,
-0.0699225888,
-0.2239042222,
0.2011473626,
0.0665024519,
-0.2591680884,
0.3576520085,
-0.0661279261,
-0.0084150583,
-0.0689551979,
0.37358585,
-0.013727692,
-0.0653007179,
-0.1425482929,
-0.2276574671,
-0.3390943408,
-0.0766484141,
-0.0648032278,
0.1809477657,
-0.0614873767,
0.0205044001,
0.344094485,
-0.2483291477,
-0.3373637795,
-0.2206483483,
-0.2257322073,
0.1367568523,
-0.1156359464,
0.0903353542,
0.2451534718,
-0.0245363321,
0.1401753128,
0.1833448112,
-0.0654684156,
-0.2514530718,
-0.0721648782,
0.0910970792,
-0.0126872677,
-0.2120139301,
-0.1004449278,
0.0691824108,
-0.3066589534,
-0.3149644732,
0.2542548776,
0.0261868164,
-0.0648498535,
0.3339466155,
0.1208941191,
0.2269125581,
-0.245801121,
-0.0012789546,
-0.0492912978,
-0.0714227408,
-0.2654005885,
0.1434953362,
0.0741448179,
0.0186536238,
-0.0137112811,
-0.0302396715,
-0.0359066501,
-0.0958979875,
0.3457254767,
-0.3809931278,
0.1985215396,
0.2853871584,
0.4326710403,
0.3073009551,
-0.2745676041,
-0.0601299778,
-0.0283833873,
0.2137220204,
-0.2702539563,
0.1047897637,
-0.1389293373,
0.3404974341,
0.1812907308,
0.1234543324,
0.0429618061,
-0.2800163627,
0.0771738738,
0.1745933592,
0.0768417642,
-0.1775954217,
0.2129437923,
0.4377634525,
-0.1620202661,
0.1636501253,
-0.0975023285,
0.0571440943,
0.0120125674,
0.4437313378,
-0.0766297877,
0.1632127166,
0.2037426531,
-0.136554718,
-0.0510566719,
-0.3139661849,
-0.2231898606,
0.2932851911,
-0.1478384435,
0.2211653292,
0.0607555732,
0.11484918,
-0.2439825237,
0.1240973026,
-0.3192912936,
-0.0808004886,
-0.1555944234,
0.0469757728,
-0.1781295836,
-0.1248733848,
-0.2028405368,
-0.1335260868,
0.150487572,
0.1290386617,
0.371265471,
0.0432593338,
-0.0071961023,
-0.6050089002,
-0.0662221909,
0.3256894052,
0.0365516096,
-0.2266713828,
0.2377026975,
0.425424546,
0.0902427882,
0.384297967,
0.3726783097,
0.3797658086,
0.3374566734,
-0.0666717291,
0.1129235327,
0.1543489695,
-0.1648840308,
-0.2762877345,
0.1785654724,
-0.0458155982,
0.2733044624,
0.3034487069,
0.1270705909,
-0.1446415186,
0.1170550808,
0.0449932441,
0.0575733855,
-0.6023665071,
0.4265976548,
-0.4701415896,
0.0185303986,
-0.1208023801,
-0.1203804016,
-0.2376077324,
0.0821255296,
0.2865522504,
0.0400105715,
0.2274748385,
-0.0990613252,
0.1067298278,
-0.1255406737,
0.2446667105,
-0.0027380604,
-0.2558124065,
-0.2028056979,
-0.1672923416,
-0.8009277582,
0.0148777813,
0.0856727809,
-0.1091408655,
0.1444783062,
0.1989770234,
-0.1189475358,
0.246401757,
0.3879630864,
-0.2339883447,
-0.1309392154,
0.3268942833,
-0.195360586,
-0.4079425037,
-0.4459079206,
-0.025074197,
-0.012066111,
-0.2429809421,
0.2650612891,
-0.2226770669,
0.1452894509,
0.1209751517,
-0.0283925533,
0.1159841269,
-0.0041817799,
0.3461862803,
0.1672823429,
0.314198494,
-0.1446936727,
0.1787154973,
-0.3299388587,
-0.1000358611,
-0.3050259352,
0.3060719967,
-0.1126584858,
0.4945883751,
-0.1233776659,
-0.0124990232,
-0.16372554,
0.2108145207,
0.2584313154,
-0.2667386532,
-0.3577259779,
0.2748012543,
-0.2798827291,
0.2512661815,
0.0318003856,
0.3652265966,
-0.0365185365,
0.1353163421,
-0.2697345018,
-0.5320449471,
0.4457721412,
-0.4308796823,
-0.3953134418,
-0.0651004463,
0.1863381565,
0.2452218682,
-0.2555918396,
-0.3518376946,
0.1235720217,
0.3564774096,
-0.1301044226,
-0.2069170475,
-0.0070770551,
-0.1155155003,
0.0543674976,
-0.0779214874,
0.1456418335,
0.1664126366,
-0.1576849371,
0.2604365349,
-0.0645065457
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Note that we might want to open an issue to fix the "counter" dataset by itself, but I let it up to you. | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 23 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Note that we might want to open an issue to fix the "counter" dataset by itself, but I let it up to you. | [
-0.4171532393,
-0.2417905629,
0.0004067235,
0.193667233,
0.1873791218,
0.05720447,
0.5056349039,
0.1059947759,
0.1942840368,
0.1353351176,
0.0698311776,
0.1297214031,
-0.2097094953,
0.3238827884,
0.0893112272,
0.0787797868,
0.0210813619,
0.1588885039,
0.0335766599,
0.0774050727,
-0.2157025933,
0.202814579,
-0.3865995407,
-0.3339453638,
-0.1323986799,
0.1463262588,
0.1100256965,
0.1485296786,
0.175347805,
-0.6307145357,
0.2604338527,
0.077574268,
0.2229161412,
0.7022690773,
-0.0001109225,
0.1807844341,
0.4209491014,
-0.138756752,
-0.5919359326,
-0.2953983247,
-0.3683614433,
-0.3184560537,
0.1747525185,
-0.1460204124,
-0.1155983955,
0.0416297428,
-0.2645147741,
-0.4016982913,
0.2196302265,
0.445461452,
0.2117785513,
0.4712951183,
-0.1509928107,
-0.1280123591,
0.1274100989,
0.008658994,
-0.152763024,
0.29874596,
0.0759947896,
0.2464786768,
-0.0301849842,
0.4006466568,
-0.0477481037,
0.1930939853,
0.2172412574,
-0.0403115898,
-0.0638406873,
-0.2730312347,
0.0779682547,
0.226718843,
0.3892457187,
-0.3428207636,
-0.1372255981,
-0.4340850115,
-0.0550192744,
-0.4057791233,
0.2461038232,
-0.0120554157,
-0.2402932942,
0.0848755538,
-0.3027440608,
0.1529164463,
0.0393640846,
-0.1008399278,
-0.0583144948,
0.131554231,
-0.0259358864,
0.1768468916,
-0.0182864666,
-0.0394544825,
0.1186182871,
-0.2750137448,
-0.0770447254,
0.19798325,
-0.5796866417,
0.0617473572,
0.3563537896,
-0.483120203,
0.2248358876,
0.0766405985,
0.3723808825,
0.080845207,
0.1294206381,
-0.0054172724,
0.3990356326,
0.2017411888,
0.1839398146,
-0.244638294,
0.1665529013,
0.3514228165,
-0.0046332404,
-0.3092012703,
0.04556394,
-0.0928957462,
0.2623340786,
0.01355974,
0.31324175,
0.0522785038,
-0.3759044409,
0.1984405071,
-0.2598962784,
0.0621635541,
0.3526677191,
0.2470079064,
0.3124101758,
0.331681639,
-0.1649699211,
0.2566636205,
-0.1701622009,
-0.4501440823,
-0.2399167567,
-0.3115687966,
0.0298979804,
0.0585326105,
0.2430290431,
-0.4115731418,
0.2127866447,
0.1143841147,
0.2314707637,
-0.1508325785,
0.2350653708,
-0.3559949994,
0.2714754343,
0.4170612395,
0.2132245451,
0.3055962622,
0.2130861729,
-0.0781214535,
0.0865609944,
0.129298389,
-0.0135737322,
-0.3794959784,
0.1188297197,
0.2418162972,
-0.1854702681,
0.0091847852,
-0.1626184583,
0.3421089649,
0.0492593348,
-0.490398258,
0.1006153971,
-0.1393200457,
-0.1788207591,
-0.1388722658,
0.3767813444,
0.4191718996,
-0.3163486123,
-0.0631756335,
-0.2223776877,
-0.193345964,
0.3068186343,
0.0627037436,
-0.1867484152,
0.0545984358,
-0.1989075243,
-0.0324026197,
0.1652612686,
-0.1338233054,
-0.4505627453,
0.3839793801,
-0.1003186852,
0.4216831028,
0.0033683814,
0.0348957144,
0.0462129153,
-0.1179657355,
0.2082363665,
-0.0482203364,
-0.3429862857,
0.1301705837,
-0.2063286901,
0.0962787122,
0.1745321602,
0.0263378024,
0.1080549061,
0.1456775516,
0.1164151356,
-0.0307610482,
0.1964358538,
-0.0440107174,
0.0053362101,
0.2909403145,
0.042424418,
-0.0588182993,
0.0003673434,
-0.1810714304,
-0.4702011943,
0.3554163575,
0.2276430279,
0.0265538637,
0.0678977221,
0.0377305448,
-0.3046529293,
0.1419356167,
-0.2711747289,
-0.4771590233,
0.1949525177,
0.3907284439,
-0.111849308,
0.0888262168,
-0.2773434818,
0.3020510972,
-0.1696488857,
-0.1002231687,
-0.1528522074,
0.1263131201,
0.1340727061,
-0.3565649688,
-0.0337360017,
0.0897878706,
0.2519125044,
-0.134492889,
-0.2349993885,
0.4969179332,
0.1069905013,
0.0699906051,
-0.0781736672,
-0.1732121259,
0.1972212791,
-0.1314568669,
-0.2321658134,
0.4724212587,
0.3397765756,
-0.2434855998,
-0.1393342614,
0.1867936552,
-0.2051786184,
0.2564635575,
-0.0694207847,
0.0912936851,
0.328330636,
0.3197961748,
-0.0928376168,
-0.0212595537,
0.2077190578,
-0.1777403653,
0.1031239182,
-0.1610923707,
-0.2532595992,
-0.0428621955,
0.1946249902,
0.1955532432,
0.0406558849,
0.0529753938,
-0.3236098886,
-0.2086990476,
0.370659411,
0.0880204886,
0.4839419723,
0.0791207701,
0.2721227407,
0.0922640041,
-0.0106660463,
-0.1263323873,
0.2971057892,
0.0752388462,
0.0984971821,
0.3603755534,
0.2497459203,
-0.1204283088,
-0.4016781151,
-0.2251662761,
0.1358989775,
0.1336641014,
-0.3052349687,
0.0297693089,
-0.1282224357,
-0.2748435736,
0.1133073717,
-0.4021541178,
-0.2225445807,
-0.3337675631,
-0.2058945596,
0.3451241553,
-0.1469638497,
0.1498997509,
-0.1804753244,
-0.0882677585,
0.3082577586,
-0.0031161178,
-0.2322358787,
-0.1135622263,
-0.2594827712,
0.0321406573,
0.0412807539,
-0.3234795034,
0.4347480237,
-0.1234985888,
-0.1801847816,
-0.1512940675,
-0.0745448619,
0.1740905493,
0.0435855016,
0.200140059,
0.2743389904,
0.2197591811,
0.0392215997,
0.0045699924,
0.4241866469,
-0.2919014692,
0.0146438479,
0.3762077689,
0.2012004554,
0.2666825354,
-0.2297267318,
-0.2490313053,
-0.0779715776,
-0.4310796261,
-0.1742306203,
-0.0227722377,
0.0273635313,
0.4507271647,
0.2624841928,
0.3891988695,
0.3127646148,
-0.0566321127,
-0.3348746896,
-0.347517997,
0.13222377,
-0.1974762827,
-0.4097188115,
0.1144936532,
0.0011451766,
0.1664850712,
0.2781508565,
-0.3012994826,
0.0803641528,
-0.0408358686,
0.1188739836,
-0.0593021475,
-0.1120117456,
0.143274799,
-0.0613779277,
-0.1019272059,
-0.3338414729,
-0.1850919873,
-0.1276155412,
-0.152960524,
0.2324115038,
0.038183935,
0.5950307846,
0.2077816427,
0.5280632973,
0.4836460054,
0.058197163,
0.6157111526,
-0.2377378047,
0.2161287814,
-0.3673552871,
-0.3503070176,
0.2225525379,
-0.0085880756,
-0.1320838332,
0.2081882209,
-0.1470542848,
-0.2681729198,
-0.256749481,
0.0351036936,
-0.0647702813,
-0.1755144298,
0.0512215793,
-0.2642836869,
0.3024117351,
0.0359323844,
0.2061442435,
-0.2464565933,
-0.0574942306,
-0.2373394966,
0.0760810077,
-0.0045372359,
0.0064090714,
-0.296765238,
0.0214662477,
-0.5252022147,
0.3021186888,
0.2227876782,
0.615446806,
-0.0391719565,
-0.208869487,
0.0450495481,
0.0117578581,
0.5304385424,
-0.3789147735,
-0.0240583438,
0.2964759469,
-0.0950774625,
-0.4073811769,
-0.1102450266,
-0.2325183302,
0.3465292454,
0.2328931689,
0.1428346932,
-0.2224265337,
-0.0886223763,
0.1366080344,
0.1360026598,
-0.0751256347,
-0.1846506894,
-0.2278952301,
-0.2202229798,
-0.1945457458,
-0.1267377734,
0.0843012258,
0.2432257086,
-0.1949769557,
-0.0850350559,
-0.1033550948,
0.0288990885,
0.0844486132,
0.1044178158,
0.3788570464,
0.090336293,
0.2310872823,
0.3695779741,
0.101572305,
0.3100067377,
0.5074750185,
0.406558454,
-0.3184789419,
0.2045597434,
0.0775872469,
0.0856529549,
0.2882387638,
-0.1116833687,
-0.0276319236,
0.0777180046,
0.0934573263,
-0.2894924879,
0.1943800002,
0.2449226677,
-0.0539537072,
-0.1495430768,
-0.5760561824,
0.3336380422,
0.0304385871,
0.0183756948,
0.3064620495,
-0.2464930415,
-0.2605731785,
-0.0352296941,
-0.0546514988,
0.49818784,
0.1343331933,
0.0661568195,
0.4267182052,
-0.2779954076,
0.2107363343,
-0.1438205242,
0.2207974643,
-0.1879347265,
-0.3919573426,
-0.0941029191,
-0.1085411757,
0.0540995114,
-0.0021505831,
-0.2287914753,
0.2563298941,
0.0245752633,
0.2516515851,
0.0321384221,
0.0513759106,
-0.4211883843,
-0.1044378057,
-0.2310301512,
0.226688385,
0.0391742326,
0.0595657714,
-0.1965501904,
-0.1511450112,
0.2058586776,
-0.3431107998,
-0.2650854886,
-0.0005396307,
-0.2571266294,
0.0304906927,
-0.0789497644,
-0.5586482286,
-0.0092749521,
0.1646381617,
-0.1165742874,
-0.2574974,
-0.160361588,
0.0731906891,
0.1823070496,
0.4032895565,
-0.0304599926,
0.1647266597,
0.3220482469,
-0.0156900436,
-0.1203036904,
0.1713949293,
-0.2056287229,
-0.1386830509,
0.0792044848,
0.0525300242,
0.1477532983,
-0.1950286329,
0.0720986649,
-0.1244528592,
0.0610797107,
-0.2714120746,
0.1379991174,
-0.052292712,
-0.2443106472,
-0.0718857571,
-0.1764227748,
-0.1069567725,
-0.1404852271,
0.3965620995,
-0.1222571805,
0.2639792264,
0.5979732871,
0.2628352642,
-0.0699225888,
-0.2239042222,
0.2011473626,
0.0665024519,
-0.2591680884,
0.3576520085,
-0.0661279261,
-0.0084150583,
-0.0689551979,
0.37358585,
-0.013727692,
-0.0653007179,
-0.1425482929,
-0.2276574671,
-0.3390943408,
-0.0766484141,
-0.0648032278,
0.1809477657,
-0.0614873767,
0.0205044001,
0.344094485,
-0.2483291477,
-0.3373637795,
-0.2206483483,
-0.2257322073,
0.1367568523,
-0.1156359464,
0.0903353542,
0.2451534718,
-0.0245363321,
0.1401753128,
0.1833448112,
-0.0654684156,
-0.2514530718,
-0.0721648782,
0.0910970792,
-0.0126872677,
-0.2120139301,
-0.1004449278,
0.0691824108,
-0.3066589534,
-0.3149644732,
0.2542548776,
0.0261868164,
-0.0648498535,
0.3339466155,
0.1208941191,
0.2269125581,
-0.245801121,
-0.0012789546,
-0.0492912978,
-0.0714227408,
-0.2654005885,
0.1434953362,
0.0741448179,
0.0186536238,
-0.0137112811,
-0.0302396715,
-0.0359066501,
-0.0958979875,
0.3457254767,
-0.3809931278,
0.1985215396,
0.2853871584,
0.4326710403,
0.3073009551,
-0.2745676041,
-0.0601299778,
-0.0283833873,
0.2137220204,
-0.2702539563,
0.1047897637,
-0.1389293373,
0.3404974341,
0.1812907308,
0.1234543324,
0.0429618061,
-0.2800163627,
0.0771738738,
0.1745933592,
0.0768417642,
-0.1775954217,
0.2129437923,
0.4377634525,
-0.1620202661,
0.1636501253,
-0.0975023285,
0.0571440943,
0.0120125674,
0.4437313378,
-0.0766297877,
0.1632127166,
0.2037426531,
-0.136554718,
-0.0510566719,
-0.3139661849,
-0.2231898606,
0.2932851911,
-0.1478384435,
0.2211653292,
0.0607555732,
0.11484918,
-0.2439825237,
0.1240973026,
-0.3192912936,
-0.0808004886,
-0.1555944234,
0.0469757728,
-0.1781295836,
-0.1248733848,
-0.2028405368,
-0.1335260868,
0.150487572,
0.1290386617,
0.371265471,
0.0432593338,
-0.0071961023,
-0.6050089002,
-0.0662221909,
0.3256894052,
0.0365516096,
-0.2266713828,
0.2377026975,
0.425424546,
0.0902427882,
0.384297967,
0.3726783097,
0.3797658086,
0.3374566734,
-0.0666717291,
0.1129235327,
0.1543489695,
-0.1648840308,
-0.2762877345,
0.1785654724,
-0.0458155982,
0.2733044624,
0.3034487069,
0.1270705909,
-0.1446415186,
0.1170550808,
0.0449932441,
0.0575733855,
-0.6023665071,
0.4265976548,
-0.4701415896,
0.0185303986,
-0.1208023801,
-0.1203804016,
-0.2376077324,
0.0821255296,
0.2865522504,
0.0400105715,
0.2274748385,
-0.0990613252,
0.1067298278,
-0.1255406737,
0.2446667105,
-0.0027380604,
-0.2558124065,
-0.2028056979,
-0.1672923416,
-0.8009277582,
0.0148777813,
0.0856727809,
-0.1091408655,
0.1444783062,
0.1989770234,
-0.1189475358,
0.246401757,
0.3879630864,
-0.2339883447,
-0.1309392154,
0.3268942833,
-0.195360586,
-0.4079425037,
-0.4459079206,
-0.025074197,
-0.012066111,
-0.2429809421,
0.2650612891,
-0.2226770669,
0.1452894509,
0.1209751517,
-0.0283925533,
0.1159841269,
-0.0041817799,
0.3461862803,
0.1672823429,
0.314198494,
-0.1446936727,
0.1787154973,
-0.3299388587,
-0.1000358611,
-0.3050259352,
0.3060719967,
-0.1126584858,
0.4945883751,
-0.1233776659,
-0.0124990232,
-0.16372554,
0.2108145207,
0.2584313154,
-0.2667386532,
-0.3577259779,
0.2748012543,
-0.2798827291,
0.2512661815,
0.0318003856,
0.3652265966,
-0.0365185365,
0.1353163421,
-0.2697345018,
-0.5320449471,
0.4457721412,
-0.4308796823,
-0.3953134418,
-0.0651004463,
0.1863381565,
0.2452218682,
-0.2555918396,
-0.3518376946,
0.1235720217,
0.3564774096,
-0.1301044226,
-0.2069170475,
-0.0070770551,
-0.1155155003,
0.0543674976,
-0.0779214874,
0.1456418335,
0.1664126366,
-0.1576849371,
0.2604365349,
-0.0645065457
] |
https://github.com/huggingface/datasets/issues/2860 | Cannot download TOTTO dataset | Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it. | Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
| 20 | Cannot download TOTTO dataset
Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it. | [
-0.2944107056,
0.390093267,
-0.1317225099,
0.0641972274,
0.4353682995,
0.1393283457,
0.1679635495,
0.5879852176,
-0.026145719,
0.2343416512,
-0.1947770715,
-0.0473089442,
0.0594172291,
0.3187089562,
0.0643601045,
-0.3084105849,
0.0652797222,
-0.0130059831,
-0.139552027,
0.0308539718,
-0.0759796947,
0.2782617211,
0.0100260451,
0.0654644668,
0.0181090496,
0.0936707854,
-0.0290922523,
-0.0979446769,
-0.2686380744,
-0.4347369075,
0.415338546,
0.0613755733,
0.1697377115,
0.380885452,
-0.0001073767,
0.1472329795,
0.3291008472,
0.0086168945,
-0.2500195205,
-0.3531954288,
-0.3288862109,
-0.1141763851,
-0.19650352,
-0.1480809301,
-0.0830530003,
0.2127363384,
0.2038825154,
-0.2607125044,
0.0417160764,
0.5573633313,
0.271827817,
0.0907748416,
0.3079367578,
-0.3647713959,
0.2657265961,
0.1475395709,
-0.0365159437,
0.0705635175,
0.0785898417,
0.0108669624,
0.3562816978,
0.0460000597,
-0.1339976639,
0.0743312091,
-0.1553670913,
-0.0840226263,
-0.0924822986,
-0.3424231112,
0.2141403258,
0.3073777258,
0.5096560121,
-0.2044652998,
-0.3611647189,
0.2267782986,
-0.0598623976,
-0.2795482278,
0.2698040307,
0.1802220047,
0.0900913179,
0.1698183268,
0.1732567996,
-0.485584259,
-0.1890133917,
0.052865155,
-0.4141792059,
0.1076044589,
-0.1177638322,
0.0048586912,
-0.1059216112,
-0.1203937158,
0.3016455173,
-0.0547920689,
-0.0375607908,
0.2590126395,
-0.2745460272,
-0.184147045,
0.1035567001,
0.0311481673,
0.1920057535,
0.0490682349,
0.1362318099,
-0.1017651185,
-0.5062016845,
-0.0666139126,
0.2418689877,
-0.1095381156,
-0.0002671666,
0.3804116547,
0.294926852,
0.2416359782,
0.1484331936,
0.0473142378,
-0.1586335748,
-0.3586916029,
0.0269328356,
-0.1131045222,
0.4928355813,
-0.208542183,
-0.3899926245,
0.1616976112,
-0.0900817961,
-0.121474728,
-0.0176121183,
0.1517947316,
-0.0244204793,
0.0753579885,
0.0918696374,
0.1404550374,
-0.0088711791,
-0.1377051622,
-0.2660999298,
0.2041445374,
-0.0125199705,
0.0713025406,
0.2309999913,
-0.3448671699,
0.0952996239,
-0.0258917902,
-0.4624833763,
0.0828344077,
-0.1361530721,
-0.075016208,
-0.2458769381,
0.3632286489,
0.2265908718,
0.1045651957,
0.001382072,
0.1134399176,
-0.2949782908,
0.2792561054,
-0.3678756952,
-0.0678892583,
-0.1227770522,
0.2941952944,
-0.3227277696,
-0.2466396689,
-0.5071800351,
-0.0339652337,
-0.0525039136,
-0.3056935668,
-0.1234594285,
-0.1745041013,
-0.1805346906,
-0.2515176833,
0.1124921367,
0.6013516188,
-0.206391111,
0.0208855793,
-0.4196625054,
-0.4201264977,
0.1899638176,
0.2693202496,
-0.0341405012,
0.4477232993,
-0.3025844395,
0.0885181427,
0.4392076433,
-0.1254837066,
-0.7618821859,
-0.0033204183,
-0.2596688271,
-0.1898875237,
0.1790017486,
0.079031527,
0.2497512549,
-0.1000056267,
0.2460573614,
0.1370747536,
0.0129175149,
-0.0459472314,
-0.2387000918,
-0.0105645545,
-0.0045890901,
0.1839415729,
0.1048776805,
0.2050979435,
0.1501675546,
-0.0725681037,
0.2357557863,
0.1607334018,
0.0994153991,
0.340891391,
0.3313898742,
-0.02651361,
-0.0199442413,
-0.1835750341,
-0.1992596984,
0.1232287288,
-0.216277957,
0.1084152609,
-0.208680436,
-0.130464837,
-0.4467416704,
0.0594622493,
-0.0653844327,
-0.0930427164,
0.1499165893,
-0.0002756752,
0.3107364774,
0.3321073949,
-0.0203562081,
0.3206821382,
0.2677032053,
0.103011854,
-0.1375437528,
0.566591084,
-0.1339780688,
0.0568046905,
0.4536597729,
-0.2412830293,
0.2364035398,
-0.0816812441,
-0.0623006932,
0.1545939147,
0.0604690462,
0.342227459,
0.4771336317,
0.2396415919,
0.1721657217,
-0.4354350567,
0.2116642594,
0.343268007,
0.0783024579,
0.1411445439,
-0.1909073442,
0.0213616565,
0.1539849937,
0.0350166894,
-0.0176073015,
0.2682006359,
0.5447122455,
0.0763238072,
0.0633018538,
-0.0642060637,
0.2679162323,
0.5545850396,
0.2224785388,
-0.0677624345,
-0.2419172823,
0.1457107514,
0.538705945,
-0.0372180864,
0.052785825,
0.2355949879,
-0.1476681232,
-0.0631906465,
-0.195309639,
0.2097869962,
0.1718096435,
0.0596295483,
0.1565223336,
0.0106347501,
-0.0777703077,
-0.2667883635,
0.0551331863,
0.0725212693,
0.1452944726,
0.1418425292,
0.1219761074,
0.2061337233,
-0.0820090324,
-0.3087291718,
0.0309937,
0.3056664765,
-0.1311018467,
-0.0795392916,
-0.2592680454,
0.0049412474,
-0.273278296,
-0.3159630895,
-0.2113308609,
-0.3952906728,
0.0605421178,
0.2657613754,
0.0656000823,
-0.0102986805,
-0.0560375005,
0.0340001732,
0.2436151505,
-0.3098424077,
-0.1341091096,
-0.1500491202,
-0.104189463,
0.1706147641,
0.237759769,
-0.3077161014,
0.3982346356,
-0.6368309855,
0.1199378073,
-0.5480049849,
-0.2346218228,
-0.0431171358,
-0.189907074,
0.0942283943,
0.1756144613,
0.4022012949,
0.3427299261,
0.2505167723,
0.1937541068,
-0.0247935727,
-0.0510065258,
0.089109838,
-0.1387198418,
-0.0441241786,
0.1827339083,
-0.4613676071,
-0.3021486104,
-0.2280495316,
0.0444357768,
0.0629075393,
0.236630708,
-0.285843879,
0.1709889472,
0.065994814,
0.1328108758,
-0.3080634177,
-0.122296378,
-0.1796015203,
0.4985628426,
-0.2371802628,
-0.2333060652,
0.1059009284,
0.1302614808,
0.4757524133,
0.1674676538,
-0.4497695863,
0.1792438775,
-0.3459708691,
0.1534797996,
-0.046846658,
0.0758879632,
0.3201242089,
0.1453729421,
-0.1137197465,
-0.0569934882,
-0.161003679,
-0.0500384197,
-0.3855094016,
0.2330113649,
-0.0367579721,
0.2503883541,
-0.1210072786,
0.398198545,
0.2551103234,
0.0745473504,
0.3040673137,
-0.1943264455,
0.1306037903,
-0.1279257089,
-0.188946858,
-0.0984255672,
0.1577035189,
-0.1163240522,
-0.1967870295,
-0.0184635315,
0.0741215795,
-0.1694127619,
-0.1042786539,
-0.2042791247,
-0.283624351,
-0.1303623915,
0.0177818481,
0.4172817767,
0.1859099418,
0.015683949,
-0.1674309075,
-0.0935420245,
0.2443630546,
0.1396631747,
-0.0014964826,
-0.0180456638,
-0.1251369417,
-0.1843105555,
-0.6704333425,
0.3441168368,
-0.117428422,
0.2353996933,
-0.0927242041,
0.1852505058,
0.1104811728,
-0.0463376716,
0.5471505523,
0.0625370517,
0.3733005524,
0.3563946784,
0.2766822577,
-0.1460458636,
-0.0525099412,
-0.1304519773,
0.296584785,
-0.0263619162,
0.3771852553,
-0.2650290728,
-0.0554964021,
0.2222447097,
0.1888717711,
-0.1031561717,
0.1805047244,
-0.0639475733,
-0.4556204677,
-0.2093113065,
-0.1772018671,
-0.0870986059,
0.2738858461,
-0.1530112028,
-0.0872612968,
0.0672674552,
-0.1473698318,
-0.0175551325,
-0.1686566174,
0.3812932372,
-0.1637210548,
0.1771630198,
-0.0096636787,
-0.2981503606,
0.5925561786,
0.9116900563,
-0.0094229206,
-0.4505528808,
-0.0699972957,
0.1041778773,
-0.1924928427,
0.037054684,
-0.1077148318,
-0.1556169242,
-0.1347665191,
0.1214744449,
-0.1697996855,
0.2179346979,
0.266815573,
0.0785120204,
-0.4189469218,
-0.3319606185,
0.4077735543,
0.1675907671,
-0.0422660857,
0.4756700993,
0.1231781319,
0.0052155927,
-0.1512750089,
-0.1465873718,
0.7076452971,
-0.1708521843,
0.1218792647,
0.3979225457,
-0.1670889556,
0.2951294184,
0.0539897382,
0.0549510904,
-0.3560285568,
0.2241548151,
-0.0507987514,
-0.0956093892,
0.0422882065,
0.0331599489,
-0.2261523902,
0.3760740161,
-0.1912705898,
0.0057617491,
0.2342994809,
0.2299365997,
-0.2325205505,
0.1433076262,
-0.2494058609,
0.232579127,
-0.1700908542,
0.5963361263,
0.0126051903,
-0.1578870565,
-0.2352529019,
-0.0887922496,
-0.4586822689,
0.2226311862,
-0.353146404,
0.0472172275,
-0.1291953027,
-0.2200128883,
0.0645604357,
0.1586479247,
0.3044909239,
0.2362559289,
-0.5237364173,
0.2670378685,
-0.3025308549,
-0.3513710499,
0.1728510261,
0.211798504,
0.2136156857,
-0.0355904512,
-0.2754927874,
0.1930136234,
0.01657876,
-0.1336363256,
-0.1597442329,
-0.3023326099,
0.0960846394,
-0.2871344686,
0.0308850333,
-0.1784551293,
-0.0639167279,
-0.2592558265,
0.2108781785,
0.2444292009,
0.1790869683,
-0.0770319253,
-0.2008532733,
-0.2742710412,
-0.1253174543,
0.4576686919,
-0.0899076909,
0.0362663046,
0.3003348112,
0.1418550164,
-0.0421104357,
-0.2370261848,
-0.0758945495,
0.0870876834,
-0.0705423355,
0.2010703683,
-0.2461974472,
0.4602615237,
-0.1983536631,
0.0310584381,
0.0072816145,
-0.0602627099,
-0.0174485296,
-0.4184096456,
-0.0034989119,
0.1399505436,
0.068999216,
0.008093562,
0.0801749229,
0.337944746,
0.0753723159,
-0.2415237874,
-0.3141223192,
0.1533352137,
0.0100925043,
-0.260276407,
0.3766643107,
0.1265029758,
0.2459720224,
-0.1016766876,
0.1848554611,
-0.2197218388,
-0.2210969776,
-0.2645950317,
0.000029996,
0.0581651926,
-0.0433958992,
-0.0884145647,
0.1235886365,
-0.3815774322,
-0.2894199491,
0.2447362393,
0.084642984,
0.42679739,
-0.0242629312,
-0.0626615733,
0.1742569506,
0.0256443862,
-0.071573548,
0.0522937328,
-0.0506928079,
0.0010749288,
-0.0242587421,
0.3078613281,
0.0098360106,
-0.1488313824,
-0.3080672324,
-0.0124680512,
0.0695768446,
-0.0835746527,
0.4794932306,
-0.2381897569,
0.0586936399,
0.3324656487,
0.131536901,
0.30967471,
-0.5152159333,
0.1130949631,
0.0408591889,
0.28669855,
-0.3299859166,
-0.1299771219,
-0.238835752,
0.0133062154,
-0.1226401627,
-0.0237425193,
-0.0654750019,
0.1589624286,
0.2537428439,
0.1377555728,
0.3771551251,
-0.1948014647,
0.2289053649,
0.3093296289,
0.1026867479,
0.1862534136,
0.2217634171,
0.0799652934,
-0.0969685316,
0.4350671172,
-0.2293917835,
0.1500755697,
-0.0677119195,
0.0790823475,
0.1858036518,
-0.2016684711,
-0.3423801661,
0.2099465728,
-0.1070172787,
-0.0416854732,
0.0382249504,
0.2646929622,
-0.3808474243,
0.2599396706,
-0.2471585274,
0.2180427611,
0.039691858,
-0.1070377827,
-0.071021311,
-0.2772131562,
-0.1615737379,
0.1111861616,
0.0544029996,
-0.0574874468,
-0.1172459424,
-0.0004242547,
-0.4112989902,
-0.417286694,
0.0453435741,
0.1922141612,
0.1519669592,
-0.1251609772,
0.4158019423,
-0.0666865706,
-0.2817395627,
0.1539523154,
0.4888011515,
0.4909828901,
0.1652413011,
0.2514766753,
-0.1447684467,
-0.257127434,
-0.2132362574,
0.070249781,
0.1148375124,
-0.0334703811,
0.0071210321,
0.2830831409,
0.2091296315,
-0.1540864706,
0.1244483739,
0.0029568467,
0.341948539,
0.0563801825,
0.3701933324,
-0.3759681582,
-0.0931664407,
-0.2818807364,
-0.0891281813,
-0.3936679661,
-0.1934792697,
0.124965474,
0.0378296524,
0.0091359913,
-0.2682195902,
0.1284018308,
0.0321749635,
0.1845883876,
0.2696240246,
0.2058681399,
-0.2469169647,
-0.3324055076,
-0.504206121,
0.1489997506,
-0.1049717516,
-0.2146740705,
-0.1411427259,
0.0215014741,
-0.2108839899,
0.0625291169,
0.2979360223,
-0.0173044614,
-0.1892401278,
-0.1613340974,
-0.1859366596,
-0.0138216279,
-0.175953567,
0.0314950719,
0.0316191763,
-0.3335473537,
0.2791326642,
-0.348980844,
0.0721449852,
-0.202991724,
0.0582775772,
0.0845618173,
-0.0209053066,
0.2773119211,
0.1782317907,
0.1633213758,
-0.0716613606,
-0.1242836118,
-0.4604788721,
-0.075221464,
-0.1951588392,
0.0604052395,
-0.1034030765,
0.0961734205,
-0.1812674999,
-0.4262297153,
-0.1299845427,
0.059174221,
-0.1510560513,
0.067885533,
-0.1810762733,
-0.0299207456,
-0.0501212105,
0.1820138544,
0.1748442352,
0.0471053831,
-0.0015659016,
0.0969650671,
-0.2998533845,
-0.2840428948,
0.1638270915,
0.0188100077,
-0.0074548796,
-0.0921064466,
0.048402749,
0.2315627337,
0.0643885508,
-0.1891824901,
0.2362125218,
0.4156238735,
0.0095643084,
-0.1696299016,
0.1937179863,
-0.1111151949,
0.1457275897,
0.1789951026,
0.4593871236,
-0.0406306572,
-0.1174679548,
0.022176221,
-0.0482679866
] |
https://github.com/huggingface/datasets/issues/2945 | Protect master branch | @lhoestq now the 2 are implemented.
Please note that for the the second protection, finally I have chosen to protect the master branch only from **merge commits** (see update comment above), so no need to disable/re-enable the protection on each release (direct commits, different from merge commits, can be pushed to the remote master branch; and eventually reverted without messing up the repo history). | After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.:
- 00cc036fea7c7745cfe722360036ed306796a3f2
- 13ae8c98602bbad8197de3b9b425f4c78f582af1
- ...
I propose to protect our master branch, so that we avoid we can accidentally make this kind of mistakes in the future:
- [x] For Pull Requests using GitHub, allow only squash merging, so that only a single commit per Pull Request is merged into the master branch
- Currently, simple merge commits are already disabled
- I propose to disable rebase merging as well
- ~~Protect the master branch from direct pushes (to avoid accidentally pushing of merge commits)~~
- ~~This protection would reject direct pushes to master branch~~
- ~~If so, for each release (when we need to commit directly to the master branch), we should previously disable the protection and re-enable it again after the release~~
- [x] Protect the master branch only from direct pushing of **merge commits**
- GitHub offers the possibility to protect the master branch only from merge commits (which are the ones that introduce all the commits from the feature branch into the master branch).
- No need to disable/re-enable this protection on each release
This purpose of this Issue is to open a discussion about this problem and to agree in a solution. | 64 | Protect master branch
After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.:
- 00cc036fea7c7745cfe722360036ed306796a3f2
- 13ae8c98602bbad8197de3b9b425f4c78f582af1
- ...
I propose to protect our master branch, so that we avoid we can accidentally make this kind of mistakes in the future:
- [x] For Pull Requests using GitHub, allow only squash merging, so that only a single commit per Pull Request is merged into the master branch
- Currently, simple merge commits are already disabled
- I propose to disable rebase merging as well
- ~~Protect the master branch from direct pushes (to avoid accidentally pushing of merge commits)~~
- ~~This protection would reject direct pushes to master branch~~
- ~~If so, for each release (when we need to commit directly to the master branch), we should previously disable the protection and re-enable it again after the release~~
- [x] Protect the master branch only from direct pushing of **merge commits**
- GitHub offers the possibility to protect the master branch only from merge commits (which are the ones that introduce all the commits from the feature branch into the master branch).
- No need to disable/re-enable this protection on each release
This purpose of this Issue is to open a discussion about this problem and to agree in a solution.
@lhoestq now the 2 are implemented.
Please note that for the the second protection, finally I have chosen to protect the master branch only from **merge commits** (see update comment above), so no need to disable/re-enable the protection on each release (direct commits, different from merge commits, can be pushed to the remote master branch; and eventually reverted without messing up the repo history). | [
-0.1553196907,
-0.1002302244,
-0.0703211576,
-0.0798171014,
-0.1042536274,
-0.1879872978,
0.010403702,
0.2728639543,
-0.0098490976,
-0.0841396898,
0.2926149666,
-0.0778749511,
-0.1324568242,
0.2158906311,
-0.0562291816,
0.1705456823,
0.2003229409,
-0.0407976881,
-0.0923327506,
0.0279234499,
0.022608377,
-0.068702966,
0.083200261,
0.043630518,
-0.1837822497,
0.005400816,
-0.0148118101,
0.1564962417,
-0.4397662878,
-0.4695701003,
0.1452461928,
0.2322402894,
0.025106214,
0.5705345869,
-0.0001043637,
-0.0003454536,
0.1694867164,
-0.0406007245,
-0.1401026398,
-0.2154635787,
-0.4901071191,
-0.4447952211,
-0.0700631961,
-0.0083541572,
0.1288065612,
0.0528679639,
-0.132500127,
0.0238453001,
0.3848451376,
0.1055523828,
0.2386110425,
-0.1028514579,
0.1812401265,
0.0137692541,
0.3920086026,
0.547452569,
-0.0666347072,
0.3031994402,
0.0540182739,
0.0006758235,
0.0611056946,
0.1741086245,
-0.082372427,
-0.2866697907,
0.2270195484,
-0.1779911816,
0.5181742311,
-0.4243532717,
-0.2415837348,
-0.0831172615,
0.0523793474,
-0.1781464219,
-0.4089039564,
-0.241936788,
-0.1499474496,
0.0076339841,
0.0677804947,
0.2468640208,
0.0397399627,
0.0036498865,
-0.3773655295,
-0.2718090415,
-0.004407756,
0.0492043719,
0.1419407725,
-0.1626292467,
0.0664263889,
-0.1270382851,
0.2942225039,
-0.0473279059,
-0.1469835639,
-0.3676343262,
-0.2413336635,
-0.0125877634,
-0.1026131809,
-0.1957471967,
-0.2462064922,
-0.3248275518,
0.4251306653,
0.3889689147,
-0.3832729161,
0.0137398429,
-0.0304894838,
-0.0810164139,
0.207185179,
0.1178582534,
-0.0104902275,
0.0584888235,
0.5307134986,
0.3144406974,
0.0051583126,
0.3255857229,
0.3015701175,
0.0030474477,
0.0344461277,
0.5741183162,
0.4289449751,
-0.262920469,
0.1276475191,
0.1959736943,
-0.3412005603,
-0.3845079243,
0.0711311847,
-0.086172089,
0.1103257611,
0.0271335281,
-0.1147115231,
0.0668014362,
0.0451907441,
-0.0380863994,
-0.3079028428,
-0.1414854825,
-0.3744004369,
-0.0685302094,
0.1860403866,
-0.4571045637,
0.1491677165,
0.4325240254,
-0.0680370554,
-0.199284181,
0.0445524901,
0.1292254925,
0.0555874109,
0.2961195409,
-0.1537979245,
-0.4526281357,
0.2235966325,
0.1313330233,
-0.0668997169,
0.194004178,
-0.1598995775,
-0.2616217434,
-0.1049758047,
0.2977659702,
-0.1482722312,
0.3071559072,
-0.523766458,
0.03637309,
-0.0044835657,
0.3506705761,
0.4910375178,
0.3025480807,
0.3280783296,
-0.1685935706,
0.0617564917,
0.1903456151,
0.3235116601,
-0.0516864583,
0.0623042136,
-0.2877365053,
0.1095034257,
0.1450733691,
-0.3121601641,
0.0175556634,
-0.0052361824,
-0.1312821805,
0.0107762292,
-0.0714069754,
-0.1119880378,
-0.098929286,
-0.3666859269,
0.0694026873,
-0.0407375954,
-0.1007769406,
0.2079570442,
-0.3201758564,
-0.0947938636,
0.205081895,
-0.1481234133,
0.0208984315,
-0.2919873893,
-0.6061382294,
-0.1636559516,
-0.0634389222,
0.1249144822,
0.2275641412,
0.3607693613,
-0.0050312988,
-0.0283613615,
-0.1714022607,
-0.009397408,
0.1125068367,
0.3421368003,
-0.1496780962,
-0.2415419072,
0.1322465837,
-0.3545881212,
0.091140613,
-0.0785118267,
-0.0097749047,
0.0344482884,
-0.3157883883,
0.3412796855,
-0.0440525971,
-0.1208015978,
-0.1141507775,
0.2415171564,
0.0959514603,
-0.1747334599,
-0.2039213181,
-0.2074066252,
0.2601908445,
-0.2408303171,
0.3018656671,
0.1300137788,
0.1026374176,
-0.1411807537,
-0.036453113,
-0.0250962898,
0.3619363308,
0.2363044173,
-0.0899173692,
-0.0591583997,
0.168760851,
-0.0490628257,
0.2035703808,
0.2246948034,
0.425242424,
0.3736156225,
-0.1026817039,
0.0626012236,
-0.091792725,
-0.0787246376,
0.0245946124,
-0.3291273415,
0.3280376196,
0.0736942887,
-0.1394644529,
-0.1740319133,
-0.1033323854,
-0.1740739644,
-0.2202689946,
-0.1707725227,
-0.0129516497,
-0.1690977365,
0.194364801,
-0.3365916014,
0.2223694026,
-0.2772078812,
0.1485798657,
0.015052475,
-0.2516067922,
-0.1024009362,
0.0682979077,
-0.0059674382,
-0.1327148974,
0.1241710931,
0.3773834109,
0.1278745532,
0.1701000631,
0.004274508,
0.0201515388,
0.2572822571,
-0.1164359599,
0.3533256054,
0.1443069577,
-0.1054450795,
0.0540641136,
0.3364559412,
0.1812186539,
0.0643320307,
0.346919477,
-0.0033243559,
0.0352583304,
-0.208406806,
-0.0459842533,
-0.2602105737,
-0.5283414721,
0.2192375958,
-0.1106379479,
-0.3552160859,
-0.0085042305,
-0.0453657992,
0.0474182665,
-0.5248721242,
0.1360301524,
0.1835808158,
0.2905260623,
-0.317802906,
-0.1199781969,
0.1263159215,
-0.0225954037,
0.0123442393,
0.1285601258,
0.363160044,
-0.2266808748,
0.4594512582,
0.2389811426,
-0.1695563346,
-0.4726403058,
-0.3434129953,
0.0191300288,
-0.2039362043,
-0.1179745346,
0.0098188072,
-0.098930642,
0.0921540707,
-0.3585399389,
-0.3257124126,
-0.0187740698,
-0.3730048835,
-0.1600954831,
0.0695957541,
0.0628854185,
-0.2346179634,
-0.1140405238,
-0.386589855,
-0.2821526527,
0.4793556035,
-0.0164330937,
0.1156589538,
-0.043173328,
-0.2923768461,
-0.0459179543,
0.0874826163,
0.1366391182,
-0.0000451989,
-0.3609322011,
0.0325667709,
-0.0406605117,
-0.0293471701,
0.3526099324,
0.1854909211,
-0.4302403927,
0.0712515712,
-0.3217608631,
-0.1558190882,
-0.052084662,
0.4864441752,
0.3141197562,
-0.0973736122,
0.0710804239,
0.1035511345,
-0.1919004619,
0.0550890416,
-0.1816119254,
0.1472242028,
0.3454881608,
0.2857185006,
0.0378994346,
0.1458676606,
0.0254973769,
0.7140871882,
0.3778495789,
-0.0596571825,
0.2103371769,
0.3106970489,
-0.0277176723,
0.003990192,
-0.2601565421,
0.0650469288,
-0.1012430415,
-0.0000208244,
0.0867040455,
-0.1295782328,
-0.1229653805,
-0.0112110078,
-0.4777137041,
0.0091562644,
-0.4146765172,
-0.2396629453,
-0.3181840479,
0.1842497289,
-0.0225255378,
-0.4854881763,
0.1313801408,
0.0537710227,
0.2305762023,
0.2159709036,
0.2142061442,
0.1812156588,
-0.0202592388,
-0.0510847531,
-0.1200737655,
-0.0677260458,
-0.004330989,
0.1452501416,
0.090580292,
-0.1670409441,
0.0318055078,
0.0695504099,
0.3299908042,
-0.0148684233,
0.1402915865,
-0.1708071232,
-0.5094850659,
0.6086310744,
-0.3185942173,
0.1394026577,
0.2990987003,
0.5112240314,
0.4397637248,
-0.2954542041,
-0.1953164637,
0.2071225941,
0.0325558931,
0.1978366524,
0.177350089,
0.1449770778,
0.2783071995,
-0.490381062,
0.2887741327,
0.1548330486,
-0.2504822016,
-0.1551760435,
-0.0039055645,
-0.0270504691,
0.1264626384,
-0.0263034515,
-0.2453977317,
0.0091273412,
-0.1094376519,
0.1734459251,
0.132920295,
0.0698279589,
0.4152194262,
0.5946590304,
0.1349337995,
-0.3891985118,
-0.0482013151,
-0.1750734895,
-0.0742833316,
0.3271440268,
0.1983507723,
0.2482280582,
0.0203484297,
0.1776859909,
-0.1234724671,
-0.2662384212,
-0.2033668756,
-0.038491156,
-0.0767425895,
0.0075889528,
0.0873294622,
-0.0458978787,
-0.0909923464,
0.0130485268,
0.1399984956,
-0.366099894,
0.1637847275,
0.6180497408,
0.9825441837,
0.3975672126,
0.0890337974,
-0.2546566427,
-0.327382952,
0.3259907961,
-0.3401076198,
-0.1664509624,
-0.2470171899,
-0.1235882342,
-0.1842461228,
-0.3403116465,
-0.0386946835,
-0.4898471236,
-0.3528554738,
0.1351124793,
-0.2180550992,
0.5279188752,
0.008177802,
0.1233861893,
0.1910187453,
-0.1223143935,
0.2551512718,
0.1982709765,
0.0618111044,
0.1040950343,
-0.0040275864,
-0.4687904418,
-0.0022330359,
0.0205387697,
-0.3772696257,
0.0891471058,
-0.3437779546,
0.0388468765,
-0.2063531429,
-0.3160519004,
0.1158269271,
-0.0870480314,
0.60594064,
0.1666304618,
-0.0794519261,
-0.0446207225,
0.2913889885,
0.4645249844,
-0.2288515866,
-0.2195305675,
0.5223727226,
-0.2133639902,
-0.130217582,
-0.2047615945,
-0.0803343728,
-0.2370927036,
-0.2609477639,
-0.1280431151,
-0.3282327652,
0.0795016736,
0.0417145081,
0.2636536062,
-0.0910696089,
-0.1676062942,
0.185993135,
0.1154859811,
-0.1075729132,
-0.1185849756,
-0.1695202589,
-0.2610398531,
-0.0678160638,
0.2016011328,
0.1616056263,
-0.120606795,
-0.0767641887,
0.0996574312,
-0.2443368286,
-0.2207898796,
-0.2072925866,
0.1059877798,
-0.1394683868,
0.0929815024,
-0.5486777425,
-0.3299345076,
0.0517465174,
0.2461931109,
0.2794155478,
0.3304982185,
0.1180000901,
-0.0997707248,
-0.22444956,
0.2186436057,
-0.3279265463,
0.1686488837,
0.0235842615,
0.1588115692,
-0.0260099247,
0.0404300094,
-0.3905958831,
0.1603152156,
-0.1254808605,
-0.021126302,
-0.2255208343,
-0.1017532647,
-0.0006300434,
-0.3081862628,
0.0324876606,
0.0234331153,
-0.1957565844,
-0.2830154002,
0.0926689059,
0.0656955764,
0.0647893697,
-0.057013534,
-0.0574608296,
-0.1081574485,
0.0827528611,
0.2720324695,
0.2396922559,
-0.1584912837,
0.1097131371,
-0.0322249383,
0.1710882187,
0.1105847955,
-0.0247726999,
0.0892418474,
0.0146323238,
-0.2658015192,
-0.0353750549,
0.267160058,
-0.181746006,
-0.2171440274,
-0.2685393095,
0.1888353527,
0.105633691,
0.5840902328,
0.202880308,
0.1442173272,
-0.4050823748,
0.1754092425,
-0.0531975478,
-0.0036353469,
-0.1692356318,
-0.096940428,
-0.0849621594,
0.2793602645,
-0.0867192447,
-0.3035973907,
0.2713840604,
0.188181743,
0.0007487535,
0.1049711257,
0.5280753374,
0.129620865,
-0.1896521002,
0.4221355319,
0.2712431252,
-0.0876761824,
0.4948998988,
0.470233202,
-0.1131819561,
-0.0203251615,
-0.082735762,
0.1166146696,
0.2306873947,
-0.2540960908,
0.128471598,
0.2962189019,
0.64629668,
-0.168884024,
0.3935548961,
-0.0330963545,
0.3437393606,
0.1979929954,
0.0587404147,
-0.2460492551,
0.3927091062,
0.2117074728,
0.3301509917,
-0.6189892292,
0.1363728642,
0.4914030433,
0.0492829382,
0.1995817125,
-0.400105536,
-0.049232699,
-0.0584761947,
-0.0483132638,
-0.0781827718,
0.1634954959,
0.1237374693,
0.2829663157,
0.0065842085,
-0.0883785337,
-0.0434402637,
0.1850478798,
0.24156183,
-0.1169978157,
-0.1811730713,
0.3577546477,
-0.2761979401,
0.0664940625,
0.2154601067,
0.1350682825,
-0.0747164264,
-0.0686337799,
0.1802344918,
0.4503943324,
-0.1699341536,
0.0225113444,
0.0557495728,
-0.1625678539,
0.1577174962,
0.0801473781,
0.2580326796,
-0.0533407964,
0.1128026769,
0.0354270115,
-0.4152975082,
-0.025322251,
0.4330807328,
0.5564643145,
-0.3377305865,
0.4601386487,
0.1192683578,
0.2847005129,
-0.0326846391,
0.437435478,
-0.047126241,
0.1163922101,
-0.0051538534,
0.1430787295,
0.0280899256,
0.2575882971,
0.141499728,
-0.0333453305,
-0.159288466,
0.0301066935,
-0.1215411574,
0.1274356544,
0.2968393564,
0.1730703264,
0.4198884964,
-0.294713825,
0.1275686622,
0.12823461,
-0.0875692815,
-0.3413963318,
0.0095218755,
0.0940848961,
-0.3605291843,
0.0042474959,
0.2224818468,
-0.0694396719,
-0.0241941847,
0.1189335212,
0.4094777107,
0.1927904338,
0.1120927334,
0.1051309481,
-0.0493476987,
0.3209429979,
-0.3918456137,
0.2249618769,
0.1892230809,
-0.1029295474,
-0.2218884081,
-0.051098831,
0.0073657287,
0.0212803893,
-0.4355088174,
-0.1401805431,
-0.1622254997,
0.4209836125,
-0.13559708,
0.0682981312,
-0.3722177148,
0.0687670708,
-0.0371344686,
0.2683556974,
-0.3000993729,
0.0864086002,
0.0525472015,
0.0173381157,
0.0883702934,
0.13057971,
0.0684344023,
0.2528502345,
-0.3523155749,
-0.1248895526,
0.3586621881,
-0.0194703974,
0.091035977,
-0.2172686458,
0.4182044268,
0.4654459357,
-0.1480812579,
-0.3321150541,
-0.2635182738,
-0.0111564659,
-0.2798339427,
-0.5420891643,
0.298637718,
0.1378679574,
0.1974382848,
-0.1058709025,
0.0366071947,
-0.0743264854,
-0.1527633518,
0.0611718819,
-0.1987861097
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | Hi ! I guess the caching mechanism should have considered the new `filter` to be different from the old one, and don't use cached results from the old `filter`.
To avoid other users from having this issue we could make the caching differentiate the two, what do you think ? | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 50 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
Hi ! I guess the caching mechanism should have considered the new `filter` to be different from the old one, and don't use cached results from the old `filter`.
To avoid other users from having this issue we could make the caching differentiate the two, what do you think ? | [
-0.3049952984,
0.124387905,
-0.0465586074,
0.2368963808,
0.1517290622,
-0.0666599274,
-0.0069408538,
0.3285394311,
0.173739031,
0.0293815993,
-0.2313866317,
0.3581927419,
-0.1503304243,
0.2527367473,
-0.2977858186,
-0.1378118992,
0.0444690213,
0.0321245417,
-0.0614950396,
0.1664126813,
-0.1239174008,
0.4988579154,
-0.1957764924,
0.0070791524,
0.2221656293,
0.0513209552,
0.1091238931,
0.1385661364,
0.0798623711,
-0.3392695189,
0.5981169939,
0.1064067036,
-0.0348690674,
0.4980957508,
-0.0001213098,
0.0998678803,
0.4398062527,
-0.1073977277,
-0.4579494298,
-0.3686877191,
-0.192853868,
0.131993711,
0.213113606,
0.0811630934,
-0.0715119913,
0.1143421978,
-0.3034938872,
-0.346047163,
0.2488766313,
0.198933199,
0.2267288119,
0.2136142105,
0.2657418251,
0.0665871575,
0.170178771,
0.0826521963,
0.0259718895,
-0.0490863472,
0.2940285206,
0.0142610073,
0.0436854511,
0.4806105494,
-0.3283526003,
-0.2146459818,
0.3046188354,
-0.2982529998,
0.1030711457,
-0.3957035244,
0.2999310791,
0.0781373307,
0.1462637037,
-0.2555182278,
-0.5773367286,
-0.3483258784,
-0.5121471882,
-0.2868289351,
0.4164728522,
-0.2163588405,
-0.2009970397,
0.2200829983,
-0.3342646956,
-0.0270038154,
0.0934983119,
0.0535095222,
-0.058482416,
0.2941836417,
-0.1318319142,
-0.0048627183,
0.0149830263,
-0.1329007149,
0.1924080253,
-0.2750048637,
-0.1968746781,
0.172580272,
-0.0155594852,
-0.0546129793,
0.0954228565,
0.3323277235,
0.1405711174,
0.03562852,
0.0192101784,
0.0845403224,
-0.0409640595,
0.0536776111,
0.1373272091,
0.475378871,
0.4901199639,
0.2467905581,
0.2727873623,
0.2854888439,
-0.0078852251,
-0.0013804897,
0.5281857252,
-0.1666410863,
0.0747073814,
0.1517301351,
0.1966951489,
-0.4048687816,
-0.3602137566,
0.1689628959,
-0.0770000666,
-0.12503995,
0.2207262367,
0.0534947515,
0.1005651876,
0.2142344117,
0.1320813596,
0.0338565484,
-0.1964720488,
0.0612347014,
-0.1725098789,
-0.1739456654,
0.0011613891,
-0.1112987772,
-0.0473049097,
-0.8997768164,
0.1747696698,
0.0482600704,
0.0063486509,
0.1058093458,
-0.0697736889,
0.2074347734,
0.173016876,
0.5229281187,
-0.221358642,
0.0839004442,
0.167191118,
-0.5483285189,
-0.1386866271,
0.0125279408,
-0.2415380627,
-0.1112060249,
0.2085877508,
0.1735863686,
-0.3296717405,
0.0126508549,
-0.1702991426,
0.4515429139,
0.259213686,
-0.5466867089,
-0.077957198,
-0.2133800983,
-0.4382347167,
-0.1997144818,
0.0971906483,
0.4131376743,
-0.5942544937,
-0.3216673732,
0.0216872506,
0.0319067761,
0.0399167389,
-0.122934185,
-0.0634391457,
-0.2444724739,
-0.1077684015,
-0.1384177506,
0.3606542647,
-0.319554776,
-0.7338929176,
0.1537259221,
0.2360214591,
0.5342667103,
-0.0709590018,
-0.137484327,
0.2813946903,
-0.2578287721,
0.14599213,
0.0848447308,
-0.1649033874,
-0.0079936609,
-0.3409692049,
-0.2346944362,
0.223870039,
-0.1502911896,
0.0904171094,
0.3348589838,
0.0790063888,
-0.2542200089,
0.0502921864,
0.0350502208,
0.1049241349,
0.1990929544,
0.245324105,
0.2237652242,
0.2863060832,
-0.4365181327,
-0.2801405787,
0.2506178617,
0.2141300738,
-0.0600014552,
-0.1524062455,
-0.1982274652,
-0.2678266168,
-0.0884184092,
-0.1589773148,
-0.3044101596,
0.0788738877,
0.0225765929,
0.3843640089,
-0.0385037623,
-0.1145257875,
0.6218647957,
0.3084534407,
0.0944801942,
-0.5049408078,
0.2296410799,
-0.0548518002,
0.0051684044,
-0.0591857396,
0.0377821624,
0.293959558,
-0.0685251504,
-0.2895758152,
0.4078748822,
0.039259091,
0.0841677487,
-0.0276332423,
0.1937459111,
0.1773461401,
0.2105838656,
0.0639336035,
0.274181962,
-0.0148834847,
0.2087214887,
-0.1954571605,
0.5572487116,
0.0293753594,
0.3240503669,
0.1208346188,
0.1487564147,
0.3702496588,
0.1305632442,
-0.2189948112,
-0.137078464,
0.3204488754,
-0.4587231874,
0.0626678169,
0.0123390742,
-0.1297933459,
0.3776257634,
0.0716822147,
0.0755120367,
-0.033451993,
0.3119211197,
-0.1593657285,
-0.0421907902,
0.1813622117,
0.4024862647,
0.4014505744,
0.2088319212,
0.0507172123,
0.0758816898,
-0.1615393907,
-0.0248772688,
0.2082491219,
0.1293460727,
-0.169640258,
0.153575331,
0.3034209907,
0.2732039988,
-0.3061975837,
0.093393065,
-0.2356238663,
0.1195331067,
-0.2705812752,
0.3616371453,
-0.2810100913,
-0.2280871719,
0.0761421546,
-0.167832166,
-0.261514008,
-0.3875222206,
0.0898991004,
0.3934392929,
-0.0862187967,
0.2567745447,
0.0147165284,
0.244541198,
0.1361676008,
-0.1996820867,
-0.4005722404,
-0.2078812569,
-0.3476477861,
0.0053976849,
0.2051319033,
-0.156849131,
0.2970356047,
-0.0763089433,
-0.2066244036,
-0.3902941346,
-0.9079105258,
-0.0486291237,
-0.1239648387,
0.6180295348,
0.3176226914,
-0.091625616,
-0.1352720708,
-0.2327560931,
0.1665795594,
-0.0413153023,
-0.4310829639,
0.1568388641,
0.066622749,
0.1682223082,
-0.2003855109,
-0.2270281166,
-0.1135407612,
-0.1458193362,
0.0079397857,
-0.127689749,
0.0849653408,
0.3094043136,
0.1123534516,
-0.3165152669,
-0.0872012228,
0.1330857277,
-0.3335404098,
-0.0773376524,
0.0739420801,
-0.0541622452,
-0.2302437872,
-0.0341396034,
-0.0319809318,
0.0831898302,
0.3736630976,
-0.406958878,
-0.3791770339,
-0.2713731229,
-0.0048742518,
0.23117733,
0.0683609024,
0.2319664061,
0.1899943352,
0.0391032174,
-0.2794685662,
-0.4342857897,
-0.0886204168,
-0.2365953624,
0.1095489562,
0.1482242942,
0.6309944391,
0.0345639586,
0.4764264524,
0.2947267294,
0.0489608869,
0.1398263574,
0.1815549731,
0.4972689748,
-0.3258458674,
-0.4095647633,
-0.0467091389,
-0.0461941659,
0.0505126566,
-0.1531917304,
0.1795817316,
-0.1120615155,
-0.348788321,
0.0000889525,
-0.2515637875,
-0.2498104721,
-0.2386272997,
-0.0136437304,
0.269005388,
0.3906215429,
0.1407711655,
-0.3225957155,
-0.1763849556,
-0.0081371665,
0.4007479548,
0.1035780013,
0.2502201796,
-0.1815417409,
-0.0471421517,
-0.4509261847,
0.4925593734,
0.2151453644,
0.2648921609,
-0.1177540869,
-0.162966162,
-0.3294480145,
-0.0492411032,
0.5928118825,
-0.3631772995,
0.0443487205,
0.1019542664,
-0.2081840038,
-0.3828818798,
0.0511295795,
0.0076627731,
0.3649111986,
0.0543547198,
0.3508077264,
-0.0821148306,
-0.0730154216,
-0.0869159251,
0.2223744392,
-0.1245946959,
0.0196015723,
-0.2743617892,
-0.2049435079,
-0.1433088183,
0.0314203613,
-0.1528895497,
0.165067479,
-0.1800073832,
-0.0685373768,
-0.113143228,
-0.0563925393,
0.1153810173,
0.1347035319,
0.2945026457,
-0.1000053883,
0.118739292,
0.1441813409,
0.240529418,
0.042369619,
0.4583911002,
-0.2755984962,
-0.278095752,
-0.0670713782,
0.1208043993,
-0.114640519,
0.3437378705,
-0.2040163279,
-0.0173399746,
-0.0444571488,
-0.1020427868,
-0.0212401226,
-0.1411030889,
-0.0019393526,
0.3703024685,
-0.2049248368,
-0.2889378667,
0.2329641134,
0.2390515506,
-0.2043494284,
0.4367762506,
0.3422555327,
-0.2809349895,
0.1687894464,
-0.1999589503,
0.7136856318,
0.1521682441,
-0.0298539922,
0.0877991617,
-0.1695175767,
0.4524543583,
0.312545687,
0.1559780091,
-0.0667678118,
-0.2370488644,
-0.0655061454,
-0.034747418,
0.1580223143,
-0.111061506,
-0.2036341429,
0.563148737,
-0.0592190921,
-0.035387788,
0.1755871475,
-0.117328532,
-0.2023076862,
0.0190882459,
-0.4372625351,
0.0991253406,
-0.0213231258,
0.2521659434,
0.0010583699,
-0.0767223239,
0.0552206635,
-0.3087655604,
-0.2637810111,
-0.0523917601,
-0.3992069364,
-0.0659273863,
0.2081238925,
-0.4332802594,
0.0089730322,
0.0526267737,
0.2566774487,
-0.0081805456,
-0.0373011343,
-0.0075373081,
0.0702683851,
0.4977717996,
0.2345930636,
0.0250331312,
0.2863309085,
0.0890945792,
0.1867843717,
0.0195987541,
-0.1420111954,
-0.3608395755,
-0.0186533779,
0.0038107838,
0.1180323213,
-0.1588667631,
0.0288233161,
-0.242854923,
0.0213064551,
-0.3648616672,
0.0650938898,
-0.089833878,
-0.0098388381,
0.0943214372,
-0.0165628176,
-0.2268176377,
-0.0053526862,
0.6357889175,
-0.1438152194,
-0.4367527068,
0.127720058,
-0.0055662245,
-0.2235847116,
0.0353584141,
-0.2044419199,
0.0274195895,
-0.2750840187,
0.297878325,
-0.2511253953,
-0.1071276963,
0.2691297233,
0.322792232,
0.1886075288,
0.2146120071,
-0.151667282,
-0.3945677578,
-0.1370823532,
0.2854577303,
0.0442741737,
0.0549805909,
-0.0311487652,
-0.3236707151,
-0.1444217861,
-0.2066637874,
-0.225788936,
0.0087528154,
0.3313150108,
0.0712086186,
0.1904865801,
0.2205635011,
0.1548966765,
-0.1995645314,
-0.0134113915,
0.0725869313,
-0.2038202733,
-0.10209319,
-0.0933457538,
0.0935417935,
-0.0911599323,
-0.2648987174,
-0.1546195447,
-0.0057540983,
0.0614033639,
-0.1646930128,
0.4182680845,
0.3214155436,
-0.1182498261,
-0.0536906682,
-0.0327781402,
0.0472253412,
0.3035395741,
0.1383114457,
0.0185653735,
0.0326713324,
0.0427049398,
0.1994483769,
-0.1875814348,
0.0140964836,
0.0820162818,
0.0423961766,
-0.2510477006,
0.0270900764,
0.3569348454,
-0.2952964008,
-0.021639429,
0.5987739563,
0.3562678397,
0.2437597811,
-0.1398065835,
0.1138306782,
-0.0777394623,
0.1533576101,
-0.273904711,
-0.332678169,
0.2057785541,
0.2732262015,
0.0609576702,
0.1860819906,
-0.002107203,
0.0291594714,
0.6171159148,
0.2176479399,
0.4478166997,
-0.1253158301,
0.3508078754,
0.5271655917,
0.2326288372,
0.184375748,
0.2417199612,
0.0737256259,
0.0160926357,
0.5080397725,
-0.0660086721,
0.2586890757,
0.2197470069,
0.1287701428,
-0.0355190933,
-0.4662740827,
-0.165674895,
0.0283218995,
-0.0797490105,
0.2506763041,
0.1661576927,
0.0856597796,
-0.2232842445,
-0.3345977664,
0.0114883706,
0.0248980299,
-0.1936261356,
-0.2161097825,
0.1446397007,
-0.3639175296,
-0.0571492612,
0.0134867504,
-0.120843865,
0.0703996271,
0.4529307187,
-0.2469493896,
-0.128362447,
-0.4731903672,
-0.3793773055,
0.0500450991,
0.1747642756,
-0.0140106902,
0.4047628343,
0.2587805688,
-0.2298550904,
0.221988216,
0.2503438592,
0.4856495261,
0.2468239665,
0.0276925862,
0.0133471526,
-0.1420495212,
-0.0540066808,
-0.0907230526,
0.3356419802,
-0.087083146,
0.030568976,
0.1879346967,
0.1134103388,
0.0007337667,
0.2053899765,
-0.0408544727,
0.3989400864,
-0.466181457,
0.0895343721,
-0.2369528115,
0.2848795652,
0.0150144249,
0.100014098,
-0.2490250766,
-0.118114993,
0.171214819,
0.2318111956,
0.2039028108,
-0.1064849868,
0.0748108327,
0.134854272,
0.0739090294,
0.4687883854,
-0.0930127054,
-0.0892462805,
-0.146488905,
-0.6535097361,
-0.0558623038,
0.1423009783,
0.1280673742,
-0.0635152906,
0.0375309512,
0.0490150899,
0.1846857965,
0.0434730016,
-0.1836021245,
0.1054587439,
-0.2515143752,
-0.2000014484,
-0.1759466231,
0.2301194966,
-0.2421483696,
0.0548489988,
-0.2659101486,
0.0627726167,
-0.04169254,
0.02695366,
-0.005927844,
-0.0628841817,
0.0675144494,
0.3473343253,
-0.1370733082,
0.3493894935,
0.2663171589,
0.0334930569,
-0.0034477115,
-0.278297931,
-0.1931355,
-0.2683140337,
0.0700842142,
-0.2921245098,
0.4918607473,
-0.4018592536,
-0.3019632995,
-0.1804216802,
0.2724742591,
0.1233780235,
-0.1268286705,
-0.4767788351,
0.1658579111,
-0.0587570518,
0.0838124603,
0.0044374987,
0.508733809,
0.0599868,
0.3379510641,
-0.2266304791,
-0.3412218094,
0.5358172655,
-0.4137625992,
-0.2617648244,
-0.1319275945,
-0.0639737546,
0.6073153615,
-0.4836448431,
-0.3043729663,
-0.2037672251,
0.2719913721,
-0.1200055629,
-0.1490255296,
0.1555722952,
-0.2652983069,
0.1745558083,
-0.189201951,
-0.0870611668,
0.4393820167,
-0.0882679746,
0.2773536444,
-0.1299419254
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | If it's easy enough to implement, then yes please 😄 But this issue can be low-priority, since I've only encountered it in a couple of `transformers` CI tests. | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 28 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
If it's easy enough to implement, then yes please 😄 But this issue can be low-priority, since I've only encountered it in a couple of `transformers` CI tests. | [
-0.3049952984,
0.124387905,
-0.0465586074,
0.2368963808,
0.1517290622,
-0.0666599274,
-0.0069408538,
0.3285394311,
0.173739031,
0.0293815993,
-0.2313866317,
0.3581927419,
-0.1503304243,
0.2527367473,
-0.2977858186,
-0.1378118992,
0.0444690213,
0.0321245417,
-0.0614950396,
0.1664126813,
-0.1239174008,
0.4988579154,
-0.1957764924,
0.0070791524,
0.2221656293,
0.0513209552,
0.1091238931,
0.1385661364,
0.0798623711,
-0.3392695189,
0.5981169939,
0.1064067036,
-0.0348690674,
0.4980957508,
-0.0001213098,
0.0998678803,
0.4398062527,
-0.1073977277,
-0.4579494298,
-0.3686877191,
-0.192853868,
0.131993711,
0.213113606,
0.0811630934,
-0.0715119913,
0.1143421978,
-0.3034938872,
-0.346047163,
0.2488766313,
0.198933199,
0.2267288119,
0.2136142105,
0.2657418251,
0.0665871575,
0.170178771,
0.0826521963,
0.0259718895,
-0.0490863472,
0.2940285206,
0.0142610073,
0.0436854511,
0.4806105494,
-0.3283526003,
-0.2146459818,
0.3046188354,
-0.2982529998,
0.1030711457,
-0.3957035244,
0.2999310791,
0.0781373307,
0.1462637037,
-0.2555182278,
-0.5773367286,
-0.3483258784,
-0.5121471882,
-0.2868289351,
0.4164728522,
-0.2163588405,
-0.2009970397,
0.2200829983,
-0.3342646956,
-0.0270038154,
0.0934983119,
0.0535095222,
-0.058482416,
0.2941836417,
-0.1318319142,
-0.0048627183,
0.0149830263,
-0.1329007149,
0.1924080253,
-0.2750048637,
-0.1968746781,
0.172580272,
-0.0155594852,
-0.0546129793,
0.0954228565,
0.3323277235,
0.1405711174,
0.03562852,
0.0192101784,
0.0845403224,
-0.0409640595,
0.0536776111,
0.1373272091,
0.475378871,
0.4901199639,
0.2467905581,
0.2727873623,
0.2854888439,
-0.0078852251,
-0.0013804897,
0.5281857252,
-0.1666410863,
0.0747073814,
0.1517301351,
0.1966951489,
-0.4048687816,
-0.3602137566,
0.1689628959,
-0.0770000666,
-0.12503995,
0.2207262367,
0.0534947515,
0.1005651876,
0.2142344117,
0.1320813596,
0.0338565484,
-0.1964720488,
0.0612347014,
-0.1725098789,
-0.1739456654,
0.0011613891,
-0.1112987772,
-0.0473049097,
-0.8997768164,
0.1747696698,
0.0482600704,
0.0063486509,
0.1058093458,
-0.0697736889,
0.2074347734,
0.173016876,
0.5229281187,
-0.221358642,
0.0839004442,
0.167191118,
-0.5483285189,
-0.1386866271,
0.0125279408,
-0.2415380627,
-0.1112060249,
0.2085877508,
0.1735863686,
-0.3296717405,
0.0126508549,
-0.1702991426,
0.4515429139,
0.259213686,
-0.5466867089,
-0.077957198,
-0.2133800983,
-0.4382347167,
-0.1997144818,
0.0971906483,
0.4131376743,
-0.5942544937,
-0.3216673732,
0.0216872506,
0.0319067761,
0.0399167389,
-0.122934185,
-0.0634391457,
-0.2444724739,
-0.1077684015,
-0.1384177506,
0.3606542647,
-0.319554776,
-0.7338929176,
0.1537259221,
0.2360214591,
0.5342667103,
-0.0709590018,
-0.137484327,
0.2813946903,
-0.2578287721,
0.14599213,
0.0848447308,
-0.1649033874,
-0.0079936609,
-0.3409692049,
-0.2346944362,
0.223870039,
-0.1502911896,
0.0904171094,
0.3348589838,
0.0790063888,
-0.2542200089,
0.0502921864,
0.0350502208,
0.1049241349,
0.1990929544,
0.245324105,
0.2237652242,
0.2863060832,
-0.4365181327,
-0.2801405787,
0.2506178617,
0.2141300738,
-0.0600014552,
-0.1524062455,
-0.1982274652,
-0.2678266168,
-0.0884184092,
-0.1589773148,
-0.3044101596,
0.0788738877,
0.0225765929,
0.3843640089,
-0.0385037623,
-0.1145257875,
0.6218647957,
0.3084534407,
0.0944801942,
-0.5049408078,
0.2296410799,
-0.0548518002,
0.0051684044,
-0.0591857396,
0.0377821624,
0.293959558,
-0.0685251504,
-0.2895758152,
0.4078748822,
0.039259091,
0.0841677487,
-0.0276332423,
0.1937459111,
0.1773461401,
0.2105838656,
0.0639336035,
0.274181962,
-0.0148834847,
0.2087214887,
-0.1954571605,
0.5572487116,
0.0293753594,
0.3240503669,
0.1208346188,
0.1487564147,
0.3702496588,
0.1305632442,
-0.2189948112,
-0.137078464,
0.3204488754,
-0.4587231874,
0.0626678169,
0.0123390742,
-0.1297933459,
0.3776257634,
0.0716822147,
0.0755120367,
-0.033451993,
0.3119211197,
-0.1593657285,
-0.0421907902,
0.1813622117,
0.4024862647,
0.4014505744,
0.2088319212,
0.0507172123,
0.0758816898,
-0.1615393907,
-0.0248772688,
0.2082491219,
0.1293460727,
-0.169640258,
0.153575331,
0.3034209907,
0.2732039988,
-0.3061975837,
0.093393065,
-0.2356238663,
0.1195331067,
-0.2705812752,
0.3616371453,
-0.2810100913,
-0.2280871719,
0.0761421546,
-0.167832166,
-0.261514008,
-0.3875222206,
0.0898991004,
0.3934392929,
-0.0862187967,
0.2567745447,
0.0147165284,
0.244541198,
0.1361676008,
-0.1996820867,
-0.4005722404,
-0.2078812569,
-0.3476477861,
0.0053976849,
0.2051319033,
-0.156849131,
0.2970356047,
-0.0763089433,
-0.2066244036,
-0.3902941346,
-0.9079105258,
-0.0486291237,
-0.1239648387,
0.6180295348,
0.3176226914,
-0.091625616,
-0.1352720708,
-0.2327560931,
0.1665795594,
-0.0413153023,
-0.4310829639,
0.1568388641,
0.066622749,
0.1682223082,
-0.2003855109,
-0.2270281166,
-0.1135407612,
-0.1458193362,
0.0079397857,
-0.127689749,
0.0849653408,
0.3094043136,
0.1123534516,
-0.3165152669,
-0.0872012228,
0.1330857277,
-0.3335404098,
-0.0773376524,
0.0739420801,
-0.0541622452,
-0.2302437872,
-0.0341396034,
-0.0319809318,
0.0831898302,
0.3736630976,
-0.406958878,
-0.3791770339,
-0.2713731229,
-0.0048742518,
0.23117733,
0.0683609024,
0.2319664061,
0.1899943352,
0.0391032174,
-0.2794685662,
-0.4342857897,
-0.0886204168,
-0.2365953624,
0.1095489562,
0.1482242942,
0.6309944391,
0.0345639586,
0.4764264524,
0.2947267294,
0.0489608869,
0.1398263574,
0.1815549731,
0.4972689748,
-0.3258458674,
-0.4095647633,
-0.0467091389,
-0.0461941659,
0.0505126566,
-0.1531917304,
0.1795817316,
-0.1120615155,
-0.348788321,
0.0000889525,
-0.2515637875,
-0.2498104721,
-0.2386272997,
-0.0136437304,
0.269005388,
0.3906215429,
0.1407711655,
-0.3225957155,
-0.1763849556,
-0.0081371665,
0.4007479548,
0.1035780013,
0.2502201796,
-0.1815417409,
-0.0471421517,
-0.4509261847,
0.4925593734,
0.2151453644,
0.2648921609,
-0.1177540869,
-0.162966162,
-0.3294480145,
-0.0492411032,
0.5928118825,
-0.3631772995,
0.0443487205,
0.1019542664,
-0.2081840038,
-0.3828818798,
0.0511295795,
0.0076627731,
0.3649111986,
0.0543547198,
0.3508077264,
-0.0821148306,
-0.0730154216,
-0.0869159251,
0.2223744392,
-0.1245946959,
0.0196015723,
-0.2743617892,
-0.2049435079,
-0.1433088183,
0.0314203613,
-0.1528895497,
0.165067479,
-0.1800073832,
-0.0685373768,
-0.113143228,
-0.0563925393,
0.1153810173,
0.1347035319,
0.2945026457,
-0.1000053883,
0.118739292,
0.1441813409,
0.240529418,
0.042369619,
0.4583911002,
-0.2755984962,
-0.278095752,
-0.0670713782,
0.1208043993,
-0.114640519,
0.3437378705,
-0.2040163279,
-0.0173399746,
-0.0444571488,
-0.1020427868,
-0.0212401226,
-0.1411030889,
-0.0019393526,
0.3703024685,
-0.2049248368,
-0.2889378667,
0.2329641134,
0.2390515506,
-0.2043494284,
0.4367762506,
0.3422555327,
-0.2809349895,
0.1687894464,
-0.1999589503,
0.7136856318,
0.1521682441,
-0.0298539922,
0.0877991617,
-0.1695175767,
0.4524543583,
0.312545687,
0.1559780091,
-0.0667678118,
-0.2370488644,
-0.0655061454,
-0.034747418,
0.1580223143,
-0.111061506,
-0.2036341429,
0.563148737,
-0.0592190921,
-0.035387788,
0.1755871475,
-0.117328532,
-0.2023076862,
0.0190882459,
-0.4372625351,
0.0991253406,
-0.0213231258,
0.2521659434,
0.0010583699,
-0.0767223239,
0.0552206635,
-0.3087655604,
-0.2637810111,
-0.0523917601,
-0.3992069364,
-0.0659273863,
0.2081238925,
-0.4332802594,
0.0089730322,
0.0526267737,
0.2566774487,
-0.0081805456,
-0.0373011343,
-0.0075373081,
0.0702683851,
0.4977717996,
0.2345930636,
0.0250331312,
0.2863309085,
0.0890945792,
0.1867843717,
0.0195987541,
-0.1420111954,
-0.3608395755,
-0.0186533779,
0.0038107838,
0.1180323213,
-0.1588667631,
0.0288233161,
-0.242854923,
0.0213064551,
-0.3648616672,
0.0650938898,
-0.089833878,
-0.0098388381,
0.0943214372,
-0.0165628176,
-0.2268176377,
-0.0053526862,
0.6357889175,
-0.1438152194,
-0.4367527068,
0.127720058,
-0.0055662245,
-0.2235847116,
0.0353584141,
-0.2044419199,
0.0274195895,
-0.2750840187,
0.297878325,
-0.2511253953,
-0.1071276963,
0.2691297233,
0.322792232,
0.1886075288,
0.2146120071,
-0.151667282,
-0.3945677578,
-0.1370823532,
0.2854577303,
0.0442741737,
0.0549805909,
-0.0311487652,
-0.3236707151,
-0.1444217861,
-0.2066637874,
-0.225788936,
0.0087528154,
0.3313150108,
0.0712086186,
0.1904865801,
0.2205635011,
0.1548966765,
-0.1995645314,
-0.0134113915,
0.0725869313,
-0.2038202733,
-0.10209319,
-0.0933457538,
0.0935417935,
-0.0911599323,
-0.2648987174,
-0.1546195447,
-0.0057540983,
0.0614033639,
-0.1646930128,
0.4182680845,
0.3214155436,
-0.1182498261,
-0.0536906682,
-0.0327781402,
0.0472253412,
0.3035395741,
0.1383114457,
0.0185653735,
0.0326713324,
0.0427049398,
0.1994483769,
-0.1875814348,
0.0140964836,
0.0820162818,
0.0423961766,
-0.2510477006,
0.0270900764,
0.3569348454,
-0.2952964008,
-0.021639429,
0.5987739563,
0.3562678397,
0.2437597811,
-0.1398065835,
0.1138306782,
-0.0777394623,
0.1533576101,
-0.273904711,
-0.332678169,
0.2057785541,
0.2732262015,
0.0609576702,
0.1860819906,
-0.002107203,
0.0291594714,
0.6171159148,
0.2176479399,
0.4478166997,
-0.1253158301,
0.3508078754,
0.5271655917,
0.2326288372,
0.184375748,
0.2417199612,
0.0737256259,
0.0160926357,
0.5080397725,
-0.0660086721,
0.2586890757,
0.2197470069,
0.1287701428,
-0.0355190933,
-0.4662740827,
-0.165674895,
0.0283218995,
-0.0797490105,
0.2506763041,
0.1661576927,
0.0856597796,
-0.2232842445,
-0.3345977664,
0.0114883706,
0.0248980299,
-0.1936261356,
-0.2161097825,
0.1446397007,
-0.3639175296,
-0.0571492612,
0.0134867504,
-0.120843865,
0.0703996271,
0.4529307187,
-0.2469493896,
-0.128362447,
-0.4731903672,
-0.3793773055,
0.0500450991,
0.1747642756,
-0.0140106902,
0.4047628343,
0.2587805688,
-0.2298550904,
0.221988216,
0.2503438592,
0.4856495261,
0.2468239665,
0.0276925862,
0.0133471526,
-0.1420495212,
-0.0540066808,
-0.0907230526,
0.3356419802,
-0.087083146,
0.030568976,
0.1879346967,
0.1134103388,
0.0007337667,
0.2053899765,
-0.0408544727,
0.3989400864,
-0.466181457,
0.0895343721,
-0.2369528115,
0.2848795652,
0.0150144249,
0.100014098,
-0.2490250766,
-0.118114993,
0.171214819,
0.2318111956,
0.2039028108,
-0.1064849868,
0.0748108327,
0.134854272,
0.0739090294,
0.4687883854,
-0.0930127054,
-0.0892462805,
-0.146488905,
-0.6535097361,
-0.0558623038,
0.1423009783,
0.1280673742,
-0.0635152906,
0.0375309512,
0.0490150899,
0.1846857965,
0.0434730016,
-0.1836021245,
0.1054587439,
-0.2515143752,
-0.2000014484,
-0.1759466231,
0.2301194966,
-0.2421483696,
0.0548489988,
-0.2659101486,
0.0627726167,
-0.04169254,
0.02695366,
-0.005927844,
-0.0628841817,
0.0675144494,
0.3473343253,
-0.1370733082,
0.3493894935,
0.2663171589,
0.0334930569,
-0.0034477115,
-0.278297931,
-0.1931355,
-0.2683140337,
0.0700842142,
-0.2921245098,
0.4918607473,
-0.4018592536,
-0.3019632995,
-0.1804216802,
0.2724742591,
0.1233780235,
-0.1268286705,
-0.4767788351,
0.1658579111,
-0.0587570518,
0.0838124603,
0.0044374987,
0.508733809,
0.0599868,
0.3379510641,
-0.2266304791,
-0.3412218094,
0.5358172655,
-0.4137625992,
-0.2617648244,
-0.1319275945,
-0.0639737546,
0.6073153615,
-0.4836448431,
-0.3043729663,
-0.2037672251,
0.2719913721,
-0.1200055629,
-0.1490255296,
0.1555722952,
-0.2652983069,
0.1745558083,
-0.189201951,
-0.0870611668,
0.4393820167,
-0.0882679746,
0.2773536444,
-0.1299419254
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | Well it can cause issue with anyone that updates `datasets` and re-run some code that uses filter, so I'm creating a PR | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 22 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
Well it can cause issue with anyone that updates `datasets` and re-run some code that uses filter, so I'm creating a PR | [
-0.3049952984,
0.124387905,
-0.0465586074,
0.2368963808,
0.1517290622,
-0.0666599274,
-0.0069408538,
0.3285394311,
0.173739031,
0.0293815993,
-0.2313866317,
0.3581927419,
-0.1503304243,
0.2527367473,
-0.2977858186,
-0.1378118992,
0.0444690213,
0.0321245417,
-0.0614950396,
0.1664126813,
-0.1239174008,
0.4988579154,
-0.1957764924,
0.0070791524,
0.2221656293,
0.0513209552,
0.1091238931,
0.1385661364,
0.0798623711,
-0.3392695189,
0.5981169939,
0.1064067036,
-0.0348690674,
0.4980957508,
-0.0001213098,
0.0998678803,
0.4398062527,
-0.1073977277,
-0.4579494298,
-0.3686877191,
-0.192853868,
0.131993711,
0.213113606,
0.0811630934,
-0.0715119913,
0.1143421978,
-0.3034938872,
-0.346047163,
0.2488766313,
0.198933199,
0.2267288119,
0.2136142105,
0.2657418251,
0.0665871575,
0.170178771,
0.0826521963,
0.0259718895,
-0.0490863472,
0.2940285206,
0.0142610073,
0.0436854511,
0.4806105494,
-0.3283526003,
-0.2146459818,
0.3046188354,
-0.2982529998,
0.1030711457,
-0.3957035244,
0.2999310791,
0.0781373307,
0.1462637037,
-0.2555182278,
-0.5773367286,
-0.3483258784,
-0.5121471882,
-0.2868289351,
0.4164728522,
-0.2163588405,
-0.2009970397,
0.2200829983,
-0.3342646956,
-0.0270038154,
0.0934983119,
0.0535095222,
-0.058482416,
0.2941836417,
-0.1318319142,
-0.0048627183,
0.0149830263,
-0.1329007149,
0.1924080253,
-0.2750048637,
-0.1968746781,
0.172580272,
-0.0155594852,
-0.0546129793,
0.0954228565,
0.3323277235,
0.1405711174,
0.03562852,
0.0192101784,
0.0845403224,
-0.0409640595,
0.0536776111,
0.1373272091,
0.475378871,
0.4901199639,
0.2467905581,
0.2727873623,
0.2854888439,
-0.0078852251,
-0.0013804897,
0.5281857252,
-0.1666410863,
0.0747073814,
0.1517301351,
0.1966951489,
-0.4048687816,
-0.3602137566,
0.1689628959,
-0.0770000666,
-0.12503995,
0.2207262367,
0.0534947515,
0.1005651876,
0.2142344117,
0.1320813596,
0.0338565484,
-0.1964720488,
0.0612347014,
-0.1725098789,
-0.1739456654,
0.0011613891,
-0.1112987772,
-0.0473049097,
-0.8997768164,
0.1747696698,
0.0482600704,
0.0063486509,
0.1058093458,
-0.0697736889,
0.2074347734,
0.173016876,
0.5229281187,
-0.221358642,
0.0839004442,
0.167191118,
-0.5483285189,
-0.1386866271,
0.0125279408,
-0.2415380627,
-0.1112060249,
0.2085877508,
0.1735863686,
-0.3296717405,
0.0126508549,
-0.1702991426,
0.4515429139,
0.259213686,
-0.5466867089,
-0.077957198,
-0.2133800983,
-0.4382347167,
-0.1997144818,
0.0971906483,
0.4131376743,
-0.5942544937,
-0.3216673732,
0.0216872506,
0.0319067761,
0.0399167389,
-0.122934185,
-0.0634391457,
-0.2444724739,
-0.1077684015,
-0.1384177506,
0.3606542647,
-0.319554776,
-0.7338929176,
0.1537259221,
0.2360214591,
0.5342667103,
-0.0709590018,
-0.137484327,
0.2813946903,
-0.2578287721,
0.14599213,
0.0848447308,
-0.1649033874,
-0.0079936609,
-0.3409692049,
-0.2346944362,
0.223870039,
-0.1502911896,
0.0904171094,
0.3348589838,
0.0790063888,
-0.2542200089,
0.0502921864,
0.0350502208,
0.1049241349,
0.1990929544,
0.245324105,
0.2237652242,
0.2863060832,
-0.4365181327,
-0.2801405787,
0.2506178617,
0.2141300738,
-0.0600014552,
-0.1524062455,
-0.1982274652,
-0.2678266168,
-0.0884184092,
-0.1589773148,
-0.3044101596,
0.0788738877,
0.0225765929,
0.3843640089,
-0.0385037623,
-0.1145257875,
0.6218647957,
0.3084534407,
0.0944801942,
-0.5049408078,
0.2296410799,
-0.0548518002,
0.0051684044,
-0.0591857396,
0.0377821624,
0.293959558,
-0.0685251504,
-0.2895758152,
0.4078748822,
0.039259091,
0.0841677487,
-0.0276332423,
0.1937459111,
0.1773461401,
0.2105838656,
0.0639336035,
0.274181962,
-0.0148834847,
0.2087214887,
-0.1954571605,
0.5572487116,
0.0293753594,
0.3240503669,
0.1208346188,
0.1487564147,
0.3702496588,
0.1305632442,
-0.2189948112,
-0.137078464,
0.3204488754,
-0.4587231874,
0.0626678169,
0.0123390742,
-0.1297933459,
0.3776257634,
0.0716822147,
0.0755120367,
-0.033451993,
0.3119211197,
-0.1593657285,
-0.0421907902,
0.1813622117,
0.4024862647,
0.4014505744,
0.2088319212,
0.0507172123,
0.0758816898,
-0.1615393907,
-0.0248772688,
0.2082491219,
0.1293460727,
-0.169640258,
0.153575331,
0.3034209907,
0.2732039988,
-0.3061975837,
0.093393065,
-0.2356238663,
0.1195331067,
-0.2705812752,
0.3616371453,
-0.2810100913,
-0.2280871719,
0.0761421546,
-0.167832166,
-0.261514008,
-0.3875222206,
0.0898991004,
0.3934392929,
-0.0862187967,
0.2567745447,
0.0147165284,
0.244541198,
0.1361676008,
-0.1996820867,
-0.4005722404,
-0.2078812569,
-0.3476477861,
0.0053976849,
0.2051319033,
-0.156849131,
0.2970356047,
-0.0763089433,
-0.2066244036,
-0.3902941346,
-0.9079105258,
-0.0486291237,
-0.1239648387,
0.6180295348,
0.3176226914,
-0.091625616,
-0.1352720708,
-0.2327560931,
0.1665795594,
-0.0413153023,
-0.4310829639,
0.1568388641,
0.066622749,
0.1682223082,
-0.2003855109,
-0.2270281166,
-0.1135407612,
-0.1458193362,
0.0079397857,
-0.127689749,
0.0849653408,
0.3094043136,
0.1123534516,
-0.3165152669,
-0.0872012228,
0.1330857277,
-0.3335404098,
-0.0773376524,
0.0739420801,
-0.0541622452,
-0.2302437872,
-0.0341396034,
-0.0319809318,
0.0831898302,
0.3736630976,
-0.406958878,
-0.3791770339,
-0.2713731229,
-0.0048742518,
0.23117733,
0.0683609024,
0.2319664061,
0.1899943352,
0.0391032174,
-0.2794685662,
-0.4342857897,
-0.0886204168,
-0.2365953624,
0.1095489562,
0.1482242942,
0.6309944391,
0.0345639586,
0.4764264524,
0.2947267294,
0.0489608869,
0.1398263574,
0.1815549731,
0.4972689748,
-0.3258458674,
-0.4095647633,
-0.0467091389,
-0.0461941659,
0.0505126566,
-0.1531917304,
0.1795817316,
-0.1120615155,
-0.348788321,
0.0000889525,
-0.2515637875,
-0.2498104721,
-0.2386272997,
-0.0136437304,
0.269005388,
0.3906215429,
0.1407711655,
-0.3225957155,
-0.1763849556,
-0.0081371665,
0.4007479548,
0.1035780013,
0.2502201796,
-0.1815417409,
-0.0471421517,
-0.4509261847,
0.4925593734,
0.2151453644,
0.2648921609,
-0.1177540869,
-0.162966162,
-0.3294480145,
-0.0492411032,
0.5928118825,
-0.3631772995,
0.0443487205,
0.1019542664,
-0.2081840038,
-0.3828818798,
0.0511295795,
0.0076627731,
0.3649111986,
0.0543547198,
0.3508077264,
-0.0821148306,
-0.0730154216,
-0.0869159251,
0.2223744392,
-0.1245946959,
0.0196015723,
-0.2743617892,
-0.2049435079,
-0.1433088183,
0.0314203613,
-0.1528895497,
0.165067479,
-0.1800073832,
-0.0685373768,
-0.113143228,
-0.0563925393,
0.1153810173,
0.1347035319,
0.2945026457,
-0.1000053883,
0.118739292,
0.1441813409,
0.240529418,
0.042369619,
0.4583911002,
-0.2755984962,
-0.278095752,
-0.0670713782,
0.1208043993,
-0.114640519,
0.3437378705,
-0.2040163279,
-0.0173399746,
-0.0444571488,
-0.1020427868,
-0.0212401226,
-0.1411030889,
-0.0019393526,
0.3703024685,
-0.2049248368,
-0.2889378667,
0.2329641134,
0.2390515506,
-0.2043494284,
0.4367762506,
0.3422555327,
-0.2809349895,
0.1687894464,
-0.1999589503,
0.7136856318,
0.1521682441,
-0.0298539922,
0.0877991617,
-0.1695175767,
0.4524543583,
0.312545687,
0.1559780091,
-0.0667678118,
-0.2370488644,
-0.0655061454,
-0.034747418,
0.1580223143,
-0.111061506,
-0.2036341429,
0.563148737,
-0.0592190921,
-0.035387788,
0.1755871475,
-0.117328532,
-0.2023076862,
0.0190882459,
-0.4372625351,
0.0991253406,
-0.0213231258,
0.2521659434,
0.0010583699,
-0.0767223239,
0.0552206635,
-0.3087655604,
-0.2637810111,
-0.0523917601,
-0.3992069364,
-0.0659273863,
0.2081238925,
-0.4332802594,
0.0089730322,
0.0526267737,
0.2566774487,
-0.0081805456,
-0.0373011343,
-0.0075373081,
0.0702683851,
0.4977717996,
0.2345930636,
0.0250331312,
0.2863309085,
0.0890945792,
0.1867843717,
0.0195987541,
-0.1420111954,
-0.3608395755,
-0.0186533779,
0.0038107838,
0.1180323213,
-0.1588667631,
0.0288233161,
-0.242854923,
0.0213064551,
-0.3648616672,
0.0650938898,
-0.089833878,
-0.0098388381,
0.0943214372,
-0.0165628176,
-0.2268176377,
-0.0053526862,
0.6357889175,
-0.1438152194,
-0.4367527068,
0.127720058,
-0.0055662245,
-0.2235847116,
0.0353584141,
-0.2044419199,
0.0274195895,
-0.2750840187,
0.297878325,
-0.2511253953,
-0.1071276963,
0.2691297233,
0.322792232,
0.1886075288,
0.2146120071,
-0.151667282,
-0.3945677578,
-0.1370823532,
0.2854577303,
0.0442741737,
0.0549805909,
-0.0311487652,
-0.3236707151,
-0.1444217861,
-0.2066637874,
-0.225788936,
0.0087528154,
0.3313150108,
0.0712086186,
0.1904865801,
0.2205635011,
0.1548966765,
-0.1995645314,
-0.0134113915,
0.0725869313,
-0.2038202733,
-0.10209319,
-0.0933457538,
0.0935417935,
-0.0911599323,
-0.2648987174,
-0.1546195447,
-0.0057540983,
0.0614033639,
-0.1646930128,
0.4182680845,
0.3214155436,
-0.1182498261,
-0.0536906682,
-0.0327781402,
0.0472253412,
0.3035395741,
0.1383114457,
0.0185653735,
0.0326713324,
0.0427049398,
0.1994483769,
-0.1875814348,
0.0140964836,
0.0820162818,
0.0423961766,
-0.2510477006,
0.0270900764,
0.3569348454,
-0.2952964008,
-0.021639429,
0.5987739563,
0.3562678397,
0.2437597811,
-0.1398065835,
0.1138306782,
-0.0777394623,
0.1533576101,
-0.273904711,
-0.332678169,
0.2057785541,
0.2732262015,
0.0609576702,
0.1860819906,
-0.002107203,
0.0291594714,
0.6171159148,
0.2176479399,
0.4478166997,
-0.1253158301,
0.3508078754,
0.5271655917,
0.2326288372,
0.184375748,
0.2417199612,
0.0737256259,
0.0160926357,
0.5080397725,
-0.0660086721,
0.2586890757,
0.2197470069,
0.1287701428,
-0.0355190933,
-0.4662740827,
-0.165674895,
0.0283218995,
-0.0797490105,
0.2506763041,
0.1661576927,
0.0856597796,
-0.2232842445,
-0.3345977664,
0.0114883706,
0.0248980299,
-0.1936261356,
-0.2161097825,
0.1446397007,
-0.3639175296,
-0.0571492612,
0.0134867504,
-0.120843865,
0.0703996271,
0.4529307187,
-0.2469493896,
-0.128362447,
-0.4731903672,
-0.3793773055,
0.0500450991,
0.1747642756,
-0.0140106902,
0.4047628343,
0.2587805688,
-0.2298550904,
0.221988216,
0.2503438592,
0.4856495261,
0.2468239665,
0.0276925862,
0.0133471526,
-0.1420495212,
-0.0540066808,
-0.0907230526,
0.3356419802,
-0.087083146,
0.030568976,
0.1879346967,
0.1134103388,
0.0007337667,
0.2053899765,
-0.0408544727,
0.3989400864,
-0.466181457,
0.0895343721,
-0.2369528115,
0.2848795652,
0.0150144249,
0.100014098,
-0.2490250766,
-0.118114993,
0.171214819,
0.2318111956,
0.2039028108,
-0.1064849868,
0.0748108327,
0.134854272,
0.0739090294,
0.4687883854,
-0.0930127054,
-0.0892462805,
-0.146488905,
-0.6535097361,
-0.0558623038,
0.1423009783,
0.1280673742,
-0.0635152906,
0.0375309512,
0.0490150899,
0.1846857965,
0.0434730016,
-0.1836021245,
0.1054587439,
-0.2515143752,
-0.2000014484,
-0.1759466231,
0.2301194966,
-0.2421483696,
0.0548489988,
-0.2659101486,
0.0627726167,
-0.04169254,
0.02695366,
-0.005927844,
-0.0628841817,
0.0675144494,
0.3473343253,
-0.1370733082,
0.3493894935,
0.2663171589,
0.0334930569,
-0.0034477115,
-0.278297931,
-0.1931355,
-0.2683140337,
0.0700842142,
-0.2921245098,
0.4918607473,
-0.4018592536,
-0.3019632995,
-0.1804216802,
0.2724742591,
0.1233780235,
-0.1268286705,
-0.4767788351,
0.1658579111,
-0.0587570518,
0.0838124603,
0.0044374987,
0.508733809,
0.0599868,
0.3379510641,
-0.2266304791,
-0.3412218094,
0.5358172655,
-0.4137625992,
-0.2617648244,
-0.1319275945,
-0.0639737546,
0.6073153615,
-0.4836448431,
-0.3043729663,
-0.2037672251,
0.2719913721,
-0.1200055629,
-0.1490255296,
0.1555722952,
-0.2652983069,
0.1745558083,
-0.189201951,
-0.0870611668,
0.4393820167,
-0.0882679746,
0.2773536444,
-0.1299419254
] |
https://github.com/huggingface/datasets/issues/2943 | Backwards compatibility broken for cached datasets that use `.filter()` | I just merged a fix, let me know if you're still having this kind of issues :)
We'll do a release soon to make this fix available | ## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
| 27 | Backwards compatibility broken for cached datasets that use `.filter()`
## Describe the bug
After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with
`ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}`
Related feature: https://github.com/huggingface/datasets/pull/2836
:question: This is probably a `wontfix` bug, since it can be solved by simply cleaning the related cache dirs, but the workaround could be useful for someone googling the error :)
## Workaround
Remove the cache for the given dataset, e.g. `rm -rf ~/.cache/huggingface/datasets/librispeech_asr`.
## Steps to reproduce the bug
1. Delete `~/.cache/huggingface/datasets/librispeech_asr` if it exists.
2. `pip install datasets==1.11.0` and run the following snippet:
```python
from datasets import load_dataset
ids = ["1272-141231-0000"]
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
ds = ds.filter(lambda x: x["id"] in ids)
```
3. `pip install datasets==1.12.1` and re-run the code again
## Expected results
Same result as with the previous `datasets` version.
## Actual results
```bash
Reusing dataset librispeech_asr (./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1)
Loading cached processed dataset at ./.cache/huggingface/datasets/librispeech_asr/clean/2.1.0/468ec03677f46a8714ac6b5b64dba02d246a228d92cbbad7f3dc190fa039eab1/cache-cd1c29844fdbc87a.arrow
Traceback (most recent call last):
File "./repos/transformers/src/transformers/models/wav2vec2/try_dataset.py", line 5, in <module>
ds = ds.filter(lambda x: x["id"] in ids)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2169, in filter
indices = self.map(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1686, in map
return self._map_single(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 185, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/fingerprint.py", line 398, in wrapper
out = func(self, *args, **kwargs)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1896, in _map_single
return Dataset.from_file(cache_file_name, info=info, split=self.split)
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 343, in from_file
return cls(
File "./envs/transformers/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 282, in __init__
self.info.features = self.info.features.reorder_fields_as(inferred_features)
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1151, in reorder_fields_as
return Features(recursive_reorder(self, other))
File "./envs/transformers/lib/python3.8/site-packages/datasets/features.py", line 1140, in recursive_reorder
raise ValueError(f"Keys mismatch: between {source} and {target}" + stack_position)
ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='int64', id=None), 'chapter_id': Value(dtype='int64', id=None), 'id': Value(dtype='string', id=None)}
Process finished with exit code 1
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-34-generic-x86_64-with-glibc2.17
- Python version: 3.8.10
- PyArrow version: 5.0.0
I just merged a fix, let me know if you're still having this kind of issues :)
We'll do a release soon to make this fix available | [
-0.3049952984,
0.124387905,
-0.0465586074,
0.2368963808,
0.1517290622,
-0.0666599274,
-0.0069408538,
0.3285394311,
0.173739031,
0.0293815993,
-0.2313866317,
0.3581927419,
-0.1503304243,
0.2527367473,
-0.2977858186,
-0.1378118992,
0.0444690213,
0.0321245417,
-0.0614950396,
0.1664126813,
-0.1239174008,
0.4988579154,
-0.1957764924,
0.0070791524,
0.2221656293,
0.0513209552,
0.1091238931,
0.1385661364,
0.0798623711,
-0.3392695189,
0.5981169939,
0.1064067036,
-0.0348690674,
0.4980957508,
-0.0001213098,
0.0998678803,
0.4398062527,
-0.1073977277,
-0.4579494298,
-0.3686877191,
-0.192853868,
0.131993711,
0.213113606,
0.0811630934,
-0.0715119913,
0.1143421978,
-0.3034938872,
-0.346047163,
0.2488766313,
0.198933199,
0.2267288119,
0.2136142105,
0.2657418251,
0.0665871575,
0.170178771,
0.0826521963,
0.0259718895,
-0.0490863472,
0.2940285206,
0.0142610073,
0.0436854511,
0.4806105494,
-0.3283526003,
-0.2146459818,
0.3046188354,
-0.2982529998,
0.1030711457,
-0.3957035244,
0.2999310791,
0.0781373307,
0.1462637037,
-0.2555182278,
-0.5773367286,
-0.3483258784,
-0.5121471882,
-0.2868289351,
0.4164728522,
-0.2163588405,
-0.2009970397,
0.2200829983,
-0.3342646956,
-0.0270038154,
0.0934983119,
0.0535095222,
-0.058482416,
0.2941836417,
-0.1318319142,
-0.0048627183,
0.0149830263,
-0.1329007149,
0.1924080253,
-0.2750048637,
-0.1968746781,
0.172580272,
-0.0155594852,
-0.0546129793,
0.0954228565,
0.3323277235,
0.1405711174,
0.03562852,
0.0192101784,
0.0845403224,
-0.0409640595,
0.0536776111,
0.1373272091,
0.475378871,
0.4901199639,
0.2467905581,
0.2727873623,
0.2854888439,
-0.0078852251,
-0.0013804897,
0.5281857252,
-0.1666410863,
0.0747073814,
0.1517301351,
0.1966951489,
-0.4048687816,
-0.3602137566,
0.1689628959,
-0.0770000666,
-0.12503995,
0.2207262367,
0.0534947515,
0.1005651876,
0.2142344117,
0.1320813596,
0.0338565484,
-0.1964720488,
0.0612347014,
-0.1725098789,
-0.1739456654,
0.0011613891,
-0.1112987772,
-0.0473049097,
-0.8997768164,
0.1747696698,
0.0482600704,
0.0063486509,
0.1058093458,
-0.0697736889,
0.2074347734,
0.173016876,
0.5229281187,
-0.221358642,
0.0839004442,
0.167191118,
-0.5483285189,
-0.1386866271,
0.0125279408,
-0.2415380627,
-0.1112060249,
0.2085877508,
0.1735863686,
-0.3296717405,
0.0126508549,
-0.1702991426,
0.4515429139,
0.259213686,
-0.5466867089,
-0.077957198,
-0.2133800983,
-0.4382347167,
-0.1997144818,
0.0971906483,
0.4131376743,
-0.5942544937,
-0.3216673732,
0.0216872506,
0.0319067761,
0.0399167389,
-0.122934185,
-0.0634391457,
-0.2444724739,
-0.1077684015,
-0.1384177506,
0.3606542647,
-0.319554776,
-0.7338929176,
0.1537259221,
0.2360214591,
0.5342667103,
-0.0709590018,
-0.137484327,
0.2813946903,
-0.2578287721,
0.14599213,
0.0848447308,
-0.1649033874,
-0.0079936609,
-0.3409692049,
-0.2346944362,
0.223870039,
-0.1502911896,
0.0904171094,
0.3348589838,
0.0790063888,
-0.2542200089,
0.0502921864,
0.0350502208,
0.1049241349,
0.1990929544,
0.245324105,
0.2237652242,
0.2863060832,
-0.4365181327,
-0.2801405787,
0.2506178617,
0.2141300738,
-0.0600014552,
-0.1524062455,
-0.1982274652,
-0.2678266168,
-0.0884184092,
-0.1589773148,
-0.3044101596,
0.0788738877,
0.0225765929,
0.3843640089,
-0.0385037623,
-0.1145257875,
0.6218647957,
0.3084534407,
0.0944801942,
-0.5049408078,
0.2296410799,
-0.0548518002,
0.0051684044,
-0.0591857396,
0.0377821624,
0.293959558,
-0.0685251504,
-0.2895758152,
0.4078748822,
0.039259091,
0.0841677487,
-0.0276332423,
0.1937459111,
0.1773461401,
0.2105838656,
0.0639336035,
0.274181962,
-0.0148834847,
0.2087214887,
-0.1954571605,
0.5572487116,
0.0293753594,
0.3240503669,
0.1208346188,
0.1487564147,
0.3702496588,
0.1305632442,
-0.2189948112,
-0.137078464,
0.3204488754,
-0.4587231874,
0.0626678169,
0.0123390742,
-0.1297933459,
0.3776257634,
0.0716822147,
0.0755120367,
-0.033451993,
0.3119211197,
-0.1593657285,
-0.0421907902,
0.1813622117,
0.4024862647,
0.4014505744,
0.2088319212,
0.0507172123,
0.0758816898,
-0.1615393907,
-0.0248772688,
0.2082491219,
0.1293460727,
-0.169640258,
0.153575331,
0.3034209907,
0.2732039988,
-0.3061975837,
0.093393065,
-0.2356238663,
0.1195331067,
-0.2705812752,
0.3616371453,
-0.2810100913,
-0.2280871719,
0.0761421546,
-0.167832166,
-0.261514008,
-0.3875222206,
0.0898991004,
0.3934392929,
-0.0862187967,
0.2567745447,
0.0147165284,
0.244541198,
0.1361676008,
-0.1996820867,
-0.4005722404,
-0.2078812569,
-0.3476477861,
0.0053976849,
0.2051319033,
-0.156849131,
0.2970356047,
-0.0763089433,
-0.2066244036,
-0.3902941346,
-0.9079105258,
-0.0486291237,
-0.1239648387,
0.6180295348,
0.3176226914,
-0.091625616,
-0.1352720708,
-0.2327560931,
0.1665795594,
-0.0413153023,
-0.4310829639,
0.1568388641,
0.066622749,
0.1682223082,
-0.2003855109,
-0.2270281166,
-0.1135407612,
-0.1458193362,
0.0079397857,
-0.127689749,
0.0849653408,
0.3094043136,
0.1123534516,
-0.3165152669,
-0.0872012228,
0.1330857277,
-0.3335404098,
-0.0773376524,
0.0739420801,
-0.0541622452,
-0.2302437872,
-0.0341396034,
-0.0319809318,
0.0831898302,
0.3736630976,
-0.406958878,
-0.3791770339,
-0.2713731229,
-0.0048742518,
0.23117733,
0.0683609024,
0.2319664061,
0.1899943352,
0.0391032174,
-0.2794685662,
-0.4342857897,
-0.0886204168,
-0.2365953624,
0.1095489562,
0.1482242942,
0.6309944391,
0.0345639586,
0.4764264524,
0.2947267294,
0.0489608869,
0.1398263574,
0.1815549731,
0.4972689748,
-0.3258458674,
-0.4095647633,
-0.0467091389,
-0.0461941659,
0.0505126566,
-0.1531917304,
0.1795817316,
-0.1120615155,
-0.348788321,
0.0000889525,
-0.2515637875,
-0.2498104721,
-0.2386272997,
-0.0136437304,
0.269005388,
0.3906215429,
0.1407711655,
-0.3225957155,
-0.1763849556,
-0.0081371665,
0.4007479548,
0.1035780013,
0.2502201796,
-0.1815417409,
-0.0471421517,
-0.4509261847,
0.4925593734,
0.2151453644,
0.2648921609,
-0.1177540869,
-0.162966162,
-0.3294480145,
-0.0492411032,
0.5928118825,
-0.3631772995,
0.0443487205,
0.1019542664,
-0.2081840038,
-0.3828818798,
0.0511295795,
0.0076627731,
0.3649111986,
0.0543547198,
0.3508077264,
-0.0821148306,
-0.0730154216,
-0.0869159251,
0.2223744392,
-0.1245946959,
0.0196015723,
-0.2743617892,
-0.2049435079,
-0.1433088183,
0.0314203613,
-0.1528895497,
0.165067479,
-0.1800073832,
-0.0685373768,
-0.113143228,
-0.0563925393,
0.1153810173,
0.1347035319,
0.2945026457,
-0.1000053883,
0.118739292,
0.1441813409,
0.240529418,
0.042369619,
0.4583911002,
-0.2755984962,
-0.278095752,
-0.0670713782,
0.1208043993,
-0.114640519,
0.3437378705,
-0.2040163279,
-0.0173399746,
-0.0444571488,
-0.1020427868,
-0.0212401226,
-0.1411030889,
-0.0019393526,
0.3703024685,
-0.2049248368,
-0.2889378667,
0.2329641134,
0.2390515506,
-0.2043494284,
0.4367762506,
0.3422555327,
-0.2809349895,
0.1687894464,
-0.1999589503,
0.7136856318,
0.1521682441,
-0.0298539922,
0.0877991617,
-0.1695175767,
0.4524543583,
0.312545687,
0.1559780091,
-0.0667678118,
-0.2370488644,
-0.0655061454,
-0.034747418,
0.1580223143,
-0.111061506,
-0.2036341429,
0.563148737,
-0.0592190921,
-0.035387788,
0.1755871475,
-0.117328532,
-0.2023076862,
0.0190882459,
-0.4372625351,
0.0991253406,
-0.0213231258,
0.2521659434,
0.0010583699,
-0.0767223239,
0.0552206635,
-0.3087655604,
-0.2637810111,
-0.0523917601,
-0.3992069364,
-0.0659273863,
0.2081238925,
-0.4332802594,
0.0089730322,
0.0526267737,
0.2566774487,
-0.0081805456,
-0.0373011343,
-0.0075373081,
0.0702683851,
0.4977717996,
0.2345930636,
0.0250331312,
0.2863309085,
0.0890945792,
0.1867843717,
0.0195987541,
-0.1420111954,
-0.3608395755,
-0.0186533779,
0.0038107838,
0.1180323213,
-0.1588667631,
0.0288233161,
-0.242854923,
0.0213064551,
-0.3648616672,
0.0650938898,
-0.089833878,
-0.0098388381,
0.0943214372,
-0.0165628176,
-0.2268176377,
-0.0053526862,
0.6357889175,
-0.1438152194,
-0.4367527068,
0.127720058,
-0.0055662245,
-0.2235847116,
0.0353584141,
-0.2044419199,
0.0274195895,
-0.2750840187,
0.297878325,
-0.2511253953,
-0.1071276963,
0.2691297233,
0.322792232,
0.1886075288,
0.2146120071,
-0.151667282,
-0.3945677578,
-0.1370823532,
0.2854577303,
0.0442741737,
0.0549805909,
-0.0311487652,
-0.3236707151,
-0.1444217861,
-0.2066637874,
-0.225788936,
0.0087528154,
0.3313150108,
0.0712086186,
0.1904865801,
0.2205635011,
0.1548966765,
-0.1995645314,
-0.0134113915,
0.0725869313,
-0.2038202733,
-0.10209319,
-0.0933457538,
0.0935417935,
-0.0911599323,
-0.2648987174,
-0.1546195447,
-0.0057540983,
0.0614033639,
-0.1646930128,
0.4182680845,
0.3214155436,
-0.1182498261,
-0.0536906682,
-0.0327781402,
0.0472253412,
0.3035395741,
0.1383114457,
0.0185653735,
0.0326713324,
0.0427049398,
0.1994483769,
-0.1875814348,
0.0140964836,
0.0820162818,
0.0423961766,
-0.2510477006,
0.0270900764,
0.3569348454,
-0.2952964008,
-0.021639429,
0.5987739563,
0.3562678397,
0.2437597811,
-0.1398065835,
0.1138306782,
-0.0777394623,
0.1533576101,
-0.273904711,
-0.332678169,
0.2057785541,
0.2732262015,
0.0609576702,
0.1860819906,
-0.002107203,
0.0291594714,
0.6171159148,
0.2176479399,
0.4478166997,
-0.1253158301,
0.3508078754,
0.5271655917,
0.2326288372,
0.184375748,
0.2417199612,
0.0737256259,
0.0160926357,
0.5080397725,
-0.0660086721,
0.2586890757,
0.2197470069,
0.1287701428,
-0.0355190933,
-0.4662740827,
-0.165674895,
0.0283218995,
-0.0797490105,
0.2506763041,
0.1661576927,
0.0856597796,
-0.2232842445,
-0.3345977664,
0.0114883706,
0.0248980299,
-0.1936261356,
-0.2161097825,
0.1446397007,
-0.3639175296,
-0.0571492612,
0.0134867504,
-0.120843865,
0.0703996271,
0.4529307187,
-0.2469493896,
-0.128362447,
-0.4731903672,
-0.3793773055,
0.0500450991,
0.1747642756,
-0.0140106902,
0.4047628343,
0.2587805688,
-0.2298550904,
0.221988216,
0.2503438592,
0.4856495261,
0.2468239665,
0.0276925862,
0.0133471526,
-0.1420495212,
-0.0540066808,
-0.0907230526,
0.3356419802,
-0.087083146,
0.030568976,
0.1879346967,
0.1134103388,
0.0007337667,
0.2053899765,
-0.0408544727,
0.3989400864,
-0.466181457,
0.0895343721,
-0.2369528115,
0.2848795652,
0.0150144249,
0.100014098,
-0.2490250766,
-0.118114993,
0.171214819,
0.2318111956,
0.2039028108,
-0.1064849868,
0.0748108327,
0.134854272,
0.0739090294,
0.4687883854,
-0.0930127054,
-0.0892462805,
-0.146488905,
-0.6535097361,
-0.0558623038,
0.1423009783,
0.1280673742,
-0.0635152906,
0.0375309512,
0.0490150899,
0.1846857965,
0.0434730016,
-0.1836021245,
0.1054587439,
-0.2515143752,
-0.2000014484,
-0.1759466231,
0.2301194966,
-0.2421483696,
0.0548489988,
-0.2659101486,
0.0627726167,
-0.04169254,
0.02695366,
-0.005927844,
-0.0628841817,
0.0675144494,
0.3473343253,
-0.1370733082,
0.3493894935,
0.2663171589,
0.0334930569,
-0.0034477115,
-0.278297931,
-0.1931355,
-0.2683140337,
0.0700842142,
-0.2921245098,
0.4918607473,
-0.4018592536,
-0.3019632995,
-0.1804216802,
0.2724742591,
0.1233780235,
-0.1268286705,
-0.4767788351,
0.1658579111,
-0.0587570518,
0.0838124603,
0.0044374987,
0.508733809,
0.0599868,
0.3379510641,
-0.2266304791,
-0.3412218094,
0.5358172655,
-0.4137625992,
-0.2617648244,
-0.1319275945,
-0.0639737546,
0.6073153615,
-0.4836448431,
-0.3043729663,
-0.2037672251,
0.2719913721,
-0.1200055629,
-0.1490255296,
0.1555722952,
-0.2652983069,
0.1745558083,
-0.189201951,
-0.0870611668,
0.4393820167,
-0.0882679746,
0.2773536444,
-0.1299419254
] |
https://github.com/huggingface/datasets/issues/2937 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied | Hi @daqieq, thanks for reporting.
Unfortunately, I was not able to reproduce this bug:
```ipython
In [1]: from datasets import load_dataset
...: ds = load_dataset('wiki_bio')
Downloading: 7.58kB [00:00, 26.3kB/s]
Downloading: 2.71kB [00:00, ?B/s]
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\
1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Downloading: 334MB [01:17, 4.32MB/s]
Dataset wiki_bio downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9. Subsequent calls will reuse thi
s data.
```
This kind of error messages usually happen because:
- Your running Python script hasn't write access to that directory
- You have another program (the File Explorer?) already browsing inside that directory | ## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
| 109 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
Hi @daqieq, thanks for reporting.
Unfortunately, I was not able to reproduce this bug:
```ipython
In [1]: from datasets import load_dataset
...: ds = load_dataset('wiki_bio')
Downloading: 7.58kB [00:00, 26.3kB/s]
Downloading: 2.71kB [00:00, ?B/s]
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\
1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Downloading: 334MB [01:17, 4.32MB/s]
Dataset wiki_bio downloaded and prepared to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9. Subsequent calls will reuse thi
s data.
```
This kind of error messages usually happen because:
- Your running Python script hasn't write access to that directory
- You have another program (the File Explorer?) already browsing inside that directory | [
-0.2289306819,
0.3834536374,
0.0403455123,
0.2550398707,
-0.0121114748,
0.2622570992,
0.5036686659,
0.1329528391,
0.3442815542,
0.1357177198,
-0.1089740172,
0.0772838667,
0.073150292,
-0.0056993067,
-0.1256227195,
0.0789284036,
0.0364450403,
-0.0053883456,
0.2149499953,
0.1039546505,
-0.4238831997,
0.1072951853,
-0.1728550494,
0.18611525,
0.0260949396,
-0.1363422424,
0.1212602928,
0.3607298136,
-0.0307891499,
-0.3922067285,
0.3530230522,
0.0634533614,
0.4639181495,
0.2582460642,
-0.000119246,
-0.0137066245,
0.2306839526,
0.1244995147,
-0.0737274811,
0.0871000364,
-0.1839850396,
-0.1409677565,
0.1652295887,
-0.0976865813,
0.1767437905,
0.363491416,
-0.1021371782,
-0.2009293735,
-0.0130414814,
0.3790340126,
0.1573003381,
-0.038185209,
-0.1186793,
-0.0752040446,
0.4933359325,
-0.1592981517,
-0.133180216,
0.2798379064,
0.079024978,
-0.1145702899,
-0.0989916921,
0.1995730847,
-0.1621492505,
0.1471575797,
0.0186585188,
0.0311296061,
0.2162310183,
-0.4581093788,
0.3521410227,
0.1512576044,
0.9656503797,
-0.1955736428,
-0.1914042979,
-0.0887491331,
0.0133039914,
-0.0330024846,
0.4326033294,
0.4286228716,
-0.3245688677,
0.252370894,
0.0659692809,
0.0835652128,
-0.0825508237,
-0.001908889,
0.0712851733,
0.1486521959,
-0.0504702814,
0.1195564419,
-0.114730984,
-0.0834005624,
0.3863353729,
-0.2138272524,
-0.2546019256,
0.1916670203,
-0.3394364715,
0.2898703218,
0.0534536913,
0.7778065205,
0.1578776687,
0.3155295551,
0.1250243187,
-0.0540523119,
0.213623777,
0.0651902109,
0.0085930564,
0.3214896321,
-0.1122386605,
-0.0169231072,
0.427105844,
0.117442362,
-0.0816166177,
-0.0089903977,
-0.0200454462,
-0.4294739366,
0.3538796902,
0.105407238,
0.4081186354,
-0.2856416702,
-0.1217011064,
-0.0002952218,
0.1581319273,
-0.0239709187,
0.05888303,
0.5011534691,
-0.2717711926,
0.0426834486,
0.0682515353,
0.1794450283,
0.0186105669,
0.0977605879,
-0.0877998918,
-0.089002721,
-0.2667179406,
-0.0514381379,
0.4086471796,
-0.3225749135,
0.0955643952,
0.2566770911,
0.0270482227,
-0.1792940795,
0.191831857,
-0.0414975584,
-0.0328566693,
0.357686609,
0.397295773,
0.3376339674,
0.174932465,
-0.2122965753,
-0.0349954516,
0.1863115728,
-0.4872899652,
-0.4025040567,
-0.0336631201,
0.1213276833,
-0.0833241865,
0.0632049516,
-0.1980365515,
-0.0482575409,
0.3823127449,
-0.3008549809,
-0.0618357137,
-0.0137259383,
-0.2206201851,
-0.5042763352,
0.0407075882,
0.4012889862,
-0.359698832,
0.130366981,
-0.0915538967,
-0.2640864253,
0.1504323184,
0.0056377389,
0.0056344233,
0.3616816998,
-0.2812202573,
0.0156069994,
0.2774583995,
-0.3938951194,
-1.0015972853,
-0.0210030675,
0.073099874,
0.1660425365,
0.2444062084,
0.1191370711,
0.3659378886,
-0.0303457454,
0.170476988,
0.3187129498,
0.1300749481,
0.1119743437,
-0.0629963279,
-0.2038551867,
0.2796608806,
0.1339262724,
0.0883390605,
0.3009034991,
0.3125997186,
-0.0569340698,
0.2510955632,
-0.1872614026,
0.1168041155,
0.1925157607,
0.0114951627,
-0.0351364501,
0.1375143826,
-0.1277376264,
-0.4204092622,
0.3514482975,
-0.0081170052,
0.0851671621,
0.0759793371,
-0.2027432919,
-0.3184638917,
0.0913410336,
-0.5447551012,
-0.2889967859,
0.0851063654,
0.2938991785,
0.2124252915,
0.0236819461,
0.1891639531,
0.3374144137,
-0.2082268894,
0.1271958947,
-0.1811407059,
0.0386060849,
-0.1883372813,
-0.136449039,
-0.2122478187,
0.0469156131,
0.2001281381,
0.252748549,
-0.2134329677,
0.1961009949,
0.1512132138,
0.0374988988,
-0.3785575032,
-0.0595559031,
-0.0223774984,
0.1217298508,
0.1568485498,
0.1381784081,
0.148323521,
-0.0443944484,
-0.192219004,
0.1377543956,
-0.1596345305,
0.1437312663,
-0.3266508281,
0.2430362999,
0.2447061986,
0.0900503322,
0.0856965557,
0.0344528556,
0.3054703474,
0.0241180807,
0.0745957047,
-0.2858041525,
0.1012612879,
-0.0778077692,
0.0593028516,
0.0225473121,
0.0812819451,
0.2497535348,
-0.1746014953,
0.0168862492,
0.2869938016,
0.3496789932,
0.5377132893,
-0.0409863256,
0.0515503176,
0.0667969286,
0.0479119457,
0.0896691382,
0.1192514747,
0.0857711285,
-0.0702272207,
0.263449043,
0.1284335256,
0.2241659015,
-0.0647976249,
-0.113860786,
-0.1075413004,
0.4194296896,
-0.4875138998,
-0.0843875632,
0.1000551581,
0.0748399794,
0.181201458,
-0.2428469807,
-0.0887820274,
-0.1460986584,
-0.2430456877,
0.3116367459,
0.0940705985,
0.0835374966,
-0.5119578242,
0.164441511,
0.0075376779,
-0.2018062174,
-0.1137571037,
0.1238791943,
-0.165833801,
-0.0141073428,
0.1862449348,
-0.1799400002,
0.1873877198,
-0.2951590419,
0.2437519729,
-0.3901757598,
-0.1954322159,
0.0151099861,
0.0578858294,
0.4098418951,
0.1254312247,
0.1551068723,
0.1864108443,
-0.3417646289,
0.0566029251,
-0.1075194478,
-0.151061058,
0.2333707958,
-0.0550265051,
0.093855381,
0.0341967791,
-0.2493750155,
-0.5408245921,
-0.2501788139,
-0.0095761176,
0.3858901262,
0.0983012617,
-0.002851326,
-0.1126532406,
0.0033441521,
0.2670296431,
0.3937679231,
-0.2108281106,
-0.2492018938,
0.2102497518,
-0.2092679441,
-0.3346995711,
0.0819490775,
-0.1042307615,
0.044570744,
0.2523833811,
-0.478848815,
-0.0906345695,
-0.3600654602,
0.4096083045,
-0.2326152027,
0.0938281342,
0.3463047743,
0.0892929062,
0.1463987231,
-0.0417489335,
-0.2757164538,
-0.0651356578,
-0.2946413755,
-0.0682324842,
0.3381983042,
0.4274493754,
-0.0575701892,
0.3770319819,
0.3002277017,
0.3604495525,
0.3344712257,
0.0458412766,
0.3711137176,
0.0542610958,
-0.2594741583,
0.108775273,
-0.1943463087,
-0.1401606798,
0.3007433116,
0.0889824033,
-0.1952639222,
-0.0525318235,
-0.3804526627,
-0.2807891965,
-0.2852860689,
-0.0992423743,
-0.2463322729,
0.2537563443,
0.1191408932,
0.1100430414,
-0.4462447762,
-0.3691141903,
0.0288439281,
0.5546327233,
-0.3098393977,
0.1115754396,
-0.3508036733,
0.1366984397,
-0.6549721956,
0.2522454858,
0.0340252779,
0.4958057106,
-0.1741241962,
0.126697138,
-0.0015079491,
-0.1074296087,
0.5570680499,
-0.6522980928,
0.46183002,
0.0581228882,
0.1157311201,
0.0101969615,
-0.2243449986,
-0.0922561362,
0.2416802496,
0.1369417459,
0.214554742,
0.1639220566,
0.0440417156,
0.0762093514,
0.1665932685,
-0.2001325935,
-0.2790575624,
-0.2271350026,
-0.3418878019,
-0.3903852403,
0.1280059814,
0.0421994478,
0.1854701936,
-0.1517434716,
0.1171617955,
-0.4046883583,
0.2369778305,
0.1301798522,
0.1602822542,
0.1877918988,
0.0645755827,
0.2181591392,
-0.0480449386,
0.0753487349,
-0.1291564405,
0.5240868926,
-0.2804766893,
-0.3283787966,
-0.0524906367,
-0.1999856532,
-0.1171173379,
0.1122425422,
-0.3265575767,
-0.0500915684,
-0.1384818554,
-0.1327375472,
-0.3143308461,
0.1170744598,
0.0426039472,
-0.1354340613,
-0.3776836395,
-0.3201940656,
0.3641436398,
0.2117006332,
-0.4467276931,
0.3404746354,
0.1198480427,
-0.4280629754,
0.182469219,
0.0517599434,
0.7466568947,
0.0798900202,
0.278021127,
0.09727709,
-0.1122954637,
0.2001173794,
0.1161782891,
0.0565572493,
-0.3728863001,
-0.4541018009,
-0.0988717899,
-0.2205426991,
-0.1345372349,
-0.0249410085,
-0.2337932885,
0.2817450762,
-0.1129787266,
0.3188051879,
0.2743099928,
0.04803738,
-0.3741956353,
-0.3764995933,
-0.1209943816,
0.1251862943,
-0.1938234866,
0.1358687431,
-0.2274904847,
0.0911156386,
0.0849042386,
-0.1673949063,
-0.4391218424,
0.1967894584,
-0.4114460945,
0.1381168962,
-0.2974180281,
-0.383682549,
0.087799713,
0.5960641503,
0.2849672139,
0.3604593277,
-0.1543028504,
0.060066551,
0.0793892294,
0.1179450899,
0.0249578729,
0.0074553415,
0.196264267,
-0.0806937888,
-0.2981881797,
-0.0151689686,
-0.2781271338,
-0.3215303421,
-0.1055536121,
0.2862681746,
0.4039054215,
-0.3201122284,
-0.2076889426,
-0.3106456101,
0.0849743038,
-0.2798958421,
0.0937028453,
0.0470424704,
-0.0756008029,
0.3795402646,
-0.3368884921,
-0.4257120192,
-0.1475177407,
0.5242763162,
-0.0790770203,
-0.1337568164,
0.5711381435,
-0.0485030413,
-0.1785395592,
-0.0130322464,
0.1454920769,
-0.1009837091,
-0.4624590278,
-0.1003440619,
-0.1225367188,
0.107828021,
-0.0291068386,
0.1698506922,
0.2787975669,
-0.0963104218,
0.0534037948,
-0.7581390738,
-0.2621004283,
-0.1129845753,
-0.2311436832,
0.1716350615,
0.1831113547,
-0.4405415058,
-0.1353052557,
-0.2840807736,
-0.2030029446,
0.0441008732,
-0.2147328556,
-0.1294413656,
0.2779016495,
0.1545574516,
-0.0013405159,
0.1245134324,
-0.0026246868,
0.0926586911,
0.1227550209,
-0.1713697463,
-0.1237097606,
0.1475241631,
0.1037820205,
-0.0917998925,
0.0267538689,
-0.3284253478,
-0.0735969618,
-0.0984260663,
0.3940446377,
0.2593080997,
-0.0281577855,
0.0679169223,
-0.1276832521,
0.2894710898,
-0.2827047706,
0.4151190221,
-0.3472835124,
-0.0251296461,
-0.0133728236,
0.334769249,
-0.1413164735,
0.054126814,
-0.1174534783,
-0.0824943334,
0.1532539725,
0.067897521,
0.0646064579,
-0.3769118488,
0.0850263089,
0.1787574291,
0.0593336225,
0.0623649172,
-0.2331831753,
0.0148411766,
0.2450494915,
0.1589922756,
-0.0922702253,
-0.1294874996,
-0.0120075559,
-0.3234774768,
-0.179044351,
0.3004156053,
0.1639570743,
-0.3836255968,
0.1359912753,
-0.0324051306,
0.5581637621,
-0.224694699,
-0.05772084,
0.4813492,
-0.2174007595,
0.2738089859,
0.2185859084,
0.2596436739,
-0.0843800232,
0.5514784455,
0.1820428073,
0.1367383748,
-0.005867789,
-0.172048375,
-0.1030526459,
-0.6628077626,
0.2800289392,
0.0652532652,
-0.0736902952,
0.0509435683,
-0.0296166316,
-0.0086357668,
-0.3041152358,
-0.0021535866,
-0.4382818937,
-0.2168944031,
-0.180883497,
-0.2836595774,
0.0684351027,
-0.2338435948,
0.172539115,
0.0927765369,
-0.1707767546,
-0.1451970041,
-0.0699780062,
-0.0427518673,
-0.3035750687,
-0.2684686184,
0.1116327345,
0.4133674204,
-0.26629287,
-0.1926916242,
0.0890492797,
0.0064424723,
0.2395811677,
0.0886424705,
0.0961361006,
0.7200034857,
0.3696609735,
-0.1867061555,
-0.0827121288,
0.2043792456,
0.0849799588,
-0.1013357937,
0.3095622659,
0.1992661208,
0.177231878,
0.3453570008,
0.1196847185,
-0.1244665906,
0.0374585949,
0.0380601063,
-0.0089478046,
-0.0834793597,
0.1873594075,
-0.1764344722,
-0.1684233248,
0.1405664831,
0.1980234832,
-0.072777532,
0.1700269878,
0.2323685437,
0.0627375469,
0.194508791,
-0.1900536865,
0.0200616792,
0.1487800479,
0.315546006,
0.3503625393,
0.0980699062,
-0.2335532159,
-0.0683590919,
-0.5775801539,
0.2545948327,
-0.0182251967,
-0.3800155818,
-0.0322350785,
-0.1324878931,
-0.3368007839,
0.106135495,
0.1619228125,
-0.109096691,
0.0555580929,
0.2668964267,
-0.15676108,
-0.2936109304,
0.3894381821,
-0.0377686471,
-0.0781007633,
-0.6786635518,
0.0366011113,
-0.0887598991,
0.0320076868,
-0.1506993771,
-0.1666384935,
0.0341497734,
-0.0260736439,
0.5437771678,
0.2644130886,
0.4555603862,
0.0078378692,
0.0918127075,
-0.5622055531,
-0.068797648,
-0.1452899277,
-0.0336943828,
-0.0778261572,
0.2713478804,
-0.2275038064,
0.0414362848,
-0.1241924092,
0.1670939773,
0.2662992179,
0.3795419037,
-0.0054565854,
0.2279052585,
0.1809429228,
0.1571902037,
0.347844094,
0.0699720681,
-0.0961795077,
0.446036607,
-0.2409338653,
-0.3420478702,
0.2109490484,
-0.394151181,
-0.3340472281,
-0.0192079395,
0.3251574039,
-0.2549185455,
-0.1531336606,
-0.2379635572,
0.2061090171,
0.247839421,
-0.1434803456,
-0.3868971765,
0.1413453072,
-0.1570355594,
0.140291661,
-0.0227521993,
0.0342237987,
0.010134723,
-0.2253904045,
0.170867458,
-0.2374368906
] |
https://github.com/huggingface/datasets/issues/2937 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied | Thanks @albertvillanova for looking at it! I tried on my personal Windows machine and it downloaded just fine.
Running on my work machine and on a colleague's machine it is consistently hitting this error. It's not a write access issue because the `.incomplete` directory is written just fine. It just won't rename and then it deletes the directory in the `finally` step. Also the zip file is written and extracted fine in the downloads directory.
That leaves another program that might be interfering, and there are plenty of those in my work machine ... (full antivirus, data loss prevention, etc.). So the question remains, why not extend the `try` block to allow catching the error and circle back to the rename after the unknown program is finished doing its 'stuff'. This is the approach that I read about in the linked repo (see my comments above).
If it's not high priority, that's fine. However, if someone were to write an PR that solved this issue in our environment in an `except` clause, would it be reviewed for inclusion in a future release? Just wondering whether I should spend any more time on this issue. | ## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
| 194 | load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
## Describe the bug
Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11.
## Steps to reproduce the bug
```python
from datasets import load_dataset
ds = load_dataset('wiki_bio')
```
## Expected results
It is expected that the dataset downloads without any errors.
## Actual results
PermissionError see trace below:
```
Using custom data configuration default
Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to C:\Users\username\.cache\huggingface\datasets\wiki_bio\default\1.1.0\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 644, in download_and_prepare
self._save_info()
File "C:\Users\username\.conda\envs\hf\lib\contextlib.py", line 120, in __exit__
next(self.gen)
File "C:\Users\username\.conda\envs\hf\lib\site-packages\datasets\builder.py", line 598, in incomplete_dir
os.rename(tmp_dir, dirname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9.incomplete' -> 'C:\\Users\\username\\.cache\\huggingface\\datasets\\wiki_bio\\default\\1.1.0\\5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9'
```
By commenting out the os.rename() [L604](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L604) and the shutil.rmtree() [L607](https://github.com/huggingface/datasets/blob/master/src/datasets/builder.py#L607) lines, in my virtual environment, I was able to get the load process to complete, rename the directory manually and then rerun the `load_dataset('wiki_bio')` to get what I needed.
It seems that os.rename() in the `incomplete_dir` content manager is the culprit. Here's another project [Conan](https://github.com/conan-io/conan/issues/6560) with similar issue with os.rename() if it helps debug this issue.
## Environment info
- `datasets` version: 1.12.1
- Platform: Windows-10-10.0.22449-SP0
- Python version: 3.8.12
- PyArrow version: 5.0.0
Thanks @albertvillanova for looking at it! I tried on my personal Windows machine and it downloaded just fine.
Running on my work machine and on a colleague's machine it is consistently hitting this error. It's not a write access issue because the `.incomplete` directory is written just fine. It just won't rename and then it deletes the directory in the `finally` step. Also the zip file is written and extracted fine in the downloads directory.
That leaves another program that might be interfering, and there are plenty of those in my work machine ... (full antivirus, data loss prevention, etc.). So the question remains, why not extend the `try` block to allow catching the error and circle back to the rename after the unknown program is finished doing its 'stuff'. This is the approach that I read about in the linked repo (see my comments above).
If it's not high priority, that's fine. However, if someone were to write an PR that solved this issue in our environment in an `except` clause, would it be reviewed for inclusion in a future release? Just wondering whether I should spend any more time on this issue. | [
-0.2289306819,
0.3834536374,
0.0403455123,
0.2550398707,
-0.0121114748,
0.2622570992,
0.5036686659,
0.1329528391,
0.3442815542,
0.1357177198,
-0.1089740172,
0.0772838667,
0.073150292,
-0.0056993067,
-0.1256227195,
0.0789284036,
0.0364450403,
-0.0053883456,
0.2149499953,
0.1039546505,
-0.4238831997,
0.1072951853,
-0.1728550494,
0.18611525,
0.0260949396,
-0.1363422424,
0.1212602928,
0.3607298136,
-0.0307891499,
-0.3922067285,
0.3530230522,
0.0634533614,
0.4639181495,
0.2582460642,
-0.000119246,
-0.0137066245,
0.2306839526,
0.1244995147,
-0.0737274811,
0.0871000364,
-0.1839850396,
-0.1409677565,
0.1652295887,
-0.0976865813,
0.1767437905,
0.363491416,
-0.1021371782,
-0.2009293735,
-0.0130414814,
0.3790340126,
0.1573003381,
-0.038185209,
-0.1186793,
-0.0752040446,
0.4933359325,
-0.1592981517,
-0.133180216,
0.2798379064,
0.079024978,
-0.1145702899,
-0.0989916921,
0.1995730847,
-0.1621492505,
0.1471575797,
0.0186585188,
0.0311296061,
0.2162310183,
-0.4581093788,
0.3521410227,
0.1512576044,
0.9656503797,
-0.1955736428,
-0.1914042979,
-0.0887491331,
0.0133039914,
-0.0330024846,
0.4326033294,
0.4286228716,
-0.3245688677,
0.252370894,
0.0659692809,
0.0835652128,
-0.0825508237,
-0.001908889,
0.0712851733,
0.1486521959,
-0.0504702814,
0.1195564419,
-0.114730984,
-0.0834005624,
0.3863353729,
-0.2138272524,
-0.2546019256,
0.1916670203,
-0.3394364715,
0.2898703218,
0.0534536913,
0.7778065205,
0.1578776687,
0.3155295551,
0.1250243187,
-0.0540523119,
0.213623777,
0.0651902109,
0.0085930564,
0.3214896321,
-0.1122386605,
-0.0169231072,
0.427105844,
0.117442362,
-0.0816166177,
-0.0089903977,
-0.0200454462,
-0.4294739366,
0.3538796902,
0.105407238,
0.4081186354,
-0.2856416702,
-0.1217011064,
-0.0002952218,
0.1581319273,
-0.0239709187,
0.05888303,
0.5011534691,
-0.2717711926,
0.0426834486,
0.0682515353,
0.1794450283,
0.0186105669,
0.0977605879,
-0.0877998918,
-0.089002721,
-0.2667179406,
-0.0514381379,
0.4086471796,
-0.3225749135,
0.0955643952,
0.2566770911,
0.0270482227,
-0.1792940795,
0.191831857,
-0.0414975584,
-0.0328566693,
0.357686609,
0.397295773,
0.3376339674,
0.174932465,
-0.2122965753,
-0.0349954516,
0.1863115728,
-0.4872899652,
-0.4025040567,
-0.0336631201,
0.1213276833,
-0.0833241865,
0.0632049516,
-0.1980365515,
-0.0482575409,
0.3823127449,
-0.3008549809,
-0.0618357137,
-0.0137259383,
-0.2206201851,
-0.5042763352,
0.0407075882,
0.4012889862,
-0.359698832,
0.130366981,
-0.0915538967,
-0.2640864253,
0.1504323184,
0.0056377389,
0.0056344233,
0.3616816998,
-0.2812202573,
0.0156069994,
0.2774583995,
-0.3938951194,
-1.0015972853,
-0.0210030675,
0.073099874,
0.1660425365,
0.2444062084,
0.1191370711,
0.3659378886,
-0.0303457454,
0.170476988,
0.3187129498,
0.1300749481,
0.1119743437,
-0.0629963279,
-0.2038551867,
0.2796608806,
0.1339262724,
0.0883390605,
0.3009034991,
0.3125997186,
-0.0569340698,
0.2510955632,
-0.1872614026,
0.1168041155,
0.1925157607,
0.0114951627,
-0.0351364501,
0.1375143826,
-0.1277376264,
-0.4204092622,
0.3514482975,
-0.0081170052,
0.0851671621,
0.0759793371,
-0.2027432919,
-0.3184638917,
0.0913410336,
-0.5447551012,
-0.2889967859,
0.0851063654,
0.2938991785,
0.2124252915,
0.0236819461,
0.1891639531,
0.3374144137,
-0.2082268894,
0.1271958947,
-0.1811407059,
0.0386060849,
-0.1883372813,
-0.136449039,
-0.2122478187,
0.0469156131,
0.2001281381,
0.252748549,
-0.2134329677,
0.1961009949,
0.1512132138,
0.0374988988,
-0.3785575032,
-0.0595559031,
-0.0223774984,
0.1217298508,
0.1568485498,
0.1381784081,
0.148323521,
-0.0443944484,
-0.192219004,
0.1377543956,
-0.1596345305,
0.1437312663,
-0.3266508281,
0.2430362999,
0.2447061986,
0.0900503322,
0.0856965557,
0.0344528556,
0.3054703474,
0.0241180807,
0.0745957047,
-0.2858041525,
0.1012612879,
-0.0778077692,
0.0593028516,
0.0225473121,
0.0812819451,
0.2497535348,
-0.1746014953,
0.0168862492,
0.2869938016,
0.3496789932,
0.5377132893,
-0.0409863256,
0.0515503176,
0.0667969286,
0.0479119457,
0.0896691382,
0.1192514747,
0.0857711285,
-0.0702272207,
0.263449043,
0.1284335256,
0.2241659015,
-0.0647976249,
-0.113860786,
-0.1075413004,
0.4194296896,
-0.4875138998,
-0.0843875632,
0.1000551581,
0.0748399794,
0.181201458,
-0.2428469807,
-0.0887820274,
-0.1460986584,
-0.2430456877,
0.3116367459,
0.0940705985,
0.0835374966,
-0.5119578242,
0.164441511,
0.0075376779,
-0.2018062174,
-0.1137571037,
0.1238791943,
-0.165833801,
-0.0141073428,
0.1862449348,
-0.1799400002,
0.1873877198,
-0.2951590419,
0.2437519729,
-0.3901757598,
-0.1954322159,
0.0151099861,
0.0578858294,
0.4098418951,
0.1254312247,
0.1551068723,
0.1864108443,
-0.3417646289,
0.0566029251,
-0.1075194478,
-0.151061058,
0.2333707958,
-0.0550265051,
0.093855381,
0.0341967791,
-0.2493750155,
-0.5408245921,
-0.2501788139,
-0.0095761176,
0.3858901262,
0.0983012617,
-0.002851326,
-0.1126532406,
0.0033441521,
0.2670296431,
0.3937679231,
-0.2108281106,
-0.2492018938,
0.2102497518,
-0.2092679441,
-0.3346995711,
0.0819490775,
-0.1042307615,
0.044570744,
0.2523833811,
-0.478848815,
-0.0906345695,
-0.3600654602,
0.4096083045,
-0.2326152027,
0.0938281342,
0.3463047743,
0.0892929062,
0.1463987231,
-0.0417489335,
-0.2757164538,
-0.0651356578,
-0.2946413755,
-0.0682324842,
0.3381983042,
0.4274493754,
-0.0575701892,
0.3770319819,
0.3002277017,
0.3604495525,
0.3344712257,
0.0458412766,
0.3711137176,
0.0542610958,
-0.2594741583,
0.108775273,
-0.1943463087,
-0.1401606798,
0.3007433116,
0.0889824033,
-0.1952639222,
-0.0525318235,
-0.3804526627,
-0.2807891965,
-0.2852860689,
-0.0992423743,
-0.2463322729,
0.2537563443,
0.1191408932,
0.1100430414,
-0.4462447762,
-0.3691141903,
0.0288439281,
0.5546327233,
-0.3098393977,
0.1115754396,
-0.3508036733,
0.1366984397,
-0.6549721956,
0.2522454858,
0.0340252779,
0.4958057106,
-0.1741241962,
0.126697138,
-0.0015079491,
-0.1074296087,
0.5570680499,
-0.6522980928,
0.46183002,
0.0581228882,
0.1157311201,
0.0101969615,
-0.2243449986,
-0.0922561362,
0.2416802496,
0.1369417459,
0.214554742,
0.1639220566,
0.0440417156,
0.0762093514,
0.1665932685,
-0.2001325935,
-0.2790575624,
-0.2271350026,
-0.3418878019,
-0.3903852403,
0.1280059814,
0.0421994478,
0.1854701936,
-0.1517434716,
0.1171617955,
-0.4046883583,
0.2369778305,
0.1301798522,
0.1602822542,
0.1877918988,
0.0645755827,
0.2181591392,
-0.0480449386,
0.0753487349,
-0.1291564405,
0.5240868926,
-0.2804766893,
-0.3283787966,
-0.0524906367,
-0.1999856532,
-0.1171173379,
0.1122425422,
-0.3265575767,
-0.0500915684,
-0.1384818554,
-0.1327375472,
-0.3143308461,
0.1170744598,
0.0426039472,
-0.1354340613,
-0.3776836395,
-0.3201940656,
0.3641436398,
0.2117006332,
-0.4467276931,
0.3404746354,
0.1198480427,
-0.4280629754,
0.182469219,
0.0517599434,
0.7466568947,
0.0798900202,
0.278021127,
0.09727709,
-0.1122954637,
0.2001173794,
0.1161782891,
0.0565572493,
-0.3728863001,
-0.4541018009,
-0.0988717899,
-0.2205426991,
-0.1345372349,
-0.0249410085,
-0.2337932885,
0.2817450762,
-0.1129787266,
0.3188051879,
0.2743099928,
0.04803738,
-0.3741956353,
-0.3764995933,
-0.1209943816,
0.1251862943,
-0.1938234866,
0.1358687431,
-0.2274904847,
0.0911156386,
0.0849042386,
-0.1673949063,
-0.4391218424,
0.1967894584,
-0.4114460945,
0.1381168962,
-0.2974180281,
-0.383682549,
0.087799713,
0.5960641503,
0.2849672139,
0.3604593277,
-0.1543028504,
0.060066551,
0.0793892294,
0.1179450899,
0.0249578729,
0.0074553415,
0.196264267,
-0.0806937888,
-0.2981881797,
-0.0151689686,
-0.2781271338,
-0.3215303421,
-0.1055536121,
0.2862681746,
0.4039054215,
-0.3201122284,
-0.2076889426,
-0.3106456101,
0.0849743038,
-0.2798958421,
0.0937028453,
0.0470424704,
-0.0756008029,
0.3795402646,
-0.3368884921,
-0.4257120192,
-0.1475177407,
0.5242763162,
-0.0790770203,
-0.1337568164,
0.5711381435,
-0.0485030413,
-0.1785395592,
-0.0130322464,
0.1454920769,
-0.1009837091,
-0.4624590278,
-0.1003440619,
-0.1225367188,
0.107828021,
-0.0291068386,
0.1698506922,
0.2787975669,
-0.0963104218,
0.0534037948,
-0.7581390738,
-0.2621004283,
-0.1129845753,
-0.2311436832,
0.1716350615,
0.1831113547,
-0.4405415058,
-0.1353052557,
-0.2840807736,
-0.2030029446,
0.0441008732,
-0.2147328556,
-0.1294413656,
0.2779016495,
0.1545574516,
-0.0013405159,
0.1245134324,
-0.0026246868,
0.0926586911,
0.1227550209,
-0.1713697463,
-0.1237097606,
0.1475241631,
0.1037820205,
-0.0917998925,
0.0267538689,
-0.3284253478,
-0.0735969618,
-0.0984260663,
0.3940446377,
0.2593080997,
-0.0281577855,
0.0679169223,
-0.1276832521,
0.2894710898,
-0.2827047706,
0.4151190221,
-0.3472835124,
-0.0251296461,
-0.0133728236,
0.334769249,
-0.1413164735,
0.054126814,
-0.1174534783,
-0.0824943334,
0.1532539725,
0.067897521,
0.0646064579,
-0.3769118488,
0.0850263089,
0.1787574291,
0.0593336225,
0.0623649172,
-0.2331831753,
0.0148411766,
0.2450494915,
0.1589922756,
-0.0922702253,
-0.1294874996,
-0.0120075559,
-0.3234774768,
-0.179044351,
0.3004156053,
0.1639570743,
-0.3836255968,
0.1359912753,
-0.0324051306,
0.5581637621,
-0.224694699,
-0.05772084,
0.4813492,
-0.2174007595,
0.2738089859,
0.2185859084,
0.2596436739,
-0.0843800232,
0.5514784455,
0.1820428073,
0.1367383748,
-0.005867789,
-0.172048375,
-0.1030526459,
-0.6628077626,
0.2800289392,
0.0652532652,
-0.0736902952,
0.0509435683,
-0.0296166316,
-0.0086357668,
-0.3041152358,
-0.0021535866,
-0.4382818937,
-0.2168944031,
-0.180883497,
-0.2836595774,
0.0684351027,
-0.2338435948,
0.172539115,
0.0927765369,
-0.1707767546,
-0.1451970041,
-0.0699780062,
-0.0427518673,
-0.3035750687,
-0.2684686184,
0.1116327345,
0.4133674204,
-0.26629287,
-0.1926916242,
0.0890492797,
0.0064424723,
0.2395811677,
0.0886424705,
0.0961361006,
0.7200034857,
0.3696609735,
-0.1867061555,
-0.0827121288,
0.2043792456,
0.0849799588,
-0.1013357937,
0.3095622659,
0.1992661208,
0.177231878,
0.3453570008,
0.1196847185,
-0.1244665906,
0.0374585949,
0.0380601063,
-0.0089478046,
-0.0834793597,
0.1873594075,
-0.1764344722,
-0.1684233248,
0.1405664831,
0.1980234832,
-0.072777532,
0.1700269878,
0.2323685437,
0.0627375469,
0.194508791,
-0.1900536865,
0.0200616792,
0.1487800479,
0.315546006,
0.3503625393,
0.0980699062,
-0.2335532159,
-0.0683590919,
-0.5775801539,
0.2545948327,
-0.0182251967,
-0.3800155818,
-0.0322350785,
-0.1324878931,
-0.3368007839,
0.106135495,
0.1619228125,
-0.109096691,
0.0555580929,
0.2668964267,
-0.15676108,
-0.2936109304,
0.3894381821,
-0.0377686471,
-0.0781007633,
-0.6786635518,
0.0366011113,
-0.0887598991,
0.0320076868,
-0.1506993771,
-0.1666384935,
0.0341497734,
-0.0260736439,
0.5437771678,
0.2644130886,
0.4555603862,
0.0078378692,
0.0918127075,
-0.5622055531,
-0.068797648,
-0.1452899277,
-0.0336943828,
-0.0778261572,
0.2713478804,
-0.2275038064,
0.0414362848,
-0.1241924092,
0.1670939773,
0.2662992179,
0.3795419037,
-0.0054565854,
0.2279052585,
0.1809429228,
0.1571902037,
0.347844094,
0.0699720681,
-0.0961795077,
0.446036607,
-0.2409338653,
-0.3420478702,
0.2109490484,
-0.394151181,
-0.3340472281,
-0.0192079395,
0.3251574039,
-0.2549185455,
-0.1531336606,
-0.2379635572,
0.2061090171,
0.247839421,
-0.1434803456,
-0.3868971765,
0.1413453072,
-0.1570355594,
0.140291661,
-0.0227521993,
0.0342237987,
0.010134723,
-0.2253904045,
0.170867458,
-0.2374368906
] |
https://github.com/huggingface/datasets/issues/2934 | to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows | I did some investigation and, as it seems, the bug stems from [this line](https://github.com/huggingface/datasets/blob/8004d7c3e1d74b29c3e5b0d1660331cd26758363/src/datasets/arrow_dataset.py#L325). The lifecycle of the dataset from the linked line is bound to one of the returned `tf.data.Dataset`. So my (hacky) solution involves wrapping the linked dataset with `weakref.proxy` and adding a custom `__del__` to `tf.python.data.ops.dataset_ops.TensorSliceDataset` (this is the type of a dataset that is returned by `tf.data.Dataset.from_tensor_slices`; this works for TF 2.x, but I'm not sure `tf.python.data.ops.dataset_ops` is a valid path for TF 1.x) that deletes the linked dataset, which is assigned to the dataset object as a property. Will open a draft PR soon! | To reproduce:
```python
import datasets as ds
import weakref
import gc
d = ds.load_dataset("mnist", split="train")
ref = weakref.ref(d._data.table)
tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label")
del tfd, d
gc.collect()
assert ref() is None, "Error: there is at least one reference left"
```
This causes issues because the table holds a reference to an open arrow file that should be closed. So on windows it's not possible to delete or move the arrow file afterwards.
Moreover the CI test of the `to_tf_dataset` method isn't able to clean up the temporary arrow files because of this.
cc @Rocketknight1 | 99 | to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows
To reproduce:
```python
import datasets as ds
import weakref
import gc
d = ds.load_dataset("mnist", split="train")
ref = weakref.ref(d._data.table)
tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label")
del tfd, d
gc.collect()
assert ref() is None, "Error: there is at least one reference left"
```
This causes issues because the table holds a reference to an open arrow file that should be closed. So on windows it's not possible to delete or move the arrow file afterwards.
Moreover the CI test of the `to_tf_dataset` method isn't able to clean up the temporary arrow files because of this.
cc @Rocketknight1
I did some investigation and, as it seems, the bug stems from [this line](https://github.com/huggingface/datasets/blob/8004d7c3e1d74b29c3e5b0d1660331cd26758363/src/datasets/arrow_dataset.py#L325). The lifecycle of the dataset from the linked line is bound to one of the returned `tf.data.Dataset`. So my (hacky) solution involves wrapping the linked dataset with `weakref.proxy` and adding a custom `__del__` to `tf.python.data.ops.dataset_ops.TensorSliceDataset` (this is the type of a dataset that is returned by `tf.data.Dataset.from_tensor_slices`; this works for TF 2.x, but I'm not sure `tf.python.data.ops.dataset_ops` is a valid path for TF 1.x) that deletes the linked dataset, which is assigned to the dataset object as a property. Will open a draft PR soon! | [
0.0456906855,
0.3345080316,
0.1148889512,
0.0804506093,
0.2304305434,
0.1188877076,
0.3988847733,
0.2548753023,
-0.1099168733,
0.2674389482,
-0.3353856802,
0.4040720761,
-0.1644808352,
-0.1074624807,
-0.0342663452,
-0.1066429764,
0.0511107743,
0.145164758,
-0.1666639894,
-0.1226121858,
-0.2103367746,
0.0351908058,
-0.1274757832,
0.0721155554,
-0.1387631446,
-0.281144619,
0.0105894208,
0.1006438658,
0.2441079319,
-0.0183546767,
0.0682791099,
0.0211764704,
-0.1777959019,
0.4797621071,
-0.0001166652,
0.4142078757,
-0.0061278846,
0.1301537156,
-0.2355813086,
0.0565107875,
-0.0690316707,
0.1760493815,
0.1245590001,
-0.0599729568,
0.1349684447,
-0.2177764028,
-0.0255723502,
0.0832733959,
0.2824957073,
0.4290578663,
0.1738770008,
0.6678112745,
0.0490496904,
-0.0070740059,
0.3827848136,
0.063897185,
-0.2742590308,
0.1161700636,
-0.2370098531,
-0.1935151964,
0.0655605942,
0.5781883001,
0.0173821375,
-0.0747983605,
-0.1346867383,
0.0793779641,
-0.2474850863,
-0.2132098973,
0.0991552919,
0.386462003,
0.2942150533,
-0.3177288771,
-0.0704426616,
-0.128684029,
-0.0647846833,
-0.1454349607,
0.191347748,
-0.0462072156,
0.0173867345,
0.1348502785,
0.0582146272,
-0.1622670889,
-0.2615069151,
-0.0061725415,
-0.2810889482,
-0.107219398,
0.0857436806,
0.0801384151,
0.4141067863,
-0.0271511786,
-0.0686376169,
0.0416292585,
0.020164147,
0.1307914704,
-0.2023016363,
-0.1820207238,
-0.0392584875,
-0.1770305187,
-0.0281794928,
-0.0708619505,
0.2392521501,
-0.1570444852,
-0.2443444133,
0.067739971,
0.1644196957,
-0.0705887154,
-0.6655332446,
0.1451995075,
0.2680507302,
-0.1933341473,
-0.1119191051,
-0.0286710784,
0.0027097426,
-0.4981429279,
0.2861166894,
-0.2107922137,
0.4638059735,
0.0174133852,
-0.58344841,
0.1703358889,
-0.1943604499,
0.4077931941,
-0.0392661095,
0.3421228528,
-0.0097243525,
0.2793690264,
0.3236466646,
-0.0036119809,
-0.4970703721,
-0.016201023,
-0.0546676889,
-0.0396625996,
-0.2995607257,
-0.3319227397,
0.1675924957,
0.0439530686,
-0.0478492379,
0.1728075296,
0.0610826872,
0.1025774777,
0.2539456487,
-0.2808155715,
0.5246314406,
0.48127231,
-0.0750979558,
0.2450948358,
0.0949580222,
-0.2507019043,
-0.1292223334,
0.353417784,
-0.2710707486,
-0.1585650444,
-0.2603646517,
0.1245643422,
-0.1202332303,
-0.1552469879,
-0.2238021493,
0.0450048298,
0.0343124382,
-0.05954713,
0.0862919763,
-0.1370919049,
-0.5523477793,
-0.2646560669,
0.0109039545,
0.3650913239,
-0.1991527081,
0.1795514226,
-0.0254389681,
-0.393191725,
-0.1594110429,
0.2656011283,
0.0646050125,
0.3153831363,
-0.4097916484,
-0.1304868758,
0.4838192463,
-0.2320681214,
-0.4512840807,
0.2350059152,
-0.2089942396,
0.2142525613,
-0.3518176377,
0.1303172261,
0.2125168741,
-0.2066657543,
0.0123628564,
-0.0070452467,
-0.06231042,
-0.0091277137,
-0.3236088753,
-0.0108149648,
-0.0680187419,
-0.1952710599,
-0.0157280769,
-0.0124156512,
0.131864816,
-0.0493952669,
0.3902635574,
0.2196919918,
0.1933262199,
0.1417479664,
0.3756608963,
-0.1729134023,
-0.0790890828,
0.0432888046,
-0.377517581,
0.1395243555,
0.4056794047,
0.0777033865,
-0.1249043569,
-0.1479363889,
-0.0149694346,
0.1985373944,
-0.1919496655,
0.0200804286,
0.0784436315,
-0.1194250435,
-0.3427839279,
0.2097571641,
-0.0087736696,
-0.1780347377,
-0.2768907249,
0.0820085928,
0.1028023809,
0.4687247276,
0.2687639296,
-0.0055730566,
-0.244813621,
0.1943386644,
-0.1494650841,
-0.0300622955,
-0.2719016969,
0.4269394875,
0.1747719347,
0.3178132474,
-0.1541972309,
0.5814439654,
0.1066851988,
-0.5981357098,
-0.2948665917,
0.3456803262,
0.1319474578,
-0.0286236182,
-0.0179552957,
0.1456978321,
-0.2007221431,
0.1713245809,
0.0537686795,
0.239264071,
0.0408271551,
0.0214638934,
-0.0363969728,
-0.3410163522,
-0.0483818986,
0.3614163101,
-0.3146297634,
0.2986147106,
-0.6084029675,
0.1965303868,
0.3866645694,
0.0311067477,
-0.1689247936,
0.2358302176,
-0.169494614,
0.0617296398,
0.0715380311,
0.3181353211,
0.4760547876,
0.0223622248,
0.1727906018,
0.1367988139,
-0.1937398314,
-0.0902522653,
0.237364307,
0.0887135416,
0.3124322593,
0.2039207518,
0.2570449114,
0.1931035817,
-0.302403599,
0.0330185518,
0.1302036941,
0.1728960425,
-0.4525786936,
0.1747217923,
-0.1807387918,
-0.038846653,
-0.3074898422,
0.0117458552,
0.0377213284,
-0.1348004341,
0.315459758,
0.3967654407,
-0.4561236501,
0.153922677,
-0.3289418519,
0.1290332079,
0.0227685496,
-0.2959319949,
0.1803024411,
-0.169178918,
-0.2714837193,
0.0344428271,
0.3643866181,
-0.2442777306,
0.4180339873,
-0.0013579726,
-0.0747495443,
-0.1528535187,
-0.2631630898,
0.0897796899,
-0.0949535072,
0.1932280362,
0.2937165499,
0.336810261,
-0.1232666075,
-0.1301763952,
0.1462335438,
-0.4851278961,
-0.1786133349,
0.1372667998,
-0.1227180064,
0.2090111077,
0.020397976,
-0.1520888507,
0.0741769299,
-0.3432302177,
0.0670824349,
-0.1913795918,
0.127728194,
0.6203323007,
0.1520406604,
-0.0800019652,
0.3789709806,
0.1076797247,
-0.1736002862,
-0.1127344221,
0.2009139955,
-0.2037229538,
-0.4296332598,
0.2909049988,
0.0338889658,
0.1325789392,
0.2955588698,
-0.6434158087,
-0.1689424068,
-0.0437353179,
0.1776636541,
-0.1088864952,
-0.0470070429,
0.1665740311,
0.1164369732,
-0.1197147295,
-0.343247354,
0.0827861726,
0.3821261227,
-0.2270807028,
-0.0485797636,
0.0422705263,
0.088244848,
0.3135707974,
0.6243582964,
0.0508326069,
-0.3429433703,
0.0208035335,
-0.2982518077,
0.5073612928,
-0.1590901464,
-0.2795747817,
0.0158005692,
0.0420312509,
-0.1327363998,
0.2462736368,
-0.0795773864,
-0.2103794068,
0.057861954,
0.2167323232,
-0.037591856,
-0.5290263891,
0.1369027048,
-0.396507293,
0.1983656734,
0.1509985626,
-0.0425542146,
-0.158177644,
-0.4451107681,
0.22895962,
0.2040209621,
0.0930263549,
-0.1366163641,
-0.1987894177,
-0.2823880315,
-0.3425536752,
0.0680474415,
0.1306472421,
0.5035334826,
0.0921354145,
-0.2987199426,
0.1360502839,
0.2798966765,
0.7769180536,
-0.0301158335,
-0.0992755517,
0.2773327231,
0.3224095702,
-0.4041953385,
0.055564329,
-0.1050164402,
-0.0046283938,
0.0281626992,
0.241694659,
0.0772358179,
-0.3887940645,
0.2129504085,
0.1766911596,
-0.2477181554,
0.2110396773,
-0.3918556571,
-0.3986026049,
0.1013681665,
0.0878464878,
0.2604940236,
0.049755998,
-0.1087201685,
-0.1115121245,
-0.3012362123,
-0.2482331842,
0.0881450474,
-0.0156273134,
0.3283711672,
0.3708718121,
0.3975337148,
0.0533414707,
0.5702841878,
0.3938702047,
0.4075017869,
-0.5431132317,
0.0214277413,
0.0755056217,
0.191133678,
0.125191614,
0.4420393705,
-0.1866853237,
0.0531416759,
-0.4151875675,
0.0002782717,
-0.3923722208,
0.5302585363,
0.1395114064,
-0.2031340897,
-0.0013098195,
-0.0922305435,
0.1333689094,
-0.0103616379,
-0.148902446,
0.6897455454,
0.2165825516,
-0.1877484918,
0.2651526034,
0.1582136303,
1.1080409288,
-0.0935678184,
0.233469069,
0.5235840678,
-0.2643699646,
0.2126545012,
-0.0553807914,
0.1353134811,
-0.0632257164,
-0.5360182524,
0.0201392844,
-0.0125074312,
-0.360824585,
-0.2005609572,
0.189327687,
0.0023708828,
0.157206744,
0.4106847048,
0.2291461229,
0.0776232332,
0.2959439754,
-0.2186194956,
0.0396569632,
0.0224719755,
0.4466588795,
-0.1266207099,
-0.202606976,
-0.1223223954,
0.165946871,
0.0271230191,
-0.0344650745,
-0.0096407533,
-0.722563982,
0.2756165862,
0.0422484726,
-0.0904387459,
-0.0240594968,
0.4012314975,
0.3712235391,
-0.0988770872,
-0.1523476243,
0.2883421481,
0.3773629367,
0.2930125594,
0.0938070416,
-0.016785726,
0.4750954211,
0.0383026823,
-0.0803635046,
0.1676329523,
-0.054471869,
-0.0525227711,
-0.0370947272,
-0.1225821376,
0.0382938683,
-0.1205562055,
0.0445846617,
-0.0995849222,
-0.2459054291,
-0.0579577684,
0.1035772711,
-0.1804872751,
-0.1070264429,
0.2344727218,
-0.1927343011,
-0.4316692352,
0.2392566651,
0.39225474,
-0.1205128282,
0.1710347384,
0.3036811948,
-0.076104477,
-0.0731282011,
-0.2562384605,
0.3445344269,
0.0378303453,
-0.567092061,
0.2645977437,
-0.1810760796,
0.3202284276,
-0.1079887152,
0.514718473,
-0.1970302314,
0.0209410582,
0.0221597999,
-0.1397223324,
-0.3977710605,
0.2361744344,
0.0018206821,
0.4124106467,
-0.2537191212,
0.4747988582,
-0.1287530363,
-0.2527931333,
-0.2997977734,
0.2343673408,
-0.0281139389,
0.0787902698,
-0.1058860421,
0.0576506034,
0.3181126714,
-0.2779518962,
0.0576958805,
0.1073204875,
-0.1381113976,
-0.1384907663,
-0.1637139916,
0.1632773727,
0.0280179828,
-0.3234010637,
-0.0129801482,
-0.1738721132,
0.076291576,
-0.111380294,
0.3281942904,
0.0700532719,
-0.3296965063,
0.0270977207,
-0.2136469036,
0.1309411079,
0.1392471641,
0.0077433065,
-0.0305916928,
0.3758685887,
0.0896959454,
0.0981486291,
-0.2366092205,
-0.2325259447,
-0.0303852763,
0.2842663527,
-0.035637565,
-0.3600644767,
0.037712615,
-0.0558479689,
-0.2938880026,
-0.0599050336,
0.3766299784,
0.1799757928,
-0.4634622931,
-0.1362241805,
0.2592976391,
0.2242169678,
-0.2404212356,
0.1624508053,
-0.1217676103,
0.0198639929,
0.0385115743,
0.166296646,
0.1840274036,
-0.1465543211,
-0.1428776532,
0.1772314459,
-0.2008032799,
-0.20362477,
0.0310161822,
0.5156288743,
-0.0325355902,
0.2373233587,
-0.1476537883,
0.1036646366,
0.1264172494,
0.2481572479,
-0.0781783611,
0.4826430082,
0.1981097162,
-0.0654389858,
-0.0354683064,
-0.31345281,
-0.0555219986,
0.1641894579,
-0.1238171011,
0.2421869636,
-0.0361494273,
0.2217095494,
0.1549313366,
-0.4245825112,
-0.0117487237,
0.2324925065,
-0.0859793872,
-0.3671879172,
-0.3900305629,
-0.20805493,
-0.272334218,
0.0311244279,
-0.0055277343,
-0.0865741596,
0.009404134,
0.1060138717,
-0.0662820041,
-0.2825776935,
-0.1198214591,
0.3330773115,
0.2778065205,
-0.2325667739,
0.0656124502,
-0.0248094872,
-0.0656781197,
-0.0021086484,
0.2082014084,
0.0835288167,
0.0284214877,
-0.1759397984,
0.0114994124,
-0.0346539989,
0.0922639072,
-0.0400927253,
0.2144378722,
-0.0489173345,
-0.1405197978,
0.2157977819,
-0.0491835326,
-0.0700247735,
0.1828449368,
0.0519723222,
0.0976672024,
-0.4182253778,
0.1498895139,
-0.0033791186,
-0.1016805917,
-0.2287627608,
-0.0051180832,
0.050867185,
-0.1086790487,
0.4808009267,
-0.4602067769,
0.364477694,
-0.0873914808,
0.0682187378,
-0.0095314439,
0.2219791114,
0.1271089762,
0.3292398751,
-0.2891254425,
-0.3842817545,
-0.5309659243,
0.2625988722,
-0.0495070256,
-0.0506450534,
0.2118177116,
0.031771712,
-0.0888987482,
-0.0664602742,
0.0274048857,
-0.1865465641,
0.1133229285,
0.2672547698,
-0.265827477,
-0.0360958874,
-0.4830034375,
0.098432675,
0.0199030191,
-0.5478619337,
-0.1800813079,
-0.1762709618,
0.0375099257,
-0.0818458945,
-0.021551773,
-0.0166111402,
0.5460250974,
0.5247311592,
0.1254573017,
0.0754964799,
0.1195666045,
-0.102561377,
-0.2674233317,
-0.1794993132,
-0.3766337633,
-0.1837469935,
0.0070535615,
-0.0237968713,
-0.052944012,
0.197137326,
0.0137046389,
-0.2977708578,
0.1801952422,
0.3653976023,
-0.4400824606,
0.1956056058,
-0.2059034109,
0.3725327849,
0.2628457248,
0.4234926701,
-0.1296610981,
0.2166780233,
-0.3998851776,
-0.3820689321,
0.4928815067,
-0.5328620672,
-0.0930068493,
-0.0245975591,
0.3842856884,
-0.0938029438,
0.0362868905,
-0.5819959641,
-0.1765553802,
0.3898157775,
-0.083492808,
-0.5030674338,
0.1706115752,
0.130146414,
0.1384346038,
0.1181670725,
0.5913181305,
0.140175879,
-0.1933636367,
0.0364977866,
-0.286213547
] |
https://github.com/huggingface/datasets/issues/2924 | "File name too long" error for file locks | Hi, the filename here is less than 255
```python
>>> len("_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock")
154
```
so not sure why it's considered too long for your filesystem.
(also note that the lock files we use always have smaller filenames than 255)
https://github.com/huggingface/datasets/blob/5d1a9f1e3c6c495dc0610b459e39d2eb8893f152/src/datasets/utils/filelock.py#L135-L135 | ## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
| 39 | "File name too long" error for file locks
## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
Hi, the filename here is less than 255
```python
>>> len("_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock")
154
```
so not sure why it's considered too long for your filesystem.
(also note that the lock files we use always have smaller filenames than 255)
https://github.com/huggingface/datasets/blob/5d1a9f1e3c6c495dc0610b459e39d2eb8893f152/src/datasets/utils/filelock.py#L135-L135 | [
0.0493387729,
0.0920009762,
-0.0714941099,
0.401848197,
0.4151671231,
0.2358948588,
0.6366623044,
0.2435027659,
0.2364588678,
0.2313295007,
0.0185687691,
0.0077437051,
-0.1442687213,
-0.3100363016,
-0.2015361935,
-0.244314611,
-0.158109054,
-0.0416219905,
-0.1770785898,
0.2177186608,
-0.1549791098,
0.3787366152,
0.0246381462,
0.1570836753,
-0.5360065699,
0.0900787339,
-0.129596293,
0.388674587,
-0.0215062648,
-0.3729910254,
0.0511184931,
-0.046716623,
0.0688150823,
0.8113575578,
-0.0001220686,
-0.3334413171,
0.3542335927,
-0.056298919,
-0.3271901011,
-0.2243083715,
-0.1685818732,
-0.5117117763,
-0.0345850736,
-0.4988022745,
0.1872132421,
-0.0951191336,
-0.0331906974,
-0.8021569848,
0.0410522968,
0.3733056784,
0.1268748045,
-0.0783472732,
0.0910247043,
-0.2579203546,
0.3323120773,
-0.2779889703,
0.0040847734,
0.3564024568,
0.3556976616,
-0.0988673419,
-0.1546516567,
0.2032181621,
-0.0368967988,
0.0273247212,
0.2471579909,
0.0795376152,
-0.0874830484,
-0.326164484,
0.2958056629,
0.4273938537,
0.471437484,
-0.093061924,
-0.2793130577,
-0.467697531,
0.1424981207,
-0.1251060069,
0.488530755,
-0.0762399882,
-0.2220745683,
0.1514883637,
-0.1704196483,
-0.0196211301,
-0.1235968992,
-0.1102386117,
-0.1019758433,
0.0650620982,
0.0405087098,
0.0362790152,
0.3111135066,
-0.3483148813,
0.2395954728,
0.0048368443,
0.0742737055,
0.2694600523,
-0.6542135477,
0.1469124109,
0.084268108,
0.3854928613,
0.2534899712,
0.0576435216,
-0.2659730911,
-0.1483080387,
0.1947483271,
-0.0104661286,
-0.064955011,
0.3742070794,
0.1944443434,
0.1612815559,
0.3012427092,
0.0779470801,
-0.3367466033,
-0.1069349945,
-0.0764873996,
-0.5534628034,
0.4451378584,
0.1335907578,
0.0741625279,
-0.3437120616,
0.1504582018,
0.5705772638,
0.1057045311,
-0.0104901902,
0.2287025154,
0.2733798623,
0.0054354407,
0.1107668504,
0.0830742121,
-0.0899365395,
-0.0889611915,
0.1008350775,
-0.1473124921,
-0.1107303798,
-0.2270202786,
0.1124097332,
0.0892054141,
-0.3083955646,
0.2792794108,
-0.2274651378,
0.3152399063,
-0.1249575615,
-0.0829686001,
-0.2377423942,
-0.0667323321,
0.1559672207,
-0.0591067746,
0.0739143044,
0.2452138513,
-0.2607334256,
-0.1920616627,
-0.0771117061,
-0.3397485018,
-0.285187602,
-0.0617213845,
0.0947030634,
-0.1654944718,
0.2159019858,
0.241554901,
-0.2671949267,
0.6555526257,
-0.0798194259,
0.0127977468,
-0.2747654617,
-0.1418098509,
0.0071926489,
0.0408247709,
0.5534656644,
0.1325239539,
-0.0175628886,
-0.0687893331,
0.1282822043,
0.0086660907,
0.3722594082,
0.1806451082,
-0.0535968207,
-0.4219526052,
0.3124940395,
0.2268716991,
-0.240280807,
-0.4869856834,
0.3215384781,
-0.3943073452,
0.0994933248,
0.3229114413,
0.0228829682,
0.0517103672,
-0.0245827306,
0.2853382826,
0.1822130829,
-0.0260958299,
0.0234952867,
-0.2025244832,
-0.1073305756,
-0.0406304337,
0.1691957116,
0.0109545132,
0.0670008212,
0.0796194971,
-0.1751917005,
0.2715683877,
0.0314634889,
-0.2040444613,
0.3736800551,
0.1382421255,
0.3267183602,
0.1860824227,
-0.1063276678,
-0.593750596,
0.2637210786,
-0.1218476444,
-0.1787317842,
-0.2175931036,
-0.1868049204,
-0.174988687,
-0.0072901174,
0.0034601605,
0.1351370215,
-0.0204084329,
0.283249557,
0.1417795569,
-0.1317637563,
0.0934400707,
0.5883799195,
-0.1702440977,
0.0175973661,
-0.4781186283,
-0.1711263955,
-0.1178537458,
-0.1125400066,
0.0315069407,
0.001639422,
0.3693964183,
-0.1089681834,
-0.3443508148,
0.4480754435,
0.3332765102,
0.0975326225,
-0.1789246202,
-0.0044302642,
-0.0568642244,
0.2207756937,
0.0726701021,
0.0398116149,
0.0077854358,
0.0142917857,
-0.2135763168,
0.3000160754,
-0.1408158243,
0.27127707,
0.0286139771,
0.1682408005,
0.2461793423,
-0.1318138242,
0.0643452853,
-0.1761223972,
0.6458846331,
-0.2163525224,
0.3048402369,
0.0547802746,
0.0452313498,
-0.1448626965,
0.645819366,
0.045392707,
-0.0001777746,
0.1977424622,
0.1562013775,
-0.0408152863,
-0.0193725601,
0.3064888716,
0.51114434,
0.192058593,
-0.0301227085,
-0.206505999,
0.3941577375,
-0.2238345295,
0.256318748,
0.015908191,
-0.0027930178,
0.3657029271,
0.0496182665,
-0.1290876865,
0.0514838323,
-0.8095088005,
-0.050442148,
0.223697558,
-0.3198086619,
0.1480822563,
-0.1393255591,
-0.0432044677,
-0.0237995163,
0.0004905537,
-0.0803986639,
-0.4162821174,
-0.1888938546,
0.2785061002,
-0.1418367475,
0.2145340145,
-0.1188359708,
-0.0032407343,
0.2712829709,
-0.0145384036,
-0.2950280905,
-0.0016125664,
0.0803441554,
-0.0837600976,
0.2720729709,
-0.5375036597,
0.0838036239,
-0.1256634593,
-0.063107416,
-0.5083526373,
-0.249880299,
0.1116677821,
-0.1684809625,
0.2935638726,
0.3413660824,
0.2078575045,
0.1666621864,
0.0588971674,
0.0049614832,
-0.2622788548,
0.0236697048,
0.2326638997,
0.177900672,
-0.0228181574,
-0.1917994916,
-0.0234549604,
-0.3463731706,
-0.4160332084,
0.3207849264,
0.0303033888,
0.2279278636,
0.3411895037,
-0.0708732456,
0.2978124321,
-0.0179731809,
0.2472921908,
-0.0879070163,
-0.4463702142,
0.4170608819,
-0.1525217444,
-0.2990591526,
-0.4318083823,
0.2980132997,
-0.0355094969,
0.1055191457,
-0.4223636985,
-0.1790713966,
-0.4012610912,
0.3389858603,
-0.335719645,
0.0054094102,
0.1970202625,
-0.0852011293,
-0.056348715,
-0.1069381684,
0.0849028602,
0.2325124592,
0.0110358074,
-0.0095209405,
0.0929810554,
0.2951666117,
-0.1160778031,
0.4532133639,
0.3616655767,
0.0753480345,
0.1953795552,
-0.1376696378,
0.1843571216,
-0.2590323091,
-0.1269459277,
0.0239379853,
0.1744715571,
-0.2215842754,
0.1342059076,
-0.0853910595,
0.0140822716,
-0.1333197653,
-0.057792075,
0.1078079566,
-0.2960295081,
0.0073164683,
0.0485864654,
0.0524901152,
0.031080313,
0.1456944644,
-0.1948867738,
-0.130910188,
-0.0240891837,
0.3084782958,
0.0540785715,
-0.0233559478,
-0.2468733191,
0.0915109962,
-0.3371422589,
0.4440094829,
0.1830918342,
0.2137980461,
-0.0693597645,
-0.1601749957,
-0.0800487325,
0.0460067019,
0.6831175089,
0.0991291851,
0.3160925806,
0.1554957032,
0.2547035515,
-0.1230870932,
0.0391723216,
0.0795528516,
0.37018767,
0.1390411407,
0.4079337418,
-0.230809778,
0.0376087353,
-0.1833171695,
0.1855424047,
-0.1166331917,
-0.4492169321,
-0.026285693,
0.0087962672,
-0.2636859715,
0.1616199017,
0.0336055979,
0.2442287058,
0.061672166,
0.0049132183,
-0.0601772517,
-0.0747793615,
0.1601552814,
0.1748355031,
0.281263113,
-0.4468776882,
0.2643654644,
-0.027559286,
-0.1595292985,
0.2304125279,
0.5639727712,
-0.4439827502,
-0.2478428483,
0.4144732952,
-0.3565593958,
0.0764389038,
0.428709507,
-0.3107660413,
-0.158424601,
0.3582059741,
0.6321595907,
0.1236555874,
0.0257822722,
0.0325682759,
0.1308743954,
-0.1530222595,
-0.3346109688,
0.2163308859,
0.2430950701,
-0.0178354084,
0.5360286832,
0.0242516566,
-0.3025456071,
0.2613931298,
-0.2059546858,
1.0209487677,
-0.1854491234,
0.1871505678,
-0.0190805662,
0.1287677884,
0.4992989004,
0.0092908144,
-0.0842247382,
-0.4268136919,
-0.482785821,
0.1402027607,
-0.1498040259,
0.2397721112,
-0.0366778672,
-0.1301994473,
0.3139282763,
-0.2595100999,
0.0177617222,
-0.1745312661,
0.4527937174,
-0.6466597915,
-0.2542140484,
-0.2503229976,
0.0479837768,
-0.0439813025,
0.1101505235,
0.0617119335,
0.1686862707,
-0.3292619586,
-0.2781672478,
-0.2272059619,
0.0370317623,
-0.4157633781,
0.0835296139,
-0.2439021319,
-0.2822076678,
-0.0902423263,
0.2852125168,
-0.0320499055,
0.4013367295,
-0.2035952359,
0.0923506916,
0.0828220099,
0.0968723074,
0.0729996115,
-0.0632443875,
0.3176955879,
0.0168972239,
0.0743538588,
-0.2857044935,
0.0053975023,
-0.1422323883,
0.0324823409,
-0.0234268755,
0.150413841,
-0.2308296114,
-0.3237560987,
-0.3392715156,
-0.2038623989,
-0.1504356861,
0.052160468,
0.3335696459,
-0.2387237549,
-0.0088772327,
-0.2857560515,
-0.4090463519,
-0.0096646473,
0.3055092096,
-0.1481093615,
-0.0472045727,
0.4327270687,
0.3000044525,
-0.2102095038,
-0.1779171228,
-0.0190173909,
-0.1799962819,
-0.6621263027,
0.0823080689,
0.0360399596,
-0.042710796,
-0.2416070849,
-0.2668298781,
0.2053604722,
0.1265296191,
0.1113988757,
-0.4697988629,
-0.4082911313,
-0.2329965532,
-0.2976685166,
0.201614961,
-0.0566246845,
-0.3551496863,
-0.2588423789,
0.0327730179,
-0.2122100294,
0.0599939302,
-0.1423734725,
-0.0618366711,
0.4633506536,
-0.1418499053,
0.2244607508,
-0.1397038847,
0.0463556647,
0.401208967,
0.0694131404,
-0.1816515177,
-0.3011113703,
0.1451772451,
0.0411615483,
0.058584623,
-0.0672907233,
-0.3786490262,
-0.0527515113,
-0.2798326015,
0.1326039582,
0.3364622295,
0.242445454,
0.0756184012,
0.0943305045,
0.0986532569,
-0.0325292125,
0.3306850791,
-0.1649504006,
-0.1383993775,
0.0095240064,
0.2725931406,
-0.2107259631,
0.1175263226,
-0.3212474585,
0.153660506,
-0.0095390752,
-0.036181666,
0.0752807558,
-0.0265366957,
-0.1096813157,
0.5564430356,
0.2327182889,
0.2920390964,
-0.2722925842,
-0.2302523553,
0.275631547,
0.1339131296,
0.0165831223,
-0.2051157057,
0.1073662192,
-0.1286122501,
-0.099584952,
0.3734355867,
-0.0706341118,
-0.1355884075,
-0.1899377406,
-0.1248223186,
0.5824733973,
0.0935560167,
-0.0696672946,
0.2455470115,
-0.0136259198,
0.0776756108,
0.4613702893,
0.2502688766,
0.0169344209,
0.5474847555,
-0.3130880594,
0.0298885647,
-0.1627935916,
-0.0062185861,
-0.2004128098,
-0.4473773241,
0.1316618621,
0.310780704,
-0.0724566877,
0.1873664856,
-0.1468191892,
0.3045752645,
-0.2501968741,
0.1819010824,
0.0543670505,
0.0492204018,
-0.1095730364,
-0.0142701454,
0.3495129943,
-0.0250100493,
-0.2757629752,
-0.0046617165,
-0.1150470376,
0.1466552466,
0.379602015,
0.2733507752,
0.1335938126,
-0.1753618866,
0.0041430574,
0.2133580595,
0.1663142294,
-0.4822300076,
0.1435224861,
0.3909597695,
-0.0886782482,
0.262295723,
-0.001731379,
0.5537605882,
0.1397945881,
0.0983081311,
-0.0007226951,
-0.1064625531,
-0.0113883279,
-0.1354414523,
0.4446235597,
-0.0308795534,
-0.1025132835,
0.3387676775,
0.0280347615,
-0.1576936394,
0.1146626472,
0.1928841472,
0.123716116,
-0.1751527786,
0.2012575269,
0.0158895403,
-0.2077659667,
-0.1786324531,
0.1449804604,
-0.3786619902,
-0.1633839309,
0.2516909838,
0.0403836928,
0.2624588907,
-0.1355941147,
0.0489801392,
-0.1194115281,
0.1483440548,
0.3839923143,
0.2433495075,
-0.2853366137,
-0.0405623168,
-0.6024459004,
0.224628225,
-0.048773583,
-0.1710737795,
0.0451598838,
-0.1129756942,
-0.0471115671,
-0.1518051475,
0.3878984153,
-0.015927773,
0.1115339845,
0.2670121789,
-0.4752603173,
-0.2240056992,
0.1703025103,
-0.0663013309,
0.2272349596,
-0.3988767266,
0.1303194612,
-0.2667441368,
-0.0137349628,
-0.1426666677,
-0.1962015331,
0.1286678761,
0.3134683669,
0.3546337783,
0.1124141812,
0.2980175614,
0.0608977824,
-0.2498636246,
-0.3230273128,
0.1182480007,
-0.1321164817,
0.0156514756,
0.2199657261,
0.2973279059,
-0.4038829207,
-0.432920754,
-0.377073437,
0.5200784206,
-0.1345875263,
0.0714469254,
-0.1244054586,
-0.0493410081,
-0.0306261256,
0.273988992,
0.263312161,
0.2337563634,
0.0706376582,
0.4157320857,
-0.190689072,
-0.2998300195,
0.6595064998,
-0.1065888852,
-0.4276303649,
0.0981978923,
0.4086523056,
0.0720972568,
-0.1614484191,
-0.4712713659,
0.1547386199,
0.3244367838,
0.0784330368,
-0.2918293774,
0.2315366119,
-0.2830386758,
0.1289328337,
-0.1040055826,
0.2516618967,
0.26928249,
-0.2087138742,
-0.0591595545,
-0.1967327595
] |
https://github.com/huggingface/datasets/issues/2924 | "File name too long" error for file locks | Yes, you're right! I need to get you more info here. Either there's something going with the name itself that the file system doesn't like (an encoding that blows up the name length??) or perhaps there's something with the path that's causing the entire string to be used as a name. I haven't seen this on any system before and the Internet's not forthcoming with any info. | ## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
| 67 | "File name too long" error for file locks
## Describe the bug
Getting the following error when calling `load_dataset("gar1t/test")`:
```
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Steps to reproduce the bug
Where the user cache dir (e.g. `~/.cache`) is on a file system that limits filenames to 255 chars (e.g. ext4):
```python
from datasets import load_dataset
load_dataset("gar1t/test")
```
## Expected results
Expect the function to return without an error.
## Actual results
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<python_venv>/lib/python3.9/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 644, in download_and_prepare
self._save_info()
File "<python_venv>/lib/python3.9/site-packages/datasets/builder.py", line 765, in _save_info
with FileLock(lock_path):
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 323, in __enter__
self.acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 272, in acquire
self._acquire()
File "<python_venv>/lib/python3.9/site-packages/datasets/utils/filelock.py", line 403, in _acquire
fd = os.open(self._lock_file, open_mode)
OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock'
```
## Environment info
- `datasets` version: 1.12.1
- Platform: Linux-5.11.0-27-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 5.0.0
Yes, you're right! I need to get you more info here. Either there's something going with the name itself that the file system doesn't like (an encoding that blows up the name length??) or perhaps there's something with the path that's causing the entire string to be used as a name. I haven't seen this on any system before and the Internet's not forthcoming with any info. | [
0.0493387729,
0.0920009762,
-0.0714941099,
0.401848197,
0.4151671231,
0.2358948588,
0.6366623044,
0.2435027659,
0.2364588678,
0.2313295007,
0.0185687691,
0.0077437051,
-0.1442687213,
-0.3100363016,
-0.2015361935,
-0.244314611,
-0.158109054,
-0.0416219905,
-0.1770785898,
0.2177186608,
-0.1549791098,
0.3787366152,
0.0246381462,
0.1570836753,
-0.5360065699,
0.0900787339,
-0.129596293,
0.388674587,
-0.0215062648,
-0.3729910254,
0.0511184931,
-0.046716623,
0.0688150823,
0.8113575578,
-0.0001220686,
-0.3334413171,
0.3542335927,
-0.056298919,
-0.3271901011,
-0.2243083715,
-0.1685818732,
-0.5117117763,
-0.0345850736,
-0.4988022745,
0.1872132421,
-0.0951191336,
-0.0331906974,
-0.8021569848,
0.0410522968,
0.3733056784,
0.1268748045,
-0.0783472732,
0.0910247043,
-0.2579203546,
0.3323120773,
-0.2779889703,
0.0040847734,
0.3564024568,
0.3556976616,
-0.0988673419,
-0.1546516567,
0.2032181621,
-0.0368967988,
0.0273247212,
0.2471579909,
0.0795376152,
-0.0874830484,
-0.326164484,
0.2958056629,
0.4273938537,
0.471437484,
-0.093061924,
-0.2793130577,
-0.467697531,
0.1424981207,
-0.1251060069,
0.488530755,
-0.0762399882,
-0.2220745683,
0.1514883637,
-0.1704196483,
-0.0196211301,
-0.1235968992,
-0.1102386117,
-0.1019758433,
0.0650620982,
0.0405087098,
0.0362790152,
0.3111135066,
-0.3483148813,
0.2395954728,
0.0048368443,
0.0742737055,
0.2694600523,
-0.6542135477,
0.1469124109,
0.084268108,
0.3854928613,
0.2534899712,
0.0576435216,
-0.2659730911,
-0.1483080387,
0.1947483271,
-0.0104661286,
-0.064955011,
0.3742070794,
0.1944443434,
0.1612815559,
0.3012427092,
0.0779470801,
-0.3367466033,
-0.1069349945,
-0.0764873996,
-0.5534628034,
0.4451378584,
0.1335907578,
0.0741625279,
-0.3437120616,
0.1504582018,
0.5705772638,
0.1057045311,
-0.0104901902,
0.2287025154,
0.2733798623,
0.0054354407,
0.1107668504,
0.0830742121,
-0.0899365395,
-0.0889611915,
0.1008350775,
-0.1473124921,
-0.1107303798,
-0.2270202786,
0.1124097332,
0.0892054141,
-0.3083955646,
0.2792794108,
-0.2274651378,
0.3152399063,
-0.1249575615,
-0.0829686001,
-0.2377423942,
-0.0667323321,
0.1559672207,
-0.0591067746,
0.0739143044,
0.2452138513,
-0.2607334256,
-0.1920616627,
-0.0771117061,
-0.3397485018,
-0.285187602,
-0.0617213845,
0.0947030634,
-0.1654944718,
0.2159019858,
0.241554901,
-0.2671949267,
0.6555526257,
-0.0798194259,
0.0127977468,
-0.2747654617,
-0.1418098509,
0.0071926489,
0.0408247709,
0.5534656644,
0.1325239539,
-0.0175628886,
-0.0687893331,
0.1282822043,
0.0086660907,
0.3722594082,
0.1806451082,
-0.0535968207,
-0.4219526052,
0.3124940395,
0.2268716991,
-0.240280807,
-0.4869856834,
0.3215384781,
-0.3943073452,
0.0994933248,
0.3229114413,
0.0228829682,
0.0517103672,
-0.0245827306,
0.2853382826,
0.1822130829,
-0.0260958299,
0.0234952867,
-0.2025244832,
-0.1073305756,
-0.0406304337,
0.1691957116,
0.0109545132,
0.0670008212,
0.0796194971,
-0.1751917005,
0.2715683877,
0.0314634889,
-0.2040444613,
0.3736800551,
0.1382421255,
0.3267183602,
0.1860824227,
-0.1063276678,
-0.593750596,
0.2637210786,
-0.1218476444,
-0.1787317842,
-0.2175931036,
-0.1868049204,
-0.174988687,
-0.0072901174,
0.0034601605,
0.1351370215,
-0.0204084329,
0.283249557,
0.1417795569,
-0.1317637563,
0.0934400707,
0.5883799195,
-0.1702440977,
0.0175973661,
-0.4781186283,
-0.1711263955,
-0.1178537458,
-0.1125400066,
0.0315069407,
0.001639422,
0.3693964183,
-0.1089681834,
-0.3443508148,
0.4480754435,
0.3332765102,
0.0975326225,
-0.1789246202,
-0.0044302642,
-0.0568642244,
0.2207756937,
0.0726701021,
0.0398116149,
0.0077854358,
0.0142917857,
-0.2135763168,
0.3000160754,
-0.1408158243,
0.27127707,
0.0286139771,
0.1682408005,
0.2461793423,
-0.1318138242,
0.0643452853,
-0.1761223972,
0.6458846331,
-0.2163525224,
0.3048402369,
0.0547802746,
0.0452313498,
-0.1448626965,
0.645819366,
0.045392707,
-0.0001777746,
0.1977424622,
0.1562013775,
-0.0408152863,
-0.0193725601,
0.3064888716,
0.51114434,
0.192058593,
-0.0301227085,
-0.206505999,
0.3941577375,
-0.2238345295,
0.256318748,
0.015908191,
-0.0027930178,
0.3657029271,
0.0496182665,
-0.1290876865,
0.0514838323,
-0.8095088005,
-0.050442148,
0.223697558,
-0.3198086619,
0.1480822563,
-0.1393255591,
-0.0432044677,
-0.0237995163,
0.0004905537,
-0.0803986639,
-0.4162821174,
-0.1888938546,
0.2785061002,
-0.1418367475,
0.2145340145,
-0.1188359708,
-0.0032407343,
0.2712829709,
-0.0145384036,
-0.2950280905,
-0.0016125664,
0.0803441554,
-0.0837600976,
0.2720729709,
-0.5375036597,
0.0838036239,
-0.1256634593,
-0.063107416,
-0.5083526373,
-0.249880299,
0.1116677821,
-0.1684809625,
0.2935638726,
0.3413660824,
0.2078575045,
0.1666621864,
0.0588971674,
0.0049614832,
-0.2622788548,
0.0236697048,
0.2326638997,
0.177900672,
-0.0228181574,
-0.1917994916,
-0.0234549604,
-0.3463731706,
-0.4160332084,
0.3207849264,
0.0303033888,
0.2279278636,
0.3411895037,
-0.0708732456,
0.2978124321,
-0.0179731809,
0.2472921908,
-0.0879070163,
-0.4463702142,
0.4170608819,
-0.1525217444,
-0.2990591526,
-0.4318083823,
0.2980132997,
-0.0355094969,
0.1055191457,
-0.4223636985,
-0.1790713966,
-0.4012610912,
0.3389858603,
-0.335719645,
0.0054094102,
0.1970202625,
-0.0852011293,
-0.056348715,
-0.1069381684,
0.0849028602,
0.2325124592,
0.0110358074,
-0.0095209405,
0.0929810554,
0.2951666117,
-0.1160778031,
0.4532133639,
0.3616655767,
0.0753480345,
0.1953795552,
-0.1376696378,
0.1843571216,
-0.2590323091,
-0.1269459277,
0.0239379853,
0.1744715571,
-0.2215842754,
0.1342059076,
-0.0853910595,
0.0140822716,
-0.1333197653,
-0.057792075,
0.1078079566,
-0.2960295081,
0.0073164683,
0.0485864654,
0.0524901152,
0.031080313,
0.1456944644,
-0.1948867738,
-0.130910188,
-0.0240891837,
0.3084782958,
0.0540785715,
-0.0233559478,
-0.2468733191,
0.0915109962,
-0.3371422589,
0.4440094829,
0.1830918342,
0.2137980461,
-0.0693597645,
-0.1601749957,
-0.0800487325,
0.0460067019,
0.6831175089,
0.0991291851,
0.3160925806,
0.1554957032,
0.2547035515,
-0.1230870932,
0.0391723216,
0.0795528516,
0.37018767,
0.1390411407,
0.4079337418,
-0.230809778,
0.0376087353,
-0.1833171695,
0.1855424047,
-0.1166331917,
-0.4492169321,
-0.026285693,
0.0087962672,
-0.2636859715,
0.1616199017,
0.0336055979,
0.2442287058,
0.061672166,
0.0049132183,
-0.0601772517,
-0.0747793615,
0.1601552814,
0.1748355031,
0.281263113,
-0.4468776882,
0.2643654644,
-0.027559286,
-0.1595292985,
0.2304125279,
0.5639727712,
-0.4439827502,
-0.2478428483,
0.4144732952,
-0.3565593958,
0.0764389038,
0.428709507,
-0.3107660413,
-0.158424601,
0.3582059741,
0.6321595907,
0.1236555874,
0.0257822722,
0.0325682759,
0.1308743954,
-0.1530222595,
-0.3346109688,
0.2163308859,
0.2430950701,
-0.0178354084,
0.5360286832,
0.0242516566,
-0.3025456071,
0.2613931298,
-0.2059546858,
1.0209487677,
-0.1854491234,
0.1871505678,
-0.0190805662,
0.1287677884,
0.4992989004,
0.0092908144,
-0.0842247382,
-0.4268136919,
-0.482785821,
0.1402027607,
-0.1498040259,
0.2397721112,
-0.0366778672,
-0.1301994473,
0.3139282763,
-0.2595100999,
0.0177617222,
-0.1745312661,
0.4527937174,
-0.6466597915,
-0.2542140484,
-0.2503229976,
0.0479837768,
-0.0439813025,
0.1101505235,
0.0617119335,
0.1686862707,
-0.3292619586,
-0.2781672478,
-0.2272059619,
0.0370317623,
-0.4157633781,
0.0835296139,
-0.2439021319,
-0.2822076678,
-0.0902423263,
0.2852125168,
-0.0320499055,
0.4013367295,
-0.2035952359,
0.0923506916,
0.0828220099,
0.0968723074,
0.0729996115,
-0.0632443875,
0.3176955879,
0.0168972239,
0.0743538588,
-0.2857044935,
0.0053975023,
-0.1422323883,
0.0324823409,
-0.0234268755,
0.150413841,
-0.2308296114,
-0.3237560987,
-0.3392715156,
-0.2038623989,
-0.1504356861,
0.052160468,
0.3335696459,
-0.2387237549,
-0.0088772327,
-0.2857560515,
-0.4090463519,
-0.0096646473,
0.3055092096,
-0.1481093615,
-0.0472045727,
0.4327270687,
0.3000044525,
-0.2102095038,
-0.1779171228,
-0.0190173909,
-0.1799962819,
-0.6621263027,
0.0823080689,
0.0360399596,
-0.042710796,
-0.2416070849,
-0.2668298781,
0.2053604722,
0.1265296191,
0.1113988757,
-0.4697988629,
-0.4082911313,
-0.2329965532,
-0.2976685166,
0.201614961,
-0.0566246845,
-0.3551496863,
-0.2588423789,
0.0327730179,
-0.2122100294,
0.0599939302,
-0.1423734725,
-0.0618366711,
0.4633506536,
-0.1418499053,
0.2244607508,
-0.1397038847,
0.0463556647,
0.401208967,
0.0694131404,
-0.1816515177,
-0.3011113703,
0.1451772451,
0.0411615483,
0.058584623,
-0.0672907233,
-0.3786490262,
-0.0527515113,
-0.2798326015,
0.1326039582,
0.3364622295,
0.242445454,
0.0756184012,
0.0943305045,
0.0986532569,
-0.0325292125,
0.3306850791,
-0.1649504006,
-0.1383993775,
0.0095240064,
0.2725931406,
-0.2107259631,
0.1175263226,
-0.3212474585,
0.153660506,
-0.0095390752,
-0.036181666,
0.0752807558,
-0.0265366957,
-0.1096813157,
0.5564430356,
0.2327182889,
0.2920390964,
-0.2722925842,
-0.2302523553,
0.275631547,
0.1339131296,
0.0165831223,
-0.2051157057,
0.1073662192,
-0.1286122501,
-0.099584952,
0.3734355867,
-0.0706341118,
-0.1355884075,
-0.1899377406,
-0.1248223186,
0.5824733973,
0.0935560167,
-0.0696672946,
0.2455470115,
-0.0136259198,
0.0776756108,
0.4613702893,
0.2502688766,
0.0169344209,
0.5474847555,
-0.3130880594,
0.0298885647,
-0.1627935916,
-0.0062185861,
-0.2004128098,
-0.4473773241,
0.1316618621,
0.310780704,
-0.0724566877,
0.1873664856,
-0.1468191892,
0.3045752645,
-0.2501968741,
0.1819010824,
0.0543670505,
0.0492204018,
-0.1095730364,
-0.0142701454,
0.3495129943,
-0.0250100493,
-0.2757629752,
-0.0046617165,
-0.1150470376,
0.1466552466,
0.379602015,
0.2733507752,
0.1335938126,
-0.1753618866,
0.0041430574,
0.2133580595,
0.1663142294,
-0.4822300076,
0.1435224861,
0.3909597695,
-0.0886782482,
0.262295723,
-0.001731379,
0.5537605882,
0.1397945881,
0.0983081311,
-0.0007226951,
-0.1064625531,
-0.0113883279,
-0.1354414523,
0.4446235597,
-0.0308795534,
-0.1025132835,
0.3387676775,
0.0280347615,
-0.1576936394,
0.1146626472,
0.1928841472,
0.123716116,
-0.1751527786,
0.2012575269,
0.0158895403,
-0.2077659667,
-0.1786324531,
0.1449804604,
-0.3786619902,
-0.1633839309,
0.2516909838,
0.0403836928,
0.2624588907,
-0.1355941147,
0.0489801392,
-0.1194115281,
0.1483440548,
0.3839923143,
0.2433495075,
-0.2853366137,
-0.0405623168,
-0.6024459004,
0.224628225,
-0.048773583,
-0.1710737795,
0.0451598838,
-0.1129756942,
-0.0471115671,
-0.1518051475,
0.3878984153,
-0.015927773,
0.1115339845,
0.2670121789,
-0.4752603173,
-0.2240056992,
0.1703025103,
-0.0663013309,
0.2272349596,
-0.3988767266,
0.1303194612,
-0.2667441368,
-0.0137349628,
-0.1426666677,
-0.1962015331,
0.1286678761,
0.3134683669,
0.3546337783,
0.1124141812,
0.2980175614,
0.0608977824,
-0.2498636246,
-0.3230273128,
0.1182480007,
-0.1321164817,
0.0156514756,
0.2199657261,
0.2973279059,
-0.4038829207,
-0.432920754,
-0.377073437,
0.5200784206,
-0.1345875263,
0.0714469254,
-0.1244054586,
-0.0493410081,
-0.0306261256,
0.273988992,
0.263312161,
0.2337563634,
0.0706376582,
0.4157320857,
-0.190689072,
-0.2998300195,
0.6595064998,
-0.1065888852,
-0.4276303649,
0.0981978923,
0.4086523056,
0.0720972568,
-0.1614484191,
-0.4712713659,
0.1547386199,
0.3244367838,
0.0784330368,
-0.2918293774,
0.2315366119,
-0.2830386758,
0.1289328337,
-0.1040055826,
0.2516618967,
0.26928249,
-0.2087138742,
-0.0591595545,
-0.1967327595
] |
https://github.com/huggingface/datasets/issues/2918 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming | Hi @SBrandeis, thanks for reporting! ^^
I think this is an issue with `fsspec`: https://github.com/intake/filesystem_spec/issues/389
I will ask them if they are planning to fix it... | ## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
| 26 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
Hi @SBrandeis, thanks for reporting! ^^
I think this is an issue with `fsspec`: https://github.com/intake/filesystem_spec/issues/389
I will ask them if they are planning to fix it... | [
-0.3864648342,
-0.2204954028,
0.0894812346,
0.4387411475,
0.2157088816,
0.1229232103,
-0.0369099304,
0.3093880415,
0.2422772944,
0.0955025926,
-0.2264312804,
0.4261532128,
-0.0641759783,
0.3035329282,
-0.0094657149,
-0.2584783137,
-0.0045060329,
0.2337660491,
-0.1049253345,
0.1268759519,
-0.0005552247,
0.1941257715,
-0.2469927967,
-0.0304233357,
0.0522288159,
-0.1081044674,
0.0124068782,
0.2805254459,
-0.0595832467,
-0.4462356567,
0.1259049773,
-0.0615480281,
0.412114352,
0.3375739455,
-0.0001145032,
0.273448348,
0.4721425474,
-0.1227843612,
-0.4853444099,
-0.2121145725,
-0.2186653912,
0.0961271897,
0.0428348333,
-0.1566339433,
-0.0091344267,
0.0711133182,
-0.0400048569,
-0.7192989588,
0.3178498149,
0.3456362188,
0.177849859,
0.0426002666,
-0.0489488281,
0.026822377,
0.068838805,
-0.2986649871,
-0.0920066088,
0.1218171716,
0.2367272973,
0.2287400663,
-0.3595731258,
0.3845902681,
-0.0658879802,
0.060183946,
0.0944150537,
0.0967236087,
-0.1749502718,
-0.4655050933,
-0.0073940558,
0.1884143203,
0.6776788235,
-0.2555165887,
-0.4161982536,
-0.2319882214,
-0.0021709763,
-0.6144573689,
0.1465313435,
0.1489271969,
-0.4673650861,
0.1280595064,
0.245963186,
-0.0087530576,
-0.3279941678,
-0.0458732359,
-0.2467990518,
0.388222456,
-0.0767855197,
-0.0237270556,
0.0272941515,
-0.0866288543,
0.4627742171,
-0.2110349238,
-0.284593761,
-0.06397935,
-0.4397553802,
-0.0420654863,
-0.0765122473,
-0.0941094235,
0.1681464314,
0.2153903097,
0.2953205109,
0.0882523358,
0.1543644965,
0.092644155,
0.3555267751,
0.360866785,
0.0598315187,
0.1853773296,
0.1311808228,
0.0994314179,
0.1366243809,
-0.1818916947,
-0.1464888602,
-0.0372806117,
0.0281630084,
-0.0131143257,
0.2628583312,
-0.1912379116,
-0.4138479531,
0.0297919512,
-0.305721581,
-0.0794671923,
0.0055906363,
0.2817170322,
0.095834136,
0.418780148,
0.0194581151,
0.1178673655,
-0.2396833897,
-0.4573937953,
-0.0878112018,
-0.1247183457,
-0.0010086223,
0.1233464703,
0.0153353065,
-0.1886833608,
0.151573807,
-0.0465375893,
0.1621008515,
-0.0012184083,
-0.0208561607,
-0.1100593656,
0.0216294136,
0.2049841136,
0.2180561125,
0.164035216,
0.179515332,
-0.1997853965,
-0.1306825131,
0.0886228085,
-0.1416330785,
-0.1671276838,
-0.1788373142,
0.2166469991,
-0.009402249,
-0.3506268561,
-0.0937892646,
0.2814686596,
0.1409592628,
-0.2037899792,
-0.1410703659,
-0.0391464457,
-0.1241322234,
-0.0865158141,
0.1792778969,
0.5796176791,
-0.1855917424,
-0.1380211264,
-0.1521385312,
0.0008937344,
0.5833054185,
0.3344026804,
-0.0607915819,
0.0897967964,
-0.1707224548,
0.1476538479,
0.5017136335,
-0.1436582506,
-0.5796043873,
0.5436658263,
-0.0396082923,
0.5637280941,
0.2707029283,
0.0225365721,
0.1742345691,
0.0431194082,
0.3135291934,
0.3299021721,
-0.1484594196,
0.0074818879,
-0.3334666491,
-0.0399839543,
0.4416947365,
0.1912288219,
0.0674292073,
0.2502860725,
-0.02887417,
-0.0626680106,
0.3689775467,
-0.0752569586,
0.0763452575,
0.0410077199,
0.1468884051,
0.0120372931,
0.1379382908,
-0.2090768516,
-0.310682863,
0.297231108,
0.0749307871,
0.0127099585,
-0.3174343705,
0.2031728178,
-0.1906454861,
0.0017470643,
-0.2628930211,
-0.2590404749,
0.1243169904,
0.3170803189,
0.0756207407,
0.0505897701,
-0.3084765673,
0.7747215033,
-0.0782549381,
-0.0131347179,
-0.4549140334,
0.2024927884,
-0.0707771033,
-0.201457262,
0.0164403692,
-0.1265656799,
0.067255415,
-0.0161920432,
-0.2579913735,
0.331320107,
-0.2366141379,
0.2640711963,
-0.1954373717,
-0.1731968075,
0.2897444367,
-0.3644789457,
-0.0866842717,
0.2706030309,
0.107503891,
0.1252098978,
-0.0176987406,
0.1480840296,
0.2070917338,
0.2361333817,
0.0434488654,
0.1143488213,
0.1961681545,
-0.0816748887,
-0.0686836541,
-0.0850089863,
0.3240483999,
-0.3548791111,
0.0467498153,
-0.1989232302,
-0.2722991705,
0.0823630542,
0.3586786091,
-0.1403827518,
-0.0492742881,
0.3303243518,
-0.2885321975,
-0.1639077365,
0.3145601749,
0.1940100491,
0.4723354578,
0.0815223008,
0.2573351562,
-0.0455883741,
-0.1886482388,
-0.0735060126,
0.3051701188,
0.1374841779,
0.0314635076,
0.2464114279,
0.0300060846,
0.1635745317,
-0.3229162097,
-0.3497171402,
-0.0566318557,
0.1123418137,
-0.320186913,
0.306301713,
-0.3882682323,
-0.4651740491,
0.0463514589,
0.1560088545,
0.0689052045,
-0.3235586286,
-0.1817545891,
0.2325055003,
-0.0038824454,
0.1636845171,
-0.268206507,
0.0895482749,
0.2671771646,
-0.0134687396,
-0.3418698907,
-0.1808480024,
-0.2729628682,
0.0591980219,
0.1749955416,
-0.422804594,
0.176919207,
0.0074263141,
-0.116053015,
-0.1401736885,
-0.0764234588,
0.3197819591,
-0.1554996967,
0.1568954736,
-0.2774870396,
0.1493913531,
0.2213631719,
-0.250348866,
0.1219482943,
0.0908335373,
-0.1187845469,
0.2801246047,
0.0940898061,
-0.0241613425,
-0.0305835083,
-0.3010805547,
-0.3024662733,
-0.6177491546,
0.0549682453,
0.0454261452,
0.2135514915,
0.1643047035,
0.0170348659,
0.0968244523,
0.3292070925,
0.0991601646,
-0.1142122,
-0.4199432731,
0.3747450411,
-0.1670145541,
-0.2868407965,
-0.3248367608,
-0.068159759,
0.197289899,
0.2589268088,
-0.5295243263,
0.2950168252,
-0.408103317,
0.0848926604,
-0.3834520578,
-0.0974560529,
-0.0261519365,
0.0762888789,
-0.0349893793,
-0.1878575832,
0.0707456768,
-0.1169515103,
0.099007532,
0.2066107243,
0.1086307317,
0.3698712587,
0.1008495316,
0.3327508271,
0.4812107384,
-0.0195495207,
0.340754807,
0.0828914344,
0.1538008004,
-0.1004335433,
-0.0627882555,
-0.0955620185,
-0.2280800343,
-0.0261197612,
0.0981995016,
-0.0962132961,
-0.5762302876,
-0.2840516567,
0.0549152717,
-0.0692367107,
-0.2383102626,
0.0528835431,
-0.511775136,
0.0420480222,
-0.1872567534,
0.158339709,
0.0807968155,
0.0520014092,
0.0860458016,
0.1772524118,
0.126164645,
0.172119841,
-0.1850209981,
-0.0639052689,
-0.4881905019,
0.1825859249,
0.1051265746,
0.4215747118,
-0.1678104103,
-0.1327164173,
0.079114981,
-0.0652067959,
0.3487039804,
-0.2754174471,
0.003567344,
0.2673938274,
0.1421359777,
-0.141551882,
0.0917669758,
-0.3209462762,
0.1368290484,
0.2359539717,
0.0974200815,
-0.1718233079,
0.0333401039,
-0.0884199217,
-0.0724965036,
-0.1253026724,
-0.0163988993,
-0.1704962552,
-0.2492374927,
-0.152010262,
-0.1342425346,
0.2032724023,
0.1256834567,
-0.0124602318,
-0.0567927919,
-0.0460818298,
-0.0396244228,
0.2418597192,
0.2213253379,
0.1399097294,
-0.072280094,
0.2290112525,
0.0671990812,
0.2844446599,
0.229216665,
0.8364325762,
0.1181944758,
-0.562425375,
0.2350821197,
0.2339566648,
0.1660988778,
0.1305403411,
-0.1482324898,
-0.0085168146,
-0.040384464,
0.2698211968,
-0.3024733961,
0.2146551162,
0.2112326026,
-0.0507210419,
-0.5149304271,
-0.4357539117,
0.5883386731,
-0.0393684581,
-0.0761906728,
0.7872931957,
-0.1665047705,
-0.3171558976,
0.4775416255,
0.023435384,
0.7585883141,
0.0943951458,
0.2168688178,
0.2407481968,
-0.3207278252,
0.5003328323,
-0.2320683897,
0.3346685469,
-0.1206095293,
-0.3350296617,
-0.0831094384,
-0.104109481,
0.1709020287,
-0.1476038396,
-0.6302540898,
0.1709610522,
-0.0596439317,
-0.2528054118,
0.3353526592,
0.2742265463,
-0.6082693934,
-0.3062929511,
-0.0675496459,
0.1388827115,
-0.2213594615,
0.3239611387,
0.1382447928,
-0.2202336192,
-0.0515734516,
-0.0843103752,
-0.470235914,
0.4758627415,
-0.2765564322,
0.1624137312,
-0.2390312552,
-0.476098299,
0.1513126493,
0.2664023638,
-0.1421327591,
-0.2257857323,
-0.1582509279,
0.2350440919,
0.1860539317,
0.128023535,
0.0993066132,
0.1514587104,
0.388358593,
0.0532773808,
-0.0168123841,
0.1884423494,
-0.0089799501,
-0.1606285572,
-0.0637813061,
0.0554575026,
0.3183137774,
-0.2681801915,
0.2368576229,
-0.1058514044,
0.042925328,
-0.184253186,
0.0869721249,
-0.0188317224,
-0.174054563,
-0.0738877654,
-0.081296958,
-0.2196761668,
-0.084744215,
0.3771201372,
0.1454578191,
0.3179714084,
0.4994189143,
0.0281168967,
-0.1778804362,
-0.1036715209,
-0.0551505983,
-0.2931397259,
-0.2526119053,
0.0693600997,
-0.2414766699,
-0.1610281765,
-0.2706694603,
0.0038263733,
0.0448378474,
-0.1035543606,
-0.1137387976,
-0.2993662357,
-0.1906369328,
-0.0266143344,
-0.1242438555,
0.2199307382,
-0.1722204089,
0.0222038664,
0.0031198412,
0.1290861517,
-0.2706837952,
-0.1228594556,
-0.0753693059,
0.0231181793,
0.2672104836,
0.029267557,
0.2592339218,
0.109669283,
0.1476227641,
0.313904345,
-0.0276747905,
-0.1609540135,
-0.1787950695,
0.1384893656,
0.0165314712,
-0.3480512798,
-0.1548940837,
-0.0566204414,
0.0126906075,
-0.1251360923,
0.3503145874,
0.181230247,
0.0380967334,
0.2706008554,
0.1240137368,
0.0563359968,
-0.2326476872,
0.1542366892,
-0.2642732859,
0.2401307076,
0.0811118111,
0.0928403959,
-0.0755398124,
-0.0118691325,
-0.3646137714,
0.0622696355,
0.1017948836,
-0.0280174632,
0.5909270644,
-0.4241806269,
0.1720450073,
-0.0497745387,
0.0660299733,
0.4045223892,
-0.229618609,
-0.2089620382,
0.0850853324,
0.2000515163,
-0.0432030633,
-0.2126209289,
-0.4010485411,
-0.1016408652,
0.0112390146,
0.1459596306,
-0.1068902537,
-0.2721834779,
0.0999631286,
-0.2103082985,
0.48598364,
0.3358430862,
0.2670662999,
0.4836386442,
-0.1811282486,
0.0228469688,
-0.2260247916,
0.0204594508,
0.1999065429,
0.2970435023,
0.0035515912,
-0.0078699626,
-0.1613660157,
0.217818886,
-0.1859749407,
-0.4821960926,
-0.0797477886,
0.1024475992,
-0.164754957,
0.390193522,
0.1489098668,
0.1521605253,
-0.2779349387,
-0.0519218668,
-0.0458418429,
-0.0661265701,
-0.0142798405,
-0.0960804075,
0.1068765968,
-0.0128561333,
-0.3279227614,
0.0976090282,
0.0123998635,
0.0633682758,
-0.0198641904,
0.2808056474,
-0.2884627879,
-0.1185013875,
-0.0822275877,
0.1043176353,
0.2999255657,
-0.3544149995,
0.4440691769,
0.3661907911,
-0.1568612754,
0.0282510035,
0.0700020269,
0.4816073477,
0.2853378356,
-0.176650703,
0.0946500301,
0.3374168277,
-0.0436373316,
-0.0402214304,
0.0442540981,
0.2830949128,
0.1793198287,
0.4566898048,
0.0887393951,
-0.1485420465,
0.104571797,
0.0814352483,
0.2538891733,
-0.2799381614,
0.4623195827,
-0.1195058674,
0.0366923809,
0.0272422433,
-0.3365722299,
-0.5624158382,
-0.0282045491,
0.0348957665,
-0.2285001278,
0.0745237544,
-0.0081124082,
0.0628782436,
0.1139546931,
0.4926683009,
0.3248411119,
-0.0188455544,
-0.2245095074,
-0.1508788764,
-0.235583514,
0.2332023382,
-0.0674799085,
-0.1231483817,
0.1752854586,
0.2219230831,
-0.004841473,
0.1680495143,
-0.158444792,
0.0204545669,
-0.2672834694,
0.1405725628,
-0.3995795846,
-0.3515672982,
0.1919632256,
0.1735795438,
-0.0483117215,
-0.576480031,
0.1881390959,
-0.150238961,
0.160817802,
0.0926133096,
-0.241848141,
0.101145193,
-0.2756582797,
0.5297336578,
0.2331106514,
0.3792003691,
-0.1842953563,
-0.4119566083,
-0.0992462337,
-0.3762303293,
-0.2749149203,
-0.0155846253,
0.1083336696,
0.5696321726,
-0.1493341923,
-0.2373838723,
-0.3574707806,
0.3262626231,
0.0608898401,
-0.2656731308,
-0.2735390067,
0.1733702123,
-0.1194599271,
0.2131261379,
0.3050512075,
0.3803451955,
-0.0287129171,
0.1639949232,
-0.2235155702,
-0.4333210588,
0.5773114562,
-0.3461061716,
-0.2659670711,
0.2418414205,
0.0638137534,
0.326497674,
0.2410196811,
-0.4596661925,
0.0893657058,
0.3556544781,
-0.2354130596,
-0.1511853337,
0.1421460807,
0.22597,
-0.0607199222,
-0.0850398764,
0.4553109407,
0.2423965186,
-0.2492040098,
0.1750814915,
-0.1786387712
] |
https://github.com/huggingface/datasets/issues/2918 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming | Code to reproduce the bug: `ClientPayloadError: 400, message='Can not decode content-encoding: gzip'`
```python
In [1]: import fsspec
In [2]: import json
In [3]: with fsspec.open('https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/test.jsonl', encoding="utf-8") as f:
...: for row in f:
...: data = json.loads(row)
...:
---------------------------------------------------------------------------
ClientPayloadError Traceback (most recent call last)
``` | ## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
| 46 | `Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
## Describe the bug
Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`:
```python
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
cc @lhoestq
## Steps to reproduce the bug
```python
from datasets import load_dataset
iter_dset = iter(
load_dataset("scitldr", name="FullText", split="test", streaming=True)
)
next(iter_dset)
```
## Expected results
Returns the first sample of the dataset
## Actual results
Calling `__next__` crashes with the following Traceback:
```python
----> 1 next(dset_iter)
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
339
340 def __iter__(self):
--> 341 for key, example in self._iter():
342 if self.features:
343 # we encode the example for ClassLabel feature types for example
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in _iter(self)
336 else:
337 ex_iterable = self._ex_iterable
--> 338 yield from ex_iterable
339
340 def __iter__(self):
~\miniconda3\envs\datasets\lib\site-packages\datasets\iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~\.cache\huggingface\modules\datasets_modules\datasets\scitldr\72d6e2195786c57e1d343066fb2cc4f93ea39c5e381e53e6ae7c44bbfd1f05ef\scitldr.py in _generate_examples(self, filepath, split)
162
163 with open(filepath, encoding="utf-8") as f:
--> 164 for id_, row in enumerate(f):
165 data = json.loads(row)
166 if self.config.name == "AIC":
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in read(self, length)
496 else:
497 length = min(self.size - self.loc, length)
--> 498 return super().read(length)
499
500 async def async_fetch_all(self):
~\miniconda3\envs\datasets\lib\site-packages\fsspec\spec.py in read(self, length)
1481 # don't even bother calling fetch
1482 return b""
-> 1483 out = self.cache._fetch(self.loc, self.loc + length)
1484 self.loc += len(out)
1485 return out
~\miniconda3\envs\datasets\lib\site-packages\fsspec\caching.py in _fetch(self, start, end)
378 elif start < self.start:
379 if self.end - end > self.blocksize:
--> 380 self.cache = self.fetcher(start, bend)
381 self.start = start
382 else:
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in wrapper(*args, **kwargs)
86 def wrapper(*args, **kwargs):
87 self = obj or args[0]
---> 88 return sync(self.loop, func, *args, **kwargs)
89
90 return wrapper
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in sync(loop, func, timeout, *args, **kwargs)
67 raise FSTimeoutError
68 if isinstance(result[0], BaseException):
---> 69 raise result[0]
70 return result[0]
71
~\miniconda3\envs\datasets\lib\site-packages\fsspec\asyn.py in _runner(event, coro, result, timeout)
23 coro = asyncio.wait_for(coro, timeout=timeout)
24 try:
---> 25 result[0] = await coro
26 except Exception as ex:
27 result[0] = ex
~\miniconda3\envs\datasets\lib\site-packages\fsspec\implementations\http.py in async_fetch_range(self, start, end)
538 if r.status == 206:
539 # partial content, as expected
--> 540 out = await r.read()
541 elif "Content-Length" in r.headers:
542 cl = int(r.headers["Content-Length"])
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\client_reqrep.py in read(self)
1030 if self._body is None:
1031 try:
-> 1032 self._body = await self.content.read()
1033 for trace in self._traces:
1034 await trace.send_response_chunk_received(
~\miniconda3\envs\datasets\lib\site-packages\aiohttp\streams.py in read(self, n)
342 async def read(self, n: int = -1) -> bytes:
343 if self._exception is not None:
--> 344 raise self._exception
345
346 # migration problem; with DataQueue you have to catch
ClientPayloadError: 400, message='Can not decode content-encoding: gzip'
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.8.5
- PyArrow version: 2.0.0
- aiohttp version: 3.7.4.post0
Code to reproduce the bug: `ClientPayloadError: 400, message='Can not decode content-encoding: gzip'`
```python
In [1]: import fsspec
In [2]: import json
In [3]: with fsspec.open('https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/test.jsonl', encoding="utf-8") as f:
...: for row in f:
...: data = json.loads(row)
...:
---------------------------------------------------------------------------
ClientPayloadError Traceback (most recent call last)
``` | [
-0.3864648342,
-0.2204954028,
0.0894812346,
0.4387411475,
0.2157088816,
0.1229232103,
-0.0369099304,
0.3093880415,
0.2422772944,
0.0955025926,
-0.2264312804,
0.4261532128,
-0.0641759783,
0.3035329282,
-0.0094657149,
-0.2584783137,
-0.0045060329,
0.2337660491,
-0.1049253345,
0.1268759519,
-0.0005552247,
0.1941257715,
-0.2469927967,
-0.0304233357,
0.0522288159,
-0.1081044674,
0.0124068782,
0.2805254459,
-0.0595832467,
-0.4462356567,
0.1259049773,
-0.0615480281,
0.412114352,
0.3375739455,
-0.0001145032,
0.273448348,
0.4721425474,
-0.1227843612,
-0.4853444099,
-0.2121145725,
-0.2186653912,
0.0961271897,
0.0428348333,
-0.1566339433,
-0.0091344267,
0.0711133182,
-0.0400048569,
-0.7192989588,
0.3178498149,
0.3456362188,
0.177849859,
0.0426002666,
-0.0489488281,
0.026822377,
0.068838805,
-0.2986649871,
-0.0920066088,
0.1218171716,
0.2367272973,
0.2287400663,
-0.3595731258,
0.3845902681,
-0.0658879802,
0.060183946,
0.0944150537,
0.0967236087,
-0.1749502718,
-0.4655050933,
-0.0073940558,
0.1884143203,
0.6776788235,
-0.2555165887,
-0.4161982536,
-0.2319882214,
-0.0021709763,
-0.6144573689,
0.1465313435,
0.1489271969,
-0.4673650861,
0.1280595064,
0.245963186,
-0.0087530576,
-0.3279941678,
-0.0458732359,
-0.2467990518,
0.388222456,
-0.0767855197,
-0.0237270556,
0.0272941515,
-0.0866288543,
0.4627742171,
-0.2110349238,
-0.284593761,
-0.06397935,
-0.4397553802,
-0.0420654863,
-0.0765122473,
-0.0941094235,
0.1681464314,
0.2153903097,
0.2953205109,
0.0882523358,
0.1543644965,
0.092644155,
0.3555267751,
0.360866785,
0.0598315187,
0.1853773296,
0.1311808228,
0.0994314179,
0.1366243809,
-0.1818916947,
-0.1464888602,
-0.0372806117,
0.0281630084,
-0.0131143257,
0.2628583312,
-0.1912379116,
-0.4138479531,
0.0297919512,
-0.305721581,
-0.0794671923,
0.0055906363,
0.2817170322,
0.095834136,
0.418780148,
0.0194581151,
0.1178673655,
-0.2396833897,
-0.4573937953,
-0.0878112018,
-0.1247183457,
-0.0010086223,
0.1233464703,
0.0153353065,
-0.1886833608,
0.151573807,
-0.0465375893,
0.1621008515,
-0.0012184083,
-0.0208561607,
-0.1100593656,
0.0216294136,
0.2049841136,
0.2180561125,
0.164035216,
0.179515332,
-0.1997853965,
-0.1306825131,
0.0886228085,
-0.1416330785,
-0.1671276838,
-0.1788373142,
0.2166469991,
-0.009402249,
-0.3506268561,
-0.0937892646,
0.2814686596,
0.1409592628,
-0.2037899792,
-0.1410703659,
-0.0391464457,
-0.1241322234,
-0.0865158141,
0.1792778969,
0.5796176791,
-0.1855917424,
-0.1380211264,
-0.1521385312,
0.0008937344,
0.5833054185,
0.3344026804,
-0.0607915819,
0.0897967964,
-0.1707224548,
0.1476538479,
0.5017136335,
-0.1436582506,
-0.5796043873,
0.5436658263,
-0.0396082923,
0.5637280941,
0.2707029283,
0.0225365721,
0.1742345691,
0.0431194082,
0.3135291934,
0.3299021721,
-0.1484594196,
0.0074818879,
-0.3334666491,
-0.0399839543,
0.4416947365,
0.1912288219,
0.0674292073,
0.2502860725,
-0.02887417,
-0.0626680106,
0.3689775467,
-0.0752569586,
0.0763452575,
0.0410077199,
0.1468884051,
0.0120372931,
0.1379382908,
-0.2090768516,
-0.310682863,
0.297231108,
0.0749307871,
0.0127099585,
-0.3174343705,
0.2031728178,
-0.1906454861,
0.0017470643,
-0.2628930211,
-0.2590404749,
0.1243169904,
0.3170803189,
0.0756207407,
0.0505897701,
-0.3084765673,
0.7747215033,
-0.0782549381,
-0.0131347179,
-0.4549140334,
0.2024927884,
-0.0707771033,
-0.201457262,
0.0164403692,
-0.1265656799,
0.067255415,
-0.0161920432,
-0.2579913735,
0.331320107,
-0.2366141379,
0.2640711963,
-0.1954373717,
-0.1731968075,
0.2897444367,
-0.3644789457,
-0.0866842717,
0.2706030309,
0.107503891,
0.1252098978,
-0.0176987406,
0.1480840296,
0.2070917338,
0.2361333817,
0.0434488654,
0.1143488213,
0.1961681545,
-0.0816748887,
-0.0686836541,
-0.0850089863,
0.3240483999,
-0.3548791111,
0.0467498153,
-0.1989232302,
-0.2722991705,
0.0823630542,
0.3586786091,
-0.1403827518,
-0.0492742881,
0.3303243518,
-0.2885321975,
-0.1639077365,
0.3145601749,
0.1940100491,
0.4723354578,
0.0815223008,
0.2573351562,
-0.0455883741,
-0.1886482388,
-0.0735060126,
0.3051701188,
0.1374841779,
0.0314635076,
0.2464114279,
0.0300060846,
0.1635745317,
-0.3229162097,
-0.3497171402,
-0.0566318557,
0.1123418137,
-0.320186913,
0.306301713,
-0.3882682323,
-0.4651740491,
0.0463514589,
0.1560088545,
0.0689052045,
-0.3235586286,
-0.1817545891,
0.2325055003,
-0.0038824454,
0.1636845171,
-0.268206507,
0.0895482749,
0.2671771646,
-0.0134687396,
-0.3418698907,
-0.1808480024,
-0.2729628682,
0.0591980219,
0.1749955416,
-0.422804594,
0.176919207,
0.0074263141,
-0.116053015,
-0.1401736885,
-0.0764234588,
0.3197819591,
-0.1554996967,
0.1568954736,
-0.2774870396,
0.1493913531,
0.2213631719,
-0.250348866,
0.1219482943,
0.0908335373,
-0.1187845469,
0.2801246047,
0.0940898061,
-0.0241613425,
-0.0305835083,
-0.3010805547,
-0.3024662733,
-0.6177491546,
0.0549682453,
0.0454261452,
0.2135514915,
0.1643047035,
0.0170348659,
0.0968244523,
0.3292070925,
0.0991601646,
-0.1142122,
-0.4199432731,
0.3747450411,
-0.1670145541,
-0.2868407965,
-0.3248367608,
-0.068159759,
0.197289899,
0.2589268088,
-0.5295243263,
0.2950168252,
-0.408103317,
0.0848926604,
-0.3834520578,
-0.0974560529,
-0.0261519365,
0.0762888789,
-0.0349893793,
-0.1878575832,
0.0707456768,
-0.1169515103,
0.099007532,
0.2066107243,
0.1086307317,
0.3698712587,
0.1008495316,
0.3327508271,
0.4812107384,
-0.0195495207,
0.340754807,
0.0828914344,
0.1538008004,
-0.1004335433,
-0.0627882555,
-0.0955620185,
-0.2280800343,
-0.0261197612,
0.0981995016,
-0.0962132961,
-0.5762302876,
-0.2840516567,
0.0549152717,
-0.0692367107,
-0.2383102626,
0.0528835431,
-0.511775136,
0.0420480222,
-0.1872567534,
0.158339709,
0.0807968155,
0.0520014092,
0.0860458016,
0.1772524118,
0.126164645,
0.172119841,
-0.1850209981,
-0.0639052689,
-0.4881905019,
0.1825859249,
0.1051265746,
0.4215747118,
-0.1678104103,
-0.1327164173,
0.079114981,
-0.0652067959,
0.3487039804,
-0.2754174471,
0.003567344,
0.2673938274,
0.1421359777,
-0.141551882,
0.0917669758,
-0.3209462762,
0.1368290484,
0.2359539717,
0.0974200815,
-0.1718233079,
0.0333401039,
-0.0884199217,
-0.0724965036,
-0.1253026724,
-0.0163988993,
-0.1704962552,
-0.2492374927,
-0.152010262,
-0.1342425346,
0.2032724023,
0.1256834567,
-0.0124602318,
-0.0567927919,
-0.0460818298,
-0.0396244228,
0.2418597192,
0.2213253379,
0.1399097294,
-0.072280094,
0.2290112525,
0.0671990812,
0.2844446599,
0.229216665,
0.8364325762,
0.1181944758,
-0.562425375,
0.2350821197,
0.2339566648,
0.1660988778,
0.1305403411,
-0.1482324898,
-0.0085168146,
-0.040384464,
0.2698211968,
-0.3024733961,
0.2146551162,
0.2112326026,
-0.0507210419,
-0.5149304271,
-0.4357539117,
0.5883386731,
-0.0393684581,
-0.0761906728,
0.7872931957,
-0.1665047705,
-0.3171558976,
0.4775416255,
0.023435384,
0.7585883141,
0.0943951458,
0.2168688178,
0.2407481968,
-0.3207278252,
0.5003328323,
-0.2320683897,
0.3346685469,
-0.1206095293,
-0.3350296617,
-0.0831094384,
-0.104109481,
0.1709020287,
-0.1476038396,
-0.6302540898,
0.1709610522,
-0.0596439317,
-0.2528054118,
0.3353526592,
0.2742265463,
-0.6082693934,
-0.3062929511,
-0.0675496459,
0.1388827115,
-0.2213594615,
0.3239611387,
0.1382447928,
-0.2202336192,
-0.0515734516,
-0.0843103752,
-0.470235914,
0.4758627415,
-0.2765564322,
0.1624137312,
-0.2390312552,
-0.476098299,
0.1513126493,
0.2664023638,
-0.1421327591,
-0.2257857323,
-0.1582509279,
0.2350440919,
0.1860539317,
0.128023535,
0.0993066132,
0.1514587104,
0.388358593,
0.0532773808,
-0.0168123841,
0.1884423494,
-0.0089799501,
-0.1606285572,
-0.0637813061,
0.0554575026,
0.3183137774,
-0.2681801915,
0.2368576229,
-0.1058514044,
0.042925328,
-0.184253186,
0.0869721249,
-0.0188317224,
-0.174054563,
-0.0738877654,
-0.081296958,
-0.2196761668,
-0.084744215,
0.3771201372,
0.1454578191,
0.3179714084,
0.4994189143,
0.0281168967,
-0.1778804362,
-0.1036715209,
-0.0551505983,
-0.2931397259,
-0.2526119053,
0.0693600997,
-0.2414766699,
-0.1610281765,
-0.2706694603,
0.0038263733,
0.0448378474,
-0.1035543606,
-0.1137387976,
-0.2993662357,
-0.1906369328,
-0.0266143344,
-0.1242438555,
0.2199307382,
-0.1722204089,
0.0222038664,
0.0031198412,
0.1290861517,
-0.2706837952,
-0.1228594556,
-0.0753693059,
0.0231181793,
0.2672104836,
0.029267557,
0.2592339218,
0.109669283,
0.1476227641,
0.313904345,
-0.0276747905,
-0.1609540135,
-0.1787950695,
0.1384893656,
0.0165314712,
-0.3480512798,
-0.1548940837,
-0.0566204414,
0.0126906075,
-0.1251360923,
0.3503145874,
0.181230247,
0.0380967334,
0.2706008554,
0.1240137368,
0.0563359968,
-0.2326476872,
0.1542366892,
-0.2642732859,
0.2401307076,
0.0811118111,
0.0928403959,
-0.0755398124,
-0.0118691325,
-0.3646137714,
0.0622696355,
0.1017948836,
-0.0280174632,
0.5909270644,
-0.4241806269,
0.1720450073,
-0.0497745387,
0.0660299733,
0.4045223892,
-0.229618609,
-0.2089620382,
0.0850853324,
0.2000515163,
-0.0432030633,
-0.2126209289,
-0.4010485411,
-0.1016408652,
0.0112390146,
0.1459596306,
-0.1068902537,
-0.2721834779,
0.0999631286,
-0.2103082985,
0.48598364,
0.3358430862,
0.2670662999,
0.4836386442,
-0.1811282486,
0.0228469688,
-0.2260247916,
0.0204594508,
0.1999065429,
0.2970435023,
0.0035515912,
-0.0078699626,
-0.1613660157,
0.217818886,
-0.1859749407,
-0.4821960926,
-0.0797477886,
0.1024475992,
-0.164754957,
0.390193522,
0.1489098668,
0.1521605253,
-0.2779349387,
-0.0519218668,
-0.0458418429,
-0.0661265701,
-0.0142798405,
-0.0960804075,
0.1068765968,
-0.0128561333,
-0.3279227614,
0.0976090282,
0.0123998635,
0.0633682758,
-0.0198641904,
0.2808056474,
-0.2884627879,
-0.1185013875,
-0.0822275877,
0.1043176353,
0.2999255657,
-0.3544149995,
0.4440691769,
0.3661907911,
-0.1568612754,
0.0282510035,
0.0700020269,
0.4816073477,
0.2853378356,
-0.176650703,
0.0946500301,
0.3374168277,
-0.0436373316,
-0.0402214304,
0.0442540981,
0.2830949128,
0.1793198287,
0.4566898048,
0.0887393951,
-0.1485420465,
0.104571797,
0.0814352483,
0.2538891733,
-0.2799381614,
0.4623195827,
-0.1195058674,
0.0366923809,
0.0272422433,
-0.3365722299,
-0.5624158382,
-0.0282045491,
0.0348957665,
-0.2285001278,
0.0745237544,
-0.0081124082,
0.0628782436,
0.1139546931,
0.4926683009,
0.3248411119,
-0.0188455544,
-0.2245095074,
-0.1508788764,
-0.235583514,
0.2332023382,
-0.0674799085,
-0.1231483817,
0.1752854586,
0.2219230831,
-0.004841473,
0.1680495143,
-0.158444792,
0.0204545669,
-0.2672834694,
0.1405725628,
-0.3995795846,
-0.3515672982,
0.1919632256,
0.1735795438,
-0.0483117215,
-0.576480031,
0.1881390959,
-0.150238961,
0.160817802,
0.0926133096,
-0.241848141,
0.101145193,
-0.2756582797,
0.5297336578,
0.2331106514,
0.3792003691,
-0.1842953563,
-0.4119566083,
-0.0992462337,
-0.3762303293,
-0.2749149203,
-0.0155846253,
0.1083336696,
0.5696321726,
-0.1493341923,
-0.2373838723,
-0.3574707806,
0.3262626231,
0.0608898401,
-0.2656731308,
-0.2735390067,
0.1733702123,
-0.1194599271,
0.2131261379,
0.3050512075,
0.3803451955,
-0.0287129171,
0.1639949232,
-0.2235155702,
-0.4333210588,
0.5773114562,
-0.3461061716,
-0.2659670711,
0.2418414205,
0.0638137534,
0.326497674,
0.2410196811,
-0.4596661925,
0.0893657058,
0.3556544781,
-0.2354130596,
-0.1511853337,
0.1421460807,
0.22597,
-0.0607199222,
-0.0850398764,
0.4553109407,
0.2423965186,
-0.2492040098,
0.1750814915,
-0.1786387712
] |
https://github.com/huggingface/datasets/issues/2917 | windows download abnormal | Hi ! Is there some kind of proxy that is configured in your browser that gives you access to internet ? If it's the case it could explain why it doesn't work in the code, since the proxy wouldn't be used | ## Describe the bug
The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why??
## Steps to reproduce the bug
```python3.7 + windows
![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png)
# Sample code to reproduce the bug
```
## Expected results
It can be downloaded normally.
## Actual results
it cann't
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.11.0
- Platform:windows
- Python version:3.7
- PyArrow version:
| 41 | windows download abnormal
## Describe the bug
The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why??
## Steps to reproduce the bug
```python3.7 + windows
![image](https://user-images.githubusercontent.com/52347799/133436174-4303f847-55d5-434f-a749-08da3bb9b654.png)
# Sample code to reproduce the bug
```
## Expected results
It can be downloaded normally.
## Actual results
it cann't
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.11.0
- Platform:windows
- Python version:3.7
- PyArrow version:
Hi ! Is there some kind of proxy that is configured in your browser that gives you access to internet ? If it's the case it could explain why it doesn't work in the code, since the proxy wouldn't be used | [
-0.1240488887,
-0.2018252164,
-0.0703398064,
0.1894593984,
0.2147732973,
-0.1120501086,
0.0276675727,
0.0718734711,
0.2805815339,
0.0850562528,
0.1648732573,
0.1174070984,
0.1554814279,
0.1022038758,
0.1588473022,
-0.2615040839,
0.0301856399,
0.0393100455,
-0.169151172,
0.0088646263,
-0.3215380311,
0.0859282911,
-0.3066692352,
-0.1127144322,
0.1635586768,
0.0324398428,
-0.2886961699,
0.3004710376,
-0.2546001375,
-0.1694043577,
0.0993697718,
-0.0709082186,
0.1850662977,
0.3519498408,
-0.0001087431,
0.0813255683,
0.3922839761,
0.0235311761,
0.0174284242,
-0.0581744313,
-0.2938909233,
-0.1413685679,
-0.1911944151,
-0.3151717186,
0.0997060388,
0.2347301245,
0.0454375595,
-0.1112285852,
0.2443626821,
0.4491446018,
0.3060822785,
0.4809368849,
-0.1150027737,
0.0517268591,
0.455463171,
0.0505651236,
-0.1816766709,
0.2491995245,
0.3063494563,
-0.1419381499,
0.2570020854,
-0.0594111979,
-0.1210112572,
0.0115585625,
0.0310036615,
0.1206355989,
-0.0494647808,
-0.5093154311,
0.1234318316,
0.1743747741,
0.3126612604,
-0.1531089842,
-0.1585405618,
0.1158471853,
-0.1493998468,
-0.1856969893,
0.2733875513,
0.2762598395,
-0.1393173039,
0.1871819943,
-0.2805482745,
0.1743874103,
-0.2056799978,
0.2596930861,
-0.119107537,
0.3299075961,
-0.0759499595,
0.1894465387,
-0.1710140407,
0.3167180121,
0.03771073,
-0.3272550106,
-0.0156769026,
-0.0039894953,
0.0856896043,
0.1057075113,
0.0493557155,
0.5118296146,
0.0573040396,
0.2643458843,
0.033488024,
-0.0560189895,
0.2410900742,
0.0700189471,
0.0902726352,
0.0949796215,
-0.2958666086,
0.0660439283,
0.3817819655,
0.3139165938,
-0.0065796748,
-0.02620079,
-0.0330497399,
-0.3155065775,
0.2965117991,
-0.0053919833,
0.4860351682,
-0.0474271923,
-0.5569108725,
0.0026351959,
0.0146285817,
0.0908919573,
-0.002352789,
0.2526860237,
-0.3218320608,
-0.0225809328,
0.1233704463,
0.3000147045,
-0.1240451187,
0.1943567395,
0.0040628873,
0.1806814075,
-0.2520694137,
-0.2260729373,
0.3475829959,
-0.06712915,
0.1201247722,
0.1935616732,
-0.0914586112,
-0.0428735502,
0.0132015496,
-0.0805156454,
0.0271826889,
0.4316019416,
0.1952558309,
0.3702530861,
-0.0094594127,
0.0780785084,
-0.0707269013,
0.206293419,
-0.1463155895,
-0.0249698088,
0.0211349856,
0.2608018816,
-0.3265891671,
-0.188560009,
0.0397937968,
-0.26646626,
-0.0409109034,
-0.0293884203,
0.2495980859,
-0.1964798272,
-0.289147824,
-0.3841309249,
0.0929921865,
0.5247912407,
-0.3482267857,
0.2068513334,
0.0614638366,
-0.2714428902,
0.4014220834,
0.0586098172,
0.1309568286,
0.160509944,
-0.4302998185,
0.0415053368,
0.1171313971,
-0.3501322269,
-0.4970427454,
0.3584974408,
-0.1899528503,
0.3206912577,
0.1783814132,
0.0919841528,
0.2939104438,
-0.0833817273,
-0.0120383985,
0.3098939061,
-0.0224834196,
0.0582433119,
-0.1245777756,
-0.1297620237,
0.1300002038,
0.1085214466,
0.1208593249,
0.1432957649,
0.2932306826,
-0.1360394657,
0.3164028525,
0.1788196564,
0.0964891165,
0.2375453562,
0.2550178766,
0.2680895925,
0.1236546785,
-0.2269860059,
0.0015704669,
0.2861068249,
-0.0804184601,
-0.1590323746,
-0.2410325855,
-0.221806109,
-0.5582577586,
0.0224495903,
-0.1886621267,
-0.2219812721,
0.1653015018,
0.137260139,
0.2495528758,
0.0426939055,
0.0754467472,
0.1793364882,
-0.0071864501,
-0.0684595406,
0.0751904324,
0.3602053821,
-0.3439498246,
-0.050523743,
-0.0965959281,
-0.0721758455,
0.2299173474,
-0.0566850603,
-0.0152282398,
0.1972682923,
0.0202619061,
-0.0426290445,
0.0362092257,
0.0486599132,
0.0167183187,
-0.1805610359,
0.271666199,
0.5724846125,
0.2685571015,
-0.0967834443,
-0.0322300084,
0.0053619668,
-0.0750253424,
0.017755989,
-0.0222579762,
0.1486974061,
0.1936406195,
-0.1889594644,
-0.1011112928,
0.0021010414,
0.3638002276,
0.0613047332,
-0.0991424248,
-0.1685340703,
-0.1679936647,
0.1670808494,
0.5450261831,
-0.2752331197,
0.3014793098,
0.0706219524,
-0.0966637805,
0.2094730437,
-0.1800905168,
0.1059188992,
0.6080438495,
0.0332965814,
0.1129609048,
0.3711541593,
0.008862894,
-0.1436059028,
0.2149287164,
0.1461234391,
-0.2989702821,
0.1730047017,
-0.0520784259,
0.176919058,
-0.2095149457,
-0.2376023233,
-0.0571575984,
0.0526771992,
-0.345222652,
0.2429891229,
-0.1614445448,
-0.1740006506,
-0.3291527927,
-0.0869572908,
-0.0766708106,
-0.0632941052,
0.0246917941,
0.2807942331,
-0.1450742632,
-0.1818347126,
-0.4370901585,
0.0925901607,
0.2119115293,
-0.3590193391,
-0.0015149489,
0.1992020011,
-0.2863780558,
0.133358866,
0.1517556161,
-0.0984133855,
0.5485377312,
-0.5067275763,
0.057921052,
-0.3667599559,
-0.1009360105,
-0.0654941648,
0.0553083308,
0.3579996526,
0.1826390326,
0.1857502908,
0.0548137873,
0.10315606,
0.2081248462,
-0.2389805317,
-0.179515332,
0.1597156823,
0.0564893149,
-0.3985370398,
-0.2559874058,
-0.249146089,
-0.2066612691,
-0.350972414,
0.0161345378,
0.110010162,
0.1269877702,
-0.1030682623,
0.0080768429,
0.0372453406,
0.0731872842,
0.2246694416,
-0.0830264837,
0.0263499394,
0.3867480159,
-0.0423501879,
-0.6439448595,
0.2405601442,
-0.018974755,
-0.357840538,
0.3052415848,
-0.5030599236,
-0.132392019,
-0.2873799801,
0.2506048381,
0.0892270505,
0.2778798044,
0.3353271484,
-0.2777275741,
-0.024596639,
-0.3039753735,
-0.0659072772,
-0.2901854813,
-0.1096736938,
0.2428966165,
0.1826854795,
0.3031281829,
-0.0289381221,
0.2855457366,
0.2206115127,
0.1294396371,
0.4378713369,
-0.386438638,
0.4741621912,
0.0012999214,
-0.1765860319,
0.0351163633,
-0.2722176611,
0.0180080011,
0.2376571298,
0.0223879181,
-0.0049438942,
-0.2312291116,
-0.1656047106,
-0.2313092798,
-0.2478712797,
0.1438774019,
0.1106835678,
0.0407824591,
0.124169752,
0.2241894603,
0.1028405428,
-0.1557341516,
0.1141645014,
0.5970375538,
-0.261562556,
0.1439667195,
0.0227811411,
-0.1640786082,
-0.4693879783,
0.0716751069,
0.102764301,
0.4488422275,
-0.0301671773,
0.0443423837,
0.215620026,
-0.161996305,
0.7495210171,
-0.2151190788,
0.3322596252,
0.2032122612,
-0.006715931,
-0.3780362308,
-0.2583529949,
-0.5120756626,
0.1230988801,
0.0817759335,
-0.0529248826,
-0.0555248037,
0.185233146,
0.1150576472,
0.2468602806,
-0.1428904533,
-0.3871605992,
-0.3885152936,
-0.6134721637,
-0.244539991,
0.0850909278,
0.4038747251,
-0.0435089618,
-0.379685998,
-0.1664033532,
-0.0642809272,
0.1533762962,
-0.0725113899,
-0.0277297571,
0.0795959085,
-0.0177748762,
0.1780820191,
-0.2506741285,
0.2862490714,
-0.1739081442,
0.6596164703,
0.1054917276,
-0.1496221423,
0.1620589495,
-0.2683570981,
-0.2014205456,
0.2051968575,
-0.1649343222,
-0.2201993316,
-0.0797210559,
0.0492504835,
-0.3298474848,
-0.0799626932,
0.5729663372,
-0.1016835868,
-0.0054187439,
-0.2596152723,
0.1787784696,
0.0138972029,
-0.1558489949,
0.2674738765,
0.0348853394,
-0.0924988687,
-0.1083408818,
-0.2890716195,
0.6511150002,
0.2145092487,
0.2358659059,
0.2590303421,
-0.5253791213,
0.0419861004,
0.2136851549,
0.0738658905,
-0.20706366,
-0.2838785648,
-0.0373835601,
-0.1332619786,
0.0825863853,
-0.0341504402,
-0.277936399,
0.2207876742,
-0.0865819603,
0.1747571081,
0.2744152546,
-0.1581595838,
-0.3131061792,
0.1084561944,
-0.032816112,
0.1951173693,
0.2385890037,
0.6629056334,
-0.2662180662,
0.0184961408,
-0.1715998054,
-0.2779659629,
-0.3965133429,
0.2550303936,
-0.1340843737,
0.0074540861,
-0.1599158645,
0.1396335214,
0.0225493461,
-0.0147369765,
0.0021660998,
0.1571852863,
-0.2298112512,
0.0857384503,
0.13416107,
-0.0822364837,
0.2630039752,
-0.0994027108,
0.1180739179,
-0.2447075844,
-0.422942102,
-0.0727606863,
0.0214396007,
-0.0027245209,
-0.0277116299,
0.2639419138,
0.2187705934,
-0.1882332265,
-0.1784810722,
-0.3920813203,
0.0838622451,
-0.070894435,
0.2175155729,
0.0490463674,
0.0885433108,
0.5029724836,
-0.2861324549,
-0.2359028757,
-0.1554897875,
0.3932054043,
-0.167370379,
-0.0755676478,
0.1102359742,
0.0948683843,
-0.3069734871,
-0.2523459792,
0.0131361112,
-0.3942269981,
-0.2205287367,
0.0540070347,
-0.0543696284,
0.2869073153,
-0.147176519,
0.0090058707,
0.1335751563,
-0.0578683615,
-0.015184775,
-0.6815166473,
0.1296804845,
-0.2197965533,
0.4122012556,
0.0466447435,
0.0262458697,
-0.1572071016,
0.4631691575,
-0.5489162803,
-0.3702113032,
-0.0008697137,
0.0495046005,
-0.129058063,
0.1779979765,
0.1302771568,
0.1998713762,
0.0118945614,
0.1212282553,
0.0002450002,
-0.0661848485,
-0.2484520227,
-0.1650172025,
0.1045996025,
-0.0540888123,
-0.2632084489,
0.1900730282,
-0.4511164427,
0.0091406628,
0.1889901161,
0.1473043114,
0.3043761551,
-0.0957729742,
0.0366582647,
0.0956630558,
0.1146365553,
-0.2398875952,
0.2471019775,
-0.4936735928,
0.5263614655,
0.005651392,
0.1713123918,
0.2247190773,
0.006555669,
-0.0548022911,
-0.2813496292,
0.0627045929,
0.1826202124,
0.3916452229,
-0.1167963892,
0.2606547475,
-0.0006222688,
0.2832520604,
0.5525351763,
-0.352714628,
-0.0893503577,
0.1433630735,
0.2758116126,
-0.2590068281,
-0.034684971,
0.0842291191,
0.1091724634,
0.0576287955,
0.1179931164,
0.0555242151,
-0.2826643586,
-0.0912481993,
-0.0500901118,
0.4335025549,
0.3670791388,
-0.1808378398,
0.39471367,
0.0065175593,
0.1476496756,
-0.0576697439,
-0.0217517074,
-0.0486025885,
0.4234353006,
0.0409804881,
0.0692655966,
-0.1091256216,
0.0251743197,
-0.131576404,
-0.2052458227,
0.0766844749,
-0.201256752,
0.0254506823,
0.0977100879,
0.0770513266,
-0.1540477276,
-0.2748750448,
0.2177976072,
-0.3454124033,
-0.0678375214,
0.0694723427,
-0.0125075318,
-0.3036754727,
-0.0721511021,
-0.1196656898,
0.025266856,
0.1473331898,
-0.0054129586,
0.2599419057,
0.0745273083,
-0.2369662225,
-0.31607005,
0.0126229152,
-0.2048033327,
0.1134122312,
-0.2885008752,
0.0778896064,
0.3658394814,
0.1674334407,
0.1078387946,
0.1148518249,
0.5545538664,
0.3852177262,
-0.1072472408,
-0.0611049905,
0.0784613192,
-0.1331627965,
-0.3258145154,
0.4363555908,
0.0716331154,
0.1930941045,
0.2363511622,
0.2184063792,
-0.2301053405,
0.2584096193,
-0.0308184773,
-0.0795632452,
-0.0589464679,
0.1791744828,
-0.2505965531,
0.0937960148,
-0.3897889555,
-0.1013928652,
-0.4083537459,
-0.098580204,
0.1772195846,
-0.0879957974,
0.1667041481,
-0.3462208211,
0.1035932228,
0.0375299044,
0.2180999517,
0.3795767426,
0.3196723461,
-0.0881666914,
-0.0573233664,
-0.5226137638,
0.3419147432,
-0.225843206,
-0.5296083689,
-0.0877918899,
0.0447274297,
-0.6105855703,
0.0722364932,
0.3415540457,
0.2679616213,
-0.0636080801,
0.3222131133,
-0.1352424026,
-0.3121243715,
0.0335875712,
0.1525715888,
0.0759184882,
-0.5940466523,
0.2918206453,
-0.4170545042,
0.1697361022,
-0.2700896859,
-0.1863707304,
-0.0113286749,
-0.008855598,
0.5608645678,
0.150778383,
0.519914031,
-0.1912190318,
-0.125682652,
-0.462992698,
0.0781010389,
-0.1126954481,
0.2469520271,
0.1166754365,
-0.1811443269,
0.0191521719,
-0.2678038478,
-0.0600162894,
0.3138540089,
-0.0368411019,
0.0905803964,
-0.0571232922,
-0.0728072226,
-0.1830928326,
0.1488179564,
0.0811510831,
0.1466139108,
-0.378793329,
-0.1018520221,
-0.0337748677,
-0.5434587002,
0.2741711736,
-0.2698807716,
-0.3332622647,
-0.2687217891,
0.2311912477,
-0.4032008052,
0.0730403662,
-0.0221857056,
0.1500967443,
0.1658334285,
-0.0674840808,
0.0399889424,
0.2936097085,
-0.3748458624,
0.0406057164,
0.2576870322,
0.4179151356,
-0.0696629509,
-0.1712902784,
0.3069995046,
-0.214860335
] |
https://github.com/huggingface/datasets/issues/2913 | timit_asr dataset only includes one text phrase | Hi @margotwagner,
This bug was fixed in #1995. Upgrading the datasets should work (min v1.8.0 ideally) | ## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
| 16 | timit_asr dataset only includes one text phrase
## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
Hi @margotwagner,
This bug was fixed in #1995. Upgrading the datasets should work (min v1.8.0 ideally) | [
0.1612902731,
-0.1380540133,
-0.0205535367,
0.2273862511,
0.1176240146,
-0.1575976163,
0.2670055032,
0.2965664566,
-0.5154979229,
0.2804079056,
0.1454420388,
0.4508610666,
-0.0935285985,
-0.1810209751,
0.0642998964,
-0.0575761274,
0.1221430227,
0.2484456748,
-0.071534507,
-0.2342913747,
0.1333343536,
0.3007958233,
-0.2574562728,
-0.0646616817,
-0.273752898,
0.0847610757,
-0.0766701773,
-0.2693383396,
-0.0532862283,
-0.4953400493,
0.1539395005,
0.0111223105,
0.1049449742,
0.3338851333,
-0.0001155144,
-0.0851756483,
0.0369370244,
0.0938123763,
-0.2382419258,
-0.1577619761,
-0.0969276428,
0.088622719,
-0.0698395744,
-0.0270565152,
-0.0834107921,
0.1937476099,
0.0529346317,
-0.098161988,
0.5147069097,
0.2915841937,
0.1400678009,
-0.0102436505,
-0.25211972,
-0.0659531727,
0.3198693097,
0.0313075297,
0.0850754678,
-0.1780212075,
0.2137238979,
0.031479165,
-0.051667653,
0.6180684566,
-0.2813325822,
0.3980182111,
-0.2359144837,
0.1242304444,
-0.3711774349,
-0.5308328271,
0.2668364346,
0.2161648273,
0.6465563178,
-0.2296240181,
-0.2044669986,
-0.2378615737,
0.3199088275,
-0.1560649574,
-0.0421696007,
-0.0161783863,
-0.2728024125,
0.2350625992,
-0.0094949491,
0.0476475582,
-0.2204017639,
0.1288806647,
0.0558110327,
-0.1074197069,
-0.073136121,
0.1385567337,
-0.177100271,
0.0994096845,
-0.0858643502,
0.2703582942,
-0.1442613751,
0.0341255739,
-0.1497620046,
-0.067490235,
0.1925161183,
-0.3049419224,
0.2917182148,
-0.0602201149,
0.3855576217,
0.0374374576,
-0.185671553,
-0.0881004483,
0.3239298165,
0.019808244,
-0.0233678631,
0.1496764421,
0.229897067,
-0.2340690494,
-0.2531853914,
0.0737155974,
-0.0144180655,
0.2162741572,
0.3318795562,
-0.2650298476,
0.2829245329,
-0.3676445484,
-0.5658826828,
0.0642498583,
-0.4400378168,
-0.1030389518,
-0.2528010905,
0.1816737801,
0.1693309397,
0.3009268343,
0.1449252516,
0.2226765156,
0.0693396702,
-0.5628320575,
-0.1818622649,
0.0267981812,
0.209860146,
0.0308406949,
0.2113290876,
-0.3237068057,
0.3398513794,
0.3417339325,
0.1954528987,
-0.4315994382,
-0.2874111533,
-0.1301769018,
0.0255612563,
0.0091861859,
-0.0264899656,
0.3916679621,
0.0738198608,
-0.0182899311,
0.0072352737,
0.061006967,
-0.1065562218,
0.0068644807,
0.2134013623,
0.1364107281,
-0.0805881023,
-0.1671146154,
0.123248212,
0.3605878055,
0.0779451728,
-0.3008700609,
0.0030108094,
-0.182742402,
-0.3919641674,
-0.0386589095,
0.0773314014,
0.3024607003,
-0.3355480433,
0.0954273641,
0.1785346866,
0.4213980138,
0.3944750428,
0.248454079,
-0.0465102345,
0.3734383583,
-0.1168164462,
0.300144732,
0.2041981369,
-0.462130636,
-0.3920543194,
0.2112352848,
-0.0496034771,
0.2464138567,
0.1548907608,
-0.1627835333,
0.302733779,
0.1427074969,
0.3759354353,
0.1534788609,
0.1457359195,
0.0334793851,
-0.2446885854,
-0.0578924865,
0.0868308544,
-0.013140697,
0.0021537198,
0.0955833495,
0.0370380729,
0.2329707146,
0.5271515846,
0.074584201,
0.0924515203,
0.1029673964,
0.1659647077,
-0.1012318656,
0.223977834,
-0.2631006539,
0.256485641,
-0.0488978773,
0.2068275511,
0.2837988138,
0.1540314704,
0.0793674141,
-0.3015448749,
-0.2188884318,
-0.2991881967,
-0.3250729442,
0.1145815998,
0.3257374465,
-0.0144316107,
0.0420464724,
-0.1898580194,
0.3409901261,
-0.220326364,
-0.0741857961,
0.0233060345,
0.0991652682,
0.0638567656,
-0.2447071373,
0.5248854756,
0.2528992593,
0.1851495504,
0.2016844749,
-0.1669406444,
0.2235519737,
-0.0147676263,
0.0219675135,
-0.2637170255,
-0.3288921118,
0.1099484414,
-0.5017573833,
-0.1113950163,
0.2344706357,
0.3181718886,
-0.0045002848,
-0.3036762178,
-0.1834709644,
0.1390079707,
0.2569385469,
-0.0554438978,
-0.0651192218,
0.3011586964,
0.0662532076,
-0.3537994027,
-0.3246977329,
0.2526896,
-0.2349808365,
0.2662213743,
0.0202848818,
-0.3417765796,
0.1585987508,
0.3928953707,
0.224511385,
0.0852087811,
0.2943885028,
-0.2468324006,
-0.0270177387,
-0.1227288097,
0.0949120969,
0.2907656431,
0.2881050408,
0.0543025173,
-0.3764549494,
-0.1287488788,
-0.1132323146,
0.1393361092,
-0.1307565868,
-0.3556300402,
0.4351169765,
0.3585452139,
0.0863875002,
-0.4493836164,
-0.1341286898,
-0.1424039006,
0.4703673422,
-0.3349604011,
-0.2316325158,
-0.4356051683,
-0.1205522045,
-0.1090054661,
0.0662912652,
0.0797034353,
0.2255510092,
0.2190562636,
-0.0127123753,
0.0054568797,
0.1367990673,
0.1719907224,
0.2340623438,
0.0712053701,
0.1117986217,
0.0863047391,
0.3191402555,
-0.3069571257,
-0.0242700987,
0.0259719864,
0.2716125846,
0.1074291766,
-0.1422469318,
-0.1639023423,
-0.4067964256,
0.0590182394,
0.2675643861,
-0.3301687837,
0.5113493204,
0.1133633256,
0.1602489352,
-0.225165695,
-0.3130812347,
0.0026725121,
-0.0268873014,
-0.1686864793,
0.3555681705,
0.0829433054,
-0.0056142658,
-0.0482561365,
-0.6989753246,
0.0993928909,
-0.2500090003,
0.2359428555,
-0.0328675359,
0.2103789449,
0.3641360402,
0.0606072769,
0.0812699944,
-0.0587119348,
0.2053696513,
-0.4102098644,
-0.2545931339,
0.3561107814,
0.26060462,
-0.3348696232,
-0.340569675,
0.0509583876,
0.2652951181,
-0.0322292708,
-0.4001086354,
0.1003537476,
-0.2674658597,
0.1453482509,
-0.2972605824,
0.2826198936,
0.3854672909,
0.0129938759,
-0.1495048404,
-0.1692215055,
-0.1078338027,
0.2658358514,
0.3553735614,
0.0058844835,
0.1011466682,
0.0699136704,
-0.0593266524,
0.3506976664,
0.6459599137,
0.2025158256,
0.2600062788,
-0.1765540689,
0.094235301,
-0.0324933827,
-0.399579823,
0.0270797573,
-0.1173249036,
-0.0625671744,
0.4981201887,
-0.0899956599,
0.0536313131,
-0.1695878804,
-0.0572772175,
-0.3290622532,
-0.1686405241,
0.0674922541,
-0.2359401435,
0.1839740574,
0.1747752875,
0.0528289899,
0.1619520038,
0.0347348675,
-0.2861664295,
-0.2988383174,
0.2851737738,
-0.1499723792,
-0.0820299685,
-0.2836108804,
-0.3772889972,
-0.1241015047,
0.1385838389,
0.509554565,
-0.2117004991,
-0.0375208594,
0.3600181937,
0.291478008,
0.3810286224,
-0.3069944978,
0.0908771232,
0.0103906915,
0.2287912816,
0.0055079088,
0.0054614544,
-0.520500958,
-0.1967587322,
-0.047500696,
-0.043032255,
-0.1668931693,
-0.0080188178,
0.1089592725,
0.3927439451,
-0.0097474083,
-0.2408113927,
-0.2557696402,
-0.0757930726,
-0.330141902,
0.1615659148,
0.3422314823,
0.0443936475,
-0.1651335955,
-0.1203247681,
0.1603989154,
-0.0627516657,
0.5332372189,
0.0798593313,
0.3751766086,
0.0739651099,
0.3011750281,
0.2748405039,
-0.3577798605,
-0.2591430247,
0.360815227,
0.1009693295,
-0.1420252919,
-0.003674034,
-0.3468616903,
0.3289577961,
0.4931567907,
-0.2231911868,
0.2419294268,
-0.2970615327,
0.2568938732,
-0.1529489756,
0.0957464427,
0.3195283115,
-0.0749834105,
-0.075181514,
-0.4102868438,
0.3822799921,
-0.0364948325,
-0.1979483962,
0.3445506692,
0.090918839,
-0.3103822768,
0.4712516367,
-0.2578840554,
0.8118335605,
0.2264073044,
0.3666304052,
0.3155017495,
0.1381513774,
0.3261645436,
-0.1960100532,
0.0902332067,
-0.0220172405,
-0.0018167123,
-0.021560315,
0.0583432913,
-0.0778568164,
-0.0417594314,
-0.5769283772,
0.1775287539,
0.0647165179,
0.0288713761,
0.1868021488,
-0.0118521973,
-0.1294961721,
-0.1064070612,
0.1252994835,
0.0325714797,
-0.3839385509,
0.3074729443,
0.3099323511,
-0.0242958292,
0.0314043462,
-0.5837305188,
-0.822481513,
-0.0301678739,
-0.0825177208,
-0.2259410918,
-0.1996797919,
-0.3336215019,
0.368199259,
0.2585996985,
0.191553697,
0.3256591558,
-0.137968272,
-0.0852640793,
0.368242979,
0.277651459,
-0.2679567933,
-0.0255919266,
0.1445186585,
-0.0860314369,
-0.3883320093,
0.1766034812,
0.0551583506,
0.0989633948,
-0.388065666,
0.2538313568,
-0.1146805361,
-0.2331589013,
0.0857377872,
0.4289046526,
0.1415172517,
-0.5119701624,
0.1032074764,
0.1241721809,
-0.4588641226,
0.3286850154,
0.1725839674,
-0.4755196869,
-0.0637626201,
0.2593403459,
0.1283606291,
0.0002505258,
0.6646648049,
-0.0414827764,
0.0483880341,
-0.370475769,
0.0406965911,
-0.0209284127,
-0.2641956508,
0.1791122854,
0.0586632863,
0.1739624739,
-0.2265273333,
0.253549844,
0.0265138261,
0.2048027962,
-0.2814756036,
-0.3617306352,
-0.0619774982,
-0.0314538106,
0.1234354228,
0.0552398823,
-0.2911970615,
0.1181855947,
0.068815887,
0.3186089396,
-0.298191905,
0.0059748478,
-0.0517943054,
0.2173200995,
-0.0840426981,
0.0813203901,
-0.0378094129,
0.0851735026,
0.2000401914,
0.3185154498,
0.0672915578,
-0.1598699987,
-0.3062141538,
0.1838443279,
0.0417442322,
0.1562648416,
-0.0407684594,
0.1001059711,
0.1492387056,
-0.1337079257,
-0.1010109037,
0.334582597,
0.1253622472,
0.2183781862,
-0.0296326876,
0.0370717905,
0.185156092,
-0.1598647833,
-0.183976844,
-0.1724588871,
0.3399857879,
0.180613637,
0.0487437211,
-0.048195757,
0.1186248958,
0.0399238802,
-0.1340517104,
0.1186957136,
-0.077834174,
-0.2655765116,
0.1333700567,
0.2876860499,
-0.11947947,
0.3786883354,
-0.3459938765,
-0.1118995398,
0.0911948234,
0.2351439744,
-0.2654985785,
-0.1237110943,
-0.3232503831,
-0.1065508574,
-0.0583089478,
0.2784046233,
-0.0598310754,
-0.4723797739,
0.1214666814,
-0.0649381429,
0.3360201716,
-0.5360028744,
-0.0734216124,
0.398514539,
0.0149739757,
-0.3611198664,
-0.1933410913,
-0.0151967863,
0.0208014213,
0.5450986624,
-0.367543757,
0.137358129,
-0.3386057615,
0.0263878778,
0.1915481389,
0.0256050304,
-0.0382200666,
0.405641675,
-0.3271882534,
-0.0489631891,
-0.0716249198,
0.305047363,
-0.117672503,
0.0334456414,
-0.1280478239,
-0.0514147878,
-0.1239193156,
-0.1248623282,
-0.3380391598,
-0.2734287977,
-0.2303763926,
0.0061818808,
0.0975420699,
-0.0125556774,
0.1405141801,
0.1916216612,
-0.2668842971,
-0.5332415104,
-0.1980940104,
-0.0377838761,
0.1720767021,
-0.3900322318,
0.3403880596,
0.3084274232,
-0.2217701524,
0.2584379017,
0.2433645874,
0.5199831128,
0.0715809613,
0.0334476456,
0.1065190062,
-0.5706882477,
-0.0919025466,
-0.0517225526,
0.3297679126,
-0.124241814,
0.0587560609,
0.0218635425,
0.0158727318,
-0.0956397802,
0.0293481201,
0.2285464406,
-0.0756255835,
-0.5632570386,
0.2190778553,
-0.1411622018,
0.1117325425,
0.0406587012,
0.0749842525,
-0.4736692905,
0.4417380989,
0.3421673775,
0.0575964004,
-0.0106266178,
0.0021903627,
0.0813888311,
-0.1263747662,
-0.1126125157,
0.2673047185,
0.1579867452,
-0.2770341635,
-0.159135446,
-0.6735782623,
-0.0714833736,
-0.0488051437,
-0.0049524829,
0.0006291419,
0.1189807802,
0.1586840898,
0.1362602711,
0.0692648813,
-0.0260407105,
-0.5322327614,
0.3291485906,
-0.215463087,
-0.0053818165,
-0.0877879709,
0.436660707,
0.0414891466,
-0.1064979434,
0.0108351959,
0.0946914032,
0.0340189114,
0.0655479729,
0.0059460253,
0.0175629109,
-0.120662123,
0.1582386941,
0.1423450857,
0.1708151102,
-0.2348543555,
0.1895657182,
-0.2832582593,
0.029293377,
-0.1982437819,
0.1561560333,
0.2698151171,
0.5158418417,
-0.1834514141,
-0.0686846673,
-0.0636009425,
0.1653608084,
0.1112444997,
-0.0649594292,
-0.1914126277,
0.0897695571,
-0.0087000653,
0.2714968026,
-0.2622261941,
0.1059424132,
0.0038293982,
0.0026379824,
-0.4920397103,
-0.7109146714,
0.4522461295,
-0.4033150077,
-0.5287761688,
-0.0796566382,
0.5906728506,
0.2403547168,
-0.0321537107,
-0.708696425,
-0.0359899774,
0.3959988356,
0.2443485558,
-0.3021711707,
0.2129859924,
0.1219397038,
0.0085308924,
0.0144247562,
0.6226138473,
0.3105244637,
-0.2327545881,
0.2679713368,
-0.4604580104
] |
https://github.com/huggingface/datasets/issues/2913 | timit_asr dataset only includes one text phrase | Hi @margotwagner,
Yes, as @bhavitvyamalik has commented, this bug was fixed in `datasets` version 1.5.0. You need to update it, as your current version is 1.4.1:
> Environment info
> - `datasets` version: 1.4.1 | ## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
| 34 | timit_asr dataset only includes one text phrase
## Describe the bug
The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases.
## Steps to reproduce the bug
Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-english
1. Install the dataset and other packages
```python
!pip install datasets>=1.5.0
!pip install transformers==4.4.0
!pip install soundfile
!pip install jiwer
```
2. Load the dataset
```python
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
```
3. Remove columns that we don't want
```python
timit = timit.remove_columns(["phonetic_detail", "word_detail", "dialect_region", "id", "sentence_type", "speaker_id"])
```
4. Write a short function to display some random samples of the dataset.
```python
from datasets import ClassLabel
import random
import pandas as pd
from IPython.display import display, HTML
def show_random_elements(dataset, num_examples=10):
assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset."
picks = []
for _ in range(num_examples):
pick = random.randint(0, len(dataset)-1)
while pick in picks:
pick = random.randint(0, len(dataset)-1)
picks.append(pick)
df = pd.DataFrame(dataset[picks])
display(HTML(df.to_html()))
show_random_elements(timit["train"].remove_columns(["file"]))
```
## Expected results
10 random different transcription phrases.
## Actual results
10 of the same transcription phrase "Would such an act of refusal be useful?"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.4.1
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: not listed
Hi @margotwagner,
Yes, as @bhavitvyamalik has commented, this bug was fixed in `datasets` version 1.5.0. You need to update it, as your current version is 1.4.1:
> Environment info
> - `datasets` version: 1.4.1 | [
0.1612902731,
-0.1380540133,
-0.0205535367,
0.2273862511,
0.1176240146,
-0.1575976163,
0.2670055032,
0.2965664566,
-0.5154979229,
0.2804079056,
0.1454420388,
0.4508610666,
-0.0935285985,
-0.1810209751,
0.0642998964,
-0.0575761274,
0.1221430227,
0.2484456748,
-0.071534507,
-0.2342913747,
0.1333343536,
0.3007958233,
-0.2574562728,
-0.0646616817,
-0.273752898,
0.0847610757,
-0.0766701773,
-0.2693383396,
-0.0532862283,
-0.4953400493,
0.1539395005,
0.0111223105,
0.1049449742,
0.3338851333,
-0.0001155144,
-0.0851756483,
0.0369370244,
0.0938123763,
-0.2382419258,
-0.1577619761,
-0.0969276428,
0.088622719,
-0.0698395744,
-0.0270565152,
-0.0834107921,
0.1937476099,
0.0529346317,
-0.098161988,
0.5147069097,
0.2915841937,
0.1400678009,
-0.0102436505,
-0.25211972,
-0.0659531727,
0.3198693097,
0.0313075297,
0.0850754678,
-0.1780212075,
0.2137238979,
0.031479165,
-0.051667653,
0.6180684566,
-0.2813325822,
0.3980182111,
-0.2359144837,
0.1242304444,
-0.3711774349,
-0.5308328271,
0.2668364346,
0.2161648273,
0.6465563178,
-0.2296240181,
-0.2044669986,
-0.2378615737,
0.3199088275,
-0.1560649574,
-0.0421696007,
-0.0161783863,
-0.2728024125,
0.2350625992,
-0.0094949491,
0.0476475582,
-0.2204017639,
0.1288806647,
0.0558110327,
-0.1074197069,
-0.073136121,
0.1385567337,
-0.177100271,
0.0994096845,
-0.0858643502,
0.2703582942,
-0.1442613751,
0.0341255739,
-0.1497620046,
-0.067490235,
0.1925161183,
-0.3049419224,
0.2917182148,
-0.0602201149,
0.3855576217,
0.0374374576,
-0.185671553,
-0.0881004483,
0.3239298165,
0.019808244,
-0.0233678631,
0.1496764421,
0.229897067,
-0.2340690494,
-0.2531853914,
0.0737155974,
-0.0144180655,
0.2162741572,
0.3318795562,
-0.2650298476,
0.2829245329,
-0.3676445484,
-0.5658826828,
0.0642498583,
-0.4400378168,
-0.1030389518,
-0.2528010905,
0.1816737801,
0.1693309397,
0.3009268343,
0.1449252516,
0.2226765156,
0.0693396702,
-0.5628320575,
-0.1818622649,
0.0267981812,
0.209860146,
0.0308406949,
0.2113290876,
-0.3237068057,
0.3398513794,
0.3417339325,
0.1954528987,
-0.4315994382,
-0.2874111533,
-0.1301769018,
0.0255612563,
0.0091861859,
-0.0264899656,
0.3916679621,
0.0738198608,
-0.0182899311,
0.0072352737,
0.061006967,
-0.1065562218,
0.0068644807,
0.2134013623,
0.1364107281,
-0.0805881023,
-0.1671146154,
0.123248212,
0.3605878055,
0.0779451728,
-0.3008700609,
0.0030108094,
-0.182742402,
-0.3919641674,
-0.0386589095,
0.0773314014,
0.3024607003,
-0.3355480433,
0.0954273641,
0.1785346866,
0.4213980138,
0.3944750428,
0.248454079,
-0.0465102345,
0.3734383583,
-0.1168164462,
0.300144732,
0.2041981369,
-0.462130636,
-0.3920543194,
0.2112352848,
-0.0496034771,
0.2464138567,
0.1548907608,
-0.1627835333,
0.302733779,
0.1427074969,
0.3759354353,
0.1534788609,
0.1457359195,
0.0334793851,
-0.2446885854,
-0.0578924865,
0.0868308544,
-0.013140697,
0.0021537198,
0.0955833495,
0.0370380729,
0.2329707146,
0.5271515846,
0.074584201,
0.0924515203,
0.1029673964,
0.1659647077,
-0.1012318656,
0.223977834,
-0.2631006539,
0.256485641,
-0.0488978773,
0.2068275511,
0.2837988138,
0.1540314704,
0.0793674141,
-0.3015448749,
-0.2188884318,
-0.2991881967,
-0.3250729442,
0.1145815998,
0.3257374465,
-0.0144316107,
0.0420464724,
-0.1898580194,
0.3409901261,
-0.220326364,
-0.0741857961,
0.0233060345,
0.0991652682,
0.0638567656,
-0.2447071373,
0.5248854756,
0.2528992593,
0.1851495504,
0.2016844749,
-0.1669406444,
0.2235519737,
-0.0147676263,
0.0219675135,
-0.2637170255,
-0.3288921118,
0.1099484414,
-0.5017573833,
-0.1113950163,
0.2344706357,
0.3181718886,
-0.0045002848,
-0.3036762178,
-0.1834709644,
0.1390079707,
0.2569385469,
-0.0554438978,
-0.0651192218,
0.3011586964,
0.0662532076,
-0.3537994027,
-0.3246977329,
0.2526896,
-0.2349808365,
0.2662213743,
0.0202848818,
-0.3417765796,
0.1585987508,
0.3928953707,
0.224511385,
0.0852087811,
0.2943885028,
-0.2468324006,
-0.0270177387,
-0.1227288097,
0.0949120969,
0.2907656431,
0.2881050408,
0.0543025173,
-0.3764549494,
-0.1287488788,
-0.1132323146,
0.1393361092,
-0.1307565868,
-0.3556300402,
0.4351169765,
0.3585452139,
0.0863875002,
-0.4493836164,
-0.1341286898,
-0.1424039006,
0.4703673422,
-0.3349604011,
-0.2316325158,
-0.4356051683,
-0.1205522045,
-0.1090054661,
0.0662912652,
0.0797034353,
0.2255510092,
0.2190562636,
-0.0127123753,
0.0054568797,
0.1367990673,
0.1719907224,
0.2340623438,
0.0712053701,
0.1117986217,
0.0863047391,
0.3191402555,
-0.3069571257,
-0.0242700987,
0.0259719864,
0.2716125846,
0.1074291766,
-0.1422469318,
-0.1639023423,
-0.4067964256,
0.0590182394,
0.2675643861,
-0.3301687837,
0.5113493204,
0.1133633256,
0.1602489352,
-0.225165695,
-0.3130812347,
0.0026725121,
-0.0268873014,
-0.1686864793,
0.3555681705,
0.0829433054,
-0.0056142658,
-0.0482561365,
-0.6989753246,
0.0993928909,
-0.2500090003,
0.2359428555,
-0.0328675359,
0.2103789449,
0.3641360402,
0.0606072769,
0.0812699944,
-0.0587119348,
0.2053696513,
-0.4102098644,
-0.2545931339,
0.3561107814,
0.26060462,
-0.3348696232,
-0.340569675,
0.0509583876,
0.2652951181,
-0.0322292708,
-0.4001086354,
0.1003537476,
-0.2674658597,
0.1453482509,
-0.2972605824,
0.2826198936,
0.3854672909,
0.0129938759,
-0.1495048404,
-0.1692215055,
-0.1078338027,
0.2658358514,
0.3553735614,
0.0058844835,
0.1011466682,
0.0699136704,
-0.0593266524,
0.3506976664,
0.6459599137,
0.2025158256,
0.2600062788,
-0.1765540689,
0.094235301,
-0.0324933827,
-0.399579823,
0.0270797573,
-0.1173249036,
-0.0625671744,
0.4981201887,
-0.0899956599,
0.0536313131,
-0.1695878804,
-0.0572772175,
-0.3290622532,
-0.1686405241,
0.0674922541,
-0.2359401435,
0.1839740574,
0.1747752875,
0.0528289899,
0.1619520038,
0.0347348675,
-0.2861664295,
-0.2988383174,
0.2851737738,
-0.1499723792,
-0.0820299685,
-0.2836108804,
-0.3772889972,
-0.1241015047,
0.1385838389,
0.509554565,
-0.2117004991,
-0.0375208594,
0.3600181937,
0.291478008,
0.3810286224,
-0.3069944978,
0.0908771232,
0.0103906915,
0.2287912816,
0.0055079088,
0.0054614544,
-0.520500958,
-0.1967587322,
-0.047500696,
-0.043032255,
-0.1668931693,
-0.0080188178,
0.1089592725,
0.3927439451,
-0.0097474083,
-0.2408113927,
-0.2557696402,
-0.0757930726,
-0.330141902,
0.1615659148,
0.3422314823,
0.0443936475,
-0.1651335955,
-0.1203247681,
0.1603989154,
-0.0627516657,
0.5332372189,
0.0798593313,
0.3751766086,
0.0739651099,
0.3011750281,
0.2748405039,
-0.3577798605,
-0.2591430247,
0.360815227,
0.1009693295,
-0.1420252919,
-0.003674034,
-0.3468616903,
0.3289577961,
0.4931567907,
-0.2231911868,
0.2419294268,
-0.2970615327,
0.2568938732,
-0.1529489756,
0.0957464427,
0.3195283115,
-0.0749834105,
-0.075181514,
-0.4102868438,
0.3822799921,
-0.0364948325,
-0.1979483962,
0.3445506692,
0.090918839,
-0.3103822768,
0.4712516367,
-0.2578840554,
0.8118335605,
0.2264073044,
0.3666304052,
0.3155017495,
0.1381513774,
0.3261645436,
-0.1960100532,
0.0902332067,
-0.0220172405,
-0.0018167123,
-0.021560315,
0.0583432913,
-0.0778568164,
-0.0417594314,
-0.5769283772,
0.1775287539,
0.0647165179,
0.0288713761,
0.1868021488,
-0.0118521973,
-0.1294961721,
-0.1064070612,
0.1252994835,
0.0325714797,
-0.3839385509,
0.3074729443,
0.3099323511,
-0.0242958292,
0.0314043462,
-0.5837305188,
-0.822481513,
-0.0301678739,
-0.0825177208,
-0.2259410918,
-0.1996797919,
-0.3336215019,
0.368199259,
0.2585996985,
0.191553697,
0.3256591558,
-0.137968272,
-0.0852640793,
0.368242979,
0.277651459,
-0.2679567933,
-0.0255919266,
0.1445186585,
-0.0860314369,
-0.3883320093,
0.1766034812,
0.0551583506,
0.0989633948,
-0.388065666,
0.2538313568,
-0.1146805361,
-0.2331589013,
0.0857377872,
0.4289046526,
0.1415172517,
-0.5119701624,
0.1032074764,
0.1241721809,
-0.4588641226,
0.3286850154,
0.1725839674,
-0.4755196869,
-0.0637626201,
0.2593403459,
0.1283606291,
0.0002505258,
0.6646648049,
-0.0414827764,
0.0483880341,
-0.370475769,
0.0406965911,
-0.0209284127,
-0.2641956508,
0.1791122854,
0.0586632863,
0.1739624739,
-0.2265273333,
0.253549844,
0.0265138261,
0.2048027962,
-0.2814756036,
-0.3617306352,
-0.0619774982,
-0.0314538106,
0.1234354228,
0.0552398823,
-0.2911970615,
0.1181855947,
0.068815887,
0.3186089396,
-0.298191905,
0.0059748478,
-0.0517943054,
0.2173200995,
-0.0840426981,
0.0813203901,
-0.0378094129,
0.0851735026,
0.2000401914,
0.3185154498,
0.0672915578,
-0.1598699987,
-0.3062141538,
0.1838443279,
0.0417442322,
0.1562648416,
-0.0407684594,
0.1001059711,
0.1492387056,
-0.1337079257,
-0.1010109037,
0.334582597,
0.1253622472,
0.2183781862,
-0.0296326876,
0.0370717905,
0.185156092,
-0.1598647833,
-0.183976844,
-0.1724588871,
0.3399857879,
0.180613637,
0.0487437211,
-0.048195757,
0.1186248958,
0.0399238802,
-0.1340517104,
0.1186957136,
-0.077834174,
-0.2655765116,
0.1333700567,
0.2876860499,
-0.11947947,
0.3786883354,
-0.3459938765,
-0.1118995398,
0.0911948234,
0.2351439744,
-0.2654985785,
-0.1237110943,
-0.3232503831,
-0.1065508574,
-0.0583089478,
0.2784046233,
-0.0598310754,
-0.4723797739,
0.1214666814,
-0.0649381429,
0.3360201716,
-0.5360028744,
-0.0734216124,
0.398514539,
0.0149739757,
-0.3611198664,
-0.1933410913,
-0.0151967863,
0.0208014213,
0.5450986624,
-0.367543757,
0.137358129,
-0.3386057615,
0.0263878778,
0.1915481389,
0.0256050304,
-0.0382200666,
0.405641675,
-0.3271882534,
-0.0489631891,
-0.0716249198,
0.305047363,
-0.117672503,
0.0334456414,
-0.1280478239,
-0.0514147878,
-0.1239193156,
-0.1248623282,
-0.3380391598,
-0.2734287977,
-0.2303763926,
0.0061818808,
0.0975420699,
-0.0125556774,
0.1405141801,
0.1916216612,
-0.2668842971,
-0.5332415104,
-0.1980940104,
-0.0377838761,
0.1720767021,
-0.3900322318,
0.3403880596,
0.3084274232,
-0.2217701524,
0.2584379017,
0.2433645874,
0.5199831128,
0.0715809613,
0.0334476456,
0.1065190062,
-0.5706882477,
-0.0919025466,
-0.0517225526,
0.3297679126,
-0.124241814,
0.0587560609,
0.0218635425,
0.0158727318,
-0.0956397802,
0.0293481201,
0.2285464406,
-0.0756255835,
-0.5632570386,
0.2190778553,
-0.1411622018,
0.1117325425,
0.0406587012,
0.0749842525,
-0.4736692905,
0.4417380989,
0.3421673775,
0.0575964004,
-0.0106266178,
0.0021903627,
0.0813888311,
-0.1263747662,
-0.1126125157,
0.2673047185,
0.1579867452,
-0.2770341635,
-0.159135446,
-0.6735782623,
-0.0714833736,
-0.0488051437,
-0.0049524829,
0.0006291419,
0.1189807802,
0.1586840898,
0.1362602711,
0.0692648813,
-0.0260407105,
-0.5322327614,
0.3291485906,
-0.215463087,
-0.0053818165,
-0.0877879709,
0.436660707,
0.0414891466,
-0.1064979434,
0.0108351959,
0.0946914032,
0.0340189114,
0.0655479729,
0.0059460253,
0.0175629109,
-0.120662123,
0.1582386941,
0.1423450857,
0.1708151102,
-0.2348543555,
0.1895657182,
-0.2832582593,
0.029293377,
-0.1982437819,
0.1561560333,
0.2698151171,
0.5158418417,
-0.1834514141,
-0.0686846673,
-0.0636009425,
0.1653608084,
0.1112444997,
-0.0649594292,
-0.1914126277,
0.0897695571,
-0.0087000653,
0.2714968026,
-0.2622261941,
0.1059424132,
0.0038293982,
0.0026379824,
-0.4920397103,
-0.7109146714,
0.4522461295,
-0.4033150077,
-0.5287761688,
-0.0796566382,
0.5906728506,
0.2403547168,
-0.0321537107,
-0.708696425,
-0.0359899774,
0.3959988356,
0.2443485558,
-0.3021711707,
0.2129859924,
0.1219397038,
0.0085308924,
0.0144247562,
0.6226138473,
0.3105244637,
-0.2327545881,
0.2679713368,
-0.4604580104
] |
https://github.com/huggingface/datasets/issues/2904 | FORCE_REDOWNLOAD does not work | Hi ! Thanks for reporting. The error seems to happen only if you use compressed files.
The second dataset is prepared in another dataset cache directory than the first - which is normal, since the source file is different. However, it doesn't uncompress the new data file because it finds the old uncompressed data in the extraction cache directory.
If we fix the extraction cache mechanism to uncompress a local file if it changed then it should fix the issue.
Currently the extraction cache mechanism only takes into account the path of the compressed file, which is an issue. | ## Describe the bug
With GenerateMode.FORCE_REDOWNLOAD, the documentation says
+------------------------------------+-----------+---------+
| | Downloads | Dataset |
+====================================+===========+=========+
| `REUSE_DATASET_IF_EXISTS` (default)| Reuse | Reuse |
+------------------------------------+-----------+---------+
| `REUSE_CACHE_IF_EXISTS` | Reuse | Fresh |
+------------------------------------+-----------+---------+
| `FORCE_REDOWNLOAD` | Fresh | Fresh |
+------------------------------------+-----------+---------+
However, the old dataset is loaded even when FORCE_REDOWNLOAD is chosen.
## Steps to reproduce the bug
```python
import pandas as pd
from datasets import load_dataset, GenerateMode
pd.DataFrame(range(5), columns=['numbers']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
pd.DataFrame(range(10), columns=['numerals']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
```
## Expected results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numerals'],
num_rows: 10
})
## Actual results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numbers'],
num_rows: 5
})
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-4.14.181-108.257.amzn1.x86_64-x86_64-with-glibc2.10
- Python version: 3.7.10
- PyArrow version: 3.0.0
| 99 | FORCE_REDOWNLOAD does not work
## Describe the bug
With GenerateMode.FORCE_REDOWNLOAD, the documentation says
+------------------------------------+-----------+---------+
| | Downloads | Dataset |
+====================================+===========+=========+
| `REUSE_DATASET_IF_EXISTS` (default)| Reuse | Reuse |
+------------------------------------+-----------+---------+
| `REUSE_CACHE_IF_EXISTS` | Reuse | Fresh |
+------------------------------------+-----------+---------+
| `FORCE_REDOWNLOAD` | Fresh | Fresh |
+------------------------------------+-----------+---------+
However, the old dataset is loaded even when FORCE_REDOWNLOAD is chosen.
## Steps to reproduce the bug
```python
import pandas as pd
from datasets import load_dataset, GenerateMode
pd.DataFrame(range(5), columns=['numbers']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
pd.DataFrame(range(10), columns=['numerals']).to_csv('/tmp/test.tsv.gz', index=False)
ee = load_dataset('csv', data_files=['/tmp/test.tsv.gz'], delimiter='\t', split='train', download_mode=GenerateMode.FORCE_REDOWNLOAD)
print(ee)
```
## Expected results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numerals'],
num_rows: 10
})
## Actual results
Dataset({
features: ['numbers'],
num_rows: 5
})
Dataset({
features: ['numbers'],
num_rows: 5
})
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-4.14.181-108.257.amzn1.x86_64-x86_64-with-glibc2.10
- Python version: 3.7.10
- PyArrow version: 3.0.0
Hi ! Thanks for reporting. The error seems to happen only if you use compressed files.
The second dataset is prepared in another dataset cache directory than the first - which is normal, since the source file is different. However, it doesn't uncompress the new data file because it finds the old uncompressed data in the extraction cache directory.
If we fix the extraction cache mechanism to uncompress a local file if it changed then it should fix the issue.
Currently the extraction cache mechanism only takes into account the path of the compressed file, which is an issue. | [
-0.1253404319,
0.0207805187,
0.0185131431,
0.0257141255,
0.1821044832,
0.0251932293,
0.4788661599,
0.2438329905,
0.1457959265,
-0.2338697463,
-0.1162829325,
0.2687396407,
0.0850748718,
0.1121126562,
-0.0132029261,
0.3137484789,
0.1101020873,
0.2144832313,
-0.0722498894,
-0.0051927194,
-0.2910995185,
0.0634416938,
-0.1833178997,
-0.2195640504,
-0.2065765262,
0.2937992215,
-0.0426937751,
0.3026084304,
0.0084058847,
-0.3731205463,
0.1836808622,
0.2550068498,
0.1820977181,
0.6611075401,
-0.000109716,
0.0617887825,
0.1586242616,
-0.1793151498,
-0.1704427451,
-0.1858088374,
0.0419965088,
-0.0455285385,
-0.3461464047,
-0.0842091963,
-0.0005326644,
-0.2207529694,
-0.1748756617,
-0.346150279,
0.5304934978,
0.4028014243,
0.2320072353,
-0.1104159653,
0.1202412322,
-0.0721177608,
0.1787123382,
0.1414144039,
-0.0699523836,
0.3557819724,
0.1045253277,
-0.2072237134,
-0.0906311572,
0.0714472607,
-0.1301324219,
0.0515933037,
-0.1007768661,
-0.0266389027,
0.3280928731,
-0.1360900998,
0.0856571943,
0.1706221998,
0.6073064208,
-0.3377119303,
-0.4172842205,
0.0072848946,
0.0183142461,
-0.2442768812,
0.165023312,
0.1792492867,
-0.0074187629,
0.3686660826,
-0.0126198605,
-0.0254523531,
0.0721381605,
-0.194806546,
-0.0308576301,
-0.1178198159,
-0.1004163176,
-0.0362133011,
0.0516209938,
0.0602482818,
0.4213585854,
-0.0216162056,
-0.0566803887,
0.0342853516,
-0.0291525982,
-0.1342204809,
0.2153063416,
-0.3018358052,
0.0747370124,
-0.028192129,
-0.0764475688,
-0.1077360883,
-0.0592024587,
0.048979722,
0.0738613904,
0.2261445969,
-0.1387258619,
-0.0901200771,
0.3910107315,
0.1767414808,
-0.2513785362,
-0.0726185739,
0.0294126309,
-0.2027268559,
0.5261005759,
-0.0647601709,
0.261403501,
-0.1472215801,
-0.4044617414,
-0.0181816313,
-0.1070785671,
0.0032649636,
-0.2742645442,
0.1767623276,
0.0207744986,
0.3530654907,
0.1341453344,
0.1856256276,
0.058139652,
-0.2063570321,
-0.2226337492,
-0.1226870343,
-0.3091840148,
0.0251519457,
0.2947833836,
-0.1708824337,
0.3440059125,
0.5470419526,
-0.3297730684,
-0.5027304292,
-0.0621350408,
-0.0314326808,
0.1452516466,
0.2964736819,
-0.0633029714,
-0.0863984972,
0.2666995525,
-0.0901364684,
-0.0168401077,
0.3552975059,
-0.091447264,
-0.3069288433,
0.1436536312,
0.1975640059,
0.0511061102,
0.1958487183,
-0.1279504448,
0.015527714,
0.3042723238,
-0.0705187619,
-0.0457961932,
-0.0500781015,
-0.0136532784,
-0.2484515011,
0.0476664156,
0.7337828875,
-0.468116045,
0.008141458,
-0.2922009528,
-0.0890842229,
0.2404543906,
0.0785244554,
0.0047031567,
0.0423926227,
-0.4686898887,
-0.3603312373,
0.1667579412,
-0.1669527143,
-0.4369602203,
0.0058208294,
-0.2142423838,
0.257532984,
0.1665148884,
-0.0449787378,
-0.150135994,
-0.0172343571,
0.0970482379,
0.2490072548,
0.0923939422,
0.0448235124,
-0.3246172071,
-0.2888210714,
0.045567859,
-0.1329661012,
0.2855156064,
0.4056807756,
0.3521437049,
0.166620627,
0.3699394166,
0.0625927597,
0.015510235,
0.0143863931,
0.3367366791,
-0.0180100575,
0.0330759026,
0.176521346,
-0.5221682787,
0.3075174391,
-0.0336040705,
-0.2515619695,
0.0728958547,
-0.0701956972,
-0.5719494224,
-0.2283391207,
-0.0720977336,
-0.3877545595,
0.1725478172,
0.471341908,
-0.0334353521,
0.0184989423,
-0.143489331,
0.4725979269,
-0.3845012784,
-0.0480713807,
-0.0413010791,
0.2855198681,
-0.1932278126,
-0.1814610958,
-0.2195678949,
-0.1187962741,
0.2447942197,
-0.1625745595,
-0.1215587854,
0.4299702048,
0.1860479116,
0.272087127,
-0.3619136512,
-0.1950369924,
0.1652199626,
-0.0160630941,
-0.1465485245,
0.1185460389,
0.2459685504,
-0.0776266605,
-0.0173953176,
0.278904736,
-0.4031003416,
-0.0885869935,
0.0713748261,
-0.0462190732,
0.2666132748,
-0.2367841601,
0.2828174531,
-0.3403977752,
-0.3403313458,
0.2947022319,
0.0018239841,
0.1279277503,
0.0989248678,
0.1121158004,
0.2867795527,
0.0066713914,
0.0475182198,
-0.0890124664,
-0.1765655577,
-0.2945634127,
0.0131209102,
0.3500009775,
0.5929614305,
0.1657259166,
-0.0166614577,
0.1451728493,
-0.0583075806,
-0.2538090646,
0.2043863386,
-0.2613335252,
-0.0064700097,
0.3311824203,
0.1878523678,
0.0763364658,
-0.6370837688,
0.1860153824,
0.5140928626,
0.2118022144,
-0.2195149064,
-0.1909854114,
-0.1673645973,
0.4125153124,
0.0630174279,
0.1435507536,
-0.0300566405,
-0.1065666601,
-0.1382732242,
0.5955287218,
-0.0589989237,
0.0732918903,
-0.1850811988,
-0.0749257654,
-0.0461661182,
-0.1426969022,
-0.147280395,
-0.1764150709,
-0.1414827108,
0.0910960063,
0.2313582301,
-0.3419227898,
0.147731021,
-0.1828767359,
-0.126756981,
-0.3267622292,
-0.0833430514,
-0.1293942481,
0.0340040252,
0.2224017978,
-0.2250491977,
0.1471372098,
0.1697577685,
0.0325685665,
-0.0047153011,
-0.3554544449,
-0.3341686726,
-0.1029286981,
0.1511997283,
0.2633759677,
-0.2600108385,
-0.455455482,
0.1090232655,
-0.3711392581,
-0.0406574681,
0.1015612856,
-0.0919758901,
0.3833363652,
0.2238112241,
-0.0310829934,
0.4020083547,
0.2698831558,
-0.4376192093,
-0.2790603638,
0.0805035606,
-0.1014776304,
-0.2633704841,
0.014791131,
0.0609153137,
-0.01211996,
0.2737060785,
-0.4307680428,
-0.0845258087,
-0.2824060023,
0.0837785006,
-0.0585754961,
0.2336962521,
0.2081230432,
0.1207605153,
-0.2136410922,
-0.1040797979,
-0.0956789181,
-0.0414951853,
0.2334915996,
0.1269830167,
0.0212046951,
0.2292777747,
0.093539536,
0.6404245496,
0.0503103286,
-0.1254807115,
0.5086990595,
0.1254238039,
0.7294852138,
-0.0740368366,
-0.3390604258,
-0.0056345873,
-0.18458426,
0.3192576468,
0.0420286804,
-0.1061970145,
0.130979836,
-0.1564230472,
0.0242269486,
-0.1678122282,
-0.2236510366,
-0.117909424,
-0.2493902147,
-0.0220436528,
0.3142302632,
-0.1047641709,
-0.134165585,
0.081380859,
-0.018525321,
0.0876278728,
0.3220419586,
0.08849217,
0.0994392037,
0.5284664035,
-0.1080815047,
-0.0133392215,
-0.087797679,
0.3645616174,
0.2040730566,
-0.202382952,
0.058592353,
-0.0231181774,
0.7181987762,
-0.2194462717,
0.3132911026,
0.2286944985,
0.011422947,
-0.08702185,
-0.196765691,
0.1032616943,
-0.1487743556,
0.1887096465,
0.364929229,
0.0375474393,
0.0390017033,
-0.1003571302,
0.2032169402,
0.062129043,
-0.1629727781,
-0.2788122892,
-0.1599722505,
-0.4588589966,
0.3117336333,
0.1915879846,
0.0890045911,
-0.320887506,
0.0846343338,
-0.2478238493,
-0.4116816819,
-0.0395847186,
0.1951415241,
0.2008187026,
0.1139606982,
0.0489873812,
-0.0161830783,
-0.1171156615,
0.2674766481,
0.4194466472,
-0.1649918556,
0.0667290986,
-0.1280568093,
0.1093957722,
-0.0675815195,
0.3193865418,
-0.0657962188,
-0.1120611578,
-0.3978951275,
-0.161882177,
0.0620967448,
0.067345798,
0.0029718503,
-0.3354583383,
-0.0954509974,
-0.4370095432,
0.2871856093,
-0.0682171509,
-0.0515980199,
0.4572839737,
0.2364324331,
-0.2039114088,
0.1625165641,
0.0528944209,
0.8192446232,
-0.122147873,
0.1651923954,
0.0327904336,
-0.0593870841,
0.4034760892,
-0.288682282,
0.1940590441,
-0.1767738611,
-0.3061234951,
0.1044935659,
-0.0408079773,
0.2328796983,
0.2079222798,
-0.1264044791,
0.1385399848,
-0.0984726101,
0.4167667031,
0.2764786482,
-0.003026031,
-0.2224706262,
-0.1413928568,
-0.2291932851,
0.1468186826,
0.281172961,
0.1926803589,
-0.1454819888,
-0.0086176768,
0.1220361218,
-0.0229483023,
-0.2685616016,
0.2866363227,
-0.1642528325,
0.3783462346,
-0.4507656991,
-0.1098409444,
0.0326459631,
0.2600930333,
0.254960984,
0.257820189,
0.0146767776,
0.0830926895,
0.4122846425,
0.1323083043,
-0.1551140696,
0.000856854,
0.4158845842,
0.1006285995,
-0.3379720449,
0.1988292485,
-0.0907846019,
-0.1476550549,
0.003759101,
0.2748384774,
-0.0433281548,
-0.1125033423,
-0.092763789,
0.0935378596,
-0.074974604,
-0.4186441898,
0.1443356425,
-0.0522537902,
-0.1282392591,
0.1212556213,
-0.448102802,
-0.4539900422,
-0.2699025273,
0.5651442409,
0.165303871,
0.0896879062,
0.3432315886,
-0.1958157271,
0.0092305094,
-0.1956040412,
0.0348326936,
-0.1255518198,
-0.3250434995,
0.5315563083,
-0.2140320241,
-0.1011315584,
0.1889257878,
-0.1737540513,
0.1105416715,
0.3808701038,
0.1637352407,
-0.2844934762,
-0.5291987658,
-0.3904181123,
-0.0524905659,
0.2282983363,
0.0508476049,
-0.0072953049,
-0.0107129738,
-0.0045594815,
-0.3350777626,
0.2403883934,
0.091907233,
0.0729335099,
0.1242786348,
-0.1043482274,
-0.2560697198,
-0.259272784,
0.177595377,
0.3209486604,
-0.0254105274,
-0.2779420912,
-0.3296149075,
0.0958331525,
0.3220798969,
-0.1090263799,
-0.1992630363,
-0.0858468562,
-0.2128358036,
-0.1136853099,
0.2098958641,
0.4146846235,
-0.0505066775,
-0.0152493082,
0.3320708871,
0.0022461843,
-0.1997738779,
-0.0958506614,
-0.2755775452,
-0.1480357647,
0.0696584284,
0.2725879252,
-0.0361605026,
0.1273907721,
-0.4385436773,
-0.0649158806,
0.1195173711,
0.0885498077,
0.1913102269,
-0.2284956425,
-0.1663824916,
-0.0860036016,
0.2218851447,
0.4013639688,
0.0489362441,
-0.1580480039,
0.2325664461,
0.2389935702,
-0.5628598332,
-0.0106937252,
0.1943590343,
-0.0036499109,
0.0985646173,
0.1986981034,
0.2104046196,
-0.168173641,
-0.0613068342,
0.1347884238,
0.2547548413,
-0.0625271872,
0.3317424953,
0.6826942563,
0.1762797385,
0.2481752634,
0.2562506497,
0.1975748986,
0.1642527878,
0.3292225003,
0.0229684971,
-0.0241937451,
-0.2815636098,
0.0184472296,
-0.3797064722,
-0.3709609509,
0.3160880208,
0.4231718481,
-0.2143075615,
0.2365920395,
0.0353623219,
-0.3099909425,
-0.0264860485,
0.0299496166,
-0.2805519998,
0.2032454312,
-0.1236359254,
-0.3274009228,
0.387868315,
-0.202611506,
-0.1777495444,
0.196498692,
-0.0410758182,
0.0262601674,
-0.1356978416,
-0.0048754476,
-0.2721964419,
-0.4071185887,
-0.0643910021,
0.1155257151,
0.1304228306,
-0.2057666183,
-0.0984742045,
0.3018858433,
-0.136428073,
-0.0018367833,
0.2399720997,
0.3788968027,
0.2111080438,
0.1534902155,
-0.0022814907,
0.1738818437,
-0.0088152029,
-0.3157629371,
0.4200020432,
0.0662741438,
-0.0240944717,
-0.137090534,
0.2039389312,
-0.2506952286,
-0.0812054276,
0.1522061229,
0.0141360164,
-0.1547082067,
0.4992973506,
0.071996212,
-0.3092765808,
-0.0027597118,
0.2752628624,
0.025196746,
-0.0798182786,
0.3267327249,
-0.1332304329,
0.2819016576,
-0.2300074548,
0.1109810024,
0.1148270443,
-0.0347524993,
0.4555132091,
-0.4898699224,
-0.2097951025,
0.0988612771,
-0.8164003491,
0.0120940804,
0.0328482091,
0.2008300722,
-0.1417103708,
0.0833702087,
-0.0083176121,
0.0212944727,
0.1145127937,
0.3138948381,
0.0724568367,
0.3102657497,
-0.0539459288,
-0.1346901506,
-0.0958662704,
-0.1477007419,
-0.1163654327,
-0.5594714284,
0.0759589002,
-0.1853276193,
0.2095306218,
-0.0370591059,
0.0065101311,
0.21801503,
0.2444199473,
0.4945929945,
0.028728405,
-0.0332199596,
-0.0520026721,
-0.1335050166,
-0.566588819,
-0.0398007669,
-0.2466408759,
0.0500842258,
0.1520661712,
0.1390789747,
-0.3625163734,
-0.3033446074,
-0.2144048363,
0.3089039028,
0.2004513443,
-0.0365047343,
-0.3225578666,
-0.0226421505,
-0.086475268,
0.0237417035,
0.261890471,
0.2817649245,
-0.3526061773,
0.3924573958,
-0.3913658261,
-0.3119351268,
0.2078100741,
-0.3488788903,
-0.3597281873,
-0.1109974012,
0.2195088565,
-0.0590105914,
-0.0838466138,
0.0804016739,
0.3842257261,
0.2200256437,
-0.1292812526,
-0.2282671183,
0.1182788759,
-0.4038989842,
0.1522313952,
-0.0926431641,
0.1583369076,
0.151463449,
-0.2153836489,
0.1477643102,
-0.0796993971
] |
https://github.com/huggingface/datasets/issues/2902 | Add WIT Dataset | WikiMedia is now hosting the pixel values directly which should make it a lot easier!
The files can be found here:
https://techblog.wikimedia.org/2021/09/09/the-wikipedia-image-caption-matching-challenge-and-a-huge-release-of-image-data-for-research/
https://analytics.wikimedia.org/published/datasets/one-off/caption_competition/training/image_pixels/ | ## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 23 | Add WIT Dataset
## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
WikiMedia is now hosting the pixel values directly which should make it a lot easier!
The files can be found here:
https://techblog.wikimedia.org/2021/09/09/the-wikipedia-image-caption-matching-challenge-and-a-huge-release-of-image-data-for-research/
https://analytics.wikimedia.org/published/datasets/one-off/caption_competition/training/image_pixels/ | [
-0.049786251,
-0.0547439605,
-0.1280666441,
0.000300426,
-0.0393541008,
-0.0071310773,
0.3546050191,
0.1659150422,
0.1936855912,
0.2055809498,
0.063979961,
0.1460070014,
-0.0242924429,
0.1997421682,
-0.0148758469,
-0.2061530352,
-0.0474180207,
0.0075570196,
-0.095439963,
-0.0953546613,
-0.1237477213,
0.1472278237,
-0.1375915557,
-0.2112541795,
-0.4580721855,
-0.0875772685,
-0.1730556041,
-0.0253451541,
-0.1721293181,
-0.0776186436,
-0.1209004521,
0.1993556023,
-0.1435847133,
0.3342962861,
-0.0000973471,
-0.1190001518,
0.2309072316,
-0.1802839041,
-0.0871032551,
0.0576612316,
0.1233593822,
-0.0183559954,
-0.3197693825,
-0.4497414529,
-0.1917415112,
-0.0919260085,
0.2502597868,
0.0872262865,
0.2207233608,
-0.0171945021,
0.3280396461,
-0.1210447699,
0.1039479375,
0.0242982134,
0.0408666097,
0.1121117026,
-0.1330120862,
-0.0007009823,
0.0150086842,
-0.3246175051,
-0.1604317874,
0.6847470999,
0.017172493,
0.0272536688,
0.0614412874,
0.0563659109,
-0.1721414626,
-0.3297244906,
0.179035008,
0.4349498451,
0.5310003757,
0.0022285867,
-0.1660662144,
-0.0531980768,
-0.0875588432,
-0.0650096685,
0.1432963461,
0.2999424934,
-0.1368230879,
0.0239425618,
-0.2666971982,
0.002892442,
-0.2545391917,
0.1593598723,
-0.1959468424,
0.4131115675,
0.0215666406,
0.0326526724,
-0.0001826733,
-0.210152179,
-0.4369372129,
-0.0127321053,
0.2125471234,
0.0099949129,
0.0381095558,
-0.2509275079,
-0.0503862463,
-0.1546090394,
0.369222641,
-0.1973781884,
-0.0403583907,
0.0733240992,
-0.182513535,
0.3001660109,
0.1151568443,
-0.2735809088,
-0.1728781313,
0.0215192735,
0.1827846169,
0.0874058008,
-0.2466637194,
0.1344640106,
0.2253026813,
-0.1029727608,
-0.1772986054,
-0.0878006369,
0.1070198566,
-0.0466614328,
-0.1075611115,
-0.0085833706,
-0.1467047632,
-0.0710132271,
-0.4360580146,
0.2165164053,
-0.0335758477,
0.1098505408,
0.1278967261,
0.1473862529,
-0.2188079953,
-0.1533712149,
-0.1057867631,
0.1009150222,
0.0557396114,
0.2790457308,
0.1211024672,
0.3311383128,
0.2567344606,
-0.0824030489,
0.174645409,
0.0947208256,
0.0416482389,
-0.0953106284,
0.2555250525,
-0.008912405,
0.0164621323,
-0.1227280051,
-0.0512414053,
-0.2793620229,
-0.19902426,
0.0270650964,
-0.108472757,
0.2036318034,
-0.321290046,
0.2668367326,
0.1446976662,
-0.0583519451,
-0.0045634173,
0.698210001,
0.0959761441,
0.0308419988,
0.1365308911,
0.1445247382,
-0.3958845437,
-0.0636470616,
0.2453515828,
0.4490686059,
-0.0886284336,
0.0255282596,
0.3061003387,
0.3564617038,
0.0193693861,
0.1932201535,
0.0245505311,
-0.0181515738,
0.0488756076,
0.2630173564,
-0.105621174,
-0.2358686477,
-0.1195389852,
-0.1759905815,
-0.0965116173,
0.1020762101,
0.0326435715,
0.286051482,
0.2700508535,
-0.1027757972,
0.093534492,
0.6013004184,
-0.1892948151,
0.213765353,
-0.2130067348,
-0.3863323927,
-0.0069001801,
0.3273806572,
0.1285638213,
-0.4685771763,
0.2250232399,
0.1909395307,
0.03199834,
-0.3845872581,
0.0987226143,
0.0075335819,
-0.0310355574,
0.0995842293,
0.0918280184,
-0.2398947924,
-0.0079524294,
0.0546786562,
0.2049161345,
0.4832217991,
-0.1773445308,
-0.248134166,
-0.0389954746,
-0.1513749063,
-0.1065134406,
-0.3698705137,
0.3537431061,
0.1205863953,
-0.0045493841,
0.2210573554,
0.0784497261,
-0.0594157726,
-0.3163437247,
-0.045601666,
0.1199061722,
0.1867600977,
-0.262372613,
-0.0185758173,
0.1218655854,
0.0860535577,
-0.0835608095,
0.1807651967,
0.091175124,
0.1913249046,
0.0461769924,
0.3455416858,
0.2677954137,
0.0530584082,
0.3559019566,
-0.6900473833,
-0.0690082535,
0.1912342757,
0.003061071,
0.0122597292,
-0.2659724951,
0.1819277108,
0.271704495,
0.0452174284,
-0.080445081,
-0.0083080977,
0.1473469734,
-0.0244391188,
0.0583700761,
-0.3646616936,
-0.0810375735,
0.2129996121,
-0.2515607774,
-0.2326060534,
-0.1890243292,
0.18087551,
0.5132708549,
0.2433170825,
0.3687904477,
0.1684177667,
-0.1199678332,
-0.1401046216,
-0.0068698442,
-0.0960154161,
-0.1688123345,
0.3742108941,
-0.0537725575,
-0.1260633171,
-0.2724705338,
-0.0922953188,
0.1780957878,
-0.0158919059,
0.2231316119,
0.048664175,
0.2492242157,
-0.0249908324,
-0.4577435851,
-0.1271144152,
-0.1574494541,
-0.1973032951,
0.0562822968,
0.0784646422,
-0.0713318139,
-0.1991606951,
-0.0669649765,
0.2833606303,
-0.3087125719,
-0.1143090129,
0.3522227407,
0.0152186509,
-0.1103115678,
0.1833132207,
0.0873239785,
0.1733572483,
0.1862345338,
0.0245580766,
-0.1337939203,
-0.5455775857,
-0.0611163341,
0.2686133385,
0.1743591726,
-0.0161512345,
0.5377415419,
-0.1781013906,
0.0367743783,
-0.2884243429,
-0.705337584,
0.1020469368,
-0.1840779781,
0.1969556957,
0.0155184641,
0.2760655582,
-0.2234157622,
-0.1541128457,
0.1546295285,
-0.1017461643,
-0.1935487241,
-0.2209585607,
0.0480771586,
0.0420999639,
-0.2291865945,
-0.2148962021,
-0.1442072242,
-0.2447484881,
0.1066019386,
0.3489590585,
0.172186926,
0.0647367015,
0.3838176429,
0.0280660763,
-0.0238699093,
0.2764135003,
-0.3571160436,
-0.0322025567,
0.3682465553,
-0.3039097488,
-0.403814584,
-0.1645275354,
-0.1827673614,
0.1699131876,
0.0591958426,
-0.3852043748,
-0.3932057619,
0.0160928313,
0.196457684,
0.2606025338,
0.0776554123,
0.1688966751,
0.1696978658,
-0.2888213992,
-0.1201303899,
-0.0905003995,
0.1087626368,
0.0804395527,
0.0327172801,
0.215632692,
0.0916362852,
0.226503402,
0.6132438779,
-0.1613395214,
-0.0281571522,
0.4119820893,
-0.0383807719,
0.2241046429,
-0.0002331547,
-0.070511505,
0.4972851574,
0.0091165006,
0.1581447721,
0.2489970773,
0.1093951911,
-0.4575265348,
-0.1425065696,
0.0741074905,
-0.4309841394,
-0.1831287146,
0.1126238108,
0.2822227776,
0.1359025836,
-0.1255719066,
-0.1118768379,
-0.1950075626,
-0.2140991688,
0.1501376182,
0.1365457773,
-0.0330668576,
-0.08544036,
-0.1478023529,
0.0440794639,
-0.2099581659,
0.1326002777,
0.3808393478,
-0.1713137925,
-0.123529762,
-0.0641895011,
-0.1482822895,
-0.2265732735,
0.245616883,
-0.3066809773,
-0.0396220051,
-0.0001856685,
-0.0057734102,
0.0171941519,
0.2211833,
-0.2088256776,
-0.3443022668,
-0.0452316925,
0.2477725744,
-0.4293946624,
0.0881707966,
0.3906086385,
0.1875753403,
-0.0982596055,
0.0725137889,
-0.1535127908,
-0.4466048181,
-0.4639799595,
0.07592801,
-0.0179232173,
0.2340523005,
0.1692748964,
-0.0461041294,
-0.0495609045,
-0.034580458,
-0.031356439,
0.3599344492,
0.023260504,
0.2451538444,
-0.1866829246,
0.0159258228,
-0.0362759121,
-0.039268136,
0.2646234334,
0.0655593872,
0.0620995611,
-0.190488562,
-0.179886356,
-0.0081321448,
0.1325875968,
0.2491253465,
-0.0325292014,
0.0099018589,
0.0323805101,
-0.3869567513,
0.2138520479,
0.1015859619,
0.1107607782,
-0.0148324519,
-0.2682085633,
0.357532233,
0.0139689445,
0.0896826386,
0.3896493316,
0.0827481821,
-0.407733053,
0.1313975751,
0.6063616276,
0.8766950369,
-0.1784273833,
0.1968856007,
0.1156533882,
-0.1227695048,
0.4901362062,
-0.0125113353,
0.0893897191,
-0.0903045684,
0.0462061949,
-0.0482572168,
0.18107678,
0.0233862493,
-0.0071795899,
-0.238396436,
-0.0591488779,
0.4950778484,
0.0509890914,
0.022318216,
0.2454407364,
-0.0180006959,
-0.3712227046,
-0.1638909429,
0.239621371,
-0.1347940862,
-0.0386185795,
0.0205545984,
-0.1282646954,
-0.056306906,
-0.240872696,
-0.2661219835,
-0.0375265367,
-0.3923749924,
0.2052640915,
-0.2520483136,
-0.2321316898,
0.0540003702,
0.192571193,
0.1538774818,
-0.0118548628,
-0.1931019574,
0.2699620426,
-0.2166959643,
-0.1297282279,
0.099448368,
-0.0778561309,
0.3134613037,
-0.1621257365,
-0.2310336828,
0.0682640821,
0.3530695736,
-0.2003536224,
-0.3784059882,
-0.1596206129,
0.2148568481,
0.3098062873,
-0.0714116096,
0.0368097983,
-0.4080921412,
-0.25505656,
0.2662608922,
-0.1720843613,
0.128096059,
0.095322758,
0.3381572068,
-0.0661716461,
0.0120413862,
0.2799663544,
0.1513241827,
0.0692157745,
0.252928853,
0.1970508248,
-0.159377709,
-0.262548238,
-0.1428263783,
-0.214379102,
-0.305133462,
-0.1352980286,
0.0671667159,
-0.2043527812,
-0.1338025481,
0.3641970754,
0.1625053585,
-0.0255597234,
0.0916182622,
-0.0791772306,
-0.0435320586,
0.3351589441,
-0.2645079792,
0.2620087862,
0.1362606734,
0.0919236764,
0.0621005148,
0.2466656864,
-0.4697705805,
0.0008082725,
-0.2768233716,
0.2204384208,
0.2841959,
-0.1862061322,
-0.0280306172,
0.1253684163,
0.3021201789,
0.0017987983,
-0.1685612798,
-0.3627262115,
-0.243143782,
0.0422773212,
0.0334105454,
-0.1346722543,
0.0254574195,
-0.0790321454,
-0.0836150944,
-0.1622534394,
0.0931931585,
-0.2240976542,
-0.2472416461,
0.2228256762,
-0.1823137552,
0.0700712055,
0.0948467255,
-0.1861074716,
-0.0950849503,
0.415605396,
0.0535982884,
-0.1083416194,
0.2208645344,
-0.1395663023,
-0.0260136295,
0.2909346223,
-0.2630016804,
0.0133083314,
0.2766338587,
0.1419245601,
-0.0343246348,
0.2441201359,
0.2616047263,
-0.2128532231,
-0.2781762481,
-0.0709295943,
0.2034054548,
0.3885401487,
-0.3480495512,
-0.0002683289,
0.3647508025,
-0.40264979,
0.4058005214,
0.3052505255,
0.1680757403,
-0.0470948294,
-0.2581309378,
0.0765388384,
-0.0169943832,
-0.4340022504,
-0.0203034598,
0.1415559053,
0.1105762869,
0.0487361215,
-0.0601711348,
0.1592474878,
0.279044807,
0.2702629566,
-0.0576714091,
0.4003248811,
0.0700722411,
0.053658843,
0.2820591927,
0.2163241655,
0.5008889437,
0.152039364,
0.0615331754,
0.3375334144,
0.0667119995,
-0.0489494465,
0.0231668763,
-0.1415087879,
-0.1176150441,
0.3134405911,
-0.0147498893,
-0.0715857595,
-0.3975220919,
-0.2155853659,
-0.0502536222,
0.0992040485,
0.0855666846,
-0.1450579464,
0.2354639769,
0.0524964333,
-0.1196645498,
-0.2443863004,
-0.0430715531,
-0.0664650649,
0.5451588035,
-0.1991380006,
0.0696594566,
0.2658622563,
-0.0356094763,
0.0963546485,
0.4021224976,
0.1985041648,
0.078916207,
-0.2381747663,
0.1088348776,
-0.0445785969,
-0.1440981627,
-0.1425257474,
-0.0305382796,
0.1477591544,
-0.2748592794,
0.349375248,
0.2631459832,
-0.3019367158,
-0.3211146891,
0.3872311413,
-0.134588033,
-0.0100661479,
-0.6193218231,
-0.002628237,
0.0443203449,
-0.1521769762,
0.1048778966,
-0.5363390446,
-0.0952257216,
-0.088542968,
-0.0321344994,
0.027719792,
-0.1648293138,
0.1338630766,
0.0752424374,
0.4413731396,
0.2891281843,
0.0606764108,
0.0619642772,
-0.227934286,
-0.5278970003,
0.1167536825,
-0.0799410194,
-0.4166086316,
-0.1129242182,
0.350566119,
0.2454899997,
0.238532424,
0.1003210098,
-0.1506654024,
0.2423654944,
0.0709741861,
-0.2875418961,
0.0808580518,
0.0561880022,
0.0541798249,
-0.0941887647,
-0.1719166785,
0.1251951903,
-0.2471843213,
0.3233295381,
-0.2411758453,
0.1120427698,
-0.1701766998,
0.0729581416,
0.0646916032,
-0.0272891168,
0.1814374477,
-0.4356129467,
-0.3198750615,
-0.0362589471,
0.011588946,
-0.1519788951,
0.1135639027,
0.1561067402,
0.5797205567,
0.0692495853,
-0.0713021159,
0.1066628024,
0.4916709065,
0.0201846883,
0.0295590721,
0.0948420018,
0.0310271904,
0.2517524362,
-0.1997820139,
-0.0788600147,
0.396351397,
-0.0907163173,
-0.1283349395,
-0.0551320538,
-0.6203970909,
0.1190894544,
-0.4396670759,
-0.1874822974,
-0.0373209491,
-0.1397859603,
0.1088621914,
0.3996540904,
-0.3055773377,
0.2087804377,
0.2238701135,
0.1930085421,
-0.2440024614,
0.3604777157,
0.1155557185,
-0.1429822445,
-0.0835570246,
-0.1805303991,
-0.0429826826,
-0.0756493732,
-0.2174598575,
-0.3298110664
] |
https://github.com/huggingface/datasets/issues/2902 | Add WIT Dataset | > @hassiahk is working on it #2810
Thank you @bhavitvyamalik! Added this issue so we could track progress 😄 . Just linked the PR as well for visibility. | ## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 28 | Add WIT Dataset
## Adding a Dataset
- **Name:** *WIT*
- **Description:** *Wikipedia-based Image Text Dataset*
- **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning
](https://arxiv.org/abs/2103.01913)*
- **Data:** *https://github.com/google-research-datasets/wit*
- **Motivation:** (excerpt from their Github README.md)
> - The largest multimodal dataset (publicly available at the time of this writing) by the number of image-text examples.
> - A massively multilingual dataset (first of its kind) with coverage for over 100+ languages.
> - A collection of diverse set of concepts and real world entities.
> - Brings forth challenging real-world test sets.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
> @hassiahk is working on it #2810
Thank you @bhavitvyamalik! Added this issue so we could track progress 😄 . Just linked the PR as well for visibility. | [
-0.080951564,
-0.2214549333,
-0.1989731789,
0.0133092906,
0.0548566207,
0.0012879595,
0.4317960739,
0.0905279517,
0.2972512543,
0.1470825076,
-0.0140025001,
0.117820859,
-0.18012923,
0.2750625312,
0.1759227812,
-0.2347300947,
0.0528858341,
-0.0525589399,
-0.1111660898,
-0.0794198662,
-0.0522571616,
0.1980129182,
-0.1938382089,
-0.247792989,
-0.3986716866,
-0.1057199314,
-0.1739890724,
-0.0169519521,
-0.1846639067,
0.0327741019,
-0.2608134151,
0.0733175352,
-0.115697667,
0.4770055711,
-0.0000964032,
-0.064580135,
0.2143843472,
-0.1423905194,
-0.05456011,
-0.1777074337,
0.0415352806,
-0.0049116053,
-0.2549007535,
-0.2813228965,
-0.1839790642,
-0.1538776159,
0.2700460255,
-0.0029816628,
0.3053424954,
0.1210971028,
0.3088105619,
-0.1474683881,
0.2071536779,
-0.0514377505,
0.1326429546,
0.1544086784,
-0.2482748032,
-0.0964364037,
0.0966394544,
-0.2267572284,
-0.2421551645,
0.6854544282,
0.1160563678,
0.0250155143,
-0.0252820104,
0.0070956014,
-0.0926499814,
-0.2954963446,
0.188639462,
0.4700401425,
0.5937218666,
-0.1630618274,
-0.1721826345,
0.0919664577,
-0.0487030074,
0.0397697836,
0.0408560932,
0.3571048677,
-0.1618404239,
0.0649589747,
-0.1783178151,
-0.1513322741,
-0.1726875752,
0.2914960086,
-0.094911024,
0.407866478,
-0.031545274,
-0.0555810742,
-0.0373772345,
-0.1777150035,
-0.2164236307,
0.0523082167,
0.2419602424,
0.0662367195,
0.0335867852,
-0.1256910563,
0.0385493636,
-0.1135112643,
0.3417509198,
-0.2774722278,
-0.0565750673,
0.1329014748,
-0.3231122792,
0.3092395961,
0.1385569572,
-0.2174253166,
-0.1450337023,
-0.1854815483,
0.1951013803,
0.0325000882,
-0.2619888783,
0.1505583078,
0.0997209847,
-0.021424178,
-0.2273958027,
-0.1607689559,
-0.0516468696,
0.0911392868,
0.1193966195,
-0.0707591921,
-0.1421587467,
-0.0661800578,
-0.3177126944,
0.2407009155,
0.1010046601,
0.0815591216,
0.0965302736,
0.2475895137,
-0.1470990181,
-0.1765170991,
-0.0881534815,
0.2248413861,
-0.1903707832,
0.1265025437,
0.1592802554,
0.511336565,
0.2537500262,
-0.0733773112,
0.1129092053,
0.0018322989,
0.0856604129,
-0.1001402289,
0.2069842368,
-0.0557914004,
0.0809680521,
-0.1524136662,
-0.0733732581,
-0.3102893233,
-0.1555390954,
0.0773522332,
-0.088991411,
0.04937765,
-0.4161144197,
0.2530648112,
0.1284849197,
-0.0809181556,
0.09084782,
0.7699180841,
0.0582490563,
-0.0342354439,
0.1798475832,
0.2833343148,
-0.3797135651,
-0.0025157779,
0.1757737547,
0.3905651271,
-0.0924205482,
-0.0642547607,
0.1328475475,
0.2665219605,
-0.0583943427,
0.2173907757,
-0.0567307584,
0.0878571272,
0.0246499032,
0.2322875559,
0.0694602281,
-0.1395290792,
-0.0435002074,
-0.1011100486,
-0.0813608617,
0.0106060058,
0.0836545378,
0.2981449068,
-0.012793798,
0.0965286046,
0.0080791134,
0.6753441095,
-0.1098163575,
0.2285999656,
-0.2737776041,
-0.4278276563,
-0.0113982279,
0.3287437558,
0.1453769654,
-0.4055054188,
0.3278428912,
0.2322439253,
0.094986558,
-0.3136897385,
0.108585678,
0.0223199986,
-0.0005048956,
0.1467116922,
0.1092846096,
-0.2964725792,
-0.0836763084,
-0.1304022521,
0.1318240166,
0.4837468565,
-0.248289451,
-0.2480279803,
0.004285574,
-0.2053585798,
-0.0621922947,
-0.2704661787,
0.3617102206,
0.1716300845,
-0.1306217909,
0.2724725604,
0.0430584401,
-0.0919281915,
-0.2533150911,
-0.0622686483,
-0.0406290852,
0.1581879854,
-0.2046280205,
-0.0177776255,
0.0472489297,
0.1987010837,
-0.2961710691,
0.0533347465,
0.1038890481,
0.1865648776,
0.0792260692,
0.3698842227,
0.3873916566,
0.1120802537,
0.2921238244,
-0.6291124225,
0.1154157445,
0.076028645,
-0.006125994,
-0.0176066831,
-0.3841995895,
0.0472672582,
0.192834124,
-0.0016579255,
0.1144333333,
0.0733930543,
0.2081532776,
-0.095678106,
-0.0049934909,
-0.36685431,
0.0016061342,
0.1734440327,
-0.1884855181,
-0.1824616939,
-0.2030259669,
0.0807694048,
0.5237084627,
0.2258418202,
0.550599277,
0.1254281998,
-0.1420795918,
-0.2888578176,
0.0549860075,
-0.294126302,
-0.1655779183,
0.3116268516,
-0.0251247771,
-0.1782428622,
-0.0482350737,
-0.0855278224,
0.1338160336,
-0.0276925527,
0.1904967725,
0.0914436728,
0.2914771438,
-0.1149810404,
-0.5630299449,
-0.0705271214,
-0.0223843679,
-0.2100637108,
0.095563665,
0.053229019,
0.0085637867,
-0.281354785,
-0.0914487839,
0.1090580076,
-0.2741342783,
-0.0460893959,
0.3448167741,
-0.0612962618,
-0.1088429093,
0.2226289213,
0.2646662593,
0.2659244239,
0.0535227805,
-0.032708101,
-0.0569327474,
-0.4480120242,
-0.0012575397,
0.2744466066,
0.309452951,
0.0774365962,
0.4492531717,
-0.1706188321,
-0.0032698773,
-0.1970396936,
-0.6828351021,
0.1931856275,
-0.179933548,
0.2222972512,
0.0465348959,
0.0597998872,
-0.216209054,
-0.1784385443,
0.1267047226,
-0.1550562829,
-0.1278321743,
-0.0514387786,
0.0643263161,
0.079196766,
-0.1711822152,
-0.2651810646,
-0.1608144641,
-0.3226845264,
0.3241013288,
0.2365680039,
0.1134488732,
-0.0567814894,
0.3845592439,
0.0518008992,
-0.0231321752,
0.278318733,
-0.3127381802,
-0.0589279719,
0.1515591741,
-0.3646038771,
-0.3476808071,
-0.2444109321,
-0.1988815218,
0.2525682449,
0.0808436796,
-0.4292117953,
-0.3522475362,
0.0311821681,
0.2061468065,
0.1419825256,
0.0842592344,
0.2448362857,
0.190408811,
-0.2793112397,
-0.1548066437,
-0.0041609406,
0.0255122464,
-0.1157208383,
0.0760342479,
0.1783278286,
0.0139506906,
0.2965380549,
0.4465199709,
-0.2176057547,
0.1476778686,
0.3842279613,
0.0036175493,
0.1714647859,
-0.2575018704,
-0.1082879454,
0.5114597082,
-0.0155885369,
0.0532227904,
0.3055921495,
0.1387230456,
-0.4937735498,
-0.104774341,
0.1593846381,
-0.5112807155,
-0.1331508011,
0.1892558187,
0.1403898299,
0.1600530148,
-0.151372239,
-0.3017926514,
-0.1755919605,
-0.1879560351,
0.1834860742,
0.2554948926,
-0.0663222671,
-0.0857872516,
-0.1768642366,
0.0369858146,
-0.1211136132,
0.0471083745,
0.3025898039,
-0.1103601754,
-0.1657051146,
-0.1256041825,
-0.069181174,
-0.1423523277,
0.2711535692,
-0.3945427239,
-0.180249691,
0.102445066,
-0.0627272725,
-0.0776358396,
0.2761699557,
-0.3302929103,
-0.2617785335,
0.0633344799,
0.3113535345,
-0.3719662726,
0.0762864202,
0.4057543576,
0.1531731933,
0.0045683905,
-0.0382464677,
-0.0839483961,
-0.2303083837,
-0.4416758716,
0.075609386,
-0.0475241728,
0.1286155581,
0.2946781516,
-0.0733427703,
-0.0314383507,
-0.0484546386,
-0.0901325792,
0.2570099235,
-0.0899744257,
0.2848594785,
-0.1690305173,
-0.1259717196,
-0.1103043705,
-0.1840959638,
0.1707032919,
-0.0802197754,
-0.0567744039,
-0.2014105618,
-0.2966365218,
0.0954906642,
0.0731393397,
0.2481430173,
0.0807808638,
-0.0638770163,
-0.016713161,
-0.3351790011,
0.1609587669,
0.2288004458,
0.2169884592,
0.0056776442,
-0.2819875777,
0.3445269465,
-0.0730210766,
0.0397839099,
0.3688853085,
-0.1323996186,
-0.4168664217,
0.3294694722,
0.3667803705,
0.9066293836,
-0.1412281394,
0.2516910732,
0.052111093,
0.0443728641,
0.3796298802,
-0.2828924954,
0.060483031,
0.0479292423,
0.056386102,
-0.0548547432,
0.192368269,
-0.01178631,
0.0325936079,
-0.2751648426,
-0.1745014936,
0.350412786,
0.1096889973,
0.0581244156,
0.3463209569,
-0.0501320325,
-0.4585263729,
-0.2810155451,
0.2333672941,
0.0736546293,
-0.1327344179,
-0.0186841786,
-0.0988534391,
0.0398560166,
-0.0720822215,
-0.3393505812,
-0.0706248432,
-0.3228843212,
0.2183895111,
-0.3081167042,
-0.3472009301,
0.1668402702,
0.2316641808,
0.2130427063,
0.1262043566,
-0.2604320049,
0.2059070617,
-0.0819386244,
-0.1436519176,
0.0000348911,
-0.093664363,
0.3640668094,
-0.1577277035,
-0.1965642571,
0.0312891528,
0.27191782,
-0.1914390028,
-0.4962574244,
-0.1763630956,
0.3231759667,
0.2469759136,
0.0594021007,
0.2734152675,
-0.4200814962,
-0.279899776,
0.2923045754,
-0.1240276992,
0.139734745,
0.0906268209,
0.2457035333,
-0.0870906562,
-0.0481113009,
0.240969792,
0.2811493576,
0.081773147,
0.2042908967,
0.3132545352,
-0.123145774,
-0.4118821025,
-0.2268983275,
0.011282742,
-0.3043801188,
-0.0997031704,
0.0750293881,
-0.3576359749,
-0.1853454113,
0.2977904677,
0.0945068076,
-0.0108859837,
-0.0280814022,
-0.1047071889,
-0.0504858308,
0.4871656299,
-0.1233901009,
0.1704571694,
0.0498322397,
0.1368634105,
0.1661448479,
0.2778990567,
-0.4913753271,
0.0999073386,
-0.1608648747,
0.1617065221,
0.114098236,
-0.2118066102,
0.0391211919,
0.1311942637,
0.2852494419,
-0.0028899154,
-0.1713039279,
-0.3745979071,
-0.1606841534,
0.0489701703,
0.0406192429,
-0.0218043663,
0.2007371336,
-0.1021693796,
-0.075192228,
-0.209364593,
0.1701404601,
-0.0332110487,
-0.2352694124,
0.1865300983,
-0.1608069241,
0.1187049299,
0.1141009331,
-0.1843492389,
-0.0202732719,
0.2034231275,
0.1748363078,
-0.1693173647,
0.2350271344,
-0.0905753747,
0.0716956556,
0.2352730632,
-0.1609389782,
0.1508628279,
0.2236831635,
0.115617305,
0.0467400774,
0.0889116377,
0.2442272305,
-0.2031770498,
-0.3575417101,
0.0098929182,
0.2128426731,
0.3950456977,
-0.378852725,
-0.1032667607,
0.1637055427,
-0.3952117562,
0.4144685268,
0.2580402195,
0.1857474446,
-0.0102851912,
-0.104149878,
0.0706409514,
-0.1911444217,
-0.3604946136,
-0.0429541506,
0.043650575,
0.0383598357,
0.0862424374,
-0.1259574741,
0.1100240797,
0.2090561688,
0.2760358155,
-0.0548094101,
0.3306505084,
-0.0164462905,
0.0951901972,
0.3387246132,
0.2413451374,
0.4937804937,
0.0987098217,
0.0264338683,
0.3570220768,
-0.0418582745,
0.2647002339,
0.1094168723,
-0.0347853526,
-0.1574991643,
0.187232554,
0.0186633226,
-0.1193161085,
-0.2749851644,
-0.1580922008,
-0.1344574094,
0.0357707962,
-0.0121381991,
-0.0608972423,
0.1425049752,
0.0659471825,
-0.1128230542,
-0.201325044,
0.061597608,
-0.0594317392,
0.4502528906,
-0.2346452773,
0.2587012053,
0.1951896399,
-0.004693795,
0.0203924812,
0.4529601336,
0.1121042222,
0.0199772231,
-0.1175722629,
0.0875310898,
-0.1143087447,
-0.0617716312,
-0.1920992583,
0.0724603981,
0.3947675824,
-0.0750952661,
0.247558549,
0.2361382246,
-0.3471648097,
-0.1523067057,
0.4345371127,
-0.1978105009,
-0.0468035005,
-0.5462716818,
0.0078051016,
0.0408356115,
-0.289258033,
0.0690492392,
-0.6371955872,
-0.0430858694,
-0.0008574314,
-0.0671568662,
0.0473665968,
-0.095145084,
0.1405508369,
0.123673439,
0.442150265,
0.3087599576,
0.1302764267,
0.0961520746,
-0.3838953674,
-0.4464388788,
0.1654718667,
-0.1000232399,
-0.0665671527,
-0.1452488899,
0.3211542368,
0.2846550047,
0.2771972418,
-0.0085252449,
-0.1527163833,
-0.0146442987,
0.1127074063,
-0.3975599706,
0.1767693311,
0.0961188674,
0.1993731856,
-0.0299790241,
-0.1019915491,
0.1034428924,
-0.0561994649,
0.2615946531,
-0.2036401033,
0.1029622704,
-0.126500085,
-0.065851599,
0.1697730422,
-0.1092777923,
0.0920384377,
-0.4555150867,
-0.311136961,
-0.1391869783,
-0.1233396977,
-0.1475510597,
0.2659367025,
0.2873287797,
0.4175907969,
-0.0261234194,
-0.106395714,
0.2146100104,
0.4109919965,
-0.0069875941,
0.0813286901,
0.0300203785,
-0.0731003433,
0.303054899,
-0.1591518372,
-0.0985057801,
0.4811173081,
-0.1448981166,
-0.2175182849,
-0.0372311249,
-0.5459349751,
0.0817109346,
-0.3308126032,
-0.2261418402,
-0.0765326247,
-0.082496345,
0.0465267077,
0.2357188016,
-0.4232020378,
0.1949175596,
0.2078906298,
0.3215321898,
-0.0627835989,
0.3240291178,
0.1668281555,
-0.1704507768,
-0.1509879827,
-0.0996924788,
0.0432734303,
-0.0744076818,
-0.1939667463,
-0.382758379
] |
https://github.com/huggingface/datasets/issues/2901 | Incompatibility with pytest | Sorry, my bad... When implementing `xpathopen`, I just considered the use case in the COUNTER dataset... I'm fixing it! | ## Describe the bug
pytest complains about xpathopen / path.open("w")
## Steps to reproduce the bug
Create a test file, `test.py`:
```python
import datasets as ds
def load_dataset():
ds.load_dataset("counter", split="train", streaming=True)
```
And launch it with pytest:
```bash
python -m pytest test.py
```
## Expected results
It should give something like:
```
collected 1 item
test.py . [100%]
======= 1 passed in 3.15s =======
```
## Actual results
```
============================================================================================================================= test session starts ==============================================================================================================================
platform linux -- Python 3.8.11, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /home/slesage/hf/datasets-preview-backend, configfile: pyproject.toml
plugins: anyio-3.3.1
collected 1 item
tests/queries/test_rows.py . [100%]Traceback (most recent call last):
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pytest/__main__.py", line 5, in <module>
raise SystemExit(pytest.console_main())
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 185, in console_main
code = main()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 162, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall
return outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main
return wrap_session(config, _main)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 304, in wrap_session
config.hook.pytest_sessionfinish(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 55, in _multicall
gen.send(outcome)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/terminal.py", line 803, in pytest_sessionfinish
outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 428, in pytest_sessionfinish
config.cache.set("cache/nodeids", sorted(self.cached_nodeids))
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 188, in set
f = path.open("w")
TypeError: xpathopen() takes 1 positional argument but 2 were given
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Linux-5.11.0-1017-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 19 | Incompatibility with pytest
## Describe the bug
pytest complains about xpathopen / path.open("w")
## Steps to reproduce the bug
Create a test file, `test.py`:
```python
import datasets as ds
def load_dataset():
ds.load_dataset("counter", split="train", streaming=True)
```
And launch it with pytest:
```bash
python -m pytest test.py
```
## Expected results
It should give something like:
```
collected 1 item
test.py . [100%]
======= 1 passed in 3.15s =======
```
## Actual results
```
============================================================================================================================= test session starts ==============================================================================================================================
platform linux -- Python 3.8.11, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /home/slesage/hf/datasets-preview-backend, configfile: pyproject.toml
plugins: anyio-3.3.1
collected 1 item
tests/queries/test_rows.py . [100%]Traceback (most recent call last):
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pytest/__main__.py", line 5, in <module>
raise SystemExit(pytest.console_main())
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 185, in console_main
code = main()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 162, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall
return outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main
return wrap_session(config, _main)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/main.py", line 304, in wrap_session
config.hook.pytest_sessionfinish(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 55, in _multicall
gen.send(outcome)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/terminal.py", line 803, in pytest_sessionfinish
outcome.get_result()
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 428, in pytest_sessionfinish
config.cache.set("cache/nodeids", sorted(self.cached_nodeids))
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/_pytest/cacheprovider.py", line 188, in set
f = path.open("w")
TypeError: xpathopen() takes 1 positional argument but 2 were given
```
## Environment info
- `datasets` version: 1.12.0
- Platform: Linux-5.11.0-1017-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Sorry, my bad... When implementing `xpathopen`, I just considered the use case in the COUNTER dataset... I'm fixing it! | [
-0.3016422987,
-0.1903874427,
-0.024149321,
0.099028796,
0.3130395114,
-0.1301406175,
0.3114985824,
0.2646483183,
-0.1026782542,
0.2515561581,
-0.0329413861,
0.3579747677,
-0.0499670953,
0.0878712386,
-0.1619877219,
0.1268498152,
-0.0505258292,
0.0685191602,
0.0408934653,
0.1136001498,
-0.5712686777,
-0.1570851356,
-0.2168756723,
0.0572490171,
0.0126788616,
0.0686676651,
0.0916296244,
0.2422820181,
-0.0774932876,
-0.4698895216,
0.1960370541,
-0.0263331365,
-0.0422578752,
0.4722328782,
-0.0001045304,
-0.0628834069,
0.4584934413,
0.2026191801,
-0.4859765768,
-0.2095859051,
-0.1490359753,
0.2063350379,
0.2531502843,
-0.2543864846,
-0.1224501058,
-0.2215160131,
0.0800603181,
-0.5224380493,
0.0328105241,
0.2298583984,
0.2646004856,
0.5858451128,
0.1764910072,
-0.1220323741,
0.3920012116,
-0.1865622997,
-0.0988034159,
0.1512852907,
0.2791417241,
0.0342655778,
-0.155218333,
0.2738157511,
-0.2516683042,
0.2581939399,
0.0830629617,
0.040314775,
0.1071799845,
0.1236743629,
0.0054617533,
0.1477264911,
-0.0244683363,
-0.2447357625,
-0.1871631145,
0.0132809877,
-0.1560320258,
-0.4709230959,
0.0660296381,
0.2990926206,
-0.1927742958,
0.0707391649,
-0.1533981711,
0.285312444,
-0.2178354114,
0.2086601257,
-0.0414644554,
0.4749422967,
0.0106467716,
0.0582296364,
0.0282522626,
0.0535727926,
0.3718392551,
-0.0290901028,
0.0258876588,
-0.2166383415,
-0.0353300758,
0.0447734594,
0.3098429143,
0.1299088448,
0.1545518637,
0.1684168875,
-0.0050129853,
-0.0647073686,
0.1099801883,
0.1257053316,
-0.0156705398,
-0.0932242125,
-0.0586432926,
0.1788802594,
0.1195266098,
0.1648671329,
-0.1360279918,
0.0084635736,
-0.0668130219,
-0.307094276,
0.0900240615,
0.1294366419,
0.5126135945,
-0.0637781322,
-0.3585410416,
-0.163783282,
-0.3168658018,
0.1315581799,
-0.0887979418,
0.1646848172,
-0.3344548643,
0.0525153913,
0.2567435503,
0.1665858626,
-0.3985976875,
0.1734840721,
-0.1729392111,
-0.0025558267,
-0.2071771622,
-0.198186785,
0.0244948044,
-0.0061058495,
0.0369945988,
0.0258495063,
-0.0169164687,
-0.0553665087,
0.172971651,
-0.0304494482,
0.0978284106,
0.0834880471,
0.1038080454,
0.0230856314,
0.0646958575,
0.2365551144,
0.0004668385,
0.4194877446,
-0.1334885061,
-0.2440329641,
0.1164920479,
0.35601753,
0.0041355938,
-0.156583637,
0.1820519865,
-0.3767897487,
-0.1220363677,
-0.0800676569,
0.0026527196,
-0.2985854745,
-0.1478590965,
-0.2639122903,
0.2254215926,
0.2425371706,
0.2605784535,
0.0505344123,
-0.0282768216,
0.1627344042,
0.3797309399,
0.1669937372,
-0.1939088553,
-0.0896540508,
-0.137957409,
0.1596085131,
-0.0486293286,
-0.4239594936,
-0.3278155923,
-0.160774827,
-0.1731502414,
-0.0750363022,
0.0496310778,
0.0323372707,
0.3179514408,
0.0479338244,
-0.031858407,
0.412953496,
-0.0740913898,
0.0748519525,
-0.4666413665,
-0.3798173368,
0.5641195774,
0.1517055929,
0.0570297614,
-0.3497413993,
0.2054485977,
0.0608400181,
0.514895618,
-0.1897210777,
-0.1518408656,
-0.2993409634,
0.7524661422,
-0.0474504717,
0.0110381022,
-0.0960697085,
0.066527307,
0.0204420164,
0.2316298783,
-0.2802454829,
-0.1499123126,
-0.089154385,
-0.1524518132,
0.1319253147,
-0.3466831148,
-0.3821575046,
0.2474721968,
0.2782581151,
-0.1456097066,
-0.130903855,
-0.0118954629,
-0.0933068767,
-0.3045151234,
0.1004940718,
0.0386144929,
0.1053286493,
-0.0396607965,
-0.0941250026,
-0.1193553656,
0.2987480164,
0.1629391015,
-0.0600544736,
-0.1179708987,
0.3312664628,
0.2449483722,
0.1955464929,
-0.0468192101,
0.0072494745,
0.0820177346,
-0.3156889975,
-0.2024821341,
0.3221008182,
0.0975408629,
-0.002581507,
0.0227514245,
0.1893988848,
-0.2354015112,
0.1002925783,
0.2986404896,
0.0012304857,
-0.0390899666,
-0.1708397567,
0.0159266591,
0.3352187872,
0.2535386384,
0.4091949761,
0.438431263,
0.0471037105,
-0.1185916588,
-0.0291305892,
0.1720730066,
0.0163349435,
0.232763648,
0.1700842679,
-0.4000134468,
-0.0777248219,
-0.084398903,
0.3033125699,
0.3952054679,
0.2755783796,
0.0969720632,
0.0887241066,
-0.1324124038,
-0.2870433331,
0.29929775,
0.1152057797,
0.0208726674,
0.241583541,
0.2297436148,
0.1021425948,
-0.2554799318,
-0.0732265264,
-0.1389923692,
0.0566168129,
-0.1460096091,
-0.0478305891,
-0.1640128791,
0.2011268139,
-0.1140681654,
-0.5005604029,
0.1816409379,
-0.200860247,
0.0143490136,
0.3810869157,
-0.2022752017,
0.1200969592,
-0.2770577669,
0.0942123085,
0.0885686502,
-0.0884962678,
0.1415921301,
-0.2295173705,
-0.1760162711,
0.1794955134,
0.0489556603,
-0.1769528538,
0.3923767209,
-0.0935230628,
-0.026575122,
-0.1780976504,
-0.1293667108,
0.0228035524,
0.2426381707,
0.0753106475,
0.1114993244,
0.0548161305,
0.1084304154,
-0.2810976505,
0.3347679377,
-0.2257569581,
-0.0527908206,
0.122259818,
0.0974361598,
-0.0859624147,
-0.1513890475,
-0.6303587556,
-0.1750361174,
-0.3355154693,
0.004438201,
-0.1078127176,
0.1289742142,
0.4354723096,
0.038797725,
0.1618680954,
-0.1536656916,
0.1216436699,
-0.0872598439,
-0.0211114138,
0.2169374228,
-0.1349029541,
-0.4010961056,
-0.1983468235,
-0.1213338226,
-0.1045443863,
0.4339271486,
-0.2609217763,
-0.2592202425,
-0.231327787,
0.0872521549,
-0.1294534057,
-0.0232154019,
0.3986385763,
0.2484316528,
-0.2569613159,
-0.2864580452,
0.0643373728,
-0.0433720946,
-0.0686284006,
0.038186729,
-0.0875442997,
0.1517155468,
0.1127801463,
0.2772788703,
-0.0392001458,
-0.038717635,
0.1129380539,
-0.2495964766,
0.1978778988,
-0.0433229096,
-0.2569164038,
0.1621053517,
-0.2219972312,
-0.3214871287,
0.0484664142,
0.2195310891,
0.1148819029,
0.0141729191,
0.0208037868,
-0.3543072939,
-0.2621159852,
-0.2463584095,
0.3780518174,
0.0837341622,
-0.0672198832,
0.1626052558,
-0.1316147298,
-0.1256522089,
0.1881817281,
0.3759931326,
0.1093445718,
-0.0119343288,
0.2482952178,
0.01234442,
-0.0862111226,
0.0998783559,
0.0090178698,
0.1281883568,
0.0566872656,
-0.1912215948,
0.0785222426,
-0.02000775,
0.1643274128,
0.3458765745,
0.3874814212,
0.3010591865,
-0.1472477466,
-0.2551454604,
0.0189633816,
-0.518209517,
-0.3018000424,
0.0700561181,
0.1623146236,
-0.275069952,
0.0511013903,
0.3745267987,
0.1937803924,
0.0627760664,
0.0518819392,
0.0086365789,
-0.4112389088,
-0.0766517818,
0.0733637139,
-0.013393227,
0.451197505,
-0.0368969478,
-0.2186554968,
-0.3560897708,
-0.333645463,
-0.0098669678,
-0.0695356876,
0.4101050496,
-0.1614900082,
0.181757763,
0.006477057,
0.3672038317,
0.3949999511,
0.2157016844,
0.1406855136,
0.1515155137,
-0.0076534236,
-0.1830338836,
0.0305455476,
0.1035784781,
-0.3520216644,
0.2259793431,
-0.3184484243,
0.2777010202,
-0.2909504771,
0.1956374049,
0.3502267599,
0.1843055785,
0.273234129,
0.0076180995,
0.1056671739,
-0.1933569461,
-0.0941650122,
0.553153038,
-0.1504651159,
-0.2331055701,
-0.1227028146,
0.142702803,
0.7989794612,
0.2282717526,
0.1575278938,
0.857852459,
-0.3794221878,
-0.1998088062,
0.3360407054,
0.1782061905,
-0.3571628928,
0.0383414179,
0.081216611,
-0.2287752628,
0.0273006558,
-0.2691111267,
-0.0185523033,
-0.1856173575,
-0.0207114369,
0.0446326397,
0.1084755659,
0.0523586124,
0.0402534083,
0.0424531661,
-0.2928383946,
0.1929398924,
-0.0179147571,
0.1270106733,
-0.0508780926,
-0.0839507952,
0.2480623126,
-0.1010971069,
-0.2043587863,
0.3419601321,
-0.5799900889,
0.1721819043,
-0.2692231238,
-0.4562353194,
-0.1075187474,
-0.0367892683,
-0.228549853,
0.1678053439,
-0.0340318382,
0.1088866517,
-0.0250189081,
0.1675111651,
0.2350718379,
0.0307643302,
0.2065544277,
-0.2243107259,
0.0097957999,
-0.1305308938,
0.0516776368,
-0.4160590768,
-0.0600329787,
0.0467678271,
0.4949307442,
-0.2594944537,
-0.2402206957,
-0.2332241535,
-0.1814633012,
-0.3135357201,
0.2200746536,
-0.0131486021,
0.1351000667,
0.1709565371,
0.0870711952,
-0.3995955288,
-0.1094915271,
-0.0123057924,
0.0119484402,
0.1383817941,
0.4005645514,
0.1243489236,
-0.3258515298,
-0.2226492018,
0.1260189861,
0.1640534103,
-0.0271101594,
0.0868694633,
-0.0412155092,
0.1951786578,
-0.1118135303,
0.0058584474,
0.2094228715,
0.0991213173,
-0.1979447901,
-0.4055494666,
-0.1660557389,
0.1417737454,
0.202881664,
0.1181827188,
-0.0264825486,
0.2930474579,
-0.0213115178,
-0.2504850924,
-0.3906232417,
0.1107911691,
0.2336135209,
0.1192180663,
-0.1454876959,
-0.2076458186,
0.3068410158,
-0.0104084387,
0.2542710304,
-0.0516874082,
-0.134772867,
-0.3061599135,
-0.3753735721,
0.0859212503,
0.0782094821,
-0.3529869616,
0.1614412516,
-0.1700134575,
0.0037518404,
-0.1876562834,
0.1137397215,
0.3402267694,
-0.2084239125,
-0.0727986246,
0.3792562485,
0.1400483698,
-0.236230731,
0.0073806886,
-0.2387419045,
0.281237781,
-0.1352637261,
-0.0331274606,
0.1245578974,
-0.0565306805,
-0.144180119,
-0.2388964295,
0.2134497166,
0.1605947316,
0.2762319446,
-0.1227830797,
-0.1152912304,
-0.1517729461,
0.5579531789,
0.1981471032,
-0.1018953919,
-0.0254690014,
0.0657822937,
0.377564013,
-0.2160443366,
-0.0246563945,
-0.1456672251,
-0.1745385081,
0.1609789729,
-0.069709979,
-0.4467021525,
0.072419703,
-0.1336331964,
0.0843943283,
-0.0011717863,
-0.1661702096,
-0.0122291557,
0.1776827872,
-0.1440190375,
-0.049987711,
0.0935865119,
-0.0745284557,
0.1813108623,
0.2331059426,
-0.0133847259,
0.6520751119,
0.5496271253,
-0.2443288863,
0.0571718588,
-0.05493173,
0.0069866558,
-0.1236410588,
-0.0362573378,
0.0326863751,
0.0409412719,
0.2288156599,
-0.2829380929,
0.1047509909,
-0.051148396,
-0.0435397252,
-0.0990095586,
-0.2635804713,
0.0496006012,
-0.004705064,
-0.0728652999,
-0.029367853,
-0.1020357907,
0.0224537794,
0.0303374045,
0.0476335883,
-0.1048741639,
-0.3494411409,
0.0213046111,
0.207913816,
0.1573516726,
-0.3372325897,
0.0876499712,
0.2187740207,
0.1431939155,
-0.1703722775,
0.4733754098,
0.3304479122,
0.4719164968,
-0.2293341756,
-0.1304813027,
-0.1675471365,
-0.0063680783,
-0.0394409448,
-0.0647637546,
0.0134154484,
0.1269379556,
0.2298046052,
0.3690746725,
-0.3680002391,
0.2118324935,
-0.0242782719,
-0.2714371681,
-0.1849634349,
0.27952528,
0.1443217099,
-0.2951875627,
0.0125997867,
-0.0279964618,
-0.2422026396,
-0.0668569952,
0.2900870442,
0.2645173371,
0.087609224,
-0.0397083946,
0.1404090971,
0.1440565884,
0.1232811064,
0.1019616425,
-0.0070682336,
-0.423419714,
0.0328576416,
-0.4711898565,
0.4904586673,
-0.1441804469,
-0.4465854466,
0.07254228,
-0.0549176,
-0.2503592372,
0.2345560491,
0.3334581256,
0.3571135402,
0.1524519324,
-0.0025295382,
-0.2554328442,
0.1322989762,
0.2028843611,
-0.1032731012,
-0.1260176897,
-0.3461899459,
0.2244306356,
-0.2395661771,
0.2582560182,
0.0934690908,
0.0410268158,
0.2902907729,
0.0138180275,
0.0178298708,
-0.0170892887,
0.3950656652,
-0.3205384016,
0.0409308374,
-0.1458015144,
-0.2275681198,
0.0252155066,
0.0532081686,
0.0172632392,
0.0858795047,
0.1734695435,
-0.598605454,
-0.4342437983,
0.4738563597,
-0.3005674481,
-0.1423756778,
0.1085445881,
0.3310375214,
0.0011339858,
0.1555802673,
-0.0374319106,
0.1749422252,
-0.1264828295,
0.0589327365,
-0.2458042353,
-0.7254011631,
0.2943548262,
-0.732760787,
-0.2969195247,
-0.2304129153,
0.4603823125,
0.0212487839,
0.2380445153,
-0.2867963314,
0.103011474,
0.2128990293,
0.0478451625,
-0.1016831994,
0.1259423196,
0.0170269758,
-0.0238352716,
0.1139788851,
0.6136496067,
0.1038717031,
-0.0976273343,
-0.0312425978,
-0.282785356
] |
https://github.com/huggingface/datasets/issues/2892 | Error when encoding a dataset with None objects with a Sequence feature | This has been fixed by https://github.com/huggingface/datasets/pull/2900
We're doing a new release 1.12 today to make the fix available :) | There is an error when encoding a dataset with None objects with a Sequence feature
To reproduce:
```python
from datasets import Dataset, Features, Value, Sequence
data = {"a": [[0], None]}
features = Features({"a": Sequence(Value("int32"))})
dataset = Dataset.from_dict(data, features=features)
```
raises
```python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-24-40add67f8751> in <module>
2 data = {"a": [[0], None]}
3 features = Features({"a": Sequence(Value("int32"))})
----> 4 dataset = Dataset.from_dict(data, features=features)
[...]
~/datasets/features.py in encode_nested_example(schema, obj)
888 if isinstance(obj, str): # don't interpret a string as a list
889 raise ValueError("Got a string but expected a list instead: '{}'".format(obj))
--> 890 return [encode_nested_example(schema.feature, o) for o in obj]
891 # Object with special encoding:
892 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
TypeError: 'NoneType' object is not iterable
```
Instead, if should run without error, as if the `features` were not passed | 19 | Error when encoding a dataset with None objects with a Sequence feature
There is an error when encoding a dataset with None objects with a Sequence feature
To reproduce:
```python
from datasets import Dataset, Features, Value, Sequence
data = {"a": [[0], None]}
features = Features({"a": Sequence(Value("int32"))})
dataset = Dataset.from_dict(data, features=features)
```
raises
```python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-24-40add67f8751> in <module>
2 data = {"a": [[0], None]}
3 features = Features({"a": Sequence(Value("int32"))})
----> 4 dataset = Dataset.from_dict(data, features=features)
[...]
~/datasets/features.py in encode_nested_example(schema, obj)
888 if isinstance(obj, str): # don't interpret a string as a list
889 raise ValueError("Got a string but expected a list instead: '{}'".format(obj))
--> 890 return [encode_nested_example(schema.feature, o) for o in obj]
891 # Object with special encoding:
892 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
TypeError: 'NoneType' object is not iterable
```
Instead, if should run without error, as if the `features` were not passed
This has been fixed by https://github.com/huggingface/datasets/pull/2900
We're doing a new release 1.12 today to make the fix available :) | [
-0.083034724,
-0.2502435744,
-0.0386256203,
0.3015390038,
0.2076892704,
0.0788370967,
0.5001557469,
0.1494155824,
0.1255292892,
0.1421062648,
0.3285634518,
0.0508399643,
-0.2967574,
0.3420608044,
-0.2623352408,
-0.2604984045,
0.0345354825,
0.2224868238,
0.0154920705,
-0.0224472433,
-0.3130666912,
0.1709362566,
-0.3648769855,
-0.2221620977,
-0.1550779343,
-0.2108082026,
-0.21602422,
-0.2960245013,
0.0542513207,
-0.5987135768,
0.281948328,
-0.0695158541,
0.0921096429,
0.238322109,
-0.0001144155,
0.1054919958,
0.6381923556,
-0.14531596,
-0.26280424,
-0.3394745588,
-0.5618312359,
-0.4227803648,
0.124165304,
-0.357847333,
-0.0965123624,
-0.0749711394,
0.0947183445,
-0.3724970222,
0.2042123377,
0.2839667201,
0.2130594403,
0.3830008507,
-0.0845514089,
-0.0744026899,
0.2068212926,
0.4162611663,
-0.2607551217,
-0.1798532307,
0.0357588865,
0.2699484825,
0.094628647,
0.349239707,
-0.111404717,
-0.1305068582,
0.2094346732,
0.0849352181,
0.088562265,
-0.4521937072,
-0.2671244442,
0.2014953494,
0.2924090028,
0.0013617745,
-0.4084640145,
-0.2180886865,
0.0188715495,
-0.6638946533,
0.2666680515,
0.0551011339,
-0.0386277586,
-0.0269637126,
-0.168392837,
0.1450014263,
-0.2138954252,
0.1660171747,
-0.1209754571,
0.0807906762,
-0.139454022,
0.0341408774,
-0.2402793765,
-0.2700187266,
0.0587494597,
-0.3706254661,
-0.025751939,
0.2111458629,
-0.2515127659,
-0.1936300844,
0.1673505306,
0.0101850536,
0.1697198749,
0.1379936635,
-0.0658706576,
-0.1037981287,
-0.0693589449,
-0.0169596784,
0.2529114783,
0.213602066,
0.4112967551,
-0.0680696815,
-0.0581747591,
0.1961245388,
0.0996619761,
-0.0175982974,
0.1192841083,
0.0517398492,
0.0169259459,
0.4072840214,
0.6467190385,
-0.0525628328,
-0.3934818506,
0.2361949086,
-0.3853595853,
-0.0304983854,
-0.0211954415,
0.0061912555,
0.0841206163,
0.2916482985,
-0.1465798169,
0.2161678821,
-0.2736035585,
-0.2508829534,
-0.2348465025,
0.0721954554,
0.1018403471,
0.0885987505,
-0.0547401048,
-0.0332996361,
0.0658170506,
0.1560103744,
0.0796799064,
0.100985311,
-0.0555228814,
-0.3658084571,
0.0925060958,
0.152372092,
-0.0070466921,
0.2921590209,
0.3762358427,
-0.2581284046,
-0.1091620922,
0.1182434112,
-0.2788110971,
-0.2175138891,
-0.0058274344,
0.1725295037,
-0.3795675635,
0.0441267379,
-0.0734037757,
0.2263461798,
0.2108575106,
-0.0775897875,
-0.0965436548,
-0.086929433,
-0.2196164429,
-0.1535142213,
-0.0919656828,
0.6465165019,
-0.1091335416,
-0.0125880614,
0.1191491112,
-0.0898963436,
0.3521230817,
0.2327206731,
0.0481475331,
-0.0572481826,
-0.340411067,
0.1900295913,
0.0831348374,
-0.1115485728,
-0.2086067796,
0.5657571554,
0.023990564,
0.3598699868,
0.1134640649,
0.0959462374,
0.158570081,
-0.3072295189,
0.0130885597,
0.1975987554,
-0.1874653995,
-0.2206796557,
-0.2418986857,
-0.1231627613,
0.5206927061,
-0.0743466169,
-0.0640908256,
0.2067833096,
-0.3010615706,
-0.0231109746,
-0.1406466961,
-0.3186880648,
0.1288141906,
0.505325675,
0.2192391008,
0.0375959277,
-0.0967496708,
-0.4028448761,
-0.3626865149,
0.1312111765,
-0.1796043217,
0.2839999199,
-0.4932684302,
-0.1799387038,
0.07352034,
0.0190412402,
-0.3947463036,
0.0015029069,
0.1547810435,
0.1214927211,
-0.153511256,
0.1999227107,
-0.0773416087,
0.2772001326,
0.1561112702,
-0.1248552576,
-0.5673226714,
0.369987309,
0.0695003942,
-0.22622554,
0.0071671382,
0.3033719659,
0.3317840993,
-0.0899982601,
0.0183187239,
0.1505863965,
0.0259707943,
-0.3309907019,
-0.3067798615,
-0.1571383774,
0.3190596104,
-0.4185929298,
-0.2214333564,
0.3747457862,
0.1825433373,
-0.1073415801,
-0.1209882498,
0.657542944,
0.0157376025,
0.4647911489,
0.0042069703,
0.176014185,
0.0537276044,
-0.0018612295,
-0.3271429837,
-0.2869088054,
0.1755581349,
0.2026409209,
-0.1650792062,
-0.0399115644,
-0.3015941083,
0.0058683529,
0.4108923078,
0.0884369612,
0.0354630798,
0.0570803136,
-0.0770580694,
-0.0368382409,
0.1092405543,
-0.1595926881,
0.2998837233,
0.0505587272,
-0.0732198805,
0.0735785812,
0.0075448491,
0.0745384693,
0.1758684218,
-0.0350372382,
0.2430824339,
0.0285673961,
0.1076483205,
0.1176978648,
-0.177972272,
-0.543848753,
-0.039858222,
0.1430887133,
-0.2491215467,
0.249281764,
-0.4795847535,
-0.2056160569,
0.1304166466,
-0.2173658311,
-0.3862959445,
-0.4440226257,
-0.1639414132,
0.0275586899,
-0.1408403069,
0.2236982286,
0.0148139969,
-0.2624563873,
0.2985751629,
-0.0243489407,
-0.083137542,
-0.1392293274,
-0.0242329724,
0.0463200323,
0.1656645536,
-0.0481025986,
0.2467773408,
0.0332956165,
-0.3499839604,
-0.2126868963,
-0.2085351646,
0.0565494373,
-0.3503637016,
0.0777076855,
0.3079497516,
0.1277273595,
-0.0494071804,
-0.1998874694,
0.4227288365,
0.424372077,
-0.2120992392,
0.3217693567,
-0.1020625532,
-0.035473682,
-0.2110653073,
-0.095902361,
-0.1572209299,
-0.2278928906,
0.1076046973,
0.2109688818,
0.210161224,
0.4471025765,
0.0470193401,
0.120879367,
0.1355807334,
-0.1756286323,
0.0008854382,
-0.015036121,
0.4824746549,
-0.1827880442,
-0.2712482214,
0.1487998813,
-0.2987255454,
0.0875614434,
0.2041171193,
-0.3575527072,
-0.1763040423,
-0.1413787007,
0.161131084,
0.0745363533,
-0.104658246,
0.3775746524,
0.2816057503,
-0.1083456129,
-0.0367694721,
-0.0508112684,
0.2569002211,
-0.0705508739,
0.0287488848,
0.2296872735,
0.5177566409,
0.0398103073,
0.097234875,
0.4376426935,
0.1970638335,
0.4261663556,
-0.0823319331,
0.0689360648,
-0.1690149754,
0.0005423203,
-0.1711452007,
0.1079395264,
-0.0178559087,
0.0836273804,
-0.2327572554,
-0.119191274,
-0.0793070942,
-0.0630712062,
0.1038520336,
-0.2357092202,
0.1293705553,
-0.4676787853,
0.4429669678,
-0.0864082053,
0.0182908326,
-0.3036097288,
-0.0047004372,
-0.1684736162,
-0.0083026253,
0.3227556944,
-0.147867322,
-0.6496185064,
-0.1722307652,
-0.2026043534,
0.1215541065,
0.3011383712,
0.5467792153,
-0.0337625146,
-0.0624159165,
-0.1075646281,
-0.0191714261,
0.4020333588,
-0.1643885225,
-0.1837624907,
0.245421201,
-0.2638015151,
-0.2387934923,
-0.0567739867,
-0.3692709208,
0.3344593644,
-0.2252191454,
0.3618202806,
-0.3405365944,
-0.2225625068,
0.2660458386,
0.0742506683,
-0.0913684443,
-0.1132183224,
-0.0910777003,
-0.2235618681,
-0.1456011236,
0.0129505321,
0.2087669075,
0.2621577978,
-0.1340862662,
-0.0023912191,
-0.5279823542,
0.0307508335,
0.3058232367,
-0.2428043634,
0.3555574715,
-0.0859425813,
0.1051604822,
-0.1363124549,
0.1940724999,
0.2076593339,
0.3552798033,
0.3771530092,
-0.6484145522,
0.0111574233,
-0.2274464518,
0.1626977473,
0.2772228122,
-0.0934666544,
0.0936513394,
0.0833646506,
0.1915251613,
-0.2102060616,
-0.3317121565,
0.4189606607,
-0.0805432498,
-0.6726536751,
-0.2872208953,
0.264912039,
0.0967708081,
0.2421813607,
-0.1336614043,
0.2232287973,
-0.2113030702,
0.3653744161,
-0.0063010938,
0.6850799918,
0.4925389886,
0.0419000797,
0.5505332947,
0.4471415579,
0.6043528914,
0.4047943354,
0.2582223117,
-0.1625066102,
-0.6721649766,
-0.1485055685,
-0.0585915446,
0.4232237637,
0.1191024929,
-0.4531505108,
0.489103049,
-0.1281990856,
-0.0638247579,
-0.0981587842,
-0.2965756655,
-0.1317240298,
-0.0439693853,
-0.2515957355,
0.1245701462,
0.0693784952,
0.1620188653,
0.0573868863,
-0.3246814907,
0.0522960052,
-0.1667524427,
-0.1947969347,
0.1696543097,
-0.1433667541,
0.0941160992,
0.036424648,
-0.3463888168,
0.2818096876,
0.2232398093,
0.1879019588,
-0.1312099397,
-0.1560934931,
-0.1969088614,
0.0400293991,
0.1034144014,
-0.0801588446,
-0.0777151436,
0.3071269989,
-0.0268943645,
-0.1485313475,
0.1475495398,
-0.2142960578,
0.1054212898,
0.3429111838,
0.059051238,
-0.1748201549,
-0.1611664742,
-0.4532508552,
0.0302398168,
0.171084255,
-0.050085105,
0.1164651364,
0.0069035506,
-0.2920265198,
-0.0495645627,
-0.1978929639,
-0.0086771101,
-0.0171597358,
0.3072856367,
0.5229854584,
0.0768127143,
0.6932665706,
0.1918628663,
-0.2426928729,
-0.1660665423,
0.1627270579,
0.1830894947,
-0.5128663182,
0.3100554049,
-0.1137080491,
0.1459200978,
-0.2419807613,
0.4570830762,
-0.2819414735,
0.2090836316,
-0.0393035412,
-0.1175030917,
-0.1571840346,
0.2325697541,
-0.1332803667,
0.1057096124,
-0.2226437181,
0.1152292639,
-0.0790471733,
-0.2166758776,
-0.2946245968,
-0.0973040164,
-0.4076426029,
0.3669988215,
0.1148904711,
0.0858328566,
0.2190837711,
0.1607997119,
0.1681338251,
0.0856593698,
-0.1367596686,
-0.1968508661,
-0.0751662478,
0.126849249,
0.1073027775,
-0.1864512861,
0.1410098672,
0.0269030482,
-0.0628484339,
-0.1389683783,
0.0139900818,
0.178492412,
-0.0842980295,
0.4305183291,
0.3046931326,
0.3934034407,
-0.1181100681,
0.1606228799,
-0.0320249349,
0.2289991975,
-0.0731262937,
0.0898114741,
-0.0715096071,
0.0787385404,
-0.4437333941,
0.1356505752,
-0.1291669905,
0.1195798442,
0.2263302207,
-0.360227704,
0.0355110094,
0.3236737549,
-0.0311145522,
0.0755376816,
-0.1983239949,
-0.0149548054,
0.0908647031,
0.1674839109,
-0.1610237211,
0.0044075064,
0.1928001344,
0.0983771011,
0.0553646088,
0.2497327626,
0.0238152444,
0.2197773606,
0.1523765624,
0.0410665199,
0.0576354638,
-0.1304041445,
0.4767722189,
0.2502487004,
0.1060067713,
-0.0059617702,
-0.0451645814,
-0.1361156851,
0.2374778688,
0.4095087051,
-0.0225145146,
0.1133538261,
0.4354733527,
-0.0183567889,
-0.0299487375,
-0.2667696476,
-0.1832301617,
0.0874817222,
0.3381928205,
0.202853173,
0.1870117188,
-0.3521424234,
-0.325812757,
-0.2701641023,
-0.0695832148,
0.3099344671,
-0.0583299734,
-0.0029456131,
0.03566733,
0.0114390552,
-0.3740220666,
-0.241598621,
-0.0964922607,
-0.1092924923,
0.2701233625,
0.2186553329,
0.1762787849,
-0.3771929741,
0.274759829,
0.2808688581,
0.2680348754,
-0.1144815981,
0.2841907442,
0.3918451071,
0.0941932499,
0.193238318,
0.5161975026,
0.3695504069,
0.2945845425,
-0.0201034769,
0.1129489914,
-0.0390785038,
-0.3450120687,
0.0877991915,
-0.0598453768,
-0.2485658675,
0.2879633605,
0.1558264196,
0.1228243411,
-0.1254131943,
0.3168383539,
0.0544719584,
-0.1103279889,
-0.2857101262,
0.7374000549,
-0.2703438699,
0.0276813358,
-0.0651039481,
-0.252120465,
-0.4581921101,
-0.0652409792,
0.3814007044,
0.1698072702,
0.1495150924,
0.2177316844,
0.0697703958,
-0.4082433879,
0.3309636116,
0.3403661847,
0.0769058764,
-0.265132159,
0.0617088526,
-0.275061667,
0.1116446331,
-0.1015283614,
-0.069122754,
0.2495634258,
0.1278142035,
-0.1932552755,
0.114860259,
-0.2204784751,
-0.1393817663,
-0.1043238491,
0.2524556518,
-0.3717961609,
-0.1946514696,
0.2883965671,
-0.08923807,
-0.1251150817,
-0.2652549744,
0.0353321731,
0.0039456375,
0.0739234537,
0.0550831854,
-0.0448911339,
-0.322753191,
-0.0278718043,
0.0572514534,
0.6041784883,
0.1074121296,
-0.0593111552,
-0.392254293,
-0.2225102484,
-0.2722545564,
-0.1133320332,
0.5871053934,
0.2825134099,
0.6090584397,
-0.137103796,
0.2531859279,
-0.0552066974,
0.3776592016,
-0.060990613,
0.0438414067,
-0.424490571,
0.5184668303,
-0.3719533086,
0.1762697697,
0.0068771802,
0.1811162531,
0.1390515864,
0.1774706393,
-0.0504959896,
-0.2920153439,
0.3989829421,
-0.3084869683,
-0.3456189632,
0.201938659,
-0.0813746974,
0.1927641034,
-0.0473877899,
-0.3078511357,
-0.1343804002,
0.4044966698,
-0.1600381434,
-0.2725832462,
0.0046120472,
0.1497469991,
-0.0676550791,
-0.1205622032,
0.1607692391,
-0.0707522929,
-0.2598538399,
0.3602845073,
-0.310298115
] |
https://github.com/huggingface/datasets/issues/2888 | v1.11.1 release date | @albertvillanova i think this issue is still valid and should not be closed till `>1.11.0` is published :) | Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago.
When do you plan to publush v1.11.1 release? | 18 | v1.11.1 release date
Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago.
When do you plan to publush v1.11.1 release?
@albertvillanova i think this issue is still valid and should not be closed till `>1.11.0` is published :) | [
-0.2534321547,
-0.1435916722,
-0.1170086563,
0.1250974536,
-0.0803615749,
-0.206943363,
0.3182257712,
0.2595033646,
-0.2662115097,
0.2432929873,
0.4498228729,
-0.07759884,
-0.0092685781,
0.3775970638,
-0.3972173631,
-0.0890163332,
0.0787208527,
0.1089020073,
-0.052683033,
0.0449186862,
-0.2720680237,
0.0686574355,
-0.3964476883,
0.1608795077,
0.0663990825,
-0.0716042966,
-0.1215934083,
-0.2543472648,
-0.667160809,
-0.5313287377,
0.3133551776,
0.2034500837,
0.0760270432,
0.2712755799,
-0.0001110468,
-0.4238657057,
0.5205679536,
0.1486696005,
-0.2614663839,
-0.1513034254,
-0.4164438248,
-0.5353800058,
-0.1008593515,
-0.0137666166,
-0.3072519898,
-0.1077146083,
0.0117484275,
-0.1943196058,
-0.0628163069,
-0.0156023502,
0.2480116785,
0.1673393399,
0.4019794464,
-0.3542859256,
0.1863051951,
-0.1159244776,
-0.3703643084,
-0.2499653697,
0.5717850327,
0.2568039298,
0.2268875986,
0.3849834204,
0.1912631094,
-0.1922256649,
0.1507630646,
-0.0097723436,
0.2396770567,
-0.2660329044,
0.0415395163,
0.0777785927,
0.9955615401,
0.0203633364,
-0.3793467581,
0.2034738213,
-0.0927332789,
-0.2712351382,
0.2412475348,
0.0272826552,
-0.0292446576,
0.1492429823,
0.0873355567,
-0.458419323,
-0.1516827345,
0.1602149606,
-0.0272044465,
0.4591050148,
-0.0887170658,
0.1067650169,
-0.0215258263,
-0.3015368581,
0.2346978635,
0.0200972669,
0.0850307494,
0.156445384,
0.0514525063,
-0.4402128458,
0.1060788929,
-0.0172465816,
0.1498130858,
0.1924145073,
-0.2606179714,
-0.2491659224,
-0.0464441702,
0.0133374557,
0.6594328284,
0.0745628029,
0.3405663669,
0.1880095899,
0.432944417,
0.2551416755,
0.0644606128,
0.0997428671,
0.0618427843,
-0.0808661878,
-0.1455138326,
0.2052434683,
0.4584417343,
-0.5718427896,
0.3661364019,
0.1454992145,
0.0115311071,
-0.0739973858,
-0.3209313452,
-0.150846839,
-0.0373872519,
0.3257051706,
0.0893601403,
-0.1983120888,
0.1348609328,
-0.1805580556,
-0.1951921582,
-0.1088339388,
-0.2009811103,
-0.0183628015,
-0.0315612629,
-0.3116752803,
-0.2775351405,
0.1134498566,
-0.1254056394,
-0.0434128717,
0.0564596578,
0.1302085519,
-0.2246667296,
0.4118486345,
-0.246632129,
0.0828441232,
-0.3096275032,
0.2402787805,
-0.0819455236,
0.3500743806,
-0.0424563549,
-0.1780536473,
-0.3391314447,
0.2919041216,
-0.1666525602,
-0.0776966959,
0.2701284885,
0.1953231096,
-0.203018859,
-0.2382989079,
-0.0494298637,
0.1722418517,
-0.2394902855,
-0.2569317818,
-0.0695380718,
0.0432327725,
-0.1193420067,
0.1540279537,
-0.2632967234,
-0.2000603229,
0.11972785,
0.0051402524,
-0.1842307746,
-0.3186811507,
0.1262589842,
-0.2455534637,
0.3016964495,
-0.343300581,
-0.6395595074,
0.3815336525,
-0.284142524,
-0.3894362748,
0.4114665985,
0.1741335243,
0.2954377532,
-0.3212957382,
-0.1409742385,
-0.0816184431,
-0.1616332978,
-0.3559685946,
-0.4418997169,
-0.4019604921,
0.0429005846,
0.0181116015,
0.2204885334,
0.1503368616,
0.0952751189,
0.4235880375,
0.074982658,
0.2797824442,
0.2078802288,
0.0765661597,
0.4828038216,
-0.1286070049,
0.0529901385,
-0.1006551087,
-0.2767001987,
0.0938938782,
-0.1435723752,
0.15911825,
0.4384334981,
-0.3189629316,
-0.2085862607,
-0.0561053529,
0.3260711432,
-0.070952557,
0.0817816854,
0.091573298,
-0.2478199899,
0.1673499346,
-0.4060977995,
0.1368638724,
-0.0098661408,
-0.0706637502,
-0.0884416103,
0.0452465564,
-0.2908728421,
0.0994253606,
0.1788440347,
0.0838300064,
0.1694515049,
-0.2390571982,
0.1745637357,
-0.0815129429,
-0.0723999143,
0.3089862764,
0.3561561406,
0.1862891465,
0.2350972593,
0.2040315419,
0.0746111348,
0.1710560024,
-0.0586111471,
0.2303553373,
-0.2253147066,
0.3460874557,
0.3549922109,
-0.2632009387,
-0.0564746223,
0.1447252035,
0.1307964027,
-0.2599106431,
-0.0981652811,
-0.2556483448,
0.0817662179,
-0.2211178392,
-0.2914198637,
0.2252822965,
-0.2763940096,
0.2965316176,
0.5968987346,
0.0184192806,
-0.0478302017,
0.0809679627,
0.2573699057,
-0.0809907615,
0.1679660976,
-0.0462062582,
0.088492468,
0.2539901733,
-0.0210185945,
0.0049677007,
0.1221920401,
0.0425284319,
0.1027603894,
0.0455322228,
-0.4042111635,
-0.0299373604,
0.0530674793,
0.0633867681,
0.1152783483,
0.1767402887,
0.1918158829,
0.2266005129,
0.0650809705,
-0.3978861868,
-0.2835032344,
-0.0675675869,
0.0291237906,
-0.0194903594,
0.0619625635,
0.0534456596,
0.1382157654,
0.146872744,
0.0316265002,
0.1826280355,
-0.1548497081,
0.7969361544,
-0.388908416,
0.4114346206,
-0.1566393673,
-0.1199047491,
-0.3110973835,
0.2345053852,
-0.0124806687,
-0.2776047289,
0.2567167878,
0.0537330881,
0.2090212554,
-0.6258597374,
-0.4577411413,
0.0528514236,
-0.1441260427,
0.0452976376,
0.034303695,
-0.2054462433,
-0.1070224047,
0.2207037508,
0.0384895764,
-0.0587676838,
-0.2087224722,
-0.1666584164,
-0.0068193786,
0.0721506327,
-0.2570262253,
-0.6848427653,
-0.1318626702,
-0.3363643289,
-0.0185508057,
-0.1078772098,
0.1569405496,
-0.1232447773,
-0.0514249764,
-0.1049095839,
0.0217199475,
-0.3342834115,
-0.0948760062,
-0.0487307571,
0.0945050642,
-0.0082828328,
-0.4569732547,
0.1993881911,
0.1774876267,
-0.2025113404,
0.1531126499,
-0.5314668417,
-0.2725239694,
0.2065206021,
-0.0438622646,
0.1573559642,
-0.1776328385,
0.5536838174,
-0.1086382046,
-0.2538419366,
-0.1345506907,
-0.2866040766,
0.0720610917,
0.171246022,
0.3246346712,
0.40918082,
0.2624561191,
0.0242746547,
0.3892101347,
0.1903089434,
0.0267373621,
0.2341601998,
0.1795133501,
0.192406401,
-0.0937660038,
-0.2098539621,
0.0676553249,
0.126013115,
0.1618109047,
0.1551783234,
0.2125054747,
-0.0854247212,
-0.3764596283,
-0.0002549961,
-0.0050692409,
0.1066496223,
-0.2045839429,
0.19392021,
0.6248509884,
0.155980736,
-0.0690405369,
-0.1899854392,
-0.0502804592,
-0.1242641062,
0.2394969165,
0.2186527103,
-0.0803114474,
0.0049763843,
0.3057093322,
-0.2312407047,
0.3685390949,
-0.0162633993,
0.3051941991,
-0.1745794117,
0.1836996973,
0.1675744653,
-0.0165349301,
-0.0022481121,
-0.4258728623,
0.2501204014,
0.5538980961,
-0.2577003837,
0.1758042574,
0.0319326371,
-0.1597498953,
-0.1175886244,
-0.1852881312,
0.5539383888,
-0.0616520867,
-0.3503076136,
0.5332701206,
0.0958011523,
-0.1159934327,
0.0116964988,
-0.1489772648,
-0.0391740873,
0.036184743,
-0.0692066625,
-0.1455719471,
0.0450962447,
0.0707549006,
-0.2735245228,
-0.2130564004,
-0.2302903682,
-0.0789409578,
-0.1162238196,
0.2302824855,
-0.0054953285,
0.2637896538,
0.1018653065,
-0.0069388077,
0.2944149077,
0.3105015755,
0.1103014797,
-0.2645043135,
0.1126392782,
-0.0766574293,
0.1321160793,
0.3621135056,
-0.144061327,
0.1353560686,
-0.0324912891,
0.0674982816,
-0.0920339748,
-0.2673430145,
0.4327608943,
-0.1655804962,
-0.2975935638,
-0.0365021527,
0.2060317099,
0.1686381996,
-0.3554572165,
0.5559963584,
0.2967344224,
0.0080542564,
-0.023656426,
-0.2770446539,
1.0293961763,
-0.0287327841,
-0.0709770843,
-0.2229949385,
-0.2106603086,
0.3116075993,
0.1518329978,
0.1275593787,
-0.1479124129,
-0.1200415492,
-0.1563587934,
0.0255763158,
0.3566545844,
0.0137888808,
-0.4522591233,
0.1800193787,
-0.1066874117,
0.3458712697,
0.1815044582,
0.4181371331,
0.2039347738,
0.2149990946,
-0.1357865334,
0.181218192,
0.0415112302,
0.344406575,
-0.1115805954,
-0.1123418435,
0.0506093055,
-0.1684787869,
-0.3772751987,
-0.1627555788,
0.0946234763,
0.128495723,
-0.0418814868,
-0.3295048475,
0.1501636058,
-0.2067041993,
0.2394613624,
0.0587116629,
-0.1543530822,
0.1066334248,
-0.1002987176,
-0.2956924438,
0.0422356613,
0.2025134563,
0.2493475229,
-0.3657997251,
-0.1296643913,
0.2075188458,
-0.0665958822,
-0.1957612336,
-0.3805609345,
0.0144145582,
0.1904997528,
-0.085849613,
0.0902346522,
0.0793108791,
0.0000393912,
-0.2687569261,
0.216641888,
0.2363907695,
0.1730726361,
-0.0704720616,
0.0909127966,
-0.0943971127,
-0.0462282822,
0.331574887,
0.4488438964,
-0.0869516805,
-0.0577267334,
-0.1046480611,
-0.0253154784,
-0.2967375517,
0.1651072502,
0.148371011,
-0.1926547736,
0.3166780174,
0.0451813824,
-0.1771447659,
0.0966311544,
0.8037606478,
0.1132905409,
-0.0867023543,
-0.3089387417,
-0.226914227,
-0.201273337,
0.4007468522,
-0.3507453799,
-0.0632592291,
-0.1728218347,
0.0035142601,
0.1783650219,
-0.2588582039,
-0.3582353592,
0.1094940379,
-0.0229327977,
-0.1558409631,
0.3805618286,
-0.1397654116,
-0.1268882751,
-0.1695241332,
0.0683611035,
-0.1914257854,
-0.4219688475,
-0.182589978,
-0.0068810061,
0.1795588136,
-0.0994987264,
0.1105904058,
-0.2188424766,
-0.33317101,
-0.3294795454,
0.5655472279,
-0.0574625283,
0.2105581164,
0.2658178508,
-0.0013694242,
-0.1911033392,
0.0832068473,
-0.0473588072,
0.1444200724,
0.2916862965,
0.0616741739,
0.0525817052,
0.219250977,
0.3352406323,
-0.0512459427,
-0.3188316822,
-0.0857314318,
0.0283790827,
0.1082439125,
0.2533845901,
0.0845070481,
0.0778550953,
0.3177064061,
0.2613410056,
0.1477470398,
0.0235875621,
-0.1045157611,
0.1499727666,
0.2290465832,
-0.4348062575,
-0.2144449651,
-0.1024439782,
0.1954157948,
-0.3519692421,
-0.0586643815,
0.4161959291,
0.374510169,
0.3306235671,
0.2353342474,
0.3252156675,
-0.2875548601,
0.1753371507,
0.2986513078,
0.2821615934,
0.0819242001,
0.2702080905,
0.3563082218,
0.1198410988,
-0.1174160838,
0.1162220836,
0.2579933703,
0.6770774722,
0.4611136913,
0.2945822179,
-0.167414695,
0.1528616101,
0.1450760961,
0.024856817,
-0.0097035076,
-0.028064128,
0.2341251373,
-0.2223805785,
0.0008826815,
-0.2526206374,
-0.1989823878,
-0.1395764053,
-0.2066178322,
0.0804792866,
-0.2013022602,
-0.1639318764,
-0.0490339287,
-0.0818430334,
0.3881368041,
0.4651462734,
-0.1723365486,
0.0645909384,
-0.101997219,
-0.1264231205,
0.1757826954,
0.2655945718,
-0.1845963895,
0.3018837869,
-0.4171668291,
0.1055941731,
0.204600215,
0.5415050387,
0.066887632,
-0.0055140322,
-0.0966516137,
-0.0346168131,
-0.2049902678,
-0.096451968,
0.1199663132,
0.4839954972,
0.2810302079,
0.3264017999,
0.0233848132,
0.0755378157,
-0.1421592534,
0.4168713689,
-0.1079074964,
-0.1283363253,
-0.6276836395,
0.217490837,
-0.1051722765,
-0.1579534858,
-0.0612815246,
0.126012221,
-0.0126636922,
-0.3415769935,
0.2715969384,
0.2166881561,
-0.0643058121,
-0.2486471087,
0.1112186909,
-0.2308492064,
0.0420172811,
0.0135726128,
-0.0086574834,
-0.0197401755,
-0.309686482,
-0.4489582181,
0.3907983303,
0.1115974933,
-0.2408151329,
0.1052803397,
0.2133009136,
0.0889783874,
0.3081979156,
0.0924185887,
-0.1790392846,
-0.3171943426,
-0.144687593,
-0.4022742212,
0.1941872835,
0.3912085593,
0.0847941861,
-0.0422422849,
-0.2774841189,
0.2742190957,
-0.2932405472,
0.0322428271,
0.104475677,
-0.3337162137,
0.3860048652,
0.1406668276,
0.5287460089,
0.0321316272,
0.1304540932,
0.233035028,
-0.1344193816,
-0.4677241147,
-0.1328877509,
-0.0336714387,
-0.1085674465,
0.0418229029,
0.0438948572,
-0.2677304447,
0.1162143648,
-0.1990456134,
0.0510432459,
-0.3705940247,
0.4114429355,
0.066254802,
0.109508127,
0.0662498102,
-0.2569505572,
0.2648652792,
0.0552678183,
-0.1163001657,
-0.259881109,
-0.4447281659,
-0.3196742535,
0.2948859334,
0.0099986456,
-0.1469421685,
-0.118685931,
0.0751412585,
0.2601591349,
-0.2630874813,
-0.4047783315,
-0.1358787417,
0.3026438057,
0.2290501595,
-0.1205537319,
0.003720399,
0.0116369985,
-0.1853570938,
0.0748224109,
0.3017756939,
-0.1473493129,
-0.110548988,
-0.1910789609,
0.0743447915
] |
https://github.com/huggingface/datasets/issues/2885 | Adding an Elastic Search index to a Dataset | Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ?
Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env | ## Describe the bug
When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break:
Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453)
90%|████████████████████████████████████████████▉ | 9501/10570 [00:01<00:00, 6335.61docs/s]
No error is thrown, but the indexing breaks ~90%.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
from elasticsearch import Elasticsearch
es = Elasticsearch()
squad = load_dataset('squad', split='validation')
index_name = "corpus"
es_config = {
"settings": {
"number_of_shards": 1,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {
"properties": {
"idx" : {"type" : "keyword"},
"title" : {"type" : "keyword"},
"text": {
"type": "text",
"analyzer": "standard",
"similarity": "BM25"
},
}
},
}
class IndexBuilder:
"""
Elastic search indexing of a corpus
"""
def __init__(
self,
*args,
#corpus : None,
dataset : squad,
index_name = str,
query = str,
config = dict,
**kwargs,
):
#instantiate HuggingFace dataset
self.dataset = dataset
#instantiate ElasticSearch config
self.config = config
self.es = Elasticsearch()
self.index_name = index_name
self.query = query
def elastic_index(self):
print(self.es.info)
self.es.indices.delete(index=self.index_name, ignore=[400, 404])
search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config)
return search_index
def exact_match_method(self, index):
scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1)
return scores, retrieved_examples
if __name__ == "__main__":
print(type(squad))
Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config)
search_index = Index.elastic_index()
scores, examples = Index.exact_match_method(search_index)
print(scores, examples)
for name in squad.column_names:
print(type(squad[name]))
```
## Environment info
We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment.
Poetry:
- Python version: 3.8
- PyArrow: 4.0.1
- Elasticsearch: 7.13.4
- datasets: 1.10.2
Local:
- Python version: 3.8
- PyArrow: 3.0.0
- Elasticsearch: 7.7.1
- datasets: 1.7.0
| 44 | Adding an Elastic Search index to a Dataset
## Describe the bug
When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break:
Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453)
90%|████████████████████████████████████████████▉ | 9501/10570 [00:01<00:00, 6335.61docs/s]
No error is thrown, but the indexing breaks ~90%.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
from datasets import load_dataset
from elasticsearch import Elasticsearch
es = Elasticsearch()
squad = load_dataset('squad', split='validation')
index_name = "corpus"
es_config = {
"settings": {
"number_of_shards": 1,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {
"properties": {
"idx" : {"type" : "keyword"},
"title" : {"type" : "keyword"},
"text": {
"type": "text",
"analyzer": "standard",
"similarity": "BM25"
},
}
},
}
class IndexBuilder:
"""
Elastic search indexing of a corpus
"""
def __init__(
self,
*args,
#corpus : None,
dataset : squad,
index_name = str,
query = str,
config = dict,
**kwargs,
):
#instantiate HuggingFace dataset
self.dataset = dataset
#instantiate ElasticSearch config
self.config = config
self.es = Elasticsearch()
self.index_name = index_name
self.query = query
def elastic_index(self):
print(self.es.info)
self.es.indices.delete(index=self.index_name, ignore=[400, 404])
search_index = self.dataset.add_elasticsearch_index(column='context', host='localhost', port='9200', es_index_name=self.index_name, es_index_config=self.config)
return search_index
def exact_match_method(self, index):
scores, retrieved_examples = index.get_nearest_examples('context', query=self.query, k=1)
return scores, retrieved_examples
if __name__ == "__main__":
print(type(squad))
Index = IndexBuilder(dataset=squad, index_name='corpus_index', query='Where was Chopin born?', config=es_config)
search_index = Index.elastic_index()
scores, examples = Index.exact_match_method(search_index)
print(scores, examples)
for name in squad.column_names:
print(type(squad[name]))
```
## Environment info
We run the code in Poetry. This might be the issue, since the script runs successfully in our local environment.
Poetry:
- Python version: 3.8
- PyArrow: 4.0.1
- Elasticsearch: 7.13.4
- datasets: 1.10.2
Local:
- Python version: 3.8
- PyArrow: 3.0.0
- Elasticsearch: 7.7.1
- datasets: 1.7.0
Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ?
Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env | [
-0.1423354894,
0.1727275848,
-0.004471384,
0.0400959104,
0.0997369736,
0.0273679495,
-0.0132044498,
0.0684222579,
0.0138257146,
0.0531153865,
-0.0395592563,
0.3000072241,
0.3499436677,
-0.3781625926,
-0.104925856,
0.1306152791,
0.090972811,
0.0941494107,
0.2756744623,
0.1979279667,
-0.0359145775,
0.0959082916,
-0.1247542575,
-0.0892916471,
-0.3346315026,
0.0212133061,
-0.0316707343,
-0.1235373616,
-0.0287177917,
-0.4167428911,
0.3019477427,
-0.150185436,
-0.1225856692,
0.3576344252,
-0.0001185079,
0.0780739486,
0.4348546267,
-0.0329714045,
-0.0183224753,
-0.2907197475,
-0.0723801702,
-0.1354441345,
0.2791986167,
-0.1591312587,
-0.0953470394,
0.1617635489,
0.098748751,
-0.6114605665,
0.4415228665,
0.3961338401,
0.2210111618,
0.3180064559,
0.3437500298,
-0.1243833452,
0.4198286831,
-0.1281123161,
-0.0489516072,
-0.256423682,
0.2530342042,
-0.0388998874,
-0.0290675648,
0.145228982,
-0.0944894552,
-0.2707443535,
0.1085039303,
0.14813447,
-0.4625431299,
-0.2957314253,
0.3149895668,
0.1134227216,
0.1910259426,
-0.0712337941,
-0.2519366741,
0.045184277,
-0.0008994341,
0.1622105241,
0.1994203925,
0.1894566566,
0.0606100522,
0.1190421209,
0.0653901398,
-0.1248973459,
-0.2391613424,
0.4135324359,
-0.0537094846,
0.1734438986,
-0.0975416899,
0.1064754128,
0.1365945041,
-0.1460799277,
0.0782292187,
0.2522954643,
-0.2729326785,
-0.055515863,
-0.3764426112,
0.1024472862,
-0.1168944612,
-0.2002717704,
0.4185051918,
-0.0634525865,
-0.0926842541,
0.1597322971,
0.651411593,
0.0823701993,
0.2860307097,
-0.0631041154,
0.0613813661,
0.3085790873,
0.0735873729,
-0.3172646463,
-0.3174723387,
-0.2593562603,
0.2854792476,
-0.2149692923,
0.4180775881,
-0.4818148315,
0.2134567946,
-0.0300273821,
-0.1590661108,
0.2193003595,
-0.5879530907,
-0.006157741,
-0.075349912,
0.1353487968,
0.1364614516,
-0.4953053892,
0.0383687615,
0.2725164592,
-0.2289303094,
0.1452211142,
-0.2356662452,
-0.2659832239,
0.0408692509,
0.0179615431,
0.1160363257,
-0.6583971977,
0.2295722067,
0.0021880232,
0.084259823,
-0.3945711851,
0.2630118728,
-0.082899943,
0.1773642004,
0.21885553,
0.0615347028,
0.0234888867,
0.0232268479,
-0.4385561943,
-0.0351552814,
-0.1221937463,
-0.3814528883,
-0.2521404326,
-0.2764836848,
0.2102274001,
-0.1385772824,
0.0171780363,
0.135752067,
0.2181544155,
0.1103123873,
-0.0082744658,
0.077575691,
-0.0403551981,
-0.289768517,
0.0814165473,
0.2997895479,
0.2074806988,
0.116084829,
-0.1290069073,
0.0345479511,
0.4276869297,
-0.2609294355,
0.2141186595,
-0.2313276678,
0.0364291519,
-0.173141107,
0.417922318,
0.3350299299,
-0.4630020261,
-0.6134619713,
0.1387205273,
-0.2306157798,
-0.0950086862,
-0.2723559141,
0.0607843585,
0.6483933926,
0.0107717328,
0.1798676252,
0.2476817667,
-0.1762580127,
-0.1678982377,
-0.1523008347,
-0.0007273555,
-0.1430877,
-0.1772021651,
0.0628993511,
0.0903356597,
0.2576123476,
0.2004104108,
-0.0055738837,
0.1895457208,
0.0115429983,
0.3066952825,
0.3564861715,
0.1077486724,
0.2526798546,
-0.1288018227,
-0.2565322518,
0.2232704014,
0.0895298272,
0.0836864486,
-0.182776317,
-0.1198632568,
-0.137904793,
0.0071618333,
-0.156992197,
0.0309963152,
0.1074970216,
-0.2377430797,
-0.2198880017,
0.192254141,
0.0002295226,
-0.1667473167,
0.0728108659,
0.2382161915,
-0.2376388758,
0.3120533526,
-0.0830119401,
-0.0867528617,
-0.1883606911,
-0.0127895921,
0.2368166,
-0.206038624,
-0.1446202844,
0.3325415552,
-0.0994064361,
0.3171952963,
0.1542845219,
0.0251945928,
0.1261184663,
-0.6889181137,
-0.1038775593,
0.1420570314,
0.0571958013,
-0.276191175,
-0.0003127493,
0.0152493156,
0.0072255759,
0.3724023104,
-0.2171026319,
0.0868739411,
-0.007397756,
-0.1734817326,
-0.4597904682,
-0.0337327495,
-0.0198459253,
-0.3641360402,
-0.0424910858,
-0.1129409745,
-0.1182910353,
0.0319061913,
0.0161154009,
0.154251799,
0.1046618223,
0.3709858954,
0.0202299766,
-0.1001923829,
-0.3800415993,
-0.0208592936,
0.2398630381,
0.1784041226,
0.1413086802,
-0.0003947094,
0.0159997605,
-0.0571262054,
0.3174200952,
0.3449326754,
0.0851908922,
0.3284896314,
0.4267830849,
0.0807353705,
-0.2349992096,
-0.055623848,
-0.2187711746,
-0.0349606164,
-0.2483057082,
0.4837775826,
-0.0381796435,
0.1216891706,
-0.1421810836,
0.0366984122,
-0.2608761489,
-0.4408208132,
-0.1000708789,
0.191887632,
-0.0298060961,
0.0101966076,
-0.3896364272,
-0.0280156136,
0.2536531985,
-0.2719683051,
0.1400228292,
-0.1382578462,
-0.1423628479,
-0.034251105,
0.1852952987,
0.0559355989,
0.2390913963,
0.2277610004,
-0.1308040917,
-0.3857410848,
-0.4401707947,
0.135384962,
0.0270664394,
0.3381629884,
0.1061838418,
-0.2070371956,
-0.4189090431,
-0.1392356008,
0.239174217,
-0.1569138914,
0.0960529745,
0.0989903659,
0.0812270194,
0.1654561907,
0.2521837354,
-0.2988061905,
-0.1856295764,
-0.1773059666,
0.0319295339,
-0.1300621331,
-0.0701900795,
0.3265487552,
-0.0100668184,
0.1334315091,
-0.117994003,
-0.0943660885,
-0.1205612049,
-0.1552781016,
0.0512905866,
-0.1617364883,
-0.31464836,
0.1664025187,
-0.03586597,
-0.2476518154,
0.2399178147,
-0.3951132894,
0.2129149139,
0.1262053698,
-0.2579470277,
-0.309286356,
0.0559350997,
0.0856450871,
-0.2632974982,
-0.0152956173,
-0.0331743285,
0.0292059854,
0.175463587,
0.2231554687,
0.0925874412,
-0.09783943,
0.236107856,
-0.0709360465,
0.6817721128,
0.1603986323,
-0.0134617537,
0.1587851197,
-0.1708621532,
0.3219514489,
-0.2369929105,
-0.5023804903,
-0.1412397325,
-0.1059441268,
-0.1054210216,
-0.0283704028,
0.1095745414,
-0.2827528119,
-0.115599826,
-0.2426896393,
-0.0605003871,
-0.546048522,
0.189392969,
0.1710995734,
0.0693425536,
0.0568657666,
0.1564290673,
0.1233406812,
-0.4360742569,
-0.4252508283,
-0.1272196174,
-0.1278417408,
0.0157796927,
-0.2675441802,
0.1987192929,
-0.6068627834,
0.1646701396,
-0.0542108044,
0.5287724733,
0.0551701933,
0.0009337515,
0.1420911998,
0.168677792,
0.7477440834,
-0.2251747102,
-0.118597351,
-0.0158348568,
0.054792881,
-0.5928249955,
0.0987463817,
-0.147644043,
0.6286974549,
0.2092178911,
0.3737727106,
0.0288935602,
0.1745185256,
0.0755366683,
-0.1005470306,
0.0790705234,
-0.0778413266,
-0.2256829143,
-0.220026806,
0.3044427037,
0.2742736638,
0.3445191979,
0.0810016543,
0.3223794401,
-0.2284778357,
-0.2969670296,
-0.0309455879,
0.0437187143,
-0.2290928811,
0.2575105727,
-0.0781475678,
0.2960501313,
0.4340249896,
0.2177848369,
0.2762291133,
0.4081855714,
-0.2440409064,
0.0885934681,
-0.0196735598,
-0.0375475213,
0.1764101684,
0.3452103138,
0.2333941609,
0.1530000567,
0.1788765788,
0.0665414855,
-0.2147426307,
-0.1878592819,
0.503118515,
0.1382859647,
-0.4760864973,
0.0670424774,
0.362065345,
-0.0627517775,
-0.0308657885,
0.0745156929,
0.5442925096,
-0.3988695443,
0.6471536756,
0.1135980934,
0.6712862253,
0.0891942978,
-0.0725565702,
-0.2630757689,
0.1109261811,
0.7352773547,
-0.3347018063,
0.2549375296,
-0.2097499073,
-0.5855284929,
-0.0690588728,
-0.2858498096,
0.0086796787,
-0.2234170288,
-0.3603475988,
0.016650293,
-0.382299453,
0.2821262479,
-0.0841553956,
0.3374673724,
-0.1510460079,
-0.1274802238,
0.035268601,
0.1547402889,
0.2227142006,
0.269232899,
0.1916234195,
0.0424445421,
-0.0174229071,
-0.2775606215,
-0.4944608808,
-0.0191287249,
-0.1274600327,
0.1551731378,
0.1827656031,
-0.045323059,
0.3815465569,
0.0988958776,
0.048148334,
0.1075572073,
-0.1812238842,
0.2406514287,
-0.0080879778,
-0.0569829568,
0.444668591,
-0.2205830961,
0.0711794868,
0.1791229695,
-0.4024156332,
-0.0184441879,
0.2618077099,
-0.1858660579,
-0.0822700709,
0.3471038342,
-0.2522743344,
-0.3732704222,
-0.2347562313,
-0.1285913587,
-0.0675491616,
-0.1432646215,
0.0892321244,
0.0084904293,
-0.12428464,
0.2830710709,
0.3689795732,
-0.2495321631,
0.0721012801,
0.8503790498,
-0.2160513848,
-0.1386742294,
0.2074772418,
0.0603951439,
-0.1718025655,
-0.1100915819,
0.326431632,
0.2859370112,
-0.1506771296,
-0.2592435479,
-0.4627506733,
0.228315562,
0.0369620733,
0.0377153121,
0.2122459859,
-0.0092375129,
-0.1842620671,
-0.1904773265,
0.1433346868,
0.1566766053,
0.4442587793,
0.1021858603,
-0.3198875189,
-0.4058084488,
-0.0958275124,
0.1374998093,
-0.2438108772,
0.3268667459,
-0.2520278394,
0.0064503849,
-0.129592523,
-0.0516158752,
0.585639298,
-0.3752815723,
0.0591964871,
0.1744847596,
-0.05121921,
-0.1685403734,
-0.0637014657,
0.1191378161,
-0.0450759381,
-0.1070084721,
-0.1666346043,
-0.2316607237,
-0.0473488756,
-0.2600592375,
0.0268884227,
0.4245568514,
0.1292695552,
-0.1663026512,
-0.1522526592,
-0.1260861456,
0.3549259305,
-0.0860517919,
0.2210677266,
0.2574340701,
0.0169343241,
0.2850543857,
0.1095147207,
-0.0313539505,
-0.1166429967,
0.2705664337,
-0.0437090695,
0.0783665478,
0.2038309574,
-0.2371040285,
-0.0961810872,
0.5086317062,
0.4194706976,
0.3942955434,
-0.3104346097,
-0.1650982797,
-0.0005255118,
0.2413312644,
0.0492484719,
-0.2417104244,
0.6126323342,
0.0900261551,
0.128388539,
0.2012026608,
0.0890382826,
-0.3130934238,
-0.3525202274,
0.0291856527,
0.769525528,
0.1349659413,
0.1062522233,
-0.1847230196,
-0.0298993438,
-0.0307878926,
0.0969652608,
0.1540450454,
0.3628751338,
0.2108799219,
0.0093515124,
0.4457627237,
0.0946384817,
0.2002349496,
0.1958204806,
0.1463282704,
0.2819835246,
0.2778771222,
0.198345989,
0.064883709,
-0.0310210995,
0.8150578141,
-0.0081772637,
-0.3089000583,
-0.1074741855,
0.0123539288,
-0.0718850642,
-0.1382000744,
0.2133595049,
-0.1653797626,
-0.00084728,
-0.2416386008,
0.084900558,
-0.0269592851,
-0.3901276588,
0.1575502306,
0.1124817953,
-0.0430951267,
0.0508892052,
-0.1414973587,
0.0767194703,
-0.1664368808,
0.0036228299,
-0.1519071311,
0.1252123713,
0.2351681888,
0.3312087953,
0.4035591781,
-0.0747237206,
-0.1400463283,
0.4058650136,
-0.035012532,
-0.1445529759,
0.1079207733,
0.0318372399,
-0.0002725311,
-0.5440949798,
0.1478164047,
0.0487127081,
-0.0635886118,
0.0140419826,
0.2640840411,
0.4321983755,
-0.1540918648,
-0.3470180035,
-0.2106317282,
0.074432537,
-0.1783645153,
-0.1506303698,
-0.1600373685,
0.0988607034,
0.2971238196,
-0.2123095989,
0.1440628767,
0.1429018229,
0.0628881305,
-0.0869218558,
0.1966793388,
0.1160484776,
-0.055046387,
-0.0333969742,
0.0747524202,
-0.2059542239,
0.3186417818,
-0.4508092105,
0.1692676991,
0.5591516495,
0.2960520387,
-0.2047138363,
0.1067673713,
0.1807713807,
-0.2350660712,
-0.29931283,
-0.07724493,
-0.0160413384,
-0.2238672376,
-0.101560533,
0.0261781011,
-0.0101416968,
-0.0251556933,
0.1090445444,
-0.5017799735,
0.0234618485,
-0.235397175,
-0.1540964842,
-0.1983956695,
-0.1749739349,
0.1152513996,
0.0764288157,
0.2546804547,
-0.010825254,
0.0705433935,
-0.194272995,
-0.4698739052,
-0.2817730308,
0.2653591633,
0.0957906395,
0.0309687853,
-0.255800575,
-0.4981393814,
-0.2089364529,
0.1482594311,
0.0951694176,
-0.1051605269,
-0.4935901761,
0.0211843178,
-0.0664745569,
0.1254033446,
-0.282428503,
0.3217878044,
-0.0584607869,
0.4555456638,
0.0576233268,
-0.4273315072,
0.4724075794,
-0.3319601119,
0.0055784136,
-0.0409939699,
0.2926782966,
0.6038851738,
0.1409936249,
-0.2386952192,
-0.1673590094,
0.2756535709,
-0.194346264,
-0.2440594137,
-0.0981738418,
-0.0150668379,
0.1926185936,
-0.0259732194,
-0.1619801968,
0.2742902339,
-0.0292489156,
0.0151275769,
-0.0911699533
] |
https://github.com/huggingface/datasets/issues/2882 | `load_dataset('docred')` results in a `NonMatchingChecksumError` | Hi @tmpr, thanks for reporting.
Two weeks ago (23th Aug), the host of the source `docred` dataset updated one of the files (`dev.json`): you can see it [here](https://drive.google.com/drive/folders/1c5-0YwnoJx8NS6CV2f-NoTHR__BdkNqw).
Therefore, the checksum needs to be updated.
Normally, in the meantime, you could avoid the error by passing `ignore_verifications=True` to `load_dataset`. However, as the old link points to a non-existing file, the link must be updated too.
I'm fixing all this.
| ## Describe the bug
I get consistent `NonMatchingChecksumError: Checksums didn't match for dataset source files` errors when trying to execute `datasets.load_dataset('docred')`.
## Steps to reproduce the bug
It is quasi only this code:
```python
import datasets
data = datasets.load_dataset('docred')
```
## Expected results
The DocRED dataset should be loaded without any problems.
## Actual results
```
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-4-b1b83f25a16c> in <module>
----> 1 d = datasets.load_dataset('docred')
~/anaconda3/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
673 # Checksums verification
674 if verify_infos:
--> 675 verify_checksums(
676 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
677 )
~/anaconda3/lib/python3.8/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
38 if len(bad_urls) > 0:
39 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls))
41 logger.info("All the checksums matched successfully" + for_verification_name)
42
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?export=download&id=1fDmfUUo5G7gfaoqWWvK81u08m71TK2g7']
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Linux-5.11.0-7633-generic-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 5.0.0
This error also happened on my Windows-partition, after freshly installing python 3.9 and `datasets`.
## Remarks
- I have already called `rm -rf /home/<user>/.cache/huggingface`, i.e., I have tried clearing the cache.
- The problem does not exist for other datasets, i.e., it seems to be DocRED-specific. | 69 | `load_dataset('docred')` results in a `NonMatchingChecksumError`
## Describe the bug
I get consistent `NonMatchingChecksumError: Checksums didn't match for dataset source files` errors when trying to execute `datasets.load_dataset('docred')`.
## Steps to reproduce the bug
It is quasi only this code:
```python
import datasets
data = datasets.load_dataset('docred')
```
## Expected results
The DocRED dataset should be loaded without any problems.
## Actual results
```
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-4-b1b83f25a16c> in <module>
----> 1 d = datasets.load_dataset('docred')
~/anaconda3/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
~/anaconda3/lib/python3.8/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
673 # Checksums verification
674 if verify_infos:
--> 675 verify_checksums(
676 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
677 )
~/anaconda3/lib/python3.8/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
38 if len(bad_urls) > 0:
39 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls))
41 logger.info("All the checksums matched successfully" + for_verification_name)
42
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/uc?export=download&id=1fDmfUUo5G7gfaoqWWvK81u08m71TK2g7']
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Linux-5.11.0-7633-generic-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 5.0.0
This error also happened on my Windows-partition, after freshly installing python 3.9 and `datasets`.
## Remarks
- I have already called `rm -rf /home/<user>/.cache/huggingface`, i.e., I have tried clearing the cache.
- The problem does not exist for other datasets, i.e., it seems to be DocRED-specific.
Hi @tmpr, thanks for reporting.
Two weeks ago (23th Aug), the host of the source `docred` dataset updated one of the files (`dev.json`): you can see it [here](https://drive.google.com/drive/folders/1c5-0YwnoJx8NS6CV2f-NoTHR__BdkNqw).
Therefore, the checksum needs to be updated.
Normally, in the meantime, you could avoid the error by passing `ignore_verifications=True` to `load_dataset`. However, as the old link points to a non-existing file, the link must be updated too.
I'm fixing all this.
| [
-0.2659117579,
0.3422697484,
0.0355652124,
0.3098574579,
0.2141980082,
0.0404331759,
0.3646672666,
0.4201548398,
0.3040326834,
0.0715028048,
-0.2768665552,
0.1901185513,
0.1306953281,
-0.1951105595,
-0.161291644,
0.3339127898,
0.1246937439,
0.1053826138,
-0.2242237926,
-0.125279963,
-0.3106812835,
0.1985793859,
-0.218444556,
-0.2843059599,
-0.0529534854,
0.1835623235,
0.153259784,
0.2324343622,
-0.1207002476,
-0.3587096334,
0.2788214684,
0.2785294056,
0.1736341268,
0.429613173,
-0.0001249282,
0.1207988262,
0.2817708254,
-0.0242787078,
-0.501280725,
-0.2013863623,
-0.5633547902,
-0.3742281497,
-0.0070421919,
-0.1583376676,
-0.0344875529,
0.2363340408,
-0.0177815817,
-0.2750717103,
0.0001791269,
0.373694241,
0.1168586016,
0.3918667436,
0.1610015035,
0.0871692151,
0.3812577426,
0.0504982397,
-0.090103209,
0.4119759202,
0.2193900198,
-0.0385965966,
-0.2582115233,
0.1683275849,
-0.4234546423,
0.3069978356,
0.2320553958,
0.0618824773,
0.0648706555,
-0.1373660415,
0.2532413602,
0.2994746864,
0.4981358647,
-0.4146618247,
-0.3278162479,
-0.2285786867,
-0.2983038127,
-0.318864435,
0.3791347742,
0.1398550272,
-0.1967771649,
0.0336278863,
-0.3680790067,
0.1499669254,
0.0037717968,
0.1940126717,
0.2422608733,
0.0545322411,
0.0316537768,
-0.0187698156,
0.0221100226,
0.0298728682,
0.3937072158,
-0.5399646163,
-0.2046733797,
0.2048074901,
-0.5590268373,
0.0730830133,
0.0080573261,
0.2777062654,
0.3526382446,
0.4925116003,
0.0890112817,
0.204277575,
-0.0375445895,
0.1885136664,
0.1643134803,
0.211974889,
-0.064741239,
0.4100408554,
0.2708574235,
0.3656845689,
-0.134778887,
0.0432132259,
-0.0054316744,
-0.1764250398,
0.6712614894,
-0.1259946823,
0.30842942,
-0.4890397787,
-0.4388929307,
0.2713243663,
0.0082045346,
-0.0947969556,
0.086947009,
0.3220212162,
-0.2265844494,
0.1516591907,
0.1470183432,
0.1476902664,
-0.2125052512,
-0.05413289,
-0.1873377264,
-0.0764370114,
-0.0596776418,
0.1976077408,
0.2942278981,
-0.1821975112,
0.2553657293,
0.1083123237,
0.2190235406,
-0.1960805953,
0.2999761403,
-0.1955656856,
-0.0533631556,
0.318069458,
-0.0322259553,
0.0961275995,
0.2476604134,
-0.1812211275,
-0.1439391226,
0.1828757823,
-0.2557734847,
-0.2137422711,
-0.1269114763,
0.151154235,
-0.3514276743,
0.008207662,
-0.2378199995,
-0.400021553,
0.4063309133,
-0.3223441243,
-0.0154794715,
-0.3542110026,
-0.2637991607,
-0.3539441824,
0.2389695048,
0.4025945365,
0.0419261456,
0.0426535159,
-0.0905656144,
-0.0114821065,
0.2941899896,
0.183512643,
0.0093246251,
0.1056279242,
-0.4124952555,
-0.0635624751,
0.2606512308,
-0.3542022705,
-0.6170939207,
0.1036195904,
0.1277517676,
0.6295825243,
0.0476488173,
0.0750024691,
0.183166042,
-0.0502422415,
0.2216963917,
0.1532355249,
-0.0387856737,
0.1244794801,
-0.2528078556,
-0.0325590149,
-0.0434743948,
0.1044863015,
0.0201722067,
0.2498009205,
0.2889229059,
-0.1661152393,
0.2637804449,
-0.0953651965,
-0.1257362962,
0.2321080416,
0.2991942763,
0.0468714908,
0.0639729053,
-0.0167484283,
-0.7693799734,
0.3423186541,
-0.1505940557,
-0.0280084126,
-0.0733516291,
-0.0444172584,
-0.1803079098,
-0.1141535789,
-0.3073676825,
-0.0912047699,
-0.012598455,
0.3906364441,
0.2074202001,
0.0201074257,
0.0379507318,
0.4137744606,
-0.3047956228,
0.1248285174,
-0.3346241713,
0.4118485451,
0.0743402988,
-0.1029384285,
0.1318235695,
-0.0030256361,
0.1328219175,
-0.0562921092,
-0.2745424509,
0.4387037754,
0.3811521232,
0.1363841891,
-0.1962372363,
0.3414199352,
-0.0699198097,
-0.1395468712,
-0.0126214419,
0.4393100441,
0.1203998476,
-0.1690556109,
-0.1533756256,
0.347396493,
-0.00063302,
0.1946743727,
0.0062623769,
0.0575816855,
0.2450563908,
-0.1167021915,
-0.1461344063,
-0.2618703842,
0.3650651574,
0.1296012998,
0.226625219,
0.1969412267,
-0.1572065949,
-0.0258854702,
0.4515280128,
-0.073506929,
-0.0205244198,
0.1288514584,
0.0474659428,
-0.043695569,
0.0753770247,
0.2370779663,
0.5027197003,
0.0668876469,
-0.0462787822,
0.1425257772,
-0.1718102396,
-0.0678282306,
0.0968004018,
-0.0407391079,
0.1989536732,
0.6168552637,
0.1380468756,
-0.1526707709,
-0.2818835676,
-0.0774430186,
-0.1217620596,
0.3029149175,
-0.490300715,
0.0769681111,
-0.1072901785,
0.0858299807,
-0.3731724322,
-0.1268986762,
-0.1855981052,
-0.2465114892,
-0.2533235848,
0.6255097389,
0.029179275,
0.1770889163,
-0.5438383818,
0.0261701494,
-0.0482736938,
-0.3658803701,
0.0178650022,
0.2034312189,
-0.2111103535,
-0.1547372639,
0.5788051486,
-0.0910895616,
0.3742568493,
-0.4110648632,
-0.0268511251,
-0.5500836372,
-0.2233639359,
0.094517529,
0.0162294786,
0.2236747146,
0.1711831093,
0.0406545401,
-0.0192008466,
-0.2501038611,
0.2409217358,
-0.0442295,
-0.2682688534,
0.3236270547,
-0.1510276347,
-0.0955459774,
0.170935601,
-0.1985138059,
-0.0594485402,
-0.3050559163,
-0.1297383755,
0.2319205701,
0.2133795768,
0.193633616,
-0.0064718127,
0.0152917951,
0.1389675736,
0.3373709619,
-0.1682054698,
-0.6134568453,
0.4448587894,
-0.0378272086,
-0.2202059776,
-0.144333899,
-0.1069901288,
0.1174563617,
0.397405833,
-0.5095453262,
0.0167494267,
-0.2880911529,
0.0945627391,
0.0950633734,
-0.024060335,
0.2160276175,
0.1453534812,
0.0829632878,
-0.2499595582,
-0.2719065547,
0.1908726394,
-0.1372274458,
0.1996578574,
0.0226444639,
0.3025072217,
-0.2673501372,
0.5462414622,
0.4274441004,
0.0061364956,
0.2280855179,
0.046743758,
0.5268796682,
-0.1603344977,
-0.3179927468,
-0.0785080194,
-0.2098640203,
-0.1336315721,
0.1367129087,
-0.025604587,
-0.1290740967,
-0.1602385044,
0.0565647781,
-0.2643247545,
-0.2664653659,
0.0557022691,
-0.299925983,
0.3418451846,
0.1807071418,
0.178768754,
-0.1449638307,
-0.3675036132,
-0.0111273304,
0.2551629543,
-0.0621700473,
-0.0646566749,
-0.275421381,
0.0361304991,
-0.0963149816,
0.3009770513,
0.216688484,
0.4385883808,
0.1286438704,
-0.0846551359,
-0.0186727308,
0.0235367678,
0.2270696014,
-0.2749717534,
0.2956964076,
0.1485592723,
-0.0079605356,
-0.1783613563,
-0.254458189,
-0.0432508402,
0.0618159287,
0.0433869921,
0.5564790964,
-0.3165851831,
-0.0163533613,
0.2413592637,
0.4100424945,
-0.1461863369,
-0.2883683443,
-0.4403586388,
-0.1881667078,
-0.2969534099,
-0.1807301342,
-0.1434830129,
0.1207044944,
-0.2336374819,
-0.1006111205,
-0.0179818496,
0.0570390821,
0.2971669137,
-0.0569481179,
0.4486528933,
-0.0627139732,
0.4389171004,
0.0435418822,
0.0607738234,
0.4035257101,
0.8385467529,
-0.3677006066,
-0.442088753,
-0.079532668,
-0.1300328672,
-0.1770053208,
0.0727124289,
-0.0297106057,
-0.1339789033,
0.2369091213,
-0.1334202886,
-0.0876612067,
-0.0725696385,
0.210417971,
0.1998604238,
-0.4859289229,
-0.4705500305,
0.1424984932,
0.0854979008,
-0.056496568,
0.5796285272,
-0.0678583384,
-0.1726596355,
0.0975926518,
0.1562773883,
0.7910795808,
-0.0374636948,
0.2097781003,
0.2671901584,
-0.3216500282,
-0.0153312646,
-0.288484484,
0.1176058277,
-0.5410559177,
-0.4565607905,
0.0023741871,
-0.4108851552,
0.069489859,
0.0244539399,
-0.0058732629,
0.3644320667,
-0.1365399063,
0.363984108,
0.1626487374,
0.1503243297,
-0.1333120018,
-0.0192529149,
-0.0246917866,
0.0563705154,
-0.1063242182,
0.2817862928,
-0.1043262035,
0.0744755715,
-0.0837389305,
-0.2491398454,
-0.3359657526,
0.2686149478,
-0.0484248661,
0.3063893318,
0.3144674003,
-0.1562395692,
-0.1932056397,
0.3079378903,
0.1931920201,
0.1256465316,
-0.2024257332,
-0.0966122746,
0.4446142316,
0.1859633178,
0.1080894917,
-0.117475003,
0.4294383824,
-0.0164769292,
-0.1706134528,
-0.0195094272,
-0.1567081064,
-0.5109888911,
-0.0638421327,
-0.1865805387,
-0.0139559135,
-0.3327466547,
-0.1821814775,
-0.1491383016,
-0.0026478097,
-0.1799383163,
0.1034974977,
0.1509207934,
-0.1339935958,
0.379924655,
-0.0015963302,
-0.460085094,
-0.1274675429,
0.513128221,
0.1256913394,
-0.0666729808,
0.5254390836,
-0.0354992375,
-0.2741113603,
-0.1303780377,
-0.0239340067,
0.0429769792,
-0.2795835435,
0.1564935148,
-0.2923182845,
0.3266908824,
-0.1656534523,
0.2309195399,
0.1746151745,
-0.0282149054,
0.080373548,
-0.5436576605,
-0.1149596646,
-0.0545215085,
0.0714056045,
0.2256109118,
-0.0961704627,
-0.1318738908,
-0.1686249673,
-0.1643117517,
-0.2196473479,
-0.0509598181,
-0.2850658894,
-0.0503923409,
0.0666948929,
0.1091088206,
0.0954703912,
-0.0847994164,
0.1070706695,
-0.1395271122,
-0.1586121768,
-0.0982482582,
-0.247314021,
0.1913026422,
0.0078082141,
-0.2195225954,
0.1011905968,
-0.2507104278,
-0.123105593,
-0.2926604152,
0.0412836596,
0.3332221508,
-0.1663247049,
0.0240589306,
0.0479133427,
-0.0059106704,
-0.0702901781,
0.0598668307,
-0.356772244,
-0.0949053019,
0.0353375115,
0.085188359,
0.0412025675,
-0.0427585244,
0.0382647403,
0.200740546,
0.0974865407,
-0.0341188759,
0.4755351841,
-0.4363495409,
0.0402532667,
0.1563016772,
0.2356874943,
0.4222281575,
-0.3856225014,
-0.1175229251,
0.1396679878,
0.1710720509,
-0.2858358324,
-0.1420302689,
0.1406699121,
-0.2054575533,
0.0249943957,
0.2416557074,
0.144294396,
-0.5312724113,
0.3154070377,
0.0365453586,
0.1829681098,
-0.1733941734,
0.0952960402,
0.4206507206,
0.1013370901,
0.1403634697,
0.1325901449,
-0.031044554,
-0.0105611645,
0.0478045754,
-0.0750080496,
0.3036597967,
-0.3571100831,
0.0880221575,
-0.2201276273,
-0.5279687643,
0.3481909037,
0.2502379417,
-0.0698258877,
0.1256923825,
0.0152219888,
0.0834442377,
-0.0615339428,
0.2207081616,
-0.3515163958,
-0.112199977,
-0.116039589,
0.0300300531,
0.0056750998,
-0.3382465541,
0.0237839818,
0.2282621861,
-0.0487357862,
0.1440568864,
0.1589455009,
0.1219188422,
-0.1803323627,
-0.2696264684,
0.2587604821,
0.0842611939,
-0.0409873202,
-0.1821428537,
0.2920822501,
0.0527243204,
0.0603766777,
0.083399877,
0.2604498863,
0.4520936608,
0.5969522595,
0.1655569524,
-0.2217400372,
-0.0189454667,
-0.0231259689,
-0.0942030251,
0.7059628367,
-0.1801465452,
-0.2599339485,
0.3139158785,
0.0530927479,
-0.1471289545,
0.0253869388,
-0.0972280279,
-0.2940341234,
-0.0907659382,
0.5079359412,
-0.0236265138,
0.0174970999,
-0.0995534509,
0.222004205,
-0.2275823057,
-0.2491732836,
0.432647109,
0.227005437,
0.1376861036,
0.0776112229,
0.0341993384,
-0.0186289996,
0.1766089499,
0.2722484171,
0.0902169123,
-0.3786656559,
-0.342133075,
-0.7264219522,
0.3454353511,
-0.1576509625,
-0.0619915761,
0.1172376573,
0.1326258779,
0.0116175003,
0.1041901186,
0.314648211,
-0.0641267151,
-0.2050145864,
-0.0098498575,
-0.1759045124,
-0.3004679084,
-0.1592686921,
-0.1377313733,
-0.192040205,
-0.5703731775,
0.2017880976,
0.1151958629,
0.0482629761,
-0.122947365,
0.2097163498,
0.0996091217,
0.2080221325,
0.1852986366,
0.1540620774,
0.6352698803,
-0.0647114068,
-0.2254853845,
-0.0971973985,
-0.114167124,
-0.1586398333,
0.3163267374,
-0.1148586124,
0.3463056684,
-0.1001496613,
-0.3019787371,
-0.3574887514,
0.3911956251,
0.2497394383,
-0.3221427202,
-0.0838528126,
0.0728310943,
-0.2557838559,
0.2184865475,
0.0259721614,
0.1138150096,
0.1335905939,
0.4593373239,
-0.1675975472,
-0.2450244427,
0.4646668434,
-0.2160878479,
-0.1596829295,
-0.1233222559,
0.2576872408,
-0.2743936181,
-0.2150913626,
-0.6132447124,
0.175946027,
0.4812848866,
-0.1356477886,
-0.166929394,
0.2582945228,
-0.2036871612,
0.3876014948,
0.0163915381,
0.3485514522,
0.0122527331,
-0.2221435606,
-0.0536835417,
-0.1185232103
] |
https://github.com/huggingface/datasets/issues/2879 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?" | Hi @rcgale, thanks for reporting.
Please note that this bug was fixed on `datasets` version 1.5.0: https://github.com/huggingface/datasets/commit/a23c73e526e1c30263834164f16f1fdf76722c8c#diff-f12a7a42d4673bb6c2ca5a40c92c29eb4fe3475908c84fd4ce4fad5dc2514878
If you update `datasets` version, that should work.
On the other hand, would it be possible for @patrickvonplaten to update the [blog post](https://huggingface.co/blog/fine-tune-wav2vec2-english) with the correct version of `datasets`? | ## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
| 46 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?"
## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
Hi @rcgale, thanks for reporting.
Please note that this bug was fixed on `datasets` version 1.5.0: https://github.com/huggingface/datasets/commit/a23c73e526e1c30263834164f16f1fdf76722c8c#diff-f12a7a42d4673bb6c2ca5a40c92c29eb4fe3475908c84fd4ce4fad5dc2514878
If you update `datasets` version, that should work.
On the other hand, would it be possible for @patrickvonplaten to update the [blog post](https://huggingface.co/blog/fine-tune-wav2vec2-english) with the correct version of `datasets`? | [
0.1248529255,
-0.0535936952,
0.0293308459,
0.0739795715,
0.2047278434,
-0.0245769322,
0.2489386499,
0.4213004708,
-0.4746904373,
0.1751619577,
0.1361840665,
0.5513861775,
-0.3347690403,
-0.0850956962,
0.0344840996,
0.1865643859,
-0.0921123028,
0.138455838,
-0.2678906322,
-0.2130741775,
0.0398925692,
0.3963992596,
-0.1676282138,
-0.068596229,
-0.3741770685,
0.2448775172,
0.2273773402,
-0.2314912677,
0.1054834127,
-0.4600343704,
0.2924748063,
0.1486976445,
0.0194597617,
0.3702304363,
-0.0001191299,
0.0063223615,
0.2757811844,
0.0352543369,
-0.2775233388,
-0.4479435086,
-0.0650264323,
0.1085861325,
0.0530342609,
0.1475537568,
-0.4656307697,
-0.1793128252,
0.2337314487,
-0.3409469724,
0.0292007104,
0.4485591054,
0.0685844421,
-0.0634171069,
-0.2496643215,
-0.0824671239,
0.3689353466,
0.0125432462,
-0.0625189617,
0.0592697859,
-0.068335712,
0.2411287725,
0.219675079,
0.3755480349,
-0.0313246958,
0.0129959583,
-0.1954177916,
-0.0935639441,
-0.2540266812,
-0.3487868309,
0.0747666061,
0.2519177198,
0.7106904984,
-0.2958622575,
-0.3215118349,
-0.2683335245,
0.3369949162,
-0.0542203374,
0.2911205888,
0.0254177228,
-0.294492662,
0.1627252102,
-0.5629913211,
0.0742399395,
-0.304174602,
0.1429014802,
-0.0974290371,
-0.3596349955,
-0.1437713504,
0.1845411211,
-0.1975935251,
0.1163859218,
0.1141553521,
0.188438803,
-0.0396125056,
-0.0923857987,
-0.320623517,
-0.0985560119,
0.0559261143,
-0.0815377682,
0.0717147589,
0.3172882497,
0.2842968106,
0.0675944015,
-0.4174664319,
-0.1355051994,
0.032232482,
0.148169145,
0.1823078096,
-0.1778396219,
0.1011010855,
-0.0720299408,
-0.1533745378,
0.0139923096,
0.0189835653,
-0.0720992684,
-0.1062531471,
-0.0153032327,
0.3571920395,
-0.1175770089,
-0.5631765127,
0.1525672376,
-0.5025027394,
0.2135900557,
-0.0520563796,
0.1947725415,
-0.2154175192,
0.1350187063,
0.2971950173,
0.0870631933,
0.0248791575,
-0.3115249872,
-0.0998026356,
-0.1971574277,
0.1828784645,
0.0968629196,
0.2440092117,
-0.2103732526,
0.2123046368,
0.257135272,
0.2615032196,
-0.153883487,
-0.0926650837,
-0.0326226689,
0.2529812455,
0.2668444514,
-0.1248195618,
0.3939132392,
-0.056512218,
0.1157931015,
0.1066708863,
0.2571234703,
-0.0651220754,
-0.0061711073,
0.5623429418,
0.0605887733,
-0.1836537123,
-0.300652504,
-0.107121557,
0.333304882,
0.0442795753,
-0.066832304,
0.2504211366,
-0.2751783729,
-0.2271512002,
0.0158826821,
0.135892421,
0.1566539854,
-0.5853286386,
0.0243282765,
0.1945608854,
0.0684714317,
0.3222908974,
0.3032738566,
0.1651952714,
0.1811704338,
-0.0816667974,
0.1170217544,
-0.219933033,
-0.3883655071,
-0.206043154,
0.2092841119,
-0.2708131373,
0.2642602324,
-0.0832699239,
-0.2192171216,
0.0802668333,
0.0991330668,
0.3640692234,
-0.1891601086,
0.2466820478,
-0.10566964,
-0.3831147552,
-0.1445573717,
0.1893378049,
0.1755268574,
-0.0177114885,
0.0532647036,
-0.2982361615,
-0.0164563172,
0.4027053416,
0.0394102335,
-0.0291298144,
-0.0257318243,
0.3644499779,
-0.1775299311,
0.263861388,
-0.1554236263,
0.2872298956,
0.0272913352,
0.160473302,
0.2198722661,
0.5499913096,
-0.1693306118,
-0.1779456139,
-0.0762333721,
-0.0728196651,
-0.068315953,
0.058260262,
0.1486586928,
-0.1489185095,
0.3247834146,
-0.0285168067,
0.4712551832,
-0.4881335199,
-0.0153096393,
-0.0879816189,
-0.1088418067,
0.303391248,
-0.0987992883,
0.1165295169,
0.2411421537,
0.0172995199,
0.0872963294,
-0.1101424247,
0.3636824787,
0.2269498706,
0.1219172403,
-0.368201077,
-0.4027223587,
0.2316687703,
-0.5078884363,
-0.4552858174,
0.5677572489,
-0.0276650935,
0.2008172274,
-0.1534454823,
0.0604418702,
0.0807491094,
0.0480001383,
0.0348500609,
0.036078155,
-0.0194091015,
-0.107921578,
-0.4708497524,
-0.1607663482,
0.2607945204,
-0.2098270655,
0.159021467,
-0.1161287501,
-0.3203788102,
0.1368898451,
0.3158721328,
-0.0502403304,
0.0395468548,
0.2744300961,
-0.1326721609,
0.2099831253,
0.0375694782,
0.1719761044,
0.2373922765,
0.2009199858,
0.080727227,
-0.0535477251,
-0.078192614,
-0.2605935633,
0.2923918962,
0.1945408136,
-0.3651404977,
0.3840384185,
0.2203697711,
0.0489813611,
-0.437225461,
-0.0049821734,
-0.1904431581,
0.2824563086,
-0.4494032562,
-0.1749292612,
-0.3977606297,
0.1078350097,
-0.1361608058,
-0.0218014624,
0.0710958987,
0.0436780378,
0.3717918694,
-0.0027074441,
-0.0859976485,
0.2743452787,
0.1501077861,
0.1915656477,
-0.110423021,
0.1713414639,
-0.0096687451,
0.1939064711,
-0.4710185528,
0.0452457368,
-0.1606468558,
-0.2644658089,
0.150438264,
-0.1925743073,
-0.1099143773,
-0.4143465161,
-0.0715462416,
0.1478732526,
-0.1916622221,
0.4232138097,
0.2326955795,
-0.0426133312,
-0.1860426366,
-0.1944306344,
-0.1887597293,
-0.0310721099,
-0.0671299547,
0.0714480057,
-0.1346394122,
0.041585695,
-0.2561318278,
-0.8888213038,
0.1003020555,
-0.220467627,
0.7185174823,
0.0599350482,
-0.0460496359,
0.5412362218,
0.282204628,
0.2012917697,
0.079253979,
0.1863067746,
-0.3713883758,
-0.1230800971,
0.0792587698,
0.0293457583,
-0.4573094547,
-0.298314333,
0.1936385334,
0.1548014581,
0.207411021,
-0.4953386486,
0.3497344553,
-0.108994633,
-0.1306297183,
0.0102870064,
-0.1989104897,
0.2906791866,
-0.2038050145,
-0.1159161255,
-0.2554522455,
0.1175911576,
0.3896951675,
0.1017958373,
0.1127122641,
0.3398632109,
0.2160487771,
0.2003067285,
0.3506760597,
0.7158635259,
0.0828192532,
0.039017614,
-0.1280340403,
0.424453944,
-0.0728554726,
-0.0528326705,
0.160076499,
0.059085425,
-0.1087117493,
0.4583724141,
-0.084242776,
-0.0255119838,
-0.0293365382,
-0.064268209,
-0.090488635,
-0.3277725577,
-0.0225208439,
-0.4580340385,
0.0512961261,
0.1535511017,
0.2963802218,
0.1280048192,
-0.1144672632,
-0.0452858843,
0.1441748887,
0.3194570243,
-0.1257755607,
-0.3150960803,
-0.3613073826,
-0.4153892696,
0.0612778626,
0.186918512,
0.5611051917,
-0.2880937457,
-0.2019723952,
0.2231434882,
0.1043021828,
0.4215113819,
-0.3380558789,
-0.0422928445,
0.1251644194,
0.2728697658,
-0.2976225317,
-0.0735442787,
-0.3262291551,
-0.2899854779,
0.2791607976,
0.0972535759,
-0.1177075282,
-0.1351197511,
0.0686609745,
0.0584215336,
0.0167314559,
-0.0990044847,
-0.0332192481,
0.030631721,
-0.027278617,
0.1637770683,
0.1725981236,
-0.124804832,
-0.4919112027,
-0.3849043846,
-0.0554663986,
0.1896433085,
0.551681757,
0.0221093893,
0.284060657,
-0.1308686435,
0.2439791858,
0.2357367277,
-0.2960316837,
0.2580800056,
0.1936603189,
0.1173486561,
-0.0414016061,
0.137037605,
-0.1260074377,
0.3830217421,
0.3855086863,
-0.4349808395,
-0.0189785995,
-0.3385871947,
0.1840331256,
-0.2829482555,
0.3459415436,
0.4015238285,
-0.1441547871,
-0.1260796785,
-0.4360538721,
0.4181836843,
0.022924073,
-0.164012745,
0.4557494521,
0.1619812697,
-0.2460981905,
0.1927155107,
-0.1567518711,
0.8095885515,
0.1871283054,
0.2667511702,
0.3340373635,
0.1109344959,
0.1609195918,
-0.4287745357,
0.0356835686,
-0.0055845678,
0.069863677,
-0.1306087524,
0.0897011757,
-0.1681433022,
0.3797656,
-0.2919410765,
-0.0783906356,
0.2101616561,
0.1972837448,
0.2774980962,
-0.0788459033,
-0.258141011,
0.0186330825,
0.0897453055,
0.0458312519,
0.0587444417,
0.3057944179,
0.2888188362,
-0.1282046288,
0.0097756013,
-0.265276432,
-0.659521997,
0.0203249082,
-0.5996916294,
-0.0947106704,
0.1489201486,
-0.3863424063,
0.1838310659,
0.3397492766,
0.1764549017,
0.4337402582,
-0.4633072317,
-0.0267993417,
0.251109004,
0.1131988093,
-0.0246277191,
-0.0830142051,
0.3481531143,
-0.0840319619,
-0.1434057206,
-0.071005024,
0.0281199403,
0.1660568118,
-0.1545241475,
-0.0496856049,
-0.1185677648,
-0.3426325321,
0.0497710854,
0.0989603624,
0.1527894437,
-0.236983493,
0.0680045262,
-0.1038811207,
-0.0651219115,
0.2742634416,
0.2779471874,
-0.5032378435,
-0.1089578867,
0.5379332304,
-0.0835737213,
0.1077650338,
0.6408998966,
-0.1893859655,
-0.0512989387,
-0.2775192857,
0.0168700814,
0.259085834,
-0.3368994892,
0.1719174385,
0.0321258493,
0.3006647825,
0.0966018736,
-0.04447373,
0.0463049896,
-0.058991611,
-0.2513127327,
-0.238933593,
-0.0812482387,
0.1200235337,
0.0252263322,
0.2911800146,
0.0278385952,
0.3665987253,
0.0767615959,
-0.3470374048,
-0.2017675936,
-0.0237252656,
0.0557581484,
0.0804857314,
-0.0478358828,
0.0278625973,
0.1107274741,
0.0545188263,
0.0149589665,
0.1027085558,
-0.1335516125,
-0.0833662897,
-0.2990176082,
0.1511185616,
0.2011466324,
0.1130730957,
-0.0153080188,
0.0650833696,
-0.0542604178,
-0.0600517541,
0.0761153251,
0.3808923364,
0.0174183287,
0.3620301187,
0.1188441068,
0.397614032,
-0.0936356783,
-0.2623870075,
-0.0354404971,
-0.0775723308,
0.1644934118,
-0.0624374971,
-0.1850818992,
-0.0580993146,
-0.1324887127,
0.0220973901,
0.0893227011,
0.151861012,
-0.0546602756,
-0.289630115,
0.2135310769,
0.1549113542,
0.050664708,
0.3179009855,
-0.1531380862,
-0.2708625793,
-0.1102766544,
0.0789905936,
-0.0246087611,
0.0176902041,
-0.3351353109,
-0.0152756535,
-0.0255125389,
0.0031255931,
0.055481419,
-0.3541378379,
0.3623180389,
-0.0125005879,
0.112134859,
-0.5960305333,
0.1129646301,
0.374699533,
0.0613390058,
-0.0079184435,
-0.2586422563,
-0.2529650331,
-0.0035203397,
0.4860924482,
-0.2427178174,
0.2749044299,
-0.1475842446,
-0.0262317806,
0.2557943463,
-0.2615299821,
-0.2477715611,
0.2055237889,
-0.4631261826,
0.1609559357,
0.1013555825,
0.4035342336,
-0.0463260934,
0.10066697,
-0.2105020583,
-0.0210332423,
-0.1480745077,
-0.1586382389,
-0.3575799763,
-0.0887537897,
-0.1383640468,
-0.1716293693,
-0.0802432299,
-0.0285865888,
0.1238232106,
0.239233315,
-0.2778192759,
-0.5319438577,
-0.2491967678,
-0.1834075749,
0.2514193952,
-0.1140983105,
0.3520129621,
0.1031285077,
-0.0186601132,
0.1629293263,
0.3187714815,
0.5043583512,
0.1790821254,
-0.1014209539,
0.1203381494,
-0.2998447418,
-0.0056220405,
0.0208825395,
0.62394315,
0.0326779634,
0.1173428148,
0.0509870648,
0.051892288,
0.0013061389,
0.0413614735,
-0.0084989518,
0.0400379673,
-0.696881175,
0.4176641405,
0.0176095627,
0.239338547,
-0.2014487237,
-0.0412870087,
-0.219551757,
0.3418332934,
0.6031695604,
0.1864221692,
0.0186090581,
-0.093484275,
0.0555081554,
-0.1810230762,
0.1212913394,
0.0766028613,
-0.0048449039,
-0.1068458706,
-0.0195503682,
-0.2139690071,
0.0899251625,
0.265216291,
0.2187432945,
0.0150079504,
-0.1638360023,
0.0671151206,
0.0615045168,
-0.0098667741,
-0.118204236,
-0.2539235055,
0.2244302779,
-0.1969869733,
0.0151611306,
-0.0069398619,
0.1406156123,
0.149586603,
-0.0737226754,
-0.1326640695,
0.1910312176,
-0.1454406083,
-0.0570772067,
-0.0759501755,
0.17733711,
0.3487207294,
0.0686021373,
0.0964070261,
0.3599496484,
-0.091555573,
0.0773109794,
-0.4108831286,
-0.1420517117,
-0.229960084,
0.2994241416,
0.0498118214,
0.3389100432,
0.0066421032,
-0.3442054093,
0.1354150325,
0.2597311139,
0.3330134153,
-0.1628272533,
-0.1400981992,
0.0477316454,
-0.3230913877,
0.213967517,
0.000055775,
0.2621965408,
0.0430665053,
0.1607147753,
-0.5121689439,
-0.9930143356,
0.6250436902,
-0.7181702256,
-0.2236550748,
-0.142776534,
0.2892614603,
0.3226872087,
-0.1015830114,
-0.5634548664,
-0.0728692934,
0.4693163037,
-0.0401694812,
-0.0920305103,
0.1123212799,
0.1479112804,
0.3100139797,
-0.1644334495,
0.9622847438,
0.323774457,
-0.162897408,
0.1872401386,
-0.4706267715
] |
https://github.com/huggingface/datasets/issues/2879 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?" | I just proposed a change in the blog post.
I had assumed there was a data format change that broke a previous version of the code, since presumably @patrickvonplaten tested the tutorial with the version they explicitly referenced. But that fix you linked suggests a problem in the code, which surprised me.
I still wonder, though, is there a way for downloads to be invalidated server-side? If the client can announce its version during a download request, perhaps the server could reject known incompatibilities? It would save much valuable time if `datasets` raised an informative error on a known problem ("Error: the requested data set requires `datasets>=1.5.0`."). This kind of API versioning is a prudent move anyhow, as there will surely come a time when you'll need to make a breaking change to data. | ## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
| 134 | In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?"
## Describe the bug
Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same.
## Steps to reproduce the bug
I was following this tutorial
- https://huggingface.co/blog/fine-tune-wav2vec2-english
But here's a distilled repro:
```python
!pip install datasets==1.4.1
from datasets import load_dataset
timit = load_dataset("timit_asr", cache_dir="./temp")
unique_transcripts = set(timit["train"]["text"])
print(unique_transcripts)
assert len(unique_transcripts) > 1
```
## Expected results
Expected the correct TIMIT data. Or an error saying that this version of `datasets` can't produce it.
## Actual results
Every train transcript was "Would such an act of refusal be useful?" Every test transcript was "The bungalow was pleasantly situated near the shore."
## Environment info
- `datasets` version: 1.4.1
- Platform: Darwin-18.7.0-x86_64-i386-64bit
- Python version: 3.7.9
- PyTorch version (GPU?): 1.9.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: tried both
- Using distributed or parallel set-up in script?: no
-
I just proposed a change in the blog post.
I had assumed there was a data format change that broke a previous version of the code, since presumably @patrickvonplaten tested the tutorial with the version they explicitly referenced. But that fix you linked suggests a problem in the code, which surprised me.
I still wonder, though, is there a way for downloads to be invalidated server-side? If the client can announce its version during a download request, perhaps the server could reject known incompatibilities? It would save much valuable time if `datasets` raised an informative error on a known problem ("Error: the requested data set requires `datasets>=1.5.0`."). This kind of API versioning is a prudent move anyhow, as there will surely come a time when you'll need to make a breaking change to data. | [
-0.0884854272,
0.0373966843,
-0.0213858075,
0.1496123523,
-0.0189266149,
-0.0777353495,
0.2245493531,
0.36217767,
-0.4294896126,
0.1633365899,
0.1525295675,
0.2624571323,
-0.4324910343,
-0.0201308355,
-0.0711193755,
0.2396376878,
-0.1268622726,
0.2598144412,
-0.3329853117,
-0.0231145248,
0.0825959891,
0.2425756454,
-0.0296560451,
0.0283613484,
-0.086596325,
-0.01430545,
0.2008778453,
-0.093485117,
-0.312286377,
-0.6014052033,
0.2304866612,
0.276407063,
0.0768749863,
0.1653758883,
-0.0001274555,
0.1065071225,
0.1652282923,
-0.0230599232,
-0.490722537,
-0.1459855139,
-0.1808247864,
0.1132926941,
0.0111581832,
-0.0032401979,
0.1294738352,
-0.2341337204,
0.2061716467,
-0.1966676414,
0.3206734657,
0.529242456,
0.0049743503,
0.2393674552,
-0.1227484792,
0.1194094568,
0.3548436463,
-0.1067726761,
-0.0561468378,
0.076656118,
0.0378668942,
0.2733800709,
0.2134603858,
0.3169702888,
0.0864055455,
-0.1138321832,
-0.2907948494,
-0.1938822269,
-0.1545202583,
-0.2383069098,
-0.2170853168,
0.3288349509,
0.7538303137,
-0.3150245547,
-0.6087896228,
-0.3401041031,
0.1912579238,
-0.1430551261,
0.3923213482,
-0.1902453601,
-0.2573826611,
0.3908391297,
-0.6390116215,
-0.2049099058,
-0.3079319894,
0.1295721531,
0.015353635,
-0.1147585958,
0.0225795954,
0.1235875115,
-0.1734605283,
0.0642667934,
0.1816412807,
0.1108350679,
0.0387302265,
-0.0109755415,
-0.1475488096,
-0.3412713706,
0.0423947722,
-0.1861124486,
0.0421030894,
0.4260552227,
0.5204833746,
0.0642904863,
-0.5445076227,
-0.0775152668,
0.1737653762,
0.2407868505,
-0.0252581052,
-0.2616613805,
0.1569304913,
0.0426038876,
0.1903323829,
0.1748283654,
0.0237040743,
-0.3405400515,
-0.12930125,
0.1194926649,
0.3347737789,
-0.1888238937,
-0.5020070672,
0.0776052177,
-0.454580456,
0.1854379475,
-0.0716409981,
0.1207240373,
-0.2241947651,
0.4196059108,
0.1554580927,
0.064097926,
-0.1348513961,
-0.404071331,
0.1883214414,
-0.1559714228,
0.1908432543,
-0.0499084741,
0.2960180044,
-0.3722984195,
0.0881591067,
0.142776832,
0.1810636222,
-0.1214633435,
-0.1279874146,
0.1010570377,
0.1780343801,
0.2132160366,
-0.1896711886,
0.1723004431,
-0.0805888996,
0.0884557515,
-0.0172107294,
-0.0199686624,
-0.1741253138,
-0.110357523,
0.3484824896,
-0.0193801671,
-0.2260965705,
-0.2067114413,
-0.002878245,
0.1341749728,
-0.0354008675,
-0.2685543001,
0.1478760242,
-0.1158048511,
-0.3188740015,
-0.0152799226,
0.0157302618,
0.2144398689,
-0.6616709232,
-0.1349117756,
0.1824918687,
-0.009823367,
-0.0802732036,
0.2591879666,
-0.0182489119,
0.1335976571,
-0.0214255266,
0.0613842607,
-0.04310783,
-0.4288669229,
-0.3187330365,
0.1890930384,
-0.2718710899,
0.2365473658,
0.1732595861,
-0.2317659408,
0.325789243,
-0.1745209694,
0.1762592942,
-0.2554744482,
0.1786212325,
-0.1710286289,
-0.4389977753,
-0.4511151612,
0.0310189277,
-0.0533377677,
0.0681203306,
0.0648185983,
0.0564529821,
0.0423983522,
0.3488159478,
0.0829288512,
0.011816211,
-0.0338025764,
0.2000454068,
-0.0843637884,
0.0186146237,
-0.2243675739,
0.0837664902,
0.2081038207,
0.076581955,
0.1705435663,
0.4247848094,
-0.1788809448,
-0.2476138026,
0.0383234173,
0.1872701645,
0.1262850314,
-0.0395877324,
0.2273308039,
-0.0825186446,
0.350441277,
-0.2704241872,
0.4691355824,
-0.4019190371,
0.0372849926,
-0.0536286458,
-0.1635845602,
0.2474773079,
0.0825915486,
0.1019177735,
-0.0394122079,
-0.1032757536,
-0.0926557407,
-0.0245239362,
0.5187946558,
0.1530637741,
0.2767787874,
-0.1384763867,
-0.2536576092,
0.214370504,
-0.2618274093,
-0.3397195935,
0.548640132,
-0.0972197056,
0.4484134614,
-0.025513079,
0.1951503456,
0.1404720545,
-0.0403087139,
0.0705883205,
-0.0731969327,
-0.0213092975,
-0.0093517601,
-0.5304040313,
-0.1736079156,
0.1465593278,
-0.2134277076,
0.1417781413,
-0.1460383981,
-0.2046636194,
-0.0846564919,
0.2301438451,
-0.0212982371,
0.0592089258,
0.1565670371,
0.083252117,
0.2117864192,
0.0553548932,
0.31839329,
0.3474944532,
0.0831102729,
0.0246619023,
0.0214085933,
-0.2565381229,
-0.1302024275,
0.276820302,
0.2188894898,
-0.3133857846,
0.3226566315,
0.2063319981,
0.0317541249,
-0.4395202994,
0.031971857,
-0.0409545004,
0.0367239639,
-0.6262533665,
-0.0090596527,
-0.5513138175,
0.169015646,
-0.3306768835,
-0.0818262398,
-0.1623635143,
0.0047678351,
0.5723301172,
0.1694379151,
-0.0812914297,
0.2194668055,
-0.0876340792,
0.3680039346,
-0.1986395717,
-0.0618023798,
0.0382375345,
0.2359500378,
-0.4149255455,
0.0028020293,
0.0273972079,
-0.3462301195,
0.2414891422,
-0.4148810804,
-0.300960809,
-0.2322781086,
-0.0679202229,
0.1891994476,
0.0653942153,
0.2402109206,
0.3457307816,
0.1270096153,
-0.0146290958,
-0.0418711752,
-0.2779378593,
0.0484671593,
-0.1159969419,
-0.1051496565,
0.1344980896,
0.0982848853,
-0.2827248573,
-0.8775423765,
0.0841023773,
-0.1689091027,
0.4604311883,
0.0795202255,
0.1856422573,
0.3558038175,
0.3462037444,
0.1059157103,
-0.044132825,
0.1544435918,
-0.0882077515,
-0.2302576154,
0.0935372561,
0.0836209729,
-0.2186216414,
-0.0057524368,
0.2806984484,
0.0527221225,
0.3915786743,
-0.416885376,
0.2677829862,
0.2194800973,
-0.1391706169,
0.001931434,
-0.3680184782,
0.546649158,
-0.0834406614,
0.0156954378,
-0.2377286702,
0.2056241482,
0.1374917626,
0.1225762665,
0.2549111843,
0.3231088519,
0.2804227173,
0.2665040493,
0.5263997912,
0.3263047636,
-0.2103034556,
0.2247065902,
-0.1228170246,
0.4726444483,
0.0411539562,
0.0922420099,
-0.0651078224,
-0.0960021168,
-0.1824166477,
0.3834346533,
-0.0364109427,
-0.0770953223,
-0.1888982654,
0.2259606719,
-0.2749902606,
-0.2729184628,
0.0425743833,
-0.3952448368,
0.1360570937,
0.2876462042,
0.3582552373,
0.1015630364,
0.0322360955,
-0.0319887921,
0.2270747423,
0.3397324681,
-0.0098602548,
-0.2052220106,
-0.0876504779,
-0.2094878107,
0.2032209039,
0.4069232047,
0.6541616321,
-0.1864348352,
-0.0886587873,
0.1288475543,
-0.0191108212,
0.2862905264,
-0.4888175428,
-0.0456890352,
-0.0792834088,
0.3533950448,
-0.1327288151,
-0.129483372,
-0.1357856095,
-0.3984864056,
0.1170823723,
0.0794343352,
-0.1247218922,
-0.0330576003,
-0.0315414928,
0.1264818311,
-0.1087497175,
0.176342845,
-0.1473098993,
-0.0187249035,
-0.1351140738,
-0.0089129172,
0.0840161666,
-0.2780801058,
-0.4168045521,
-0.0725167766,
-0.0888439566,
0.2681666315,
0.3895972669,
0.162150383,
0.28742221,
-0.1167987958,
0.0239203125,
0.0930399522,
0.0980092138,
0.3213099539,
0.2371073961,
0.1738162041,
-0.184338212,
0.0630599484,
0.08204896,
0.1017825827,
0.5416073799,
-0.3363021016,
-0.1183998138,
-0.1456230432,
0.0961888433,
-0.2815688848,
0.3941450417,
0.5397120118,
-0.2854301333,
-0.3250680566,
-0.4289260209,
0.4246481061,
-0.090447396,
-0.2281327695,
0.3700993359,
0.1016522795,
-0.3230114281,
0.1511369944,
0.0276334006,
0.922003746,
0.2088726312,
0.2067638338,
0.1859175563,
-0.1246661767,
0.4331421852,
-0.5090641975,
0.1522115767,
0.1198085472,
0.0101091415,
-0.3668874204,
0.109200947,
0.0915937573,
0.439971596,
-0.1749594957,
0.04851925,
0.1938172579,
0.3199472129,
0.2437159419,
-0.022406809,
-0.4007432163,
0.0955583602,
-0.1448122561,
-0.0000624731,
0.1024666578,
0.289703697,
0.0265423357,
-0.0909920037,
-0.0498295799,
-0.4163595736,
-0.7078107595,
-0.2266651839,
-0.4140574932,
-0.1478800327,
-0.0445110872,
-0.119061701,
0.1190104112,
0.2762687504,
0.2014931887,
0.241851002,
-0.3773288429,
0.0200513694,
0.0144650824,
0.07429488,
0.1023883671,
-0.0653454959,
0.3629058897,
-0.0745205656,
0.041327253,
0.0539518036,
-0.0798189491,
-0.0671609268,
-0.1024445966,
-0.0455862656,
-0.0551968738,
-0.3396164477,
0.1325670034,
-0.1026442349,
0.0545614287,
-0.1985495239,
-0.0092557082,
-0.2127404064,
0.1121368557,
0.1885817647,
0.0892388225,
-0.4363735914,
-0.0978494585,
0.6311430931,
-0.2886927724,
0.12894696,
0.484149009,
-0.3160095215,
-0.0333171003,
-0.1941361278,
-0.0213659033,
-0.1992963552,
-0.5194515586,
0.0147856288,
-0.044604145,
0.0800758302,
-0.127022326,
0.0733650699,
0.1802176535,
0.1770589203,
-0.1799434125,
-0.3772439361,
0.0420022309,
0.2579895258,
0.2447489053,
0.3469188213,
0.0996374041,
0.2187811285,
-0.0042200908,
-0.5193979144,
-0.1086388379,
-0.10017813,
0.1144045368,
0.0074444916,
0.0580740198,
0.3495641649,
0.0714686215,
-0.2546704412,
-0.1440990269,
0.1539246589,
-0.1497366428,
0.0224602185,
-0.2373715192,
0.2285161316,
0.0468568243,
0.1454442888,
-0.0425271466,
-0.0164452009,
-0.0305593647,
0.0448144786,
-0.088673979,
0.3584473133,
0.1018415913,
0.1913808733,
0.1421768516,
0.4053520858,
-0.2433031797,
-0.0650705099,
0.0682468712,
0.1981732249,
0.1225379184,
0.2254868448,
-0.2010091692,
-0.071331352,
-0.1664498597,
0.2583249509,
0.2247249037,
0.0503339432,
0.059495952,
-0.1397161782,
0.2466144413,
0.0786285177,
0.3503730893,
0.6881967187,
-0.1185356081,
-0.4578855634,
0.1832002103,
-0.0270988438,
-0.1317240149,
-0.0254199412,
-0.3005430102,
0.0465860926,
-0.1627552658,
0.1273008287,
0.0149540305,
-0.3517833054,
0.4608775377,
0.1213577539,
0.1400361657,
-0.4294636846,
0.1858081371,
0.6682866812,
0.0034413263,
0.2189690322,
-0.419690907,
-0.3038706779,
0.1169410199,
0.3170002997,
-0.3769645691,
0.2690321803,
-0.1761018336,
-0.0776476711,
0.0045767929,
-0.1181808859,
-0.3301262558,
0.2845062017,
-0.0586042665,
0.4738271534,
0.5105354786,
0.514228642,
-0.0172046144,
-0.090956226,
-0.4596329927,
0.0934664905,
0.0878876373,
-0.1986487359,
-0.5646128654,
-0.2639586926,
-0.1481104046,
-0.020208478,
-0.1672483087,
0.1114050746,
0.219239682,
0.2884187698,
-0.2779068351,
-0.5320429206,
-0.2158830315,
-0.2374021113,
0.3170852363,
-0.2049437761,
0.2701925337,
0.2036053538,
0.0774116963,
0.2706264257,
0.3161221445,
0.4058339894,
0.0915577263,
0.0079939738,
0.026317887,
-0.2494979501,
0.2277777493,
0.0264973491,
0.4185409248,
-0.0022927076,
0.1665540636,
0.3360882401,
-0.029655328,
0.0563845858,
0.1897279024,
-0.3109253645,
0.0160302147,
-0.8132577538,
0.3678288758,
-0.0193115436,
0.2532854676,
-0.2053135186,
0.0359719805,
-0.0377472192,
0.3639241457,
0.3746537268,
0.2076766044,
0.0715544522,
-0.0014276467,
-0.0013188645,
0.0427962355,
0.1832632869,
0.3172470331,
-0.0597408712,
0.0115214959,
-0.0177087784,
-0.5737127066,
0.0423171371,
0.0510376282,
0.0625444427,
-0.0109653957,
-0.2795839608,
0.2245614231,
0.3119567037,
0.14393574,
-0.0390034989,
-0.2761302888,
0.3555091918,
-0.1490617394,
0.0674829632,
-0.0336020328,
0.204939425,
0.093679592,
-0.4758707881,
0.1259449124,
0.0696861595,
-0.2321199775,
-0.0411867797,
-0.0239275247,
0.1523930877,
0.1186014265,
0.2039055228,
0.0417624041,
0.3559783101,
-0.0677289069,
-0.114814505,
-0.5655719042,
-0.0974953026,
-0.2459744066,
0.3128046691,
-0.1374591589,
0.3027484417,
-0.1450625956,
0.0440846831,
-0.0077924281,
0.3880823255,
0.3565627337,
0.0990418494,
-0.1623946428,
-0.2619996667,
-0.3227410614,
0.1392247379,
0.2651118934,
0.2450652868,
-0.0310611613,
0.1129159033,
-0.4395874143,
-0.7549798489,
0.446339041,
-0.5544965267,
-0.0952444971,
0.0162802115,
0.3003900051,
0.3546909094,
-0.0889632404,
-0.5038308501,
-0.1051777303,
0.3698129952,
0.0651457161,
-0.0476121567,
0.0583502799,
0.1136679277,
0.0546239614,
-0.0278609432,
1.0447942019,
0.2161822468,
-0.1762980223,
0.1037138551,
-0.4345040321
] |
https://github.com/huggingface/datasets/issues/2871 | datasets.config.PYARROW_VERSION has no attribute 'major' | Hi @bwang482,
I'm sorry but I'm not able to reproduce your bug.
Please note that in our current master branch, we made a commit (d03223d4d64b89e76b48b00602aba5aa2f817f1e) that simultaneously modified:
- test_dataset_common.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-a1bc225bd9a5bade373d1f140e24d09cbbdc97971c2f73bb627daaa803ada002L289 that introduces the usage of `datasets.config.PYARROW_VERSION.major`
- but also changed config.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-e021fcfc41811fb970fab889b8d245e68382bca8208e63eaafc9a396a336f8f2L40, so that `datasets.config.PYARROW_VERSION.major` exists
| In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
| 47 | datasets.config.PYARROW_VERSION has no attribute 'major'
In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
Hi @bwang482,
I'm sorry but I'm not able to reproduce your bug.
Please note that in our current master branch, we made a commit (d03223d4d64b89e76b48b00602aba5aa2f817f1e) that simultaneously modified:
- test_dataset_common.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-a1bc225bd9a5bade373d1f140e24d09cbbdc97971c2f73bb627daaa803ada002L289 that introduces the usage of `datasets.config.PYARROW_VERSION.major`
- but also changed config.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1e#diff-e021fcfc41811fb970fab889b8d245e68382bca8208e63eaafc9a396a336f8f2L40, so that `datasets.config.PYARROW_VERSION.major` exists
| [
-0.3742082715,
0.1478583813,
0.0884074792,
0.0458859652,
0.2804539204,
0.1281490028,
0.1531108022,
0.3776513338,
-0.2427560389,
0.201121375,
0.3052013516,
0.4177036881,
-0.1865008622,
0.1149607077,
-0.1479020119,
0.0099560805,
0.053092137,
0.2520796359,
0.1291817129,
0.0060467869,
-0.1062644795,
0.1722441614,
-0.1942497343,
0.2815796435,
-0.2942166626,
0.1177278608,
-0.0419812314,
-0.0479393266,
-0.1290826797,
-0.5930624008,
0.3376211822,
-0.1589788049,
0.2437151372,
0.3399905562,
-0.0001267467,
0.1114127934,
0.4063087702,
-0.0081882402,
-0.2549677193,
-0.5021970868,
-0.1217939556,
-0.0536485873,
0.3664948642,
-0.0817653835,
0.1027121693,
-0.7000573874,
0.0134146102,
0.0499354377,
-0.1659478843,
0.329719305,
0.1360016614,
0.0637334138,
0.2616917491,
-0.0975201577,
0.2251864523,
0.0621268749,
-0.0079680383,
0.464941591,
0.0723095462,
-0.110189423,
0.2356002927,
-0.0848245993,
0.0687130913,
-0.0513687208,
0.0992350727,
0.1825545132,
0.2629992366,
-0.1627098769,
0.1989027709,
0.0318586379,
0.5882599354,
-0.6263433695,
-0.4298152328,
-0.0176615417,
0.220207274,
-0.2607832849,
0.2262852788,
0.2429367006,
-0.1009411812,
0.1628728211,
-0.0570025295,
-0.120620966,
-0.0635351241,
-0.0164816119,
-0.4222541153,
0.3365791142,
0.1881286502,
0.1403082162,
-0.1132395044,
-0.0093298722,
0.0025074817,
-0.1097335294,
0.1019929647,
-0.0780157,
-0.2746735215,
-0.0144314393,
-0.0775343478,
0.1633088887,
0.1757596135,
0.2084085345,
0.003034953,
-0.2792116106,
0.2704049647,
0.0860599205,
0.1035958529,
0.1269083172,
-0.020438984,
0.1562924832,
0.1005842686,
-0.1070767418,
0.0690042824,
-0.0031421804,
-0.0581312403,
-0.0568243153,
0.3815540373,
0.0283410065,
0.7426700592,
-0.2355116904,
-0.2066711485,
0.1739301831,
-0.3724194765,
-0.179325372,
-0.266005218,
0.2187241614,
0.0305576548,
0.3607173562,
-0.1849213988,
0.3320732117,
-0.0956050158,
-0.2356073856,
-0.1135949865,
0.145772323,
0.0022744164,
-0.1549611241,
0.0268714651,
-0.3101927042,
-0.0878967419,
0.3905236125,
0.0014738571,
0.1260320544,
-0.1415989995,
-0.0541732311,
-0.1536235809,
0.4754760861,
-0.2805732787,
0.2540763617,
0.1305660903,
-0.4681429267,
-0.3429702222,
0.2116097808,
-0.2033768296,
-0.4039483666,
-0.4072817266,
0.1281084865,
-0.1272283494,
-0.1809759289,
-0.1497176886,
-0.0052620391,
0.230634436,
-0.1509695202,
-0.0146371536,
-0.6668521762,
0.1032238454,
-0.3199045956,
0.2467019856,
0.1543768197,
-0.633502841,
0.0087505132,
0.1704794317,
-0.190020889,
0.1658154875,
-0.1197976246,
0.0055149458,
-0.1398757249,
0.0290390849,
0.0476634502,
0.3468934894,
-0.1955855191,
-0.3685946465,
0.0728682801,
0.0580837652,
-0.0002380684,
0.2594130039,
-0.3139026761,
0.0474223904,
0.1808192283,
-0.167907089,
0.0811103657,
0.0019093063,
0.0160691738,
-0.1740120649,
-0.0421569236,
0.3828533888,
0.2783964276,
0.149921298,
-0.1601756066,
0.0293609388,
-0.2005847991,
0.1286724806,
-0.0868611783,
0.0851055384,
0.0264915377,
0.4046370685,
-0.1430397332,
0.0339467973,
-0.2175853699,
-0.3197010458,
0.1867123544,
0.0698746443,
0.0265332889,
-0.3560788035,
-0.1848595738,
-0.1795896441,
0.1088648587,
-0.1084896475,
-0.0283280127,
0.0058019497,
0.3832252324,
0.0711454004,
0.1115478799,
-0.2974826694,
0.2475377768,
0.0242410153,
0.1781356037,
-0.0212112777,
0.4727579653,
-0.4082579017,
-0.3153122663,
0.0902255625,
0.0457067899,
0.102861926,
0.039166946,
-0.0002052151,
0.2879416645,
-0.0028912649,
0.0584645942,
-0.02767675,
0.2250143588,
0.0138646495,
-0.1725011766,
-0.1926609278,
0.2565887868,
0.0011451654,
0.4009822905,
0.1184243411,
0.3715969622,
0.5518645644,
0.3002988994,
-0.0234601423,
0.0936509818,
-0.1508526802,
-0.0168526545,
0.1085570753,
-0.0839205831,
0.0393526368,
-0.1069300026,
0.2100667804,
-0.0077001844,
-0.5035152435,
0.084020406,
0.3833172023,
-0.0595607907,
0.1452020705,
0.1436307728,
-0.260905385,
0.0484304652,
0.0339329094,
0.1345784664,
0.2741984725,
0.1518547833,
-0.1246566772,
0.1309268326,
-0.318816483,
0.1648000926,
0.182839632,
0.1089480892,
0.1759982854,
0.1831197292,
0.2829287052,
0.0866184905,
-0.0567069091,
-0.3240152597,
0.1387682855,
0.3523795605,
-0.4344473779,
0.2530077696,
-0.3444129527,
0.2502820492,
-0.1669088751,
-0.18621099,
-0.4147617519,
-0.2429393828,
-0.03043814,
0.0963686258,
0.1005034447,
0.2397006452,
-0.3122081161,
-0.1296306103,
0.0462816879,
-0.398812741,
-0.2186689675,
-0.1758570373,
-0.4486288428,
-0.0190908443,
0.2013365626,
-0.3951259255,
0.0396513268,
-0.2199629098,
-0.2137854546,
-0.3060595393,
-0.1851970255,
0.0833885223,
-0.2393287867,
0.2992103696,
0.2597302794,
-0.0382421799,
-0.0473478921,
-0.0988906398,
0.3235454857,
-0.3321583867,
-0.2847577035,
0.1006461233,
-0.0942855775,
0.0356608294,
-0.0603934899,
-0.4970042109,
-0.357511282,
-0.1462481916,
0.0124238543,
0.0410997495,
0.1555685401,
-0.0624718517,
0.2309514731,
-0.1249247789,
-0.148911804,
-0.010573322,
-0.0276865698,
0.0039669275,
0.2373255938,
0.0062802844,
-0.2969487607,
-0.0511557087,
0.0064248815,
0.0896271765,
0.0367037728,
-0.3144405782,
-0.1439501345,
0.0547291785,
0.5389251113,
-0.3207368553,
0.0192000214,
0.297077477,
0.2694778442,
-0.0367961228,
0.0630885065,
-0.178724736,
-0.1892793477,
0.1446789503,
0.1415686011,
0.1744130403,
0.241091311,
-0.0849477947,
0.579000771,
-0.070344165,
-0.2986300886,
0.2510006428,
-0.2920910418,
0.3411945701,
0.0630542412,
-0.1798297763,
-0.088697955,
-0.0483297706,
0.0156399384,
0.2517922521,
-0.2184790969,
-0.149674803,
-0.1239425242,
-0.2539522648,
-0.2212260514,
-0.0426101796,
-0.061210759,
0.0359983109,
0.2440868616,
-0.0551077649,
0.0298618078,
-0.0403755568,
-0.0545972586,
0.1456446648,
0.3016494215,
-0.2157077789,
0.1017486006,
-0.1830851436,
-0.1527077109,
-0.1803332567,
0.3837954402,
0.0439698137,
0.4377393723,
0.1552539319,
-0.1999729872,
0.0833068937,
-0.1641712785,
0.5928216577,
-0.1187064648,
0.1239388436,
0.1585400105,
-0.1371154189,
-0.395542264,
-0.4143472314,
-0.4618230462,
0.08394216,
0.0049618557,
0.197327897,
-0.2952905297,
-0.1378475726,
0.2305309176,
0.1844813228,
0.0506921932,
-0.0268237591,
-0.4164668918,
-0.0658162907,
-0.1691920161,
0.2111216784,
-0.1269625127,
0.3692862093,
-0.1657081246,
0.4781221151,
-0.1405241638,
-0.1776959002,
0.1654680669,
0.2207292616,
0.3384036422,
-0.3253701031,
-0.0032505244,
-0.1957052052,
0.2242891788,
0.6268396974,
0.5107083321,
0.3266796172,
-0.3425289392,
0.2157905698,
0.2769281864,
0.5334733129,
-0.0198666155,
-0.4827550054,
-0.095860593,
-0.2471355349,
0.0602891855,
-0.0659035742,
-0.0321026817,
0.5593259931,
-0.1096104532,
-0.5021072626,
-0.0202025957,
0.5698214173,
0.1894669086,
-0.0793705955,
0.0957341194,
0.3778427243,
-0.1557371318,
0.3602989614,
-0.133469075,
0.7824114561,
0.0175449103,
0.2209134698,
0.1155822873,
-0.4412600398,
0.2862612009,
-0.0613787398,
0.0911193267,
-0.5176573992,
-0.336623013,
-0.1464529186,
-0.2395019233,
0.1303436607,
0.0145636369,
-0.206828028,
0.2747063935,
0.0475890189,
0.4116236866,
0.3609588146,
0.3171048164,
-0.0719517246,
0.2720513344,
-0.2521820664,
-0.0217563305,
-0.0593511723,
0.0917054787,
0.128119424,
0.0586950742,
-0.2239384353,
-0.4248757958,
-0.3383874893,
0.0584695041,
-0.2342780679,
-0.0421389751,
0.450894773,
-0.5700244904,
0.1182596833,
0.042615559,
-0.1173637509,
-0.032963369,
-0.1581281424,
-0.0164401494,
-0.0627332032,
0.1840557605,
0.1415056884,
0.0766140074,
0.4222029448,
-0.0112856925,
-0.3214783669,
0.2916192114,
-0.0392377898,
0.019097656,
-0.0512055457,
-0.0198285393,
0.1973825246,
-0.2740911245,
0.1948557496,
-0.5745172501,
0.2753390074,
-0.2236594707,
0.0186476633,
-0.1024588048,
0.000749629,
-0.0163123868,
0.1178033948,
-0.2898898125,
-0.2125736922,
0.3666989207,
0.0528494529,
0.2823128402,
0.5269951224,
-0.0676544085,
-0.0817731246,
-0.0454058796,
0.0528813899,
0.2541746795,
-0.3957657218,
-0.0471704006,
-0.0543741658,
0.0327483416,
0.0790852904,
0.1984804422,
0.2237325013,
0.2555362284,
0.0201188028,
-0.5458893776,
-0.0552602112,
0.1743022203,
-0.1844222546,
0.0464428067,
0.2021575421,
0.2829450965,
0.1664928496,
-0.2004851103,
-0.1850071251,
-0.0044213161,
-0.043110922,
0.139864251,
-0.1864717007,
0.1530421823,
0.1342081875,
-0.0325629935,
0.1182300001,
-0.2170259207,
-0.070616968,
-0.0740984008,
-0.2204392552,
0.1982031465,
0.0624702387,
0.2393829674,
0.1128435582,
0.0884267613,
-0.0120736575,
-0.0264757778,
0.1066361442,
0.1785605848,
-0.2272363603,
0.3060316443,
0.4929538071,
-0.262290746,
-0.342782706,
-0.0386491045,
-0.1529735774,
-0.115770936,
0.1555683762,
0.4499002695,
-0.1631076336,
0.1811011881,
-0.2985675037,
0.0400751568,
-0.2388182729,
-0.0395775139,
0.1804854423,
-0.4256383181,
-0.2396808416,
-0.0433828719,
0.4485314488,
0.2221604586,
-0.2303750217,
-0.0980584174,
0.1173267812,
0.0090721436,
-0.4490540028,
0.0356155261,
0.2640765607,
0.1550161839,
-0.0410299078,
0.4426926374,
0.4489092529,
-0.287322253,
-0.0974354595,
0.1774397343,
0.4901803136,
0.2559276521,
0.1621129513,
0.5159204602,
-0.0438938886,
0.1582225263,
0.4991028011,
0.2005465627,
-0.099890247,
0.4372413456,
-0.1124541685,
0.1261387169,
0.116466105,
-0.2075041533,
0.0423413441,
-0.1860406399,
0.2623977065,
0.0324445888,
0.3752457798,
-0.2654275596,
0.1894046813,
0.3313001394,
0.2059776187,
-0.2006646991,
-0.1015893146,
0.0663826764,
-0.0794086158,
-0.0449129678,
0.1113160849,
-0.253487587,
-0.2293631434,
-0.0513659529,
-0.1425134987,
-0.2100434303,
0.6946988106,
0.2750623822,
-0.1903173625,
-0.3078862727,
0.1221389771,
0.1174295545,
0.048912961,
-0.2738500535,
0.3728528917,
0.0805969983,
-0.081271857,
0.223117128,
0.3539700806,
0.8215013742,
0.2467615604,
-0.0757997334,
-0.3166640401,
-0.1711075902,
0.0428911448,
0.2550631762,
-0.0129180672,
0.0328656361,
0.0312778018,
0.2523141205,
0.0757339448,
0.0942194313,
-0.0254333206,
0.1040951759,
-0.0186159015,
-0.4002718925,
0.3342920542,
0.1377335489,
-0.2329227626,
0.0334779136,
0.3048775494,
-0.2463754117,
-0.0460600518,
0.2661555707,
0.5599738359,
-0.1200681403,
-0.1416712999,
-0.0092102699,
0.2585319579,
0.3113088906,
0.5630508065,
0.1585424989,
-0.2242983878,
-0.1859927475,
-0.4756968617,
0.4308846593,
-0.2150819451,
-0.1064558476,
0.2760232091,
0.0639475435,
0.0704118907,
0.1569856703,
0.3471614718,
0.4209793806,
-0.3910067677,
0.1344710588,
-0.3857069016,
-0.2570206523,
0.0194004327,
-0.1237018183,
-0.0705664009,
-0.0510135628,
0.1715072691,
-0.5911439657,
0.0238801017,
-0.1454248726,
-0.2321885973,
0.1721450686,
-0.0550272204,
0.5031514168,
0.00703777,
0.6460561156,
0.0470302701,
-0.1947337389,
-0.2284394503,
-0.1045868918,
-0.4692243338,
0.60171628,
-0.268347919,
0.2230910659,
-0.1235532165,
-0.3353490829,
-0.2232297063,
0.2529108524,
0.0031419992,
0.0884143114,
0.004312411,
0.1209903732,
0.071386531,
-0.0406130664,
-0.0173882581,
-0.058698982,
0.0150131732,
0.3013275564,
-0.5924038887,
-0.697758913,
0.4954079092,
-0.3196097314,
-0.3000345826,
-0.4309998155,
0.2480505705,
0.0159251168,
-0.0336425155,
-0.5722134113,
0.1170048118,
0.4677249491,
0.0741852894,
-0.221197933,
-0.1495644152,
-0.0770952702,
0.379760772,
-0.1158955321,
0.4920506179,
-0.2867053747,
-0.1916608959,
-0.2343586236,
-0.2670708895
] |
https://github.com/huggingface/datasets/issues/2871 | datasets.config.PYARROW_VERSION has no attribute 'major' | Reopening this. Although the `test_dataset_common.py` script works fine now.
Has this got something to do with my pull request not passing `ci/circleci: run_dataset_script_tests_pyarrow` tests?
https://github.com/huggingface/datasets/pull/2873 | In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
| 25 | datasets.config.PYARROW_VERSION has no attribute 'major'
In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
Reopening this. Although the `test_dataset_common.py` script works fine now.
Has this got something to do with my pull request not passing `ci/circleci: run_dataset_script_tests_pyarrow` tests?
https://github.com/huggingface/datasets/pull/2873 | [
-0.3413380682,
0.2006243169,
0.0493727773,
0.0571893826,
0.1107941791,
0.0854445249,
0.235339731,
0.2816727757,
-0.1760854423,
0.1386214495,
0.4381389022,
0.3304320574,
-0.1294844598,
0.2977351248,
-0.1947031617,
0.0704641864,
0.0133856386,
0.142753616,
0.3433146179,
0.0562439114,
-0.1254508346,
0.2392578125,
-0.1946723759,
0.1283948123,
-0.1329981089,
0.0372126177,
-0.1708889008,
0.0408573933,
-0.1387817562,
-0.4680927098,
0.4385560155,
0.0902259499,
0.1819552928,
0.6217030287,
-0.0001299516,
0.1380508542,
0.4102709591,
-0.0885429904,
-0.2731286585,
-0.5470474362,
0.0774913803,
-0.0126979426,
0.3988083005,
-0.1040789187,
0.0965569243,
-0.3847818375,
-0.0448813997,
0.1092318743,
-0.0679034591,
0.3774313033,
0.0892631635,
0.2561307549,
0.0892846137,
0.0130178109,
0.2664372921,
0.3202233315,
-0.1790554225,
0.4346642494,
0.1634720713,
-0.136852622,
0.1822316349,
-0.0818930566,
-0.0010011271,
0.0381131694,
0.058765918,
0.0650134459,
-0.0054224916,
-0.2756884396,
0.2095606178,
-0.0046765124,
0.4738270342,
-0.5655618906,
-0.4999670386,
0.0325701535,
0.1310690492,
-0.2759969532,
0.1989558786,
0.1092876419,
-0.2475143671,
0.1120674983,
-0.1768940687,
-0.1210495085,
-0.0797205046,
-0.0597055443,
-0.4520730674,
0.1955432594,
0.1415926665,
0.1933697611,
0.0005675841,
-0.0080451323,
0.0825761333,
-0.1077339947,
0.1832362711,
-0.0202006381,
-0.2383794338,
-0.0761250854,
0.0723487586,
0.3277741075,
0.2713032365,
0.4195836186,
0.0403553843,
-0.1306673586,
0.1742662638,
0.0946187377,
0.0676532388,
0.2015321851,
-0.0325331129,
0.1100755781,
0.2688364089,
0.0022646524,
0.0251367539,
-0.0340528563,
-0.0820882916,
-0.1183394641,
0.2201673388,
0.0307948999,
0.832904458,
-0.3100615442,
-0.2644136548,
0.0647197217,
-0.4131417274,
-0.145634532,
-0.1949629933,
0.212033391,
0.1063022763,
0.3991498649,
-0.0541127101,
0.3935262859,
-0.0928058326,
-0.0335156843,
-0.1254985631,
0.0960213542,
0.0741092488,
-0.0745832101,
0.2243501991,
-0.3418166637,
-0.0214520022,
0.2785850167,
0.2317497581,
0.1688361764,
0.0847872496,
0.1707448512,
-0.0158238821,
0.5882760286,
-0.1170845404,
0.3030571938,
0.1808869839,
-0.4662671685,
-0.3240083754,
0.2942481339,
-0.3417187929,
-0.311983943,
-0.1544469893,
0.0395624861,
-0.3309829831,
-0.2279404998,
-0.2230110615,
-0.1995643675,
0.2305959165,
-0.0955438465,
0.0377826542,
-0.643155098,
0.1101012006,
-0.2451970279,
0.2660878897,
0.2522025108,
-0.4532642066,
0.0551286042,
-0.0058160424,
0.0077624582,
0.1686532646,
0.1081847996,
-0.0699361339,
-0.1368115395,
-0.0259975381,
0.0800720751,
0.452093184,
-0.4171760678,
-0.3087328076,
0.2504969835,
-0.0502100512,
0.0525270104,
0.2544583678,
-0.4099239409,
0.0670627281,
0.1091566756,
-0.1023416743,
-0.055972334,
-0.0132138999,
0.100846827,
-0.1170873344,
-0.0518477038,
0.4205109775,
0.2592458129,
0.0945968628,
-0.1817266643,
-0.0615672059,
-0.3520299196,
0.2080372274,
-0.0581730269,
-0.0000344366,
-0.0472281091,
0.415410012,
-0.301741153,
0.0376630127,
-0.0054553822,
-0.2810012698,
0.2353982329,
0.1397242844,
0.183251977,
-0.4007820189,
-0.2460962683,
-0.2957420051,
0.1120927557,
-0.1815856397,
-0.0250832066,
-0.0734231472,
0.3676603734,
0.0943573862,
0.0908513963,
-0.2459864765,
0.1231615022,
-0.054971002,
0.1216385514,
-0.0157054067,
0.3610075414,
-0.3976746798,
-0.3114206791,
0.1486183405,
0.0152978925,
0.1552102566,
-0.0953351259,
0.049207408,
0.1977921277,
0.0182923973,
-0.0615075752,
0.0249139667,
0.2371183932,
0.0974486619,
-0.1439390182,
-0.1320541352,
0.2738496959,
-0.0527514443,
0.228892222,
0.0089536309,
0.4483507872,
0.4337403476,
0.4135376215,
-0.0052917004,
0.1331375241,
-0.0789799243,
0.0464651659,
-0.1026587486,
0.0235416144,
0.06232059,
-0.1579684615,
0.2385577559,
-0.0083107138,
-0.4083738327,
0.1789083779,
0.4755970538,
0.0045281947,
0.0512076318,
0.1263184249,
-0.0464048907,
0.0135154724,
0.1427054852,
0.1196601763,
0.3690713644,
0.1315706819,
-0.1269988865,
0.1280187815,
-0.3089669645,
-0.0002404824,
0.0881364197,
0.0855408162,
-0.0177239664,
0.1066994369,
0.2934766412,
0.0094749704,
-0.1714619398,
-0.5069292784,
0.1386286467,
0.3523925245,
-0.554453671,
0.2957420349,
-0.2599962056,
0.2412187308,
-0.0563948676,
-0.0995177627,
-0.3512247205,
-0.3400329947,
-0.0426340848,
0.1322476119,
0.1855419278,
0.1987329721,
-0.3156893849,
0.0858148932,
0.0278858617,
-0.5474076867,
-0.3988510966,
-0.2250472307,
-0.3432812393,
-0.0082414709,
0.3350316286,
-0.3440192938,
0.1043744385,
-0.353600651,
-0.0615597814,
-0.3151575327,
-0.3276816905,
0.0971032754,
-0.3790065944,
0.3400277495,
0.264110744,
0.1390075386,
-0.0936908945,
-0.0775849521,
0.2825621367,
-0.3451506197,
-0.3498210609,
0.0558033958,
-0.0393704996,
-0.0816588104,
-0.2297521681,
-0.4395766556,
-0.1756116152,
-0.1256150603,
0.1797548532,
0.1345766038,
0.0894501954,
0.1602126956,
0.261731267,
-0.1119602174,
0.0015941411,
-0.0800454021,
0.0416264832,
-0.1853195429,
0.3113857508,
-0.1229891032,
-0.2905150354,
0.076814115,
0.0901875794,
0.2567838132,
0.0905641466,
-0.3195662498,
-0.208856374,
0.0071462039,
0.5721033812,
-0.1528172344,
0.0589571074,
0.3950418234,
0.1801726222,
0.0335803628,
0.0303172544,
-0.2007783353,
-0.0994261354,
0.1576835215,
0.0561937094,
0.1956198215,
0.2270440757,
-0.064581275,
0.77778548,
-0.091266118,
-0.2477526665,
0.3013985157,
-0.3482934535,
0.4125494361,
0.0924602821,
-0.3143630624,
-0.1148334444,
-0.0043496266,
-0.0983641818,
0.1719358265,
-0.1672708392,
-0.1968490481,
-0.1316080987,
-0.2043839395,
-0.1171978042,
-0.0901858732,
-0.0458138473,
-0.0148273855,
0.2799759805,
-0.0396879092,
0.1678756326,
-0.1324228644,
-0.0496871844,
0.1742268652,
0.4427693486,
-0.0196972005,
0.0237190574,
-0.262448132,
-0.2940680981,
-0.2959464192,
0.3724194467,
0.0611568876,
0.4008817673,
-0.0266814306,
-0.1610319018,
0.1031046137,
-0.3025606871,
0.6163401604,
-0.2401423454,
0.08069361,
0.3421915472,
-0.2250522822,
-0.4068374038,
-0.3200124502,
-0.4515898228,
0.1839900017,
-0.0279773585,
0.2594495118,
-0.2801223993,
-0.3214557767,
0.2671275139,
0.1050607413,
0.0664295405,
0.0288711004,
-0.5246192813,
-0.4429925382,
-0.2986674309,
0.2140106857,
0.0544984862,
0.2545916736,
-0.3563590646,
0.4444728196,
-0.0712302923,
-0.2317401171,
0.2484553456,
0.2951728106,
0.2508277595,
-0.1330597103,
-0.0640559644,
-0.1815864444,
0.0097760949,
0.4776946008,
0.5681916475,
0.37771824,
-0.2568674684,
0.3769101799,
0.203181237,
0.5758683085,
0.2257900536,
-0.4059254527,
-0.05272099,
-0.1149653569,
-0.0379135832,
-0.0809892267,
0.122076124,
0.514346242,
-0.2152795792,
-0.351526618,
-0.0673800185,
0.3762575984,
0.2904919982,
-0.0491690412,
0.1210092902,
0.4069831073,
-0.1331268698,
0.3132098615,
-0.1312796772,
0.8649087548,
0.0573807433,
0.2569828629,
0.1712691337,
-0.322670877,
0.0820888728,
-0.0039618313,
0.0175483823,
-0.4571154118,
-0.1686370671,
-0.179682821,
-0.2954652607,
0.2304840237,
-0.0226179343,
-0.1865593791,
0.229722634,
0.0601243675,
0.4995065629,
0.4300906062,
0.3966608346,
-0.2316231728,
0.3145559728,
-0.2194424421,
-0.017298542,
0.0293018743,
0.2286306024,
0.1244779155,
-0.0027930737,
-0.2746599317,
-0.4961459041,
-0.370462656,
-0.0256940387,
-0.2890322208,
-0.1104237437,
0.3295891881,
-0.7482534051,
0.2486485094,
0.0339218974,
0.1098258346,
0.0075347805,
-0.3014063835,
0.0366481468,
-0.1004753113,
0.1164052188,
0.230558753,
-0.0126890466,
0.3798059523,
0.0022485182,
-0.3695719242,
0.2487474978,
-0.0775891393,
-0.1284071803,
-0.1045807526,
0.0652093291,
-0.0416566655,
-0.3378791809,
0.1743742228,
-0.5917773247,
0.1822230965,
-0.0884274021,
-0.0206443965,
-0.1191922873,
0.0958006084,
0.025434332,
0.2053677738,
-0.2256226838,
-0.1250715256,
0.274312824,
-0.0698660165,
0.1688298583,
0.5413681865,
-0.013897486,
0.0417849496,
-0.0379352458,
0.0337936133,
0.2881394625,
-0.4225571752,
0.0193726458,
-0.0664408058,
0.0207806379,
-0.0079839826,
0.5095459819,
0.0708175823,
0.2001806945,
-0.0391865447,
-0.4795255363,
-0.009307038,
0.2478468716,
-0.0300480854,
0.1569506824,
0.1399678439,
0.2862485647,
0.2056423724,
-0.4054955244,
-0.1714911163,
-0.0400296263,
-0.0005372614,
0.0970596075,
-0.1244994402,
0.0023441846,
0.1719813794,
-0.0211473852,
0.0245667771,
-0.1681085527,
-0.076664716,
-0.0485597327,
-0.1229086816,
0.2095739096,
0.0366380066,
0.1580320299,
0.1997239143,
0.0126826167,
0.0098166354,
-0.013130201,
0.16014494,
0.0829433203,
-0.1392779201,
0.0932433233,
0.1914658248,
-0.1461137533,
-0.3684508204,
0.0260949917,
-0.1601085365,
0.0838334411,
0.1734333932,
0.3831005991,
-0.124329716,
0.1700464338,
-0.1644285321,
0.136464417,
-0.1596183628,
0.0139148217,
0.2238866389,
-0.3504801393,
-0.2246345729,
-0.0711622983,
0.5016793609,
0.2746839821,
-0.1880667508,
0.0494722649,
0.0735974312,
-0.065756239,
-0.3324202597,
0.0811483264,
0.3131483197,
0.1644695997,
-0.0142202377,
0.5696219206,
0.3624664545,
-0.2893330455,
0.1590238214,
0.11968413,
0.7548350692,
0.2659271955,
0.0646335855,
0.1735049039,
-0.1727521867,
0.1701313555,
0.4858204722,
0.0595218465,
-0.0590774156,
0.1139838621,
-0.1660735011,
0.180677101,
0.0633859411,
-0.1396624744,
0.001239147,
-0.166103065,
0.3387808502,
-0.2645158768,
0.3434378803,
-0.2066048384,
0.1852729768,
0.4347059131,
0.0754558295,
-0.1739104539,
-0.2398149967,
0.106615141,
-0.0229048543,
-0.0884504318,
-0.1149528474,
-0.2485226393,
-0.1854368299,
-0.0515635461,
-0.1260226667,
-0.1242797971,
0.6650737524,
0.1825417131,
-0.1802323163,
-0.2559808493,
-0.0092404205,
0.0285578705,
0.0777161345,
-0.2637619972,
0.4144212902,
0.0703172758,
-0.1295516342,
0.0619428158,
0.3388366997,
0.9245892167,
0.1384817064,
-0.1193417162,
-0.3575939536,
-0.2355308086,
0.0099259093,
0.1386949718,
0.0076979659,
-0.0125987642,
0.1495124847,
0.1344965398,
0.0862469226,
0.0714662522,
-0.0586300716,
0.1186977029,
-0.1172771156,
-0.4760379791,
0.3648821712,
-0.0168358814,
-0.1769956648,
-0.0490624271,
0.1928957403,
-0.2198528051,
0.0186759271,
0.1510178149,
0.4744873643,
-0.1413978487,
-0.2653831542,
-0.0160906501,
0.1495952308,
0.3990332186,
0.4798592925,
0.2936070859,
-0.2884004712,
-0.1620029062,
-0.6309649348,
0.2499450296,
-0.108917892,
-0.0733904988,
0.1761759073,
0.1923176646,
0.1261360645,
0.1565834284,
0.2528316975,
0.1572814286,
-0.2526710927,
0.074048236,
-0.2817490101,
-0.1842303574,
-0.1126002446,
-0.1680735052,
-0.0837306306,
-0.0515797026,
0.1233396605,
-0.6046463847,
-0.0450350456,
-0.2213485986,
-0.3686111569,
0.1300191283,
-0.2846066952,
0.4359490871,
-0.0453368202,
0.7685066462,
0.1256026626,
-0.150116235,
-0.3288878202,
-0.1370656043,
-0.2852409184,
0.5235646963,
-0.3340821266,
0.2942072749,
-0.0719059184,
-0.3801870346,
-0.2367647141,
0.212556839,
0.1473570466,
0.0150843486,
0.1390546262,
0.1891037226,
-0.0995963737,
-0.0554139391,
-0.0435977653,
-0.0308012329,
-0.025937289,
0.2249901146,
-0.5183082819,
-0.642111063,
0.5877326727,
-0.3876189291,
-0.2811568677,
-0.3539839387,
0.2209096253,
-0.1894459724,
-0.1547932327,
-0.4908483624,
0.0212919116,
0.3034402132,
0.1360801309,
-0.25627321,
0.0768879652,
0.0237820633,
0.2902071476,
-0.0882467851,
0.499348551,
-0.3625540435,
-0.0745921135,
-0.1757295728,
-0.1907046139
] |
https://github.com/huggingface/datasets/issues/2871 | datasets.config.PYARROW_VERSION has no attribute 'major' | Hi @bwang482,
If you click on `Details` (on the right of your non passing CI test names: `ci/circleci: run_dataset_script_tests_pyarrow`), you can have more information about the non-passing tests.
For example, for ["ci/circleci: run_dataset_script_tests_pyarrow_1" details](https://circleci.com/gh/huggingface/datasets/46324?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link), you can see that the only non-passing test has to do with the dataset card (missing information in the `README.md` file): `test_changed_dataset_card`
```
=========================== short test summary info ============================
FAILED tests/test_dataset_cards.py::test_changed_dataset_card[swedish_medical_ner]
= 1 failed, 3214 passed, 2874 skipped, 2 xfailed, 1 xpassed, 15 warnings in 175.59s (0:02:55) =
```
Therefore, your PR non-passing test has nothing to do with this issue. | In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
| 95 | datasets.config.PYARROW_VERSION has no attribute 'major'
In the test_dataset_common.py script, line 288-289
```
if datasets.config.PYARROW_VERSION.major < 3:
packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"]
```
which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested this on both datasets.__version_=='1.11.0' and '1.9.0'. I am using Mac OS.
```
import datasets
datasets.config.PYARROW_VERSION.major
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/var/folders/1f/0wqmlgp90qjd5mpj53fnjq440000gn/T/ipykernel_73361/2547517336.py in <module>
1 import datasets
----> 2 datasets.config.PYARROW_VERSION.major
AttributeError: 'str' object has no attribute 'major'
```
## Environment info
- `datasets` version: 1.11.0
- Platform: Darwin-20.6.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyArrow version: 4.0.1
Hi @bwang482,
If you click on `Details` (on the right of your non passing CI test names: `ci/circleci: run_dataset_script_tests_pyarrow`), you can have more information about the non-passing tests.
For example, for ["ci/circleci: run_dataset_script_tests_pyarrow_1" details](https://circleci.com/gh/huggingface/datasets/46324?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link), you can see that the only non-passing test has to do with the dataset card (missing information in the `README.md` file): `test_changed_dataset_card`
```
=========================== short test summary info ============================
FAILED tests/test_dataset_cards.py::test_changed_dataset_card[swedish_medical_ner]
= 1 failed, 3214 passed, 2874 skipped, 2 xfailed, 1 xpassed, 15 warnings in 175.59s (0:02:55) =
```
Therefore, your PR non-passing test has nothing to do with this issue. | [
-0.4502639174,
0.1362893283,
0.0727611184,
-0.0077380314,
0.2104403079,
0.1455689669,
0.1347787529,
0.3891865909,
-0.2612732053,
0.1966491044,
0.2423588932,
0.440992415,
-0.1745342761,
0.1955471635,
-0.2465570122,
0.0201375857,
-0.0359612107,
0.1991019547,
0.1349837631,
0.0418356508,
-0.1486247331,
0.162590459,
-0.2162211686,
0.26479581,
-0.1537037492,
-0.0561997816,
-0.088939175,
-0.0443793647,
-0.1304094791,
-0.5437796116,
0.3741038144,
-0.0596003532,
0.1746741235,
0.5324843526,
-0.0001234939,
0.1340291202,
0.3579033315,
-0.09974356,
-0.3201579452,
-0.4985060096,
0.0303548202,
0.0250715911,
0.3309288621,
-0.1497162431,
0.045702666,
-0.590531528,
-0.0560617298,
0.0112039968,
-0.026458323,
0.4921305776,
0.1557276696,
0.1648602188,
0.0755559951,
-0.1378794909,
0.2102550864,
0.0898554623,
-0.0760814324,
0.470676899,
0.1216386557,
-0.0717130452,
0.1600069404,
-0.1023204923,
-0.0217080079,
-0.0166187864,
-0.0197364707,
0.0890948996,
0.2701403201,
-0.2540643215,
0.275823772,
0.0213560238,
0.6139841676,
-0.6099302769,
-0.402813077,
0.0584964678,
0.1510486305,
-0.197794348,
0.2043726444,
0.1740199327,
-0.2345985472,
0.1370752305,
-0.1940619946,
-0.0381155796,
-0.0790200979,
-0.1012424678,
-0.3796560764,
0.2510073185,
0.1984759569,
0.171202004,
-0.0156710986,
-0.1160793751,
0.0763114691,
-0.1649235189,
0.1704021543,
0.0014239177,
-0.2107874155,
-0.1296832263,
-0.0683171898,
0.3605410159,
0.2446825206,
0.2437425405,
0.0395205244,
-0.2193708122,
0.2899463475,
0.1493430734,
-0.0002068989,
0.0608307309,
0.0282585211,
0.1525739729,
0.1156842411,
-0.074304074,
0.0116417482,
0.0125757828,
-0.0356714055,
-0.1347550005,
0.2806887329,
-0.0175589025,
0.7477177382,
-0.3860925436,
-0.3294264078,
0.1127075404,
-0.3191032112,
-0.1121122763,
-0.1496734172,
0.3698423505,
0.0801953897,
0.3064727187,
-0.2025550306,
0.3027331531,
-0.1487697363,
-0.1783849299,
-0.0953059271,
0.0878899693,
-0.0219248757,
-0.1331826746,
0.1687430292,
-0.2979693413,
-0.0465056039,
0.3469099402,
0.1025215238,
0.1879932433,
0.0652617961,
-0.0026952662,
-0.0544138551,
0.4611657262,
-0.2218510509,
0.2516640723,
0.1780834943,
-0.5087431669,
-0.3634718657,
0.2743992507,
-0.2164252996,
-0.3534747362,
-0.2432027757,
0.1512814909,
-0.0920186117,
-0.2586001754,
-0.0489279442,
-0.061350897,
0.1802082658,
-0.1575634778,
-0.00429447,
-0.6692391634,
0.1291497946,
-0.3172440529,
0.2979749143,
0.2355629206,
-0.540328145,
0.0511985049,
0.1171006784,
-0.1538693011,
0.220856294,
-0.0480545163,
0.0285182074,
-0.168448016,
0.0083823353,
0.0004041493,
0.3619307876,
-0.3157840371,
-0.2808327675,
0.2037827373,
0.1373578757,
-0.0054160506,
0.2581102848,
-0.355954051,
0.0676775277,
0.1332529485,
-0.2449014485,
0.0707522109,
-0.0634789616,
0.0394992828,
-0.1724349856,
0.0111092851,
0.4310902059,
0.2942527533,
0.0776940212,
-0.1869190931,
0.0541621335,
-0.2536588907,
0.1724238694,
-0.1534915417,
0.0145557523,
-0.0952104181,
0.4228503406,
-0.3071484566,
0.0091018341,
-0.0820848942,
-0.3720259368,
0.2142075002,
0.1426871568,
0.0427833907,
-0.3331010044,
-0.2545280457,
-0.3418053091,
0.0929808244,
-0.1178569198,
-0.0309028104,
0.0290229768,
0.3834605515,
0.0836452246,
0.0666083246,
-0.1785342693,
0.1259469092,
0.0109810755,
0.1843897551,
-0.0219143014,
0.4052855372,
-0.3848953247,
-0.3287784755,
0.1164525598,
0.0147690326,
0.2110704333,
-0.0747006536,
-0.0244302936,
0.3569452167,
0.0668138564,
0.0324972086,
0.0375453345,
0.2812751532,
0.009507997,
-0.274484247,
-0.2255578637,
0.2845185697,
-0.0563144051,
0.3358911574,
-0.0477800108,
0.4245945215,
0.4690215886,
0.2440939546,
0.0434893221,
0.120716162,
-0.0876625031,
0.0307111144,
0.0175957382,
-0.1027696729,
0.123955071,
-0.0975145996,
0.2429558784,
0.0073817857,
-0.4534867406,
0.0181125216,
0.3326228261,
-0.1036968455,
0.0797223747,
0.1088910252,
-0.1348174363,
0.0713324696,
0.1310130507,
0.1286025047,
0.2671001852,
0.1545218974,
-0.0664285868,
0.1459350437,
-0.3957769871,
0.0493684746,
0.1474570334,
0.0469506271,
0.0843834653,
0.1178496256,
0.2030751109,
0.0692256913,
-0.1964524537,
-0.4386538863,
0.169008106,
0.3975125253,
-0.4556102157,
0.2525030673,
-0.2593021393,
0.2879624963,
-0.1762989312,
-0.1013132036,
-0.281275332,
-0.2871733308,
0.0298088677,
0.1613861769,
0.1280525774,
0.2844820023,
-0.3949877024,
0.1308536679,
0.060436897,
-0.538961947,
-0.3587735295,
-0.1788503826,
-0.4358463883,
0.0564847514,
0.2930060029,
-0.2936736047,
0.187001124,
-0.3385721147,
-0.1041573882,
-0.278003037,
-0.2546267509,
0.1000232995,
-0.2732537687,
0.4224727452,
0.2331347167,
0.0653008074,
-0.0509415157,
-0.139446035,
0.2985115051,
-0.5006915331,
-0.2382099777,
0.1075783595,
-0.0609145127,
-0.0281598456,
-0.099257946,
-0.6026317477,
-0.2700943053,
-0.1767315269,
-0.0738295838,
0.1012944654,
0.1171792001,
0.0153191015,
0.179499507,
-0.0414384417,
-0.1064005941,
0.0407316983,
0.0227800384,
-0.0935678035,
0.2638747096,
-0.1412260532,
-0.2470617592,
0.0030328333,
0.059398815,
0.3075079918,
0.0263137743,
-0.3157666922,
-0.1785080135,
0.087080799,
0.5713326931,
-0.2137545943,
-0.0088342139,
0.2017014027,
0.3253878057,
-0.0461312532,
0.0438687503,
-0.1561381221,
-0.2257908136,
0.0831050798,
0.1174169406,
0.1173682213,
0.2478049397,
-0.0001470447,
0.7000099421,
0.0901696309,
-0.2647122741,
0.2456341535,
-0.290442884,
0.3646115363,
0.0215920731,
-0.2104300559,
-0.0293029826,
-0.0032849982,
-0.0899683163,
0.2567012608,
-0.1834509671,
-0.2540483475,
-0.0747876018,
-0.1884065568,
-0.2296491265,
-0.0697396249,
-0.0385252498,
-0.0507596619,
0.2692648768,
-0.0709143877,
0.1493454576,
-0.07006035,
-0.1060435474,
0.2032533884,
0.3706051707,
-0.2543411851,
0.0308761261,
-0.2697108984,
-0.2007371038,
-0.2348986268,
0.4246785343,
-0.0129909925,
0.4772617817,
-0.01696302,
-0.129408896,
0.0974078402,
-0.2080832422,
0.4789678752,
-0.2268108279,
0.0811512619,
0.2893919945,
-0.1709694564,
-0.4463436604,
-0.3620916307,
-0.4987751544,
0.0781410038,
-0.0376699567,
0.2260659039,
-0.2343871295,
-0.2319651395,
0.2269615531,
0.1185378581,
0.0725108981,
0.0037121587,
-0.4310704768,
-0.2614600062,
-0.2430777103,
0.3034364581,
-0.1024957001,
0.3525217772,
-0.3325915039,
0.407581389,
-0.0961005688,
-0.1727210283,
0.2449414134,
0.3544299304,
0.224941805,
-0.2119113058,
0.0260770246,
-0.1250226349,
0.2323431224,
0.5753102899,
0.5339666605,
0.232109651,
-0.2221551239,
0.1890180558,
0.2378937006,
0.6089586616,
0.0379685313,
-0.4350987673,
-0.1311751604,
-0.2159734964,
0.0436225422,
-0.009059852,
0.1054687873,
0.5369827151,
-0.1258685738,
-0.535292387,
0.0339511484,
0.4779815972,
0.2792465985,
-0.1366873235,
0.075934723,
0.315625608,
-0.167442739,
0.4376078546,
-0.1025655195,
0.8173342943,
-0.0009263624,
0.1719652414,
0.1389712095,
-0.302030772,
0.1291726083,
0.0200278908,
0.0107888021,
-0.4951126575,
-0.3523809314,
-0.1284809262,
-0.260692358,
0.249534741,
0.0580629893,
-0.3433745503,
0.3005762696,
0.0194640607,
0.4572970867,
0.4209087491,
0.2916842103,
-0.1678934246,
0.2989629209,
-0.2507618368,
0.0380313993,
0.0244171433,
0.0722336844,
0.1154954359,
0.0764661133,
-0.1413773894,
-0.4948062003,
-0.2790380716,
0.0151465461,
-0.2930015326,
-0.1004594713,
0.3964216113,
-0.573356986,
0.2118076831,
0.0720920712,
0.0481837429,
0.0640389696,
-0.2333732694,
0.0129598957,
-0.1457784474,
0.1276948154,
0.1839487851,
0.0475331619,
0.4533497095,
-0.008721903,
-0.3378643692,
0.3581655622,
-0.0813952163,
-0.0119386762,
0.0148286372,
-0.1256126761,
0.1773063838,
-0.3368037045,
0.246415481,
-0.6286606789,
0.1099734753,
-0.1781970263,
0.045037318,
-0.1984386593,
0.0036134757,
0.1091616005,
0.2272609919,
-0.3318323195,
-0.2118320614,
0.208390221,
0.0059666429,
0.2285711169,
0.5235667825,
-0.088712886,
-0.0480781496,
-0.1036170125,
0.0581535324,
0.3272997439,
-0.3375205398,
-0.0491203889,
-0.0297178887,
0.0656095743,
0.1523430794,
0.3768547475,
0.2776258588,
0.2131870538,
-0.0744464621,
-0.5255507231,
-0.0729651749,
0.2375107259,
-0.0712139755,
0.1975882947,
0.1174603403,
0.3237076104,
0.2238595188,
-0.1134937108,
-0.23970294,
-0.0329566486,
-0.1323350668,
0.1919336617,
-0.0868290812,
0.0964452773,
0.0517006256,
0.0634483695,
0.0887568071,
-0.1928303242,
-0.1422794014,
-0.1109476462,
-0.1475550979,
0.1835368723,
0.1018511951,
0.1381860077,
0.1264923513,
0.0560473949,
0.0490146019,
-0.0467185453,
0.1385231912,
0.039386183,
-0.1792175025,
0.2147744894,
0.3473410308,
-0.1672765017,
-0.3585491776,
-0.0370980799,
-0.204127565,
-0.0396419801,
0.1470279098,
0.3860640526,
-0.2622256875,
0.0606439412,
-0.1839809567,
0.0891806632,
-0.0386755802,
-0.0581179,
0.1145235151,
-0.3145360053,
-0.2465545088,
0.0138947889,
0.4490870833,
0.2860861719,
-0.2015555799,
-0.0300502405,
0.2351494431,
0.0334137604,
-0.4120021462,
0.0085356608,
0.2943554223,
0.1643490642,
0.0969959646,
0.4992053509,
0.3679383397,
-0.3373356462,
0.0763204098,
0.0541082621,
0.4890700579,
0.2271459699,
0.1624105424,
0.4281889796,
-0.1206048056,
0.1489738822,
0.5001077056,
0.0717378557,
-0.06867484,
0.3365829289,
-0.2265963107,
0.2901755273,
0.0518493354,
-0.0947278291,
0.0120785683,
-0.1402912736,
0.3303789496,
-0.0836482793,
0.3031800091,
-0.1854192019,
0.2107686251,
0.3404171467,
0.0991525203,
-0.310397476,
-0.2646107078,
0.007388927,
-0.0769664198,
-0.1239806861,
-0.0777562112,
-0.2487848252,
-0.3113353252,
-0.0424008705,
-0.1833259463,
-0.2136459053,
0.6925197244,
0.2094758749,
-0.1458515823,
-0.2887676954,
0.0996060893,
0.1255618185,
0.066141203,
-0.2412376851,
0.4364032447,
-0.0067152493,
-0.0461822189,
0.1553471684,
0.2981884181,
0.8132762909,
0.2181601673,
-0.173540011,
-0.3258233964,
-0.2322146893,
0.0645577088,
0.2646584213,
0.0630192757,
-0.0373361707,
0.0212637074,
0.2920491397,
0.1168119907,
0.0277589485,
-0.0784620643,
0.0650032386,
-0.1590970159,
-0.4842329621,
0.2990455329,
0.1847797334,
-0.1018588543,
0.0164226424,
0.1767463982,
-0.2542059124,
0.0268723667,
0.2197717428,
0.4025390148,
-0.0997013748,
-0.1280665547,
0.0130576752,
0.2641709447,
0.3753708601,
0.4660415053,
0.3042025268,
-0.3263895512,
-0.2322639823,
-0.5930101871,
0.308155179,
-0.1118551865,
-0.0641734004,
0.2311529517,
0.070342496,
0.1258245707,
0.2151812166,
0.3055859804,
0.3428935111,
-0.2636964917,
0.1026007906,
-0.4001894295,
-0.1769959331,
-0.0904513374,
-0.1819172502,
-0.0943458527,
-0.1717553884,
0.1907267272,
-0.5734675527,
0.0147785693,
-0.1284412593,
-0.3459655941,
0.2003540695,
-0.1925392449,
0.4588809013,
-0.0203616582,
0.7599463463,
0.0570643246,
-0.1314645708,
-0.199570775,
-0.1574077755,
-0.3382562399,
0.5084723234,
-0.2153963894,
0.2439024001,
-0.0355879068,
-0.222345829,
-0.1448098272,
0.2334986776,
0.1409817636,
0.0157281831,
0.0833623111,
0.0926646888,
0.0641423166,
-0.0942071229,
-0.0230029933,
-0.019734202,
-0.0309024565,
0.2972711325,
-0.4680340886,
-0.6723169088,
0.540030241,
-0.338793546,
-0.2352793515,
-0.4275919497,
0.2575132251,
-0.096946165,
-0.0870121792,
-0.4807569087,
0.1060672998,
0.3818357885,
0.0325494967,
-0.2270981669,
-0.0324547626,
0.032650765,
0.320150733,
-0.1376314759,
0.5239676833,
-0.2877165973,
-0.1514036655,
-0.1682211459,
-0.2710401714
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | Hi, @Chenfei-Kang.
I'm sorry, but I'm not able to reproduce your bug:
```python
from datasets import load_dataset
ds = load_dataset("glue", 'cola')
ds
```
```
DatasetDict({
train: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 8551
})
validation: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1043
})
test: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1063
})
})
```
Could you please give more details and environment info (platform, PyArrow version)? | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 66 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
Hi, @Chenfei-Kang.
I'm sorry, but I'm not able to reproduce your bug:
```python
from datasets import load_dataset
ds = load_dataset("glue", 'cola')
ds
```
```
DatasetDict({
train: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 8551
})
validation: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1043
})
test: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1063
})
})
```
Could you please give more details and environment info (platform, PyArrow version)? | [
-0.0594904572,
-0.1199714541,
0.0148643553,
0.2438832521,
0.4732632637,
-0.0013414845,
0.4414614439,
0.1253973544,
-0.0142948739,
0.2675636411,
-0.179977417,
0.4658890069,
-0.1191557497,
0.1054261476,
0.0933513194,
-0.1634458452,
-0.1493486017,
0.1789053082,
-0.095051609,
0.0041560084,
-0.2951408625,
-0.1227453053,
-0.2647021413,
0.1601056904,
-0.4545834363,
-0.2473363131,
-0.1237277836,
-0.0289072134,
-0.2947977483,
-0.307205379,
0.3905931115,
0.0455320813,
0.080201827,
0.5733892322,
-0.0001046333,
0.0857430696,
0.5220627785,
0.0795244575,
-0.1019384712,
-0.4897305369,
-0.1364545226,
-0.1668335795,
0.2139174044,
-0.3938792944,
-0.1748815626,
-0.043417871,
0.0156308077,
0.1047203094,
0.3135634363,
0.4849513769,
0.3089385033,
0.4509331286,
0.0464524627,
-0.2673179209,
0.2966392636,
0.1515996456,
-0.0532515012,
0.3601016402,
-0.0297630988,
-0.1026376188,
0.1846833527,
0.156706512,
-0.2669481933,
-0.0967592821,
0.1903867424,
0.0687864423,
-0.0415394455,
-0.2908974886,
-0.0751495808,
0.4143869579,
0.3387811482,
-0.4593112767,
-0.2788105309,
0.1180643365,
0.2122837007,
-0.2495185435,
0.2602466345,
0.085617438,
-0.0128444843,
0.1975730658,
-0.0867944956,
0.2796070874,
-0.2793030739,
0.3049075603,
-0.164794296,
0.1444950998,
-0.0630867556,
0.0345242172,
0.2060510516,
-0.1919636428,
0.0597911887,
-0.1310275495,
0.0356739648,
0.1007023454,
-0.243606925,
-0.136994496,
0.1091516018,
-0.055024974,
0.1305611879,
-0.299328804,
0.1565279961,
-0.0825744122,
-0.0047007315,
0.4082545042,
0.1836158931,
0.3742778003,
0.2353916168,
0.1467328966,
0.2031041533,
0.1250562668,
-0.2914269865,
0.0851671696,
-0.1916306764,
-0.0795558318,
0.3350314796,
0.1417779177,
0.4543799758,
0.0042140111,
-0.4538617134,
-0.0484701656,
-0.4231694937,
0.0795800835,
0.22692056,
0.4578571022,
-0.1490904838,
0.1119722202,
0.0448689312,
0.1539013386,
-0.1707453281,
-0.2831355929,
-0.2869075835,
0.4119272232,
-0.3327416778,
-0.2005890161,
0.172569707,
0.0631762594,
-0.0440938063,
-0.0142762437,
-0.1245324612,
0.0147929192,
0.0312173069,
-0.4864667356,
-0.1069179475,
0.1802369952,
0.0366909355,
-0.1434197128,
0.2177434117,
-0.438563019,
0.0038601458,
0.2104465961,
-0.1390266567,
-0.2205246985,
-0.064401634,
0.292147845,
-0.3297556043,
-0.161749959,
-0.122081086,
0.1581525207,
0.1588943452,
0.0152817294,
0.0386043787,
-0.0845264196,
-0.0218605697,
-0.3067057431,
0.0268775448,
0.3902687728,
-0.3743341267,
-0.2277736068,
-0.116348587,
-0.0573348999,
0.33097592,
-0.0552942455,
-0.0139304549,
0.2842516601,
-0.0162358023,
0.1270190775,
0.6166727543,
-0.3811467588,
-0.3189839721,
-0.0871519148,
-0.0525562912,
-0.0323505811,
-0.0000085868,
-0.1415093094,
0.0952095166,
0.185192883,
0.4305965304,
0.1825712025,
0.010849677,
-0.0068765134,
-0.2708133161,
-0.2111279964,
0.1911939383,
0.089531146,
0.1389750987,
-0.0566436537,
-0.0780088603,
-0.2422534227,
0.0179311447,
-0.1191948056,
-0.132361263,
-0.0616729334,
0.5806079507,
-0.0895552784,
-0.1220896691,
-0.5331308842,
-0.2384611368,
0.1451273263,
-0.0384060666,
0.4400660396,
-0.1647625118,
-0.2132974267,
-0.4087541997,
0.0467492118,
-0.0534320511,
-0.0422442257,
0.2887168527,
0.0327205099,
-0.1623722166,
0.1476722658,
-0.093931973,
0.0690902174,
-0.1891066432,
0.1402492523,
0.1150692552,
0.3248270154,
-0.0526560396,
-0.4338490963,
0.0160555169,
0.2450487018,
0.4278887808,
0.0615986399,
-0.0518303812,
0.3103210032,
0.0966811776,
-0.2166446745,
-0.3329289556,
-0.0375641733,
0.1061593741,
-0.3284878135,
-0.1916383356,
-0.0286101773,
0.1814016402,
-0.0039086789,
0.0155866463,
0.5066563487,
0.0730464533,
0.07515499,
-0.0834586173,
0.1962544322,
-0.0521301925,
-0.1202241182,
-0.1189236268,
-0.0935665816,
0.0853726417,
-0.0516476259,
0.160461992,
0.0839668885,
-0.1486921906,
-0.0939606726,
0.6276283264,
0.0661336705,
0.4066177607,
-0.1278575957,
-0.2530850768,
0.146933794,
0.0753544867,
0.0935157761,
0.3560039997,
0.309184581,
-0.174183473,
-0.0120029021,
-0.169913739,
0.0200338289,
0.0936977342,
-0.0300578699,
0.3375006914,
-0.0191667266,
0.3265653849,
0.0025226623,
-0.3129945695,
0.115497902,
0.03831622,
0.1894648075,
-0.3931482434,
0.1806953847,
-0.3155396581,
-0.1539053768,
0.0592738725,
-0.1398230493,
-0.042199742,
-0.2707496881,
-0.0855269805,
0.1815253794,
0.0589708015,
0.2643627524,
0.1597473472,
-0.0327073038,
0.0847379267,
-0.0655736625,
-0.1022355556,
-0.2201067507,
-0.1743910164,
0.1428497732,
0.1274091154,
0.2078600675,
0.2995345294,
-0.1425537467,
0.0480943471,
0.0138055738,
-0.3602246046,
0.0857334882,
-0.1215343103,
0.4401928782,
0.3425598145,
0.0728834718,
-0.2368693948,
0.0173932463,
0.3619662821,
-0.3473314047,
-0.1080509126,
0.3983773887,
-0.1979980469,
0.0502507277,
-0.2161715031,
-0.3248872459,
-0.5105349422,
-0.3189550936,
0.1311065555,
-0.0294713639,
0.0872788504,
0.3062438965,
0.2281629741,
0.4508944452,
-0.0525711998,
0.0395835266,
-0.1739951372,
-0.0077805817,
0.3531799912,
-0.0148417242,
-0.3720352352,
0.0079914778,
-0.1651002616,
0.1313915253,
-0.0117579438,
-0.1790904999,
-0.5396493077,
-0.1400607377,
0.288400054,
0.0229436606,
-0.0957489014,
0.3742547035,
0.0539730601,
-0.151051268,
-0.1974765658,
-0.0822638497,
0.0317740254,
0.3172570169,
0.0219649002,
-0.0694891065,
0.2908797264,
0.0552210212,
0.2811390758,
-0.1133231968,
-0.2513749897,
0.4198065996,
-0.2915056348,
0.2461431324,
-0.0716579109,
-0.4766028225,
-0.0776230097,
-0.055500716,
-0.0022873953,
-0.0360606611,
-0.2989490628,
-0.2200713903,
-0.2970080376,
-0.1219757125,
-0.3595553041,
-0.1541766822,
0.0609145314,
0.0891188681,
0.0558057129,
0.1404543519,
0.1550658643,
-0.3061166704,
0.0088768713,
0.0000187755,
0.1075970232,
0.037208043,
-0.2144531161,
-0.2214945108,
-0.2509329915,
-0.291007936,
0.3232396245,
0.04779502,
-0.0251007918,
-0.1071846336,
-0.1048601717,
0.0847712606,
-0.054349795,
0.676769495,
-0.1964524239,
0.071040675,
0.4911931455,
0.2105487883,
-0.432089597,
0.0249227285,
-0.4132964015,
0.1125911772,
0.1601797789,
0.3240835071,
-0.3951094151,
-0.0542450286,
0.2625238895,
-0.0359853096,
-0.0594216809,
-0.269669652,
-0.2357651144,
-0.2557885647,
-0.107765466,
0.1962946802,
0.0353267267,
0.4339828789,
-0.2649322748,
-0.1105706245,
-0.2390619516,
0.0428948253,
0.1868529618,
0.2545812726,
0.2625080347,
-0.1614429802,
-0.1597974002,
-0.1762634814,
0.0588018782,
0.278000474,
0.2882103622,
0.044540856,
-0.4137678742,
0.0157187283,
0.0581392683,
0.261190474,
0.046425961,
-0.1333331913,
-0.0307981521,
-0.0403295159,
0.0974308401,
0.1435641646,
0.2177046686,
0.3860842586,
0.0595959909,
-0.3346405327,
-0.2437651753,
0.3455173969,
0.1484424174,
0.0505365133,
0.0170092694,
0.2781255543,
-0.2117079645,
0.2881134152,
-0.0201546326,
1.0111835003,
0.0690520108,
-0.0597924888,
0.5816112161,
-0.0952844098,
0.5560988784,
-0.0648018718,
0.1861323863,
-0.2962427139,
-0.3566813171,
-0.0365722701,
-0.1678648591,
0.2394372225,
0.0646674782,
-0.6077865362,
0.2306773365,
-0.2865703106,
0.1413259059,
0.0372002199,
-0.0313406065,
-0.0069273487,
-0.0241818968,
-0.3856898248,
0.2118214369,
-0.1228690743,
0.1014268622,
-0.0845643431,
-0.1063788831,
-0.1233798936,
-0.1591432989,
-0.1048096493,
0.0431122184,
-0.5134392381,
-0.1531042159,
0.0520419925,
-0.1772313118,
-0.0729141384,
0.1872905791,
0.0402173698,
0.077523008,
-0.1871166676,
0.1700201333,
0.1999505758,
0.0999666229,
-0.0692627132,
-0.0332883075,
0.4308817983,
-0.091692619,
-0.3986717463,
0.127502948,
-0.0470684767,
0.1355868429,
0.3548526466,
0.0182907321,
-0.020785436,
-0.4515143335,
-0.0984327346,
-0.1435845643,
0.2059476972,
-0.3068612218,
0.2612115145,
-0.0072332956,
-0.1372917145,
0.0108394716,
-0.0357735716,
-0.0185115412,
-0.0398777723,
0.3423735201,
0.3180932403,
0.4484286904,
0.246530652,
0.2419534475,
-0.1212222576,
-0.3200916052,
0.1532205641,
0.2308021784,
-0.4224051237,
0.2418851107,
0.2260046899,
-0.1214660481,
-0.0534198806,
0.4723204076,
0.0875409693,
0.1689210534,
-0.1257396638,
-0.1489033848,
-0.2344332933,
0.3241611123,
0.1022828072,
0.0040799007,
0.1147458851,
0.4286703467,
0.2379004955,
0.0177307073,
-0.4440495372,
-0.0286852438,
-0.4677802026,
0.0705267787,
-0.0260699876,
-0.2602924407,
0.2004091591,
-0.0038481727,
0.2606967092,
0.1246231869,
-0.0757148936,
-0.3621689081,
-0.1629696041,
0.0902142897,
-0.0021696128,
0.1705980003,
0.1876295358,
0.0336485803,
-0.2303370088,
-0.1281399876,
0.0921764821,
-0.0553294867,
-0.1467016488,
0.2181792259,
0.2054446042,
0.3228452206,
0.0179910213,
-0.0136704352,
0.0152385738,
-0.092462115,
-0.0348309949,
-0.0050639799,
0.1245716214,
-0.0292171165,
-0.091405347,
-0.0829481035,
0.1921164095,
0.1356506944,
0.0203486923,
-0.2578231394,
-0.2741310596,
-0.1145556569,
0.215873301,
0.1211166084,
-0.1575215459,
0.1765080839,
-0.01093233,
0.3513850272,
-0.3763156831,
-0.0102529451,
0.2301225364,
-0.0349600576,
0.226983428,
0.0463017114,
-0.2856044173,
0.3148674369,
-0.203125909,
0.0906802118,
0.2280463278,
-0.0443475544,
0.1081101969,
0.2768344581,
-0.1694982946,
-0.0334680937,
0.4123375714,
0.0703869462,
0.1482769549,
0.0211712122,
0.0128192455,
0.1463377923,
-0.0221672952,
0.085866943,
0.3090980947,
-0.3254112601,
0.0323025286,
0.2096981108,
0.0278553013,
-0.0797007829,
-0.2609017193,
0.5160673261,
-0.2635022998,
-0.1445792019,
-0.334438473,
0.1385081261,
-0.2003162205,
0.0369850211,
-0.201544106,
-0.1111778766,
-0.186993584,
-0.306619823,
0.0259557739,
-0.0909686834,
0.2416603863,
-0.0493584312,
-0.0289358124,
-0.2844854295,
-0.0523672476,
0.3596525788,
0.2271607816,
-0.2038592398,
0.1030541956,
0.0247035772,
0.1235100776,
-0.1864320785,
0.5136398077,
0.4270204008,
0.28573367,
-0.1543843895,
-0.0936768949,
0.0345489979,
-0.309096843,
0.0706594884,
0.0969655737,
0.2919445336,
0.2387930155,
0.06440413,
0.2788919806,
-0.2833414376,
0.1762274504,
-0.0601929575,
0.0752438232,
-0.3707784712,
0.3305321634,
-0.1943283081,
-0.1633211821,
-0.1663211584,
-0.008691147,
-0.480571419,
0.170041278,
0.3345672488,
0.1505532563,
0.1827458292,
-0.189844206,
0.142625913,
-0.2063409984,
0.2242958695,
-0.0433820821,
0.3339890838,
-0.2799003422,
0.1178941429,
-0.4362550974,
0.3936929405,
-0.0448483489,
-0.0489646383,
0.0756323189,
-0.0840158686,
-0.1616725475,
0.0349480845,
-0.0744248629,
0.2408673316,
0.1278526783,
0.0993816853,
-0.6071126461,
-0.1996482313,
-0.1119105071,
-0.230769679,
0.1361707449,
-0.241450876,
-0.047243353,
-0.1864422709,
0.1147017404,
0.0427971147,
-0.3028404713,
0.1948675215,
0.2954317331,
0.6067340374,
0.1576177329,
0.4007615149,
-0.0138513185,
0.0997694358,
0.0633202791,
-0.2700613141,
-0.1527520567,
0.1926423013,
0.1350934356,
0.3505524397,
0.0757683963,
0.23201783,
-0.0688419193,
0.0777030289,
0.0588588268,
-0.124382481,
-0.1221506447,
0.1636989266,
-0.1173160747,
-0.2261743844,
-0.2556185126,
0.0282793846,
0.075281918,
0.0470450372,
-0.0877217576,
-0.2791980207,
0.6700654626,
-0.3341490626,
-0.2696869969,
-0.0509191565,
0.200196296,
0.2284437865,
-0.2409946173,
-0.6293932796,
-0.008996129,
0.4204948843,
0.0220114551,
-0.2528336048,
0.2136525959,
-0.0641365349,
0.1553047448,
-0.0634710044,
0.0211866889,
-0.1120163575,
-0.05637566,
0.0475043505,
-0.2333322614
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | > Hi, @Chenfei-Kang.
>
> I'm sorry, but I'm not able to reproduce your bug:
>
> ```python
> from datasets import load_dataset
>
> ds = load_dataset("glue", 'cola')
> ds
> ```
>
> ```
> DatasetDict({
> train: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 8551
> })
> validation: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1043
> })
> test: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1063
> })
> })
> ```
>
> Could you please give more details and environment info (platform, PyArrow version)?
Sorry to reply you so late.
platform: pycharm 2021 + anaconda with python 3.7
PyArrow version: 5.0.0
huggingface-hub: 0.0.16
datasets: 1.9.0
| ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 116 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
> Hi, @Chenfei-Kang.
>
> I'm sorry, but I'm not able to reproduce your bug:
>
> ```python
> from datasets import load_dataset
>
> ds = load_dataset("glue", 'cola')
> ds
> ```
>
> ```
> DatasetDict({
> train: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 8551
> })
> validation: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1043
> })
> test: Dataset({
> features: ['sentence', 'label', 'idx'],
> num_rows: 1063
> })
> })
> ```
>
> Could you please give more details and environment info (platform, PyArrow version)?
Sorry to reply you so late.
platform: pycharm 2021 + anaconda with python 3.7
PyArrow version: 5.0.0
huggingface-hub: 0.0.16
datasets: 1.9.0
| [
-0.0170860365,
-0.3240522742,
0.062121287,
0.2103665322,
0.3840116262,
-0.0155184865,
0.4157943428,
0.1785911918,
0.1879405528,
0.3116179407,
-0.2562709451,
0.2617365122,
-0.0900785625,
0.1555980742,
0.1346469671,
-0.1783229113,
-0.1780709177,
0.2362429202,
-0.1429380476,
-0.0610416979,
-0.3072666526,
0.0160210226,
-0.2765932083,
0.1563268006,
-0.3710358143,
-0.223229751,
-0.0727498308,
-0.0337859765,
-0.351670295,
-0.3736092448,
0.3502697051,
-0.0149401417,
0.1077513695,
0.3936695158,
-0.000109273,
0.0397488028,
0.5531899929,
0.0916723758,
-0.1215199456,
-0.4864456654,
0.0033010691,
-0.1535928994,
0.2640892863,
-0.2971878648,
-0.2491430044,
-0.1678689867,
-0.0046053641,
0.1546721607,
0.3977608681,
0.5068290234,
0.2735917866,
0.5179864764,
0.1557451636,
-0.3057217002,
0.2476197779,
0.1295627505,
-0.0830332711,
0.3645499945,
0.0868030339,
0.0324823633,
0.2476592064,
0.2256710976,
-0.2615950704,
-0.10203325,
0.2482002527,
0.0714487433,
0.0565818101,
-0.3359336555,
-0.0874414593,
0.3458361328,
0.2176506221,
-0.4307982028,
-0.2740110457,
-0.0156726241,
0.1589333117,
-0.2778738737,
0.2152643055,
0.1117753312,
-0.0614302941,
0.261010915,
-0.0477596149,
0.291643858,
-0.2724865377,
0.2264739275,
0.0332289934,
0.0998285487,
-0.0974353254,
0.0864830688,
0.3184733689,
-0.1978600472,
-0.0712480322,
-0.0744849741,
0.0765409619,
0.1997876167,
-0.2625720501,
-0.1569987535,
0.0412152112,
-0.0527563356,
0.247898519,
-0.0623121522,
0.0106980391,
-0.0784375966,
0.0866333991,
0.3945232332,
0.1457947493,
0.3695580065,
0.2746927738,
0.059642937,
0.1471259296,
0.2683899999,
-0.1179923266,
0.055073645,
-0.1812905073,
-0.0505756326,
0.2737022638,
0.1010778695,
0.4157115221,
-0.0123855323,
-0.3835295737,
-0.0340619162,
-0.249388501,
0.2141660154,
0.2170220613,
0.4983274341,
-0.1098524258,
-0.0065815779,
0.192077145,
0.1782710254,
-0.121160157,
-0.1304864287,
-0.2357184291,
0.3422303498,
-0.321511656,
-0.0617322698,
0.2265958786,
0.0308974497,
0.0039271601,
-0.0047290102,
0.0682611391,
-0.0418036692,
-0.0186939649,
-0.3479029834,
-0.0821479186,
0.2535484433,
0.0323423743,
-0.0685245618,
0.2264001966,
-0.410043925,
-0.0981174111,
0.1309782416,
-0.0746352896,
-0.1795986295,
-0.2304220349,
0.2343913913,
-0.2560872138,
-0.0213028584,
-0.0934342742,
0.0212542266,
0.1447509676,
0.1013657004,
0.1272419989,
-0.0190785397,
0.0178891569,
-0.2180712968,
0.1380719543,
0.3654919565,
-0.1001909301,
-0.3205660582,
0.0321521461,
-0.0025294889,
0.1171865165,
-0.0173706524,
0.0019333251,
0.2421698719,
-0.0305477679,
0.1668854356,
0.4985627234,
-0.6241477132,
-0.3442798853,
-0.2747379541,
-0.0806370825,
-0.0161462799,
0.0393293798,
-0.2286882401,
0.1914647222,
0.2106937617,
0.4453012347,
0.1527808607,
0.1522091627,
0.0167636648,
-0.2598268986,
-0.2841211557,
-0.1492304206,
0.1216639131,
0.0572228692,
-0.0611825027,
-0.1246785298,
-0.3315831721,
0.0439960137,
-0.146424368,
-0.0947786272,
-0.0285352655,
0.4802515805,
-0.0267939195,
-0.0334617384,
-0.5103313923,
-0.3110120893,
0.144410342,
-0.0827430114,
0.4963117838,
-0.2935870588,
-0.2401022315,
-0.3797980845,
0.0216784254,
-0.026030641,
-0.1073649749,
0.2608531117,
-0.0292996317,
-0.079390049,
0.203985557,
-0.1481571496,
0.306181401,
-0.062967293,
0.3361932039,
-0.0899122879,
0.2520772219,
-0.0519089177,
-0.4535895884,
0.0178124607,
0.3152451217,
0.4074851871,
0.018430274,
0.0400746725,
0.2059645206,
0.1200733185,
-0.251660794,
-0.3879703581,
-0.2059796005,
0.090895392,
-0.2052682042,
-0.1253311485,
-0.1193975806,
0.1875580251,
0.0432373881,
0.0816028789,
0.4845339656,
0.0002890676,
0.1447361559,
-0.0010888353,
0.2192266434,
0.046425119,
-0.2223508656,
-0.1943702698,
-0.1116543487,
0.109837532,
0.0302243531,
0.248070389,
0.0179757942,
-0.145416379,
0.0168013573,
0.6618236303,
0.0420249328,
0.2582576573,
-0.1182071865,
-0.3660909832,
0.2513479888,
0.1739430279,
0.0876058191,
0.3652844727,
0.2524148524,
-0.2956424057,
0.0845415741,
-0.1635934711,
0.0505569316,
0.0976490453,
-0.0679601878,
0.3684992194,
-0.0912532061,
0.3075383902,
0.0185328238,
-0.3090059161,
0.0744578391,
-0.0793070421,
0.106287472,
-0.3757321239,
0.1150496528,
-0.2569514513,
-0.1478514075,
-0.0088819992,
-0.1333729923,
0.0266573057,
-0.1974049062,
-0.0598684587,
0.358489424,
0.0893842056,
0.2826405466,
0.2069193423,
0.0192362219,
-0.0590616092,
-0.103048414,
-0.1551313549,
-0.1086173356,
-0.1170014739,
0.0823392123,
0.0588654093,
0.1915500015,
0.3331587315,
-0.3143271506,
0.0909603536,
0.1370238811,
-0.3026357591,
0.0858221576,
-0.1740435213,
0.2888208032,
0.26844877,
0.1589439958,
-0.1759039164,
-0.0624606088,
0.4340489805,
-0.3824962676,
-0.1924285591,
0.2827730477,
-0.141436249,
-0.0550835319,
-0.2623381913,
-0.2640990615,
-0.5197223425,
-0.2946314812,
0.255032599,
0.0227003247,
0.0717563629,
0.3472691774,
0.2340485901,
0.4523184597,
-0.3834222555,
-0.022939235,
-0.1441197097,
0.0412893891,
0.2728776932,
-0.0820256472,
-0.4259678125,
-0.0077680945,
-0.0855099559,
0.2539596856,
-0.1286981255,
-0.0568947159,
-0.44794783,
-0.1266303062,
0.3238246441,
0.0086144162,
-0.1531502455,
0.6029994488,
0.0156402402,
-0.1078105122,
-0.158334285,
-0.1767388582,
0.1045935154,
0.1382759064,
0.0056556463,
-0.0700705647,
0.2453282475,
-0.0265150443,
0.3515641987,
-0.0049933866,
-0.2051894665,
0.3471206427,
-0.3044427335,
0.3146962225,
-0.1218410432,
-0.5708716512,
-0.0727781355,
-0.0265238136,
0.0520669892,
-0.1330881119,
-0.2462659925,
-0.089776814,
-0.3285744786,
-0.1738543659,
-0.441508323,
-0.2324539572,
0.0581631213,
0.1306093633,
-0.0827689916,
0.0958866328,
0.0774861649,
-0.3568073213,
0.056310989,
-0.01321695,
0.2122405916,
0.0356146693,
-0.1878068894,
-0.4234542847,
-0.2692600787,
-0.3553895652,
0.3830409646,
0.0468405411,
0.011089284,
-0.0506008305,
-0.1024789885,
0.1410766095,
0.0076349005,
0.6806132197,
-0.0301303957,
-0.0055902605,
0.416000694,
0.141753301,
-0.623016715,
0.0706071407,
-0.3021711111,
0.0531920716,
0.1227648407,
0.3985317647,
-0.4662341177,
-0.1559692025,
0.3363058865,
-0.0372491591,
-0.0328229927,
-0.2179400027,
-0.2882823348,
-0.3978615105,
-0.2136867344,
0.1251842976,
0.14489007,
0.385992974,
-0.2250213921,
-0.1091162786,
-0.1240672022,
0.0948003158,
0.0340226665,
0.2724271715,
0.2362678796,
-0.2280844003,
-0.0954125822,
0.0113190133,
0.0838170201,
0.2514650226,
0.2685818672,
-0.0433206297,
-0.5514891148,
-0.1514344811,
0.1056522429,
0.21616368,
0.0786006898,
-0.135761708,
0.0079717524,
-0.0911872685,
0.133993119,
0.2157753706,
0.1181627959,
0.4902130365,
0.1698918194,
-0.2991672456,
-0.1917204559,
0.4521496296,
0.1290630996,
0.0447196811,
0.1472746134,
0.4835729003,
-0.1690778583,
0.2779712975,
-0.1196073443,
1.0848120451,
-0.003083365,
-0.005263852,
0.5609256029,
-0.106334433,
0.6737443209,
0.0900181979,
0.2337673903,
-0.3639943004,
-0.1940106452,
-0.0178168416,
-0.1334920675,
0.2924984097,
-0.0650961548,
-0.508783102,
0.1753668934,
-0.2362162471,
0.1639979184,
0.0437814295,
0.0470250919,
-0.1116011217,
-0.163441956,
-0.3191111088,
0.1553269327,
-0.0189954676,
0.2381697744,
-0.0293427594,
-0.1032171696,
-0.2884886265,
-0.2500368953,
-0.1799213141,
0.0486413985,
-0.4893499613,
-0.2644636929,
0.2028946877,
-0.1735015959,
-0.2620544434,
0.0350557901,
0.1736057401,
0.0271783564,
-0.2295172662,
0.0850423872,
-0.0116315931,
-0.0057277344,
-0.0612283722,
-0.120116815,
0.4516775012,
-0.1806232333,
-0.5559985638,
-0.0021973811,
0.0283422954,
0.1189503223,
0.3397733569,
0.0533939302,
-0.0720779896,
-0.3765560687,
-0.1956296712,
-0.0863559246,
0.2171399593,
-0.2849392891,
0.2158723176,
-0.0756184161,
-0.1748705655,
-0.0020164028,
-0.0216982681,
-0.0546835139,
0.018115839,
0.3995353878,
0.2500369847,
0.3563725948,
0.2536879778,
0.1453514993,
-0.127704531,
-0.278809607,
0.0454512835,
0.2644444108,
-0.5634872913,
0.1480279416,
0.2177879512,
-0.1283230633,
-0.0758903325,
0.4255403578,
0.0340969078,
0.0199873764,
-0.1081612483,
-0.1711101085,
-0.2474557608,
0.4519790411,
-0.0532883443,
-0.0533894338,
0.2934165895,
0.5443695784,
0.222872436,
0.007743774,
-0.4028415382,
0.0258474872,
-0.3943942785,
0.0516048893,
0.050623998,
-0.2735676765,
0.2741543055,
-0.0607874282,
0.2235944867,
0.2008979619,
-0.0648374856,
-0.329241842,
-0.1574600935,
0.1020702198,
0.0132467113,
0.1558354199,
0.1404901892,
0.042923294,
-0.1865489781,
-0.1436392665,
0.1646617353,
-0.0484871976,
-0.0519674793,
0.2371672839,
0.1691437662,
0.3118651211,
0.0495463312,
0.0909304097,
-0.0028735623,
-0.1294037402,
-0.081783019,
0.017882131,
0.0095178187,
0.0264174789,
-0.0565490276,
-0.1073946357,
0.1240907162,
0.1748038977,
0.0907403231,
-0.2451833338,
-0.3529209793,
-0.2803741992,
0.181710273,
0.153381139,
-0.154381454,
0.1704661846,
-0.0670955628,
0.2948552072,
-0.4210547507,
0.0239631943,
0.2194125056,
-0.0067798104,
0.1791749001,
0.1512842476,
-0.2732407451,
0.206310913,
-0.0471633226,
0.0283580236,
0.466655612,
0.0181071386,
0.0889502764,
0.2631125748,
-0.1317113638,
-0.0344261862,
0.4894235134,
0.1561266035,
0.2242721617,
-0.0069706654,
-0.0884023905,
0.2236964107,
-0.124009639,
0.0749217421,
0.2926057577,
-0.2168335766,
-0.0012596585,
0.1987000704,
0.0942937955,
-0.1275271326,
-0.3349511027,
0.5498443246,
-0.2395892441,
-0.2107710242,
-0.1777209342,
0.1950449347,
-0.2097447813,
-0.0012293905,
-0.1400180161,
-0.081048958,
-0.1268616915,
-0.4116222858,
0.0561530702,
-0.1514628381,
0.4862965047,
-0.1211126745,
-0.0871196389,
-0.2842108011,
-0.2175370306,
0.4087487459,
0.3050471246,
-0.1542929858,
0.1880834699,
0.0706385151,
0.1759785116,
-0.2439058572,
0.5857952237,
0.4205300212,
0.2032049596,
-0.0877041146,
-0.039412383,
-0.0987182036,
-0.3073502183,
0.0758495927,
0.1601037979,
0.3437224329,
0.2210116982,
0.002097249,
0.2533308864,
-0.2443264127,
0.2270523906,
-0.1037406772,
0.0440702476,
-0.4042607248,
0.3363031149,
-0.3260599375,
-0.2499151826,
-0.3251256645,
0.0070019811,
-0.4086143672,
0.1709913611,
0.340310961,
0.0040549971,
0.1531256437,
-0.3124785423,
0.1025998145,
-0.1237488911,
0.2872798145,
-0.0421429761,
0.299259603,
-0.1812501997,
0.0731785893,
-0.4249607921,
0.3959838748,
-0.1252932698,
-0.1122622415,
0.0873510242,
-0.1618831903,
-0.1488877535,
0.039984569,
0.0557341948,
0.4386816025,
0.0567035079,
-0.0590521656,
-0.5389716625,
-0.1532922089,
-0.1344294399,
-0.2273553461,
0.2009894252,
-0.2520208657,
0.0800778121,
-0.1442410648,
0.0637668669,
0.0295061097,
-0.0963593125,
0.1442124099,
0.0670827329,
0.6210795045,
0.1881041825,
0.3392411768,
-0.0430542827,
-0.0689967498,
0.0249926038,
-0.1740671843,
-0.2406359613,
0.2803043425,
0.2160283029,
0.2756661177,
0.0625708401,
0.0870544165,
-0.0475448966,
0.1085867584,
0.0825029984,
-0.2264687866,
-0.0616676509,
0.1197946072,
-0.0202589482,
-0.2373048961,
-0.1996346563,
0.0610712916,
0.0052937986,
0.0769679695,
-0.2243450582,
-0.2481002808,
0.7152535915,
-0.2563150227,
-0.2637998462,
0.0553935468,
0.2930931449,
0.1165039986,
-0.4328462481,
-0.7834490538,
0.0166445076,
0.2939422727,
0.0839263201,
-0.2240286171,
0.2948250771,
0.010084264,
0.0482181013,
-0.0746178031,
0.1352371722,
0.0407709666,
-0.0168590657,
0.0712472796,
-0.2007399946
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | - For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
- In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error? | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 69 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
- For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
- In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error? | [
-0.2277718037,
-0.3193504214,
0.0008598901,
0.3918525279,
0.3677239716,
0.0557457879,
0.3176339865,
0.1545283943,
0.1733449399,
0.2960277498,
-0.1426855922,
0.4552956223,
-0.07765688,
0.2298434228,
0.0493330918,
-0.1651719809,
-0.2105035484,
0.2611338496,
-0.1191705912,
0.0262278467,
-0.5092206001,
-0.0741478652,
-0.1640852988,
0.134992376,
-0.237754643,
-0.2719812691,
-0.1240944043,
0.0408254787,
-0.1921424866,
-0.283849895,
0.3645710647,
-0.0801880509,
0.2122618854,
0.5988924503,
-0.0001008489,
-0.1514544934,
0.4352060258,
0.0476003811,
-0.1254921257,
-0.352304399,
-0.2946640849,
-0.3847203255,
0.1898575127,
-0.3827018738,
-0.0743027031,
-0.0082013682,
0.0286095943,
-0.2426374704,
0.3481249809,
0.3484522104,
0.3506994247,
0.4159022868,
0.0833576992,
-0.2823811173,
0.1884768009,
0.0775726885,
-0.1048532501,
0.2966802418,
0.0623727031,
-0.0164798498,
0.3145343363,
0.1602043957,
-0.2830137312,
-0.0542993397,
0.2551214099,
0.0645875111,
-0.0053246021,
-0.3559245765,
0.0310366005,
0.3066705167,
0.4195716381,
-0.3946248889,
-0.1872212738,
0.0607764274,
0.1299086958,
-0.22349751,
0.1539729685,
-0.01155979,
-0.0064770244,
0.0658866614,
-0.0040365793,
0.1557923853,
-0.2368042618,
0.2183835506,
-0.166424349,
0.0901958123,
-0.212100327,
0.1070637107,
0.0670969784,
-0.1992393285,
0.0452293605,
-0.1839863956,
0.0351358876,
0.1096042544,
-0.2211264372,
-0.1452787817,
0.1299012303,
0.111167796,
0.1270103902,
-0.2455775142,
0.1168719083,
-0.0483122468,
-0.0236971248,
0.4071713388,
0.2398946732,
0.216065079,
0.1970724612,
0.1496332586,
0.2160288095,
0.044134587,
-0.1853793263,
-0.0519745387,
-0.1255760193,
-0.1014556289,
0.2814618647,
0.1962063015,
0.5696898699,
-0.0633770525,
-0.4451118112,
-0.0369893163,
-0.2070900351,
0.0923673809,
0.2541407645,
0.3783913255,
-0.1840860248,
0.1531827003,
0.2149182558,
0.0695832968,
-0.1426403075,
-0.2327833176,
-0.240268454,
0.3336755633,
-0.2726965845,
-0.2324481905,
0.0732235163,
0.0800085068,
-0.1016523391,
0.0515346117,
-0.0466056168,
0.0736264139,
0.1052563116,
-0.3829740286,
-0.1715995371,
0.1613505334,
0.1342369616,
-0.010921862,
0.3575490713,
-0.4132311344,
-0.1455423236,
0.1080864519,
-0.3179211915,
-0.0927534103,
-0.0903912932,
0.3212557137,
-0.2362896055,
-0.0792096481,
-0.1951908469,
-0.0047348533,
0.0772169456,
-0.2021207809,
0.024387829,
-0.1612924635,
0.009970881,
-0.4124752283,
0.0396713987,
0.5434522629,
-0.3702254891,
-0.1319314092,
-0.3560010791,
-0.0526705906,
0.3650828302,
-0.1617242545,
0.0869188607,
0.2049261779,
-0.1619558185,
-0.0783799216,
0.5953559279,
-0.3626015484,
-0.1942621022,
0.0556300916,
-0.0792514086,
-0.0580399707,
-0.067448765,
-0.014070427,
0.0950178504,
0.1139309332,
0.4095413685,
0.2211551964,
-0.0633311197,
-0.0278702565,
-0.195039928,
-0.1733903587,
0.1649027765,
0.0918371975,
0.1436721087,
0.1626262814,
0.0630827695,
-0.2037845254,
0.018493969,
-0.0397912487,
-0.0929174423,
-0.065241918,
0.656524837,
-0.0872238651,
-0.0788742751,
-0.5945641994,
-0.3253455758,
0.1684784591,
-0.0677351058,
0.2807235122,
-0.1447330713,
-0.1707683504,
-0.3664008975,
0.0677766353,
-0.0498286262,
0.0480884872,
0.3426538706,
0.1271567047,
-0.1998728514,
0.0451180562,
-0.1443469673,
0.1779201627,
-0.1498600096,
0.101995945,
-0.0057356078,
0.3032821417,
-0.0105572455,
-0.3550935388,
0.0437215194,
0.2375443876,
0.5392078757,
0.0301109329,
-0.0714497864,
0.2961717546,
0.0839735419,
-0.1378159523,
-0.1490658969,
-0.0828544348,
0.1191907302,
-0.2615096867,
0.0761328042,
0.1135108173,
0.3413479924,
-0.0806763768,
0.1379155517,
0.550291121,
0.0705427229,
0.218250677,
-0.0425800756,
0.2359929979,
-0.0458752215,
-0.0404753238,
-0.0913203955,
-0.1391233653,
0.1310136616,
0.0969331264,
0.1783952713,
-0.0640902817,
-0.1166950762,
0.0628791228,
0.567563653,
0.0985858142,
0.3846488595,
-0.0710383207,
-0.3002264202,
0.1548447907,
0.08901795,
0.2822793722,
0.445822984,
0.3082371056,
-0.1348170787,
0.0028446671,
-0.1054731458,
0.0909258872,
0.0695770383,
-0.0082739368,
0.2112076879,
-0.0183987543,
0.1782516241,
0.0799448043,
-0.1778932661,
-0.0452204682,
-0.2235445082,
0.2644327879,
-0.358817935,
0.1916419119,
-0.2675388753,
-0.1693611294,
0.0416819677,
-0.0662412792,
-0.1583895534,
-0.3439971805,
-0.2322415709,
0.0256401449,
0.1133053228,
0.1315737665,
0.1144248322,
0.1559721678,
0.0080656335,
0.0855935514,
-0.165648967,
-0.1026748642,
-0.1289934218,
0.1639402509,
0.1211263835,
0.2124069184,
0.4851676226,
-0.2281130552,
0.2450817376,
-0.0264439713,
-0.2279940248,
0.0638849884,
-0.096003674,
0.4924280047,
0.4533851445,
0.1707101166,
-0.0828901306,
-0.016710259,
0.3197821677,
-0.3656995595,
0.0297312289,
0.2110722661,
-0.2212311924,
0.1077205613,
-0.1586057544,
-0.1741411984,
-0.568441689,
-0.4111051261,
0.1035613716,
0.1680117399,
0.1657064706,
0.1624201089,
0.1247418374,
0.5334134698,
0.1375747323,
0.1933975667,
-0.1958464682,
-0.0487353466,
0.2836107016,
-0.1228597984,
-0.2586843967,
0.147084713,
-0.1050432324,
0.2065627873,
0.0155348405,
-0.1752417982,
-0.539342463,
-0.1731456816,
0.1546035558,
-0.0829331279,
0.0919004381,
0.2602024078,
0.115539968,
-0.139054507,
-0.2339773774,
-0.142865479,
-0.1661493182,
0.2557976842,
0.0672937036,
0.0401758626,
0.3397761583,
-0.1783676445,
0.1294479072,
0.0065672547,
-0.2346486151,
0.3460305035,
-0.262945503,
0.3489434123,
-0.124832049,
-0.5024337769,
-0.1444405019,
0.0058216453,
-0.0900055468,
-0.0492301136,
-0.1613157839,
-0.1666392684,
-0.3757923841,
-0.1235674843,
-0.4473454356,
-0.1732089221,
-0.0268354379,
0.2132813931,
0.019658491,
-0.0107807331,
0.1226411089,
-0.4682358503,
0.0489342958,
-0.0516468473,
0.2382137179,
0.0197486188,
-0.2432867587,
-0.2479407936,
-0.3090171516,
-0.1854938716,
0.4490617514,
-0.162989825,
0.0337659195,
-0.1722391993,
-0.0209150948,
0.0463816263,
-0.0175553933,
0.5029236078,
-0.3419145048,
0.0797720924,
0.4985003471,
0.1387617141,
-0.384028405,
0.1739848703,
-0.4070261121,
0.3183742762,
0.151731953,
0.2837770283,
-0.3160906434,
-0.0206109863,
0.2402315587,
0.130039081,
-0.1309812069,
-0.2083940804,
-0.1448208541,
-0.2342958152,
-0.1278313845,
0.0245008934,
-0.0037168041,
0.3006118834,
-0.131614536,
-0.1478493512,
-0.3589733243,
0.0226065814,
0.2575157583,
0.2095246762,
0.2955666482,
-0.0968764126,
-0.0735841841,
-0.0680018812,
0.0821266174,
0.1955123544,
0.2744945288,
0.0189453475,
-0.3915487528,
0.0630286038,
0.0565040708,
0.2511690259,
0.0781227276,
-0.1441670507,
-0.053579852,
-0.0800632909,
0.1943782419,
-0.0523577929,
0.1001055241,
0.2666033506,
0.0928933993,
-0.4500444531,
-0.3444150686,
0.388646245,
0.1911038756,
-0.0468109474,
0.2515254617,
0.2554998398,
-0.2587034106,
0.2411355525,
0.058511883,
1.0566797256,
0.0451303944,
-0.1790634841,
0.4914719462,
-0.1253182739,
0.5688887239,
0.0427969173,
0.0154064223,
-0.337897718,
-0.2656220496,
-0.051065024,
-0.1546157748,
0.3252924085,
-0.0990186334,
-0.6059661508,
0.2722358704,
-0.4187105,
-0.0113038346,
-0.0516175032,
-0.1450726241,
-0.1615753174,
-0.1305699348,
-0.4006145,
0.2759850621,
-0.1767885089,
0.1705227196,
-0.1539546549,
-0.0489456169,
0.0174541548,
-0.1243233979,
-0.1045433879,
-0.0068157874,
-0.435423851,
-0.2015479952,
-0.1179325581,
-0.1617845893,
0.0173738375,
0.1457436085,
0.1715210378,
0.1336825043,
-0.2375277728,
0.0901855826,
0.0600659251,
0.0691441298,
-0.0843932629,
0.035328012,
0.2427478582,
-0.0197915919,
-0.3155230284,
0.1725397706,
0.0347913466,
0.1483976543,
0.3645583391,
0.0996136367,
-0.0831792206,
-0.3884962499,
-0.144743681,
-0.0601997599,
0.2035061121,
-0.2569366097,
0.2733273506,
0.1267130524,
-0.0753657147,
0.1074778438,
-0.0244919546,
-0.0938686654,
-0.0563317128,
0.275046885,
0.3504139483,
0.2657757998,
0.0927114636,
0.201552406,
-0.2149725556,
-0.3738942146,
0.2654362321,
0.0770249814,
-0.2265850008,
0.23995094,
0.1424386948,
-0.0477565229,
-0.0740084276,
0.3281373382,
0.1060339436,
0.0496935174,
-0.1529468298,
-0.28883937,
-0.2707047164,
0.2582175434,
0.1262253672,
0.077632606,
-0.028472349,
0.2088868022,
0.1913178563,
-0.0492135063,
-0.4822713435,
0.0605647191,
-0.3836083114,
-0.087080583,
0.0551758185,
-0.0908132941,
0.1894113421,
-0.0005161762,
0.261056304,
0.0888259634,
-0.0810423493,
-0.3424241841,
-0.1005695611,
0.0964427441,
0.0030664727,
0.0352185592,
0.1485671252,
-0.1207062006,
-0.1707187444,
-0.1411679536,
0.0266074613,
0.0593882278,
-0.1587968171,
0.115049243,
0.1243264675,
0.2831473351,
0.0352999866,
0.2056676596,
0.0769664347,
-0.0229455717,
-0.0435422361,
0.0187972318,
0.0036229193,
-0.0640793666,
-0.0301971249,
0.0279701296,
0.1451294571,
0.1402733177,
0.1255752295,
-0.1008504033,
-0.2102199793,
0.0878475085,
0.1658075899,
0.1559680104,
-0.1419837624,
0.2770461738,
-0.0868308023,
0.3664442599,
-0.2744099498,
0.060805589,
0.1910201013,
-0.1125191599,
0.2319391668,
0.1514575779,
-0.3416774273,
0.2574728727,
-0.1605985314,
-0.0241745822,
0.3763528764,
-0.159505859,
0.1542953402,
0.2322443426,
-0.1036695838,
-0.0269344747,
0.391049087,
0.2250014096,
0.089335233,
0.069766745,
-0.1052327976,
0.1659093201,
-0.0354885869,
0.0229823627,
0.2391762137,
-0.4080982208,
0.2459842712,
0.2516361773,
-0.0291608796,
-0.0656305179,
-0.1686449051,
0.2762495875,
-0.5681786537,
-0.1020832807,
-0.3088049889,
0.0113965627,
-0.1732568145,
0.1290312558,
-0.128262341,
-0.1437102705,
-0.2699721456,
-0.3319655657,
0.0556729138,
-0.1790089905,
0.1954616159,
-0.1371624768,
0.1048785746,
-0.195263952,
-0.0611733384,
0.2457259595,
0.1937716305,
-0.2082417607,
-0.0402509272,
-0.0125764161,
0.2360839248,
-0.1725241095,
0.539488852,
0.3954845369,
0.3322072029,
-0.1617973447,
-0.027438987,
0.0731183589,
-0.2820371985,
-0.060315717,
0.048549097,
0.0340397879,
0.2409245074,
0.0659549609,
0.3405121565,
-0.319793433,
0.096768111,
-0.0659999028,
0.0167920403,
-0.3043794036,
0.4304432273,
-0.3063570559,
-0.1328264326,
-0.1199343503,
-0.1177723408,
-0.5592742562,
0.0602602661,
0.4006093442,
0.0640407801,
0.1086075976,
-0.1182627603,
0.1509963274,
-0.1716414392,
0.1180159897,
-0.0006212853,
0.3370814025,
-0.2615211904,
0.077384308,
-0.4892737567,
0.3647936285,
0.0276361238,
-0.1982378811,
0.0315374546,
-0.119094789,
-0.1470416486,
0.0097000664,
0.0401229076,
0.2380815893,
0.2386032939,
0.0062593785,
-0.5759981871,
-0.3410036266,
-0.1011375412,
-0.2159599066,
0.1086910814,
-0.2300250828,
-0.0447580777,
-0.1500620544,
0.1826708317,
-0.0428104177,
-0.2579146922,
0.0840296,
0.1191138774,
0.655023694,
0.1934751868,
0.3989141881,
-0.1208964288,
-0.0226044618,
0.157094568,
-0.3202403784,
-0.0817681849,
0.2735519707,
0.121013537,
0.200299114,
0.0415459275,
0.163148433,
-0.2030333877,
0.0024249032,
0.0274579674,
0.0585399009,
-0.1464444399,
0.3077628314,
-0.1645614207,
-0.2361534238,
-0.229144603,
0.1095359921,
0.0604570694,
0.1458995342,
-0.0198302567,
-0.1106985435,
0.6249819994,
-0.1692859828,
-0.2598848939,
-0.0570388585,
0.372446835,
0.0044079032,
-0.1203285679,
-0.4922210574,
0.0031385422,
0.4646419287,
-0.048813872,
-0.1663853824,
0.2039654553,
-0.1955645084,
-0.0195630491,
-0.0393959843,
0.1110217422,
-0.0188861638,
0.0038261265,
0.2579203248,
-0.1187548637
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | > * For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
> * In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error?
1. For the platform, here are the output:
- datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.7.10
- PyArrow version: 5.0.0
2. For the code and error:
```python
from datasets import load_dataset, load_metric
dataset = load_dataset("glue", "cola")
```
```python
Traceback (most recent call last):
....
....
File "my_file.py", line 2, in <module>
dataset = load_dataset("glue", "cola")
File "My environments\lib\site-packages\datasets\load.py", line 830, in load_dataset
**config_kwargs,
File "My environments\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder
**config_kwargs,
TypeError: 'NoneType' object is not callable
```
Thank you! | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 154 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
> * For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below?
> * In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the complete stack trace, so that we know exactly which part of the code threw the error?
1. For the platform, here are the output:
- datasets` version: 1.11.0
- Platform: Windows-10-10.0.19041-SP0
- Python version: 3.7.10
- PyArrow version: 5.0.0
2. For the code and error:
```python
from datasets import load_dataset, load_metric
dataset = load_dataset("glue", "cola")
```
```python
Traceback (most recent call last):
....
....
File "my_file.py", line 2, in <module>
dataset = load_dataset("glue", "cola")
File "My environments\lib\site-packages\datasets\load.py", line 830, in load_dataset
**config_kwargs,
File "My environments\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder
**config_kwargs,
TypeError: 'NoneType' object is not callable
```
Thank you! | [
-0.2333928347,
-0.2121914029,
0.0151841417,
0.354036659,
0.4313125014,
0.0565461516,
0.4275262356,
0.1668834537,
0.1619591266,
0.2543879151,
-0.1491200328,
0.4838868082,
-0.0326275341,
0.2008447945,
0.135114789,
-0.18757689,
-0.178048864,
0.1836340278,
-0.2075743824,
0.0554908812,
-0.5303388834,
-0.0694578886,
-0.1311004758,
0.1142205745,
-0.1653044969,
-0.2441824824,
-0.1580199003,
0.0987922177,
-0.1795853972,
-0.3501780331,
0.4064701498,
-0.1164287627,
0.2196373194,
0.5620657206,
-0.0001015193,
-0.045920305,
0.4622377157,
0.0741887763,
-0.1826767027,
-0.3177575767,
-0.2952967882,
-0.3818570375,
0.1700715423,
-0.3912401199,
-0.0481695943,
-0.0371989273,
-0.0039750924,
-0.2519207001,
0.2980601788,
0.3795798421,
0.3288026452,
0.4538743794,
0.0911622643,
-0.248876363,
0.1904572248,
0.091002658,
-0.0621268898,
0.3023778796,
0.05389487,
-0.0567669086,
0.2113880366,
0.1328092217,
-0.3628786206,
-0.0556367971,
0.27193138,
0.0631390065,
0.0336344317,
-0.3873291016,
0.0748673975,
0.3000453711,
0.4482412934,
-0.3896302581,
-0.2469754368,
0.0235932469,
0.122348994,
-0.1994509846,
0.2123642862,
0.0509504229,
0.0008063614,
0.0616287068,
0.0196444131,
0.1935778409,
-0.1930176914,
0.2497529387,
-0.1554912329,
0.1598447263,
-0.1672743708,
0.1182281822,
0.0708542019,
-0.2033920288,
0.0497955382,
-0.2369980812,
0.0077663269,
0.1136212945,
-0.2622623742,
-0.0578033775,
0.1595872939,
0.1328142136,
0.0924718976,
-0.2031246126,
0.0840388685,
-0.0385783762,
0.0005316176,
0.373462677,
0.2657109201,
0.2719013393,
0.2630654573,
0.105349429,
0.3113081157,
0.096850872,
-0.1035400257,
0.0171602927,
-0.1741404831,
-0.1962878406,
0.2919623256,
0.2714717388,
0.5614542961,
-0.0071395189,
-0.4003364444,
-0.1129117534,
-0.1762717962,
0.0414780192,
0.1914938837,
0.3488390148,
-0.1659965217,
0.1930410862,
0.2003635168,
0.1248330474,
-0.2139802277,
-0.2602630854,
-0.2342294753,
0.2774359286,
-0.256262362,
-0.1992108077,
0.1157745048,
-0.0126312338,
-0.0741726682,
0.0112991631,
-0.1771455407,
0.1546334028,
0.1403734088,
-0.3297453225,
-0.1945307851,
0.1805401444,
0.0513511226,
0.0468541533,
0.3396642208,
-0.3767824769,
-0.144908905,
0.0857278258,
-0.2972789109,
-0.1406731457,
-0.155543834,
0.3137726486,
-0.2038107216,
-0.0596018098,
-0.2211027741,
-0.027177237,
0.1290351748,
-0.1592083275,
0.0224946178,
-0.1568118632,
-0.0343940258,
-0.4068642557,
0.0919898301,
0.6147865057,
-0.4071786404,
-0.1555483341,
-0.3654868603,
-0.1499287188,
0.3206854165,
-0.2192046046,
0.0420473889,
0.2053422034,
-0.1884396076,
-0.0670419633,
0.558726728,
-0.4109597504,
-0.2658073008,
0.0713305995,
-0.1287923604,
-0.0868590549,
0.0406508297,
-0.0299980231,
0.0722307339,
0.1137080789,
0.4100980163,
0.2751322091,
0.001114592,
0.0079013258,
-0.186445117,
-0.2357116938,
0.1991768032,
0.0649753213,
0.1384466588,
0.1023558378,
0.1406213641,
-0.1971792579,
0.0246631913,
-0.0487639084,
-0.0327244997,
-0.0577895939,
0.5558084249,
-0.0468547717,
-0.0448435917,
-0.5518351197,
-0.4227516353,
0.1897543669,
-0.0799525529,
0.3541661799,
-0.1335036755,
-0.1872806698,
-0.3264652789,
0.0583027229,
-0.1389629245,
-0.0200662278,
0.3176529109,
0.1545749307,
-0.1688735187,
0.0288683176,
-0.0564696081,
0.2119384408,
-0.0756309927,
0.0736122578,
-0.1429308057,
0.3080178201,
-0.0576368347,
-0.3339875042,
0.037768133,
0.2538016438,
0.5117611289,
-0.0004489832,
-0.0633197203,
0.324480325,
0.0866747275,
-0.0496541969,
-0.1650349349,
-0.0999804586,
0.1509414911,
-0.2289371341,
0.0971657112,
0.0872648954,
0.3168589175,
-0.0662048161,
0.0954948664,
0.47752285,
0.0889251232,
0.2869644761,
-0.0390482321,
0.2417568415,
-0.0411588363,
-0.0287828371,
-0.0849920288,
-0.1743536294,
0.0761679411,
0.1894837618,
0.2709220052,
-0.0320917591,
-0.0377045199,
0.0921960324,
0.5580120087,
0.0443214253,
0.3538883328,
-0.0804425478,
-0.3818503618,
0.0884136111,
0.1868630201,
0.2703931332,
0.4774661064,
0.3163057268,
-0.117727533,
-0.0135746766,
-0.0687377751,
0.0689718872,
0.0899053067,
0.0000689365,
0.2182747722,
0.0326350853,
0.2071537375,
0.0608283505,
-0.211371839,
-0.0529056489,
-0.1733762622,
0.2231470644,
-0.407775104,
0.1184413359,
-0.3216185868,
-0.1545062959,
-0.0203860719,
0.0009132102,
-0.1665669084,
-0.3700624704,
-0.2923040986,
0.0090755327,
0.0586136431,
0.1355309933,
0.0729430914,
0.0848089084,
0.0303804502,
0.0038108286,
-0.1432914436,
-0.1506636143,
-0.1972368509,
0.1309271157,
0.1724001467,
0.2035220265,
0.4579096437,
-0.17239362,
0.1496830136,
-0.0668232292,
-0.2592737079,
0.0691071153,
-0.0358920097,
0.5192120671,
0.4751574099,
0.1759486794,
0.0373363569,
-0.0723708421,
0.3917131722,
-0.3375652134,
-0.0363608152,
0.281317085,
-0.2262488604,
0.1912381351,
-0.1627744138,
-0.2709550261,
-0.5850610733,
-0.4314646721,
0.0900494978,
0.158193469,
0.1574171782,
0.229073137,
0.1376304328,
0.4989830554,
0.0554461516,
0.1736274511,
-0.1574212909,
-0.0517016985,
0.2869262695,
-0.1282684505,
-0.3188621998,
0.0627030134,
-0.1610588878,
0.2123719752,
0.0095065311,
-0.2091803402,
-0.5421626568,
-0.1937738359,
0.2488985211,
-0.0088548334,
0.1406644285,
0.2820861936,
0.1652371883,
-0.1718963832,
-0.2008979023,
-0.1451960802,
-0.0958749056,
0.2647383809,
0.00327852,
0.1268493235,
0.3415831327,
-0.1613710523,
0.1591747105,
0.021252282,
-0.1993085146,
0.4149999619,
-0.264028877,
0.3553537428,
-0.1553535461,
-0.5011109114,
-0.1316000372,
-0.0341553688,
0.0119616911,
-0.0257775001,
-0.14988482,
-0.1616334766,
-0.3645353913,
-0.1962911487,
-0.4402102828,
-0.1943258643,
-0.0451902337,
0.1996701658,
0.0204200819,
-0.0293067507,
0.1270927489,
-0.4808776677,
0.0326098837,
0.0426804163,
0.2218270898,
-0.0436264947,
-0.1767760366,
-0.2460243553,
-0.2401106954,
-0.2647053897,
0.4546616673,
-0.1586206108,
0.0367191769,
-0.1481581479,
-0.0604274049,
0.0030127317,
-0.0713323802,
0.5519666076,
-0.3454788923,
0.1679468751,
0.5127312541,
0.1982305795,
-0.3972997069,
0.1448309571,
-0.3467212915,
0.1978713572,
0.0658442229,
0.3129544854,
-0.3585752547,
-0.0375087671,
0.2515778542,
0.2019122541,
-0.1292981207,
-0.174051106,
-0.1447781473,
-0.2503760457,
-0.1316993237,
-0.0584860556,
-0.1246137023,
0.3594865799,
-0.1265375018,
-0.1583640575,
-0.3093513548,
-0.0301201604,
0.1789495051,
0.1840766668,
0.2802937329,
-0.0759281889,
-0.03676093,
-0.0464058332,
0.0716992468,
0.2319861203,
0.3442592621,
-0.0239477977,
-0.3606001437,
0.066776216,
0.0140343197,
0.2356525362,
0.0585266426,
-0.1843718439,
-0.1035961956,
-0.0533857346,
0.2002054602,
-0.1060455441,
0.0749845952,
0.3068715334,
0.0640614778,
-0.3982107937,
-0.3787679076,
0.4075769782,
0.1482773423,
-0.0558765456,
0.2646421194,
0.2493724525,
-0.3079307079,
0.2636660039,
0.0765034556,
0.9972298145,
0.0634363592,
-0.1427222937,
0.5291193128,
-0.099249877,
0.5708353519,
0.0216645896,
0.0737808719,
-0.3225642145,
-0.240317896,
-0.0621667281,
-0.1458811164,
0.363782227,
0.0177569762,
-0.5546256304,
0.2570112944,
-0.4040378928,
0.0338810086,
-0.0993949547,
-0.0540794656,
-0.1680081785,
-0.1555939168,
-0.4221652746,
0.2615644336,
-0.139160037,
0.1646667719,
-0.0964663923,
-0.0559898019,
0.000704892,
-0.1505106091,
-0.0544884354,
0.0260488763,
-0.4705292881,
-0.0928323418,
-0.1959892511,
-0.1402023733,
-0.0150174722,
0.2117722034,
0.1081973165,
0.0798803791,
-0.2208485156,
0.0747628957,
0.1003002003,
0.1113615781,
-0.0745938569,
0.0186238177,
0.2860432267,
-0.0365926623,
-0.3421167135,
0.1451579034,
-0.0346254632,
0.1750635505,
0.3781579733,
0.0789965987,
-0.058396101,
-0.3603260815,
-0.1006427109,
-0.0581626594,
0.2370613068,
-0.2568029761,
0.2513566613,
0.0545559525,
-0.0355337933,
0.0711978823,
-0.1054589003,
-0.0828102231,
-0.09730272,
0.3941633701,
0.2912923396,
0.2772477269,
0.2169929445,
0.2351005524,
-0.2244954556,
-0.3636666834,
0.288949877,
0.0990769789,
-0.3086125255,
0.1984175742,
0.2202886641,
-0.0483227968,
-0.0357771814,
0.3472391665,
0.011434515,
0.0498364456,
-0.1350132376,
-0.2807761431,
-0.2225388438,
0.2674213052,
0.090643242,
0.0844056904,
0.0283269957,
0.1621983647,
0.1774457097,
-0.0547243208,
-0.4514693916,
-0.0117364582,
-0.3375882506,
-0.0379745364,
0.1141252518,
-0.0688914359,
0.2117236704,
0.0469735265,
0.2668264806,
-0.0270953067,
-0.0954018086,
-0.3234717846,
-0.1007949486,
0.1007453278,
-0.0319782645,
-0.0041056424,
0.2243580818,
-0.1309218109,
-0.1626258194,
-0.1651719809,
0.1755300313,
0.0577327833,
-0.1902178526,
0.1038781255,
0.1569738239,
0.2834070325,
0.043025203,
0.2171772271,
-0.0266573727,
-0.0581224076,
-0.0226647519,
0.0391198136,
0.0156678483,
-0.0498563945,
-0.0160414465,
0.0438439399,
0.0941354707,
0.1154539436,
0.1023314595,
-0.1328702867,
-0.2397716939,
0.1010525674,
0.1707956195,
0.1672706157,
-0.116989553,
0.2498271167,
-0.085239999,
0.3432339132,
-0.3024182916,
0.0496236905,
0.1867100298,
-0.1545251161,
0.2260235697,
0.1156063527,
-0.3048251271,
0.224593997,
-0.1469651312,
-0.0125417598,
0.4131201208,
-0.1344490796,
0.214096278,
0.3211933672,
-0.0835604519,
-0.0166894719,
0.3776884377,
0.1835822016,
0.1086515486,
0.0316773988,
-0.0579560585,
0.147086665,
-0.0196429007,
0.0855417699,
0.2414098233,
-0.505023241,
0.2710330486,
0.2405997813,
-0.0243103206,
-0.1121373475,
-0.1639894098,
0.3712480664,
-0.5745440722,
-0.0636712611,
-0.3064313531,
0.0594135523,
-0.1685568243,
0.115952462,
-0.1114946008,
-0.1400386393,
-0.256551981,
-0.2784866095,
0.0633288026,
-0.2414884269,
0.2439765334,
-0.1118729711,
0.0211273134,
-0.2714127302,
-0.0401525497,
0.2217799425,
0.1276277304,
-0.1941972077,
0.0097097941,
0.0506010614,
0.2041798383,
-0.1806844175,
0.5522728562,
0.3988935351,
0.3800224662,
-0.1354632825,
-0.0664788634,
0.1149361879,
-0.2638258636,
-0.0904529095,
0.010561645,
-0.036264196,
0.2590774,
0.104394719,
0.3203140497,
-0.3022007942,
-0.0068908087,
-0.019003205,
0.0057309493,
-0.2694805264,
0.3833440542,
-0.2941299677,
-0.1339459717,
-0.1130260527,
-0.0764847994,
-0.5723279119,
0.0453011915,
0.4337009192,
0.0553496443,
0.1160497442,
-0.1790064275,
0.1447363198,
-0.1381018162,
0.1920722276,
-0.0137897581,
0.2897504866,
-0.2669523358,
0.0805812478,
-0.524718821,
0.3150632381,
0.0391138121,
-0.1924295276,
-0.0284715332,
-0.1205903888,
-0.1418035924,
0.0033039683,
0.0252629519,
0.27408427,
0.2506787777,
0.0156387296,
-0.5449014306,
-0.2936491668,
-0.0416167863,
-0.1840640157,
0.0557726696,
-0.3411945403,
-0.0023587178,
-0.174048394,
0.1497214139,
0.0006316528,
-0.249928534,
0.1440656632,
0.0977681726,
0.6802560687,
0.1865137666,
0.4030939937,
-0.0869980901,
-0.0436692163,
0.0363890976,
-0.2932220101,
-0.1100364476,
0.234005779,
0.0753232315,
0.2027740479,
0.0346168429,
0.1456870884,
-0.2451830953,
0.0854275823,
0.0174438283,
0.1328040957,
-0.147585243,
0.310908258,
-0.150909394,
-0.2978287339,
-0.1912624836,
0.0007489193,
0.105097726,
0.1029955149,
-0.0694364309,
-0.2385255396,
0.5177173018,
-0.2855586708,
-0.1767609119,
-0.0903273299,
0.352011919,
-0.0403811149,
-0.1172365993,
-0.506731391,
0.0546451211,
0.4887305796,
-0.0022291904,
-0.1500932127,
0.163882792,
-0.2067312002,
0.0215015858,
-0.0706167296,
0.0114975777,
-0.0409059785,
0.0008291677,
0.1980814636,
-0.1320044696
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem. | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 20 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem. | [
-0.2608939707,
-0.2007062733,
0.0659998506,
0.400195837,
0.4645991623,
0.0115251243,
0.3240973055,
0.0941316262,
0.1896000057,
0.3001817167,
-0.284909308,
0.46675843,
-0.0366439708,
0.1668578088,
0.0777646005,
-0.1253730357,
-0.2606467903,
0.2636677623,
-0.1777468771,
0.0613666475,
-0.523363173,
0.023198599,
-0.2373638302,
0.0858906582,
-0.276800096,
-0.1533991694,
-0.0281503759,
0.0797132999,
-0.2462173998,
-0.2805505395,
0.4611608684,
-0.0159624666,
0.1640478671,
0.5104132295,
-0.000102348,
-0.0184574723,
0.5836997628,
0.0530033186,
-0.0761519223,
-0.4211901128,
-0.225562796,
-0.3977998197,
0.2870039344,
-0.3548146486,
-0.1275417209,
0.0055778101,
0.0405133069,
-0.1819052547,
0.2621394992,
0.3204342425,
0.3242149949,
0.529689908,
0.0114420429,
-0.3599713147,
0.19651182,
0.080829896,
-0.0636898279,
0.3710537851,
0.0265842639,
-0.0474931672,
0.2439642251,
0.0870307088,
-0.3353534639,
0.0527607724,
0.2847361565,
0.0382547714,
0.0095303971,
-0.2701701224,
0.0964758843,
0.3694059253,
0.3855828345,
-0.3826203942,
-0.1514431387,
0.1750091761,
0.2239647806,
-0.2032710165,
0.2116490602,
0.046877481,
0.0163051747,
0.0907447413,
-0.0130722485,
0.1712201387,
-0.2445575744,
0.2749374509,
-0.2020063698,
0.1065497547,
-0.1935496777,
0.1447966099,
0.0849972665,
-0.1188600287,
0.076334089,
-0.1345976293,
-0.0619973019,
0.0890903398,
-0.2083805352,
0.0349295586,
0.1152057499,
0.1535796374,
0.1636117101,
-0.2843678296,
0.1018848717,
-0.0238336027,
0.0397983156,
0.4501174688,
0.2414611429,
0.1897559315,
0.2724780142,
0.0886931717,
0.2660124898,
0.0667874962,
-0.2417135686,
-0.0120893149,
-0.1543583572,
-0.0610720515,
0.2427948713,
0.141184777,
0.5124644041,
0.0189153478,
-0.4501630664,
-0.1742379665,
-0.1721327901,
0.0913003609,
0.2716416121,
0.427763015,
-0.1526401043,
0.0820784569,
0.1332415938,
0.1743282676,
-0.1884509027,
-0.2918043435,
-0.3183253706,
0.3539676666,
-0.2528479397,
-0.2349546403,
0.1911381483,
0.0579656847,
-0.0449790694,
0.0134670697,
-0.095847711,
0.1027006507,
0.088668637,
-0.2908605933,
-0.2310649753,
0.3132710457,
0.2443050146,
-0.0628331527,
0.2800610065,
-0.4668277204,
-0.0915967897,
0.2292029709,
-0.2898916304,
-0.1671738327,
-0.0732441396,
0.2667024732,
-0.3390545249,
-0.0697352737,
-0.2441666722,
0.0466723293,
0.0489579961,
-0.1566347033,
-0.1024088636,
-0.0962614268,
-0.1126569733,
-0.4234249294,
0.0446181744,
0.5165780783,
-0.3751865029,
-0.1992407143,
-0.3078097701,
-0.1091820896,
0.3522841036,
-0.1473015696,
0.014566876,
0.0629001483,
-0.1706567705,
-0.0006858185,
0.6008650064,
-0.3847205639,
-0.2815135717,
0.0563008562,
-0.0371870995,
-0.1165538281,
-0.0517221019,
-0.0470440798,
0.0718875453,
0.1356430054,
0.4128213823,
0.244653374,
0.0493589267,
-0.0324675031,
-0.2109588683,
-0.2381095588,
0.1280456483,
0.1516580582,
0.1272704899,
0.1630408466,
0.0712501183,
-0.2506301999,
-0.0557165593,
-0.0061882641,
-0.1022448689,
-0.0301640648,
0.5365024209,
-0.1599624604,
-0.0399642512,
-0.5328828096,
-0.3950176537,
0.2330814749,
-0.0779281259,
0.2541696429,
-0.1054887474,
-0.1700355113,
-0.3529816866,
0.1019509658,
-0.0170239545,
0.0607615709,
0.2853279412,
0.0909615308,
-0.2011490464,
0.1454880536,
-0.0809035301,
0.1637727171,
-0.087349765,
0.0512319021,
0.0335051864,
0.2916672826,
0.074778311,
-0.3356171548,
0.0352952406,
0.1897848248,
0.4574479163,
-0.0104596857,
-0.0672703534,
0.2640904486,
0.0708924383,
-0.0788057446,
-0.2070860565,
-0.053817898,
0.0879927427,
-0.3130641282,
-0.030365875,
0.0379849188,
0.3187096119,
-0.0943739638,
0.0625384003,
0.60389328,
0.0668435246,
0.1744621694,
-0.0730603412,
0.2714181244,
0.0653242245,
-0.0385557301,
-0.1490772516,
-0.1286281198,
0.045984745,
0.1176182479,
0.2486369312,
0.0061036889,
-0.0880213529,
-0.0231885426,
0.5769151449,
0.0913833827,
0.360791117,
-0.1375174522,
-0.4204134941,
0.1137950793,
0.0370062441,
0.2525542676,
0.5032668114,
0.3323158324,
-0.106863752,
0.0236292649,
-0.0571722686,
0.040472731,
0.1032920927,
0.0494470224,
0.2328972369,
-0.0000239713,
0.3057211637,
-0.0209418833,
-0.3462260664,
0.1613913476,
-0.0538480021,
0.1842064112,
-0.3760870695,
0.1845390052,
-0.2747033238,
-0.0767575428,
0.1425513178,
-0.1027246565,
-0.1250049919,
-0.3286288381,
-0.2664068639,
0.1081376821,
0.1210905612,
0.1938207597,
0.1422474086,
0.07632,
0.0087453499,
-0.0255288649,
-0.1826612949,
-0.1326550692,
-0.1483922005,
0.0880741403,
0.1653356701,
0.1819407791,
0.4119825661,
-0.1496376097,
0.2284884453,
-0.0511269607,
-0.2455981225,
0.1001776606,
-0.0573290661,
0.5299284458,
0.408608675,
0.0602922142,
-0.1410641521,
0.1004513651,
0.4188910425,
-0.4658014476,
0.0264789313,
0.363583684,
-0.3070642948,
0.0837265402,
-0.2518776357,
-0.1060988158,
-0.5478299856,
-0.4280378222,
0.0683306605,
0.0958197415,
0.0449771434,
0.172417298,
0.119117707,
0.4440963268,
0.1123927534,
0.0157599896,
-0.2330420762,
-0.085408181,
0.3311127722,
-0.169325158,
-0.3608908653,
0.204248786,
-0.13234815,
0.254873842,
0.0285871103,
-0.1609788239,
-0.5243912339,
-0.1556177586,
0.2053532153,
-0.0051885177,
-0.0110914437,
0.2912257314,
0.0402859747,
-0.1367864907,
-0.2726748586,
-0.1413016021,
-0.0488151647,
0.2352695167,
-0.0683874488,
0.0471842289,
0.2825388312,
-0.1223014444,
0.143637836,
-0.1094391719,
-0.1853010803,
0.4059677422,
-0.3138793707,
0.3742717505,
-0.1514654905,
-0.4665457308,
-0.2108909041,
0.0278711319,
0.0422419608,
0.0484343804,
-0.1829000711,
-0.2429658175,
-0.3873914182,
-0.1840576231,
-0.3091233373,
-0.1176473126,
-0.0448230244,
0.1869137883,
-0.0344656929,
0.1282409579,
0.1506692767,
-0.4099554121,
-0.0440215059,
-0.0145164058,
0.1907590032,
0.00033338,
-0.1874932349,
-0.1343231648,
-0.239413783,
-0.3349730372,
0.4665147066,
-0.1304174811,
-0.0214519519,
-0.104810752,
-0.0228137821,
0.1187150776,
-0.0458018295,
0.5801779032,
-0.2944788635,
0.1719287932,
0.5542984605,
0.0904799476,
-0.551659286,
0.1077314913,
-0.331844449,
0.3005692661,
0.1331282109,
0.2810215354,
-0.3470427394,
-0.0193873215,
0.2158619314,
0.0685858876,
-0.115108788,
-0.2407926917,
-0.2334079742,
-0.2933898568,
-0.0492700823,
-0.0665730238,
-0.0586116724,
0.4225765467,
-0.1354665011,
-0.1273060739,
-0.4123404026,
-0.0367354043,
0.1656019241,
0.1939740181,
0.3422515988,
-0.1359106898,
-0.0259815566,
-0.0587921478,
0.0830498338,
0.1330540478,
0.3568015099,
0.0888103098,
-0.4469740987,
0.1390764117,
0.0736013874,
0.2392613739,
0.0024293587,
-0.2127712965,
-0.1564222425,
-0.0973183587,
0.1256740987,
0.0694905892,
0.1411264241,
0.2321472615,
0.0137667991,
-0.3646834791,
-0.23113361,
0.4325917065,
0.1745892465,
0.0250270218,
0.2719004154,
0.2346458435,
-0.2254340649,
0.2237932384,
-0.0649300143,
0.9164005518,
-0.0016310364,
-0.1102361977,
0.6165454388,
-0.0979903564,
0.5674658418,
0.0650797188,
0.06793347,
-0.3704263568,
-0.2879860103,
-0.0052314736,
-0.145375669,
0.2548451424,
-0.0493532084,
-0.5216739178,
0.2098066211,
-0.3250361085,
0.0563873984,
-0.0338758603,
-0.0862725526,
-0.0688718185,
-0.1625674814,
-0.3169092834,
0.2203887105,
-0.1160021424,
0.165247947,
-0.0905515254,
-0.0729374886,
0.0201875493,
-0.0793529898,
-0.085989736,
0.051867485,
-0.4105742574,
-0.1025811732,
0.008886178,
-0.1489423066,
-0.049235858,
0.1097770333,
0.0439090356,
0.0238105133,
-0.3483444452,
0.2360745966,
0.0525085554,
0.0174740031,
-0.0742552504,
0.0752041936,
0.2092092037,
-0.0593719892,
-0.2678528726,
0.1072411239,
-0.0471313968,
0.167549476,
0.3512033224,
0.1351453364,
-0.1057784781,
-0.3018783331,
-0.2150234878,
-0.138738066,
0.2945331037,
-0.2950991988,
0.2529355288,
0.0883855373,
-0.112839818,
0.0237116516,
0.0370560735,
-0.1807859242,
-0.0391987674,
0.4054491222,
0.331543684,
0.3266710639,
0.1742116511,
0.2139462233,
-0.1330502927,
-0.3562078476,
0.2356428504,
0.0744931847,
-0.3519968987,
0.3284548223,
0.2739298046,
-0.0456543863,
0.0271228477,
0.4190956056,
0.0177648626,
-0.0406256989,
-0.1278359294,
-0.2977451682,
-0.2052851319,
0.2201708853,
0.0076372889,
-0.0133153033,
0.1036313623,
0.2353743464,
0.1969152093,
-0.0753163695,
-0.4256238341,
0.118460834,
-0.3420971036,
-0.1064499319,
0.035814371,
-0.0839427412,
0.1991973817,
0.0943031162,
0.2200211883,
0.0412442908,
-0.1173670217,
-0.3198771477,
-0.1708855927,
0.1157299876,
-0.060352385,
0.0984602273,
0.1912233233,
-0.0978017077,
-0.3399778306,
-0.1138170585,
0.0863472745,
0.0186831132,
-0.2485669851,
0.038939558,
0.1841406226,
0.2960724831,
0.0243149623,
0.2214776725,
0.0648288354,
-0.0516981333,
-0.1667805314,
0.007017191,
0.073860921,
-0.0377257988,
0.0453984924,
-0.0242693834,
0.1464239061,
0.1258281916,
0.1472238004,
-0.1821621805,
-0.1376379132,
-0.0106541142,
0.162267819,
0.1054019481,
-0.1678972691,
0.3169000745,
-0.1511396915,
0.3191595376,
-0.3713178635,
-0.01812624,
0.2591812611,
-0.0037932061,
0.2337245345,
0.0487343706,
-0.2177034467,
0.2784507573,
-0.1001747772,
-0.0086977035,
0.4537390172,
-0.1244417429,
0.0648772717,
0.2385078818,
-0.1500530094,
0.067467615,
0.4041025639,
0.2606098056,
0.0971259177,
0.1352505535,
-0.0299772732,
0.1296593249,
-0.0773410648,
0.0511166416,
0.1697780341,
-0.5580496788,
0.1861063689,
0.1685795486,
0.0023656413,
-0.079158783,
-0.2323796898,
0.4102465212,
-0.4937512279,
-0.0605659112,
-0.3794311881,
0.0643697754,
-0.1630285084,
-0.001375936,
-0.1433873624,
-0.1149193123,
-0.1717611849,
-0.2528253198,
0.0416352823,
-0.0990594476,
0.2412426174,
-0.1137953922,
0.104686588,
-0.1930139512,
-0.039943181,
0.2786888182,
0.0477991551,
-0.1555452347,
0.0398127958,
-0.0601671226,
0.25269261,
-0.1166726053,
0.4984672368,
0.4282828569,
0.2650190294,
-0.2017351985,
-0.1184141189,
0.0438960791,
-0.2949292064,
-0.1482041925,
0.144887507,
0.1621519923,
0.1861359477,
0.0748437122,
0.2893257141,
-0.284999162,
0.130823642,
-0.003674889,
-0.0078190863,
-0.2805201113,
0.3590801954,
-0.3625503182,
-0.1178257018,
-0.1554855704,
-0.1072710901,
-0.479308784,
0.0987949073,
0.3647945821,
0.1218606234,
0.1348398328,
-0.1550242007,
0.1431169361,
-0.2600434721,
0.2424016297,
-0.0232323259,
0.3653591275,
-0.2398388982,
0.0257781595,
-0.5430265069,
0.4481771588,
0.0129254591,
-0.0782644227,
0.0848242193,
-0.1217020601,
-0.1154602543,
-0.0344451778,
-0.0048421919,
0.3630886674,
0.2708312869,
-0.0477744862,
-0.5591888428,
-0.3568102419,
-0.0946182683,
-0.2772192657,
0.046137698,
-0.2907798886,
-0.0501830727,
-0.1604976058,
0.132650882,
-0.0683540106,
-0.2736572027,
0.1152130738,
0.2708913982,
0.6669095755,
0.2045689821,
0.4079796672,
-0.087473087,
0.0932617038,
0.0733774453,
-0.2984469533,
-0.075420171,
0.190566808,
0.1010605022,
0.136260882,
0.0150282159,
0.1734220684,
-0.1472680569,
-0.0376885794,
-0.0404812992,
0.0578767695,
-0.2393030971,
0.3138108552,
-0.289704442,
-0.1945981681,
-0.2668878734,
0.0952340215,
0.0843105987,
0.109661743,
0.0218844712,
-0.0939405337,
0.6466469765,
-0.2551370263,
-0.3148621917,
0.0029653795,
0.2552379668,
0.034093529,
-0.1752846837,
-0.4145068526,
0.0628260672,
0.4432112277,
-0.054986354,
-0.2183594108,
0.2427143455,
-0.1774554998,
0.0503366664,
-0.1022100076,
0.0111542828,
0.0516406223,
-0.0675836876,
0.1296827197,
-0.0830132216
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | One naive question: do you have internet access from the machine where you execute the code? | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 16 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
One naive question: do you have internet access from the machine where you execute the code? | [
-0.2466747165,
-0.216607213,
-0.0038837157,
0.3586862981,
0.4009476304,
0.0355367959,
0.3025213778,
0.1521889865,
0.1650360674,
0.3566101789,
-0.1779199541,
0.4452128112,
-0.0382571146,
0.1990445554,
0.0816195309,
-0.0899615139,
-0.2033717483,
0.2447065115,
-0.1842229366,
0.010521777,
-0.4728770256,
-0.0185201094,
-0.1821441948,
0.0199328475,
-0.2480739355,
-0.2002854496,
-0.116398558,
0.064500697,
-0.214898631,
-0.2530292273,
0.3632110953,
0.0450635217,
0.1123680919,
0.5467213988,
-0.0001019842,
-0.086210236,
0.4975405037,
0.0762402564,
-0.1133385301,
-0.222715348,
-0.2704130411,
-0.3431524038,
0.1823254377,
-0.4260804951,
-0.091654405,
0.0288907029,
0.0123816524,
-0.248190999,
0.3053151071,
0.3072139919,
0.3397085071,
0.4426212013,
-0.0190168247,
-0.3322892785,
0.2162290812,
0.042104397,
-0.0323109291,
0.3622152507,
0.0633599758,
-0.0537312143,
0.1767417789,
0.182411164,
-0.2867753804,
-0.0029554125,
0.2504887283,
0.0876016989,
-0.0245358683,
-0.2595614791,
0.1022055671,
0.2668828368,
0.2856885195,
-0.4520846009,
-0.1245521903,
0.1114802212,
0.1043581069,
-0.2367099524,
0.1430764198,
-0.0036110617,
-0.0197006837,
0.1060362011,
-0.0351591259,
0.1336912513,
-0.2316649407,
0.2396647334,
-0.2091167867,
0.1492933035,
-0.1894277036,
0.0967107415,
0.0752302334,
-0.0852818862,
0.0532207265,
-0.1713411957,
0.0210762136,
0.0105691925,
-0.1507950425,
-0.0472185723,
0.1830176562,
0.1402940154,
0.1534053385,
-0.2545788586,
0.1078878343,
-0.0058755167,
0.1186241582,
0.4159374833,
0.1543829888,
0.2415637374,
0.215063557,
0.0880804062,
0.2187137306,
0.1302515864,
-0.2568059266,
-0.0115337223,
-0.0923354253,
-0.0363530666,
0.3084874749,
0.1605718136,
0.4978731275,
0.014809683,
-0.4372945726,
-0.0482417718,
-0.2314785868,
0.1063998789,
0.2851623595,
0.3828614354,
-0.2197889835,
0.0280768722,
0.1954131424,
0.1463474929,
-0.1679080427,
-0.2896849811,
-0.3228366077,
0.3451817036,
-0.3253238797,
-0.1996293813,
0.1255361438,
0.0956025571,
-0.0785863698,
0.0480369106,
-0.0357118882,
0.0553012341,
0.0763485208,
-0.2473662794,
-0.1706801206,
0.185605377,
0.2096799761,
-0.1042111665,
0.3234434724,
-0.4836683869,
-0.1027236134,
0.1058213115,
-0.2070775926,
-0.0896054283,
-0.0359199978,
0.318017751,
-0.3513983786,
-0.1008676291,
-0.1515368968,
0.1008074135,
0.0612458549,
-0.1549363285,
0.0268286467,
-0.08387959,
-0.0460205413,
-0.4438782632,
0.0987587348,
0.5773770213,
-0.3923663497,
-0.1583534479,
-0.3149742484,
-0.0410093702,
0.3569570482,
-0.2316164672,
0.1328967959,
0.1612988412,
-0.1505949944,
0.0307373405,
0.5494579673,
-0.3594249487,
-0.2982894182,
-0.0194497369,
-0.1195068508,
-0.0845604837,
-0.0080688894,
-0.1045467556,
0.075864777,
0.1502963305,
0.4117964208,
0.2450774014,
-0.0244921148,
-0.0403470732,
-0.2356397212,
-0.2162142098,
0.0301531181,
0.1072424501,
0.1855029762,
0.1609572023,
0.1086663529,
-0.2254883051,
0.0150828268,
-0.0165604614,
-0.0678271428,
-0.0664630383,
0.5562682152,
-0.1198011488,
-0.1030110717,
-0.5486019254,
-0.3364982009,
0.2137775868,
-0.0644095242,
0.258382082,
-0.1622747332,
-0.1771241724,
-0.4169960916,
0.117374815,
-0.059169326,
0.0415955335,
0.3479427695,
0.1584894657,
-0.1316381246,
0.1201645657,
-0.0389239751,
0.1554773152,
-0.0975590497,
0.061542213,
0.0028669666,
0.3624255061,
0.0288161058,
-0.3402500749,
0.0125433132,
0.2390863299,
0.492028594,
0.025128603,
-0.0366600715,
0.342571348,
0.0153981298,
-0.0589251332,
-0.0713607147,
0.0129816011,
0.0355377495,
-0.3102555275,
0.0903075114,
0.0740947276,
0.274333328,
-0.0501495488,
0.0455591232,
0.5526733398,
0.0639083236,
0.1631186903,
-0.0774781555,
0.274751991,
-0.1043331027,
-0.0652055368,
-0.1591197699,
-0.1482453942,
0.1165028065,
0.0529981032,
0.1941262633,
-0.0445725545,
-0.1024119481,
0.0711863562,
0.6148299575,
0.0744789541,
0.4100615978,
-0.1350680143,
-0.3626484275,
0.1363147497,
0.0632822365,
0.2627355456,
0.437394917,
0.3606953025,
-0.0552526973,
0.0725061148,
-0.0956001505,
0.0463586375,
0.0818471238,
0.0780009329,
0.1710066497,
-0.0235595554,
0.2648814023,
0.0000485238,
-0.3021973968,
0.0393877923,
-0.2115721703,
0.1999683976,
-0.3442276418,
0.2703233659,
-0.2761572301,
-0.1083707362,
0.0665706992,
-0.134164542,
-0.1119984388,
-0.397225827,
-0.1896920204,
0.0495735593,
0.0846981779,
0.1596635431,
0.1331481636,
0.1780960411,
0.0435848236,
-0.0506396219,
-0.2169364393,
-0.0929437876,
-0.1491836905,
0.1245200858,
0.1127888262,
0.2195498049,
0.4563967586,
-0.2264527977,
0.2653894424,
0.0405264944,
-0.2521407604,
0.1091041788,
-0.1113009453,
0.5382028818,
0.4217019081,
0.0849711299,
-0.1375482082,
0.0479234867,
0.4025656879,
-0.3987689912,
0.0345611572,
0.2760671675,
-0.1733169109,
0.0993671939,
-0.2214979231,
-0.1091302559,
-0.4937295914,
-0.4305159152,
0.0535356998,
0.09401647,
0.0907850862,
0.166135788,
0.1647698283,
0.5161485672,
0.0903602242,
0.0853420496,
-0.2309447527,
-0.0928332955,
0.2652716935,
-0.1356294155,
-0.3170880973,
0.1164374948,
-0.1327293664,
0.1882433295,
0.0346634798,
-0.2173748463,
-0.5696405768,
-0.176106751,
0.2179041505,
-0.0343910865,
0.0933206305,
0.269998759,
0.0949119329,
-0.1569222808,
-0.2845882773,
-0.1625178754,
-0.091495961,
0.1541404724,
-0.0318300463,
-0.0249703601,
0.2786459923,
-0.1161086708,
0.1320553124,
-0.0665606186,
-0.2075436115,
0.3825693727,
-0.3480912149,
0.3984665573,
-0.0996408761,
-0.5201002955,
-0.1736069322,
0.0353285372,
-0.0609326884,
0.0489658192,
-0.1714958847,
-0.2166231126,
-0.3766877353,
-0.0562464893,
-0.362701416,
-0.1873271763,
-0.0391592756,
0.1560377926,
-0.036883533,
0.0749150217,
0.1888152063,
-0.4491064847,
0.0570054129,
-0.0169513859,
0.1537909061,
-0.0894058198,
-0.1648555696,
-0.1185743511,
-0.2468069792,
-0.2861299217,
0.4680054486,
-0.1499367058,
-0.056393154,
-0.2046155035,
-0.0660795718,
0.090541929,
-0.0358794853,
0.5689524412,
-0.3503736854,
0.1897080988,
0.4768278003,
0.1251966059,
-0.4568900466,
0.1350765675,
-0.4355597198,
0.2517587245,
0.2185433805,
0.2802274823,
-0.3060500622,
0.0191352777,
0.2399569154,
0.1026438549,
-0.1106583327,
-0.2221297622,
-0.221788466,
-0.3183930516,
-0.0803544819,
0.0420139432,
-0.0252926461,
0.4193621576,
-0.098345384,
-0.1282832623,
-0.3264185488,
-0.0256801173,
0.2025929987,
0.2596052587,
0.2894296944,
-0.1231494546,
-0.1225852817,
-0.0823644698,
0.0792323947,
0.1359491646,
0.3235683143,
0.079357177,
-0.344630003,
0.0907276273,
0.0888889506,
0.2781876624,
0.0573619008,
-0.17625916,
-0.144050777,
-0.0869550705,
0.2175623775,
0.0061374307,
0.1769182682,
0.254858315,
0.0897865593,
-0.3811887503,
-0.2307593673,
0.4337723255,
0.1766113043,
-0.0381239578,
0.2948854268,
0.2082068771,
-0.2366477847,
0.2260972261,
-0.0221613906,
1.0133314133,
0.0526238717,
-0.1635144055,
0.5793555379,
-0.1488887817,
0.5672780275,
-0.0199493989,
0.0393971577,
-0.331808269,
-0.2921087742,
-0.0050111748,
-0.1491660327,
0.2573119402,
-0.0939403996,
-0.607548058,
0.1944485605,
-0.3985604942,
0.0609820336,
0.0078524295,
-0.1274121255,
-0.1191682518,
-0.109427698,
-0.345857203,
0.264438808,
-0.1378705502,
0.1916238368,
-0.1486471146,
-0.0662538707,
-0.0817672908,
-0.1098182499,
-0.1274233311,
0.0437015295,
-0.3669554889,
-0.1849407554,
-0.0509840101,
-0.1615006626,
-0.1080824584,
0.0942900777,
0.0813170224,
0.1470958292,
-0.27799505,
0.0880823061,
0.0845175534,
0.0242377371,
-0.0069388896,
0.0085473992,
0.1958829612,
-0.0370819196,
-0.2943583131,
0.10687235,
0.0457874686,
0.1151763201,
0.3087919652,
0.1035760194,
-0.0675777569,
-0.3244168758,
-0.1034837812,
-0.0974466354,
0.2481090128,
-0.3131103516,
0.2714839876,
0.0891999975,
-0.1201469451,
0.0999450907,
-0.012930695,
-0.1413191408,
-0.0845807195,
0.3065217137,
0.2475551367,
0.3110373616,
0.065114215,
0.2337540388,
-0.1451797336,
-0.3778773844,
0.1946111172,
0.1266462207,
-0.3094278276,
0.245184809,
0.113203302,
-0.1002139673,
-0.0189669114,
0.3583428562,
0.087267302,
0.012129155,
-0.1319915503,
-0.3177197278,
-0.2275744975,
0.1974660307,
0.126283884,
0.0467937738,
0.0409473702,
0.2409868389,
0.2160648853,
-0.0149478409,
-0.4777273536,
0.023357369,
-0.3548015058,
-0.1210963503,
0.0553100705,
-0.1312023699,
0.2106186748,
0.030774314,
0.2626607418,
0.0611374341,
-0.1230163276,
-0.3603872657,
-0.1196231171,
0.0878794268,
-0.0960550457,
0.1212470978,
0.1928563267,
-0.0655951351,
-0.2737082839,
-0.1821471155,
0.0655785799,
-0.0048970506,
-0.1561484933,
0.0742096305,
0.1955160797,
0.3057777584,
0.0542220101,
0.0768093616,
0.1181697249,
-0.0472167209,
-0.094090797,
0.0504163466,
0.0114918724,
-0.0916208103,
0.0615545698,
0.047316473,
0.1579474807,
0.1204229742,
0.1462676972,
-0.1426481158,
-0.1761247814,
0.0342856459,
0.2458389848,
0.1684487462,
-0.1826534569,
0.2451196611,
-0.203199625,
0.3686017394,
-0.3018472791,
0.0448667854,
0.2334460616,
-0.0057719983,
0.2976728678,
0.1492144316,
-0.2892276645,
0.2251116037,
-0.1543214917,
0.0022289231,
0.4208868742,
-0.0848290771,
0.0941329896,
0.2553797662,
-0.1617472768,
0.0726770163,
0.4207954705,
0.2157664895,
0.080896616,
0.1147266179,
-0.0120391883,
0.2092017084,
-0.059548039,
-0.0088515338,
0.1725983024,
-0.4266691804,
0.1862839609,
0.1980998218,
0.0223721266,
-0.0381644666,
-0.2197996825,
0.4153004587,
-0.5084770918,
-0.0565226004,
-0.3237144351,
0.0487762876,
-0.174115479,
0.0605983101,
-0.1682130545,
-0.1289481968,
-0.2265688181,
-0.2804174721,
0.1312568635,
-0.1609178483,
0.2799319029,
-0.1695612818,
0.1022947356,
-0.1938088089,
-0.0666628331,
0.2105488777,
0.1612251103,
-0.2031766474,
0.0029689781,
-0.0198348761,
0.2243939936,
-0.1444882452,
0.4721125662,
0.4282213449,
0.2557368279,
-0.1851378828,
-0.0929748863,
-0.0065720603,
-0.2934384346,
-0.1710651517,
0.0933049694,
0.1752071083,
0.1753777862,
0.1074572429,
0.3313247859,
-0.33416152,
0.0941619202,
-0.0237929709,
-0.0138927987,
-0.2267356515,
0.3832156956,
-0.294754535,
-0.0855251774,
-0.1702575386,
-0.1365142465,
-0.5748509765,
0.0405892022,
0.341946125,
0.093017444,
0.1262921393,
-0.1605506539,
0.1524770856,
-0.1748817563,
0.1722018868,
0.0148291793,
0.4054065645,
-0.2588351667,
-0.0027992427,
-0.5410189033,
0.4275764823,
0.0155635141,
-0.1588081717,
0.031513568,
-0.0331472903,
-0.1146660447,
-0.0179117676,
0.0220622979,
0.3360386193,
0.2262088656,
-0.0256576873,
-0.5814422369,
-0.2901703119,
-0.1248452365,
-0.2796957493,
0.1322258711,
-0.2572003901,
-0.0358443968,
-0.2061257809,
0.2160844505,
-0.0379305407,
-0.2939602137,
0.0869978517,
0.1420838833,
0.6847299337,
0.1776429117,
0.4054073989,
-0.1641920507,
0.0316921994,
0.0117774205,
-0.2423883975,
-0.1033018455,
0.2090906799,
0.075565815,
0.1736914665,
0.0127598569,
0.1335808933,
-0.1275080442,
0.0320262387,
0.110480316,
0.0701005086,
-0.1159144714,
0.2584398091,
-0.232537657,
-0.1188336462,
-0.1874584109,
0.0807323605,
0.0883737206,
0.2076717615,
-0.0338693783,
-0.1781321168,
0.6508179903,
-0.1992693543,
-0.375453651,
-0.0056765042,
0.3330243826,
0.0251545198,
-0.1825994402,
-0.4330867529,
0.0186704993,
0.4222233593,
-0.0488338806,
-0.2132586837,
0.2750218511,
-0.2542454302,
0.0392030701,
-0.0233493187,
0.0766800568,
0.0071150437,
-0.0488665812,
0.1620783508,
-0.1435601264
] |
https://github.com/huggingface/datasets/issues/2869 | TypeError: 'NoneType' object is not callable | > For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem.
But I can download other task dataset such as `dataset = load_dataset('squad')`. I don't know what went wrong. Thank you so much! | ## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
| 43 | TypeError: 'NoneType' object is not callable
## Describe the bug
TypeError: 'NoneType' object is not callable
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
dataset = datasets.load_dataset("glue", 'cola')
```
## Expected results
A clear and concise description of the expected results.
## 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: 1.11.0
- Platform:
- Python version: 3.7
- PyArrow version:
> For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem.
But I can download other task dataset such as `dataset = load_dataset('squad')`. I don't know what went wrong. Thank you so much! | [
-0.2479815185,
-0.3217712045,
0.076350078,
0.4701035619,
0.4953815937,
0.0185084939,
0.3540443182,
0.0614947043,
0.2402579486,
0.3128610551,
-0.2764089704,
0.4540321827,
-0.0626187921,
0.1033332124,
0.1556580216,
-0.1557853222,
-0.2255953997,
0.1679677814,
-0.0779854804,
0.1020547748,
-0.4996091127,
-0.0293462053,
-0.2632772923,
0.1951636374,
-0.1559654623,
-0.1863708794,
-0.073768571,
0.0807148367,
-0.1478743404,
-0.2537325323,
0.5681660175,
-0.1083381996,
0.2122285664,
0.5568336844,
-0.0001079977,
0.0223296583,
0.5475672483,
0.0222913995,
-0.1812626421,
-0.5533771515,
-0.1755929589,
-0.4152662754,
0.3201849163,
-0.3743577003,
-0.1145966798,
0.0790942013,
0.1459890306,
-0.1117732823,
0.3590353727,
0.4540640712,
0.2855805457,
0.7018620968,
-0.0197480172,
-0.3421173692,
0.1333467662,
0.054144673,
-0.1285513639,
0.2871589959,
0.1371667534,
-0.0082341395,
0.433459878,
-0.037331596,
-0.3705086112,
0.0904456526,
0.3338053823,
0.017311655,
0.0456818454,
-0.408441186,
0.0989959165,
0.3526201546,
0.4291328788,
-0.2789868116,
-0.1445526332,
0.1062166393,
0.2393291444,
-0.0619951934,
0.1765794307,
0.0757430941,
-0.0298106428,
0.0413530916,
0.0463871956,
0.1718295962,
-0.2779861093,
0.212599203,
-0.1284302771,
-0.0353671424,
-0.1932724118,
0.2176221609,
0.0380365625,
-0.0971405804,
0.0310849249,
-0.1765828729,
0.0018496987,
0.1451956332,
-0.3074560165,
-0.0370386466,
0.1003601253,
0.0206405092,
0.2188019454,
-0.239726916,
0.214146778,
-0.0814070925,
0.0014895797,
0.3541439176,
0.346270442,
0.2386878133,
0.215810135,
0.140845716,
0.1517539024,
0.0227292068,
-0.1789035499,
0.0621399879,
-0.2835335135,
-0.0460710563,
0.2485666573,
0.2519290447,
0.6219201088,
0.0226176083,
-0.525790453,
-0.1946156621,
-0.069702968,
0.0744645372,
0.1489260197,
0.4044242799,
-0.2522180378,
0.0734109059,
0.0253309086,
0.2898434401,
-0.1949325055,
-0.3826384544,
-0.2504279613,
0.1526834071,
-0.2685993016,
-0.2705710232,
0.2402618229,
0.092544198,
0.0312474743,
0.0430609211,
-0.2270827591,
0.085944064,
0.1672884971,
-0.3710011244,
-0.3183166087,
0.2031288147,
0.2981903255,
0.0132748261,
0.2797114849,
-0.3238169849,
-0.0456265286,
0.2975198627,
-0.3877719045,
-0.1205918193,
-0.1263933033,
0.1935600191,
-0.3629306555,
-0.1565004438,
-0.53642869,
0.0805209428,
0.0401178151,
-0.0892853811,
-0.0573688671,
-0.142540887,
-0.0697557628,
-0.3583667576,
-0.0551823527,
0.4761921167,
-0.2147596031,
-0.2288664877,
-0.3011832535,
-0.244319275,
0.3596111834,
-0.1455557346,
-0.0476030894,
0.2456552982,
-0.1385617256,
0.0195396543,
0.6420366764,
-0.5051139593,
-0.2810823619,
0.1532610655,
-0.1181737483,
-0.0764405504,
-0.0949232206,
-0.0446146317,
0.28639552,
0.0758707821,
0.3716193438,
0.3349785805,
0.0008509308,
-0.0305649638,
-0.1311075091,
-0.2105619013,
0.2909451127,
0.1949025691,
0.2361098826,
0.2211595625,
0.054533489,
-0.1998475194,
-0.0358050764,
0.0527692847,
-0.0813173354,
-0.0201197602,
0.4355517328,
-0.0436966978,
-0.025766328,
-0.5290390253,
-0.5686807632,
0.1899500191,
-0.0841614604,
0.1826206148,
-0.1157300621,
-0.0673961788,
-0.3040426373,
0.0426243991,
-0.0780211836,
-0.0217454806,
0.1823787391,
0.0794132128,
-0.2668653131,
0.0558814257,
-0.0770036429,
0.1909017712,
-0.152610153,
0.0957814679,
0.1212611198,
0.2611955404,
0.1016980186,
-0.3987406194,
-0.0017726496,
0.1362131834,
0.478135854,
0.0183627047,
-0.0826572478,
0.1729601324,
0.045810245,
-0.1020455807,
-0.2171079814,
-0.176204741,
0.057555519,
-0.3366028666,
-0.0447616577,
0.1347159147,
0.3460839391,
-0.1604821086,
0.0836436003,
0.4571965933,
-0.0167928915,
0.3421860635,
-0.143779248,
0.2406294346,
0.0525164679,
-0.0606725812,
-0.1331076324,
0.1804715842,
0.1290695965,
0.0913747996,
0.2827320993,
-0.0355856493,
-0.2706820965,
0.0046682842,
0.616209507,
0.0299598873,
0.3194145262,
-0.0831518844,
-0.3378823996,
0.1462026238,
0.0000326317,
0.041826658,
0.5353928804,
0.2632281482,
-0.1103598848,
-0.016473392,
0.0007064119,
0.0515690371,
0.0333780088,
0.0690901875,
0.2856584787,
0.0461299866,
0.2759691775,
0.0386636704,
-0.2005326003,
0.1444481611,
-0.0084362216,
0.1951353848,
-0.396962136,
0.1878786832,
-0.1423570961,
-0.1165722311,
-0.0304605607,
0.1370224804,
-0.1042251587,
-0.1990455538,
-0.3134956956,
0.1589778066,
0.2137134671,
0.1265256107,
0.1616359204,
0.0088399798,
-0.0113128349,
-0.0408863276,
-0.1634947658,
-0.1458586752,
-0.1861841083,
0.0462164134,
0.1946973205,
0.0735260099,
0.3495369852,
-0.1900553852,
0.124567911,
-0.100048542,
-0.1240717322,
0.0189166293,
-0.077443026,
0.5409656167,
0.2683839798,
0.2594896853,
-0.162481904,
0.1194112748,
0.3791871965,
-0.4782692194,
-0.0512072295,
0.3330360651,
-0.334943682,
0.0967636108,
-0.2121216059,
-0.3186375499,
-0.5942171216,
-0.3938196301,
0.2054922581,
-0.0129523873,
0.069687292,
0.3293658495,
0.1026411653,
0.4716495275,
0.2177548409,
0.0916105956,
-0.1844632775,
-0.034202747,
0.2794252932,
-0.1346673816,
-0.38846457,
0.1575419903,
-0.0971029326,
0.2852426767,
0.079908818,
-0.12456467,
-0.263061583,
-0.0669113994,
0.1975755095,
-0.1246707663,
-0.1207069829,
0.3231537342,
-0.0845758319,
-0.0469947681,
-0.2115350068,
-0.1213956922,
-0.0482250713,
0.3319037855,
-0.0071723647,
0.0945167094,
0.3415933847,
-0.1624030471,
0.3309932053,
-0.0868293867,
-0.0393967889,
0.4093083441,
-0.3032317162,
0.2776999474,
-0.0965931565,
-0.4811327755,
0.0073160902,
0.0563483834,
0.0693824962,
0.0789808035,
-0.2715213001,
-0.2479571253,
-0.3175478578,
-0.2529807389,
-0.4196513593,
-0.0761851147,
-0.0940623879,
0.1780700982,
0.0090040732,
0.1709618121,
0.1889688969,
-0.4353351295,
-0.1018506512,
0.0006976873,
0.2376154959,
0.0146930665,
-0.1129617691,
-0.2612105608,
-0.2340477854,
-0.3139868379,
0.3455926776,
-0.2557939589,
0.0833013952,
-0.1400284916,
0.0895221382,
0.1889621168,
0.0027527846,
0.7596029043,
-0.182307303,
0.2290207148,
0.3868349195,
0.2017735094,
-0.6543718576,
-0.0279393531,
-0.2924176753,
0.336103797,
0.0906109065,
0.3959356546,
-0.4269513488,
-0.0443889275,
0.152525112,
0.0314961821,
-0.093923077,
-0.2425147593,
-0.2687613964,
-0.3051567078,
-0.0087273791,
0.0218204428,
0.0090195686,
0.4349663258,
-0.17009902,
-0.1275981665,
-0.4085873067,
0.1602925062,
0.1126148552,
-0.0253701024,
0.2526393831,
-0.0568152927,
-0.0093021467,
0.0635726154,
-0.0077940188,
0.1148454249,
0.3582164049,
0.027281303,
-0.4528543353,
0.2615328431,
-0.021163892,
0.2443993539,
0.070957236,
-0.1279031485,
-0.0851994455,
0.0087842532,
0.0780044943,
-0.0141756218,
0.0905464068,
0.3425086737,
0.0383048281,
-0.3234172761,
-0.4045232236,
0.2545502484,
0.3031942844,
0.0401416868,
0.3135275245,
0.008307483,
-0.1673140973,
0.0610587113,
-0.1346741766,
0.8996837139,
-0.0605403371,
-0.1017849594,
0.6653996706,
-0.2444547117,
0.4785051942,
0.0302949995,
0.0903266668,
-0.292825371,
-0.2700549364,
-0.0155691803,
-0.256827414,
0.2637601197,
0.0815496147,
-0.4304998219,
0.3003608584,
-0.2911160588,
0.2078089863,
0.0213773102,
-0.0544001497,
-0.060865216,
-0.1126742512,
-0.3436709642,
0.1629804224,
-0.2664074302,
0.2688082457,
-0.1147507057,
-0.1441332251,
-0.0331183523,
-0.0753437132,
-0.1297870129,
0.1565761119,
-0.3821198046,
-0.1631512046,
0.1158264428,
-0.2006132603,
0.0768845826,
0.1819681823,
0.0739784464,
-0.1028126925,
-0.3268237412,
0.1788985431,
-0.075883761,
0.1364332289,
-0.0878418013,
0.0000823848,
0.2469839752,
-0.1007039696,
-0.3328214884,
0.1236413568,
-0.0640804097,
0.2198228687,
0.2899283171,
0.1802788675,
-0.0729966909,
-0.2621718347,
-0.2122359574,
-0.1799510121,
0.3643168211,
-0.2759150565,
0.1959187835,
0.0092525277,
-0.1024510488,
0.0800817981,
-0.0507114008,
-0.1253609061,
0.0088544749,
0.4873358607,
0.4263881445,
0.2872932255,
0.2660650611,
0.2743076682,
-0.0806819797,
-0.3562265038,
0.2828985751,
0.1164563075,
-0.335169822,
0.3059953153,
0.1482207775,
0.0116097331,
0.0161368139,
0.4952471554,
0.0256408192,
-0.0226027407,
-0.0756151453,
-0.2714718878,
-0.2940615714,
0.2110466957,
0.007054389,
-0.0486658625,
0.1137512401,
0.1883589625,
0.2880291641,
-0.1538338363,
-0.3571674228,
0.1202095225,
-0.3974449933,
-0.0263756216,
0.0220239162,
-0.0883373618,
0.2679447532,
0.0743282884,
0.136765644,
-0.0063329656,
-0.1159371287,
-0.2485035956,
-0.221764937,
0.1363089383,
-0.0278414637,
0.1512163877,
0.1515446305,
-0.2163802087,
-0.2809673846,
-0.0129060037,
0.0468999967,
0.0201658458,
-0.174415648,
0.0505835898,
0.1910219342,
0.3978153467,
-0.0217827111,
0.2827040553,
-0.0067477971,
0.0345396101,
-0.1433788538,
0.0237682667,
0.2030910254,
0.0252376497,
-0.2087370157,
-0.0644889474,
0.2508500814,
0.1676193178,
0.0940859467,
-0.3053333759,
-0.1231552064,
-0.0976447389,
0.0022101775,
0.1308605671,
-0.172363013,
0.2990865707,
-0.1103161722,
0.2701032758,
-0.2779802084,
0.0524256378,
0.3269571066,
-0.1212088168,
0.0678813159,
0.0283459313,
-0.3222199976,
0.2012979537,
-0.1126514599,
0.1511469036,
0.4406097531,
-0.1247902513,
0.0929890871,
0.2174029648,
-0.116205208,
-0.0157903545,
0.4607021511,
0.2020012885,
0.0393339656,
0.1420466453,
0.0226327349,
0.0366365612,
-0.048286058,
0.1063203961,
0.2827986479,
-0.4781705737,
0.0035834787,
0.1094036102,
-0.0017190725,
-0.0950418785,
-0.3151474595,
0.5316861868,
-0.472945869,
-0.1242426932,
-0.293381542,
-0.0078629851,
-0.1887671649,
0.1411720812,
-0.1920030266,
-0.1300995648,
-0.096024923,
-0.1964515001,
0.0039727055,
-0.1452826262,
0.2983599603,
-0.129879117,
-0.0621955879,
-0.1563252658,
-0.0753151774,
0.4235467017,
-0.0483768731,
-0.1696939915,
0.0714749023,
-0.1513212621,
0.2156937569,
-0.097612448,
0.580760777,
0.3321211338,
0.3286688626,
-0.2131844461,
-0.1695677489,
0.254526794,
-0.3181824684,
-0.1070877463,
0.1548373848,
0.158580035,
0.1606116146,
0.0785212815,
0.2066705972,
-0.2241431326,
0.1420186907,
0.0436599776,
-0.1447924078,
-0.3188246489,
0.4858049154,
-0.3899848759,
-0.1255376637,
-0.1277063638,
-0.0744741112,
-0.5568336248,
0.1190804467,
0.2711360157,
0.2195582688,
0.0988913402,
-0.1955019683,
0.0958702117,
-0.3225294352,
0.2215006351,
0.020388227,
0.3648220599,
-0.3144542873,
0.1156633347,
-0.5239733458,
0.4592312276,
-0.0107850134,
0.0105120018,
0.1541945189,
-0.0931216776,
-0.265440613,
-0.0039145034,
0.0306937024,
0.2047600448,
0.3998900056,
0.1453906298,
-0.5745071769,
-0.3909094334,
-0.0477377139,
-0.0727451369,
0.0916489214,
-0.2621002197,
0.0129265068,
-0.1517876387,
0.0232954174,
-0.1117518544,
-0.3203567564,
0.1511976719,
0.1406891495,
0.7023336887,
0.0446436852,
0.4411260784,
0.0285859928,
-0.0117125548,
0.1216361821,
-0.3079590201,
-0.105045706,
0.1764323562,
-0.0047929096,
0.0528661087,
-0.0209937431,
0.272619009,
-0.217562452,
-0.1812320799,
-0.1439599246,
0.1281731576,
-0.3053529263,
0.3119680882,
-0.3086752295,
-0.1393731534,
-0.3422221839,
-0.0057941135,
0.1176715791,
0.045272775,
-0.1081118807,
0.0493606031,
0.627785027,
-0.1653218716,
-0.344037801,
-0.1038246453,
0.312897265,
-0.0359877348,
-0.112662144,
-0.5198078752,
0.0568198115,
0.4852419198,
-0.0689147785,
-0.192202121,
0.2341873944,
-0.1415183544,
0.132438302,
-0.0214219317,
-0.0941566527,
-0.0095511973,
-0.0314089283,
0.2175459564,
-0.1435790062
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Hi @severo, thanks for reporting.
Just note that currently not all canonical datasets support streaming mode: this is one case!
All datasets that use `pathlib` joins (using `/`) instead of `os.path.join` (as in this dataset) do not support streaming mode yet. | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 41 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Hi @severo, thanks for reporting.
Just note that currently not all canonical datasets support streaming mode: this is one case!
All datasets that use `pathlib` joins (using `/`) instead of `os.path.join` (as in this dataset) do not support streaming mode yet. | [
-0.4171532393,
-0.2417905629,
0.0004067235,
0.193667233,
0.1873791218,
0.05720447,
0.5056349039,
0.1059947759,
0.1942840368,
0.1353351176,
0.0698311776,
0.1297214031,
-0.2097094953,
0.3238827884,
0.0893112272,
0.0787797868,
0.0210813619,
0.1588885039,
0.0335766599,
0.0774050727,
-0.2157025933,
0.202814579,
-0.3865995407,
-0.3339453638,
-0.1323986799,
0.1463262588,
0.1100256965,
0.1485296786,
0.175347805,
-0.6307145357,
0.2604338527,
0.077574268,
0.2229161412,
0.7022690773,
-0.0001109225,
0.1807844341,
0.4209491014,
-0.138756752,
-0.5919359326,
-0.2953983247,
-0.3683614433,
-0.3184560537,
0.1747525185,
-0.1460204124,
-0.1155983955,
0.0416297428,
-0.2645147741,
-0.4016982913,
0.2196302265,
0.445461452,
0.2117785513,
0.4712951183,
-0.1509928107,
-0.1280123591,
0.1274100989,
0.008658994,
-0.152763024,
0.29874596,
0.0759947896,
0.2464786768,
-0.0301849842,
0.4006466568,
-0.0477481037,
0.1930939853,
0.2172412574,
-0.0403115898,
-0.0638406873,
-0.2730312347,
0.0779682547,
0.226718843,
0.3892457187,
-0.3428207636,
-0.1372255981,
-0.4340850115,
-0.0550192744,
-0.4057791233,
0.2461038232,
-0.0120554157,
-0.2402932942,
0.0848755538,
-0.3027440608,
0.1529164463,
0.0393640846,
-0.1008399278,
-0.0583144948,
0.131554231,
-0.0259358864,
0.1768468916,
-0.0182864666,
-0.0394544825,
0.1186182871,
-0.2750137448,
-0.0770447254,
0.19798325,
-0.5796866417,
0.0617473572,
0.3563537896,
-0.483120203,
0.2248358876,
0.0766405985,
0.3723808825,
0.080845207,
0.1294206381,
-0.0054172724,
0.3990356326,
0.2017411888,
0.1839398146,
-0.244638294,
0.1665529013,
0.3514228165,
-0.0046332404,
-0.3092012703,
0.04556394,
-0.0928957462,
0.2623340786,
0.01355974,
0.31324175,
0.0522785038,
-0.3759044409,
0.1984405071,
-0.2598962784,
0.0621635541,
0.3526677191,
0.2470079064,
0.3124101758,
0.331681639,
-0.1649699211,
0.2566636205,
-0.1701622009,
-0.4501440823,
-0.2399167567,
-0.3115687966,
0.0298979804,
0.0585326105,
0.2430290431,
-0.4115731418,
0.2127866447,
0.1143841147,
0.2314707637,
-0.1508325785,
0.2350653708,
-0.3559949994,
0.2714754343,
0.4170612395,
0.2132245451,
0.3055962622,
0.2130861729,
-0.0781214535,
0.0865609944,
0.129298389,
-0.0135737322,
-0.3794959784,
0.1188297197,
0.2418162972,
-0.1854702681,
0.0091847852,
-0.1626184583,
0.3421089649,
0.0492593348,
-0.490398258,
0.1006153971,
-0.1393200457,
-0.1788207591,
-0.1388722658,
0.3767813444,
0.4191718996,
-0.3163486123,
-0.0631756335,
-0.2223776877,
-0.193345964,
0.3068186343,
0.0627037436,
-0.1867484152,
0.0545984358,
-0.1989075243,
-0.0324026197,
0.1652612686,
-0.1338233054,
-0.4505627453,
0.3839793801,
-0.1003186852,
0.4216831028,
0.0033683814,
0.0348957144,
0.0462129153,
-0.1179657355,
0.2082363665,
-0.0482203364,
-0.3429862857,
0.1301705837,
-0.2063286901,
0.0962787122,
0.1745321602,
0.0263378024,
0.1080549061,
0.1456775516,
0.1164151356,
-0.0307610482,
0.1964358538,
-0.0440107174,
0.0053362101,
0.2909403145,
0.042424418,
-0.0588182993,
0.0003673434,
-0.1810714304,
-0.4702011943,
0.3554163575,
0.2276430279,
0.0265538637,
0.0678977221,
0.0377305448,
-0.3046529293,
0.1419356167,
-0.2711747289,
-0.4771590233,
0.1949525177,
0.3907284439,
-0.111849308,
0.0888262168,
-0.2773434818,
0.3020510972,
-0.1696488857,
-0.1002231687,
-0.1528522074,
0.1263131201,
0.1340727061,
-0.3565649688,
-0.0337360017,
0.0897878706,
0.2519125044,
-0.134492889,
-0.2349993885,
0.4969179332,
0.1069905013,
0.0699906051,
-0.0781736672,
-0.1732121259,
0.1972212791,
-0.1314568669,
-0.2321658134,
0.4724212587,
0.3397765756,
-0.2434855998,
-0.1393342614,
0.1867936552,
-0.2051786184,
0.2564635575,
-0.0694207847,
0.0912936851,
0.328330636,
0.3197961748,
-0.0928376168,
-0.0212595537,
0.2077190578,
-0.1777403653,
0.1031239182,
-0.1610923707,
-0.2532595992,
-0.0428621955,
0.1946249902,
0.1955532432,
0.0406558849,
0.0529753938,
-0.3236098886,
-0.2086990476,
0.370659411,
0.0880204886,
0.4839419723,
0.0791207701,
0.2721227407,
0.0922640041,
-0.0106660463,
-0.1263323873,
0.2971057892,
0.0752388462,
0.0984971821,
0.3603755534,
0.2497459203,
-0.1204283088,
-0.4016781151,
-0.2251662761,
0.1358989775,
0.1336641014,
-0.3052349687,
0.0297693089,
-0.1282224357,
-0.2748435736,
0.1133073717,
-0.4021541178,
-0.2225445807,
-0.3337675631,
-0.2058945596,
0.3451241553,
-0.1469638497,
0.1498997509,
-0.1804753244,
-0.0882677585,
0.3082577586,
-0.0031161178,
-0.2322358787,
-0.1135622263,
-0.2594827712,
0.0321406573,
0.0412807539,
-0.3234795034,
0.4347480237,
-0.1234985888,
-0.1801847816,
-0.1512940675,
-0.0745448619,
0.1740905493,
0.0435855016,
0.200140059,
0.2743389904,
0.2197591811,
0.0392215997,
0.0045699924,
0.4241866469,
-0.2919014692,
0.0146438479,
0.3762077689,
0.2012004554,
0.2666825354,
-0.2297267318,
-0.2490313053,
-0.0779715776,
-0.4310796261,
-0.1742306203,
-0.0227722377,
0.0273635313,
0.4507271647,
0.2624841928,
0.3891988695,
0.3127646148,
-0.0566321127,
-0.3348746896,
-0.347517997,
0.13222377,
-0.1974762827,
-0.4097188115,
0.1144936532,
0.0011451766,
0.1664850712,
0.2781508565,
-0.3012994826,
0.0803641528,
-0.0408358686,
0.1188739836,
-0.0593021475,
-0.1120117456,
0.143274799,
-0.0613779277,
-0.1019272059,
-0.3338414729,
-0.1850919873,
-0.1276155412,
-0.152960524,
0.2324115038,
0.038183935,
0.5950307846,
0.2077816427,
0.5280632973,
0.4836460054,
0.058197163,
0.6157111526,
-0.2377378047,
0.2161287814,
-0.3673552871,
-0.3503070176,
0.2225525379,
-0.0085880756,
-0.1320838332,
0.2081882209,
-0.1470542848,
-0.2681729198,
-0.256749481,
0.0351036936,
-0.0647702813,
-0.1755144298,
0.0512215793,
-0.2642836869,
0.3024117351,
0.0359323844,
0.2061442435,
-0.2464565933,
-0.0574942306,
-0.2373394966,
0.0760810077,
-0.0045372359,
0.0064090714,
-0.296765238,
0.0214662477,
-0.5252022147,
0.3021186888,
0.2227876782,
0.615446806,
-0.0391719565,
-0.208869487,
0.0450495481,
0.0117578581,
0.5304385424,
-0.3789147735,
-0.0240583438,
0.2964759469,
-0.0950774625,
-0.4073811769,
-0.1102450266,
-0.2325183302,
0.3465292454,
0.2328931689,
0.1428346932,
-0.2224265337,
-0.0886223763,
0.1366080344,
0.1360026598,
-0.0751256347,
-0.1846506894,
-0.2278952301,
-0.2202229798,
-0.1945457458,
-0.1267377734,
0.0843012258,
0.2432257086,
-0.1949769557,
-0.0850350559,
-0.1033550948,
0.0288990885,
0.0844486132,
0.1044178158,
0.3788570464,
0.090336293,
0.2310872823,
0.3695779741,
0.101572305,
0.3100067377,
0.5074750185,
0.406558454,
-0.3184789419,
0.2045597434,
0.0775872469,
0.0856529549,
0.2882387638,
-0.1116833687,
-0.0276319236,
0.0777180046,
0.0934573263,
-0.2894924879,
0.1943800002,
0.2449226677,
-0.0539537072,
-0.1495430768,
-0.5760561824,
0.3336380422,
0.0304385871,
0.0183756948,
0.3064620495,
-0.2464930415,
-0.2605731785,
-0.0352296941,
-0.0546514988,
0.49818784,
0.1343331933,
0.0661568195,
0.4267182052,
-0.2779954076,
0.2107363343,
-0.1438205242,
0.2207974643,
-0.1879347265,
-0.3919573426,
-0.0941029191,
-0.1085411757,
0.0540995114,
-0.0021505831,
-0.2287914753,
0.2563298941,
0.0245752633,
0.2516515851,
0.0321384221,
0.0513759106,
-0.4211883843,
-0.1044378057,
-0.2310301512,
0.226688385,
0.0391742326,
0.0595657714,
-0.1965501904,
-0.1511450112,
0.2058586776,
-0.3431107998,
-0.2650854886,
-0.0005396307,
-0.2571266294,
0.0304906927,
-0.0789497644,
-0.5586482286,
-0.0092749521,
0.1646381617,
-0.1165742874,
-0.2574974,
-0.160361588,
0.0731906891,
0.1823070496,
0.4032895565,
-0.0304599926,
0.1647266597,
0.3220482469,
-0.0156900436,
-0.1203036904,
0.1713949293,
-0.2056287229,
-0.1386830509,
0.0792044848,
0.0525300242,
0.1477532983,
-0.1950286329,
0.0720986649,
-0.1244528592,
0.0610797107,
-0.2714120746,
0.1379991174,
-0.052292712,
-0.2443106472,
-0.0718857571,
-0.1764227748,
-0.1069567725,
-0.1404852271,
0.3965620995,
-0.1222571805,
0.2639792264,
0.5979732871,
0.2628352642,
-0.0699225888,
-0.2239042222,
0.2011473626,
0.0665024519,
-0.2591680884,
0.3576520085,
-0.0661279261,
-0.0084150583,
-0.0689551979,
0.37358585,
-0.013727692,
-0.0653007179,
-0.1425482929,
-0.2276574671,
-0.3390943408,
-0.0766484141,
-0.0648032278,
0.1809477657,
-0.0614873767,
0.0205044001,
0.344094485,
-0.2483291477,
-0.3373637795,
-0.2206483483,
-0.2257322073,
0.1367568523,
-0.1156359464,
0.0903353542,
0.2451534718,
-0.0245363321,
0.1401753128,
0.1833448112,
-0.0654684156,
-0.2514530718,
-0.0721648782,
0.0910970792,
-0.0126872677,
-0.2120139301,
-0.1004449278,
0.0691824108,
-0.3066589534,
-0.3149644732,
0.2542548776,
0.0261868164,
-0.0648498535,
0.3339466155,
0.1208941191,
0.2269125581,
-0.245801121,
-0.0012789546,
-0.0492912978,
-0.0714227408,
-0.2654005885,
0.1434953362,
0.0741448179,
0.0186536238,
-0.0137112811,
-0.0302396715,
-0.0359066501,
-0.0958979875,
0.3457254767,
-0.3809931278,
0.1985215396,
0.2853871584,
0.4326710403,
0.3073009551,
-0.2745676041,
-0.0601299778,
-0.0283833873,
0.2137220204,
-0.2702539563,
0.1047897637,
-0.1389293373,
0.3404974341,
0.1812907308,
0.1234543324,
0.0429618061,
-0.2800163627,
0.0771738738,
0.1745933592,
0.0768417642,
-0.1775954217,
0.2129437923,
0.4377634525,
-0.1620202661,
0.1636501253,
-0.0975023285,
0.0571440943,
0.0120125674,
0.4437313378,
-0.0766297877,
0.1632127166,
0.2037426531,
-0.136554718,
-0.0510566719,
-0.3139661849,
-0.2231898606,
0.2932851911,
-0.1478384435,
0.2211653292,
0.0607555732,
0.11484918,
-0.2439825237,
0.1240973026,
-0.3192912936,
-0.0808004886,
-0.1555944234,
0.0469757728,
-0.1781295836,
-0.1248733848,
-0.2028405368,
-0.1335260868,
0.150487572,
0.1290386617,
0.371265471,
0.0432593338,
-0.0071961023,
-0.6050089002,
-0.0662221909,
0.3256894052,
0.0365516096,
-0.2266713828,
0.2377026975,
0.425424546,
0.0902427882,
0.384297967,
0.3726783097,
0.3797658086,
0.3374566734,
-0.0666717291,
0.1129235327,
0.1543489695,
-0.1648840308,
-0.2762877345,
0.1785654724,
-0.0458155982,
0.2733044624,
0.3034487069,
0.1270705909,
-0.1446415186,
0.1170550808,
0.0449932441,
0.0575733855,
-0.6023665071,
0.4265976548,
-0.4701415896,
0.0185303986,
-0.1208023801,
-0.1203804016,
-0.2376077324,
0.0821255296,
0.2865522504,
0.0400105715,
0.2274748385,
-0.0990613252,
0.1067298278,
-0.1255406737,
0.2446667105,
-0.0027380604,
-0.2558124065,
-0.2028056979,
-0.1672923416,
-0.8009277582,
0.0148777813,
0.0856727809,
-0.1091408655,
0.1444783062,
0.1989770234,
-0.1189475358,
0.246401757,
0.3879630864,
-0.2339883447,
-0.1309392154,
0.3268942833,
-0.195360586,
-0.4079425037,
-0.4459079206,
-0.025074197,
-0.012066111,
-0.2429809421,
0.2650612891,
-0.2226770669,
0.1452894509,
0.1209751517,
-0.0283925533,
0.1159841269,
-0.0041817799,
0.3461862803,
0.1672823429,
0.314198494,
-0.1446936727,
0.1787154973,
-0.3299388587,
-0.1000358611,
-0.3050259352,
0.3060719967,
-0.1126584858,
0.4945883751,
-0.1233776659,
-0.0124990232,
-0.16372554,
0.2108145207,
0.2584313154,
-0.2667386532,
-0.3577259779,
0.2748012543,
-0.2798827291,
0.2512661815,
0.0318003856,
0.3652265966,
-0.0365185365,
0.1353163421,
-0.2697345018,
-0.5320449471,
0.4457721412,
-0.4308796823,
-0.3953134418,
-0.0651004463,
0.1863381565,
0.2452218682,
-0.2555918396,
-0.3518376946,
0.1235720217,
0.3564774096,
-0.1301044226,
-0.2069170475,
-0.0070770551,
-0.1155155003,
0.0543674976,
-0.0779214874,
0.1456418335,
0.1664126366,
-0.1576849371,
0.2604365349,
-0.0645065457
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | OK. Do you think it's possible to detect this, and raise an exception (maybe `NotImplementedError`, or a specific `StreamingError`)? | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 19 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
OK. Do you think it's possible to detect this, and raise an exception (maybe `NotImplementedError`, or a specific `StreamingError`)? | [
-0.4171532393,
-0.2417905629,
0.0004067235,
0.193667233,
0.1873791218,
0.05720447,
0.5056349039,
0.1059947759,
0.1942840368,
0.1353351176,
0.0698311776,
0.1297214031,
-0.2097094953,
0.3238827884,
0.0893112272,
0.0787797868,
0.0210813619,
0.1588885039,
0.0335766599,
0.0774050727,
-0.2157025933,
0.202814579,
-0.3865995407,
-0.3339453638,
-0.1323986799,
0.1463262588,
0.1100256965,
0.1485296786,
0.175347805,
-0.6307145357,
0.2604338527,
0.077574268,
0.2229161412,
0.7022690773,
-0.0001109225,
0.1807844341,
0.4209491014,
-0.138756752,
-0.5919359326,
-0.2953983247,
-0.3683614433,
-0.3184560537,
0.1747525185,
-0.1460204124,
-0.1155983955,
0.0416297428,
-0.2645147741,
-0.4016982913,
0.2196302265,
0.445461452,
0.2117785513,
0.4712951183,
-0.1509928107,
-0.1280123591,
0.1274100989,
0.008658994,
-0.152763024,
0.29874596,
0.0759947896,
0.2464786768,
-0.0301849842,
0.4006466568,
-0.0477481037,
0.1930939853,
0.2172412574,
-0.0403115898,
-0.0638406873,
-0.2730312347,
0.0779682547,
0.226718843,
0.3892457187,
-0.3428207636,
-0.1372255981,
-0.4340850115,
-0.0550192744,
-0.4057791233,
0.2461038232,
-0.0120554157,
-0.2402932942,
0.0848755538,
-0.3027440608,
0.1529164463,
0.0393640846,
-0.1008399278,
-0.0583144948,
0.131554231,
-0.0259358864,
0.1768468916,
-0.0182864666,
-0.0394544825,
0.1186182871,
-0.2750137448,
-0.0770447254,
0.19798325,
-0.5796866417,
0.0617473572,
0.3563537896,
-0.483120203,
0.2248358876,
0.0766405985,
0.3723808825,
0.080845207,
0.1294206381,
-0.0054172724,
0.3990356326,
0.2017411888,
0.1839398146,
-0.244638294,
0.1665529013,
0.3514228165,
-0.0046332404,
-0.3092012703,
0.04556394,
-0.0928957462,
0.2623340786,
0.01355974,
0.31324175,
0.0522785038,
-0.3759044409,
0.1984405071,
-0.2598962784,
0.0621635541,
0.3526677191,
0.2470079064,
0.3124101758,
0.331681639,
-0.1649699211,
0.2566636205,
-0.1701622009,
-0.4501440823,
-0.2399167567,
-0.3115687966,
0.0298979804,
0.0585326105,
0.2430290431,
-0.4115731418,
0.2127866447,
0.1143841147,
0.2314707637,
-0.1508325785,
0.2350653708,
-0.3559949994,
0.2714754343,
0.4170612395,
0.2132245451,
0.3055962622,
0.2130861729,
-0.0781214535,
0.0865609944,
0.129298389,
-0.0135737322,
-0.3794959784,
0.1188297197,
0.2418162972,
-0.1854702681,
0.0091847852,
-0.1626184583,
0.3421089649,
0.0492593348,
-0.490398258,
0.1006153971,
-0.1393200457,
-0.1788207591,
-0.1388722658,
0.3767813444,
0.4191718996,
-0.3163486123,
-0.0631756335,
-0.2223776877,
-0.193345964,
0.3068186343,
0.0627037436,
-0.1867484152,
0.0545984358,
-0.1989075243,
-0.0324026197,
0.1652612686,
-0.1338233054,
-0.4505627453,
0.3839793801,
-0.1003186852,
0.4216831028,
0.0033683814,
0.0348957144,
0.0462129153,
-0.1179657355,
0.2082363665,
-0.0482203364,
-0.3429862857,
0.1301705837,
-0.2063286901,
0.0962787122,
0.1745321602,
0.0263378024,
0.1080549061,
0.1456775516,
0.1164151356,
-0.0307610482,
0.1964358538,
-0.0440107174,
0.0053362101,
0.2909403145,
0.042424418,
-0.0588182993,
0.0003673434,
-0.1810714304,
-0.4702011943,
0.3554163575,
0.2276430279,
0.0265538637,
0.0678977221,
0.0377305448,
-0.3046529293,
0.1419356167,
-0.2711747289,
-0.4771590233,
0.1949525177,
0.3907284439,
-0.111849308,
0.0888262168,
-0.2773434818,
0.3020510972,
-0.1696488857,
-0.1002231687,
-0.1528522074,
0.1263131201,
0.1340727061,
-0.3565649688,
-0.0337360017,
0.0897878706,
0.2519125044,
-0.134492889,
-0.2349993885,
0.4969179332,
0.1069905013,
0.0699906051,
-0.0781736672,
-0.1732121259,
0.1972212791,
-0.1314568669,
-0.2321658134,
0.4724212587,
0.3397765756,
-0.2434855998,
-0.1393342614,
0.1867936552,
-0.2051786184,
0.2564635575,
-0.0694207847,
0.0912936851,
0.328330636,
0.3197961748,
-0.0928376168,
-0.0212595537,
0.2077190578,
-0.1777403653,
0.1031239182,
-0.1610923707,
-0.2532595992,
-0.0428621955,
0.1946249902,
0.1955532432,
0.0406558849,
0.0529753938,
-0.3236098886,
-0.2086990476,
0.370659411,
0.0880204886,
0.4839419723,
0.0791207701,
0.2721227407,
0.0922640041,
-0.0106660463,
-0.1263323873,
0.2971057892,
0.0752388462,
0.0984971821,
0.3603755534,
0.2497459203,
-0.1204283088,
-0.4016781151,
-0.2251662761,
0.1358989775,
0.1336641014,
-0.3052349687,
0.0297693089,
-0.1282224357,
-0.2748435736,
0.1133073717,
-0.4021541178,
-0.2225445807,
-0.3337675631,
-0.2058945596,
0.3451241553,
-0.1469638497,
0.1498997509,
-0.1804753244,
-0.0882677585,
0.3082577586,
-0.0031161178,
-0.2322358787,
-0.1135622263,
-0.2594827712,
0.0321406573,
0.0412807539,
-0.3234795034,
0.4347480237,
-0.1234985888,
-0.1801847816,
-0.1512940675,
-0.0745448619,
0.1740905493,
0.0435855016,
0.200140059,
0.2743389904,
0.2197591811,
0.0392215997,
0.0045699924,
0.4241866469,
-0.2919014692,
0.0146438479,
0.3762077689,
0.2012004554,
0.2666825354,
-0.2297267318,
-0.2490313053,
-0.0779715776,
-0.4310796261,
-0.1742306203,
-0.0227722377,
0.0273635313,
0.4507271647,
0.2624841928,
0.3891988695,
0.3127646148,
-0.0566321127,
-0.3348746896,
-0.347517997,
0.13222377,
-0.1974762827,
-0.4097188115,
0.1144936532,
0.0011451766,
0.1664850712,
0.2781508565,
-0.3012994826,
0.0803641528,
-0.0408358686,
0.1188739836,
-0.0593021475,
-0.1120117456,
0.143274799,
-0.0613779277,
-0.1019272059,
-0.3338414729,
-0.1850919873,
-0.1276155412,
-0.152960524,
0.2324115038,
0.038183935,
0.5950307846,
0.2077816427,
0.5280632973,
0.4836460054,
0.058197163,
0.6157111526,
-0.2377378047,
0.2161287814,
-0.3673552871,
-0.3503070176,
0.2225525379,
-0.0085880756,
-0.1320838332,
0.2081882209,
-0.1470542848,
-0.2681729198,
-0.256749481,
0.0351036936,
-0.0647702813,
-0.1755144298,
0.0512215793,
-0.2642836869,
0.3024117351,
0.0359323844,
0.2061442435,
-0.2464565933,
-0.0574942306,
-0.2373394966,
0.0760810077,
-0.0045372359,
0.0064090714,
-0.296765238,
0.0214662477,
-0.5252022147,
0.3021186888,
0.2227876782,
0.615446806,
-0.0391719565,
-0.208869487,
0.0450495481,
0.0117578581,
0.5304385424,
-0.3789147735,
-0.0240583438,
0.2964759469,
-0.0950774625,
-0.4073811769,
-0.1102450266,
-0.2325183302,
0.3465292454,
0.2328931689,
0.1428346932,
-0.2224265337,
-0.0886223763,
0.1366080344,
0.1360026598,
-0.0751256347,
-0.1846506894,
-0.2278952301,
-0.2202229798,
-0.1945457458,
-0.1267377734,
0.0843012258,
0.2432257086,
-0.1949769557,
-0.0850350559,
-0.1033550948,
0.0288990885,
0.0844486132,
0.1044178158,
0.3788570464,
0.090336293,
0.2310872823,
0.3695779741,
0.101572305,
0.3100067377,
0.5074750185,
0.406558454,
-0.3184789419,
0.2045597434,
0.0775872469,
0.0856529549,
0.2882387638,
-0.1116833687,
-0.0276319236,
0.0777180046,
0.0934573263,
-0.2894924879,
0.1943800002,
0.2449226677,
-0.0539537072,
-0.1495430768,
-0.5760561824,
0.3336380422,
0.0304385871,
0.0183756948,
0.3064620495,
-0.2464930415,
-0.2605731785,
-0.0352296941,
-0.0546514988,
0.49818784,
0.1343331933,
0.0661568195,
0.4267182052,
-0.2779954076,
0.2107363343,
-0.1438205242,
0.2207974643,
-0.1879347265,
-0.3919573426,
-0.0941029191,
-0.1085411757,
0.0540995114,
-0.0021505831,
-0.2287914753,
0.2563298941,
0.0245752633,
0.2516515851,
0.0321384221,
0.0513759106,
-0.4211883843,
-0.1044378057,
-0.2310301512,
0.226688385,
0.0391742326,
0.0595657714,
-0.1965501904,
-0.1511450112,
0.2058586776,
-0.3431107998,
-0.2650854886,
-0.0005396307,
-0.2571266294,
0.0304906927,
-0.0789497644,
-0.5586482286,
-0.0092749521,
0.1646381617,
-0.1165742874,
-0.2574974,
-0.160361588,
0.0731906891,
0.1823070496,
0.4032895565,
-0.0304599926,
0.1647266597,
0.3220482469,
-0.0156900436,
-0.1203036904,
0.1713949293,
-0.2056287229,
-0.1386830509,
0.0792044848,
0.0525300242,
0.1477532983,
-0.1950286329,
0.0720986649,
-0.1244528592,
0.0610797107,
-0.2714120746,
0.1379991174,
-0.052292712,
-0.2443106472,
-0.0718857571,
-0.1764227748,
-0.1069567725,
-0.1404852271,
0.3965620995,
-0.1222571805,
0.2639792264,
0.5979732871,
0.2628352642,
-0.0699225888,
-0.2239042222,
0.2011473626,
0.0665024519,
-0.2591680884,
0.3576520085,
-0.0661279261,
-0.0084150583,
-0.0689551979,
0.37358585,
-0.013727692,
-0.0653007179,
-0.1425482929,
-0.2276574671,
-0.3390943408,
-0.0766484141,
-0.0648032278,
0.1809477657,
-0.0614873767,
0.0205044001,
0.344094485,
-0.2483291477,
-0.3373637795,
-0.2206483483,
-0.2257322073,
0.1367568523,
-0.1156359464,
0.0903353542,
0.2451534718,
-0.0245363321,
0.1401753128,
0.1833448112,
-0.0654684156,
-0.2514530718,
-0.0721648782,
0.0910970792,
-0.0126872677,
-0.2120139301,
-0.1004449278,
0.0691824108,
-0.3066589534,
-0.3149644732,
0.2542548776,
0.0261868164,
-0.0648498535,
0.3339466155,
0.1208941191,
0.2269125581,
-0.245801121,
-0.0012789546,
-0.0492912978,
-0.0714227408,
-0.2654005885,
0.1434953362,
0.0741448179,
0.0186536238,
-0.0137112811,
-0.0302396715,
-0.0359066501,
-0.0958979875,
0.3457254767,
-0.3809931278,
0.1985215396,
0.2853871584,
0.4326710403,
0.3073009551,
-0.2745676041,
-0.0601299778,
-0.0283833873,
0.2137220204,
-0.2702539563,
0.1047897637,
-0.1389293373,
0.3404974341,
0.1812907308,
0.1234543324,
0.0429618061,
-0.2800163627,
0.0771738738,
0.1745933592,
0.0768417642,
-0.1775954217,
0.2129437923,
0.4377634525,
-0.1620202661,
0.1636501253,
-0.0975023285,
0.0571440943,
0.0120125674,
0.4437313378,
-0.0766297877,
0.1632127166,
0.2037426531,
-0.136554718,
-0.0510566719,
-0.3139661849,
-0.2231898606,
0.2932851911,
-0.1478384435,
0.2211653292,
0.0607555732,
0.11484918,
-0.2439825237,
0.1240973026,
-0.3192912936,
-0.0808004886,
-0.1555944234,
0.0469757728,
-0.1781295836,
-0.1248733848,
-0.2028405368,
-0.1335260868,
0.150487572,
0.1290386617,
0.371265471,
0.0432593338,
-0.0071961023,
-0.6050089002,
-0.0662221909,
0.3256894052,
0.0365516096,
-0.2266713828,
0.2377026975,
0.425424546,
0.0902427882,
0.384297967,
0.3726783097,
0.3797658086,
0.3374566734,
-0.0666717291,
0.1129235327,
0.1543489695,
-0.1648840308,
-0.2762877345,
0.1785654724,
-0.0458155982,
0.2733044624,
0.3034487069,
0.1270705909,
-0.1446415186,
0.1170550808,
0.0449932441,
0.0575733855,
-0.6023665071,
0.4265976548,
-0.4701415896,
0.0185303986,
-0.1208023801,
-0.1203804016,
-0.2376077324,
0.0821255296,
0.2865522504,
0.0400105715,
0.2274748385,
-0.0990613252,
0.1067298278,
-0.1255406737,
0.2446667105,
-0.0027380604,
-0.2558124065,
-0.2028056979,
-0.1672923416,
-0.8009277582,
0.0148777813,
0.0856727809,
-0.1091408655,
0.1444783062,
0.1989770234,
-0.1189475358,
0.246401757,
0.3879630864,
-0.2339883447,
-0.1309392154,
0.3268942833,
-0.195360586,
-0.4079425037,
-0.4459079206,
-0.025074197,
-0.012066111,
-0.2429809421,
0.2650612891,
-0.2226770669,
0.1452894509,
0.1209751517,
-0.0283925533,
0.1159841269,
-0.0041817799,
0.3461862803,
0.1672823429,
0.314198494,
-0.1446936727,
0.1787154973,
-0.3299388587,
-0.1000358611,
-0.3050259352,
0.3060719967,
-0.1126584858,
0.4945883751,
-0.1233776659,
-0.0124990232,
-0.16372554,
0.2108145207,
0.2584313154,
-0.2667386532,
-0.3577259779,
0.2748012543,
-0.2798827291,
0.2512661815,
0.0318003856,
0.3652265966,
-0.0365185365,
0.1353163421,
-0.2697345018,
-0.5320449471,
0.4457721412,
-0.4308796823,
-0.3953134418,
-0.0651004463,
0.1863381565,
0.2452218682,
-0.2555918396,
-0.3518376946,
0.1235720217,
0.3564774096,
-0.1301044226,
-0.2069170475,
-0.0070770551,
-0.1155155003,
0.0543674976,
-0.0779214874,
0.1456418335,
0.1664126366,
-0.1576849371,
0.2604365349,
-0.0645065457
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | We should definitely support datasets using `pathlib` in streaming mode...
For non-supported datasets in streaming mode, we have already a request of raising an error/warning: see #2654. | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 27 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
We should definitely support datasets using `pathlib` in streaming mode...
For non-supported datasets in streaming mode, we have already a request of raising an error/warning: see #2654. | [
-0.4171532393,
-0.2417905629,
0.0004067235,
0.193667233,
0.1873791218,
0.05720447,
0.5056349039,
0.1059947759,
0.1942840368,
0.1353351176,
0.0698311776,
0.1297214031,
-0.2097094953,
0.3238827884,
0.0893112272,
0.0787797868,
0.0210813619,
0.1588885039,
0.0335766599,
0.0774050727,
-0.2157025933,
0.202814579,
-0.3865995407,
-0.3339453638,
-0.1323986799,
0.1463262588,
0.1100256965,
0.1485296786,
0.175347805,
-0.6307145357,
0.2604338527,
0.077574268,
0.2229161412,
0.7022690773,
-0.0001109225,
0.1807844341,
0.4209491014,
-0.138756752,
-0.5919359326,
-0.2953983247,
-0.3683614433,
-0.3184560537,
0.1747525185,
-0.1460204124,
-0.1155983955,
0.0416297428,
-0.2645147741,
-0.4016982913,
0.2196302265,
0.445461452,
0.2117785513,
0.4712951183,
-0.1509928107,
-0.1280123591,
0.1274100989,
0.008658994,
-0.152763024,
0.29874596,
0.0759947896,
0.2464786768,
-0.0301849842,
0.4006466568,
-0.0477481037,
0.1930939853,
0.2172412574,
-0.0403115898,
-0.0638406873,
-0.2730312347,
0.0779682547,
0.226718843,
0.3892457187,
-0.3428207636,
-0.1372255981,
-0.4340850115,
-0.0550192744,
-0.4057791233,
0.2461038232,
-0.0120554157,
-0.2402932942,
0.0848755538,
-0.3027440608,
0.1529164463,
0.0393640846,
-0.1008399278,
-0.0583144948,
0.131554231,
-0.0259358864,
0.1768468916,
-0.0182864666,
-0.0394544825,
0.1186182871,
-0.2750137448,
-0.0770447254,
0.19798325,
-0.5796866417,
0.0617473572,
0.3563537896,
-0.483120203,
0.2248358876,
0.0766405985,
0.3723808825,
0.080845207,
0.1294206381,
-0.0054172724,
0.3990356326,
0.2017411888,
0.1839398146,
-0.244638294,
0.1665529013,
0.3514228165,
-0.0046332404,
-0.3092012703,
0.04556394,
-0.0928957462,
0.2623340786,
0.01355974,
0.31324175,
0.0522785038,
-0.3759044409,
0.1984405071,
-0.2598962784,
0.0621635541,
0.3526677191,
0.2470079064,
0.3124101758,
0.331681639,
-0.1649699211,
0.2566636205,
-0.1701622009,
-0.4501440823,
-0.2399167567,
-0.3115687966,
0.0298979804,
0.0585326105,
0.2430290431,
-0.4115731418,
0.2127866447,
0.1143841147,
0.2314707637,
-0.1508325785,
0.2350653708,
-0.3559949994,
0.2714754343,
0.4170612395,
0.2132245451,
0.3055962622,
0.2130861729,
-0.0781214535,
0.0865609944,
0.129298389,
-0.0135737322,
-0.3794959784,
0.1188297197,
0.2418162972,
-0.1854702681,
0.0091847852,
-0.1626184583,
0.3421089649,
0.0492593348,
-0.490398258,
0.1006153971,
-0.1393200457,
-0.1788207591,
-0.1388722658,
0.3767813444,
0.4191718996,
-0.3163486123,
-0.0631756335,
-0.2223776877,
-0.193345964,
0.3068186343,
0.0627037436,
-0.1867484152,
0.0545984358,
-0.1989075243,
-0.0324026197,
0.1652612686,
-0.1338233054,
-0.4505627453,
0.3839793801,
-0.1003186852,
0.4216831028,
0.0033683814,
0.0348957144,
0.0462129153,
-0.1179657355,
0.2082363665,
-0.0482203364,
-0.3429862857,
0.1301705837,
-0.2063286901,
0.0962787122,
0.1745321602,
0.0263378024,
0.1080549061,
0.1456775516,
0.1164151356,
-0.0307610482,
0.1964358538,
-0.0440107174,
0.0053362101,
0.2909403145,
0.042424418,
-0.0588182993,
0.0003673434,
-0.1810714304,
-0.4702011943,
0.3554163575,
0.2276430279,
0.0265538637,
0.0678977221,
0.0377305448,
-0.3046529293,
0.1419356167,
-0.2711747289,
-0.4771590233,
0.1949525177,
0.3907284439,
-0.111849308,
0.0888262168,
-0.2773434818,
0.3020510972,
-0.1696488857,
-0.1002231687,
-0.1528522074,
0.1263131201,
0.1340727061,
-0.3565649688,
-0.0337360017,
0.0897878706,
0.2519125044,
-0.134492889,
-0.2349993885,
0.4969179332,
0.1069905013,
0.0699906051,
-0.0781736672,
-0.1732121259,
0.1972212791,
-0.1314568669,
-0.2321658134,
0.4724212587,
0.3397765756,
-0.2434855998,
-0.1393342614,
0.1867936552,
-0.2051786184,
0.2564635575,
-0.0694207847,
0.0912936851,
0.328330636,
0.3197961748,
-0.0928376168,
-0.0212595537,
0.2077190578,
-0.1777403653,
0.1031239182,
-0.1610923707,
-0.2532595992,
-0.0428621955,
0.1946249902,
0.1955532432,
0.0406558849,
0.0529753938,
-0.3236098886,
-0.2086990476,
0.370659411,
0.0880204886,
0.4839419723,
0.0791207701,
0.2721227407,
0.0922640041,
-0.0106660463,
-0.1263323873,
0.2971057892,
0.0752388462,
0.0984971821,
0.3603755534,
0.2497459203,
-0.1204283088,
-0.4016781151,
-0.2251662761,
0.1358989775,
0.1336641014,
-0.3052349687,
0.0297693089,
-0.1282224357,
-0.2748435736,
0.1133073717,
-0.4021541178,
-0.2225445807,
-0.3337675631,
-0.2058945596,
0.3451241553,
-0.1469638497,
0.1498997509,
-0.1804753244,
-0.0882677585,
0.3082577586,
-0.0031161178,
-0.2322358787,
-0.1135622263,
-0.2594827712,
0.0321406573,
0.0412807539,
-0.3234795034,
0.4347480237,
-0.1234985888,
-0.1801847816,
-0.1512940675,
-0.0745448619,
0.1740905493,
0.0435855016,
0.200140059,
0.2743389904,
0.2197591811,
0.0392215997,
0.0045699924,
0.4241866469,
-0.2919014692,
0.0146438479,
0.3762077689,
0.2012004554,
0.2666825354,
-0.2297267318,
-0.2490313053,
-0.0779715776,
-0.4310796261,
-0.1742306203,
-0.0227722377,
0.0273635313,
0.4507271647,
0.2624841928,
0.3891988695,
0.3127646148,
-0.0566321127,
-0.3348746896,
-0.347517997,
0.13222377,
-0.1974762827,
-0.4097188115,
0.1144936532,
0.0011451766,
0.1664850712,
0.2781508565,
-0.3012994826,
0.0803641528,
-0.0408358686,
0.1188739836,
-0.0593021475,
-0.1120117456,
0.143274799,
-0.0613779277,
-0.1019272059,
-0.3338414729,
-0.1850919873,
-0.1276155412,
-0.152960524,
0.2324115038,
0.038183935,
0.5950307846,
0.2077816427,
0.5280632973,
0.4836460054,
0.058197163,
0.6157111526,
-0.2377378047,
0.2161287814,
-0.3673552871,
-0.3503070176,
0.2225525379,
-0.0085880756,
-0.1320838332,
0.2081882209,
-0.1470542848,
-0.2681729198,
-0.256749481,
0.0351036936,
-0.0647702813,
-0.1755144298,
0.0512215793,
-0.2642836869,
0.3024117351,
0.0359323844,
0.2061442435,
-0.2464565933,
-0.0574942306,
-0.2373394966,
0.0760810077,
-0.0045372359,
0.0064090714,
-0.296765238,
0.0214662477,
-0.5252022147,
0.3021186888,
0.2227876782,
0.615446806,
-0.0391719565,
-0.208869487,
0.0450495481,
0.0117578581,
0.5304385424,
-0.3789147735,
-0.0240583438,
0.2964759469,
-0.0950774625,
-0.4073811769,
-0.1102450266,
-0.2325183302,
0.3465292454,
0.2328931689,
0.1428346932,
-0.2224265337,
-0.0886223763,
0.1366080344,
0.1360026598,
-0.0751256347,
-0.1846506894,
-0.2278952301,
-0.2202229798,
-0.1945457458,
-0.1267377734,
0.0843012258,
0.2432257086,
-0.1949769557,
-0.0850350559,
-0.1033550948,
0.0288990885,
0.0844486132,
0.1044178158,
0.3788570464,
0.090336293,
0.2310872823,
0.3695779741,
0.101572305,
0.3100067377,
0.5074750185,
0.406558454,
-0.3184789419,
0.2045597434,
0.0775872469,
0.0856529549,
0.2882387638,
-0.1116833687,
-0.0276319236,
0.0777180046,
0.0934573263,
-0.2894924879,
0.1943800002,
0.2449226677,
-0.0539537072,
-0.1495430768,
-0.5760561824,
0.3336380422,
0.0304385871,
0.0183756948,
0.3064620495,
-0.2464930415,
-0.2605731785,
-0.0352296941,
-0.0546514988,
0.49818784,
0.1343331933,
0.0661568195,
0.4267182052,
-0.2779954076,
0.2107363343,
-0.1438205242,
0.2207974643,
-0.1879347265,
-0.3919573426,
-0.0941029191,
-0.1085411757,
0.0540995114,
-0.0021505831,
-0.2287914753,
0.2563298941,
0.0245752633,
0.2516515851,
0.0321384221,
0.0513759106,
-0.4211883843,
-0.1044378057,
-0.2310301512,
0.226688385,
0.0391742326,
0.0595657714,
-0.1965501904,
-0.1511450112,
0.2058586776,
-0.3431107998,
-0.2650854886,
-0.0005396307,
-0.2571266294,
0.0304906927,
-0.0789497644,
-0.5586482286,
-0.0092749521,
0.1646381617,
-0.1165742874,
-0.2574974,
-0.160361588,
0.0731906891,
0.1823070496,
0.4032895565,
-0.0304599926,
0.1647266597,
0.3220482469,
-0.0156900436,
-0.1203036904,
0.1713949293,
-0.2056287229,
-0.1386830509,
0.0792044848,
0.0525300242,
0.1477532983,
-0.1950286329,
0.0720986649,
-0.1244528592,
0.0610797107,
-0.2714120746,
0.1379991174,
-0.052292712,
-0.2443106472,
-0.0718857571,
-0.1764227748,
-0.1069567725,
-0.1404852271,
0.3965620995,
-0.1222571805,
0.2639792264,
0.5979732871,
0.2628352642,
-0.0699225888,
-0.2239042222,
0.2011473626,
0.0665024519,
-0.2591680884,
0.3576520085,
-0.0661279261,
-0.0084150583,
-0.0689551979,
0.37358585,
-0.013727692,
-0.0653007179,
-0.1425482929,
-0.2276574671,
-0.3390943408,
-0.0766484141,
-0.0648032278,
0.1809477657,
-0.0614873767,
0.0205044001,
0.344094485,
-0.2483291477,
-0.3373637795,
-0.2206483483,
-0.2257322073,
0.1367568523,
-0.1156359464,
0.0903353542,
0.2451534718,
-0.0245363321,
0.1401753128,
0.1833448112,
-0.0654684156,
-0.2514530718,
-0.0721648782,
0.0910970792,
-0.0126872677,
-0.2120139301,
-0.1004449278,
0.0691824108,
-0.3066589534,
-0.3149644732,
0.2542548776,
0.0261868164,
-0.0648498535,
0.3339466155,
0.1208941191,
0.2269125581,
-0.245801121,
-0.0012789546,
-0.0492912978,
-0.0714227408,
-0.2654005885,
0.1434953362,
0.0741448179,
0.0186536238,
-0.0137112811,
-0.0302396715,
-0.0359066501,
-0.0958979875,
0.3457254767,
-0.3809931278,
0.1985215396,
0.2853871584,
0.4326710403,
0.3073009551,
-0.2745676041,
-0.0601299778,
-0.0283833873,
0.2137220204,
-0.2702539563,
0.1047897637,
-0.1389293373,
0.3404974341,
0.1812907308,
0.1234543324,
0.0429618061,
-0.2800163627,
0.0771738738,
0.1745933592,
0.0768417642,
-0.1775954217,
0.2129437923,
0.4377634525,
-0.1620202661,
0.1636501253,
-0.0975023285,
0.0571440943,
0.0120125674,
0.4437313378,
-0.0766297877,
0.1632127166,
0.2037426531,
-0.136554718,
-0.0510566719,
-0.3139661849,
-0.2231898606,
0.2932851911,
-0.1478384435,
0.2211653292,
0.0607555732,
0.11484918,
-0.2439825237,
0.1240973026,
-0.3192912936,
-0.0808004886,
-0.1555944234,
0.0469757728,
-0.1781295836,
-0.1248733848,
-0.2028405368,
-0.1335260868,
0.150487572,
0.1290386617,
0.371265471,
0.0432593338,
-0.0071961023,
-0.6050089002,
-0.0662221909,
0.3256894052,
0.0365516096,
-0.2266713828,
0.2377026975,
0.425424546,
0.0902427882,
0.384297967,
0.3726783097,
0.3797658086,
0.3374566734,
-0.0666717291,
0.1129235327,
0.1543489695,
-0.1648840308,
-0.2762877345,
0.1785654724,
-0.0458155982,
0.2733044624,
0.3034487069,
0.1270705909,
-0.1446415186,
0.1170550808,
0.0449932441,
0.0575733855,
-0.6023665071,
0.4265976548,
-0.4701415896,
0.0185303986,
-0.1208023801,
-0.1203804016,
-0.2376077324,
0.0821255296,
0.2865522504,
0.0400105715,
0.2274748385,
-0.0990613252,
0.1067298278,
-0.1255406737,
0.2446667105,
-0.0027380604,
-0.2558124065,
-0.2028056979,
-0.1672923416,
-0.8009277582,
0.0148777813,
0.0856727809,
-0.1091408655,
0.1444783062,
0.1989770234,
-0.1189475358,
0.246401757,
0.3879630864,
-0.2339883447,
-0.1309392154,
0.3268942833,
-0.195360586,
-0.4079425037,
-0.4459079206,
-0.025074197,
-0.012066111,
-0.2429809421,
0.2650612891,
-0.2226770669,
0.1452894509,
0.1209751517,
-0.0283925533,
0.1159841269,
-0.0041817799,
0.3461862803,
0.1672823429,
0.314198494,
-0.1446936727,
0.1787154973,
-0.3299388587,
-0.1000358611,
-0.3050259352,
0.3060719967,
-0.1126584858,
0.4945883751,
-0.1233776659,
-0.0124990232,
-0.16372554,
0.2108145207,
0.2584313154,
-0.2667386532,
-0.3577259779,
0.2748012543,
-0.2798827291,
0.2512661815,
0.0318003856,
0.3652265966,
-0.0365185365,
0.1353163421,
-0.2697345018,
-0.5320449471,
0.4457721412,
-0.4308796823,
-0.3953134418,
-0.0651004463,
0.1863381565,
0.2452218682,
-0.2555918396,
-0.3518376946,
0.1235720217,
0.3564774096,
-0.1301044226,
-0.2069170475,
-0.0070770551,
-0.1155155003,
0.0543674976,
-0.0779214874,
0.1456418335,
0.1664126366,
-0.1576849371,
0.2604365349,
-0.0645065457
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Hi @severo, please note that "counter" dataset will be streamable (at least until it arrives at the missing file, error already in normal mode) once these PRs are merged:
- #2874
- #2876
- #2880
I have tested it. 😉 | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 40 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Hi @severo, please note that "counter" dataset will be streamable (at least until it arrives at the missing file, error already in normal mode) once these PRs are merged:
- #2874
- #2876
- #2880
I have tested it. 😉 | [
-0.4171532393,
-0.2417905629,
0.0004067235,
0.193667233,
0.1873791218,
0.05720447,
0.5056349039,
0.1059947759,
0.1942840368,
0.1353351176,
0.0698311776,
0.1297214031,
-0.2097094953,
0.3238827884,
0.0893112272,
0.0787797868,
0.0210813619,
0.1588885039,
0.0335766599,
0.0774050727,
-0.2157025933,
0.202814579,
-0.3865995407,
-0.3339453638,
-0.1323986799,
0.1463262588,
0.1100256965,
0.1485296786,
0.175347805,
-0.6307145357,
0.2604338527,
0.077574268,
0.2229161412,
0.7022690773,
-0.0001109225,
0.1807844341,
0.4209491014,
-0.138756752,
-0.5919359326,
-0.2953983247,
-0.3683614433,
-0.3184560537,
0.1747525185,
-0.1460204124,
-0.1155983955,
0.0416297428,
-0.2645147741,
-0.4016982913,
0.2196302265,
0.445461452,
0.2117785513,
0.4712951183,
-0.1509928107,
-0.1280123591,
0.1274100989,
0.008658994,
-0.152763024,
0.29874596,
0.0759947896,
0.2464786768,
-0.0301849842,
0.4006466568,
-0.0477481037,
0.1930939853,
0.2172412574,
-0.0403115898,
-0.0638406873,
-0.2730312347,
0.0779682547,
0.226718843,
0.3892457187,
-0.3428207636,
-0.1372255981,
-0.4340850115,
-0.0550192744,
-0.4057791233,
0.2461038232,
-0.0120554157,
-0.2402932942,
0.0848755538,
-0.3027440608,
0.1529164463,
0.0393640846,
-0.1008399278,
-0.0583144948,
0.131554231,
-0.0259358864,
0.1768468916,
-0.0182864666,
-0.0394544825,
0.1186182871,
-0.2750137448,
-0.0770447254,
0.19798325,
-0.5796866417,
0.0617473572,
0.3563537896,
-0.483120203,
0.2248358876,
0.0766405985,
0.3723808825,
0.080845207,
0.1294206381,
-0.0054172724,
0.3990356326,
0.2017411888,
0.1839398146,
-0.244638294,
0.1665529013,
0.3514228165,
-0.0046332404,
-0.3092012703,
0.04556394,
-0.0928957462,
0.2623340786,
0.01355974,
0.31324175,
0.0522785038,
-0.3759044409,
0.1984405071,
-0.2598962784,
0.0621635541,
0.3526677191,
0.2470079064,
0.3124101758,
0.331681639,
-0.1649699211,
0.2566636205,
-0.1701622009,
-0.4501440823,
-0.2399167567,
-0.3115687966,
0.0298979804,
0.0585326105,
0.2430290431,
-0.4115731418,
0.2127866447,
0.1143841147,
0.2314707637,
-0.1508325785,
0.2350653708,
-0.3559949994,
0.2714754343,
0.4170612395,
0.2132245451,
0.3055962622,
0.2130861729,
-0.0781214535,
0.0865609944,
0.129298389,
-0.0135737322,
-0.3794959784,
0.1188297197,
0.2418162972,
-0.1854702681,
0.0091847852,
-0.1626184583,
0.3421089649,
0.0492593348,
-0.490398258,
0.1006153971,
-0.1393200457,
-0.1788207591,
-0.1388722658,
0.3767813444,
0.4191718996,
-0.3163486123,
-0.0631756335,
-0.2223776877,
-0.193345964,
0.3068186343,
0.0627037436,
-0.1867484152,
0.0545984358,
-0.1989075243,
-0.0324026197,
0.1652612686,
-0.1338233054,
-0.4505627453,
0.3839793801,
-0.1003186852,
0.4216831028,
0.0033683814,
0.0348957144,
0.0462129153,
-0.1179657355,
0.2082363665,
-0.0482203364,
-0.3429862857,
0.1301705837,
-0.2063286901,
0.0962787122,
0.1745321602,
0.0263378024,
0.1080549061,
0.1456775516,
0.1164151356,
-0.0307610482,
0.1964358538,
-0.0440107174,
0.0053362101,
0.2909403145,
0.042424418,
-0.0588182993,
0.0003673434,
-0.1810714304,
-0.4702011943,
0.3554163575,
0.2276430279,
0.0265538637,
0.0678977221,
0.0377305448,
-0.3046529293,
0.1419356167,
-0.2711747289,
-0.4771590233,
0.1949525177,
0.3907284439,
-0.111849308,
0.0888262168,
-0.2773434818,
0.3020510972,
-0.1696488857,
-0.1002231687,
-0.1528522074,
0.1263131201,
0.1340727061,
-0.3565649688,
-0.0337360017,
0.0897878706,
0.2519125044,
-0.134492889,
-0.2349993885,
0.4969179332,
0.1069905013,
0.0699906051,
-0.0781736672,
-0.1732121259,
0.1972212791,
-0.1314568669,
-0.2321658134,
0.4724212587,
0.3397765756,
-0.2434855998,
-0.1393342614,
0.1867936552,
-0.2051786184,
0.2564635575,
-0.0694207847,
0.0912936851,
0.328330636,
0.3197961748,
-0.0928376168,
-0.0212595537,
0.2077190578,
-0.1777403653,
0.1031239182,
-0.1610923707,
-0.2532595992,
-0.0428621955,
0.1946249902,
0.1955532432,
0.0406558849,
0.0529753938,
-0.3236098886,
-0.2086990476,
0.370659411,
0.0880204886,
0.4839419723,
0.0791207701,
0.2721227407,
0.0922640041,
-0.0106660463,
-0.1263323873,
0.2971057892,
0.0752388462,
0.0984971821,
0.3603755534,
0.2497459203,
-0.1204283088,
-0.4016781151,
-0.2251662761,
0.1358989775,
0.1336641014,
-0.3052349687,
0.0297693089,
-0.1282224357,
-0.2748435736,
0.1133073717,
-0.4021541178,
-0.2225445807,
-0.3337675631,
-0.2058945596,
0.3451241553,
-0.1469638497,
0.1498997509,
-0.1804753244,
-0.0882677585,
0.3082577586,
-0.0031161178,
-0.2322358787,
-0.1135622263,
-0.2594827712,
0.0321406573,
0.0412807539,
-0.3234795034,
0.4347480237,
-0.1234985888,
-0.1801847816,
-0.1512940675,
-0.0745448619,
0.1740905493,
0.0435855016,
0.200140059,
0.2743389904,
0.2197591811,
0.0392215997,
0.0045699924,
0.4241866469,
-0.2919014692,
0.0146438479,
0.3762077689,
0.2012004554,
0.2666825354,
-0.2297267318,
-0.2490313053,
-0.0779715776,
-0.4310796261,
-0.1742306203,
-0.0227722377,
0.0273635313,
0.4507271647,
0.2624841928,
0.3891988695,
0.3127646148,
-0.0566321127,
-0.3348746896,
-0.347517997,
0.13222377,
-0.1974762827,
-0.4097188115,
0.1144936532,
0.0011451766,
0.1664850712,
0.2781508565,
-0.3012994826,
0.0803641528,
-0.0408358686,
0.1188739836,
-0.0593021475,
-0.1120117456,
0.143274799,
-0.0613779277,
-0.1019272059,
-0.3338414729,
-0.1850919873,
-0.1276155412,
-0.152960524,
0.2324115038,
0.038183935,
0.5950307846,
0.2077816427,
0.5280632973,
0.4836460054,
0.058197163,
0.6157111526,
-0.2377378047,
0.2161287814,
-0.3673552871,
-0.3503070176,
0.2225525379,
-0.0085880756,
-0.1320838332,
0.2081882209,
-0.1470542848,
-0.2681729198,
-0.256749481,
0.0351036936,
-0.0647702813,
-0.1755144298,
0.0512215793,
-0.2642836869,
0.3024117351,
0.0359323844,
0.2061442435,
-0.2464565933,
-0.0574942306,
-0.2373394966,
0.0760810077,
-0.0045372359,
0.0064090714,
-0.296765238,
0.0214662477,
-0.5252022147,
0.3021186888,
0.2227876782,
0.615446806,
-0.0391719565,
-0.208869487,
0.0450495481,
0.0117578581,
0.5304385424,
-0.3789147735,
-0.0240583438,
0.2964759469,
-0.0950774625,
-0.4073811769,
-0.1102450266,
-0.2325183302,
0.3465292454,
0.2328931689,
0.1428346932,
-0.2224265337,
-0.0886223763,
0.1366080344,
0.1360026598,
-0.0751256347,
-0.1846506894,
-0.2278952301,
-0.2202229798,
-0.1945457458,
-0.1267377734,
0.0843012258,
0.2432257086,
-0.1949769557,
-0.0850350559,
-0.1033550948,
0.0288990885,
0.0844486132,
0.1044178158,
0.3788570464,
0.090336293,
0.2310872823,
0.3695779741,
0.101572305,
0.3100067377,
0.5074750185,
0.406558454,
-0.3184789419,
0.2045597434,
0.0775872469,
0.0856529549,
0.2882387638,
-0.1116833687,
-0.0276319236,
0.0777180046,
0.0934573263,
-0.2894924879,
0.1943800002,
0.2449226677,
-0.0539537072,
-0.1495430768,
-0.5760561824,
0.3336380422,
0.0304385871,
0.0183756948,
0.3064620495,
-0.2464930415,
-0.2605731785,
-0.0352296941,
-0.0546514988,
0.49818784,
0.1343331933,
0.0661568195,
0.4267182052,
-0.2779954076,
0.2107363343,
-0.1438205242,
0.2207974643,
-0.1879347265,
-0.3919573426,
-0.0941029191,
-0.1085411757,
0.0540995114,
-0.0021505831,
-0.2287914753,
0.2563298941,
0.0245752633,
0.2516515851,
0.0321384221,
0.0513759106,
-0.4211883843,
-0.1044378057,
-0.2310301512,
0.226688385,
0.0391742326,
0.0595657714,
-0.1965501904,
-0.1511450112,
0.2058586776,
-0.3431107998,
-0.2650854886,
-0.0005396307,
-0.2571266294,
0.0304906927,
-0.0789497644,
-0.5586482286,
-0.0092749521,
0.1646381617,
-0.1165742874,
-0.2574974,
-0.160361588,
0.0731906891,
0.1823070496,
0.4032895565,
-0.0304599926,
0.1647266597,
0.3220482469,
-0.0156900436,
-0.1203036904,
0.1713949293,
-0.2056287229,
-0.1386830509,
0.0792044848,
0.0525300242,
0.1477532983,
-0.1950286329,
0.0720986649,
-0.1244528592,
0.0610797107,
-0.2714120746,
0.1379991174,
-0.052292712,
-0.2443106472,
-0.0718857571,
-0.1764227748,
-0.1069567725,
-0.1404852271,
0.3965620995,
-0.1222571805,
0.2639792264,
0.5979732871,
0.2628352642,
-0.0699225888,
-0.2239042222,
0.2011473626,
0.0665024519,
-0.2591680884,
0.3576520085,
-0.0661279261,
-0.0084150583,
-0.0689551979,
0.37358585,
-0.013727692,
-0.0653007179,
-0.1425482929,
-0.2276574671,
-0.3390943408,
-0.0766484141,
-0.0648032278,
0.1809477657,
-0.0614873767,
0.0205044001,
0.344094485,
-0.2483291477,
-0.3373637795,
-0.2206483483,
-0.2257322073,
0.1367568523,
-0.1156359464,
0.0903353542,
0.2451534718,
-0.0245363321,
0.1401753128,
0.1833448112,
-0.0654684156,
-0.2514530718,
-0.0721648782,
0.0910970792,
-0.0126872677,
-0.2120139301,
-0.1004449278,
0.0691824108,
-0.3066589534,
-0.3149644732,
0.2542548776,
0.0261868164,
-0.0648498535,
0.3339466155,
0.1208941191,
0.2269125581,
-0.245801121,
-0.0012789546,
-0.0492912978,
-0.0714227408,
-0.2654005885,
0.1434953362,
0.0741448179,
0.0186536238,
-0.0137112811,
-0.0302396715,
-0.0359066501,
-0.0958979875,
0.3457254767,
-0.3809931278,
0.1985215396,
0.2853871584,
0.4326710403,
0.3073009551,
-0.2745676041,
-0.0601299778,
-0.0283833873,
0.2137220204,
-0.2702539563,
0.1047897637,
-0.1389293373,
0.3404974341,
0.1812907308,
0.1234543324,
0.0429618061,
-0.2800163627,
0.0771738738,
0.1745933592,
0.0768417642,
-0.1775954217,
0.2129437923,
0.4377634525,
-0.1620202661,
0.1636501253,
-0.0975023285,
0.0571440943,
0.0120125674,
0.4437313378,
-0.0766297877,
0.1632127166,
0.2037426531,
-0.136554718,
-0.0510566719,
-0.3139661849,
-0.2231898606,
0.2932851911,
-0.1478384435,
0.2211653292,
0.0607555732,
0.11484918,
-0.2439825237,
0.1240973026,
-0.3192912936,
-0.0808004886,
-0.1555944234,
0.0469757728,
-0.1781295836,
-0.1248733848,
-0.2028405368,
-0.1335260868,
0.150487572,
0.1290386617,
0.371265471,
0.0432593338,
-0.0071961023,
-0.6050089002,
-0.0662221909,
0.3256894052,
0.0365516096,
-0.2266713828,
0.2377026975,
0.425424546,
0.0902427882,
0.384297967,
0.3726783097,
0.3797658086,
0.3374566734,
-0.0666717291,
0.1129235327,
0.1543489695,
-0.1648840308,
-0.2762877345,
0.1785654724,
-0.0458155982,
0.2733044624,
0.3034487069,
0.1270705909,
-0.1446415186,
0.1170550808,
0.0449932441,
0.0575733855,
-0.6023665071,
0.4265976548,
-0.4701415896,
0.0185303986,
-0.1208023801,
-0.1203804016,
-0.2376077324,
0.0821255296,
0.2865522504,
0.0400105715,
0.2274748385,
-0.0990613252,
0.1067298278,
-0.1255406737,
0.2446667105,
-0.0027380604,
-0.2558124065,
-0.2028056979,
-0.1672923416,
-0.8009277582,
0.0148777813,
0.0856727809,
-0.1091408655,
0.1444783062,
0.1989770234,
-0.1189475358,
0.246401757,
0.3879630864,
-0.2339883447,
-0.1309392154,
0.3268942833,
-0.195360586,
-0.4079425037,
-0.4459079206,
-0.025074197,
-0.012066111,
-0.2429809421,
0.2650612891,
-0.2226770669,
0.1452894509,
0.1209751517,
-0.0283925533,
0.1159841269,
-0.0041817799,
0.3461862803,
0.1672823429,
0.314198494,
-0.1446936727,
0.1787154973,
-0.3299388587,
-0.1000358611,
-0.3050259352,
0.3060719967,
-0.1126584858,
0.4945883751,
-0.1233776659,
-0.0124990232,
-0.16372554,
0.2108145207,
0.2584313154,
-0.2667386532,
-0.3577259779,
0.2748012543,
-0.2798827291,
0.2512661815,
0.0318003856,
0.3652265966,
-0.0365185365,
0.1353163421,
-0.2697345018,
-0.5320449471,
0.4457721412,
-0.4308796823,
-0.3953134418,
-0.0651004463,
0.1863381565,
0.2452218682,
-0.2555918396,
-0.3518376946,
0.1235720217,
0.3564774096,
-0.1301044226,
-0.2069170475,
-0.0070770551,
-0.1155155003,
0.0543674976,
-0.0779214874,
0.1456418335,
0.1664126366,
-0.1576849371,
0.2604365349,
-0.0645065457
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Now (on master), we get:
```
import datasets as ds
ds.load_dataset('counter', split="train", streaming=False)
```
```
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets/src/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
The error is now the same with or without streaming. I close the issue, thanks @albertvillanova and @lhoestq!
| ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 191 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Now (on master), we get:
```
import datasets as ds
ds.load_dataset('counter', split="train", streaming=False)
```
```
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets/src/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets/src/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
The error is now the same with or without streaming. I close the issue, thanks @albertvillanova and @lhoestq!
| [
-0.4171532393,
-0.2417905629,
0.0004067235,
0.193667233,
0.1873791218,
0.05720447,
0.5056349039,
0.1059947759,
0.1942840368,
0.1353351176,
0.0698311776,
0.1297214031,
-0.2097094953,
0.3238827884,
0.0893112272,
0.0787797868,
0.0210813619,
0.1588885039,
0.0335766599,
0.0774050727,
-0.2157025933,
0.202814579,
-0.3865995407,
-0.3339453638,
-0.1323986799,
0.1463262588,
0.1100256965,
0.1485296786,
0.175347805,
-0.6307145357,
0.2604338527,
0.077574268,
0.2229161412,
0.7022690773,
-0.0001109225,
0.1807844341,
0.4209491014,
-0.138756752,
-0.5919359326,
-0.2953983247,
-0.3683614433,
-0.3184560537,
0.1747525185,
-0.1460204124,
-0.1155983955,
0.0416297428,
-0.2645147741,
-0.4016982913,
0.2196302265,
0.445461452,
0.2117785513,
0.4712951183,
-0.1509928107,
-0.1280123591,
0.1274100989,
0.008658994,
-0.152763024,
0.29874596,
0.0759947896,
0.2464786768,
-0.0301849842,
0.4006466568,
-0.0477481037,
0.1930939853,
0.2172412574,
-0.0403115898,
-0.0638406873,
-0.2730312347,
0.0779682547,
0.226718843,
0.3892457187,
-0.3428207636,
-0.1372255981,
-0.4340850115,
-0.0550192744,
-0.4057791233,
0.2461038232,
-0.0120554157,
-0.2402932942,
0.0848755538,
-0.3027440608,
0.1529164463,
0.0393640846,
-0.1008399278,
-0.0583144948,
0.131554231,
-0.0259358864,
0.1768468916,
-0.0182864666,
-0.0394544825,
0.1186182871,
-0.2750137448,
-0.0770447254,
0.19798325,
-0.5796866417,
0.0617473572,
0.3563537896,
-0.483120203,
0.2248358876,
0.0766405985,
0.3723808825,
0.080845207,
0.1294206381,
-0.0054172724,
0.3990356326,
0.2017411888,
0.1839398146,
-0.244638294,
0.1665529013,
0.3514228165,
-0.0046332404,
-0.3092012703,
0.04556394,
-0.0928957462,
0.2623340786,
0.01355974,
0.31324175,
0.0522785038,
-0.3759044409,
0.1984405071,
-0.2598962784,
0.0621635541,
0.3526677191,
0.2470079064,
0.3124101758,
0.331681639,
-0.1649699211,
0.2566636205,
-0.1701622009,
-0.4501440823,
-0.2399167567,
-0.3115687966,
0.0298979804,
0.0585326105,
0.2430290431,
-0.4115731418,
0.2127866447,
0.1143841147,
0.2314707637,
-0.1508325785,
0.2350653708,
-0.3559949994,
0.2714754343,
0.4170612395,
0.2132245451,
0.3055962622,
0.2130861729,
-0.0781214535,
0.0865609944,
0.129298389,
-0.0135737322,
-0.3794959784,
0.1188297197,
0.2418162972,
-0.1854702681,
0.0091847852,
-0.1626184583,
0.3421089649,
0.0492593348,
-0.490398258,
0.1006153971,
-0.1393200457,
-0.1788207591,
-0.1388722658,
0.3767813444,
0.4191718996,
-0.3163486123,
-0.0631756335,
-0.2223776877,
-0.193345964,
0.3068186343,
0.0627037436,
-0.1867484152,
0.0545984358,
-0.1989075243,
-0.0324026197,
0.1652612686,
-0.1338233054,
-0.4505627453,
0.3839793801,
-0.1003186852,
0.4216831028,
0.0033683814,
0.0348957144,
0.0462129153,
-0.1179657355,
0.2082363665,
-0.0482203364,
-0.3429862857,
0.1301705837,
-0.2063286901,
0.0962787122,
0.1745321602,
0.0263378024,
0.1080549061,
0.1456775516,
0.1164151356,
-0.0307610482,
0.1964358538,
-0.0440107174,
0.0053362101,
0.2909403145,
0.042424418,
-0.0588182993,
0.0003673434,
-0.1810714304,
-0.4702011943,
0.3554163575,
0.2276430279,
0.0265538637,
0.0678977221,
0.0377305448,
-0.3046529293,
0.1419356167,
-0.2711747289,
-0.4771590233,
0.1949525177,
0.3907284439,
-0.111849308,
0.0888262168,
-0.2773434818,
0.3020510972,
-0.1696488857,
-0.1002231687,
-0.1528522074,
0.1263131201,
0.1340727061,
-0.3565649688,
-0.0337360017,
0.0897878706,
0.2519125044,
-0.134492889,
-0.2349993885,
0.4969179332,
0.1069905013,
0.0699906051,
-0.0781736672,
-0.1732121259,
0.1972212791,
-0.1314568669,
-0.2321658134,
0.4724212587,
0.3397765756,
-0.2434855998,
-0.1393342614,
0.1867936552,
-0.2051786184,
0.2564635575,
-0.0694207847,
0.0912936851,
0.328330636,
0.3197961748,
-0.0928376168,
-0.0212595537,
0.2077190578,
-0.1777403653,
0.1031239182,
-0.1610923707,
-0.2532595992,
-0.0428621955,
0.1946249902,
0.1955532432,
0.0406558849,
0.0529753938,
-0.3236098886,
-0.2086990476,
0.370659411,
0.0880204886,
0.4839419723,
0.0791207701,
0.2721227407,
0.0922640041,
-0.0106660463,
-0.1263323873,
0.2971057892,
0.0752388462,
0.0984971821,
0.3603755534,
0.2497459203,
-0.1204283088,
-0.4016781151,
-0.2251662761,
0.1358989775,
0.1336641014,
-0.3052349687,
0.0297693089,
-0.1282224357,
-0.2748435736,
0.1133073717,
-0.4021541178,
-0.2225445807,
-0.3337675631,
-0.2058945596,
0.3451241553,
-0.1469638497,
0.1498997509,
-0.1804753244,
-0.0882677585,
0.3082577586,
-0.0031161178,
-0.2322358787,
-0.1135622263,
-0.2594827712,
0.0321406573,
0.0412807539,
-0.3234795034,
0.4347480237,
-0.1234985888,
-0.1801847816,
-0.1512940675,
-0.0745448619,
0.1740905493,
0.0435855016,
0.200140059,
0.2743389904,
0.2197591811,
0.0392215997,
0.0045699924,
0.4241866469,
-0.2919014692,
0.0146438479,
0.3762077689,
0.2012004554,
0.2666825354,
-0.2297267318,
-0.2490313053,
-0.0779715776,
-0.4310796261,
-0.1742306203,
-0.0227722377,
0.0273635313,
0.4507271647,
0.2624841928,
0.3891988695,
0.3127646148,
-0.0566321127,
-0.3348746896,
-0.347517997,
0.13222377,
-0.1974762827,
-0.4097188115,
0.1144936532,
0.0011451766,
0.1664850712,
0.2781508565,
-0.3012994826,
0.0803641528,
-0.0408358686,
0.1188739836,
-0.0593021475,
-0.1120117456,
0.143274799,
-0.0613779277,
-0.1019272059,
-0.3338414729,
-0.1850919873,
-0.1276155412,
-0.152960524,
0.2324115038,
0.038183935,
0.5950307846,
0.2077816427,
0.5280632973,
0.4836460054,
0.058197163,
0.6157111526,
-0.2377378047,
0.2161287814,
-0.3673552871,
-0.3503070176,
0.2225525379,
-0.0085880756,
-0.1320838332,
0.2081882209,
-0.1470542848,
-0.2681729198,
-0.256749481,
0.0351036936,
-0.0647702813,
-0.1755144298,
0.0512215793,
-0.2642836869,
0.3024117351,
0.0359323844,
0.2061442435,
-0.2464565933,
-0.0574942306,
-0.2373394966,
0.0760810077,
-0.0045372359,
0.0064090714,
-0.296765238,
0.0214662477,
-0.5252022147,
0.3021186888,
0.2227876782,
0.615446806,
-0.0391719565,
-0.208869487,
0.0450495481,
0.0117578581,
0.5304385424,
-0.3789147735,
-0.0240583438,
0.2964759469,
-0.0950774625,
-0.4073811769,
-0.1102450266,
-0.2325183302,
0.3465292454,
0.2328931689,
0.1428346932,
-0.2224265337,
-0.0886223763,
0.1366080344,
0.1360026598,
-0.0751256347,
-0.1846506894,
-0.2278952301,
-0.2202229798,
-0.1945457458,
-0.1267377734,
0.0843012258,
0.2432257086,
-0.1949769557,
-0.0850350559,
-0.1033550948,
0.0288990885,
0.0844486132,
0.1044178158,
0.3788570464,
0.090336293,
0.2310872823,
0.3695779741,
0.101572305,
0.3100067377,
0.5074750185,
0.406558454,
-0.3184789419,
0.2045597434,
0.0775872469,
0.0856529549,
0.2882387638,
-0.1116833687,
-0.0276319236,
0.0777180046,
0.0934573263,
-0.2894924879,
0.1943800002,
0.2449226677,
-0.0539537072,
-0.1495430768,
-0.5760561824,
0.3336380422,
0.0304385871,
0.0183756948,
0.3064620495,
-0.2464930415,
-0.2605731785,
-0.0352296941,
-0.0546514988,
0.49818784,
0.1343331933,
0.0661568195,
0.4267182052,
-0.2779954076,
0.2107363343,
-0.1438205242,
0.2207974643,
-0.1879347265,
-0.3919573426,
-0.0941029191,
-0.1085411757,
0.0540995114,
-0.0021505831,
-0.2287914753,
0.2563298941,
0.0245752633,
0.2516515851,
0.0321384221,
0.0513759106,
-0.4211883843,
-0.1044378057,
-0.2310301512,
0.226688385,
0.0391742326,
0.0595657714,
-0.1965501904,
-0.1511450112,
0.2058586776,
-0.3431107998,
-0.2650854886,
-0.0005396307,
-0.2571266294,
0.0304906927,
-0.0789497644,
-0.5586482286,
-0.0092749521,
0.1646381617,
-0.1165742874,
-0.2574974,
-0.160361588,
0.0731906891,
0.1823070496,
0.4032895565,
-0.0304599926,
0.1647266597,
0.3220482469,
-0.0156900436,
-0.1203036904,
0.1713949293,
-0.2056287229,
-0.1386830509,
0.0792044848,
0.0525300242,
0.1477532983,
-0.1950286329,
0.0720986649,
-0.1244528592,
0.0610797107,
-0.2714120746,
0.1379991174,
-0.052292712,
-0.2443106472,
-0.0718857571,
-0.1764227748,
-0.1069567725,
-0.1404852271,
0.3965620995,
-0.1222571805,
0.2639792264,
0.5979732871,
0.2628352642,
-0.0699225888,
-0.2239042222,
0.2011473626,
0.0665024519,
-0.2591680884,
0.3576520085,
-0.0661279261,
-0.0084150583,
-0.0689551979,
0.37358585,
-0.013727692,
-0.0653007179,
-0.1425482929,
-0.2276574671,
-0.3390943408,
-0.0766484141,
-0.0648032278,
0.1809477657,
-0.0614873767,
0.0205044001,
0.344094485,
-0.2483291477,
-0.3373637795,
-0.2206483483,
-0.2257322073,
0.1367568523,
-0.1156359464,
0.0903353542,
0.2451534718,
-0.0245363321,
0.1401753128,
0.1833448112,
-0.0654684156,
-0.2514530718,
-0.0721648782,
0.0910970792,
-0.0126872677,
-0.2120139301,
-0.1004449278,
0.0691824108,
-0.3066589534,
-0.3149644732,
0.2542548776,
0.0261868164,
-0.0648498535,
0.3339466155,
0.1208941191,
0.2269125581,
-0.245801121,
-0.0012789546,
-0.0492912978,
-0.0714227408,
-0.2654005885,
0.1434953362,
0.0741448179,
0.0186536238,
-0.0137112811,
-0.0302396715,
-0.0359066501,
-0.0958979875,
0.3457254767,
-0.3809931278,
0.1985215396,
0.2853871584,
0.4326710403,
0.3073009551,
-0.2745676041,
-0.0601299778,
-0.0283833873,
0.2137220204,
-0.2702539563,
0.1047897637,
-0.1389293373,
0.3404974341,
0.1812907308,
0.1234543324,
0.0429618061,
-0.2800163627,
0.0771738738,
0.1745933592,
0.0768417642,
-0.1775954217,
0.2129437923,
0.4377634525,
-0.1620202661,
0.1636501253,
-0.0975023285,
0.0571440943,
0.0120125674,
0.4437313378,
-0.0766297877,
0.1632127166,
0.2037426531,
-0.136554718,
-0.0510566719,
-0.3139661849,
-0.2231898606,
0.2932851911,
-0.1478384435,
0.2211653292,
0.0607555732,
0.11484918,
-0.2439825237,
0.1240973026,
-0.3192912936,
-0.0808004886,
-0.1555944234,
0.0469757728,
-0.1781295836,
-0.1248733848,
-0.2028405368,
-0.1335260868,
0.150487572,
0.1290386617,
0.371265471,
0.0432593338,
-0.0071961023,
-0.6050089002,
-0.0662221909,
0.3256894052,
0.0365516096,
-0.2266713828,
0.2377026975,
0.425424546,
0.0902427882,
0.384297967,
0.3726783097,
0.3797658086,
0.3374566734,
-0.0666717291,
0.1129235327,
0.1543489695,
-0.1648840308,
-0.2762877345,
0.1785654724,
-0.0458155982,
0.2733044624,
0.3034487069,
0.1270705909,
-0.1446415186,
0.1170550808,
0.0449932441,
0.0575733855,
-0.6023665071,
0.4265976548,
-0.4701415896,
0.0185303986,
-0.1208023801,
-0.1203804016,
-0.2376077324,
0.0821255296,
0.2865522504,
0.0400105715,
0.2274748385,
-0.0990613252,
0.1067298278,
-0.1255406737,
0.2446667105,
-0.0027380604,
-0.2558124065,
-0.2028056979,
-0.1672923416,
-0.8009277582,
0.0148777813,
0.0856727809,
-0.1091408655,
0.1444783062,
0.1989770234,
-0.1189475358,
0.246401757,
0.3879630864,
-0.2339883447,
-0.1309392154,
0.3268942833,
-0.195360586,
-0.4079425037,
-0.4459079206,
-0.025074197,
-0.012066111,
-0.2429809421,
0.2650612891,
-0.2226770669,
0.1452894509,
0.1209751517,
-0.0283925533,
0.1159841269,
-0.0041817799,
0.3461862803,
0.1672823429,
0.314198494,
-0.1446936727,
0.1787154973,
-0.3299388587,
-0.1000358611,
-0.3050259352,
0.3060719967,
-0.1126584858,
0.4945883751,
-0.1233776659,
-0.0124990232,
-0.16372554,
0.2108145207,
0.2584313154,
-0.2667386532,
-0.3577259779,
0.2748012543,
-0.2798827291,
0.2512661815,
0.0318003856,
0.3652265966,
-0.0365185365,
0.1353163421,
-0.2697345018,
-0.5320449471,
0.4457721412,
-0.4308796823,
-0.3953134418,
-0.0651004463,
0.1863381565,
0.2452218682,
-0.2555918396,
-0.3518376946,
0.1235720217,
0.3564774096,
-0.1301044226,
-0.2069170475,
-0.0070770551,
-0.1155155003,
0.0543674976,
-0.0779214874,
0.1456418335,
0.1664126366,
-0.1576849371,
0.2604365349,
-0.0645065457
] |
https://github.com/huggingface/datasets/issues/2866 | "counter" dataset raises an error in normal mode, but not in streaming mode | Note that we might want to open an issue to fix the "counter" dataset by itself, but I let it up to you. | ## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
| 23 | "counter" dataset raises an error in normal mode, but not in streaming mode
## Describe the bug
`counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode.
## Steps to reproduce the bug
```python
>>> import datasets as ds
>>> a = ds.load_dataset('counter', split="train", streaming=False)
Using custom data configuration default
Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/slesage/.cache/huggingface/datasets/counter/default/1.0.0/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9...
Traceback (most recent call last):
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 726, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
for key, record in utils.tqdm(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/tqdm/std.py", line 1185, in __iter__
for obj in iterable:
File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/counter/9f84962fa0f35bec5a34fe0bdff8681838d497008c457f7856c48654476ec0e9/counter.py", line 161, in _generate_examples
with derived_file.open(encoding="utf-8") as f:
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1222, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/home/slesage/.pyenv/versions/3.8.11/lib/python3.8/pathlib.py", line 1078, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset
builder_instance.download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 636, in download_and_prepare
self._download_and_prepare(
File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.8/site-packages/datasets/builder.py", line 728, in _download_and_prepare
raise OSError(
OSError: Cannot find data file.
Original error:
[Errno 2] No such file or directory: '/home/slesage/.cache/huggingface/datasets/downloads/extracted/b57aa6db5601a738e57b95c1fd8cced54ff28fc540efcdaf0f6c4f1bb5dfe211/COUNTER/0032p.xml'
```
```python
>>> import datasets as ds
>>> b = ds.load_dataset('counter', split="train", streaming=True)
Using custom data configuration default
>>> list(b)
[]
```
## Expected results
An exception should be raised in streaming mode
## Actual results
No exception is raised in streaming mode: there is no way to tell if something has broken or if the dataset is simply empty.
## Environment info
- `datasets` version: 1.11.1.dev0
- Platform: Linux-5.11.0-1016-aws-x86_64-with-glibc2.29
- Python version: 3.8.11
- PyArrow version: 4.0.1
Note that we might want to open an issue to fix the "counter" dataset by itself, but I let it up to you. | [
-0.4171532393,
-0.2417905629,
0.0004067235,
0.193667233,
0.1873791218,
0.05720447,
0.5056349039,
0.1059947759,
0.1942840368,
0.1353351176,
0.0698311776,
0.1297214031,
-0.2097094953,
0.3238827884,
0.0893112272,
0.0787797868,
0.0210813619,
0.1588885039,
0.0335766599,
0.0774050727,
-0.2157025933,
0.202814579,
-0.3865995407,
-0.3339453638,
-0.1323986799,
0.1463262588,
0.1100256965,
0.1485296786,
0.175347805,
-0.6307145357,
0.2604338527,
0.077574268,
0.2229161412,
0.7022690773,
-0.0001109225,
0.1807844341,
0.4209491014,
-0.138756752,
-0.5919359326,
-0.2953983247,
-0.3683614433,
-0.3184560537,
0.1747525185,
-0.1460204124,
-0.1155983955,
0.0416297428,
-0.2645147741,
-0.4016982913,
0.2196302265,
0.445461452,
0.2117785513,
0.4712951183,
-0.1509928107,
-0.1280123591,
0.1274100989,
0.008658994,
-0.152763024,
0.29874596,
0.0759947896,
0.2464786768,
-0.0301849842,
0.4006466568,
-0.0477481037,
0.1930939853,
0.2172412574,
-0.0403115898,
-0.0638406873,
-0.2730312347,
0.0779682547,
0.226718843,
0.3892457187,
-0.3428207636,
-0.1372255981,
-0.4340850115,
-0.0550192744,
-0.4057791233,
0.2461038232,
-0.0120554157,
-0.2402932942,
0.0848755538,
-0.3027440608,
0.1529164463,
0.0393640846,
-0.1008399278,
-0.0583144948,
0.131554231,
-0.0259358864,
0.1768468916,
-0.0182864666,
-0.0394544825,
0.1186182871,
-0.2750137448,
-0.0770447254,
0.19798325,
-0.5796866417,
0.0617473572,
0.3563537896,
-0.483120203,
0.2248358876,
0.0766405985,
0.3723808825,
0.080845207,
0.1294206381,
-0.0054172724,
0.3990356326,
0.2017411888,
0.1839398146,
-0.244638294,
0.1665529013,
0.3514228165,
-0.0046332404,
-0.3092012703,
0.04556394,
-0.0928957462,
0.2623340786,
0.01355974,
0.31324175,
0.0522785038,
-0.3759044409,
0.1984405071,
-0.2598962784,
0.0621635541,
0.3526677191,
0.2470079064,
0.3124101758,
0.331681639,
-0.1649699211,
0.2566636205,
-0.1701622009,
-0.4501440823,
-0.2399167567,
-0.3115687966,
0.0298979804,
0.0585326105,
0.2430290431,
-0.4115731418,
0.2127866447,
0.1143841147,
0.2314707637,
-0.1508325785,
0.2350653708,
-0.3559949994,
0.2714754343,
0.4170612395,
0.2132245451,
0.3055962622,
0.2130861729,
-0.0781214535,
0.0865609944,
0.129298389,
-0.0135737322,
-0.3794959784,
0.1188297197,
0.2418162972,
-0.1854702681,
0.0091847852,
-0.1626184583,
0.3421089649,
0.0492593348,
-0.490398258,
0.1006153971,
-0.1393200457,
-0.1788207591,
-0.1388722658,
0.3767813444,
0.4191718996,
-0.3163486123,
-0.0631756335,
-0.2223776877,
-0.193345964,
0.3068186343,
0.0627037436,
-0.1867484152,
0.0545984358,
-0.1989075243,
-0.0324026197,
0.1652612686,
-0.1338233054,
-0.4505627453,
0.3839793801,
-0.1003186852,
0.4216831028,
0.0033683814,
0.0348957144,
0.0462129153,
-0.1179657355,
0.2082363665,
-0.0482203364,
-0.3429862857,
0.1301705837,
-0.2063286901,
0.0962787122,
0.1745321602,
0.0263378024,
0.1080549061,
0.1456775516,
0.1164151356,
-0.0307610482,
0.1964358538,
-0.0440107174,
0.0053362101,
0.2909403145,
0.042424418,
-0.0588182993,
0.0003673434,
-0.1810714304,
-0.4702011943,
0.3554163575,
0.2276430279,
0.0265538637,
0.0678977221,
0.0377305448,
-0.3046529293,
0.1419356167,
-0.2711747289,
-0.4771590233,
0.1949525177,
0.3907284439,
-0.111849308,
0.0888262168,
-0.2773434818,
0.3020510972,
-0.1696488857,
-0.1002231687,
-0.1528522074,
0.1263131201,
0.1340727061,
-0.3565649688,
-0.0337360017,
0.0897878706,
0.2519125044,
-0.134492889,
-0.2349993885,
0.4969179332,
0.1069905013,
0.0699906051,
-0.0781736672,
-0.1732121259,
0.1972212791,
-0.1314568669,
-0.2321658134,
0.4724212587,
0.3397765756,
-0.2434855998,
-0.1393342614,
0.1867936552,
-0.2051786184,
0.2564635575,
-0.0694207847,
0.0912936851,
0.328330636,
0.3197961748,
-0.0928376168,
-0.0212595537,
0.2077190578,
-0.1777403653,
0.1031239182,
-0.1610923707,
-0.2532595992,
-0.0428621955,
0.1946249902,
0.1955532432,
0.0406558849,
0.0529753938,
-0.3236098886,
-0.2086990476,
0.370659411,
0.0880204886,
0.4839419723,
0.0791207701,
0.2721227407,
0.0922640041,
-0.0106660463,
-0.1263323873,
0.2971057892,
0.0752388462,
0.0984971821,
0.3603755534,
0.2497459203,
-0.1204283088,
-0.4016781151,
-0.2251662761,
0.1358989775,
0.1336641014,
-0.3052349687,
0.0297693089,
-0.1282224357,
-0.2748435736,
0.1133073717,
-0.4021541178,
-0.2225445807,
-0.3337675631,
-0.2058945596,
0.3451241553,
-0.1469638497,
0.1498997509,
-0.1804753244,
-0.0882677585,
0.3082577586,
-0.0031161178,
-0.2322358787,
-0.1135622263,
-0.2594827712,
0.0321406573,
0.0412807539,
-0.3234795034,
0.4347480237,
-0.1234985888,
-0.1801847816,
-0.1512940675,
-0.0745448619,
0.1740905493,
0.0435855016,
0.200140059,
0.2743389904,
0.2197591811,
0.0392215997,
0.0045699924,
0.4241866469,
-0.2919014692,
0.0146438479,
0.3762077689,
0.2012004554,
0.2666825354,
-0.2297267318,
-0.2490313053,
-0.0779715776,
-0.4310796261,
-0.1742306203,
-0.0227722377,
0.0273635313,
0.4507271647,
0.2624841928,
0.3891988695,
0.3127646148,
-0.0566321127,
-0.3348746896,
-0.347517997,
0.13222377,
-0.1974762827,
-0.4097188115,
0.1144936532,
0.0011451766,
0.1664850712,
0.2781508565,
-0.3012994826,
0.0803641528,
-0.0408358686,
0.1188739836,
-0.0593021475,
-0.1120117456,
0.143274799,
-0.0613779277,
-0.1019272059,
-0.3338414729,
-0.1850919873,
-0.1276155412,
-0.152960524,
0.2324115038,
0.038183935,
0.5950307846,
0.2077816427,
0.5280632973,
0.4836460054,
0.058197163,
0.6157111526,
-0.2377378047,
0.2161287814,
-0.3673552871,
-0.3503070176,
0.2225525379,
-0.0085880756,
-0.1320838332,
0.2081882209,
-0.1470542848,
-0.2681729198,
-0.256749481,
0.0351036936,
-0.0647702813,
-0.1755144298,
0.0512215793,
-0.2642836869,
0.3024117351,
0.0359323844,
0.2061442435,
-0.2464565933,
-0.0574942306,
-0.2373394966,
0.0760810077,
-0.0045372359,
0.0064090714,
-0.296765238,
0.0214662477,
-0.5252022147,
0.3021186888,
0.2227876782,
0.615446806,
-0.0391719565,
-0.208869487,
0.0450495481,
0.0117578581,
0.5304385424,
-0.3789147735,
-0.0240583438,
0.2964759469,
-0.0950774625,
-0.4073811769,
-0.1102450266,
-0.2325183302,
0.3465292454,
0.2328931689,
0.1428346932,
-0.2224265337,
-0.0886223763,
0.1366080344,
0.1360026598,
-0.0751256347,
-0.1846506894,
-0.2278952301,
-0.2202229798,
-0.1945457458,
-0.1267377734,
0.0843012258,
0.2432257086,
-0.1949769557,
-0.0850350559,
-0.1033550948,
0.0288990885,
0.0844486132,
0.1044178158,
0.3788570464,
0.090336293,
0.2310872823,
0.3695779741,
0.101572305,
0.3100067377,
0.5074750185,
0.406558454,
-0.3184789419,
0.2045597434,
0.0775872469,
0.0856529549,
0.2882387638,
-0.1116833687,
-0.0276319236,
0.0777180046,
0.0934573263,
-0.2894924879,
0.1943800002,
0.2449226677,
-0.0539537072,
-0.1495430768,
-0.5760561824,
0.3336380422,
0.0304385871,
0.0183756948,
0.3064620495,
-0.2464930415,
-0.2605731785,
-0.0352296941,
-0.0546514988,
0.49818784,
0.1343331933,
0.0661568195,
0.4267182052,
-0.2779954076,
0.2107363343,
-0.1438205242,
0.2207974643,
-0.1879347265,
-0.3919573426,
-0.0941029191,
-0.1085411757,
0.0540995114,
-0.0021505831,
-0.2287914753,
0.2563298941,
0.0245752633,
0.2516515851,
0.0321384221,
0.0513759106,
-0.4211883843,
-0.1044378057,
-0.2310301512,
0.226688385,
0.0391742326,
0.0595657714,
-0.1965501904,
-0.1511450112,
0.2058586776,
-0.3431107998,
-0.2650854886,
-0.0005396307,
-0.2571266294,
0.0304906927,
-0.0789497644,
-0.5586482286,
-0.0092749521,
0.1646381617,
-0.1165742874,
-0.2574974,
-0.160361588,
0.0731906891,
0.1823070496,
0.4032895565,
-0.0304599926,
0.1647266597,
0.3220482469,
-0.0156900436,
-0.1203036904,
0.1713949293,
-0.2056287229,
-0.1386830509,
0.0792044848,
0.0525300242,
0.1477532983,
-0.1950286329,
0.0720986649,
-0.1244528592,
0.0610797107,
-0.2714120746,
0.1379991174,
-0.052292712,
-0.2443106472,
-0.0718857571,
-0.1764227748,
-0.1069567725,
-0.1404852271,
0.3965620995,
-0.1222571805,
0.2639792264,
0.5979732871,
0.2628352642,
-0.0699225888,
-0.2239042222,
0.2011473626,
0.0665024519,
-0.2591680884,
0.3576520085,
-0.0661279261,
-0.0084150583,
-0.0689551979,
0.37358585,
-0.013727692,
-0.0653007179,
-0.1425482929,
-0.2276574671,
-0.3390943408,
-0.0766484141,
-0.0648032278,
0.1809477657,
-0.0614873767,
0.0205044001,
0.344094485,
-0.2483291477,
-0.3373637795,
-0.2206483483,
-0.2257322073,
0.1367568523,
-0.1156359464,
0.0903353542,
0.2451534718,
-0.0245363321,
0.1401753128,
0.1833448112,
-0.0654684156,
-0.2514530718,
-0.0721648782,
0.0910970792,
-0.0126872677,
-0.2120139301,
-0.1004449278,
0.0691824108,
-0.3066589534,
-0.3149644732,
0.2542548776,
0.0261868164,
-0.0648498535,
0.3339466155,
0.1208941191,
0.2269125581,
-0.245801121,
-0.0012789546,
-0.0492912978,
-0.0714227408,
-0.2654005885,
0.1434953362,
0.0741448179,
0.0186536238,
-0.0137112811,
-0.0302396715,
-0.0359066501,
-0.0958979875,
0.3457254767,
-0.3809931278,
0.1985215396,
0.2853871584,
0.4326710403,
0.3073009551,
-0.2745676041,
-0.0601299778,
-0.0283833873,
0.2137220204,
-0.2702539563,
0.1047897637,
-0.1389293373,
0.3404974341,
0.1812907308,
0.1234543324,
0.0429618061,
-0.2800163627,
0.0771738738,
0.1745933592,
0.0768417642,
-0.1775954217,
0.2129437923,
0.4377634525,
-0.1620202661,
0.1636501253,
-0.0975023285,
0.0571440943,
0.0120125674,
0.4437313378,
-0.0766297877,
0.1632127166,
0.2037426531,
-0.136554718,
-0.0510566719,
-0.3139661849,
-0.2231898606,
0.2932851911,
-0.1478384435,
0.2211653292,
0.0607555732,
0.11484918,
-0.2439825237,
0.1240973026,
-0.3192912936,
-0.0808004886,
-0.1555944234,
0.0469757728,
-0.1781295836,
-0.1248733848,
-0.2028405368,
-0.1335260868,
0.150487572,
0.1290386617,
0.371265471,
0.0432593338,
-0.0071961023,
-0.6050089002,
-0.0662221909,
0.3256894052,
0.0365516096,
-0.2266713828,
0.2377026975,
0.425424546,
0.0902427882,
0.384297967,
0.3726783097,
0.3797658086,
0.3374566734,
-0.0666717291,
0.1129235327,
0.1543489695,
-0.1648840308,
-0.2762877345,
0.1785654724,
-0.0458155982,
0.2733044624,
0.3034487069,
0.1270705909,
-0.1446415186,
0.1170550808,
0.0449932441,
0.0575733855,
-0.6023665071,
0.4265976548,
-0.4701415896,
0.0185303986,
-0.1208023801,
-0.1203804016,
-0.2376077324,
0.0821255296,
0.2865522504,
0.0400105715,
0.2274748385,
-0.0990613252,
0.1067298278,
-0.1255406737,
0.2446667105,
-0.0027380604,
-0.2558124065,
-0.2028056979,
-0.1672923416,
-0.8009277582,
0.0148777813,
0.0856727809,
-0.1091408655,
0.1444783062,
0.1989770234,
-0.1189475358,
0.246401757,
0.3879630864,
-0.2339883447,
-0.1309392154,
0.3268942833,
-0.195360586,
-0.4079425037,
-0.4459079206,
-0.025074197,
-0.012066111,
-0.2429809421,
0.2650612891,
-0.2226770669,
0.1452894509,
0.1209751517,
-0.0283925533,
0.1159841269,
-0.0041817799,
0.3461862803,
0.1672823429,
0.314198494,
-0.1446936727,
0.1787154973,
-0.3299388587,
-0.1000358611,
-0.3050259352,
0.3060719967,
-0.1126584858,
0.4945883751,
-0.1233776659,
-0.0124990232,
-0.16372554,
0.2108145207,
0.2584313154,
-0.2667386532,
-0.3577259779,
0.2748012543,
-0.2798827291,
0.2512661815,
0.0318003856,
0.3652265966,
-0.0365185365,
0.1353163421,
-0.2697345018,
-0.5320449471,
0.4457721412,
-0.4308796823,
-0.3953134418,
-0.0651004463,
0.1863381565,
0.2452218682,
-0.2555918396,
-0.3518376946,
0.1235720217,
0.3564774096,
-0.1301044226,
-0.2069170475,
-0.0070770551,
-0.1155155003,
0.0543674976,
-0.0779214874,
0.1456418335,
0.1664126366,
-0.1576849371,
0.2604365349,
-0.0645065457
] |
https://github.com/huggingface/datasets/issues/2860 | Cannot download TOTTO dataset | Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it. | Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
| 20 | Cannot download TOTTO dataset
Error: Couldn't find file at https://storage.googleapis.com/totto/totto_data.zip
`datasets version: 1.11.0`
# How to reproduce:
```py
from datasets import load_dataset
dataset = load_dataset('totto')
```
Hola @mrm8488, thanks for reporting.
Apparently, the data source host changed their URL one week ago: https://github.com/google-research-datasets/ToTTo/commit/cebeb430ec2a97747e704d16a9354f7d9073ff8f
I'm fixing it. | [
-0.2944107056,
0.390093267,
-0.1317225099,
0.0641972274,
0.4353682995,
0.1393283457,
0.1679635495,
0.5879852176,
-0.026145719,
0.2343416512,
-0.1947770715,
-0.0473089442,
0.0594172291,
0.3187089562,
0.0643601045,
-0.3084105849,
0.0652797222,
-0.0130059831,
-0.139552027,
0.0308539718,
-0.0759796947,
0.2782617211,
0.0100260451,
0.0654644668,
0.0181090496,
0.0936707854,
-0.0290922523,
-0.0979446769,
-0.2686380744,
-0.4347369075,
0.415338546,
0.0613755733,
0.1697377115,
0.380885452,
-0.0001073767,
0.1472329795,
0.3291008472,
0.0086168945,
-0.2500195205,
-0.3531954288,
-0.3288862109,
-0.1141763851,
-0.19650352,
-0.1480809301,
-0.0830530003,
0.2127363384,
0.2038825154,
-0.2607125044,
0.0417160764,
0.5573633313,
0.271827817,
0.0907748416,
0.3079367578,
-0.3647713959,
0.2657265961,
0.1475395709,
-0.0365159437,
0.0705635175,
0.0785898417,
0.0108669624,
0.3562816978,
0.0460000597,
-0.1339976639,
0.0743312091,
-0.1553670913,
-0.0840226263,
-0.0924822986,
-0.3424231112,
0.2141403258,
0.3073777258,
0.5096560121,
-0.2044652998,
-0.3611647189,
0.2267782986,
-0.0598623976,
-0.2795482278,
0.2698040307,
0.1802220047,
0.0900913179,
0.1698183268,
0.1732567996,
-0.485584259,
-0.1890133917,
0.052865155,
-0.4141792059,
0.1076044589,
-0.1177638322,
0.0048586912,
-0.1059216112,
-0.1203937158,
0.3016455173,
-0.0547920689,
-0.0375607908,
0.2590126395,
-0.2745460272,
-0.184147045,
0.1035567001,
0.0311481673,
0.1920057535,
0.0490682349,
0.1362318099,
-0.1017651185,
-0.5062016845,
-0.0666139126,
0.2418689877,
-0.1095381156,
-0.0002671666,
0.3804116547,
0.294926852,
0.2416359782,
0.1484331936,
0.0473142378,
-0.1586335748,
-0.3586916029,
0.0269328356,
-0.1131045222,
0.4928355813,
-0.208542183,
-0.3899926245,
0.1616976112,
-0.0900817961,
-0.121474728,
-0.0176121183,
0.1517947316,
-0.0244204793,
0.0753579885,
0.0918696374,
0.1404550374,
-0.0088711791,
-0.1377051622,
-0.2660999298,
0.2041445374,
-0.0125199705,
0.0713025406,
0.2309999913,
-0.3448671699,
0.0952996239,
-0.0258917902,
-0.4624833763,
0.0828344077,
-0.1361530721,
-0.075016208,
-0.2458769381,
0.3632286489,
0.2265908718,
0.1045651957,
0.001382072,
0.1134399176,
-0.2949782908,
0.2792561054,
-0.3678756952,
-0.0678892583,
-0.1227770522,
0.2941952944,
-0.3227277696,
-0.2466396689,
-0.5071800351,
-0.0339652337,
-0.0525039136,
-0.3056935668,
-0.1234594285,
-0.1745041013,
-0.1805346906,
-0.2515176833,
0.1124921367,
0.6013516188,
-0.206391111,
0.0208855793,
-0.4196625054,
-0.4201264977,
0.1899638176,
0.2693202496,
-0.0341405012,
0.4477232993,
-0.3025844395,
0.0885181427,
0.4392076433,
-0.1254837066,
-0.7618821859,
-0.0033204183,
-0.2596688271,
-0.1898875237,
0.1790017486,
0.079031527,
0.2497512549,
-0.1000056267,
0.2460573614,
0.1370747536,
0.0129175149,
-0.0459472314,
-0.2387000918,
-0.0105645545,
-0.0045890901,
0.1839415729,
0.1048776805,
0.2050979435,
0.1501675546,
-0.0725681037,
0.2357557863,
0.1607334018,
0.0994153991,
0.340891391,
0.3313898742,
-0.02651361,
-0.0199442413,
-0.1835750341,
-0.1992596984,
0.1232287288,
-0.216277957,
0.1084152609,
-0.208680436,
-0.130464837,
-0.4467416704,
0.0594622493,
-0.0653844327,
-0.0930427164,
0.1499165893,
-0.0002756752,
0.3107364774,
0.3321073949,
-0.0203562081,
0.3206821382,
0.2677032053,
0.103011854,
-0.1375437528,
0.566591084,
-0.1339780688,
0.0568046905,
0.4536597729,
-0.2412830293,
0.2364035398,
-0.0816812441,
-0.0623006932,
0.1545939147,
0.0604690462,
0.342227459,
0.4771336317,
0.2396415919,
0.1721657217,
-0.4354350567,
0.2116642594,
0.343268007,
0.0783024579,
0.1411445439,
-0.1909073442,
0.0213616565,
0.1539849937,
0.0350166894,
-0.0176073015,
0.2682006359,
0.5447122455,
0.0763238072,
0.0633018538,
-0.0642060637,
0.2679162323,
0.5545850396,
0.2224785388,
-0.0677624345,
-0.2419172823,
0.1457107514,
0.538705945,
-0.0372180864,
0.052785825,
0.2355949879,
-0.1476681232,
-0.0631906465,
-0.195309639,
0.2097869962,
0.1718096435,
0.0596295483,
0.1565223336,
0.0106347501,
-0.0777703077,
-0.2667883635,
0.0551331863,
0.0725212693,
0.1452944726,
0.1418425292,
0.1219761074,
0.2061337233,
-0.0820090324,
-0.3087291718,
0.0309937,
0.3056664765,
-0.1311018467,
-0.0795392916,
-0.2592680454,
0.0049412474,
-0.273278296,
-0.3159630895,
-0.2113308609,
-0.3952906728,
0.0605421178,
0.2657613754,
0.0656000823,
-0.0102986805,
-0.0560375005,
0.0340001732,
0.2436151505,
-0.3098424077,
-0.1341091096,
-0.1500491202,
-0.104189463,
0.1706147641,
0.237759769,
-0.3077161014,
0.3982346356,
-0.6368309855,
0.1199378073,
-0.5480049849,
-0.2346218228,
-0.0431171358,
-0.189907074,
0.0942283943,
0.1756144613,
0.4022012949,
0.3427299261,
0.2505167723,
0.1937541068,
-0.0247935727,
-0.0510065258,
0.089109838,
-0.1387198418,
-0.0441241786,
0.1827339083,
-0.4613676071,
-0.3021486104,
-0.2280495316,
0.0444357768,
0.0629075393,
0.236630708,
-0.285843879,
0.1709889472,
0.065994814,
0.1328108758,
-0.3080634177,
-0.122296378,
-0.1796015203,
0.4985628426,
-0.2371802628,
-0.2333060652,
0.1059009284,
0.1302614808,
0.4757524133,
0.1674676538,
-0.4497695863,
0.1792438775,
-0.3459708691,
0.1534797996,
-0.046846658,
0.0758879632,
0.3201242089,
0.1453729421,
-0.1137197465,
-0.0569934882,
-0.161003679,
-0.0500384197,
-0.3855094016,
0.2330113649,
-0.0367579721,
0.2503883541,
-0.1210072786,
0.398198545,
0.2551103234,
0.0745473504,
0.3040673137,
-0.1943264455,
0.1306037903,
-0.1279257089,
-0.188946858,
-0.0984255672,
0.1577035189,
-0.1163240522,
-0.1967870295,
-0.0184635315,
0.0741215795,
-0.1694127619,
-0.1042786539,
-0.2042791247,
-0.283624351,
-0.1303623915,
0.0177818481,
0.4172817767,
0.1859099418,
0.015683949,
-0.1674309075,
-0.0935420245,
0.2443630546,
0.1396631747,
-0.0014964826,
-0.0180456638,
-0.1251369417,
-0.1843105555,
-0.6704333425,
0.3441168368,
-0.117428422,
0.2353996933,
-0.0927242041,
0.1852505058,
0.1104811728,
-0.0463376716,
0.5471505523,
0.0625370517,
0.3733005524,
0.3563946784,
0.2766822577,
-0.1460458636,
-0.0525099412,
-0.1304519773,
0.296584785,
-0.0263619162,
0.3771852553,
-0.2650290728,
-0.0554964021,
0.2222447097,
0.1888717711,
-0.1031561717,
0.1805047244,
-0.0639475733,
-0.4556204677,
-0.2093113065,
-0.1772018671,
-0.0870986059,
0.2738858461,
-0.1530112028,
-0.0872612968,
0.0672674552,
-0.1473698318,
-0.0175551325,
-0.1686566174,
0.3812932372,
-0.1637210548,
0.1771630198,
-0.0096636787,
-0.2981503606,
0.5925561786,
0.9116900563,
-0.0094229206,
-0.4505528808,
-0.0699972957,
0.1041778773,
-0.1924928427,
0.037054684,
-0.1077148318,
-0.1556169242,
-0.1347665191,
0.1214744449,
-0.1697996855,
0.2179346979,
0.266815573,
0.0785120204,
-0.4189469218,
-0.3319606185,
0.4077735543,
0.1675907671,
-0.0422660857,
0.4756700993,
0.1231781319,
0.0052155927,
-0.1512750089,
-0.1465873718,
0.7076452971,
-0.1708521843,
0.1218792647,
0.3979225457,
-0.1670889556,
0.2951294184,
0.0539897382,
0.0549510904,
-0.3560285568,
0.2241548151,
-0.0507987514,
-0.0956093892,
0.0422882065,
0.0331599489,
-0.2261523902,
0.3760740161,
-0.1912705898,
0.0057617491,
0.2342994809,
0.2299365997,
-0.2325205505,
0.1433076262,
-0.2494058609,
0.232579127,
-0.1700908542,
0.5963361263,
0.0126051903,
-0.1578870565,
-0.2352529019,
-0.0887922496,
-0.4586822689,
0.2226311862,
-0.353146404,
0.0472172275,
-0.1291953027,
-0.2200128883,
0.0645604357,
0.1586479247,
0.3044909239,
0.2362559289,
-0.5237364173,
0.2670378685,
-0.3025308549,
-0.3513710499,
0.1728510261,
0.211798504,
0.2136156857,
-0.0355904512,
-0.2754927874,
0.1930136234,
0.01657876,
-0.1336363256,
-0.1597442329,
-0.3023326099,
0.0960846394,
-0.2871344686,
0.0308850333,
-0.1784551293,
-0.0639167279,
-0.2592558265,
0.2108781785,
0.2444292009,
0.1790869683,
-0.0770319253,
-0.2008532733,
-0.2742710412,
-0.1253174543,
0.4576686919,
-0.0899076909,
0.0362663046,
0.3003348112,
0.1418550164,
-0.0421104357,
-0.2370261848,
-0.0758945495,
0.0870876834,
-0.0705423355,
0.2010703683,
-0.2461974472,
0.4602615237,
-0.1983536631,
0.0310584381,
0.0072816145,
-0.0602627099,
-0.0174485296,
-0.4184096456,
-0.0034989119,
0.1399505436,
0.068999216,
0.008093562,
0.0801749229,
0.337944746,
0.0753723159,
-0.2415237874,
-0.3141223192,
0.1533352137,
0.0100925043,
-0.260276407,
0.3766643107,
0.1265029758,
0.2459720224,
-0.1016766876,
0.1848554611,
-0.2197218388,
-0.2210969776,
-0.2645950317,
0.000029996,
0.0581651926,
-0.0433958992,
-0.0884145647,
0.1235886365,
-0.3815774322,
-0.2894199491,
0.2447362393,
0.084642984,
0.42679739,
-0.0242629312,
-0.0626615733,
0.1742569506,
0.0256443862,
-0.071573548,
0.0522937328,
-0.0506928079,
0.0010749288,
-0.0242587421,
0.3078613281,
0.0098360106,
-0.1488313824,
-0.3080672324,
-0.0124680512,
0.0695768446,
-0.0835746527,
0.4794932306,
-0.2381897569,
0.0586936399,
0.3324656487,
0.131536901,
0.30967471,
-0.5152159333,
0.1130949631,
0.0408591889,
0.28669855,
-0.3299859166,
-0.1299771219,
-0.238835752,
0.0133062154,
-0.1226401627,
-0.0237425193,
-0.0654750019,
0.1589624286,
0.2537428439,
0.1377555728,
0.3771551251,
-0.1948014647,
0.2289053649,
0.3093296289,
0.1026867479,
0.1862534136,
0.2217634171,
0.0799652934,
-0.0969685316,
0.4350671172,
-0.2293917835,
0.1500755697,
-0.0677119195,
0.0790823475,
0.1858036518,
-0.2016684711,
-0.3423801661,
0.2099465728,
-0.1070172787,
-0.0416854732,
0.0382249504,
0.2646929622,
-0.3808474243,
0.2599396706,
-0.2471585274,
0.2180427611,
0.039691858,
-0.1070377827,
-0.071021311,
-0.2772131562,
-0.1615737379,
0.1111861616,
0.0544029996,
-0.0574874468,
-0.1172459424,
-0.0004242547,
-0.4112989902,
-0.417286694,
0.0453435741,
0.1922141612,
0.1519669592,
-0.1251609772,
0.4158019423,
-0.0666865706,
-0.2817395627,
0.1539523154,
0.4888011515,
0.4909828901,
0.1652413011,
0.2514766753,
-0.1447684467,
-0.257127434,
-0.2132362574,
0.070249781,
0.1148375124,
-0.0334703811,
0.0071210321,
0.2830831409,
0.2091296315,
-0.1540864706,
0.1244483739,
0.0029568467,
0.341948539,
0.0563801825,
0.3701933324,
-0.3759681582,
-0.0931664407,
-0.2818807364,
-0.0891281813,
-0.3936679661,
-0.1934792697,
0.124965474,
0.0378296524,
0.0091359913,
-0.2682195902,
0.1284018308,
0.0321749635,
0.1845883876,
0.2696240246,
0.2058681399,
-0.2469169647,
-0.3324055076,
-0.504206121,
0.1489997506,
-0.1049717516,
-0.2146740705,
-0.1411427259,
0.0215014741,
-0.2108839899,
0.0625291169,
0.2979360223,
-0.0173044614,
-0.1892401278,
-0.1613340974,
-0.1859366596,
-0.0138216279,
-0.175953567,
0.0314950719,
0.0316191763,
-0.3335473537,
0.2791326642,
-0.348980844,
0.0721449852,
-0.202991724,
0.0582775772,
0.0845618173,
-0.0209053066,
0.2773119211,
0.1782317907,
0.1633213758,
-0.0716613606,
-0.1242836118,
-0.4604788721,
-0.075221464,
-0.1951588392,
0.0604052395,
-0.1034030765,
0.0961734205,
-0.1812674999,
-0.4262297153,
-0.1299845427,
0.059174221,
-0.1510560513,
0.067885533,
-0.1810762733,
-0.0299207456,
-0.0501212105,
0.1820138544,
0.1748442352,
0.0471053831,
-0.0015659016,
0.0969650671,
-0.2998533845,
-0.2840428948,
0.1638270915,
0.0188100077,
-0.0074548796,
-0.0921064466,
0.048402749,
0.2315627337,
0.0643885508,
-0.1891824901,
0.2362125218,
0.4156238735,
0.0095643084,
-0.1696299016,
0.1937179863,
-0.1111151949,
0.1457275897,
0.1789951026,
0.4593871236,
-0.0406306572,
-0.1174679548,
0.022176221,
-0.0482679866
] |
https://github.com/huggingface/datasets/issues/2842 | always requiring the username in the dataset name when there is one | From what I can understand, you want the saved arrow file directory to have username as well instead of just dataset name if it was downloaded with the user prefix? | Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you! | 30 | always requiring the username in the dataset name when there is one
Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you!
From what I can understand, you want the saved arrow file directory to have username as well instead of just dataset name if it was downloaded with the user prefix? | [
-0.1190381572,
0.1679285765,
-0.0471790694,
0.0831830651,
0.0581345558,
-0.1882435977,
0.2695404887,
0.0901201665,
0.0316708088,
0.3004505336,
0.1571789086,
-0.0406884067,
-0.0339305624,
0.0137735754,
-0.221127376,
0.0345355794,
-0.0375724807,
0.460770756,
-0.1611819565,
-0.0188343823,
-0.2140431106,
0.0586198419,
0.0266010761,
0.1466937214,
0.0929170698,
0.0588433146,
0.3130098581,
0.2868219316,
-0.3467880487,
-0.4643650651,
0.3015706837,
0.2356018275,
0.0029149354,
0.2852759659,
-0.0001282645,
-0.0333670378,
0.2038315982,
-0.0626529679,
-0.4011751115,
-0.4367164969,
-0.5333259106,
-0.265904665,
0.3054178357,
-0.3457645178,
0.0780372918,
-0.2222450227,
0.071951516,
-0.7639083862,
0.5935953259,
0.173073709,
0.0422015227,
0.2400030941,
-0.0584292375,
0.0676860362,
0.0910246,
0.1828545183,
-0.1983409524,
0.0576104186,
0.2272550762,
0.153388992,
0.2952233553,
0.2544379234,
-0.1423670799,
0.1849684119,
0.4132422805,
-0.2334420532,
0.1443345249,
-0.1818229854,
-0.0621789098,
0.4150880277,
1.1197655201,
0.1163950264,
-0.2934359312,
-0.1209266782,
-0.1289777607,
0.0856914669,
0.42943573,
-0.0286808275,
-0.218979165,
0.0680713207,
0.0494645722,
-0.230212152,
-0.2342117131,
0.0908736885,
-0.2012759596,
0.4058721662,
-0.0297538936,
0.247169435,
0.0076996884,
-0.154700309,
0.133583501,
0.0433810838,
-0.0445635132,
0.0337285213,
-0.3212509751,
-0.1692344844,
0.0908350199,
-0.4048356116,
-0.0476179235,
0.5174334645,
0.4020614028,
0.0327299833,
-0.3441610336,
-0.0132746976,
0.1745272577,
0.1908968538,
0.6876795292,
-0.0796758607,
0.4477429092,
-0.213245213,
0.1390419155,
-0.1412645876,
-0.215257585,
-0.2961269021,
0.1313993037,
0.0904850662,
0.6935943961,
-0.2948881388,
-0.1523354948,
0.0342136398,
-0.1434054077,
-0.2593044043,
0.0486350283,
0.0749923587,
-0.0735887587,
0.1086219698,
0.1906047165,
-0.0469760224,
0.2274110913,
0.0317912735,
0.0382742584,
-0.4006380141,
-0.1337123811,
-0.0184564628,
0.2508590221,
-0.3766244948,
0.4235999882,
-0.0698966309,
-0.0486348085,
-0.0030261576,
0.2811372578,
0.0505678877,
0.1693538278,
0.1912309229,
-0.0317290425,
0.1745622456,
0.0232968852,
-0.2015248686,
-0.2798309922,
0.4101695418,
-0.3928649426,
-0.2087897658,
-0.4585906267,
-0.0268325098,
-0.2381674796,
0.0136592779,
-0.1689313948,
-0.3450931907,
-0.0618424341,
-0.0526142605,
0.2095699012,
0.2401573807,
-0.0615878962,
-0.1526176929,
-0.0715630427,
0.3001872599,
-0.242345646,
-0.1067418829,
-0.2043188065,
-0.0189728905,
-0.1588863581,
0.1915171295,
-0.4447415769,
0.0448994786,
-0.2232248932,
0.1948384494,
0.5952609777,
-0.4956400692,
-0.0760811791,
0.1809933484,
-0.1531475335,
0.0020544082,
0.5405678153,
-0.1667468995,
-0.178337723,
-0.2737281024,
-0.5374603868,
0.2701225281,
0.2313292176,
-0.0610756502,
0.077030167,
-0.1622284055,
0.0180177633,
-0.2001356781,
-0.2374702543,
0.0979820341,
0.1585734934,
-0.1249816567,
0.311091423,
-0.2299075127,
-0.0763423741,
0.0260679349,
0.2804857194,
0.1328601837,
-0.0561478697,
0.1408210099,
-0.3887728155,
0.2096930295,
0.0229795873,
-0.0062834183,
-0.1900234818,
-0.3237220943,
-0.2919831276,
-0.0033372492,
-0.1393824816,
0.4665455818,
-0.1532781869,
0.2935824394,
-0.224079147,
-0.1394451857,
-0.1043929681,
0.3928509653,
-0.061280705,
0.1351872087,
-0.2509829402,
-0.016980648,
0.1369340718,
0.231165871,
-0.0492911786,
-0.1680649817,
0.372631669,
-0.0220884774,
-0.1133121252,
0.5330517888,
-0.028231822,
0.0319855772,
-0.1048783362,
0.1954684854,
0.1114101335,
-0.2514074445,
0.1943352818,
0.1735418439,
0.1979679912,
-0.1101801619,
0.0263105612,
0.1806217283,
-0.0178217422,
0.0831887498,
0.0754429102,
-0.156608969,
-0.0618394688,
-0.2291376889,
-0.3702281117,
-0.1156576872,
0.0781686455,
0.0283834971,
0.1068360358,
-0.0578241646,
-0.2347724438,
-0.2743071616,
0.3148425519,
0.0879819691,
0.1735293716,
-0.0414847471,
0.0935688019,
-0.08179003,
0.1874942631,
0.0105516687,
0.4148548245,
0.1526490897,
0.1386744082,
-0.201869905,
0.3261216283,
-0.1958365142,
0.4617407322,
0.0994192362,
-0.1915583313,
0.0323104411,
-0.2889235914,
-0.0004566833,
-0.2048775554,
-0.1207689643,
0.1294810176,
-0.1390760541,
-0.557808578,
-0.1775351465,
-0.1947991103,
-0.1773226559,
-0.0711521506,
-0.3892522156,
-0.1408154666,
-0.0222053863,
-0.0295881927,
0.3878868818,
-0.0663041025,
0.3042515814,
-0.2504910827,
0.2322498262,
-0.2513065338,
-0.4720899761,
-0.2935733199,
0.1879668832,
0.1781594008,
-0.0206829198,
0.1983249933,
-0.0375119373,
0.3403943479,
0.0168812498,
0.3036706448,
-0.446410507,
-0.262495786,
-0.1112394184,
-0.0941312835,
0.0098524522,
0.1129646599,
0.2278970778,
0.1429519951,
-0.3494533896,
-0.0963940322,
-0.1307206154,
-0.1407061219,
0.0009910166,
0.1941832006,
-0.0720808133,
0.0421999395,
-0.0923180729,
-0.0686051026,
-0.1738798618,
0.1846846789,
0.058912009,
0.3326394856,
0.4182108045,
0.0245670453,
0.022959847,
0.0603554957,
0.0939201266,
-0.1221084595,
-0.4152963161,
0.2814905047,
-0.2210958004,
-0.0365174487,
0.1737718433,
0.2325132489,
0.0525957309,
0.0665098429,
-0.2961342335,
-0.042053543,
-0.2180655003,
0.4774214029,
-0.2487523556,
0.2532509267,
0.5675632954,
0.3703920245,
-0.1215847731,
-0.1645443141,
-0.0928732157,
0.1102989838,
0.0533312783,
0.1783054769,
0.1550330222,
-0.0761389583,
-0.3044642508,
0.7028353214,
-0.030735787,
0.3346612155,
0.5488694906,
0.197810024,
0.3732853234,
0.051530987,
-0.3388849199,
-0.3989714086,
0.1529436111,
0.2582508922,
0.1570231318,
0.0615499988,
0.1797024012,
-0.3803018034,
-0.1841918826,
-0.1308829635,
-0.2201768905,
-0.0360447355,
-0.3498953879,
0.0543982945,
0.0439986289,
-0.1236757636,
-0.1354580224,
-0.0775804818,
0.0839836299,
0.4269081354,
0.1565122604,
-0.0896435231,
-0.4259315729,
0.3228062987,
-0.1297940612,
0.3699963689,
-0.0988412201,
0.2729542851,
0.1579924077,
-0.005877398,
0.1153095514,
0.2723064423,
0.3054027557,
-0.2086634934,
0.3312807679,
-0.1204934567,
0.4135697484,
-0.1751643121,
0.0315268785,
0.2564969063,
-0.0998782665,
-0.2643828392,
0.3027746081,
-0.1913679242,
-0.4059071541,
0.1005333811,
-0.2781322896,
-0.0048163161,
-0.0812904388,
-0.2858082056,
-0.2675287127,
-0.0237785727,
-0.1971612275,
0.1056350768,
0.0764516741,
0.260263145,
0.131893605,
-0.5443437696,
-0.1031764746,
0.3608006537,
-0.1166565418,
0.0351511315,
0.1044918895,
0.1588221043,
0.0822713226,
0.1861937642,
0.2327170074,
0.6167235374,
-0.2998129725,
-0.3326898217,
-0.246522218,
-0.0142624862,
0.3358972967,
0.5567635298,
-0.3770554066,
0.064220503,
0.0524335206,
0.0801537931,
-0.1524665356,
0.2843642831,
0.0053206533,
0.0515178032,
-0.4108070135,
-0.32680884,
0.5429557562,
0.1056069285,
-0.3005450964,
0.7662761807,
0.3692920804,
-0.4027782381,
0.141338259,
-0.0247141533,
1.223819375,
0.2662170529,
0.0439253189,
0.060751833,
-0.445810765,
0.282181561,
0.0547333062,
-0.1874694526,
-0.1474930346,
-0.3034970462,
-0.3116857409,
-0.1509775072,
0.5685954094,
0.1349816471,
-0.1568017751,
0.0573798418,
-0.1468243003,
0.0361377485,
0.1009626389,
0.7443873286,
-0.1851266325,
0.0469403714,
0.173217997,
-0.0364798941,
-0.0447542481,
0.2468231022,
-0.0116908178,
-0.1113998964,
-0.148734346,
-0.5499304533,
-0.0749668628,
-0.0680463985,
-0.7534855604,
-0.0093347207,
-0.379172951,
-0.3681635261,
0.5626472235,
0.1523157507,
0.0576115772,
0.2965055406,
-0.3175485432,
0.2552101612,
0.0901816785,
0.0149820261,
-0.1803234965,
0.112709038,
0.2606056929,
-0.0502236038,
-0.0617955923,
-0.0783597976,
-0.2837241292,
-0.3321814835,
-0.0255016685,
0.0529480241,
0.3253262341,
-0.5745776892,
-0.005603157,
0.0122613255,
0.0434933156,
-0.0465567447,
-0.0350840613,
0.0479125306,
0.0039652511,
0.1144407988,
-0.2168416828,
-0.3006612659,
0.1790730208,
0.2455641925,
0.0463702157,
0.0019495711,
0.5263773203,
-0.5754950047,
0.0290000662,
-0.1034610793,
0.1901357174,
0.2181659639,
-0.4235000312,
0.1825539768,
0.3277733326,
-0.1825961322,
-0.1071861684,
0.3787516952,
0.260348618,
0.3952933252,
0.162694931,
-0.1714953482,
0.0690462217,
-0.0812490284,
-0.0692831799,
0.3977304995,
-0.2079314888,
-0.2025916129,
0.0163096935,
0.005200265,
-0.1616017222,
0.1388970613,
0.2977431715,
0.1350882947,
0.1676583439,
0.1225021631,
0.2940802574,
-0.2935944498,
-0.0925805122,
-0.1401324719,
-0.2513009608,
-0.0639980733,
-0.3148651719,
0.3228756785,
0.108939901,
-0.3098433614,
0.1659438908,
-0.4422402978,
0.0485296398,
0.0441703983,
-0.0342235565,
0.1821004897,
-0.0535595343,
0.0724418238,
0.3745589852,
0.0742094591,
-0.3295547962,
0.3735237122,
-0.0287459977,
0.1948769391,
-0.1757368147,
0.2849722207,
-0.2727881372,
-0.0840633512,
-0.0693754405,
0.1563985944,
0.2392054051,
0.1116318405,
-0.1627606302,
0.043755468,
-0.361087501,
-0.136868149,
0.2759778202,
0.4564226568,
-0.0846001804,
-0.3422046304,
0.3734617829,
0.0350236706,
-0.157849133,
-0.1395682395,
-0.0506653711,
0.0287964232,
0.0680081919,
0.2245220095,
0.0949351937,
-0.171869576,
0.0033878759,
-0.0594215244,
0.1257725805,
0.2444267571,
0.4302342534,
0.5527552366,
-0.1809057891,
-0.236903891,
0.5231283903,
0.0897442177,
-0.0738714635,
0.0243312698,
-0.3417434692,
0.2599054277,
0.3151953518,
0.0353335142,
-0.2184712291,
-0.1708523035,
0.1869693249,
0.0286617503,
-0.2586019635,
0.2146741301,
0.2728356421,
0.2644335032,
-0.1238503978,
0.0831326321,
-0.068841517,
0.1084793955,
0.1066408604,
-0.1596772969,
-0.2735552788,
-0.1660284698,
-0.1107296422,
-0.2326798886,
-0.144353345,
-0.238226667,
0.0144017059,
0.1292832196,
-0.0178126656,
-0.1071008295,
-0.0757050812,
-0.0576786436,
0.154025957,
-0.3662451804,
0.007055698,
0.1383772343,
-0.0378996357,
0.3139418662,
0.5676709414,
0.2896808088,
0.1228692234,
0.2602412403,
-0.0290090404,
-0.0165429115,
-0.0719605312,
0.0499383882,
0.3027608395,
0.0829569846,
0.0857038647,
0.1471987069,
-0.0053594783,
-0.0027513094,
0.0145404246,
-0.0830347538,
-0.4029015303,
-0.3799490631,
0.3665394187,
-0.0053544389,
-0.3656517267,
0.0106152724,
0.0804201663,
0.1012570113,
0.1627472937,
0.5316872597,
0.1874834001,
-0.0080828816,
-0.1555693746,
-0.0273115095,
-0.0110675339,
0.3597067595,
0.2601288855,
0.0083898176,
-0.3220815659,
-0.1413500905,
-0.6859128475,
0.0416155159,
0.1635601223,
-0.1681409925,
0.2027796358,
-0.1139179021,
0.1069934741,
0.1008730531,
0.1230736375,
0.0877578929,
-0.0730658844,
0.2201382965,
-0.3137087226,
0.1525003314,
0.4512465,
0.1160837933,
0.0508196801,
-0.6453541517,
0.2798846662,
-0.0242340602,
-0.1862503588,
-0.1720717847,
-0.1087187752,
0.4785988331,
0.0000970893,
0.7948838472,
0.0299065132,
0.3624132872,
0.1474066079,
0.1536778212,
0.048075296,
0.0920403823,
-0.4106507301,
0.2657963634,
0.6018593311,
0.1037251204,
-0.3340427279,
0.1935342848,
-0.3498047292,
0.2718962729,
-0.141311422,
0.2120961249,
-0.184378922,
-0.2185986042,
-0.073257193,
-0.0793105587,
-0.0453761667,
0.0925316215,
-0.173141852,
0.1865434349,
-0.622840941,
-0.509437561,
0.6428917646,
-0.0273557007,
-0.184017539,
-0.0626866594,
0.7091811299,
0.1909342557,
-0.0494987816,
-0.7029512525,
0.1149332225,
0.4967620671,
0.0326750726,
0.0374151915,
0.3120480478,
-0.1207025349,
0.260069102,
-0.0263779983,
0.4791586697,
0.0988166034,
-0.2374485433,
-0.1279355288,
-0.3826909959
] |
https://github.com/huggingface/datasets/issues/2842 | always requiring the username in the dataset name when there is one | I don't think the user cares of how this is done, but the 2nd command should fail, IMHO, as its dataset name is invalid:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Moreover, if someone were to create `openwebtext-10k` w/o the prefix, they will now get the wrong dataset, if they previously downloaded `stas/openwebtext-10k`.
And if there are 2 users with the same dataset name `foo/ds` and `bar/ds` - currently this won't work to get the correct dataset.
So really there 3 unrelated issues hiding in the current behavior. | Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you! | 115 | always requiring the username in the dataset name when there is one
Me and now another person have been bitten by the `datasets`'s non-strictness on requiring a dataset creator's username when it's due.
So both of us started with `stas/openwebtext-10k`, somewhere along the lines lost `stas/` and continued using `openwebtext-10k` and it all was good until we published the software and things broke, since there is no `openwebtext-10k`
So this feature request is asking to tighten the checking and not allow dataset loading if it was downloaded with the user prefix, but then attempted to be used w/o it.
The same in code:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Please let me know if I explained myself clearly.
Thank you!
I don't think the user cares of how this is done, but the 2nd command should fail, IMHO, as its dataset name is invalid:
```
# first run
python -c "from datasets import load_dataset; load_dataset('stas/openwebtext-10k')"
# now run immediately
python -c "from datasets import load_dataset; load_dataset('openwebtext-10k')"
# the second command should fail, but it doesn't fail now.
```
Moreover, if someone were to create `openwebtext-10k` w/o the prefix, they will now get the wrong dataset, if they previously downloaded `stas/openwebtext-10k`.
And if there are 2 users with the same dataset name `foo/ds` and `bar/ds` - currently this won't work to get the correct dataset.
So really there 3 unrelated issues hiding in the current behavior. | [
-0.011216104,
0.1447479725,
-0.0393612161,
0.0958190411,
0.0011402462,
-0.2181400061,
0.4295826256,
0.1111669689,
0.1069052815,
0.3369618058,
0.1158715859,
-0.0281225853,
0.0120587014,
0.0387604982,
-0.1626234353,
0.1540509462,
-0.0621637926,
0.3452988863,
-0.1390583962,
0.0082568973,
-0.1663805544,
-0.0051507149,
0.0509565473,
0.0512073934,
0.158159703,
0.0974032655,
0.3119135797,
0.1957426667,
-0.2975042164,
-0.4824241698,
0.3003056049,
0.3615881801,
-0.0639262199,
0.4107333124,
-0.0001179238,
-0.0590645596,
0.2076957226,
0.0588894933,
-0.5383245945,
-0.4455488026,
-0.4917052388,
-0.248286739,
0.2102013975,
-0.3056303263,
0.0239957795,
-0.0770891085,
0.0180539284,
-0.7141694427,
0.4935946763,
0.1425914615,
0.1235402077,
0.4247735739,
-0.0561008789,
-0.0546836406,
0.097787872,
0.0445510261,
-0.1430552304,
0.0673178136,
0.2824341059,
0.1683509201,
0.3565246165,
0.20822604,
-0.2156512737,
0.1110859215,
0.3078672588,
-0.2973114252,
0.1378887892,
-0.1850420386,
-0.0196564905,
0.4707065821,
1.0010162592,
0.1690527797,
-0.4670836329,
-0.1757354438,
-0.1048423499,
0.0698700622,
0.4081426263,
0.1350548416,
-0.1117156595,
0.1679628938,
-0.0835040957,
-0.0350226089,
-0.0327409506,
-0.0183722451,
-0.2701371312,
0.4630751312,
-0.0382801443,
0.2346921414,
-0.1269819438,
-0.1310453117,
0.1787931025,
-0.0570793599,
0.0163658876,
-0.0085562561,
-0.4005134106,
-0.1691487432,
0.151615575,
-0.4226423502,
0.0428753048,
0.3494895697,
0.2651741207,
0.0839747041,
-0.3256964684,
-0.0293966122,
0.2081445009,
0.2185648084,
0.5727404952,
-0.1588095576,
0.4727653563,
-0.2071723789,
0.2513425946,
-0.0986484736,
-0.0985090733,
-0.1068095788,
0.0423014164,
0.0020768456,
0.5621957779,
-0.2326084971,
-0.2164975256,
0.0521589816,
-0.0958088487,
-0.2232664227,
0.0548775867,
0.0210056379,
-0.1488408446,
0.19686611,
0.0845584422,
-0.0511214063,
0.1819669604,
-0.1001205891,
-0.0620181561,
-0.3828079998,
-0.179047063,
0.047236003,
0.2418148816,
-0.4406697452,
0.3566650748,
0.0988025442,
-0.1142159328,
0.0436314344,
0.1698503494,
0.0908756256,
-0.0172396824,
0.1904596686,
-0.0580176115,
0.1688788235,
-0.0506807193,
-0.2279138267,
-0.2390823364,
0.3085811734,
-0.3904119432,
-0.2045662552,
-0.4336534441,
0.109715201,
-0.2935428619,
0.0661322922,
-0.0812162012,
-0.2224241793,
-0.091792196,
-0.0883756205,
0.1027792692,
0.1798978746,
-0.187024489,
-0.1584709585,
-0.0523946323,
0.3964363337,
-0.1756324619,
-0.0502208993,
-0.1365363151,
0.0294642709,
-0.1163140014,
0.1394527256,
-0.4678529203,
0.1224649549,
-0.1508987546,
-0.0489702374,
0.300521493,
-0.5388398767,
-0.099909991,
0.2233626544,
-0.1950824261,
0.2370555848,
0.5151134729,
-0.1638974249,
-0.1690344661,
-0.3403670788,
-0.3859286308,
0.2341129333,
0.1532594711,
0.0108530596,
-0.0428430513,
-0.200546205,
0.1890725344,
-0.0827105418,
-0.1046393216,
0.1461022496,
0.1451874375,
0.0288746171,
0.2422486693,
-0.2445035577,
-0.1366339773,
-0.144713968,
0.2217038423,
0.0762651563,
-0.1103754193,
0.0332953781,
-0.4837909043,
0.3472397029,
0.1079090089,
0.249853611,
-0.00624476,
-0.3379674852,
-0.2230136693,
-0.0397201255,
-0.0805988908,
0.3676061034,
-0.0520954542,
0.250262022,
-0.1500831842,
-0.1581349969,
-0.0297862738,
0.5793230534,
-0.1334755868,
0.1298868358,
-0.36250332,
-0.1167222559,
0.0630654991,
0.3549444079,
-0.0472436734,
-0.092637822,
0.3039371669,
-0.0752967894,
-0.0324135199,
0.4737954438,
0.1176315248,
-0.1633920223,
-0.2493178844,
0.2496862262,
0.2226757109,
-0.0240229145,
0.1172255278,
0.092288509,
0.3392162919,
-0.1424901187,
-0.0014675325,
0.2404726744,
-0.026618652,
0.0524701327,
0.0816143081,
-0.2937866449,
0.0200443491,
-0.2223831117,
-0.3907832503,
-0.1125164106,
0.0381235667,
0.0196340755,
0.0680684298,
0.036110498,
-0.1875891984,
-0.2777248025,
0.2804124057,
0.018125996,
0.0682565719,
-0.0759634227,
0.2254894525,
-0.1054003462,
0.2398350984,
-0.1361483783,
0.3855207562,
0.2089000344,
0.0597969294,
-0.2161647379,
0.2650006413,
-0.2814114094,
0.3381400108,
0.0773396045,
-0.3269683123,
-0.0710421205,
-0.166560486,
0.1119680256,
-0.1857123673,
-0.1120790541,
0.2062523961,
-0.1443522125,
-0.5838579535,
-0.1948494762,
-0.1586295217,
-0.0823746994,
-0.0362055488,
-0.3682664037,
-0.2206243724,
-0.1217518225,
0.0648030043,
0.3796049058,
-0.136900112,
0.1926307827,
-0.2595556974,
0.2505998313,
-0.3872121871,
-0.3063416183,
-0.2005380094,
0.1017691344,
0.025154639,
0.0505025461,
0.2794831097,
-0.0904418826,
0.4055158496,
-0.1425038278,
0.0767796785,
-0.2846240699,
-0.4424413443,
-0.0563286915,
-0.1785662174,
0.1260643154,
0.0438695215,
-0.014209453,
0.253115803,
-0.3800747097,
-0.1869849265,
-0.174590379,
-0.0908755511,
0.046482496,
0.1490810215,
-0.2406550199,
-0.0902428851,
-0.1752281934,
-0.0152534302,
-0.215950489,
0.0440757312,
-0.0034683868,
0.2913244665,
0.5777446628,
-0.1085720062,
-0.0926466137,
0.0440640561,
0.2822087407,
-0.241315037,
-0.4220573306,
0.1361676306,
-0.1282571554,
-0.1011924669,
0.1170817465,
0.2195582688,
0.1298717707,
0.1245224103,
-0.3237330914,
-0.0901657715,
-0.2222662419,
0.495349437,
-0.1317199767,
0.2276004851,
0.4823293984,
0.349517256,
-0.1312914491,
-0.1352274716,
-0.1102834865,
0.0061189234,
-0.0955964029,
0.1160096154,
0.149741292,
-0.1784743965,
-0.2178834081,
0.5322825313,
-0.0081041381,
0.1795234382,
0.4474459291,
0.2515373528,
0.4841236174,
-0.0553931519,
-0.3686906695,
-0.2375952154,
0.1669607759,
0.300706923,
0.3614525199,
-0.0288799684,
0.1765936017,
-0.4512161016,
-0.042039793,
-0.1621521711,
-0.2278550565,
-0.1509102136,
-0.283716619,
0.0334211066,
0.1741855443,
0.0232750177,
-0.157423079,
-0.1108555794,
-0.0661253035,
0.3186628222,
0.1897310019,
-0.1305613667,
-0.5399688482,
0.3867036104,
-0.1150231957,
0.3552758098,
-0.0691338107,
0.4952966571,
0.1704871804,
0.0651913285,
0.0256934278,
0.2471553981,
0.3881777525,
-0.2131277025,
0.2539448142,
-0.1053878218,
0.2757458985,
-0.2027956843,
-0.0218420401,
0.1168001741,
-0.1649674624,
-0.1291737407,
0.265054971,
-0.4018344879,
-0.3482815027,
0.169634968,
-0.2113065422,
0.032765463,
-0.2741827667,
-0.2963882685,
-0.3259497285,
-0.0105900019,
-0.2670193315,
0.0302367061,
0.178067416,
0.1067329049,
0.0705291033,
-0.4568783641,
0.015222773,
0.4961725175,
0.0117478892,
-0.1752826869,
0.2310425639,
0.3731124103,
0.0772027671,
0.2146688402,
0.2025267482,
0.6153805256,
-0.3113232255,
-0.3651430309,
-0.2468260825,
0.1075052172,
0.2036772668,
0.6252366304,
-0.1257189512,
0.0555851273,
0.0182660148,
0.017413443,
-0.1480576694,
0.2311883122,
0.069518961,
0.0075259842,
-0.5689127445,
-0.5124384165,
0.4097721577,
0.1962922215,
-0.3164054155,
0.5638620853,
0.2210734189,
-0.3777573705,
0.236374408,
-0.068572998,
1.1841132641,
0.1511301398,
-0.0222878568,
0.1086929739,
-0.2743471861,
0.4086298943,
-0.0190222561,
-0.153532207,
-0.1012922078,
-0.3914803565,
-0.2432572246,
-0.0974704623,
0.4923292398,
0.1395296752,
-0.080941692,
0.1936915219,
-0.1467931122,
0.3107953668,
0.1649028659,
0.8204009533,
-0.196840778,
-0.0432452112,
0.1305502057,
0.0713708401,
-0.0698815733,
0.0980886221,
-0.0604220591,
-0.0893918723,
0.0003166273,
-0.5520798564,
-0.0432141796,
-0.0595426708,
-0.5215198398,
-0.0043299031,
-0.3476558924,
-0.1348288953,
0.6052548289,
-0.031483449,
0.2230160832,
0.4870776832,
-0.3037200272,
0.1740721166,
0.0260370597,
0.1071300581,
-0.101056613,
0.0885669664,
0.287197262,
0.0180480704,
-0.1029230282,
-0.0717549473,
-0.2084176093,
-0.0926946253,
-0.1091302857,
0.0516609922,
0.296045512,
-0.611205101,
0.1321747303,
0.1655405611,
0.1464851797,
-0.1314796358,
0.0616510436,
-0.0469371527,
-0.1123208776,
0.208991468,
-0.2543320954,
-0.3418781161,
-0.03531266,
0.3156792223,
0.118312262,
-0.0468297377,
0.3247855604,
-0.4340350032,
-0.0146592408,
-0.1239700317,
0.0443881899,
0.0820212513,
-0.3374631405,
0.1304947734,
0.3694280982,
-0.1517464519,
-0.111141786,
0.4006412029,
0.2646325827,
0.2343734354,
0.2556477189,
-0.0740641505,
0.1905225813,
-0.0857847556,
-0.0271287914,
0.3668234944,
-0.0700076967,
-0.0851097926,
-0.2316472232,
0.130641222,
-0.2717593312,
-0.0667754263,
0.2494490296,
0.1456219852,
0.1512948275,
0.0332742408,
0.2019613981,
-0.304481566,
0.0085814595,
-0.1379690617,
-0.2515733838,
-0.1664133668,
-0.2767712474,
0.2686150372,
0.135859549,
-0.2527413964,
0.1329987347,
-0.3781417608,
-0.0350328349,
-0.0503023639,
0.2388751358,
0.3519417048,
-0.0465126969,
0.0376936644,
0.3187007904,
0.2507344782,
-0.2451187819,
0.4744580686,
-0.0569196604,
0.1913256943,
-0.1051187441,
0.3228106201,
-0.210377112,
-0.0249676332,
-0.0326476619,
0.2123128921,
0.2147750258,
0.110178411,
-0.1119846702,
-0.0051653292,
-0.2259212136,
0.0477609374,
0.2360940576,
0.4404348135,
-0.0166112222,
-0.3979750276,
0.3906177282,
0.1331166029,
-0.2027978003,
-0.1477349699,
-0.1319352388,
0.0933498442,
0.1392953992,
0.3862110972,
0.286252737,
-0.1766947061,
-0.0275045224,
-0.1304130405,
0.3384790421,
0.2866658568,
0.4526550174,
0.5592716932,
-0.1542936563,
-0.185474053,
0.5126243234,
0.0068704449,
-0.1419380903,
0.0054718456,
-0.2569516301,
0.3793469369,
0.2748571634,
0.1208213866,
-0.1378645599,
-0.1511698663,
0.3385252655,
0.1294661611,
-0.2375847697,
0.1839796901,
0.1595329791,
0.0375085622,
-0.2583957911,
0.12178386,
-0.1916838884,
0.0509819761,
0.0532844774,
-0.0539395921,
-0.3588397503,
-0.1637408286,
-0.1485714763,
-0.2200828344,
-0.1351295263,
-0.3176752925,
0.0408208892,
0.0658946633,
-0.1486783922,
-0.2505572736,
-0.1769742966,
-0.005816157,
0.1997226477,
-0.3873653412,
0.0502131209,
0.1709201634,
-0.0937478617,
0.2696219087,
0.6034385562,
0.3446469903,
0.2489084452,
0.2829259038,
-0.0589628369,
-0.0136468224,
0.0073232278,
-0.0637469888,
0.4808583558,
-0.0753982365,
0.1981627643,
0.2164336145,
0.0723052546,
-0.0627668425,
-0.0630356744,
-0.0711400062,
-0.4052001536,
-0.568539381,
0.5356147885,
0.0218324848,
-0.2458160222,
0.0212235861,
0.1753308177,
0.0452516377,
0.2339672148,
0.5319802165,
0.2475272119,
0.0989460796,
-0.2202380896,
0.0302971937,
0.0421722978,
0.3206386566,
0.2086670846,
-0.0390395932,
-0.3553537726,
0.0335700363,
-0.6624808908,
0.1259511113,
0.0534822084,
-0.0521553978,
0.1798838526,
-0.2214944959,
0.1530088931,
0.155929178,
-0.1151132584,
-0.0013088919,
-0.0822171271,
0.1474505812,
-0.2808148861,
0.1885604858,
0.3135071695,
-0.0348807015,
0.0735732764,
-0.6237814426,
0.2831661105,
-0.0909056067,
-0.108920753,
-0.1977213472,
0.0677644759,
0.5854005814,
-0.1355739534,
0.6277524233,
0.1813013107,
0.4258820415,
0.1772142351,
0.0965600461,
-0.1111031175,
-0.0380103998,
-0.4137010574,
0.2449444085,
0.4392445683,
-0.1091395169,
-0.1369021535,
0.0600058064,
-0.2991527915,
0.3612937331,
-0.0526058078,
0.264893949,
-0.2576390803,
-0.250200808,
-0.1833877265,
-0.0939579308,
-0.0225654654,
0.1579709351,
-0.1462633312,
0.1357736588,
-0.4803957045,
-0.5864161253,
0.5395390391,
-0.1078485325,
-0.1672337949,
-0.2472511232,
0.6490895152,
0.0394793898,
-0.2027118355,
-0.5274104476,
0.1477643102,
0.5112931728,
-0.0624117739,
0.0429565087,
0.38086465,
-0.1212854981,
0.1125439703,
-0.0627648979,
0.1469632387,
0.0151250772,
-0.3714042902,
0.0176376551,
-0.3359435797
] |
https://github.com/huggingface/datasets/issues/2839 | OpenWebText: NonMatchingSplitsSizesError | I just regenerated the verifications metadata and noticed that nothing changed: the data file is fine (the checksum didn't change), and the number of examples is still 8013769. Not sure how you managed to get 7982430 examples.
Can you try to delete your cache ( by default at `~/.cache/huggingface/datasets`) and try again please ?
Also, on which platform are you (linux/macos/windows) ? | ## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
| 62 | OpenWebText: NonMatchingSplitsSizesError
## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
I just regenerated the verifications metadata and noticed that nothing changed: the data file is fine (the checksum didn't change), and the number of examples is still 8013769. Not sure how you managed to get 7982430 examples.
Can you try to delete your cache ( by default at `~/.cache/huggingface/datasets`) and try again please ?
Also, on which platform are you (linux/macos/windows) ? | [
-0.2325658351,
-0.1025961936,
0.059448503,
0.4710066617,
0.0991448388,
0.0983289629,
0.0017988896,
0.5494818687,
-0.0201669969,
0.1316697598,
-0.1176456586,
0.0032898784,
-0.1183156073,
0.0913083777,
-0.0851507857,
0.103611514,
-0.1839790046,
0.14324449,
-0.2236061096,
0.0837039649,
-0.1660719961,
0.2510772049,
-0.2940528691,
-0.1361759901,
-0.2839492857,
-0.027316086,
-0.2651296854,
0.2377939522,
-0.255726397,
-0.4160158634,
0.1758896559,
-0.3987880945,
-0.0372201912,
0.5550353527,
-0.0001198019,
0.0533381775,
0.2946436405,
-0.228097558,
-0.1307502091,
-0.10204041,
-0.4944341183,
-0.3940512836,
-0.1452362537,
-0.1462632418,
0.1927000433,
-0.1283246279,
0.0508889928,
-0.279325068,
0.4593410194,
0.4411792457,
0.155228287,
0.3978157341,
0.241161257,
0.0371607542,
0.3650753498,
-0.2219926417,
-0.1318103671,
-0.0362075232,
0.0326929092,
0.0405231118,
0.0806394443,
0.1172676086,
0.0108483881,
0.2087116987,
-0.0005466957,
-0.0408670418,
0.2286910415,
-0.2362539172,
0.1534996182,
0.4934614897,
0.6223925352,
-0.1369807273,
-0.3544664979,
-0.3586993217,
-0.4166818857,
0.0730496198,
0.2820881903,
0.4564272761,
0.0207832381,
0.2088509351,
-0.3920860291,
0.0627973303,
0.0887394994,
0.101019308,
-0.2197214216,
0.17379646,
-0.0613732263,
0.0936696455,
0.0337460265,
0.1205221862,
0.2228562236,
-0.1298715174,
-0.0552682281,
0.1303765178,
-0.2470705956,
-0.0399978496,
0.0465840772,
-0.1719469428,
0.3725028634,
0.3157575428,
0.3307103515,
-0.2253417075,
-0.2792927921,
-0.026054576,
0.1021308601,
0.4864095747,
-0.0030225851,
0.1811355054,
-0.099426195,
0.1534417123,
0.0841914192,
-0.0383238755,
-0.0627070516,
-0.3573566675,
0.0782194585,
0.0519288965,
0.5506390929,
-0.3137625158,
-0.5638865232,
0.1355628222,
-0.2717956901,
-0.2499686033,
-0.292604059,
-0.0598701686,
-0.3987960517,
0.2101307511,
0.1625957638,
-0.1578371227,
-0.3149762154,
-0.388836205,
-0.274459213,
-0.0227040015,
-0.1876685619,
0.1219244376,
0.0013911575,
-0.1314140111,
0.4226849377,
-0.0792298988,
-0.040535368,
-0.2938418984,
0.1657151878,
0.0118179806,
0.0518363677,
0.167529732,
-0.2069491744,
0.122414127,
0.0686965138,
0.0914775282,
-0.2862044871,
0.3105953932,
-0.2906437814,
-0.4093713164,
-0.138183251,
0.1050516441,
-0.3705904484,
-0.1608754098,
0.3073710799,
-0.0599067546,
0.3331329525,
-0.1210961938,
-0.0874515772,
-0.1715032011,
-0.1489331722,
-0.1385397315,
0.1361482441,
0.4009013474,
-0.281504035,
-0.1870613694,
0.200966388,
-0.1067374572,
0.2657059729,
0.4419419765,
0.038311623,
0.1077953801,
-0.2697065473,
0.1994148046,
0.1035528779,
-0.3222497702,
-0.6370260715,
0.3166930676,
-0.0614392832,
0.1890939176,
0.1131787151,
-0.2998303771,
0.0997244045,
-0.1133561283,
-0.1074844748,
0.1425455958,
-0.1855405718,
0.0653883368,
-0.6042556763,
-0.7404738069,
0.40505445,
-0.0152205192,
0.2199628055,
-0.2009826154,
0.0258021895,
0.2023735791,
0.4867913723,
-0.0068809781,
0.0082400441,
0.183294937,
0.1684479713,
0.0200094096,
-0.0262850281,
-0.303496182,
-0.127076596,
0.2578173876,
-0.1189628392,
-0.0252107456,
0.2395296991,
-0.1284895837,
-0.5201496482,
-0.2797638476,
-0.0274366736,
-0.2890123129,
-0.0011978298,
0.0537337661,
0.3314973712,
0.0704439282,
0.100671038,
0.3630118072,
0.0587040335,
0.1622788757,
-0.3886446655,
0.2116374224,
-0.0419295654,
-0.1590763181,
0.147472024,
-0.041189149,
0.1578395069,
-0.1788159609,
-0.3645523787,
0.6570302248,
0.1383410692,
0.0278088786,
-0.0206336137,
0.1761496067,
0.2389791161,
-0.232609719,
0.1361853778,
0.3155082762,
-0.0367024168,
-0.0358333513,
0.0357472152,
-0.0957837775,
0.1101792902,
-0.0270265527,
-0.0629577637,
0.0031621978,
-0.0677025467,
-0.2016023993,
-0.0996725857,
-0.1194982156,
0.0788497925,
-0.0529222637,
-0.1825647801,
0.0738678798,
0.1595276892,
-0.1473864317,
0.7876147032,
-0.026509244,
-0.0810913593,
0.2676544785,
-0.2830885351,
-0.1285567284,
-0.1837798208,
0.1333073676,
0.5281816125,
0.2116181552,
0.1979827285,
0.2271814942,
0.0595820062,
-0.0967164114,
0.1486260295,
0.2788827717,
0.2119771689,
0.301491946,
0.0253648125,
0.0782746226,
-0.1882286966,
0.1017745286,
0.1162420586,
0.373637706,
-0.4455090165,
-0.15064767,
-0.499329865,
0.0167025998,
-0.2890394628,
0.1519827247,
-0.195370391,
-0.234098807,
-0.0569426753,
0.057824634,
-0.0190757699,
0.2200783491,
-0.1844469309,
0.174413994,
0.1779434085,
0.2221965492,
0.0834517851,
-0.0005309619,
-0.5165874362,
0.0194545239,
0.3351319432,
-0.2498148978,
0.41447559,
-0.5614908338,
-0.0921597183,
-0.2016604841,
-0.2970196307,
-0.0893637761,
0.0089840014,
0.1129093319,
0.2927735746,
0.2110987008,
0.0249918327,
-0.0226392746,
0.1041428149,
-0.3205737174,
-0.2713527381,
-0.0989819616,
0.0973132998,
0.2661295533,
-0.0641357377,
-0.5627795458,
-0.2163702697,
-0.2757206559,
0.3266999424,
0.1139723212,
0.202980116,
0.0925924927,
0.069446817,
0.1050401181,
-0.0523550659,
0.116085045,
-0.2542544305,
-0.5217090249,
0.3188513815,
-0.0026778989,
-0.3333177567,
-0.0070149451,
0.15113765,
-0.0392284468,
0.0255859941,
-0.6288369894,
-0.2420555353,
-0.4020483792,
-0.0416232497,
-0.1522631943,
0.2767260075,
0.4846794307,
-0.0308196433,
-0.0632560402,
-0.1522990614,
-0.3440425992,
-0.023711402,
0.1624838263,
0.621006906,
-0.1053256541,
0.1852698326,
0.4056096673,
0.4629563093,
0.538502574,
0.0481481776,
-0.0136953928,
-0.0321364515,
0.1083644927,
-0.1104784757,
-0.0401162729,
0.2920778692,
-0.199963659,
0.0356372669,
0.2973730564,
0.1355917305,
0.1561639011,
-0.0030649751,
-0.070306778,
-0.4779710174,
-0.20078592,
-0.0245933831,
-0.1111417711,
0.1895924658,
0.1881502867,
0.073237136,
-0.243480891,
-0.1945630759,
0.1598562896,
-0.0046625547,
-0.1435012221,
0.0207649693,
0.0671197623,
0.3567478657,
-0.2626102567,
0.3809087276,
0.1341332346,
0.2630777061,
0.1486928165,
-0.238448441,
0.1142469794,
0.0053937174,
0.5108356476,
-0.0777719244,
-0.0712624341,
0.0950107276,
0.0725387484,
-0.4039196372,
-0.3115305603,
-0.1836718321,
0.0334489644,
0.5596081018,
0.0453808941,
-0.4185117483,
0.0558074862,
0.3097246885,
0.4309921265,
-0.1897708774,
-0.0285507888,
-0.1574656218,
-0.4026028514,
-0.3548036814,
-0.1288219392,
0.0678974539,
0.2978070378,
-0.0918348953,
-0.0646308959,
-0.1403726935,
-0.1978239417,
0.1965388805,
-0.1222217828,
0.2837557495,
-0.0024829134,
0.314786315,
0.2665961087,
0.3522555232,
0.2715785205,
0.5941631794,
0.000001695,
-0.2287429273,
-0.0506264567,
-0.0613599867,
-0.2377571017,
0.3324656487,
0.0715137124,
-0.3414062858,
0.056800399,
0.2474223971,
-0.1786892861,
0.3185912073,
0.4256508052,
-0.0635500997,
-0.4400916696,
-0.3524297476,
0.3958845735,
0.2119293809,
-0.0502378866,
0.5040236115,
-0.049539607,
-0.1787895858,
-0.0557669923,
-0.0423585251,
1.1023482084,
0.1564747095,
-0.1077497005,
0.2527409196,
-0.4704375565,
0.2593769729,
-0.2291088402,
0.1341120005,
-0.2876500785,
-0.5424716473,
0.0213856474,
-0.2812008858,
0.2467848212,
-0.0431675762,
-0.2238028944,
0.1670553088,
-0.010718964,
0.0595708825,
0.1506898403,
0.326489538,
-0.2793127894,
0.1247564554,
0.1668466628,
0.0791606233,
-0.1236404851,
0.4728927612,
-0.0779323578,
-0.1369113475,
-0.1266553253,
-0.1621516794,
-0.6035354733,
0.0548579395,
-0.3796159327,
0.2448880821,
0.0042176992,
0.0506311953,
0.0325432718,
0.0662534684,
0.2591126263,
0.0856589377,
-0.3663954735,
0.2365214676,
-0.0725999698,
0.13240771,
0.2462104261,
0.0113543309,
0.1980232894,
-0.1248902977,
-0.2756637633,
0.0476569459,
-0.1618167162,
-0.1035709381,
0.0045224279,
-0.1750107706,
0.3070129156,
-0.6238242984,
-0.0981967896,
-0.0558683649,
0.1288660169,
-0.2135449499,
0.082868509,
0.1996137798,
-0.1079260483,
0.4750547409,
0.014078835,
-0.4118835926,
-0.1699382961,
0.4765077233,
0.0673938841,
0.0415949821,
0.4440053999,
-0.0966852307,
-0.0302059539,
-0.0609108284,
0.4412083924,
-0.083103165,
-0.4742698967,
0.2274127156,
-0.3301910758,
0.344700098,
0.0210017636,
0.356543988,
0.542054832,
0.4391899705,
-0.0135716721,
-0.2046359032,
0.0159001276,
0.0229219384,
0.0501291901,
0.4237334728,
-0.0923483446,
0.4085063636,
0.0041389987,
-0.0276935492,
-0.2374144197,
0.3453592658,
-0.0479801707,
0.0406340212,
0.1409529746,
-0.034233626,
0.1449659318,
-0.0253792107,
-0.0578117818,
0.2546967268,
-0.1896177232,
-0.129722625,
-0.1877342761,
0.2185008526,
0.1113175973,
-0.1485714912,
0.1090274081,
-0.0480880886,
0.0964984149,
-0.0651800931,
0.020397231,
0.0826220959,
-0.0614789985,
0.2990709245,
0.0464548543,
-0.1582017243,
-0.0322583839,
0.1964225173,
-0.24965927,
0.3323284686,
0.131318599,
0.3523204327,
0.1779561341,
0.003950879,
-0.0866935253,
0.0050660875,
0.0330314934,
0.0843185782,
0.2701557577,
-0.2523281872,
0.0954453349,
0.3207382262,
0.1293785423,
0.3699233532,
-0.1670771539,
-0.1981525868,
0.2500638366,
0.1845029593,
-0.2806070149,
0.0274399258,
0.4826542437,
0.079205364,
-0.0614388064,
0.1219391301,
0.051522702,
-0.0403979346,
-0.1860180795,
0.1256126761,
0.3057820201,
0.1706682146,
0.3275694549,
0.7761442065,
-0.1907458603,
-0.0441235416,
0.0329693779,
-0.2791090012,
0.2220820189,
0.1788908988,
-0.1657693982,
0.3593077064,
-0.1619858295,
0.3304784596,
-0.290073812,
-0.4505561292,
-0.0805424303,
0.1438088119,
-0.0844438225,
0.1313309073,
0.0786820352,
0.4334899485,
-0.2061229646,
-0.0349449813,
-0.4442699254,
0.2482858747,
0.06692186,
0.0064120293,
0.0686032176,
-0.2048148215,
-0.1650119871,
0.0923437104,
-0.0643356591,
-0.0166903995,
0.3275223076,
-0.1424660236,
-0.3697812557,
-0.4538442492,
-0.2162760794,
-0.0822585225,
0.2116423696,
-0.4417620003,
0.1198688447,
0.1042459458,
-0.2983008325,
0.0144469719,
0.6690347195,
0.3910432458,
0.2221408933,
-0.0082953963,
-0.0840204954,
0.1398154795,
0.158698529,
0.0923105031,
0.301276356,
0.0906743556,
-0.1768050343,
0.3088209033,
0.0299499705,
-0.0884335041,
0.0700703859,
-0.3639444113,
-0.2119317055,
-0.4602622092,
0.2309454083,
-0.1386171728,
0.088557519,
-0.0725026727,
0.0463716574,
-0.333887279,
-0.076606676,
0.1268925518,
-0.0344370343,
0.2461349815,
0.0962804705,
0.0243322253,
-0.3029868305,
0.2154331952,
0.4572521746,
-0.2380201966,
-0.1272332966,
-0.2411006093,
-0.5297257304,
0.1988669932,
-0.1453112066,
-0.2223799229,
-0.0128742605,
0.2722306252,
-0.2468565404,
0.0310951732,
0.4103514254,
0.25458619,
-0.1320258379,
0.1670607179,
-0.3741107285,
-0.1049035713,
-0.1244052202,
0.0631966367,
0.1704516411,
-0.2594734728,
0.2376659513,
-0.0988554358,
-0.0403686464,
-0.1549959332,
-0.0353389829,
0.0598154068,
-0.0658443272,
0.4095596373,
0.3740646541,
0.2854382098,
0.0370700881,
-0.1465520859,
-0.2708666325,
-0.1762215495,
-0.1887483448,
0.4648075104,
0.0033470299,
0.2654671371,
-0.1592424661,
0.0305485912,
-0.1501216888,
0.5124750137,
0.1208249852,
-0.0202248208,
-0.2466943562,
-0.2782551646,
-0.0599182323,
-0.0759474486,
0.4266421497,
0.2766796649,
-0.1649908125,
0.1061380729,
-0.0258037448,
-0.4128347635,
0.4644297361,
0.0081613138,
-0.0649360344,
-0.1816582382,
0.2398121655,
0.3171194196,
-0.2281712741,
-0.4576898217,
0.0420844108,
0.6015410423,
-0.0326096825,
-0.1080123335,
0.1667659581,
-0.0720525682,
-0.0610164478,
0.0857728571,
0.1562548876,
-0.0138099669,
-0.3180505037,
0.4304477572,
-0.063308686
] |
https://github.com/huggingface/datasets/issues/2839 | OpenWebText: NonMatchingSplitsSizesError | I'll try without deleting the whole cache (we have large datasets already stored). I was under the impression that `download_mode="force_redownload"` would bypass cache.
Sorry plateform should be linux (Redhat version 8.1) | ## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
| 31 | OpenWebText: NonMatchingSplitsSizesError
## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
I'll try without deleting the whole cache (we have large datasets already stored). I was under the impression that `download_mode="force_redownload"` would bypass cache.
Sorry plateform should be linux (Redhat version 8.1) | [
-0.3607826233,
-0.2398546338,
0.0516972169,
0.4607080221,
-0.0456265658,
0.1327426583,
0.0660520941,
0.6086546183,
0.1439709812,
0.1374786496,
-0.2283656895,
0.1216919571,
-0.0511875749,
0.240879029,
0.0173504539,
0.0554533899,
-0.1288678199,
0.2090863883,
0.0327514932,
0.0964002907,
-0.240732342,
0.1652148813,
-0.3307679892,
-0.0877940878,
-0.0919428915,
0.0468050987,
-0.0785730556,
0.2525184751,
-0.1423966438,
-0.3720368743,
0.3101970553,
-0.320981741,
0.0526628569,
0.4554585814,
-0.0001236256,
0.0584113896,
0.3002471626,
-0.2492422312,
-0.1643612683,
-0.0202189982,
-0.4952325225,
-0.458296597,
-0.118849501,
-0.1141498238,
0.1849629432,
-0.0521582589,
0.0923802629,
-0.2381902188,
0.3523261547,
0.1760245711,
0.1076084971,
0.2688063383,
0.1909793019,
-0.0141792316,
0.3994997144,
-0.2885002792,
-0.2018011063,
-0.0260387547,
0.2025963664,
0.2345232069,
-0.0004498661,
0.205118984,
0.0155434906,
0.3176065087,
0.1230182797,
-0.0852455795,
0.1734520495,
-0.22359626,
0.1765743047,
0.463299185,
0.7116635442,
-0.290866375,
-0.3333331347,
-0.4549496174,
-0.4818340242,
-0.076798059,
0.3402116597,
0.3721657991,
0.0110201053,
0.2835699022,
-0.2383952886,
-0.0144353881,
0.086768508,
0.0248060692,
-0.2652612329,
0.1660383046,
-0.0655872375,
0.0525520891,
-0.0053644469,
0.1384351552,
0.2647072375,
-0.0735874772,
0.0548308305,
0.1759224534,
-0.2408610582,
-0.07403671,
0.0165436808,
-0.2352584749,
0.3727192879,
0.3354321718,
0.3635958433,
-0.195465073,
-0.3061282635,
-0.0127848331,
0.2020259649,
0.4631948471,
-0.1391366422,
0.0402775817,
-0.1740581691,
0.0575834699,
0.1116503626,
-0.1003556326,
-0.0169872716,
-0.3424648643,
0.1643750221,
0.0634855181,
0.6322444677,
-0.3608763218,
-0.5638149977,
0.062039569,
-0.2243332714,
-0.2449311018,
-0.2871406674,
-0.0788731202,
-0.3087581098,
0.3446002603,
0.1083342806,
-0.141049549,
-0.2508388758,
-0.4097031355,
-0.2513112128,
-0.12820144,
-0.1443446279,
0.0415491015,
0.0319380686,
-0.1385463774,
0.2920024693,
0.0044013821,
-0.0483898856,
-0.188526541,
0.1772955656,
-0.0495253913,
0.0395918638,
0.2417315096,
-0.0637856275,
0.2164583802,
0.031172514,
0.1261219531,
-0.3001105487,
0.3434176147,
-0.3207671344,
-0.3199584186,
-0.0984369293,
0.0781469792,
-0.2246568799,
-0.1677708328,
0.1053346619,
-0.0471283421,
0.3671296835,
-0.2251329422,
-0.0991621464,
-0.1212021858,
-0.1245302707,
-0.1096512526,
0.0449684635,
0.5349200964,
-0.4528928995,
-0.180182308,
0.1855753213,
-0.1425028592,
0.3732617497,
0.382227093,
0.0877136588,
0.0240436792,
-0.2359957099,
0.0825526416,
0.0203865245,
-0.4213356972,
-0.802485466,
0.4292291701,
-0.0639696419,
0.1961515844,
0.156833455,
-0.144654125,
0.1170873642,
-0.150854975,
0.0576058589,
0.1717759967,
-0.2016101927,
0.044232659,
-0.6290655732,
-0.8196585774,
0.3851352036,
-0.0254817493,
0.2239647806,
-0.1056239307,
0.0249994881,
0.2732912898,
0.368871063,
0.101323992,
0.066016607,
0.1658233702,
0.0039068572,
0.0954902768,
-0.0445364341,
-0.2933858633,
-0.3191497624,
0.2778996229,
-0.2501972914,
-0.1287552714,
0.3011006713,
-0.1411422789,
-0.5185483098,
-0.2888205945,
-0.0862790644,
-0.0926862359,
-0.0315535888,
0.0389909521,
0.2252076119,
0.0351627097,
0.0298352763,
0.3739866316,
0.1167350039,
0.138464734,
-0.2917840481,
0.1245401129,
-0.0396488123,
-0.0166223571,
0.0037609786,
-0.1315944493,
0.189511925,
-0.1118276343,
-0.3834506869,
0.6283052564,
-0.0011394434,
0.1150419563,
-0.09077584,
-0.0132448822,
0.2655420005,
-0.1831511557,
0.1516950876,
0.3305787742,
-0.038867332,
-0.1138823852,
0.037774086,
-0.1808830202,
0.1214482486,
0.0156272277,
-0.112344563,
0.0120710358,
-0.0592524484,
-0.168339327,
0.0520317703,
-0.1470990926,
0.0410328321,
-0.1323205829,
0.1531792134,
-0.0586932525,
0.0894984379,
-0.0775123537,
0.642776072,
-0.0461895317,
-0.002413284,
0.2773857713,
-0.3135370016,
-0.1165985465,
-0.1492432356,
0.309359014,
0.4315309823,
0.2351768017,
0.1816491187,
0.2148540914,
-0.0480407923,
-0.0663256049,
0.0623967722,
0.278814882,
0.1103494316,
0.2787039876,
0.0314644165,
0.0604015104,
-0.2338596284,
0.1105604172,
0.1959756613,
0.3361184001,
-0.4241135418,
-0.1764781177,
-0.4222448766,
-0.0984087288,
-0.2253968418,
0.1779849529,
-0.1684411168,
-0.2284863293,
-0.086931169,
0.0673670694,
-0.0112153292,
0.1816318035,
-0.2745672762,
0.1598096639,
0.1392815113,
0.0402399227,
0.0125675127,
0.0235125721,
-0.4680192173,
-0.0232421048,
0.3328769505,
-0.3140137792,
0.3491362035,
-0.5354385972,
-0.0107725151,
-0.0256561954,
-0.1533282697,
0.0009076451,
0.0825360864,
-0.0696030632,
0.2342221886,
0.2336275876,
0.0563833416,
0.1101675555,
0.1208644658,
-0.2705494463,
-0.237716347,
-0.107541427,
0.1214815825,
0.3437823355,
-0.023393549,
-0.5561488867,
-0.2882373631,
-0.3905978203,
0.2452228069,
0.1488031745,
0.2224645764,
0.3056893945,
0.0815624297,
0.1264169365,
0.1255260408,
0.0866121426,
-0.2552499175,
-0.3846789002,
0.2754501402,
0.095530659,
-0.2659647763,
-0.0228639618,
0.2200032324,
-0.0600049719,
0.1335961521,
-0.5093491077,
-0.183006838,
-0.4022888541,
-0.2084587216,
-0.1236936525,
0.2260222882,
0.4829978347,
0.014627941,
-0.0300643332,
-0.1376813799,
-0.3300880194,
0.0368257388,
0.1950069964,
0.4865732491,
-0.1092983782,
0.238015905,
0.3572044075,
0.4601337612,
0.4681928754,
0.1195464432,
0.0832174271,
0.0417756811,
0.2068870515,
-0.1063737944,
0.0597093627,
0.1245607585,
-0.235527724,
-0.0282630771,
0.2690126002,
0.1604712158,
-0.0877635926,
-0.0937867314,
-0.1780082285,
-0.2976430655,
-0.1028991193,
-0.0560939163,
-0.0675408393,
0.1703019142,
0.2686715424,
0.1051753014,
-0.3179876208,
-0.2011031508,
0.1288353205,
0.0375515521,
-0.0185767561,
0.0662474483,
0.0950690582,
0.4359328747,
-0.3008748889,
0.4084653854,
0.1136154085,
0.2396367192,
0.1571037024,
-0.227211386,
0.1036049947,
0.0330565087,
0.4885369837,
-0.2571600676,
0.0951222628,
0.0809629783,
0.150860101,
-0.3015557826,
-0.2861627936,
-0.1340233386,
0.0312604569,
0.5175755024,
0.0374498703,
-0.4427629411,
0.0397895873,
0.2095133513,
0.4867491722,
-0.2145176232,
-0.006349992,
-0.1836829782,
-0.350809902,
-0.4405157566,
0.0100523233,
0.1441060305,
0.1535169035,
0.0876210704,
-0.1092212722,
-0.1667595357,
-0.0914116204,
0.1370179802,
-0.1000971347,
0.3531219363,
0.0272449441,
0.2810150981,
0.240776673,
0.3583734035,
0.2556764483,
0.5383526683,
-0.0211656839,
-0.0488371514,
0.0128529519,
-0.0926643461,
-0.2564072609,
0.4061829448,
0.0760537535,
-0.3070345819,
0.1012066975,
0.1428365707,
-0.2415323257,
0.2489227355,
0.234680146,
-0.1833537519,
-0.5043689013,
-0.6911816597,
0.4553485513,
0.171505034,
-0.0941054523,
0.4634662271,
-0.0732955933,
-0.149759233,
0.0628624558,
-0.1080329865,
1.1349263191,
-0.0019088555,
-0.0780182779,
0.0873546749,
-0.5329982042,
0.1726211011,
-0.2816603184,
0.1941206604,
-0.2007124424,
-0.4522465169,
-0.0641664267,
-0.2595252991,
0.0983032584,
0.039051909,
-0.1713235974,
0.2763009965,
0.0749049038,
0.1446796507,
0.1882212162,
0.2370784283,
-0.3019877374,
0.0262207724,
0.1655744463,
0.0374214724,
-0.2098879814,
0.5125639439,
-0.1052573025,
-0.242701292,
-0.1034010202,
-0.1232612208,
-0.5089899302,
0.116729185,
-0.3765404224,
0.2764254808,
-0.2374928594,
-0.0862793475,
0.0357932597,
-0.0525441281,
0.0248793047,
-0.0449729823,
-0.3938284218,
0.1956788152,
0.0594531856,
0.2147147506,
0.294323504,
0.0335742235,
0.2583121955,
0.0008407086,
-0.1066410765,
0.1404139549,
-0.0813291147,
-0.2316502035,
-0.0270811915,
-0.0436841957,
0.3094876409,
-0.5829219222,
-0.2163566351,
-0.1027068347,
0.1244824082,
-0.2333381325,
0.0343788043,
0.0879765153,
-0.0746370852,
0.3408402503,
-0.0635325313,
-0.4717177153,
-0.1994461566,
0.520671308,
0.1819893271,
0.0293349326,
0.3584667742,
-0.1413273215,
-0.0639840961,
0.0470414609,
0.308740288,
-0.2237896621,
-0.7066390514,
0.3328604698,
-0.5006855726,
0.2621084154,
0.052928105,
0.1818526387,
0.4850798249,
0.4176089764,
-0.0780596659,
-0.1445486546,
-0.0488502979,
-0.0138427205,
0.0381973386,
0.3852780461,
0.0485503972,
0.4218768179,
0.1068173498,
-0.1626463532,
-0.2120172381,
0.2745405436,
0.0531278327,
-0.0390797369,
0.0639519393,
0.0605904683,
0.1390801966,
-0.1253378093,
-0.1304653734,
0.2742481828,
-0.2284354866,
-0.0878520235,
-0.1836315244,
0.2317643762,
0.099377498,
-0.113763541,
-0.0607135966,
-0.1676470786,
0.107525751,
-0.103043437,
-0.0204726756,
0.0792440623,
0.0045061372,
0.1212019846,
0.0752917677,
-0.1436761171,
-0.1643706411,
0.2273165286,
-0.127459079,
0.2589286268,
0.0485453792,
0.3721716702,
0.1187280267,
0.0677687377,
-0.2113087326,
-0.051788535,
0.1161625087,
0.1264193803,
0.2635841072,
-0.3530117273,
0.1222916543,
0.4328975081,
0.1321386695,
0.3337179124,
-0.1584498286,
-0.2856968641,
0.0900922269,
0.1263715029,
-0.311929822,
0.0799823701,
0.5263719559,
0.0300192535,
-0.0502245314,
0.1643320918,
0.2634982467,
-0.0278815627,
-0.2550135553,
0.2430295646,
0.5129175782,
0.1604274213,
0.2251699716,
1.0427387953,
0.0106979311,
0.1018009707,
0.1038971543,
0.0040844306,
0.3406725228,
0.4126686156,
0.0849268138,
0.274169296,
-0.0247917715,
0.3909762502,
-0.4134396911,
-0.4724245667,
-0.1134140715,
0.3169430494,
-0.0137258619,
0.2787603736,
0.1678984463,
0.2187363505,
-0.2551130354,
0.0223543122,
-0.3514287472,
0.1848170161,
0.0168441441,
-0.032873027,
0.3247116804,
-0.2265098989,
-0.1403004527,
0.0862736553,
-0.1605795324,
0.1383535266,
0.2371824682,
-0.1859893501,
-0.1939416975,
-0.3010244071,
-0.1874035597,
0.0105774961,
0.1624984145,
-0.4342555404,
0.1783872694,
0.1304652393,
-0.2807530463,
0.0324487463,
0.6316358447,
0.4081059098,
0.3006578088,
-0.0689981729,
-0.1026682928,
0.3005132377,
0.1360221952,
-0.0912713408,
0.1052783057,
0.0703730285,
-0.067407839,
0.3016681671,
0.0214816853,
-0.1085118353,
0.0153889712,
-0.2776352763,
-0.1697628647,
-0.3523251116,
0.338786006,
-0.229353413,
0.0696571469,
-0.0320134386,
0.0404823758,
-0.3742604554,
0.0021903068,
0.129265219,
-0.0558636151,
0.2296980321,
0.1696497947,
0.0025295094,
-0.1484007239,
0.2151015997,
0.4300909638,
-0.3279682994,
-0.1806127876,
-0.0553878471,
-0.6753018498,
0.1929345578,
-0.2446184605,
-0.1638779938,
0.0704153925,
0.3578232229,
-0.1726097614,
-0.0341279432,
0.4378106892,
0.3769517541,
-0.111942783,
0.2010068297,
-0.1759389937,
-0.2322308123,
0.0149962828,
0.0364372358,
0.1134866476,
-0.427033633,
0.2120772451,
0.1316031516,
-0.0673155487,
-0.2084578574,
-0.0971880853,
0.1151320487,
-0.1476902217,
0.5114876628,
0.2450014204,
0.3539225161,
0.0070626587,
-0.291864872,
-0.2748841047,
-0.1809361875,
-0.2635328174,
0.3029269576,
0.0074895825,
0.1913787425,
-0.2344798297,
-0.053313747,
-0.1607612818,
0.5604590178,
0.1186749339,
0.0577347688,
-0.2615610659,
-0.2985358238,
-0.2029913962,
-0.0543153174,
0.428090781,
0.2124757171,
-0.19551,
0.1199359298,
-0.0338993073,
-0.5013495684,
0.3801291287,
0.0424176566,
-0.0864379033,
-0.0998110622,
0.2353788018,
0.4515443146,
-0.1079056337,
-0.3443455696,
0.1179367751,
0.4826675653,
0.0082233679,
-0.107497856,
0.1426826417,
-0.1259906888,
-0.1082379967,
0.0097632483,
0.0963459611,
0.0574397556,
-0.4165950418,
0.3547331095,
-0.1080688015
] |
https://github.com/huggingface/datasets/issues/2839 | OpenWebText: NonMatchingSplitsSizesError | Sorry I haven't had time to work on this. I'll close and re-open if I can't figure out why I'm having this issue. Thanks for taking a look ! | ## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
| 29 | OpenWebText: NonMatchingSplitsSizesError
## Describe the bug
When downloading `openwebtext`, I'm getting:
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=39769494896, num_examples=8013769, dataset_name='openwebtext'), 'recorded': SplitInfo(name='train', num_bytes=39611023912, num_examples=7982430, dataset_name='openwebtext')}]
```
I suspect that the file we download from has changed since the size doesn't look like to match with documentation
`Downloading: 0%| | 0.00/12.9G [00:00<?, ?B/s]` This suggest the total size is 12.9GB, whereas the one documented mentions `Size of downloaded dataset files: 12283.35 MB`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("openwebtext", download_mode="force_redownload")
```
## Expected results
Loading is successful
## Actual results
Loading throws above error.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.10.2
- Platform: linux (Redhat version 8.1)
- Python version: 3.8
- PyArrow version: 4.0.1
Sorry I haven't had time to work on this. I'll close and re-open if I can't figure out why I'm having this issue. Thanks for taking a look ! | [
-0.3353737295,
-0.188412711,
0.0487626344,
0.4328110814,
0.0591348186,
0.1115412563,
-0.0852612853,
0.5720367432,
-0.0169445351,
0.126384601,
-0.1240673438,
0.0030229725,
-0.0780209675,
0.0841972232,
-0.1284149736,
0.0285331216,
-0.1261271536,
0.1875727475,
-0.256758064,
0.1037799269,
-0.2894754112,
0.2635648847,
-0.3147123158,
0.0043349192,
-0.1761122942,
0.0403097197,
-0.1997045428,
0.153028965,
-0.2597185671,
-0.3653437495,
0.2717801332,
-0.3823178113,
0.0590334013,
0.493645221,
-0.0001182356,
0.0295849591,
0.3093133569,
-0.2089020014,
-0.0846329033,
-0.1598858535,
-0.4955506921,
-0.429118067,
-0.0661033168,
-0.1210815758,
0.1902425289,
-0.1171419024,
0.1268288344,
-0.3275129199,
0.3349781632,
0.3231547177,
0.1783087999,
0.4126831889,
0.2072992623,
0.0013003796,
0.3759171963,
-0.2919977903,
-0.2213473469,
-0.0704082549,
0.08605735,
0.0268128589,
0.0031038262,
0.0268941037,
0.0232802257,
0.2867478728,
0.1630619913,
-0.0368345603,
0.3667394221,
-0.2062833905,
0.1011866629,
0.4210109711,
0.7274801135,
-0.2153991908,
-0.2575476766,
-0.3073270917,
-0.3769132197,
0.0297992229,
0.2773854136,
0.4866476059,
0.0031601079,
0.1984095275,
-0.3036157787,
0.0575403497,
0.0382375345,
0.1616748571,
-0.2182648182,
0.2967073917,
-0.0009072982,
0.1527031958,
-0.0929154009,
0.0851418078,
0.2732589245,
-0.1273199767,
0.0084032891,
0.161126405,
-0.2615139186,
0.0117764547,
-0.0282196254,
-0.2475545704,
0.265385747,
0.3092906177,
0.3690367341,
-0.3131041527,
-0.1379643828,
-0.0037723575,
0.2390376627,
0.3799056113,
-0.0437343121,
0.1846986562,
-0.188806653,
0.0326587036,
0.1132928282,
-0.0755625367,
-0.0282564014,
-0.3621483147,
0.0659072846,
-0.0113285193,
0.6134741902,
-0.2487011552,
-0.6051999331,
0.0658675879,
-0.2793935537,
-0.2565439045,
-0.3295622468,
-0.163574785,
-0.311290741,
0.2582393885,
0.1950362474,
-0.0819410831,
-0.3276637793,
-0.3721604645,
-0.2869728804,
-0.1174980253,
-0.1620404571,
0.0461693481,
-0.1041298956,
-0.0131913731,
0.3832284212,
-0.0587805994,
-0.0423805118,
-0.2699391842,
0.1448608041,
0.0324004963,
-0.069952257,
0.150408566,
-0.1633687019,
0.1828366518,
0.0472204797,
0.0847084224,
-0.3564335108,
0.3897979856,
-0.2615619898,
-0.3636493087,
-0.2217822671,
0.1456974447,
-0.3320492506,
-0.215172708,
0.339404285,
-0.0417382084,
0.2415717989,
-0.2057961822,
-0.1408113986,
-0.2203735858,
-0.2054501623,
-0.1400125027,
0.0715178177,
0.3740119636,
-0.2969318926,
-0.2184284925,
0.2159540355,
-0.0582997762,
0.4005607367,
0.4265969098,
0.0306364261,
0.006885374,
-0.1978981197,
0.2515296638,
0.1011657715,
-0.2532139122,
-0.6780225039,
0.4099707305,
-0.1634243727,
0.181475684,
0.1188289821,
-0.0990724713,
0.0737061054,
-0.1317552626,
-0.0850460678,
0.2120763958,
-0.2106407881,
0.0707252845,
-0.5871099234,
-0.7869003415,
0.378046304,
-0.0584510639,
0.1627454162,
-0.1797493994,
-0.0278540216,
0.259958446,
0.4960871935,
0.1067427322,
0.0147278905,
0.1068839803,
0.0614952333,
0.0681386441,
-0.0840678811,
-0.2501348257,
-0.1588562876,
0.2199242711,
-0.1815297902,
-0.0562989861,
0.3016199172,
-0.1083740219,
-0.5671508908,
-0.2056312859,
-0.0594865084,
-0.0970374793,
0.0005352013,
0.0013911258,
0.1822181344,
0.0878183842,
0.1549395919,
0.3509553373,
0.0925609171,
0.1153080612,
-0.3258305192,
0.2187997997,
-0.0420671403,
-0.1144088358,
0.186232388,
-0.0807207376,
0.1894461811,
-0.0506584123,
-0.4008097351,
0.6621261835,
-0.0508649647,
0.1304219961,
-0.0485616103,
0.0759108067,
0.2087166458,
-0.1647550762,
0.1396924257,
0.4040057361,
-0.0078120381,
-0.08936584,
0.1285751164,
-0.1466647983,
0.1681566387,
0.038581349,
-0.1399840713,
0.0219170749,
-0.1082342416,
-0.1906884611,
-0.0218827128,
-0.1363819242,
0.1214791089,
-0.0143768089,
-0.1486690491,
0.0490543991,
0.1307162195,
-0.1663720161,
0.735114336,
-0.0395388678,
-0.0493246391,
0.3084145784,
-0.3009500206,
-0.0696079135,
-0.186914295,
0.2009027898,
0.5170978904,
0.2373419404,
0.170538649,
0.2232393622,
0.0059839748,
-0.1573751271,
0.1209169477,
0.2986409366,
0.2252730131,
0.2332679629,
-0.0040377453,
0.0442566387,
-0.143146351,
0.1358934045,
0.0548939332,
0.3265087306,
-0.4214723408,
-0.2221026421,
-0.4799451828,
-0.0070514902,
-0.3329859078,
0.1856298745,
-0.1814441681,
-0.3045489192,
-0.0691654459,
0.0729711801,
-0.0868558735,
0.1772734523,
-0.2617515624,
0.1166192889,
0.1726835519,
0.1684264839,
0.1131397188,
-0.0296700317,
-0.5200146437,
0.0163425319,
0.2846109867,
-0.264636606,
0.3774174452,
-0.5531547666,
0.019505769,
-0.0720696524,
-0.1443548799,
-0.1200668961,
0.0596862435,
0.0407045931,
0.1904515028,
0.1615996659,
0.0788516924,
-0.0324808881,
0.182315141,
-0.2791778445,
-0.1931467056,
-0.0665638819,
0.1417395771,
0.2153921425,
-0.0159328133,
-0.5946927667,
-0.2640364766,
-0.3566409945,
0.2469535172,
0.0686297044,
0.1870593876,
0.0002922304,
0.0823857188,
0.0191314146,
0.0428408869,
0.087499395,
-0.2150723636,
-0.441359818,
0.3366398513,
0.0674885139,
-0.3040822148,
-0.0139748305,
0.2830919623,
-0.0750180781,
0.0852653682,
-0.6037396193,
-0.1121484637,
-0.3842428923,
-0.1020445675,
-0.1089004725,
0.1909782439,
0.4259521067,
0.0320952088,
-0.0522993729,
-0.1426745504,
-0.3267739713,
-0.0091119632,
0.2859999537,
0.5351225138,
-0.0486744791,
0.270075798,
0.3071492314,
0.4374691546,
0.536436677,
0.0791870579,
0.0161779467,
-0.0385353714,
0.0828423649,
-0.1028326899,
0.0535905659,
0.1910816282,
-0.2176374942,
0.0492425784,
0.3565106094,
0.1696509868,
0.0127553847,
-0.0368490964,
-0.0876014531,
-0.3898724318,
-0.1862394512,
-0.0227670576,
-0.0313760452,
0.1551937461,
0.2314362675,
0.0815007165,
-0.215193063,
-0.2685637176,
0.1059815362,
-0.0300254636,
-0.1459791511,
0.0423289128,
0.1752461046,
0.373087883,
-0.3741365969,
0.3963323832,
0.0969317704,
0.2370706052,
0.176012218,
-0.2623289227,
0.1341691017,
0.0665082708,
0.3930382431,
-0.0159508213,
-0.0892400146,
0.0761588886,
0.1335607022,
-0.490927726,
-0.3171023726,
-0.1052997932,
0.1085404232,
0.5230337977,
-0.073866263,
-0.3801212609,
0.0209024027,
0.3068944812,
0.4333488941,
-0.2359807938,
-0.0729078874,
-0.1252312064,
-0.3763367534,
-0.2850296497,
-0.1912845373,
0.0464634746,
0.2928822935,
0.0043562092,
-0.0980406329,
-0.0733077005,
-0.2081434131,
0.1746225059,
-0.1836492866,
0.2925069332,
-0.0004944988,
0.3188734055,
0.2693994641,
0.3867374361,
0.2052206099,
0.5904603601,
0.0436037891,
-0.186718151,
-0.0387388095,
-0.1282728612,
-0.2344356775,
0.3033225238,
0.1187585816,
-0.3259147406,
-0.0401387811,
0.195691064,
-0.3326935172,
0.2428995073,
0.4663272202,
-0.1162646413,
-0.4240006208,
-0.4418558478,
0.4975844324,
0.2040063739,
-0.0451388508,
0.4790872633,
-0.0798942,
-0.1677799821,
0.0333915986,
-0.1459573358,
1.0368602276,
0.0999153256,
-0.0907202363,
0.2094313502,
-0.5453343987,
0.1710040122,
-0.199956432,
0.2204813659,
-0.2778275907,
-0.4051027,
0.0069353431,
-0.2201941609,
0.1650545895,
-0.0130687021,
-0.2186738551,
0.2340096384,
-0.039074786,
0.0920770615,
0.162283659,
0.2636516094,
-0.2369294018,
0.1853294224,
0.2661135197,
0.0833000168,
-0.2128534019,
0.5148090124,
-0.0760420263,
-0.1609027684,
-0.149177447,
-0.1373737454,
-0.5546500087,
0.0599500239,
-0.3144533038,
0.2885299027,
-0.2171669602,
0.0433866382,
0.0880813748,
0.0923925638,
0.0142035726,
-0.0594971292,
-0.3775973618,
0.2553164959,
-0.0525223501,
0.1412579715,
0.2620886266,
0.0832054764,
0.110157676,
-0.0912028998,
-0.2372804731,
0.0405231975,
-0.0837491304,
-0.1229648143,
-0.0970742255,
-0.1680071056,
0.3867132962,
-0.6676738858,
-0.1573057175,
-0.1034073085,
0.1436840892,
-0.1959362328,
0.0874957964,
0.1029198095,
-0.0474429987,
0.4278290272,
0.0163502153,
-0.4587227106,
-0.1943023205,
0.4307104647,
0.1279550791,
0.0916893929,
0.4442595243,
-0.1370532066,
-0.0376778655,
0.0117739663,
0.4629660845,
-0.113105312,
-0.5498893261,
0.2595931888,
-0.4044884145,
0.3425936699,
0.0981685072,
0.2810599506,
0.5407376885,
0.3864485323,
-0.026415281,
-0.114628464,
0.0669919476,
0.001130458,
0.0746460333,
0.3588258624,
-0.0805720314,
0.4045139253,
0.0672631636,
-0.0704931393,
-0.2422812879,
0.2544280887,
0.0156780705,
0.0428695306,
0.1455540359,
0.0286413264,
0.1355085671,
-0.0117974989,
-0.039009545,
0.1854177266,
-0.2432225943,
-0.0989611074,
-0.1615243703,
0.2079801261,
0.0546914563,
-0.153082177,
0.0456559397,
-0.1510102749,
0.1255457997,
-0.1162611246,
-0.1137403399,
0.1645743102,
-0.0513618588,
0.2183627933,
0.1268452257,
-0.2066083997,
-0.0665393248,
0.2602390945,
-0.234435454,
0.4273048639,
0.0245205462,
0.3384081721,
0.2047902495,
-0.0108743012,
-0.0850314498,
-0.0598098747,
0.0003589205,
0.1567876041,
0.3013488948,
-0.250828445,
0.1260695755,
0.3643404245,
0.137481153,
0.4328537583,
-0.1313253045,
-0.2906664014,
0.1045471728,
0.1784313172,
-0.299235642,
0.0161654539,
0.4957771599,
0.1222696304,
-0.0567718372,
0.076114364,
0.0944879353,
-0.0311804339,
-0.3327863812,
0.1645709574,
0.4324415922,
0.2256921381,
0.318655163,
0.8666629791,
-0.0204313621,
-0.025654614,
0.0237758663,
-0.1841370761,
0.3195382059,
0.2806243896,
-0.1578595936,
0.3437284827,
-0.0056775585,
0.3505119085,
-0.3397982121,
-0.3672024608,
-0.1076571792,
0.2417440116,
-0.0121822618,
0.2198257297,
0.2063263059,
0.3108757436,
-0.2241531312,
-0.0063813962,
-0.372656703,
0.1676121801,
0.0706150904,
-0.0313571878,
0.0524182916,
-0.2259845287,
-0.2060039639,
0.0640667081,
-0.1661807597,
0.0202163905,
0.2706853747,
-0.1795412153,
-0.2028781921,
-0.3367297649,
-0.1908314377,
-0.1135763079,
0.1885903031,
-0.4949005544,
0.0465462431,
0.1343566477,
-0.2942208648,
0.1290154159,
0.620079577,
0.4436331987,
0.2979873419,
-0.1408045292,
-0.1054056734,
0.2517392635,
0.1027259082,
0.0467176884,
0.1857623011,
0.0489168651,
-0.1277912706,
0.3198866248,
0.0569142587,
-0.0990992114,
0.0934138671,
-0.2364151627,
-0.1541102827,
-0.3987444639,
0.2347807288,
-0.208598569,
0.0547562018,
0.0016946252,
-0.028470587,
-0.3427093029,
-0.0356012583,
0.1651669443,
-0.0647952631,
0.2333299816,
0.1454221159,
0.0216183513,
-0.2116189599,
0.224787727,
0.416157186,
-0.3166661263,
-0.1842964143,
-0.2350705266,
-0.5166272521,
0.2552207112,
-0.2080884874,
-0.1786124706,
0.061498452,
0.3182901144,
-0.225325644,
-0.0437422395,
0.4135928154,
0.2970717549,
-0.2436300218,
0.1413474083,
-0.3079404235,
-0.210918963,
-0.0562672243,
0.0403397158,
0.1673973501,
-0.265024364,
0.2208800018,
-0.105410777,
-0.0257280916,
-0.2519941926,
-0.033063218,
0.1348446012,
-0.0843250304,
0.4137387872,
0.334590137,
0.2951546311,
-0.0177687854,
-0.1573620737,
-0.2531408966,
-0.2753588557,
-0.202457726,
0.4000015557,
-0.0340067707,
0.2347234935,
-0.225682795,
0.0578501672,
-0.1563292891,
0.4413222671,
0.0167555884,
0.0550509654,
-0.2007738501,
-0.2971840501,
-0.09777309,
-0.1419037879,
0.3616725206,
0.3011951149,
-0.1548297405,
0.1341492683,
0.0166277736,
-0.4505010247,
0.4645191431,
0.0743986815,
-0.0788485631,
-0.1006371677,
0.1509800106,
0.3283899724,
-0.0582997203,
-0.3652932644,
0.1082649678,
0.5874561667,
0.0201446563,
-0.0254815593,
0.1324418187,
-0.0440023802,
-0.1434298158,
0.1158753783,
0.1667711586,
-0.0006539607,
-0.4427073598,
0.4158503115,
-0.1364070028
] |
https://github.com/huggingface/datasets/issues/2831 | ArrowInvalid when mapping dataset with missing values | Hi ! It fails because of the feature type inference.
Because the first 1000 examples all have null values in the "match" field, then it infers that the type for this field is `null` type before writing the data on disk. But as soon as it tries to map an example with a non-null "match" field, then it fails.
To fix that you can either:
- increase the writer_batch_size to >2000 (default is 1000) so that some non-null values will be in the first batch written to disk
```python
datasets = datasets.map(lambda e: {'labels': e['match']}, remove_columns=['id'], writer_batch_size=2000)
```
- OR force the feature type with:
```python
from datasets import Features, Value
features = Features({
'conflict': Value('int64'),
'date': Value('string'),
'headline': Value('string'),
'match': Value('float64'),
'label': Value('float64')
})
datasets = datasets.map(lambda e: {'labels': e['match']}, remove_columns=['id'], features=features)
``` | ## Describe the bug
I encountered an `ArrowInvalid` when mapping dataset with missing values.
Here are the files for a minimal example. The exception is only thrown when the first line in the csv has a missing value (if you move the last line to the top it isn't thrown).
[data_small.csv](https://github.com/huggingface/datasets/files/7037838/data_small.csv)
[data.csv](https://github.com/huggingface/datasets/files/7037842/data.csv)
## Steps to reproduce the bug
```python
from datasets import load_dataset
datasets = load_dataset("csv", data_files=['data_small.csv'])
datasets = datasets.map(lambda e: {'labels': e['match']},
remove_columns=['id'])
```
## Expected results
No error
## Actual results
```
File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Invalid null value
```
## Environment info
- `datasets` version: 1.5.0
- Platform: Linux-5.11.0-25-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyTorch version (GPU?): 1.7.1+cpu (False)
- Tensorflow version (GPU?): 2.4.1 (False)
- Using GPU in script?: no
- Using distributed or parallel set-up in script?: no
| 134 | ArrowInvalid when mapping dataset with missing values
## Describe the bug
I encountered an `ArrowInvalid` when mapping dataset with missing values.
Here are the files for a minimal example. The exception is only thrown when the first line in the csv has a missing value (if you move the last line to the top it isn't thrown).
[data_small.csv](https://github.com/huggingface/datasets/files/7037838/data_small.csv)
[data.csv](https://github.com/huggingface/datasets/files/7037842/data.csv)
## Steps to reproduce the bug
```python
from datasets import load_dataset
datasets = load_dataset("csv", data_files=['data_small.csv'])
datasets = datasets.map(lambda e: {'labels': e['match']},
remove_columns=['id'])
```
## Expected results
No error
## Actual results
```
File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Invalid null value
```
## Environment info
- `datasets` version: 1.5.0
- Platform: Linux-5.11.0-25-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyTorch version (GPU?): 1.7.1+cpu (False)
- Tensorflow version (GPU?): 2.4.1 (False)
- Using GPU in script?: no
- Using distributed or parallel set-up in script?: no
Hi ! It fails because of the feature type inference.
Because the first 1000 examples all have null values in the "match" field, then it infers that the type for this field is `null` type before writing the data on disk. But as soon as it tries to map an example with a non-null "match" field, then it fails.
To fix that you can either:
- increase the writer_batch_size to >2000 (default is 1000) so that some non-null values will be in the first batch written to disk
```python
datasets = datasets.map(lambda e: {'labels': e['match']}, remove_columns=['id'], writer_batch_size=2000)
```
- OR force the feature type with:
```python
from datasets import Features, Value
features = Features({
'conflict': Value('int64'),
'date': Value('string'),
'headline': Value('string'),
'match': Value('float64'),
'label': Value('float64')
})
datasets = datasets.map(lambda e: {'labels': e['match']}, remove_columns=['id'], features=features)
``` | [
-0.0327268019,
-0.1531257629,
0.1040896699,
0.2286238372,
0.0726003498,
0.1366070509,
0.3329793513,
0.4905759096,
-0.0207699202,
0.2300735265,
0.2338504046,
0.4390178621,
0.0271518417,
-0.1494166106,
-0.1128669232,
-0.043491818,
0.0362380072,
0.1175364703,
-0.0013273526,
-0.0447310321,
-0.3787421584,
0.0844400823,
-0.3389021158,
0.0575110763,
-0.3012343347,
-0.1077296138,
-0.0090295374,
0.0034843609,
0.1298891604,
-0.4910511374,
0.2923192382,
-0.5293871164,
-0.1505019218,
0.1626196206,
-0.0001158711,
-0.0339866877,
0.2518497407,
0.0519128889,
-0.0784553662,
-0.2758250535,
-0.1568177342,
-0.21859321,
-0.0141736381,
-0.1653569192,
0.176202625,
-0.0375167653,
0.07602299,
-0.1961084008,
-0.0201380067,
0.2709063888,
0.1460494697,
0.4126617908,
0.2178694457,
0.0892385915,
0.4545612931,
0.0507915914,
-0.2142464519,
0.3872689009,
0.1501769423,
-0.2261424065,
0.1055751741,
0.3145456016,
-0.0312070101,
0.016081389,
0.3101097941,
0.1767362058,
-0.0633134544,
-0.2293646783,
-0.0956780612,
0.1412266791,
0.121312663,
-0.4014456272,
-0.430262208,
-0.2851822078,
0.0836300999,
-0.3390867114,
0.340395987,
0.1685679108,
-0.1564166397,
0.1623666286,
0.1155143827,
0.2014276087,
-0.1928488314,
0.1499875784,
-0.104282707,
0.0833818763,
0.0503503904,
0.2609375417,
-0.0560739413,
-0.2023010254,
-0.2976314127,
-0.1810265034,
0.0063067032,
0.263015449,
-0.3672580421,
-0.2198310494,
-0.1504850984,
-0.1560586393,
0.1592742503,
-0.2276548594,
0.2990318537,
-0.106754154,
0.0777331144,
0.412878722,
0.0608041175,
-0.1506104171,
0.1527080238,
0.1083263904,
0.1780026704,
-0.4061113298,
0.2636468709,
-0.0342921317,
0.1340159327,
-0.5859509706,
0.514116168,
0.260602206,
0.6728466749,
-0.1126295328,
-0.4689025581,
0.1276108474,
-0.7892328501,
0.3337591588,
-0.1357806772,
0.1627145112,
0.0130745284,
0.0863914937,
0.0484190434,
0.2774149179,
-0.1620678604,
-0.2743250728,
0.0147254653,
-0.0746789128,
-0.054068286,
-0.0446718,
0.3431841433,
-0.1898901016,
0.2458142936,
0.1759653986,
-0.112278536,
-0.0045985878,
0.2626314163,
-0.3046370447,
0.1480022669,
0.1737484336,
-0.4271009564,
0.2794372439,
0.0387200117,
-0.14658916,
-0.1892319918,
0.2775796354,
-0.1205458045,
-0.1588580012,
-0.2165751904,
0.1482956409,
0.0022298917,
-0.2128341198,
-0.0540004559,
-0.0020000055,
0.2423748076,
-0.1734905243,
0.184610188,
-0.2199791521,
0.0187497064,
-0.376090616,
-0.0113686696,
0.3736345172,
-0.6385912299,
0.0708367079,
0.1267938912,
-0.0185740087,
-0.0337320082,
0.3634843826,
-0.18706882,
-0.0136715434,
-0.0591621324,
0.5252672434,
-0.008646749,
-0.1326464415,
-0.4373973012,
0.1313865483,
-0.074395895,
-0.244453907,
0.0401037261,
0.2435708493,
0.141769439,
-0.1496628076,
-0.0173342079,
-0.1213849783,
-0.1300858706,
0.2243183702,
-0.3260704279,
-0.0411788076,
0.1720782518,
0.0506165624,
-0.1469438672,
-0.2109327912,
0.1945359856,
-0.6835868359,
0.0329081751,
-0.2068122625,
0.2666671574,
0.3962260783,
0.4044354856,
-0.0465760529,
0.155202195,
-0.1333547533,
-0.8110238314,
0.1985867023,
0.1008476019,
-0.1821601093,
-0.4811459184,
-0.4098102152,
-0.1061266661,
0.3230986297,
0.1690466106,
0.153975457,
0.0751769692,
-0.0067511722,
-0.1226851493,
-0.059893135,
-0.2849860191,
-0.2986542881,
-0.2172648609,
0.1865487546,
-0.2249361426,
0.2575947344,
-0.0139210857,
-0.2167796195,
-0.0960752368,
0.0344258621,
0.1761994809,
-0.1273739338,
0.0135914385,
0.4820095599,
0.1067620218,
0.1463911533,
-0.1182708889,
0.0272354186,
0.3414065242,
-0.4875246286,
-0.2777242064,
0.3717954755,
0.3092470169,
0.0654944628,
-0.1880116463,
0.3670310676,
-0.0085762152,
0.142662093,
-0.2432317883,
-0.0240107402,
0.0476459041,
-0.0050881803,
-0.170667991,
-0.0740774572,
-0.083770141,
-0.0132250311,
0.2308353335,
0.1707011908,
-0.6484631896,
0.0064494051,
0.1777647585,
-0.1262827963,
0.1471399218,
0.0463456996,
-0.2821583152,
0.3659057021,
0.3918356299,
0.0322903395,
0.3437525332,
0.1976646185,
-0.0775277615,
0.0050954446,
-0.1521712542,
-0.0824590847,
0.3486303687,
-0.005070921,
0.0830796659,
0.1302964836,
0.1771517694,
0.2778593898,
-0.1754115969,
0.0187844411,
0.2271975577,
0.1906451583,
-0.5900599957,
-0.0668674335,
-0.1082039401,
0.079159081,
-0.3532577753,
-0.160243988,
-0.0837710798,
-0.2679262757,
-0.0238325112,
0.1787118614,
-0.4540550411,
0.2962759733,
-0.0503031537,
0.064501904,
0.2097575068,
-0.2873470485,
-0.1986876428,
-0.1805443168,
-0.206972301,
0.0005408451,
0.1689913422,
-0.0692999065,
0.2951591611,
0.2671797276,
-0.1056488603,
-0.5031930804,
-0.4341720343,
0.0272095352,
-0.2286231816,
0.1287035644,
0.1987029165,
0.2116245627,
-0.0771778673,
-0.3438918889,
0.1970793158,
0.0353331119,
-0.2919721007,
0.1465553641,
-0.017192645,
-0.0445718355,
-0.1751172841,
-0.4850562513,
-0.0388206318,
-0.2281596959,
0.2234228104,
-0.3103992641,
0.0502252355,
0.1630634069,
0.3292429447,
0.1380271018,
-0.117072314,
-0.1576800644,
0.1402169466,
0.2776939869,
0.5713927746,
-0.0197702087,
-0.3324659169,
0.2355104685,
-0.1852094829,
-0.0800570995,
0.4506347775,
-0.2126405686,
-0.0239201635,
-0.113170661,
0.639744103,
-0.0702656955,
-0.0265891235,
0.3226290047,
0.2941911817,
0.0133324414,
-0.1408384144,
-0.3169089854,
0.0624888167,
-0.0236809384,
0.294080615,
0.0561673418,
0.3970869482,
0.0143699944,
0.7554782033,
0.1163193062,
-0.2453814745,
0.1562789679,
-0.2184981406,
-0.0008911407,
0.1268463433,
-0.1204355285,
-0.1177741513,
-0.1749807447,
-0.0615209602,
-0.1283864677,
-0.1914947927,
-0.5315890908,
0.0941081345,
-0.0040600896,
-0.4546507001,
-0.3176426291,
0.2134094536,
-0.0659965202,
0.3006446958,
0.0850823373,
0.0237071887,
-0.2731814682,
-0.0984001011,
0.2626478076,
-0.0619854592,
0.2583999038,
-0.1927739382,
0.0116456524,
-0.295719564,
-0.2309025824,
0.4249310493,
0.2806854546,
0.144698903,
0.1786825657,
-0.2188023031,
-0.0082686841,
0.1248108745,
0.6407936215,
-0.1843993515,
-0.0035299044,
-0.0733776391,
0.0795039609,
-0.4673799872,
0.1887805313,
-0.2618238926,
0.1212376654,
0.2620199621,
0.3791094422,
-0.4262298048,
0.0409370773,
0.2719633877,
0.0301524252,
0.0009183362,
-0.1788762659,
-0.1175881028,
0.0538968891,
-0.1162520051,
-0.0002530776,
0.2568054199,
-0.0368421301,
0.1809670627,
-0.1021703035,
-0.3370203376,
-0.0148671344,
0.0077325739,
-0.0051571578,
0.3421083093,
-0.2208798379,
0.2672511935,
0.0290988497,
0.3201950192,
0.5259216428,
0.3236471713,
0.2308430821,
-0.5913683176,
0.0479079597,
-0.0493213944,
0.3719323575,
0.2339032888,
-0.0153824091,
0.0391956046,
-0.0169088952,
0.0757483393,
-0.1975087523,
-0.041586861,
0.3200694919,
0.1617123783,
-0.0220553111,
0.0735814124,
0.5450212359,
-0.2178991437,
-0.0845391378,
0.5981549025,
0.425673604,
-0.1784010828,
0.3142665625,
0.2651115656,
0.8266263008,
0.2423485368,
-0.042831663,
0.5020027161,
-0.2361522764,
0.3753005564,
0.4359338284,
0.1408498585,
-0.4725416601,
0.0318131819,
-0.0056980215,
-0.0902221873,
0.0566545464,
0.1566031873,
-0.0879652128,
0.1055395752,
0.1479059458,
0.3768040836,
0.0117137581,
-0.2954430878,
-0.1822734922,
-0.231957078,
-0.0481278077,
0.028775543,
0.0588857494,
0.0464369245,
-0.025141025,
-0.2543236017,
-0.3001086116,
-0.145930618,
-0.0274329484,
-0.0137783289,
-0.6243050098,
0.1249291152,
0.3038371503,
-0.1498274058,
0.1048353165,
0.028396545,
-0.0029963702,
0.0453988835,
-0.1749745458,
-0.0308617968,
0.1676080525,
0.0359349996,
0.1077980027,
-0.1268624067,
0.1436230093,
0.0088677257,
-0.3379883468,
0.1709950566,
-0.3489297032,
-0.0887772888,
0.2501177192,
-0.0525684394,
-0.2960271835,
-0.0757636651,
-0.1102010757,
-0.1591257453,
-0.1553001255,
-0.010497503,
0.0702019781,
-0.1015284061,
0.0871763527,
-0.082218267,
-0.1431224495,
-0.2805765867,
0.0563415959,
0.3491201997,
-0.1585406959,
0.2250404954,
0.7464404106,
-0.1259889156,
-0.0978431106,
-0.1068752259,
0.2753216624,
0.2847060561,
-0.7513647079,
-0.033911068,
-0.254655242,
0.1422493458,
0.0434248187,
0.3635241687,
0.4133292735,
-0.0414073691,
-0.1273890734,
-0.2120478302,
-0.3010553122,
0.2500478029,
0.170312658,
0.1966131926,
-0.1225020289,
0.1032615155,
0.0622732118,
-0.2535410821,
-0.2832322121,
0.114010267,
-0.0828188434,
0.2677061558,
0.1502031982,
0.2842864692,
-0.0032050125,
-0.2480998486,
0.0826089308,
0.2167168558,
-0.0332854763,
-0.122351706,
-0.1673522592,
0.1068493724,
-0.0166369937,
0.0131725781,
0.0193716884,
-0.1955144405,
-0.0152198104,
-0.066260688,
0.0393888652,
0.090839617,
-0.1936000884,
0.3321725726,
0.0795069337,
0.1329206526,
-0.3743380904,
-0.0004385011,
-0.0297725126,
0.0948929936,
-0.1321004331,
0.2827993929,
-0.2116813958,
0.1072418317,
0.0784715265,
0.0996162146,
-0.379098624,
-0.1276967525,
0.3835837245,
-0.3355985582,
-0.2621275783,
0.2332982123,
0.1428566128,
0.0325816907,
-0.2208073884,
0.0428409278,
0.103924647,
0.2010429949,
-0.3584832251,
0.2307635546,
0.0241829343,
0.1520145237,
0.3160281479,
0.130028978,
0.1271680593,
-0.1918480396,
0.0712349713,
-0.0569215119,
0.1015782505,
-0.2153932154,
-0.2106613815,
0.5099637508,
-0.0421366096,
0.1484286785,
0.32957533,
0.3196735084,
0.5036208034,
0.0196690727,
0.2491694987,
0.2726072073,
0.1587903798,
0.0403378308,
-0.0816661865,
-0.2444851249,
0.1164992601,
0.1713624001,
-0.1000708491,
-0.0200897716,
0.4890682101,
0.4165971577,
-0.0280172415,
-0.3324064314,
0.161189124,
-0.0731742829,
-0.226911068,
0.0226644576,
-0.677598536,
-0.0025770217,
-0.1935767531,
-0.1397778243,
-0.1691485643,
-0.1219597459,
0.8168906569,
0.2213881612,
-0.0209991336,
-0.388655901,
0.107637763,
0.3059975803,
0.487688899,
-0.2539096177,
0.1352225989,
0.1234419197,
-0.2828820348,
-0.1400594562,
0.491320461,
0.4069625139,
0.2249291539,
-0.1212655455,
0.0403522439,
-0.0347093865,
-0.0543510318,
0.1517041773,
0.1644174457,
0.0987063423,
0.1409582049,
0.3644828796,
0.0870507732,
-0.0920834914,
0.0718835592,
0.0131683107,
0.2570966482,
-0.2345177233,
-0.1019178405,
-0.3865160644,
-0.4380468726,
-0.0280455314,
-0.2071052194,
-0.2199877799,
0.0009458773,
0.4115727246,
0.088200137,
0.0986721367,
0.1032274291,
0.0817171857,
0.0474653691,
0.2402693629,
0.5085470676,
-0.1268953681,
-0.2856565714,
0.0516218096,
-0.7157185078,
0.2013090998,
-0.0577677451,
0.204370141,
0.264801681,
0.3000233173,
0.1720286906,
0.2032221854,
0.1652730405,
-0.0015442148,
0.0217054188,
0.2742361724,
-0.1224539727,
-0.1925008893,
-0.0138755217,
-0.2804163396,
0.076769121,
-0.4350306392,
0.2325889617,
-0.0922948271,
-0.01191964,
-0.0938091576,
-0.0700885206,
0.1152579486,
0.0317849144,
0.4940912127,
0.0795047209,
0.1511559188,
0.0386886969,
-0.1448908001,
-0.1115940958,
-0.2258875072,
-0.2643376589,
0.2339616269,
0.0837766528,
0.3281965852,
0.0952425599,
-0.2597879767,
-0.0061517954,
0.0315793976,
-0.0343181342,
-0.2390239388,
-0.2667896152,
0.3094371855,
-0.2738666832,
-0.0049883425,
-0.1516632438,
0.0633129179,
0.0026380457,
0.1307355464,
-0.319498688,
-0.4689131379,
0.3250770271,
-0.3774600029,
-0.1080546081,
0.0280195698,
0.3486166596,
0.485396862,
0.1548854262,
-0.5569853783,
-0.11893861,
0.4156109095,
-0.169511646,
-0.3143321872,
-0.1939263344,
0.0120866112,
0.0381224304,
0.0517548472,
0.5593418479,
0.1047479808,
0.0732036009,
0.1368074715,
-0.4698798656
] |
https://github.com/huggingface/datasets/issues/2826 | Add a Text Classification dataset: KanHope | Hi ! In your script it looks like you're trying to load the dataset `bn_hate_speech,`, not KanHope.
Moreover the error `KeyError: ' '` means that you have a feature of type ClassLabel, but for a certain example of the dataset, it looks like the label is empty (it's just a string with a space). Can you make sure that the data don't have missing labels, and that your dataset script parses the labels correctly ? | ## Adding a Dataset
- **Name:** *KanHope*
- **Description:** *A code-mixed English-Kannada dataset for Hope speech detection*
- **Paper:** *https://arxiv.org/abs/2108.04616* (I am the author of the paper}
- **Author:** *[AdeepH](https://github.com/adeepH)*
- **Data:** *https://github.com/adeepH/KanHope/tree/main/dataset*
- **Motivation:** *The dataset is amongst the very few resources available for code-mixed Dravidian languages*
- I tried following the steps as per the instructions. However, could not resolve an error. Any help would be appreciated.
- The dataset card and the scripts for the dataset *https://github.com/adeepH/datasets/tree/multilingual-hope-speech/datasets/mhs_eval*
```
Using custom data configuration default
Downloading and preparing dataset bn_hate_speech/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/bn_hate_speech/default/0.0.0/5f417ddc89777278abd29988f909f39495f0ec802090f7d8fa63b5bffb121762...
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-114-4a9cdb519e4c> in <module>()
1 from datasets import load_dataset
2
----> 3 data = load_dataset('/content/bn')
9 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
850 ignore_verifications=ignore_verifications,
851 try_from_hf_gcs=try_from_hf_gcs,
--> 852 use_auth_token=use_auth_token,
853 )
854
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
614 if not downloaded_from_gcs:
615 self._download_and_prepare(
--> 616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
618 # Sync info
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
691 try:
692 # Prepare split will record examples associated to the split
--> 693 self._prepare_split(split_generator, **prepare_split_kwargs)
694 except OSError as e:
695 raise OSError(
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _prepare_split(self, split_generator)
1107 disable=bool(logging.get_verbosity() == logging.NOTSET),
1108 ):
-> 1109 example = self.info.features.encode_example(record)
1110 writer.write(example, key)
1111 finally:
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_example(self, example)
1015 """
1016 example = cast_to_python_objects(example)
-> 1017 return encode_nested_example(self, example)
1018
1019 def encode_batch(self, batch):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_nested_example(schema, obj)
863 if isinstance(schema, dict):
864 return {
--> 865 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
866 }
867 elif isinstance(schema, (list, tuple)):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in <dictcomp>(.0)
863 if isinstance(schema, dict):
864 return {
--> 865 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
866 }
867 elif isinstance(schema, (list, tuple)):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_nested_example(schema, obj)
890 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
891 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 892 return schema.encode_example(obj)
893 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
894 return obj
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_example(self, example_data)
665 # If a string is given, convert to associated integer
666 if isinstance(example_data, str):
--> 667 example_data = self.str2int(example_data)
668
669 # Allowing -1 to mean no label.
/usr/local/lib/python3.7/dist-packages/datasets/features.py in str2int(self, values)
623 if value not in self._str2int:
624 value = str(value).strip()
--> 625 output.append(self._str2int[str(value)])
626 else:
627 # No names provided, try to integerize
KeyError: ' '
``` | 75 | Add a Text Classification dataset: KanHope
## Adding a Dataset
- **Name:** *KanHope*
- **Description:** *A code-mixed English-Kannada dataset for Hope speech detection*
- **Paper:** *https://arxiv.org/abs/2108.04616* (I am the author of the paper}
- **Author:** *[AdeepH](https://github.com/adeepH)*
- **Data:** *https://github.com/adeepH/KanHope/tree/main/dataset*
- **Motivation:** *The dataset is amongst the very few resources available for code-mixed Dravidian languages*
- I tried following the steps as per the instructions. However, could not resolve an error. Any help would be appreciated.
- The dataset card and the scripts for the dataset *https://github.com/adeepH/datasets/tree/multilingual-hope-speech/datasets/mhs_eval*
```
Using custom data configuration default
Downloading and preparing dataset bn_hate_speech/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/bn_hate_speech/default/0.0.0/5f417ddc89777278abd29988f909f39495f0ec802090f7d8fa63b5bffb121762...
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-114-4a9cdb519e4c> in <module>()
1 from datasets import load_dataset
2
----> 3 data = load_dataset('/content/bn')
9 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
850 ignore_verifications=ignore_verifications,
851 try_from_hf_gcs=try_from_hf_gcs,
--> 852 use_auth_token=use_auth_token,
853 )
854
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
614 if not downloaded_from_gcs:
615 self._download_and_prepare(
--> 616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
618 # Sync info
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
691 try:
692 # Prepare split will record examples associated to the split
--> 693 self._prepare_split(split_generator, **prepare_split_kwargs)
694 except OSError as e:
695 raise OSError(
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _prepare_split(self, split_generator)
1107 disable=bool(logging.get_verbosity() == logging.NOTSET),
1108 ):
-> 1109 example = self.info.features.encode_example(record)
1110 writer.write(example, key)
1111 finally:
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_example(self, example)
1015 """
1016 example = cast_to_python_objects(example)
-> 1017 return encode_nested_example(self, example)
1018
1019 def encode_batch(self, batch):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_nested_example(schema, obj)
863 if isinstance(schema, dict):
864 return {
--> 865 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
866 }
867 elif isinstance(schema, (list, tuple)):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in <dictcomp>(.0)
863 if isinstance(schema, dict):
864 return {
--> 865 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
866 }
867 elif isinstance(schema, (list, tuple)):
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_nested_example(schema, obj)
890 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
891 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 892 return schema.encode_example(obj)
893 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
894 return obj
/usr/local/lib/python3.7/dist-packages/datasets/features.py in encode_example(self, example_data)
665 # If a string is given, convert to associated integer
666 if isinstance(example_data, str):
--> 667 example_data = self.str2int(example_data)
668
669 # Allowing -1 to mean no label.
/usr/local/lib/python3.7/dist-packages/datasets/features.py in str2int(self, values)
623 if value not in self._str2int:
624 value = str(value).strip()
--> 625 output.append(self._str2int[str(value)])
626 else:
627 # No names provided, try to integerize
KeyError: ' '
```
Hi ! In your script it looks like you're trying to load the dataset `bn_hate_speech,`, not KanHope.
Moreover the error `KeyError: ' '` means that you have a feature of type ClassLabel, but for a certain example of the dataset, it looks like the label is empty (it's just a string with a space). Can you make sure that the data don't have missing labels, and that your dataset script parses the labels correctly ? | [
-0.2438094318,
-0.083745122,
-0.1076411083,
0.1681504399,
0.2711260915,
0.0154421031,
0.1767386496,
0.412786901,
0.1465680599,
0.086859189,
-0.16489169,
-0.07798969,
-0.2590733469,
0.2801797688,
-0.2317630202,
-0.2915211916,
-0.088470988,
0.1522612721,
-0.1177389473,
-0.0643954128,
-0.0891422182,
0.3205005229,
-0.1597215831,
0.1476869583,
-0.28265661,
-0.3294516206,
-0.1136719361,
0.0935221165,
-0.3491749763,
-0.4404597878,
0.2650222778,
-0.052807238,
0.1387758702,
0.3857925236,
-0.0001095746,
-0.0700782463,
0.3101212084,
-0.1751648337,
-0.3034775257,
-0.298186779,
-0.078967832,
-0.0469492339,
-0.0233719926,
-0.3721513152,
-0.2534292936,
0.1050645262,
-0.0610322058,
-0.4590234756,
0.5346904993,
0.6502833962,
0.229791373,
0.0913035423,
0.3871517479,
-0.2322714031,
0.0315532312,
0.2178067863,
-0.2045285106,
0.3952791095,
0.2633341551,
-0.1257784665,
0.0324165523,
0.3559172153,
0.0472594053,
0.1438394487,
0.2195970714,
-0.0154394954,
0.1111363024,
-0.2860592306,
0.2297820002,
0.1622224748,
0.3204839826,
-0.421192199,
-0.1435187161,
-0.1698825657,
0.0571511835,
-0.3703624606,
0.338431865,
0.0452005342,
-0.3210281432,
0.2198123038,
0.2442414612,
-0.0520663112,
-0.1897222102,
0.1275734603,
0.2060876489,
0.3765226305,
-0.1028692722,
0.0157829039,
-0.0386534818,
-0.1966773868,
0.099908933,
-0.2033939511,
0.0466273986,
0.2891247571,
-0.3035184145,
-0.0678536892,
0.0391922593,
-0.1798287779,
0.1154339761,
-0.2513126731,
-0.0251796115,
0.0710901171,
0.0023854412,
0.0093138823,
0.0932095796,
0.1263339818,
0.2573834956,
0.2938035727,
0.3097375929,
0.2206830084,
-0.0685121417,
0.0444710404,
0.003833361,
-0.0998945534,
0.0476475507,
0.170687601,
0.2578557134,
-0.1094401777,
-0.3618175089,
0.0034739375,
-0.0324975774,
0.0244200304,
-0.000283096,
0.3031305075,
0.125211373,
-0.1238038093,
0.1699261069,
0.2675574124,
-0.1435549259,
-0.3247879446,
-0.1181281283,
0.3308375776,
-0.189040795,
-0.1475580037,
0.2492349446,
-0.1676840186,
-0.0145409666,
-0.078594178,
0.1480417252,
-0.0763947517,
-0.1346728504,
-0.1982849985,
-0.1027286947,
0.133993417,
-0.0330301635,
0.0655058846,
0.3730123043,
-0.5284394622,
-0.1443893909,
0.0546989515,
-0.0276943333,
-0.2500070035,
-0.0474640019,
0.2256290913,
0.0221193358,
0.0573182888,
-0.3491016626,
0.4549741447,
0.2764908075,
-0.0304751657,
-0.0142187402,
-0.2228380293,
-0.0456287079,
-0.1861786842,
0.1986175776,
0.5018199682,
-0.3949009776,
-0.0255270526,
-0.2958825231,
-0.015885463,
0.170947805,
0.3286666572,
-0.1296214759,
0.3348803818,
-0.3377101123,
0.2680735588,
0.3865484893,
-0.3286769688,
-0.2652450204,
0.0421008356,
-0.0843797922,
-0.0166847482,
0.1469515413,
-0.0085747279,
0.1543224454,
0.0568279736,
0.2126374841,
0.1990092993,
0.0098339599,
0.0903030187,
-0.2157630771,
0.0875527784,
0.2370749265,
0.1217464954,
0.2510007322,
-0.0429095216,
0.1854169369,
0.1080473363,
0.213285327,
-0.3157054186,
0.3144259453,
0.0235330611,
0.2331553698,
-0.0648794696,
-0.0976153538,
-0.3182424307,
-0.034065146,
0.1612089574,
-0.0904949158,
0.3825850487,
-0.5090478063,
-0.1393895298,
-0.4510040879,
0.0097899213,
-0.4143909216,
-0.2540184855,
0.2000552416,
0.052461803,
0.1434836537,
0.1402628869,
-0.1512688994,
0.5673834682,
-0.3430081606,
0.0166806504,
-0.0704815835,
0.3489120603,
-0.328091085,
-0.2981008291,
0.2780768275,
0.2281983197,
0.0782784075,
-0.1092450619,
-0.1381413192,
0.2861903906,
-0.253243655,
0.0027441084,
0.131863147,
-0.2189347595,
-0.0235486813,
-0.465115726,
0.146089226,
0.1815543175,
0.2387861758,
-0.1993078887,
0.0126363924,
0.4493566155,
0.323233664,
0.1039564908,
-0.0041023269,
0.0095626563,
0.400985837,
0.0525742695,
-0.0183922462,
-0.1986187696,
0.2568434775,
-0.0751991943,
0.2822484374,
-0.2066951543,
-0.2829219103,
0.0135723166,
0.3775030673,
0.04914058,
0.4471915364,
0.1533786654,
-0.1032970697,
-0.0195986442,
-0.160162881,
0.1207782775,
0.3303132057,
0.0281340815,
-0.0462332778,
0.214480266,
-0.1015013158,
-0.1845665127,
0.2178306729,
-0.008869797,
0.052802112,
0.2028615177,
0.1282221079,
-0.0992851779,
-0.3807554841,
-0.2188048512,
-0.010253761,
0.3387619853,
-0.2657982707,
0.0051067546,
-0.1271505654,
-0.3741125762,
-0.1996120512,
0.2105917186,
-0.1274860948,
-0.217748493,
0.0389080346,
-0.0407144837,
0.0290986225,
0.1327520013,
0.091339156,
0.0010963529,
0.1120712906,
-0.1972095966,
-0.0206985101,
-0.2795609832,
-0.194481805,
0.1158321947,
0.3588796854,
0.15206182,
0.4850716591,
-0.3050045371,
0.0137912184,
-0.1548304111,
-0.4496574104,
-0.0058443779,
-0.3447467387,
0.072190538,
0.0923591405,
0.2036585361,
-0.0428538024,
-0.459580183,
0.3144105971,
-0.0724990368,
-0.3400882483,
0.1471816897,
-0.035082683,
-0.0772239268,
-0.0065324083,
-0.7115238905,
-0.302619338,
-0.3755903244,
-0.054547362,
-0.1178927869,
0.1017844826,
0.0756666213,
0.2219261229,
0.2336648703,
0.0522238649,
0.1142272726,
-0.2015260458,
-0.2000742555,
0.3361239135,
-0.3108820617,
-0.3760730326,
0.0944501013,
-0.1340972185,
0.3507674336,
-0.2822909951,
-0.3692142367,
0.2077043056,
-0.2674365342,
0.4491763711,
0.0926626697,
-0.139954105,
0.319835484,
0.0110755339,
-0.0922597945,
0.0202658176,
-0.2211429775,
0.1299604923,
-0.0406077616,
0.3319704533,
0.0096702464,
0.4739271402,
0.0118619204,
0.6238940954,
0.2154696882,
0.0228207298,
0.4156719744,
0.1736145616,
0.266926527,
-0.3062384129,
-0.4208290279,
0.2276844382,
-0.062833488,
0.1196225882,
0.0323034301,
-0.1091860086,
-0.2895951271,
-0.3509958088,
-0.3293345273,
-0.2467861474,
-0.3040595949,
0.1780604571,
-0.1339372545,
0.3296230435,
-0.1510365009,
-0.1977495253,
-0.147702828,
0.0920326188,
-0.0135459937,
0.3433564901,
-0.3183003366,
0.0888778716,
-0.3328640163,
-0.2641270161,
-0.4069665968,
0.2210448682,
0.1843548715,
0.0799064189,
-0.3019347191,
0.1988072991,
-0.0035242476,
-0.0613082238,
0.1738230139,
-0.1815274358,
0.2074806392,
0.2146145403,
0.0727861226,
-0.0819836482,
0.0115700513,
-0.3653078377,
0.1526091695,
0.2256941199,
0.1723294407,
-0.4129524529,
0.0829491168,
0.0229442753,
0.1335793883,
-0.1013844758,
-0.0803676769,
-0.1086107865,
-0.3618462384,
-0.5332010388,
0.2236562669,
0.3853725791,
0.4265885651,
-0.0034150183,
0.2268607616,
0.1188858226,
-0.087685287,
0.1869893223,
0.1162845343,
0.048270449,
0.1831127256,
0.1843985021,
0.0821008161,
0.0087145278,
-0.068203114,
0.6501704454,
0.2422441542,
-0.505664587,
-0.1315882355,
-0.2369924486,
0.1060503051,
0.194503665,
-0.0631325841,
0.0218658503,
-0.0195108764,
-0.0468128659,
0.0710329711,
0.2546419203,
0.2530524135,
0.3129630983,
-0.4240289032,
-0.3952421844,
0.0929748565,
-0.2013555467,
-0.019674398,
-0.0248847287,
0.2520103455,
-0.4255010486,
0.2545577288,
-0.004593201,
0.9560573101,
0.0347708799,
0.2339397967,
0.1494141817,
-0.1839841157,
0.1841395348,
0.0286606252,
-0.0593491755,
-0.1531004906,
0.1560578197,
-0.0298917741,
-0.0247322693,
0.2963771522,
-0.1079889759,
-0.3020828962,
0.0964456126,
-0.0278944448,
-0.1122332737,
-0.0903787687,
0.2975539565,
-0.1414355338,
-0.2657580972,
-0.5213632584,
0.1996455491,
-0.088616997,
0.1661654115,
0.054711435,
-0.1375195682,
-0.1689307392,
-0.3871940374,
-0.5968743563,
-0.0085986108,
-0.0872203708,
0.2162308544,
-0.1630768776,
-0.4250730872,
0.565302968,
0.3926411271,
0.6571986675,
0.134422332,
-0.1175620332,
0.130707711,
-0.1884858608,
-0.2416859418,
0.1248124316,
0.0581639633,
0.3777553439,
-0.2391426265,
-0.3237062693,
0.2999586463,
-0.00024895,
-0.1739886701,
-0.3041001856,
-0.1643059254,
-0.0943836495,
-0.2417110205,
-0.1273344457,
-0.0950590074,
-0.2003803104,
-0.3413677216,
0.1872370243,
0.1308599412,
-0.2187297046,
0.1325450838,
-0.0359439515,
-0.2003851533,
-0.0723342001,
0.3325363994,
0.2005322725,
0.026550211,
0.7404001355,
0.2742211819,
-0.2460491061,
-0.2686457932,
0.0441002399,
0.2170726359,
-0.1088812202,
0.1044075489,
0.0407161601,
-0.165808484,
-0.1185246706,
0.5871522427,
0.1434548199,
-0.0834699124,
0.0892258137,
-0.3736431301,
-0.5136308074,
0.1403678209,
0.0344945565,
0.0711076558,
0.1605324894,
0.5175589323,
0.1939788461,
0.2597581148,
-0.3545671999,
-0.0199797396,
-0.1265088022,
0.2201583833,
0.2564286888,
-0.1030638441,
0.1695169061,
0.0986915603,
0.1692530215,
0.2568181157,
-0.0744999051,
-0.2562867403,
-0.0297071449,
0.0684919208,
0.0609773435,
-0.0182958227,
0.0627056956,
-0.4180737734,
0.0465569496,
-0.01981242,
0.0902306437,
0.1790374517,
-0.1040822864,
0.2523131669,
-0.095429115,
0.1027108356,
0.2190434933,
-0.0049359142,
-0.2229175121,
-0.0316026807,
0.1160963476,
-0.011886606,
-0.008047659,
-0.132298857,
-0.0837072283,
0.0394299664,
-0.1864340901,
0.145743385,
0.4332695007,
-0.338683784,
0.0652096421,
0.048555892,
0.2000083327,
0.0899411887,
-0.3356075287,
0.2155046612,
0.1496498585,
0.1620501578,
-0.5012563467,
-0.0260764379,
-0.1048649997,
-0.1312340647,
0.1752731651,
0.0897098109,
-0.0530108176,
0.1718423218,
-0.0669196919,
0.0415270515,
0.2185547054,
-0.1688291728,
-0.0181572251,
0.1704830229,
-0.0814405009,
-0.0229545012,
0.396853596,
0.1706307232,
0.0817145929,
0.7542808652,
-0.4638424218,
0.2728511095,
0.0283808783,
0.0798993856,
0.0751688406,
-0.0453803353,
0.252248466,
0.0665885508,
-0.1579114646,
0.1691104174,
0.0004673675,
0.2341298461,
-0.1701087654,
0.1033054739,
0.069073379,
0.0303407125,
-0.1861154735,
0.0451409109,
-0.2474005818,
-0.1647728086,
-0.0838665068,
-0.1383021474,
-0.1634884626,
-0.004615901,
0.3166759908,
0.0317492001,
-0.1646093875,
-0.3379208744,
0.1691758782,
0.0094466154,
0.2030905485,
-0.2248622924,
0.2859092355,
0.4393923581,
0.0068210512,
0.2072543055,
0.2722851336,
0.5848599672,
0.2557890713,
-0.3220207393,
0.2581301332,
-0.1916146874,
-0.3510197103,
0.0153381415,
0.2082089484,
0.3283081651,
0.4378302097,
0.2944050133,
0.2015210986,
-0.16135028,
-0.0089412434,
0.2797060311,
0.097007975,
-0.0775780603,
0.1749490201,
-0.2106505334,
-0.1400343329,
-0.2763575315,
0.0291906707,
-0.4062030315,
-0.057447467,
0.2399068624,
0.058141239,
0.1419747621,
-0.2554051578,
0.103754878,
-0.00130984,
0.4438292384,
0.2324416786,
0.021444384,
-0.4274412692,
-0.2046919763,
-0.7065240145,
-0.0420195162,
-0.0805960074,
-0.2868052721,
-0.2410643101,
0.0310066566,
0.3893220425,
0.104070805,
0.1828174889,
-0.0337899104,
-0.2051883489,
-0.0601096377,
-0.2338096499,
-0.2392848432,
0.0388931483,
0.1976131052,
0.0517265797,
-0.0728842318,
0.1848480552,
0.4200250208,
0.0988643914,
-0.1860603392,
0.0358885527,
0.0744067729,
-0.2081198394,
0.054648295,
0.1556436568,
0.6450900435,
-0.185421288,
0.0329482779,
-0.0414810516,
-0.079691641,
-0.1384913325,
0.4796761274,
0.2791798711,
0.6704035401,
-0.2028393894,
-0.0311048143,
-0.0715388134,
0.4367157221,
-0.0289896093,
-0.3920419812,
-0.2773587406,
0.2260177433,
0.1188502312,
0.1552679986,
-0.1216096431,
0.3387446702,
-0.0839009285,
0.0555877537,
-0.3392179906,
-0.5602794886,
0.3288581669,
-0.1307485849,
-0.4304896593,
0.1566850692,
0.0662877336,
0.3002919555,
0.1371640563,
-0.7134619355,
0.2555776834,
0.2097671032,
-0.0324449316,
-0.1433792412,
0.1805780828,
0.0106321573,
0.1486516744,
-0.0487370938,
0.434638381,
-0.0354975015,
-0.076419726,
-0.0083866194,
-0.3005461097
] |
https://github.com/huggingface/datasets/issues/2825 | The datasets.map function does not load cached dataset after moving python script | This also happened to me on COLAB.
Details:
I ran the `run_mlm.py` in two different notebooks.
In the first notebook, I do tokenization since I can get 4 CPU cores without any GPUs, and save the cache into a folder which I copy to drive.
In the second notebook, I copy the cache folder from drive and re-run the run_mlm.py script (this time I uncomment the trainer code which happens after the tokenization)
Note: I didn't change anything in the arguments, not even the preprocessing_num_workers
| ## Describe the bug
The datasets.map function caches the processed data to a certain directory. When the map function is called another time with totally the same parameters, the cached data are supposed to be reloaded instead of re-processing. However, it doesn't reuse cached data sometimes. I use the common data processing in different tasks, the datasets are processed again, the only difference is that I run them in different files.
## Steps to reproduce the bug
Just run the following codes in different .py files.
```python
if __name__ == '__main__':
from datasets import load_dataset
from transformers import AutoTokenizer
raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1")
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
def tokenize_function(examples):
return tokenizer(examples["text"], padding="max_length", truncation=True)
tokenized_datasets = raw_datasets.map(tokenize_function, batched=True)
```
## Expected results
The map function should reload data in the second or any later runs.
## Actual results
The processing happens in each run.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: linux
- Python version: 3.7.6
- PyArrow version: 3.0.0
This is the first time I report a bug. If there is any problem or confusing description, please let me know 😄.
| 85 | The datasets.map function does not load cached dataset after moving python script
## Describe the bug
The datasets.map function caches the processed data to a certain directory. When the map function is called another time with totally the same parameters, the cached data are supposed to be reloaded instead of re-processing. However, it doesn't reuse cached data sometimes. I use the common data processing in different tasks, the datasets are processed again, the only difference is that I run them in different files.
## Steps to reproduce the bug
Just run the following codes in different .py files.
```python
if __name__ == '__main__':
from datasets import load_dataset
from transformers import AutoTokenizer
raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1")
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
def tokenize_function(examples):
return tokenizer(examples["text"], padding="max_length", truncation=True)
tokenized_datasets = raw_datasets.map(tokenize_function, batched=True)
```
## Expected results
The map function should reload data in the second or any later runs.
## Actual results
The processing happens in each run.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: linux
- Python version: 3.7.6
- PyArrow version: 3.0.0
This is the first time I report a bug. If there is any problem or confusing description, please let me know 😄.
This also happened to me on COLAB.
Details:
I ran the `run_mlm.py` in two different notebooks.
In the first notebook, I do tokenization since I can get 4 CPU cores without any GPUs, and save the cache into a folder which I copy to drive.
In the second notebook, I copy the cache folder from drive and re-run the run_mlm.py script (this time I uncomment the trainer code which happens after the tokenization)
Note: I didn't change anything in the arguments, not even the preprocessing_num_workers
| [
-0.1612098366,
0.0666726977,
0.1235988066,
0.1421175301,
0.121106714,
-0.0925721228,
0.4181310236,
0.109015733,
0.1731480807,
-0.0780498981,
0.1154463664,
0.6156933308,
-0.0211398844,
-0.1331947446,
0.1611655205,
0.2321512997,
0.1759636551,
0.1501921415,
0.0869102478,
-0.1811603606,
-0.1934700608,
0.0917443782,
-0.4173081219,
-0.1069658101,
-0.4597237706,
0.024705803,
-0.1255611479,
-0.0259202458,
0.2307695448,
-0.3739824593,
0.3416950405,
0.0286043845,
0.3293194771,
0.4340652525,
-0.0001240348,
-0.0629328936,
0.1899120212,
-0.1191304624,
-0.2047811151,
-0.2416989207,
-0.0412898101,
-0.0635029674,
0.1722030491,
-0.1777268648,
0.0049677789,
0.1066705287,
-0.0636679009,
-0.5965555906,
0.3043341041,
0.2677556276,
0.0943721384,
0.0372929499,
-0.2589371502,
0.2234523743,
-0.0972787961,
-0.1032886058,
-0.0847677141,
0.035640534,
0.2718015313,
-0.404243499,
-0.1610347927,
0.3430397213,
-0.2559065521,
0.198691383,
0.3800357878,
0.0639556348,
-0.131513685,
-0.3624011576,
0.3555089831,
-0.1061246544,
0.2827382088,
-0.428784281,
-0.1180438101,
-0.337541461,
-0.1085550785,
-0.1223058701,
0.2084060758,
-0.128808558,
0.1678154171,
0.1231878698,
-0.3631306291,
-0.0782391429,
0.1985265315,
0.2072060406,
-0.1494712681,
0.4666339159,
-0.1864187121,
0.2081395835,
-0.1478581131,
0.0597919151,
0.2998940945,
-0.1723802686,
0.0578929707,
0.4553025365,
-0.1857805401,
0.0049887151,
0.1042602807,
0.0164339282,
-0.0691989809,
-0.0429942906,
0.0992400497,
0.0713903233,
-0.0783547163,
0.056307584,
0.1188393161,
0.4971542954,
0.0955586433,
0.3987930119,
0.1923970133,
-0.0712577179,
-0.7449433208,
-0.1728951782,
-0.1321695298,
0.0351377353,
0.4841650128,
0.1077989191,
0.17354846,
-0.0119952038,
0.0163384527,
0.0511335544,
-0.2896791399,
-0.2111105025,
0.1056538075,
0.4156184793,
-0.0801940486,
0.1535261571,
-0.0949857384,
0.1437342316,
-0.1945281327,
0.0410145931,
-0.1212419868,
-0.1458106935,
-0.2652319968,
0.376537621,
0.2610454857,
0.1239272803,
0.4008920789,
0.1099495292,
-0.0333947316,
-0.2456987351,
0.3013129234,
-0.0583069995,
0.595838666,
0.1623577625,
-0.0118660629,
0.5882653594,
0.2430468798,
0.0027760118,
-0.1312852502,
0.2340513766,
-0.6722646952,
-0.0946236625,
0.4809671938,
-0.0038467501,
-0.1870750785,
-0.0904577821,
-0.219280988,
0.0583366714,
0.5520725846,
-0.2391305864,
0.051040899,
-0.3370290101,
-0.3707143068,
-0.4002168775,
0.1697915047,
0.5289990306,
-0.0908066928,
-0.1419554055,
-0.2303372622,
0.4682985842,
0.2079979479,
0.1423206776,
-0.3177858293,
0.2858112156,
-0.3038774133,
0.3247824311,
0.2061855197,
-0.4006856084,
-0.6898710728,
0.0444124043,
-0.0189112723,
0.2681936622,
-0.2062693238,
-0.0692021996,
0.2436886281,
-0.1089240015,
0.0306177381,
0.2620004714,
0.1978552043,
0.3179400563,
-0.2945932746,
-0.0697203949,
0.2854960859,
-0.2398788333,
0.1903081238,
0.0873954892,
0.0487782136,
0.0684909075,
0.1300725639,
0.0050788247,
0.1377951205,
0.0802840889,
0.1884411275,
-0.0057988036,
0.2942883968,
-0.0042527616,
-0.2619271278,
0.2479478717,
-0.2068690211,
-0.4193123877,
-0.1266339719,
-0.0922152996,
-0.0158471614,
-0.1833045632,
-0.422000438,
-0.3649419546,
0.0538755842,
0.2663185894,
0.1915195286,
0.152627185,
-0.1701245755,
0.239680782,
0.292529881,
-0.1287485212,
-0.026447434,
0.2079430372,
0.1729689389,
-0.1440103501,
-0.2889919877,
0.1064643264,
0.4621392488,
-0.1323595345,
-0.2746540606,
0.1695510149,
0.2887338102,
0.1612863988,
-0.2219233811,
0.0296786577,
0.1039764285,
0.0752546936,
0.2001731098,
0.2023636997,
0.123077333,
-0.0977188721,
0.1575122774,
0.3327406645,
0.1918521225,
0.1902762651,
-0.0139089376,
-0.0960235745,
0.0941476673,
-0.180335775,
0.1143563464,
-0.2381321341,
-0.1593665779,
-0.0464136153,
0.4003403187,
0.2147739977,
0.2689983249,
0.3867592812,
0.6588149667,
0.2824718952,
0.1987573057,
-0.0951083377,
-0.7050172091,
-0.2481070161,
0.0504063368,
0.2260110825,
0.3612974286,
-0.061594028,
-0.0229828246,
0.0431729481,
0.1944843829,
-0.0213192776,
0.0175202005,
-0.0430986919,
0.2224768251,
0.2194302529,
0.2184746265,
0.2063401937,
-0.1053411961,
0.1863431036,
0.2211710215,
0.2342160344,
-0.1675955355,
0.1337197721,
-0.4766330123,
0.222448647,
-0.1026736274,
-0.1299256235,
-0.0875686854,
-0.3107095361,
-0.1644131094,
0.4240450263,
0.199869588,
0.2177817971,
0.2266702503,
0.0542204827,
-0.0503889099,
-0.2862830162,
-0.2200454324,
-0.3234055042,
-0.2892322242,
-0.1396641731,
0.2144166231,
-0.0832649618,
-0.001452229,
0.005745545,
0.0393405333,
-0.300568819,
-0.3118559718,
0.0178972706,
0.1531229466,
0.089146167,
-0.3017292619,
-0.0930188075,
-0.3721901178,
-0.0375695601,
0.1113607064,
-0.4386265874,
-0.0483651534,
0.0744520873,
0.0122517906,
-0.0959480405,
0.1013628095,
-0.2232751697,
-0.2573917806,
0.030152902,
0.0776723027,
-0.0911218375,
-0.0248406678,
-0.0852266625,
-0.0929127485,
-0.0944373757,
-0.1782162786,
-0.1713507473,
-0.3487736583,
-0.2494968772,
0.3564101458,
-0.2292413563,
-0.1970823705,
-0.0286217928,
-0.0213069133,
0.2215863466,
0.2303264737,
-0.4229947925,
-0.1399635971,
-0.0464508682,
0.1276428849,
0.0407811701,
0.123117432,
0.4344370663,
0.0824709684,
0.1826770753,
-0.2157482952,
-0.216174379,
0.0058983192,
0.2345544398,
0.0929196626,
0.1258678138,
0.1468120217,
-0.0391458534,
0.8137372732,
0.3329549134,
-0.2891394496,
0.3945438266,
-0.0771216154,
0.1991162151,
-0.2179756463,
-0.3984622657,
-0.0565707311,
-0.1827712208,
-0.1908346564,
0.1693385839,
-0.0378277376,
-0.2157126367,
-0.0502850711,
-0.197391659,
-0.3199200928,
-0.2977831662,
0.1104876548,
-0.1729249507,
0.3215149939,
0.3823330998,
0.3232054114,
-0.589630127,
-0.1851328611,
0.1468662918,
0.0718661547,
0.3774529696,
0.066755794,
-0.2743136883,
-0.2742205858,
-0.2854090035,
0.225229919,
0.0543757938,
0.4561952651,
0.0394047797,
-0.1448571384,
0.0027040392,
0.097227186,
0.2747098207,
-0.4058228135,
0.0144492183,
0.2318763137,
-0.1690294892,
-0.084119156,
-0.1644562185,
0.0765200332,
0.4333055913,
0.1963190287,
0.4632546306,
0.2221891433,
0.0458110832,
-0.3195921481,
0.3016912341,
-0.2415536046,
-0.077608645,
-0.3578514457,
0.0358380601,
-0.4233495891,
-0.053377796,
-0.0722154528,
-0.1255104095,
0.0304972306,
-0.1190646738,
-0.2477417439,
-0.1286765039,
0.015927311,
0.2879601121,
0.4373825192,
0.1520212889,
0.2777382433,
0.243893221,
-0.0925457329,
0.2242039889,
0.2301966548,
-0.1936240792,
-0.1622548103,
-0.0704883188,
0.0264501013,
0.2585750818,
0.0949298367,
-0.3744320273,
-0.0717408359,
-0.1470505148,
-0.1333134472,
-0.199148044,
0.039007552,
0.1198322847,
0.2040015459,
-0.2184670568,
-0.4964646697,
0.1315726787,
0.1148118079,
-0.2241773605,
0.478428632,
-0.5268226862,
-0.2337673306,
0.4640761614,
-0.158907935,
0.6939277649,
-0.2030064315,
-0.0131728817,
-0.1569580883,
0.2673538625,
0.3175942302,
-0.2601320744,
0.193384558,
-0.4079013169,
-0.0705300346,
0.0176698714,
-0.2399064898,
-0.0603287332,
0.0622505397,
-0.3646008074,
0.2890157402,
0.045675084,
0.3356091976,
-0.0115408879,
0.2104548514,
0.2857832313,
-0.1372206807,
-0.0568747893,
0.0819547251,
0.06852898,
0.4716662169,
-0.0036625378,
0.0043439232,
0.0710878223,
-0.0449539162,
-0.0913435966,
0.1123438478,
-0.721181035,
0.3068854213,
-0.1747061759,
0.0336412042,
-0.0516437665,
0.243194446,
0.351048559,
0.1937649101,
-0.1282077432,
0.1868286133,
0.1930038929,
0.2486364394,
-0.0477923639,
-0.3190558851,
0.1430827826,
0.1476632357,
-0.1788545549,
-0.023466181,
-0.0624392368,
-0.3910651505,
-0.2537938058,
0.2718139291,
0.4700974524,
-0.1907342523,
-0.1381174624,
0.1859204471,
-0.0269161314,
-0.1034909263,
0.027351588,
0.1545141935,
0.0978820473,
0.5066224933,
-0.3040743768,
-0.3529685736,
0.0917914361,
0.5403844714,
0.1394843459,
-0.0734279081,
0.3789063096,
-0.2389584482,
-0.0740446597,
-0.1299584359,
0.0430363715,
-0.0469727106,
-0.235539645,
0.2335426062,
-0.0914036632,
0.1868418902,
0.0900250599,
-0.0355313085,
-0.2137665153,
0.0162533633,
-0.3044369817,
-0.3737489283,
-0.3308828771,
-0.0863462538,
0.0511151627,
-0.0865011215,
0.4272452295,
0.2910863459,
0.0601287708,
0.2189548165,
-0.1895188093,
0.2773416936,
0.3314104378,
0.1650748998,
-0.1432033926,
-0.0637517422,
0.0176946372,
-0.1543930918,
-0.0480547845,
0.1709004641,
-0.0499134623,
-0.1203971356,
-0.1994160265,
0.2219583541,
0.1711623967,
-0.0217311643,
-0.2919606566,
-0.3067835867,
0.1630868614,
-0.5828202963,
0.1274296045,
0.2063226104,
-0.0932626203,
0.0095134564,
0.3784592748,
-0.1983897239,
-0.0699825585,
0.0737888217,
-0.3343175054,
-0.153522104,
0.0062808022,
0.2818332314,
0.1830984652,
0.190015465,
-0.0367170274,
-0.223957032,
0.1002553403,
0.0655634552,
0.3466317952,
-0.2847486138,
-0.1031518802,
0.0366777554,
-0.2593295872,
0.2991610467,
-0.185558483,
-0.2341836095,
0.287458092,
0.0721718818,
-0.2727125883,
-0.1777081639,
0.4632627368,
0.1624136269,
-0.0538192391,
0.2088625878,
0.3971560001,
-0.1730989218,
0.2225063145,
0.0720846057,
0.640904963,
-0.2101063579,
0.3045121729,
0.0442037657,
0.08775381,
0.2990759313,
0.2292416394,
0.2153177857,
-0.1304763258,
0.2860999703,
0.0502049327,
0.2895383835,
0.2598910928,
-0.0994988307,
-0.0054140389,
-0.4730805457,
0.0157534443,
0.1380017102,
-0.3188563287,
0.3985811472,
-0.0782034248,
0.0821988434,
-0.0805377439,
-0.1319545805,
-0.0202694274,
0.2977824211,
-0.3603989184,
-0.1637579203,
0.1918501258,
-0.098647505,
0.0516193658,
0.0529702604,
0.021767484,
0.0985924602,
0.4778104424,
0.0822217613,
-0.3910200298,
-0.0628980175,
-0.3392600119,
0.1961565614,
0.4229790568,
-0.1809884012,
0.2635443211,
-0.3162926435,
0.0390429795,
-0.1846114844,
0.1090953276,
0.3859157562,
0.4559957087,
-0.209254995,
0.2142000347,
0.2236177474,
0.0662404746,
-0.1414038837,
0.3060624301,
-0.1343111992,
-0.0827825814,
-0.0785429999,
0.0203502811,
-0.0050411597,
-0.0961627737,
-0.0192345176,
0.3018618822,
-0.0153993107,
0.0497266464,
0.0164828785,
-0.0332659036,
-0.1139936447,
0.2352295667,
-0.2441953421,
0.2029224783,
0.5567868948,
-0.0086039864,
0.1496210992,
-0.3217223287,
0.0348837152,
0.1219481975,
0.217191413,
0.3149911761,
-0.2996418476,
-0.4097651243,
-0.2676974535,
-0.7540671825,
0.3354362845,
-0.1838141829,
0.221013695,
-0.058770977,
0.0805406421,
-0.0903604254,
-0.1343165934,
0.1655176878,
-0.052656766,
0.0231835693,
0.1846776009,
-0.2335086912,
-0.1410392374,
-0.3344894946,
0.0851671025,
0.1468012035,
-0.3403093517,
0.2742241919,
-0.1483899802,
0.0004370138,
-0.2321801186,
-0.1087328121,
0.0131374747,
0.0082707312,
0.8180854321,
0.1553946584,
0.1773555726,
-0.0341660045,
0.1784492731,
-0.2499226481,
0.0768157542,
-0.036919333,
0.02876167,
-0.0001646988,
0.0974192619,
-0.1688403785,
-0.1767753959,
-0.5049833059,
-0.1605620086,
0.2636040747,
-0.1114463508,
-0.0918089673,
0.0327230245,
-0.0583394058,
0.3533482552,
-0.0920665637,
0.4632118344,
-0.1938387007,
0.3721652627,
-0.2800164223,
-0.1676998138,
0.3528717458,
-0.6539235711,
-0.4455688596,
-0.2375840694,
0.3042320907,
-0.2936925292,
-0.2092624456,
-0.5068482161,
-0.0203976706,
0.4445631504,
-0.0114227692,
-0.2154308558,
0.0537240133,
-0.0901708528,
0.2256146967,
-0.2515746057,
0.2279306799,
0.2003180832,
-0.2147217244,
0.075331293,
-0.1473742574
] |
https://github.com/huggingface/datasets/issues/2825 | The datasets.map function does not load cached dataset after moving python script | #2854 fixed the issue :)
We'll do a new release of `datasets` soon to make the fix available.
In the meantime, feel free to try it out by installing `datasets` from source
If you have other issues or any question, feel free to re-open the issue :) | ## Describe the bug
The datasets.map function caches the processed data to a certain directory. When the map function is called another time with totally the same parameters, the cached data are supposed to be reloaded instead of re-processing. However, it doesn't reuse cached data sometimes. I use the common data processing in different tasks, the datasets are processed again, the only difference is that I run them in different files.
## Steps to reproduce the bug
Just run the following codes in different .py files.
```python
if __name__ == '__main__':
from datasets import load_dataset
from transformers import AutoTokenizer
raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1")
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
def tokenize_function(examples):
return tokenizer(examples["text"], padding="max_length", truncation=True)
tokenized_datasets = raw_datasets.map(tokenize_function, batched=True)
```
## Expected results
The map function should reload data in the second or any later runs.
## Actual results
The processing happens in each run.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: linux
- Python version: 3.7.6
- PyArrow version: 3.0.0
This is the first time I report a bug. If there is any problem or confusing description, please let me know 😄.
| 47 | The datasets.map function does not load cached dataset after moving python script
## Describe the bug
The datasets.map function caches the processed data to a certain directory. When the map function is called another time with totally the same parameters, the cached data are supposed to be reloaded instead of re-processing. However, it doesn't reuse cached data sometimes. I use the common data processing in different tasks, the datasets are processed again, the only difference is that I run them in different files.
## Steps to reproduce the bug
Just run the following codes in different .py files.
```python
if __name__ == '__main__':
from datasets import load_dataset
from transformers import AutoTokenizer
raw_datasets = load_dataset("wikitext", "wikitext-2-raw-v1")
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
def tokenize_function(examples):
return tokenizer(examples["text"], padding="max_length", truncation=True)
tokenized_datasets = raw_datasets.map(tokenize_function, batched=True)
```
## Expected results
The map function should reload data in the second or any later runs.
## Actual results
The processing happens in each run.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: linux
- Python version: 3.7.6
- PyArrow version: 3.0.0
This is the first time I report a bug. If there is any problem or confusing description, please let me know 😄.
#2854 fixed the issue :)
We'll do a new release of `datasets` soon to make the fix available.
In the meantime, feel free to try it out by installing `datasets` from source
If you have other issues or any question, feel free to re-open the issue :) | [
-0.1273979247,
0.0724145174,
0.0914586633,
0.009580696,
0.159963429,
-0.0660089254,
0.4047465324,
0.2460482419,
0.2259856164,
-0.0873800814,
0.1144413576,
0.5168567896,
-0.0583694205,
-0.1686525047,
0.1454253793,
0.1743041873,
0.2147075534,
0.1613186002,
0.0151960412,
-0.1748615503,
-0.2260829508,
-0.0004948247,
-0.3888831139,
-0.0530204438,
-0.4167586863,
0.1189523488,
-0.1496827602,
-0.0641776994,
0.2103360295,
-0.4711388648,
0.3424900174,
0.1252885163,
0.292412132,
0.3715001345,
-0.0001175742,
-0.0325825736,
0.2381014973,
-0.0887212753,
-0.1687704027,
-0.1984854341,
-0.0911654979,
-0.0784302726,
0.1140753403,
-0.1740202308,
0.0148621574,
-0.06703417,
-0.0580180511,
-0.5517786145,
0.3449010849,
0.2660756409,
0.1569478363,
0.0916646346,
-0.1324371696,
0.1409148276,
-0.091948241,
-0.1474611014,
-0.0402103402,
-0.1767194867,
0.288394779,
-0.407318145,
-0.1861931384,
0.2407979816,
-0.1470915973,
0.0880862325,
0.3459537923,
0.0264888145,
-0.1978944242,
-0.3031315207,
0.3096982539,
-0.0609250888,
0.3651443422,
-0.4083524942,
-0.2633100748,
-0.2716084123,
-0.1292909086,
-0.0306373015,
0.1167383641,
-0.2174401581,
0.2154379189,
0.1586682796,
-0.4689264596,
-0.1160351336,
0.1113868505,
0.1911922842,
-0.1262929738,
0.4278678894,
-0.0862309039,
0.1805841774,
-0.1728984416,
-0.0524417721,
0.1630066037,
-0.1279246658,
0.0592710823,
0.50383991,
-0.1977025121,
-0.0271315351,
0.1539092511,
-0.0486142337,
0.0574083626,
0.110337317,
-0.0095778611,
0.2165232748,
-0.1987570673,
-0.0295946784,
0.1525700092,
0.5008951426,
0.1595461667,
0.4105486274,
0.1037072465,
-0.0912698731,
-0.6493961215,
-0.1686203331,
-0.1285147965,
-0.0576790571,
0.6006768346,
0.0352323279,
0.2038291246,
-0.0009124205,
0.1098072752,
0.0979171097,
-0.0716018081,
-0.1900143921,
0.0337546356,
0.4491539896,
-0.0397839136,
0.3059892058,
-0.0941898227,
0.2121893317,
-0.1355016828,
0.056230709,
-0.1956658363,
-0.2108470351,
-0.1978412867,
0.2894206047,
0.2324399054,
0.1111558154,
0.3557313085,
0.0897308141,
-0.0325614102,
-0.1209443957,
0.2773367167,
0.0440261737,
0.6040593982,
0.1215033904,
-0.0231421702,
0.581835866,
0.2637909353,
0.0014682263,
-0.151149258,
0.1716974825,
-0.6476748586,
-0.1697177291,
0.3885863125,
0.0899606049,
-0.2056825459,
-0.1571824402,
-0.157363221,
-0.010751049,
0.513422966,
-0.2149524987,
-0.0122532435,
-0.3363992572,
-0.3412781954,
-0.3847540617,
0.1996462345,
0.4401878119,
-0.051230371,
-0.154995352,
-0.1365014613,
0.3355630338,
0.1325758994,
0.1070945859,
-0.3555152714,
0.3302603364,
-0.2539388537,
0.3772551417,
0.2882089317,
-0.4481259584,
-0.7045118213,
0.0289337076,
0.0148527846,
0.2682570219,
-0.2539272606,
-0.1451847255,
0.2909593284,
-0.1724201292,
-0.0794616491,
0.2683817148,
0.2199960351,
0.3350923061,
-0.2560369372,
-0.1363707483,
0.325718224,
-0.1690099835,
0.2152382135,
0.0236735288,
-0.0220003948,
0.0955118239,
0.1455845982,
-0.0097118225,
0.2444512993,
0.1607974768,
0.1761434078,
0.0880907625,
0.3228498697,
-0.074306421,
-0.2499890924,
0.2898175418,
-0.1547435224,
-0.4490092695,
-0.0971899629,
-0.1066672951,
-0.1024618,
-0.1602703333,
-0.5025528669,
-0.2756502032,
0.1304306835,
0.2702078223,
0.2430560738,
0.1169798076,
-0.2288284302,
0.1204119548,
0.3192529976,
-0.1263380647,
-0.0870230049,
0.1495256126,
0.1631319821,
-0.098877266,
-0.2654798627,
0.0836540088,
0.4113591909,
-0.0910933465,
-0.279155314,
0.2201689184,
0.2130370885,
0.2288494706,
-0.0658839941,
0.0021973029,
0.0230059642,
-0.0422745571,
0.1455112994,
0.2342194766,
0.088000685,
-0.1172927395,
0.1115300357,
0.2227393389,
0.2169860303,
0.2037429214,
-0.0055454075,
-0.0320435651,
0.1114532873,
-0.1695542037,
0.0991042554,
-0.2482890487,
-0.2217268497,
-0.1447315067,
0.3873696029,
0.1267311871,
0.3542510569,
0.3342262805,
0.6654901505,
0.1740915924,
0.1755020767,
0.0477037095,
-0.6600903273,
-0.2747761607,
-0.0900236666,
0.1625275612,
0.2718920112,
-0.0032675117,
-0.0523945875,
-0.0592412651,
0.1783801317,
0.0688536912,
0.0634290799,
-0.0239988863,
0.1010285169,
0.1833832711,
0.1937379837,
0.1529009044,
-0.1032355726,
0.1740344763,
0.1970165074,
0.2634406686,
-0.1638139784,
0.0178139582,
-0.4033915997,
0.4058871269,
-0.0110799335,
-0.2489237338,
-0.0473925732,
-0.3511258662,
-0.0560281575,
0.2632540464,
0.0609172955,
0.264762044,
0.0576649457,
-0.0182360709,
0.0062515289,
-0.3572271764,
-0.2716267705,
-0.4146779478,
-0.2249661833,
-0.0644469708,
0.1597519368,
-0.1184373051,
0.1242041215,
-0.022265885,
0.0828906,
-0.3509307802,
-0.2879319787,
-0.0605934411,
0.0784289539,
-0.0372277275,
-0.2462181598,
0.0106656253,
-0.2674308121,
-0.113778986,
0.1633507758,
-0.539167285,
-0.0414717272,
0.1899371147,
0.0173565038,
-0.0609045774,
0.1396536231,
-0.3343353868,
-0.1855298281,
0.0146547854,
0.0790278614,
-0.0025066957,
-0.0581582077,
-0.0783228278,
-0.080678612,
-0.129030779,
-0.2679095566,
-0.149546206,
-0.3555652499,
-0.3247367144,
0.3774476647,
-0.2381368726,
-0.2658271492,
-0.0918254703,
-0.0233524628,
0.215602085,
0.2184804231,
-0.3069498241,
-0.0684563071,
-0.1836547405,
0.1931986511,
0.0127494344,
0.1517701596,
0.4884287417,
0.1360830814,
0.0904132128,
-0.2151892781,
-0.0438366793,
0.0594991893,
0.1414824426,
0.0310215056,
0.0702759922,
0.0630451292,
-0.0158292651,
0.8712028861,
0.3394308984,
-0.2434749901,
0.3906832933,
-0.1166392416,
0.171231851,
-0.2813173234,
-0.3686887622,
-0.0921086818,
-0.1965301335,
-0.0361909643,
0.139881134,
0.0031315442,
-0.1993823051,
0.0029486343,
-0.1436539292,
-0.421038568,
-0.2925756574,
0.0749979243,
-0.0956346914,
0.2742872238,
0.324069649,
0.2811288536,
-0.6588517427,
-0.2407608926,
0.2088891864,
-0.0415101945,
0.3959530294,
-0.0165568087,
-0.3597283661,
-0.0942780375,
-0.3311761916,
0.2504333854,
0.0488031246,
0.4142694473,
0.0938736945,
-0.2136973739,
-0.0453538001,
0.0769309551,
0.2219335735,
-0.3888383508,
0.0473809652,
0.2300533354,
-0.1469590962,
-0.1887869686,
-0.1479171365,
0.0483715311,
0.2653461993,
0.1881248951,
0.4231223464,
0.1420794278,
0.0004305728,
-0.3593809903,
0.3494274914,
-0.2431686521,
-0.0385585353,
-0.3027107716,
0.0839015096,
-0.5145257115,
-0.0996666849,
-0.0840007961,
-0.0430639796,
-0.0338881202,
-0.1100081503,
-0.2868148983,
-0.1015883312,
-0.0205448084,
0.2367708981,
0.4534941316,
0.0386604704,
0.3291159272,
0.2824527621,
-0.1834538579,
0.1781742424,
0.2456831634,
-0.1328649521,
-0.2484770864,
-0.1681519896,
0.0905915201,
0.2635987401,
0.0388332009,
-0.2994983792,
-0.0738542899,
-0.1791801602,
-0.0201590173,
-0.3251712322,
0.0845128968,
0.223495096,
0.106638886,
-0.2621910572,
-0.4880996644,
0.1662350893,
0.0820385441,
-0.1978456974,
0.5077856183,
-0.32880193,
-0.1782569885,
0.5263878107,
-0.1672302485,
0.7030588388,
-0.2614826858,
0.022734791,
-0.1484291703,
0.3079773486,
0.2823582888,
-0.2782205641,
0.0377051644,
-0.4485217929,
-0.0738486201,
0.037074469,
-0.1756739616,
-0.0501449183,
0.0857840776,
-0.3708004355,
0.2630684376,
-0.0307352245,
0.4242713451,
0.0008204393,
0.2950989604,
0.2175412029,
-0.1611548215,
0.0709260106,
0.1475215554,
0.0955185369,
0.4126778841,
0.0385906585,
-0.0242801607,
0.0524467155,
-0.0692035705,
-0.1368081272,
0.1307314336,
-0.4697884619,
0.3341294229,
-0.152987048,
0.1190006286,
-0.0603017807,
0.3621899188,
0.396826148,
0.1983506829,
-0.2566064298,
0.264544487,
0.0978827626,
0.2188669741,
0.0133805349,
-0.20774737,
0.0840461627,
0.1926835477,
-0.2933793664,
0.0694653839,
-0.0555590168,
-0.3760699034,
-0.3659454584,
0.1993740201,
0.4698027968,
-0.3571552038,
-0.1596153378,
0.1972793937,
-0.0259872302,
-0.1202721,
0.1127588153,
0.1794178784,
0.0735143274,
0.4738394916,
-0.2469424605,
-0.3006403744,
0.0969441235,
0.5473601222,
0.086856477,
-0.0703575835,
0.4687357843,
-0.2822933197,
-0.0759918913,
-0.1681776792,
0.0628258288,
0.1285602748,
-0.3534423113,
0.0983738452,
-0.0091098845,
0.2103237957,
0.1147620007,
-0.0236001499,
-0.2950789332,
-0.0067663398,
-0.2794575989,
-0.2637416124,
-0.3657051325,
-0.0859149396,
0.0335575715,
0.0433957279,
0.3683927059,
0.1731266528,
0.0272705704,
0.284360379,
-0.2767242789,
0.2214019895,
0.3566821516,
0.1540381312,
-0.21069552,
-0.1227832213,
0.0563884676,
-0.2020300627,
0.0518807545,
0.1056119576,
-0.0767099559,
-0.2032086551,
-0.1498719454,
0.1702451408,
0.1818996072,
-0.0067311078,
-0.2689256966,
-0.1823144108,
0.1438464075,
-0.5760858059,
0.1551049948,
0.2457035035,
-0.0718844682,
0.1519442052,
0.4375982881,
-0.2316621542,
-0.0271023139,
0.0170645658,
-0.317301333,
-0.0495208353,
-0.1127289236,
0.2077109069,
0.1210681722,
0.1175578758,
-0.0437980816,
-0.1282810271,
0.2395605296,
0.093464829,
0.3994580507,
-0.2951729894,
-0.0739272982,
0.1158023924,
-0.1481215805,
0.2610619068,
-0.2970362306,
-0.2015530467,
0.314052254,
0.1927069128,
-0.2493177354,
-0.2417924106,
0.3572393358,
0.1374017149,
-0.0605152771,
0.0118387043,
0.2675012648,
-0.3133393526,
0.287717551,
0.0523607507,
0.5716955066,
-0.3205869496,
0.2812641263,
0.2066578716,
0.116771929,
0.1284618676,
0.1284875572,
0.1781933457,
-0.0683909059,
0.3175280392,
-0.0119767338,
0.3628059328,
0.1818665266,
-0.0623001866,
-0.0099811032,
-0.4547532201,
-0.0277171172,
0.1175223216,
-0.2924538255,
0.362899214,
-0.0239520818,
0.1671728343,
0.0781307146,
-0.1214317679,
-0.1191199571,
0.3189846873,
-0.3081091046,
-0.1804358214,
0.1479909867,
-0.0687659681,
0.0302226096,
0.0211461335,
-0.0196930189,
0.0529190749,
0.3540979028,
0.0921830237,
-0.3180074096,
-0.0996503979,
-0.1993026137,
0.0919282287,
0.4701644182,
-0.146915257,
0.1937374026,
-0.1774656475,
-0.013522312,
-0.0918060988,
0.2231091857,
0.4018780887,
0.4546130002,
-0.1482904851,
0.3653246462,
0.1168748587,
0.0095228404,
-0.1005840898,
0.3791519105,
-0.2120788842,
-0.1514654905,
-0.0042182952,
0.1118995994,
-0.0705501586,
-0.2121529132,
-0.0576566979,
0.3330325782,
-0.0077677034,
0.1469994485,
0.1022788808,
-0.0578391701,
-0.1023928672,
0.1804578304,
-0.2888157666,
0.1078636497,
0.5013056993,
0.0990961418,
0.1918561757,
-0.3919441402,
0.0726612508,
0.1490283161,
0.1968064457,
0.3455565274,
-0.3320750892,
-0.402328074,
-0.3072872162,
-0.6909539104,
0.3282343745,
-0.1399886608,
0.2348544002,
0.0173068494,
0.0463605002,
-0.155446887,
-0.1246748641,
0.2110841274,
-0.0270855892,
-0.0685893893,
0.2278549522,
-0.2249156684,
0.00688361,
-0.2312880158,
0.16727826,
0.1372520328,
-0.3825234771,
0.2694313228,
-0.1653430164,
0.0654589236,
-0.1703136265,
-0.0070524663,
0.0670720488,
-0.0568997487,
0.7861575484,
0.1311319619,
0.1361976415,
-0.0896749347,
0.255185008,
-0.3458392322,
0.029622294,
-0.0395722501,
0.0076722559,
-0.057893429,
0.0625894219,
-0.1507782191,
-0.2193171084,
-0.4397765696,
-0.2626309991,
0.2159588337,
-0.0473887771,
-0.1473798752,
-0.018344447,
0.0134375468,
0.3102090359,
-0.0609854721,
0.4418364763,
-0.1894946843,
0.3719446361,
-0.2240032554,
-0.26039657,
0.3844134808,
-0.5583377481,
-0.4699152708,
-0.2035342306,
0.2741135657,
-0.2419672608,
-0.2197266817,
-0.4971868694,
0.1145922989,
0.4538173676,
0.1593982577,
-0.1826810688,
0.0075181127,
-0.0619169548,
0.2377015054,
-0.2190840095,
0.3804854155,
0.1765699685,
-0.0737812147,
0.0922999233,
-0.0781691372
] |
https://github.com/huggingface/datasets/issues/2823 | HF_DATASETS_CACHE variable in Windows | Agh - I'm a muppet. No quote marks are needed.
set HF_DATASETS_CACHE = C:\Datasets
works as intended. | I can't seem to use a custom Cache directory in Windows. I have tried:
set HF_DATASETS_CACHE = "C:\Datasets"
set HF_DATASETS_CACHE = "C:/Datasets"
set HF_DATASETS_CACHE = "C:\\Datasets"
set HF_DATASETS_CACHE = "r'C:\Datasets'"
set HF_DATASETS_CACHE = "\Datasets"
set HF_DATASETS_CACHE = "/Datasets"
In each instance I get the "[WinError 123] The filename, directory name, or volume label syntax is incorrect" error when attempting to load a dataset | 17 | HF_DATASETS_CACHE variable in Windows
I can't seem to use a custom Cache directory in Windows. I have tried:
set HF_DATASETS_CACHE = "C:\Datasets"
set HF_DATASETS_CACHE = "C:/Datasets"
set HF_DATASETS_CACHE = "C:\\Datasets"
set HF_DATASETS_CACHE = "r'C:\Datasets'"
set HF_DATASETS_CACHE = "\Datasets"
set HF_DATASETS_CACHE = "/Datasets"
In each instance I get the "[WinError 123] The filename, directory name, or volume label syntax is incorrect" error when attempting to load a dataset
Agh - I'm a muppet. No quote marks are needed.
set HF_DATASETS_CACHE = C:\Datasets
works as intended. | [
-0.255751729,
0.4681490362,
-0.0086677559,
0.0938129574,
-0.0932581797,
0.2809451818,
0.3591794968,
0.0130970608,
0.5492924452,
0.1723242104,
-0.1086300462,
-0.3207075,
0.026963111,
-0.1362950206,
-0.088439852,
0.1600556523,
-0.0124638006,
0.2051331401,
0.3308285177,
0.1052643359,
-0.3471742868,
0.1946112812,
-0.116354689,
0.1732592881,
-0.220104292,
-0.027302064,
-0.228634268,
0.3452452421,
0.1202250347,
-0.0732738525,
0.2985122502,
0.1823600978,
0.4611558318,
0.4373254776,
-0.0001192506,
-0.0092274547,
0.136759907,
-0.1833862513,
-0.1629033834,
0.1200160906,
-0.2397750765,
0.2823107541,
-0.2644102573,
0.0286026001,
-0.0028127581,
0.2012720853,
0.0086845476,
-0.6335746646,
-0.2559029758,
0.3518752158,
0.1444559395,
-0.2560604215,
-0.4754670262,
-0.1310121715,
0.3233238757,
0.4254637957,
-0.1895279586,
0.1743330359,
0.0022012219,
-0.254737258,
-0.1301956326,
0.1984854341,
0.0741532147,
0.3853292167,
0.3594756126,
0.2023978382,
-0.0893620625,
0.1987681389,
0.2981182337,
-0.028904181,
0.9117114544,
-0.3926508427,
-0.067581743,
0.1137466952,
-0.188246429,
-0.3810407817,
0.3569798768,
0.1096178219,
-0.2152440101,
0.0923622102,
0.0322470181,
-0.2094033211,
-0.2581727207,
0.1735564917,
0.1536316872,
-0.0576696917,
0.0166171119,
-0.0853284895,
0.2099918723,
-0.1379802823,
0.3040872514,
-0.2422669828,
-0.4997878075,
0.1586569995,
-0.2232948542,
0.1928556859,
-0.293402791,
0.5975062251,
-0.0478699282,
0.0349803306,
0.0655476451,
0.1633856595,
-0.1220712811,
-0.0252833888,
-0.0709528178,
0.453186214,
0.0865992829,
0.0687404722,
0.059117984,
-0.1701721698,
-0.1758124679,
-0.0881454051,
-0.2163305879,
-0.4496686459,
0.2182221711,
0.0601515099,
-0.1500678807,
-0.5533458591,
0.0617662892,
-0.237815246,
0.18141599,
-0.1227407455,
0.2828262746,
0.3287510574,
0.1819509715,
-0.1554246545,
-0.2453552336,
0.1222560629,
-0.1248539165,
-0.0093621649,
-0.044213172,
0.1150958985,
-0.354519546,
0.4502945542,
0.4435073733,
0.1504653394,
-0.0859050229,
-0.1223053932,
0.2869008482,
0.1731904149,
-0.0152329989,
-0.2569103837,
-0.0175515898,
0.1623937935,
-0.0230819583,
0.3286895454,
0.0982614607,
-0.1849637479,
-0.2361325622,
0.2819384933,
-0.2798594832,
-0.4200796485,
-0.1352793574,
-0.0043290309,
-0.0733569339,
-0.3321877718,
-0.2920278609,
0.0190324746,
0.0367759839,
-0.0160887614,
0.0514024757,
0.0777061656,
-0.292544961,
-0.1867618263,
-0.1598433256,
0.4258092344,
-0.6456727982,
0.0549009144,
-0.1299290359,
0.0349944048,
0.1590848714,
0.3617970049,
-0.1314046979,
0.1441558152,
-0.3559283614,
0.0094692409,
0.2918245494,
-0.5207454562,
-0.4574786723,
0.0855566636,
0.386965543,
-0.297731936,
0.2846935987,
0.0809175372,
0.1606733203,
-0.1620030105,
0.0117002446,
0.2161011249,
0.0686242729,
-0.2469920516,
-0.0120328739,
-0.1828504801,
0.0438938253,
0.2415062636,
-0.0034103617,
0.4013130963,
0.1921705604,
0.0047577918,
0.0524617657,
-0.0943141729,
0.1270528138,
0.3066818714,
0.3205012977,
0.4424472451,
0.172731176,
0.1762866378,
-0.2260033786,
0.2912082076,
-0.1170078814,
-0.2172808647,
0.2878512144,
0.0115911812,
0.0161374733,
-0.295348525,
-0.2207857966,
-0.1811323166,
-0.0076175667,
0.2608888447,
0.2349209636,
-0.2933542728,
-0.0267954394,
0.658946991,
0.2265408039,
-0.1941642016,
0.2957313061,
-0.0269148275,
-0.1871455908,
-0.0424647257,
-0.1201220453,
-0.03113297,
0.2132747322,
0.1775701195,
-0.2325889915,
0.3005896807,
0.0022564493,
-0.0776357874,
0.3121988773,
0.3358966708,
-0.0462789908,
-0.0129096732,
0.5341505408,
0.0875009596,
-0.0112854727,
-0.0671752617,
-0.2536233962,
-0.0285799429,
-0.1555691808,
0.3571639955,
-0.2178201377,
-0.0085011944,
0.1321295649,
-0.0853911191,
0.3848133087,
-0.2251409441,
0.3857038319,
-0.2674026191,
0.1608099341,
-0.2045152038,
-0.0223740935,
0.050029628,
0.2000291049,
0.0464820489,
0.0900040269,
0.3841381967,
-0.2304574996,
-0.061300043,
0.1181384549,
0.1175848469,
0.6406486034,
0.146080792,
-0.0062329359,
0.0381108299,
-0.1333920956,
-0.0382689312,
0.1126073897,
-0.1810553521,
-0.005323194,
-0.0406739451,
-0.063500002,
-0.1481622607,
0.1249391586,
-0.3539216816,
-0.0089604892,
0.0603267625,
-0.4025310576,
0.1254863292,
-0.2663139403,
-0.2450940311,
-0.0418879427,
-0.3795002103,
-0.1935694069,
-0.1571079642,
-0.0439107455,
0.0742223561,
0.3458559215,
-0.0554470569,
-0.6163678765,
0.290779382,
-0.1938138008,
-0.5244791508,
-0.2568774223,
-0.0308192112,
-0.3730289638,
-0.0545445234,
0.0315492041,
0.0334093273,
0.0565823019,
0.0013546273,
0.4029371142,
-0.4331887066,
0.2553687096,
0.1720154136,
0.3753187358,
0.259696275,
0.0151375048,
-0.0903711021,
0.0453084484,
-0.1888086647,
0.2970714867,
-0.0839479044,
0.1273835897,
-0.0312311538,
-0.1942108721,
-0.0280023236,
0.0193987861,
0.2274570018,
-0.371692121,
-0.2120229304,
-0.2424017042,
0.1433387101,
0.0797451437,
0.3831819296,
-0.2004887164,
0.0953657553,
0.2932656109,
-0.3508399427,
-0.3323979378,
-0.3654142618,
0.5393198133,
-0.4161729217,
0.0118389223,
0.1936703473,
0.2055073678,
-0.2015190721,
0.2151326239,
-0.4242048264,
0.0964948088,
-0.1795958579,
0.080743432,
0.0342940763,
-0.0883575678,
0.1362948567,
-0.2433887273,
-0.0392159224,
-0.2442470491,
-0.5972720981,
0.2365328521,
-0.0724125504,
0.4560067058,
0.3650607467,
0.1059788167,
-0.0916180983,
0.4457306862,
0.0964219198,
0.1595917344,
0.4605712891,
-0.0735015124,
0.3184103966,
-0.013625171,
-0.0809269249,
0.1316010505,
-0.0595003366,
-0.2526791096,
0.2065048367,
0.2332797796,
-0.1624368131,
0.0254413337,
-0.0352298915,
0.1512825489,
-0.1032657623,
0.10922838,
-0.3504683077,
0.2434609383,
-0.0305180326,
-0.1385997534,
-0.3490745723,
-0.4369843006,
0.4707677364,
0.5245850682,
-0.2454289347,
0.4193022847,
-0.180752188,
0.1113051325,
-0.2360460311,
0.4586575627,
-0.1192058921,
0.3818718791,
-0.4501279294,
0.3092702329,
-0.1123983338,
-0.0147014335,
0.5110965967,
-0.4883121848,
0.170971036,
0.4405172467,
0.2215119004,
0.1607989371,
-0.2506407499,
0.0454852581,
0.3383986354,
-0.4176428318,
0.0901424214,
0.273848176,
-0.252769649,
0.0532200113,
-0.0272600148,
-0.4673557878,
-0.3163565993,
-0.091890581,
-0.0569569655,
0.0641008392,
-0.2776579261,
-0.1184408963,
0.040103361,
0.3600782752,
0.3120995164,
-0.1930747628,
0.167764008,
0.3788415492,
-0.1430609673,
0.3332850337,
0.2072021067,
-0.0836260393,
0.0844902247,
0.1856542379,
0.1926145554,
0.2615593374,
-0.1616356373,
-0.1108478159,
0.1743611693,
-0.2599951625,
0.1231755912,
0.0483880192,
-0.1970623881,
-0.1120581031,
0.030652862,
-0.0253594667,
-0.3931272328,
0.2096096873,
-0.0403302163,
-0.1396386325,
-0.2823478281,
-0.3919423521,
0.4164446294,
0.0744010955,
-0.1704442054,
0.4063180387,
0.3550945818,
-0.3551275134,
0.2467365563,
0.0781499743,
0.6511039138,
-0.2317092419,
0.0413218252,
-0.2924340069,
-0.4596006274,
-0.1842955053,
-0.194848612,
0.0385680422,
-0.1240282655,
-0.2318090051,
-0.1503693163,
-0.0903323889,
0.3203732967,
0.4188171625,
-0.1880280077,
0.5310231447,
0.0854854882,
0.0732922405,
0.1065137163,
-0.1120632291,
0.0741089508,
-0.3800898492,
0.2787133455,
0.1939139068,
-0.0752646923,
0.2040398568,
-0.0995933563,
0.1389645636,
-0.0254561901,
0.1124388203,
-0.4690794647,
-0.0862767994,
-0.5284093022,
0.0550689772,
-0.1582951546,
-0.1572610438,
0.1016683802,
0.1178227738,
0.4569374323,
-0.0447975062,
-0.2122695446,
0.1578859687,
0.1468142569,
0.0920070857,
-0.2134711295,
-0.0168732144,
0.0020501837,
-0.1468967497,
-0.2336988449,
-0.1124358773,
0.0008226149,
-0.583539784,
-0.2684061825,
-0.2306129038,
0.2315965444,
-0.0021106564,
-0.0922532529,
-0.182231307,
0.2307008356,
0.2200392783,
0.067613475,
-0.0096417591,
0.2099126279,
0.1866279393,
-0.4496473372,
-0.076336883,
-0.1141119525,
-0.0535052903,
-0.429633826,
-0.2064578086,
0.2676538825,
0.0008905828,
-0.0931641832,
-0.0913442224,
-0.0895099565,
0.0319170728,
-0.1400102228,
-0.2013544738,
-0.0653560907,
-0.1735586077,
0.1563197523,
-0.0680219233,
0.3295849562,
-0.1584561765,
-0.0559698716,
-0.4187108874,
-0.1215189323,
-0.1466018558,
-0.3597603142,
0.1639639735,
-0.2259473205,
-0.3933389485,
0.2311778665,
-0.1383241564,
-0.1911325455,
0.0001045801,
0.1545093656,
-0.0920530185,
-0.1364144087,
0.1935986727,
0.2963394225,
0.1862526387,
-0.0671018213,
-0.2437201291,
-0.0876427963,
-0.0772347972,
-0.2528387904,
0.1778157949,
0.01992286,
0.1567854732,
0.0384652689,
-0.2315368801,
0.0238004439,
-0.1065339148,
0.1360591948,
0.4663162827,
-0.1788536757,
0.3055635393,
0.0394605771,
-0.3041667342,
-0.3280590773,
0.0740607157,
0.3465184867,
0.3882780075,
0.0188466012,
0.180887565,
-0.0720002279,
-0.0405945107,
-0.292201519,
0.0611847341,
-0.0388223268,
-0.0349998176,
-0.2215376347,
-0.2312076092,
0.3110748231,
0.2208743691,
0.0948448777,
-0.0335953385,
-0.0226293206,
0.0144144595,
0.3749231696,
0.0413137674,
0.002353169,
-0.2669159174,
-0.1157440096,
-0.2078696638,
-0.1973183751,
0.4525611997,
0.3078550398,
0.0413306057,
0.0699677542,
-0.1190052778,
0.5813832879,
-0.1159402356,
-0.344371289,
0.2724401951,
-0.1668225825,
0.2911586463,
0.4228001237,
0.4892131388,
-0.029439088,
0.8494067192,
0.2110212445,
-0.0239870064,
0.3741269112,
-0.0340200737,
-0.2246541977,
-0.5847414732,
-0.1734254807,
0.1263132989,
0.2699769139,
0.2626488209,
-0.3228520155,
0.1719610244,
-0.1433336437,
-0.116176486,
-0.1790141761,
-0.4177320302,
0.1715868115,
-0.3374359012,
0.3003841043,
0.0978951305,
-0.1745758206,
0.0924209654,
0.0679261386,
-0.0253719129,
0.1279137433,
-0.2228806317,
0.0852084905,
0.076668933,
0.3389742374,
0.2513723671,
-0.1098923385,
-0.1288881302,
0.2159263641,
-0.2958227992,
0.1166778654,
0.4527233541,
0.040850915,
0.1794823259,
0.227303043,
-0.2377318442,
-0.053904634,
-0.2109176666,
0.0057932734,
-0.0493150502,
0.0424000174,
-0.0364364795,
-0.1378653347,
0.1513022333,
0.1018323675,
0.0331029408,
0.253862679,
-0.2496425509,
0.3161804378,
0.0220190696,
0.2991950512,
0.2000439018,
0.1922468394,
0.2069414705,
0.2616454363,
-0.2504758537,
-0.198916465,
0.3196479678,
-0.0838438123,
0.2157265097,
0.245430246,
0.0192265399,
0.1832868904,
0.4234257936,
0.1119876057,
0.3532932997,
-0.2295430601,
-0.0899120271,
-0.4763190448,
-0.0003466308,
-0.0555823483,
-0.266892463,
-0.047212258,
0.0526002347,
-0.0892348588,
-0.1452379376,
0.468803376,
-0.0866781026,
0.047286842,
0.2267994136,
-0.3549312949,
-0.010533819,
0.2644643188,
0.4981246293,
0.1589113325,
-0.5530817509,
0.0672092736,
0.4556225538,
-0.0252314135,
-0.0870582461,
-0.096190691,
0.4168115258,
0.0889466554,
0.4691796601,
-0.2186757624,
0.2127046287,
0.2576368451,
0.1848212332,
-0.4217244983,
0.0459138714,
0.0423347317,
-0.3932207227,
-0.0256989356,
0.1231914312,
-0.6304078698,
-0.0291163698,
-0.2919799685,
-0.0300271083,
0.1483547688,
0.2352729738,
-0.076676026,
0.3016293645,
-0.0349003002,
0.1033955514,
0.4050489366,
0.2613585293,
-0.1189397275,
0.281057924,
-0.2620741129,
0.1222635284,
0.3842461109,
-0.2537788749,
-0.3603965044,
0.0744024068,
0.3058952689,
0.052852314,
-0.1602580547,
-0.2085423172,
0.0974017829,
0.2296550572,
0.2220074832,
-0.2222032696,
0.0691855401,
-0.1327784956,
0.1328290254,
0.0688431859,
0.0415086262,
-0.0183697827,
-0.0479439944,
-0.3267987967,
0.0389853045
] |
https://github.com/huggingface/datasets/issues/2821 | Cannot load linnaeus dataset | Thanks for reporting ! #2852 fixed this error
We'll do a new release of `datasets` soon :) | ## Describe the bug
The [linnaeus](https://huggingface.co/datasets/linnaeus) dataset cannot be loaded. To reproduce:
```
from datasets import load_dataset
datasets = load_dataset("linnaeus")
```
This results in:
```
Downloading and preparing dataset linnaeus/linnaeus (download: 17.36 MiB, generated: 8.74 MiB, post-processed: Unknown size, total: 26.10 MiB) to /root/.cache/huggingface/datasets/linnaeus/linnaeus/1.0.0/2ff05dbc256108233262f596e09e322dbc3db067202de14286913607cd9cb704...
---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
<ipython-input-4-7ef3a88f6276> in <module>()
1 from datasets import load_dataset
2
----> 3 datasets = load_dataset("linnaeus")
11 frames
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
603 raise FileNotFoundError("Couldn't find file at {}".format(url))
604 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
--> 605 raise ConnectionError("Couldn't reach {}".format(url))
606
607 # Try a second time
ConnectionError: Couldn't reach https://drive.google.com/u/0/uc?id=1OletxmPYNkz2ltOr9pyT0b0iBtUWxslh&export=download/
``` | 17 | Cannot load linnaeus dataset
## Describe the bug
The [linnaeus](https://huggingface.co/datasets/linnaeus) dataset cannot be loaded. To reproduce:
```
from datasets import load_dataset
datasets = load_dataset("linnaeus")
```
This results in:
```
Downloading and preparing dataset linnaeus/linnaeus (download: 17.36 MiB, generated: 8.74 MiB, post-processed: Unknown size, total: 26.10 MiB) to /root/.cache/huggingface/datasets/linnaeus/linnaeus/1.0.0/2ff05dbc256108233262f596e09e322dbc3db067202de14286913607cd9cb704...
---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
<ipython-input-4-7ef3a88f6276> in <module>()
1 from datasets import load_dataset
2
----> 3 datasets = load_dataset("linnaeus")
11 frames
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
603 raise FileNotFoundError("Couldn't find file at {}".format(url))
604 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
--> 605 raise ConnectionError("Couldn't reach {}".format(url))
606
607 # Try a second time
ConnectionError: Couldn't reach https://drive.google.com/u/0/uc?id=1OletxmPYNkz2ltOr9pyT0b0iBtUWxslh&export=download/
```
Thanks for reporting ! #2852 fixed this error
We'll do a new release of `datasets` soon :) | [
-0.10985782,
-0.1431657225,
-0.0036667697,
0.5683763027,
0.2294619828,
-0.0716871992,
0.076433897,
0.3127032518,
0.1373580694,
0.0487763733,
-0.3296409845,
0.0350638106,
-0.0180283561,
-0.183469981,
0.1603862047,
-0.2352234423,
-0.1053618491,
-0.0622279681,
-0.4106488824,
0.1044703722,
-0.1308862865,
0.3101214767,
-0.0382800102,
-0.0052364022,
-0.0595478117,
-0.0635990649,
0.0269931406,
0.4038958251,
-0.0817028061,
-0.5142926574,
0.3658118248,
-0.0257586706,
0.2221755236,
0.6335693002,
-0.0001129524,
0.1002362743,
0.339446485,
-0.0037236735,
-0.4179124534,
-0.3696374297,
-0.14472875,
-0.1747755408,
0.1479741335,
-0.1763246357,
-0.1769500375,
0.1925735474,
-0.0365832895,
-0.448186934,
0.2486857772,
0.2116876394,
0.241895318,
0.2672028542,
0.3284203112,
-0.1788067967,
0.0594660528,
-0.0254499093,
-0.1043904126,
0.7655643225,
0.1173541397,
0.206379056,
0.0510813631,
0.3760932386,
0.090874061,
0.1604604423,
0.474983722,
0.0394843295,
0.2304541618,
-0.2688692808,
0.1130298525,
0.1952230632,
0.4000908434,
-0.1607926339,
-0.3665402234,
-0.1934895217,
0.0951566994,
-0.3805070519,
0.3234522343,
0.1300036609,
-0.2127991468,
0.1132354736,
-0.1234924793,
-0.1773455292,
-0.279269278,
0.2881271839,
-0.0447794199,
-0.1690956652,
-0.1575405896,
0.1463274509,
0.1806661934,
-0.1248239055,
-0.0539277717,
0.0094064213,
-0.0262685716,
0.2579780817,
-0.2460850477,
0.1773653477,
-0.0310984068,
0.1817287356,
0.2558599114,
0.0904840156,
-0.1404851228,
0.0120942369,
-0.095395036,
0.1886286438,
0.2989639342,
0.0496457517,
-0.0871777758,
0.0046280473,
0.2070225328,
0.503903985,
-0.2293080986,
-0.1274597794,
0.0119242854,
-0.2724319696,
0.1770057529,
-0.1214357242,
0.4966045022,
-0.3770103455,
-0.1082005352,
0.0917362273,
-0.0458592027,
0.048162695,
0.1512313038,
0.455162704,
-0.2580025792,
0.1544601917,
0.095444724,
0.0614505894,
-0.1204145998,
-0.1457550526,
-0.2277959883,
0.1879871786,
-0.1774338484,
0.0885477513,
0.3645630479,
-0.5190115571,
0.1639648378,
-0.0149770007,
0.2522335351,
-0.1167270988,
-0.0186834559,
-0.2165721357,
-0.1077896133,
0.311350435,
0.0228781626,
0.0862026662,
0.1767019033,
-0.1567439884,
-0.1832847595,
-0.0628961176,
-0.358212173,
-0.2106400728,
-0.0830556303,
0.1629568189,
-0.2142594457,
0.0662846491,
-0.3244726658,
-0.0464084521,
-0.1090324521,
-0.1943713278,
-0.1086108759,
-0.1355386525,
-0.1367979646,
-0.2091416866,
0.3754203916,
0.6375409365,
-0.0808181167,
0.0584751368,
-0.1234020293,
-0.0431573987,
0.1322186291,
0.3780943453,
-0.1198972613,
-0.0201252773,
-0.2446831465,
-0.107801877,
0.2805714905,
-0.3060964048,
-0.3442859054,
0.1149806976,
-0.0337683856,
0.3318836391,
-0.0532560572,
-0.037413083,
-0.03187849,
0.1323213577,
0.1931564659,
0.2832888365,
-0.0563491583,
-0.1293171197,
-0.2122821659,
-0.2594578266,
0.1632753611,
0.2174011469,
0.1880999506,
0.1501252353,
0.0770920441,
0.0468287691,
0.1308797002,
-0.0778295845,
0.0669319183,
0.1227842569,
0.1351914704,
0.4310697019,
-0.0718185902,
-0.371620506,
-0.4436383545,
0.3363803029,
-0.0314606428,
0.1913928241,
-0.1463511288,
0.0657708943,
-0.4101040363,
0.0308009163,
-0.078729488,
-0.1457377374,
0.1097631156,
0.0998462513,
0.0353454873,
0.2634497285,
-0.2242712975,
0.4821529984,
0.0530594364,
0.1775317192,
-0.4551771581,
0.2577252686,
-0.0347048901,
-0.0915880054,
0.0311277434,
0.1576483399,
0.1089983732,
-0.0902796388,
-0.1034416407,
0.3063958883,
0.0274118148,
-0.0405849256,
0.10882622,
-0.107061848,
0.0980548859,
-0.1691554636,
0.0670723617,
0.0534187146,
0.1921955943,
-0.0061212406,
-0.3353890777,
0.1313282996,
-0.1543353498,
0.2098011971,
0.0107587352,
0.0329193398,
0.3360374868,
-0.0081187487,
-0.0462263189,
-0.0963449925,
0.3444595337,
-0.1084641293,
0.4994328618,
-0.0924285874,
-0.368658036,
-0.1824692786,
-0.1115127802,
0.0226242393,
0.0863872245,
0.2621729076,
-0.1716369689,
-0.040045023,
0.0067797303,
0.1041771472,
0.3363498449,
0.0850468427,
0.0939542204,
0.0940390229,
0.0719723105,
-0.02452996,
0.1491380632,
-0.0482979603,
0.220009774,
0.0769660249,
0.1324652433,
0.064666152,
-0.4159028232,
-0.3394746184,
-0.0652084723,
0.3232427239,
-0.3425341845,
0.1666306555,
-0.1244771481,
-0.3035850525,
-0.2150222659,
-0.2546464801,
-0.4462386072,
-0.2368630469,
-0.3029859066,
0.5309481025,
0.1654845178,
0.0352374911,
-0.3215265572,
0.0583707094,
-0.0404531099,
-0.1734488606,
-0.1826367974,
-0.0247986652,
-0.1803614199,
0.0409550071,
0.2866385579,
0.165140897,
0.4407710135,
-0.0842782259,
-0.0442240387,
-0.2323413491,
-0.373041749,
-0.0294403508,
0.0091494378,
0.4914529026,
0.1717602611,
0.4271704555,
-0.1075664684,
-0.2444173396,
0.4784315526,
-0.0908168629,
0.0685490668,
0.0768225789,
-0.2036724091,
0.0741953179,
0.0008812025,
-0.52340132,
-0.3201754987,
-0.2964968979,
0.3565405309,
0.0888764262,
0.0241040532,
0.4940640926,
-0.0086904056,
0.114091903,
-0.0923537686,
0.1628054678,
-0.3461090028,
-0.6181037426,
0.3059365749,
-0.2781544924,
-0.4102417231,
0.0600083247,
0.1253890395,
0.3633439541,
-0.0327592194,
-0.6117787361,
-0.0045392439,
-0.1223775968,
0.1743088067,
-0.0899426565,
-0.1310318261,
0.0207808279,
-0.1267371178,
-0.0387924798,
0.0129933357,
-0.1978806555,
-0.1798409671,
-0.0088722128,
0.1235190928,
0.0039646029,
0.3006071448,
-0.0057003573,
0.5055920482,
0.125158608,
0.0853411034,
0.3692272604,
0.0511209741,
0.4881688356,
-0.3019176126,
-0.507080853,
-0.1335799396,
-0.1893319488,
0.025669843,
0.0054522119,
0.2143649161,
-0.1302414089,
-0.3036273122,
-0.2458688766,
-0.2516880631,
-0.2852418721,
0.1365142763,
-0.0992165953,
0.1378861964,
0.0290461481,
-0.1467989981,
-0.1984384209,
-0.1798205674,
-0.1898526251,
0.5857319832,
0.2828265131,
0.2692275047,
-0.4927920401,
0.2591661215,
-0.5437830091,
0.1316823363,
-0.0735206529,
0.4005360305,
-0.2426701635,
0.1835498959,
0.1185223013,
0.0203854814,
0.385563314,
0.147842586,
0.4297838211,
0.2452254146,
-0.3469168246,
-0.4284435809,
0.1479192674,
0.1272662282,
-0.0030362457,
0.4096187055,
0.3735682368,
-0.2575896382,
-0.0308735576,
0.1607464254,
0.2486562729,
-0.1679402292,
-0.2994203269,
-0.2562254071,
-0.2295898497,
-0.3067691028,
-0.0736398101,
-0.0116302595,
0.3966581225,
0.3705371618,
0.0559868589,
-0.1036737263,
0.0487804264,
0.2401848137,
0.2222823352,
0.1429225504,
0.0422945991,
0.4125689864,
0.4882107377,
0.1184620857,
0.0244305413,
0.6174944639,
-0.0276210476,
-0.6739395857,
-0.0755872428,
0.2311674505,
-0.0158602074,
0.1919619739,
-0.1942848414,
-0.1250994205,
0.1588990539,
0.13960132,
-0.0812210366,
0.2773298919,
0.0574067309,
0.129148379,
-0.4189868569,
-0.4065653682,
0.461415261,
0.0728987306,
-0.0248797759,
0.3173592389,
0.185202077,
-0.1900640428,
0.0608676672,
-0.1444211453,
0.9203284383,
-0.0377893373,
0.1290330887,
0.3462240398,
-0.0819156766,
0.5078810453,
0.0777398199,
0.0116898939,
-0.2593929768,
-0.2144421637,
-0.0198575892,
-0.1125157475,
0.1943308115,
-0.1327902377,
-0.0507675186,
0.4270287156,
0.0441671759,
0.0233231243,
0.0325408056,
0.19106552,
-0.0050380211,
-0.2730119228,
-0.5505607128,
0.1895081401,
-0.1917115301,
0.471381098,
-0.1486088634,
-0.1439523399,
-0.0907168984,
-0.1318974495,
-0.0942243934,
0.1017730832,
-0.1582669914,
0.3013029099,
-0.0296495613,
-0.3180107474,
-0.018056035,
0.1300046295,
-0.0597781055,
0.164003551,
-0.3081129491,
0.2088378817,
-0.1724809408,
-0.2006233931,
0.1004104316,
0.1756676286,
0.1397542804,
-0.1888619661,
-0.1557834744,
0.0061079422,
-0.0746378303,
-0.3447104692,
0.0671191812,
-0.0123196803,
-0.0949990675,
-0.1176988631,
-0.2597030699,
-0.1652002931,
0.1919191927,
-0.0706138834,
0.1399460435,
0.2263595462,
0.0399866402,
-0.109212026,
0.2789070606,
-0.263368547,
-0.0934582427,
0.6049336791,
-0.0435960218,
-0.2974512577,
0.3684127927,
0.2711161971,
-0.1591366529,
-0.0773260519,
0.029681623,
-0.0529256016,
-0.5901024342,
0.1162421703,
0.022121951,
0.3236809075,
-0.1370931864,
-0.1013463512,
0.2540921569,
-0.3785054386,
0.1729756296,
-0.6587609649,
-0.2781507373,
0.2384359986,
-0.2570829988,
0.1325253844,
0.137577042,
0.0773723423,
-0.1278795898,
0.0461510196,
-0.2828449309,
0.2159305364,
-0.0680314228,
-0.0153444633,
0.467515409,
-0.0501255207,
0.1522689909,
-0.146981746,
0.1267456263,
0.0237755924,
-0.1837631464,
-0.1875146031,
-0.1944704652,
0.1109413356,
-0.1449027807,
-0.2054653317,
-0.0715204775,
-0.2063227892,
-0.0248487331,
-0.1483224928,
0.0929170996,
0.4028232098,
-0.0033538286,
-0.0944648534,
0.079176262,
0.1351013631,
-0.2862478495,
0.3571731448,
0.012407247,
-0.0937271565,
0.0591623299,
-0.0165074077,
-0.1653703302,
-0.1095688492,
-0.317979008,
-0.0277944207,
-0.0287070908,
0.0027032811,
0.5015748143,
-0.0748102963,
0.0646539256,
0.2290387452,
0.1794669926,
0.180026561,
-0.0876838565,
0.1274282932,
0.0532916225,
0.1653981954,
-0.3052540421,
-0.0202533305,
0.1616716534,
0.0090712979,
-0.0189884529,
0.1019240916,
-0.0128978118,
0.0412566066,
-0.151783675,
0.0929419994,
0.4723516405,
-0.0426668711,
0.13295798,
0.1896079928,
-0.1569471508,
-0.1234830394,
0.2636793554,
0.1779015809,
0.0847953632,
0.6215697527,
-0.1151486486,
0.1475508213,
-0.1662748903,
0.0233477876,
-0.0067592077,
-0.258376658,
-0.3491345048,
0.3788990378,
0.0265691392,
0.0520992577,
-0.091209881,
0.2827592194,
-0.295037508,
-0.2381262183,
-0.1105133146,
0.1157538146,
-0.1052899659,
0.0295345969,
0.0085168853,
-0.2364257127,
-0.140932858,
0.0166417137,
-0.183215633,
-0.2049672157,
0.3693361878,
0.2010637522,
-0.2949980199,
-0.4677323699,
-0.3516992927,
0.3162502944,
-0.0246516317,
-0.1387358606,
0.2355431765,
0.3972218037,
-0.1357554793,
0.182545945,
0.3464147747,
0.5268881917,
0.1495817751,
0.1987734437,
0.1265125424,
-0.0913281813,
-0.0762352496,
-0.1071187183,
0.1564548165,
0.0565243587,
0.1400638521,
0.3333318532,
0.2052952051,
-0.1565947384,
0.219028011,
-0.1009883285,
0.3223035932,
-0.4391767085,
0.3071795106,
-0.2974651456,
0.0331953317,
-0.1077921242,
0.0944546163,
-0.2446488142,
0.0657374561,
0.2872646749,
0.0876967683,
-0.0261809416,
-0.0293234885,
0.063077122,
0.0814956129,
0.5135880709,
0.2220083773,
0.0571158044,
-0.4488471448,
-0.2352751195,
-0.8884502649,
0.107644029,
-0.2813794315,
-0.1105365679,
0.2011600882,
-0.0130072236,
-0.0319681987,
0.2776531577,
-0.0550290942,
0.0415959619,
-0.0766467452,
-0.0145773999,
-0.2234960347,
-0.2428143024,
-0.0475628115,
-0.0204233043,
-0.0823249966,
-0.3094792962,
0.1845411509,
-0.213631928,
0.0460991636,
-0.0357470289,
0.0285497531,
0.0127831623,
0.2756361663,
0.3079811037,
0.2152010649,
0.6308566928,
0.0293049142,
-0.2888160944,
-0.3502054513,
-0.553030014,
0.1024945378,
0.4333720803,
0.2024979889,
0.5229715705,
-0.1057332456,
-0.3106371164,
-0.2398285568,
0.6266825199,
-0.1735198498,
0.0534488671,
-0.1775567532,
0.0458976999,
0.0100545734,
0.3290855587,
-0.0232770219,
0.3484041095,
-0.1739286184,
0.1046599895,
-0.1560463011,
-0.3812662363,
0.6492170095,
-0.4117072821,
-0.2752857208,
-0.2286068499,
0.1440553665,
0.2265021503,
-0.103351742,
-0.4917485714,
0.1499262452,
0.3424099684,
0.1057307422,
-0.3156128526,
0.2155573219,
-0.2473870069,
-0.0007565469,
-0.06076454,
0.592141211,
0.0151255149,
-0.3535508513,
0.2004110515,
-0.0902962685
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | ```
Using custom data configuration default
Downloading and preparing dataset reddit/default (download: 2.93 GiB, generated: 17.64 GiB, post-processed: Unknown size, total: 20.57 GiB) to /Volumes/My Passport for Mac/og-chat-data/reddit/default/1.0.0/98ba5abea674d3178f7588aa6518a5510dc0c6fa8176d9653a3546d5afcb3969...
Downloading: 13%
403M/3.14G [44:39<2:27:09, 310kB/s]
---------------------------------------------------------------------------
timeout Traceback (most recent call last)
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in _error_catcher(self)
437 try:
--> 438 yield
439
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in read(self, amt, decode_content, cache_content)
518 cache_content = False
--> 519 data = self._fp.read(amt) if not fp_closed else b""
520 if (
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/http/client.py in read(self, amt)
458 b = bytearray(amt)
--> 459 n = self.readinto(b)
460 return memoryview(b)[:n].tobytes()
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/http/client.py in readinto(self, b)
502 # (for example, reading in 1k chunks)
--> 503 n = self.fp.readinto(b)
504 if not n and b:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/socket.py in readinto(self, b)
703 try:
--> 704 return self._sock.recv_into(b)
705 except timeout:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/ssl.py in recv_into(self, buffer, nbytes, flags)
1240 self.__class__)
-> 1241 return self.read(nbytes, buffer)
1242 else:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/ssl.py in read(self, len, buffer)
1098 if buffer is not None:
-> 1099 return self._sslobj.read(len, buffer)
1100 else:
timeout: The read operation timed out
During handling of the above exception, another exception occurred:
ReadTimeoutError Traceback (most recent call last)
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/requests/models.py in generate()
757 try:
--> 758 for chunk in self.raw.stream(chunk_size, decode_content=True):
759 yield chunk
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in stream(self, amt, decode_content)
575 while not is_fp_closed(self._fp):
--> 576 data = self.read(amt=amt, decode_content=decode_content)
577
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in read(self, amt, decode_content, cache_content)
540 # Content-Length are caught.
--> 541 raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
542
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/contextlib.py in __exit__(self, type, value, traceback)
134 try:
--> 135 self.gen.throw(type, value, traceback)
136 except StopIteration as exc:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in _error_catcher(self)
442 # there is yet no clean way to get at it from this context.
--> 443 raise ReadTimeoutError(self._pool, None, "Read timed out.")
444
ReadTimeoutError: HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out.
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
/var/folders/3f/md0t9sgj6rz8xy01fskttqdc0000gn/T/ipykernel_89016/1133441872.py in <module>
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
669 split_dict = SplitDict(dataset_name=self.name)
670 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 671 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
672
673 # Checksums verification
~/.cache/huggingface/modules/datasets_modules/datasets/reddit/98ba5abea674d3178f7588aa6518a5510dc0c6fa8176d9653a3546d5afcb3969/reddit.py in _split_generators(self, dl_manager)
73 def _split_generators(self, dl_manager):
74 """Returns SplitGenerators."""
---> 75 dl_path = dl_manager.download_and_extract(_URL)
76 return [
77 datasets.SplitGenerator(
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in download_and_extract(self, url_or_urls)
287 extracted_path(s): `str`, extracted paths of given URL(s).
288 """
--> 289 return self.extract(self.download(url_or_urls))
290
291 def get_recorded_sizes_checksums(self):
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in download(self, url_or_urls)
195
196 start_time = datetime.now()
--> 197 downloaded_path_or_paths = map_nested(
198 download_func,
199 url_or_urls,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, types)
194 # Singleton
195 if not isinstance(data_struct, dict) and not isinstance(data_struct, types):
--> 196 return function(data_struct)
197
198 disable_tqdm = bool(logger.getEffectiveLevel() > logging.INFO) or not utils.is_progress_bar_enabled()
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in _download(self, url_or_filename, download_config)
218 # append the relative path to the base_path
219 url_or_filename = url_or_path_join(self._base_path, url_or_filename)
--> 220 return cached_path(url_or_filename, download_config=download_config)
221
222 def iter_archive(self, path):
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
286 if is_remote_url(url_or_filename):
287 # URL, so get it from the cache (downloading if necessary)
--> 288 output_path = get_from_cache(
289 url_or_filename,
290 cache_dir=cache_dir,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
643 ftp_get(url, temp_file)
644 else:
--> 645 http_get(
646 url,
647 temp_file,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in http_get(url, temp_file, proxies, resume_size, headers, cookies, timeout, max_retries)
451 disable=bool(logging.get_verbosity() == logging.NOTSET),
452 )
--> 453 for chunk in response.iter_content(chunk_size=1024):
454 if chunk: # filter out keep-alive new chunks
455 progress.update(len(chunk))
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/requests/models.py in generate()
763 raise ContentDecodingError(e)
764 except ReadTimeoutError as e:
--> 765 raise ConnectionError(e)
766 else:
767 # Standard file-like object.
ConnectionError: HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out.
``` | ## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
| 646 | Downloading “reddit” dataset keeps timing out.
## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
```
Using custom data configuration default
Downloading and preparing dataset reddit/default (download: 2.93 GiB, generated: 17.64 GiB, post-processed: Unknown size, total: 20.57 GiB) to /Volumes/My Passport for Mac/og-chat-data/reddit/default/1.0.0/98ba5abea674d3178f7588aa6518a5510dc0c6fa8176d9653a3546d5afcb3969...
Downloading: 13%
403M/3.14G [44:39<2:27:09, 310kB/s]
---------------------------------------------------------------------------
timeout Traceback (most recent call last)
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in _error_catcher(self)
437 try:
--> 438 yield
439
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in read(self, amt, decode_content, cache_content)
518 cache_content = False
--> 519 data = self._fp.read(amt) if not fp_closed else b""
520 if (
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/http/client.py in read(self, amt)
458 b = bytearray(amt)
--> 459 n = self.readinto(b)
460 return memoryview(b)[:n].tobytes()
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/http/client.py in readinto(self, b)
502 # (for example, reading in 1k chunks)
--> 503 n = self.fp.readinto(b)
504 if not n and b:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/socket.py in readinto(self, b)
703 try:
--> 704 return self._sock.recv_into(b)
705 except timeout:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/ssl.py in recv_into(self, buffer, nbytes, flags)
1240 self.__class__)
-> 1241 return self.read(nbytes, buffer)
1242 else:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/ssl.py in read(self, len, buffer)
1098 if buffer is not None:
-> 1099 return self._sslobj.read(len, buffer)
1100 else:
timeout: The read operation timed out
During handling of the above exception, another exception occurred:
ReadTimeoutError Traceback (most recent call last)
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/requests/models.py in generate()
757 try:
--> 758 for chunk in self.raw.stream(chunk_size, decode_content=True):
759 yield chunk
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in stream(self, amt, decode_content)
575 while not is_fp_closed(self._fp):
--> 576 data = self.read(amt=amt, decode_content=decode_content)
577
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in read(self, amt, decode_content, cache_content)
540 # Content-Length are caught.
--> 541 raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
542
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/contextlib.py in __exit__(self, type, value, traceback)
134 try:
--> 135 self.gen.throw(type, value, traceback)
136 except StopIteration as exc:
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/urllib3/response.py in _error_catcher(self)
442 # there is yet no clean way to get at it from this context.
--> 443 raise ReadTimeoutError(self._pool, None, "Read timed out.")
444
ReadTimeoutError: HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out.
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
/var/folders/3f/md0t9sgj6rz8xy01fskttqdc0000gn/T/ipykernel_89016/1133441872.py in <module>
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs)
845
846 # Download and prepare data
--> 847 builder_instance.download_and_prepare(
848 download_config=download_config,
849 download_mode=download_mode,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
613 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
614 if not downloaded_from_gcs:
--> 615 self._download_and_prepare(
616 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
617 )
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
669 split_dict = SplitDict(dataset_name=self.name)
670 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 671 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
672
673 # Checksums verification
~/.cache/huggingface/modules/datasets_modules/datasets/reddit/98ba5abea674d3178f7588aa6518a5510dc0c6fa8176d9653a3546d5afcb3969/reddit.py in _split_generators(self, dl_manager)
73 def _split_generators(self, dl_manager):
74 """Returns SplitGenerators."""
---> 75 dl_path = dl_manager.download_and_extract(_URL)
76 return [
77 datasets.SplitGenerator(
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in download_and_extract(self, url_or_urls)
287 extracted_path(s): `str`, extracted paths of given URL(s).
288 """
--> 289 return self.extract(self.download(url_or_urls))
290
291 def get_recorded_sizes_checksums(self):
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in download(self, url_or_urls)
195
196 start_time = datetime.now()
--> 197 downloaded_path_or_paths = map_nested(
198 download_func,
199 url_or_urls,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, types)
194 # Singleton
195 if not isinstance(data_struct, dict) and not isinstance(data_struct, types):
--> 196 return function(data_struct)
197
198 disable_tqdm = bool(logger.getEffectiveLevel() > logging.INFO) or not utils.is_progress_bar_enabled()
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/download_manager.py in _download(self, url_or_filename, download_config)
218 # append the relative path to the base_path
219 url_or_filename = url_or_path_join(self._base_path, url_or_filename)
--> 220 return cached_path(url_or_filename, download_config=download_config)
221
222 def iter_archive(self, path):
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
286 if is_remote_url(url_or_filename):
287 # URL, so get it from the cache (downloading if necessary)
--> 288 output_path = get_from_cache(
289 url_or_filename,
290 cache_dir=cache_dir,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
643 ftp_get(url, temp_file)
644 else:
--> 645 http_get(
646 url,
647 temp_file,
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/datasets/utils/file_utils.py in http_get(url, temp_file, proxies, resume_size, headers, cookies, timeout, max_retries)
451 disable=bool(logging.get_verbosity() == logging.NOTSET),
452 )
--> 453 for chunk in response.iter_content(chunk_size=1024):
454 if chunk: # filter out keep-alive new chunks
455 progress.update(len(chunk))
/usr/local/anaconda3/envs/og-data-env/lib/python3.9/site-packages/requests/models.py in generate()
763 raise ContentDecodingError(e)
764 except ReadTimeoutError as e:
--> 765 raise ConnectionError(e)
766 else:
767 # Standard file-like object.
ConnectionError: HTTPSConnectionPool(host='zenodo.org', port=443): Read timed out.
``` | [
-0.3638955653,
-0.1421308368,
-0.0797189698,
0.120046936,
0.166841954,
0.1872061491,
0.038604971,
0.2438802719,
-0.0571570992,
-0.133161813,
-0.0627648011,
0.1441401243,
0.3488284945,
-0.0019751564,
-0.0935342014,
0.2313062698,
0.0492558032,
-0.1813278198,
-0.065773204,
0.0541190207,
-0.0644875765,
0.1003924385,
-0.1485517174,
-0.1538380086,
-0.1942006648,
-0.0592069626,
-0.1093631461,
-0.1202172041,
-0.2129876614,
-0.2641816735,
0.317638129,
0.1678794324,
-0.0866456404,
0.562482655,
-0.0001095642,
-0.2061457038,
0.3377981782,
0.078848429,
-0.4498389959,
-0.464826405,
-0.2613341808,
-0.1185770631,
0.0888730958,
0.049372673,
0.0792770088,
0.1067879349,
0.0705107599,
-0.4283183217,
0.3173297644,
0.4327318966,
0.2017596811,
0.1783607602,
0.2336224169,
-0.1382244378,
0.1232371032,
0.0802626312,
0.0134521797,
0.4224594533,
0.1959224492,
-0.1228381246,
0.2677883506,
0.0269402266,
-0.0859173983,
0.2206047773,
-0.1385429949,
-0.0203243904,
0.1799731106,
-0.4049912393,
-0.0455893911,
0.1644668132,
0.8760612607,
-0.0498089232,
-0.4123395681,
-0.269954741,
0.1099987105,
-0.0107128024,
0.3056143522,
0.3553998768,
-0.4313036203,
0.2249757797,
-0.283839792,
0.0700308532,
0.0303666741,
0.3651781082,
0.1223643497,
-0.0159727447,
0.0214314647,
0.2920618057,
0.0948146284,
-0.0455701388,
0.270940274,
-0.3481394947,
0.0262930449,
-0.073099643,
-0.4070396721,
-0.1091763079,
0.0345305055,
0.157389313,
0.1790523827,
0.1141360253,
-0.0329118073,
-0.1888143569,
-0.0093014091,
0.1332781613,
0.3627251983,
-0.0514030829,
0.0227711666,
0.1718333364,
0.2054777443,
-0.0747329295,
-0.0656797439,
-0.0005853469,
0.0896899179,
-0.0134079382,
0.1178110689,
-0.12488316,
0.3334633708,
-0.2927747369,
-0.264020443,
-0.0683692396,
0.121078752,
-0.0408359841,
-0.1997187138,
0.1755993217,
-0.4186322391,
0.1737186909,
-0.0235132463,
0.1207358837,
-0.2860051095,
-0.3834681809,
-0.0888735205,
-0.0542665608,
-0.227024287,
-0.0607820526,
-0.0255942941,
-0.0167296696,
0.095635958,
0.1742196977,
0.0805227682,
-0.3122351766,
-0.0038489215,
-0.2295093238,
-0.1563984305,
0.1975986362,
-0.1175194681,
0.4563015699,
0.088537842,
0.1118025184,
-0.0920330063,
-0.0471648462,
-0.1970356554,
-0.2452471256,
-0.1614516079,
0.235923022,
-0.2093829513,
-0.2534175813,
-0.1873573959,
-0.1003127918,
0.2682971656,
0.054978013,
-0.0631799698,
-0.0574918352,
0.0485175699,
-0.1066829413,
-0.0858377591,
0.3686822057,
-0.4268348217,
0.321561873,
-0.2427403778,
0.1214146018,
0.2209981084,
0.2091513425,
-0.2188082784,
0.0070210882,
-0.1598641872,
-0.1748519093,
0.2636781931,
-0.2803451419,
-0.6896673441,
0.0776352137,
-0.3067834377,
0.0360194072,
-0.161635682,
0.2824026644,
0.3321717083,
-0.1226261854,
0.0851030275,
0.4505005181,
-0.2175914794,
0.0324919596,
-0.4076153636,
-0.1520121694,
-0.0775400773,
0.1463223249,
-0.0387066007,
0.0160491709,
-0.1382058412,
-0.0291029438,
0.2990524173,
0.4490666687,
0.1406912506,
0.2543389201,
0.0955414996,
0.2424473017,
0.009589009,
-0.1858816594,
-0.3774220943,
0.1745986938,
0.5166454911,
0.0398235507,
-0.2347045988,
-0.0346939526,
-0.4541684091,
0.0166558847,
-0.0438089408,
0.0101372525,
0.0289866701,
0.1677504927,
0.2887006998,
0.1997801065,
0.0198438764,
0.6505976915,
-0.0681823641,
0.3121291697,
-0.0864718109,
0.2073744237,
-0.1682164073,
-0.1355970055,
0.1590012312,
-0.3182855546,
0.1997077316,
-0.1743711233,
-0.1728222668,
0.3266714811,
0.058987353,
0.1011907011,
-0.0256031305,
-0.2437630296,
0.2322076261,
-0.1403187364,
-0.1642283648,
0.3527715802,
0.100863874,
0.0236945376,
-0.2600860298,
-0.0127553418,
0.2208568454,
0.1852486134,
-0.2386240661,
0.1970194578,
0.193429634,
-0.0050588027,
0.1545084715,
-0.0676920563,
0.2783941031,
-0.2629435658,
0.1345347315,
-0.2053739578,
0.0025802776,
0.3789854348,
0.3293516636,
0.1056885123,
-0.2198497653,
0.1804495156,
0.1296850741,
-0.1198632196,
-0.0056319619,
0.5065408945,
0.3067332804,
0.170412004,
0.2266138494,
-0.0701209381,
-0.2436689883,
-0.1433327347,
0.1890534163,
0.0757503957,
0.0555561967,
-0.0969583392,
0.1349174678,
-0.0243192296,
-0.0290593691,
-0.3912773132,
0.1723953336,
0.3068220019,
-0.0378289893,
0.0120928362,
-0.2496584952,
-0.1520568877,
0.1568965465,
-0.1114775985,
-0.2432440072,
-0.5550537705,
-0.1170368865,
0.2648680806,
-0.0485744253,
0.0361476392,
-0.1683565974,
-0.1456123888,
0.3770266473,
-0.2226376981,
-0.0041139051,
-0.1587961912,
-0.0620050319,
0.085058853,
0.2173148245,
-0.1189319789,
0.3502160013,
-0.2401049137,
-0.2311209142,
-0.3148243129,
-0.0313547999,
0.0154778035,
-0.14714773,
0.3772633672,
-0.2286996692,
0.4140962362,
0.0851950645,
0.1193850189,
0.1587170064,
-0.1645904481,
-0.0706983134,
-0.1050104946,
0.0962465852,
0.1030079424,
-0.057504043,
-0.2533047497,
-0.2038372457,
-0.3415122926,
0.1356619596,
-0.1374946237,
-0.0539903119,
0.152911678,
0.2279940993,
0.0301787108,
-0.1151633561,
0.0764712319,
-0.1927662194,
-0.3900161386,
0.4926213324,
-0.0878468901,
-0.1976852566,
0.0133778229,
0.2124519646,
0.007086006,
0.3136508167,
-0.6629765034,
0.0568314381,
-0.3185946941,
0.271656245,
-0.0546660125,
-0.2824902534,
0.2686043978,
-0.491754055,
-0.1053478569,
0.0398719013,
0.0277593136,
-0.0297611952,
0.1054956764,
0.4257926941,
-0.1738020629,
0.290147841,
-0.0058969781,
0.1678648144,
0.2327539027,
-0.0230306983,
0.0852698088,
0.1211805418,
0.264267534,
-0.0063392073,
-0.3034159839,
-0.0176090002,
-0.0341336057,
-0.1368567348,
-0.0107165687,
-0.0085254163,
-0.2189049274,
-0.1899486482,
0.0047976822,
-0.2691439688,
-0.2852287889,
-0.1181232706,
-0.2087264061,
0.0319987908,
0.341575861,
0.2162770331,
0.0480174944,
-0.1770516038,
-0.1402963698,
-0.0034893937,
-0.1222756058,
-0.2203561068,
-0.5491003394,
0.1339454204,
-0.3536432087,
0.223088935,
-0.060128171,
0.3213073611,
-0.0807394609,
0.1125656068,
0.189366132,
0.0379193835,
0.6117433906,
-0.1809261888,
0.0362365358,
0.0179810226,
0.2915140688,
-0.4782930911,
-0.0769507959,
0.1523822099,
0.2845622599,
0.5226516128,
0.0370356515,
-0.3182997108,
0.0222989507,
0.0786773488,
0.2848936915,
0.1279169619,
-0.4066614211,
0.0861356258,
-0.1845365912,
-0.17153579,
0.1556865275,
0.0990254804,
0.1399312317,
-0.0063084811,
-0.2252759039,
0.1577483565,
0.1879140139,
-0.011468295,
-0.1006641835,
0.1955480874,
-0.2800942659,
0.569674015,
0.0582193509,
-0.2168160975,
0.3292991221,
0.607147336,
0.2037015557,
-0.4783619046,
-0.0077774934,
-0.0352762714,
-0.1191033274,
0.294110626,
0.0688014179,
-0.0737719387,
-0.2819931507,
0.3526279926,
0.0820839107,
0.1576071829,
0.2579841614,
0.0414124019,
-0.413015455,
-0.4910198152,
0.1987432241,
0.040705286,
0.0077409446,
0.7631574869,
-0.0821257979,
0.1172936037,
0.2169814855,
0.0036683604,
1.0106487274,
-0.1849300861,
0.0555884242,
0.0269524008,
-0.1968933046,
0.4470201433,
-0.2444502413,
0.0533534251,
-0.0744407251,
0.0985225141,
0.0790509284,
-0.0900904089,
-0.1041531712,
0.2495371997,
-0.2677375376,
0.0934129059,
-0.1866245568,
0.1198794246,
-0.1068739817,
0.1602322906,
-0.3221093118,
-0.0493134782,
-0.0738776177,
0.2528643012,
-0.0190034024,
0.2423350066,
0.0503330193,
0.1021400988,
-0.2165171504,
-0.0511653423,
-0.6515234113,
0.0607920885,
-0.1059933901,
-0.0249386821,
-0.3161871433,
-0.2694267035,
-0.0397360176,
0.0647981018,
0.1809842139,
0.2945518792,
-0.1085294113,
0.2734041512,
-0.1617363393,
-0.0828539953,
0.007087443,
-0.2562036812,
0.1700799465,
0.0257479772,
-0.4043706656,
0.1728889644,
-0.0120192394,
-0.1925394237,
0.2453389615,
0.2451250851,
0.1537723988,
-0.140561223,
0.0705393106,
0.0044923685,
0.183932066,
-0.3315314054,
0.1646398306,
0.273398757,
0.1160798073,
0.2934766412,
-0.1306782514,
-0.3417876661,
-0.312402904,
0.4209151268,
0.0147226341,
-0.0182724074,
0.2777174115,
0.1946508437,
-0.3831722736,
-0.3084497154,
0.0483950227,
-0.5737426281,
-0.3759394884,
0.270875901,
-0.4809347689,
0.3688184023,
-0.0525629111,
-0.1945742965,
0.1614541858,
0.0410520956,
0.1765298396,
-0.5769949555,
-0.0723822862,
-0.134225443,
-0.3124858141,
0.0035804324,
-0.1218174696,
-0.0174361132,
0.220963642,
-0.0283057913,
-0.3059005737,
0.1072411239,
-0.2990958393,
0.1666985452,
0.3630221188,
-0.1178337708,
0.3600857556,
-0.1476006955,
0.0719490126,
0.2135467827,
-0.1259141415,
-0.1867565215,
0.0088768676,
0.1204207689,
-0.0983189717,
-0.1987836659,
0.102167353,
-0.4653487802,
-0.113915801,
0.0836559683,
-0.132784456,
0.1149017364,
0.0751332045,
-0.215793699,
0.1564481258,
0.0608540475,
0.0319548324,
0.1744050682,
-0.0814529806,
0.4345968962,
0.2335428745,
0.3212581873,
0.1280275285,
0.0476790369,
-0.5013419986,
-0.0021894686,
-0.1555354893,
0.0086164512,
0.5000964403,
-0.2849594057,
0.0574564636,
0.3465841413,
0.3582382798,
0.5142095685,
0.0217754282,
-0.1660113633,
0.3493447602,
0.2776165903,
-0.0072568357,
-0.0931518376,
0.3161646724,
0.1954576373,
0.0127300546,
0.1659446955,
-0.0286610648,
-0.1532746255,
0.1752326787,
0.2132845968,
0.7456155419,
0.0594352745,
0.2120891213,
0.2359481752,
0.1325786114,
-0.0256500132,
0.4962302446,
0.2893054485,
0.0648457706,
0.1836965084,
-0.189606905,
-0.0699171424,
-0.0696901977,
0.1187762767,
-0.0925604254,
-0.256295085,
0.0800469816,
0.1729652882,
-0.2709692121,
-0.0536396243,
0.1682773679,
0.1517085135,
-0.241222918,
-0.0526951998,
-0.1684115082,
0.2435319871,
0.0784866363,
0.2163593769,
0.1559386402,
-0.1166476384,
-0.1253601313,
0.0594990179,
0.0061542261,
-0.2609736025,
0.4184809029,
0.1232509613,
0.0963150561,
-0.586631,
-0.001491541,
-0.0868234187,
0.188174352,
-0.4743905067,
0.0474525392,
0.0180926472,
-0.2157313824,
-0.0612206981,
0.2576414049,
0.5287143588,
0.1578762233,
-0.0736209005,
0.1887331009,
-0.0066002496,
-0.083333239,
-0.0630711243,
0.4645077884,
0.0890265703,
-0.0761164874,
0.4138445258,
0.1446330249,
-0.2284878045,
0.1453456134,
0.1089741439,
0.2862814069,
-0.2727350593,
-0.0084776841,
-0.059421856,
-0.1286306679,
-0.3655263782,
-0.1453650594,
-0.1309568584,
-0.0148779545,
0.4429957271,
-0.3660319149,
-0.0384184867,
-0.2658146024,
0.1107901633,
-0.1612299085,
0.3122111559,
0.4844058752,
0.2282982022,
-0.1740743071,
-0.36726138,
-0.389462769,
0.074210681,
-0.639665544,
-0.1502289921,
-0.1438750327,
0.51530689,
0.1265915036,
0.3481552601,
0.3572772741,
0.0897674561,
-0.4011442065,
0.477511853,
-0.2764579356,
-0.3765936196,
-0.0509809554,
0.0072240252,
0.0850607008,
-0.3032620549,
0.1778670847,
-0.2237764746,
0.0236351639,
-0.137732029,
-0.2066952139,
0.2231233269,
-0.1374202371,
0.4727036953,
0.0809810087,
0.2350997627,
0.2856599689,
-0.5054977536,
-0.4817368388,
-0.2052443773,
0.0052701421,
0.0731388181,
0.0634792447,
0.3176399469,
-0.3422474861,
0.014921708,
-0.1203675717,
0.1972675323,
-0.1143390238,
-0.279922545,
0.2240276337,
-0.2387308627,
-0.0295137838,
0.3290410042,
-0.0437298156,
0.1548277736,
-0.0523173213,
0.1966980398,
-0.2919940948,
-0.3440684974,
0.2796039581,
0.0334829167,
-0.4112812579,
0.038685441,
0.167329669,
0.105900839,
-0.0483773313,
-0.2123416215,
0.099666059,
0.4178960025,
-0.0632097796,
-0.2242977768,
0.2084811628,
0.0545511357,
0.1583584845,
-0.0366301648,
0.4831289947,
0.0268593431,
-0.2417450249,
0.31837672,
-0.1463122368
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | It also doesn't seem to be "smart caching" and I received an error about a file not being found... | ## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
| 19 | Downloading “reddit” dataset keeps timing out.
## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
It also doesn't seem to be "smart caching" and I received an error about a file not being found... | [
-0.3514556587,
-0.1771147251,
-0.0796714574,
0.1682873368,
0.1475947797,
0.2232838571,
0.0226038992,
0.2211397439,
0.0123538002,
-0.1897379756,
-0.0006050915,
0.0798817575,
0.2927660942,
-0.0234990604,
0.0045968406,
0.2605563104,
0.17460756,
-0.1837055236,
0.0295602176,
0.0212489292,
0.0039185956,
0.1042709723,
-0.2045952082,
-0.1891222149,
-0.2868829072,
-0.0632350892,
-0.1026238203,
-0.0651948601,
-0.1613500416,
-0.2562070191,
0.267803371,
0.174754262,
-0.112570256,
0.5722393394,
-0.0001108744,
-0.2002593875,
0.326736033,
0.0606780425,
-0.390262872,
-0.4879053533,
-0.2514716387,
-0.1367275417,
0.0648576096,
0.0613181591,
0.110081695,
0.0650017709,
0.0765784681,
-0.3915480375,
0.2778304815,
0.4178674221,
0.1937410235,
0.3087407649,
0.1997340918,
-0.1075382531,
0.2146612257,
-0.0059834756,
0.0433714688,
0.3852339089,
0.1850035042,
-0.215046674,
0.2256682962,
0.038711872,
-0.0873251557,
0.2124776393,
-0.0270646662,
0.0023179129,
0.0624295697,
-0.429582715,
-0.0266275387,
0.1627350301,
0.9098490477,
0.0155011974,
-0.4210058153,
-0.2765197456,
0.0643734187,
0.0191605687,
0.4107703865,
0.3963222504,
-0.3528383374,
0.2195535451,
-0.286540091,
0.0169617161,
0.0585765839,
0.3455071747,
0.130035013,
-0.0365856774,
0.0514854454,
0.21210289,
0.0776939988,
-0.0127776526,
0.3182255626,
-0.3606894314,
0.0638845712,
-0.0454120077,
-0.4223774374,
-0.05961046,
0.0410246775,
0.2965486944,
0.2180079818,
0.0376026668,
0.009041544,
-0.2331797779,
-0.1563539207,
0.1810908616,
0.4144002795,
0.0328041762,
-0.0863441974,
0.1566243768,
0.249001056,
-0.1563359052,
-0.0637259781,
0.0281155743,
0.0535564944,
-0.0046372302,
0.2060953975,
-0.1608813554,
0.2642782927,
-0.2941420078,
-0.2341360748,
-0.031705752,
0.1319111884,
-0.1088593081,
-0.2119633108,
0.2084038556,
-0.5190798044,
0.2473206222,
-0.1339634061,
0.1147483289,
-0.3465742767,
-0.3769272566,
-0.0995052606,
0.0479186215,
-0.2433879077,
-0.0284866169,
-0.0462478735,
-0.000003824,
0.0765834376,
0.2044058591,
0.0176847689,
-0.3638130426,
-0.0099051595,
-0.2387173623,
-0.1129432395,
0.1991783679,
-0.1510952711,
0.4225299358,
0.0376463197,
0.103793487,
-0.0805964768,
-0.0162504725,
-0.3319400549,
-0.2365734577,
-0.1203530058,
0.2128540426,
-0.3113926947,
-0.3375160098,
-0.1700792909,
-0.0349226594,
0.2402768433,
-0.0020039752,
-0.095796831,
-0.0359610096,
0.0914464742,
-0.1080955118,
-0.0803298578,
0.4175196886,
-0.4671498537,
0.2881299257,
-0.185970664,
0.1363561749,
0.1721720397,
0.2570498288,
-0.1467756033,
0.045453161,
-0.2080724835,
-0.1775382906,
0.2739039063,
-0.1860810965,
-0.7467340827,
0.0578026772,
-0.284350723,
0.0424197093,
-0.1178643554,
0.36948511,
0.2407180369,
-0.1426739395,
0.0391040519,
0.4280471504,
-0.2491465062,
0.0049373806,
-0.3930660784,
-0.200665459,
0.0233065449,
0.1867522001,
0.0173270367,
0.0746782422,
-0.1123711169,
-0.0463859737,
0.2413776219,
0.4207428098,
0.1031233221,
0.2581166625,
0.0276497174,
0.311711818,
0.0341697261,
-0.220882684,
-0.4634929299,
0.1929712445,
0.4974279106,
-0.0402292348,
-0.2256625146,
-0.0038947985,
-0.3863795102,
-0.0058577172,
-0.0664516613,
0.0201456323,
0.0067059472,
0.1483604908,
0.2730264068,
0.2620784044,
-0.042832803,
0.6063829064,
0.063497059,
0.2556882203,
-0.1081700325,
0.2015018761,
-0.1358217299,
-0.1573537141,
0.1642462909,
-0.3319026828,
0.206464842,
-0.1426872611,
-0.1712402403,
0.3065045476,
0.0427157357,
0.161817655,
0.0114987409,
-0.1000135541,
0.2866933048,
-0.1438963413,
-0.1582964808,
0.3258190751,
0.113654837,
0.0031756982,
-0.2952042222,
0.0175413601,
0.1608547568,
0.1463080943,
-0.2422059029,
0.1282934248,
0.1188988239,
0.0218802243,
0.2346509695,
-0.0179282427,
0.3345371783,
-0.2813610733,
0.1407998353,
-0.1899899393,
-0.0198668465,
0.3656054139,
0.3421819806,
0.1151359528,
-0.1574939042,
0.1737977564,
0.1267800629,
-0.1751208007,
-0.0009870529,
0.4331418872,
0.276445806,
0.1672484428,
0.2333201468,
-0.0859268755,
-0.1909573972,
-0.1633752435,
0.1053179651,
0.0348651968,
-0.0363413543,
-0.0639245659,
0.1348115951,
-0.0042756237,
-0.0754824951,
-0.3622909486,
0.1658115238,
0.256798625,
-0.0312264785,
0.0473792925,
-0.2350289226,
-0.0895154178,
0.1797644943,
-0.0626699105,
-0.313267827,
-0.5346179605,
-0.0570352003,
0.2572366297,
-0.0239655077,
0.0314367414,
-0.210766077,
-0.0662344247,
0.4184938967,
-0.2246607244,
-0.0019355342,
-0.1966600567,
-0.0031244163,
0.0666256994,
0.2288979441,
-0.1572305113,
0.2978441715,
-0.2575803399,
-0.2320067585,
-0.4382396638,
0.0100100338,
0.0240636282,
-0.1659139097,
0.3262792528,
-0.2745297551,
0.401486963,
0.0467614606,
0.1846998036,
0.1293168366,
-0.2159519196,
-0.0568522401,
-0.0901852697,
0.1098199561,
0.0916874707,
0.0130147114,
-0.2832640707,
-0.261186868,
-0.3255771399,
0.1303073168,
-0.1285693347,
-0.059582971,
0.0994410366,
0.2131878734,
-0.0286169257,
-0.1400177628,
0.1327974796,
-0.2126912326,
-0.4661633372,
0.5746908188,
-0.1025394201,
-0.244328633,
0.0728582218,
0.2274208367,
-0.0849175677,
0.3090691864,
-0.7301836014,
0.0651278347,
-0.3316622674,
0.2532573044,
-0.0661318302,
-0.186142832,
0.2206131071,
-0.4908770323,
-0.0971384794,
0.0012672544,
0.0366495028,
-0.0588365644,
0.0865295976,
0.430655241,
-0.0872964859,
0.2449732274,
-0.0117750168,
0.2368469834,
0.1969717443,
0.0393535085,
0.1359304488,
0.1315879375,
0.2887611389,
0.0381640084,
-0.1975027323,
0.0056362636,
-0.0781103373,
-0.1713753641,
0.0641339347,
0.0207205415,
-0.2424154282,
-0.1966177821,
-0.00341364,
-0.2802681327,
-0.2028691471,
-0.1154054776,
-0.2398326844,
-0.0162451565,
0.3200683594,
0.2180339098,
0.0189312324,
-0.2698963284,
-0.036562115,
0.0151883662,
-0.0470497422,
-0.1482367218,
-0.5069866776,
0.1340522468,
-0.312047869,
0.2034243047,
-0.0954853296,
0.3548946679,
-0.1077154204,
0.0429653749,
0.1553054601,
0.0076526962,
0.5914550424,
-0.1041172743,
0.0983436108,
-0.0715868995,
0.2899122834,
-0.3268390298,
-0.1091129109,
0.1869495362,
0.2797990143,
0.3968082666,
-0.0841601491,
-0.2665333152,
0.1139559299,
0.021089416,
0.3152821064,
0.1112034768,
-0.4647832811,
0.0356427729,
-0.0712440461,
-0.1073168293,
0.1279922426,
0.0826845542,
0.0197345801,
-0.0182538461,
-0.1706740558,
0.1882753223,
0.1699026525,
0.0500943325,
-0.1184468269,
0.2467597425,
-0.3339701295,
0.479537487,
0.1493545175,
-0.2253589183,
0.2193412185,
0.7089195251,
0.1852734089,
-0.4553841352,
0.0336598121,
0.0208235234,
-0.0945585519,
0.2738798261,
0.0477421395,
-0.0804543719,
-0.1090875268,
0.303526938,
-0.0079230722,
0.1479126811,
0.243076086,
0.0518565588,
-0.4522886276,
-0.5552823544,
0.2607025504,
0.1119511724,
0.0036002994,
0.7280553579,
-0.1057210118,
0.1578546464,
0.2373593003,
-0.0994790569,
0.9929689169,
-0.1621003449,
0.1493353397,
-0.033384949,
-0.0478536189,
0.4863731265,
-0.3597359359,
0.0773661137,
-0.0537771918,
-0.0039171148,
0.0284774303,
-0.1073971391,
-0.2344086617,
0.2651615739,
-0.2373557985,
0.2292894125,
-0.2026775926,
0.2066045254,
-0.1298428923,
0.1543674469,
-0.320378989,
-0.0110400375,
-0.0889737457,
0.2219660878,
0.0260918289,
0.2512618899,
0.0174464323,
0.1118964553,
-0.2052424848,
0.0056716949,
-0.6313536167,
0.0718434006,
-0.1243228316,
-0.0102214776,
-0.3196524382,
-0.3208348751,
-0.0335322246,
0.1296310276,
0.1616761386,
0.2259854972,
-0.128822118,
0.3198725283,
-0.0963646919,
-0.0537405759,
-0.0080449954,
-0.2188042998,
0.1929917485,
0.0218505412,
-0.300785929,
0.1726767719,
-0.0692978799,
-0.1604340076,
0.1041508913,
0.2808118761,
0.1768752635,
-0.0942792743,
0.0513107702,
-0.0405613296,
0.1964181215,
-0.2893084586,
0.1639480889,
0.4116244316,
0.1906168759,
0.2454127818,
-0.1340895742,
-0.2700129449,
-0.4032469392,
0.4275883734,
0.0022110455,
-0.1101713777,
0.2125894129,
0.2454707325,
-0.4511731267,
-0.2619056404,
0.0425993949,
-0.5402830243,
-0.3960686922,
0.2499279976,
-0.5254067779,
0.3360443413,
-0.0837510675,
-0.1635058671,
0.1754440367,
0.0415309854,
0.1881672591,
-0.5935428143,
-0.0810244009,
-0.1003885716,
-0.2837700844,
0.0128186345,
-0.1215310991,
-0.1770424396,
0.2575615942,
-0.0340104774,
-0.2953879237,
0.0378855988,
-0.2645796835,
0.0987282991,
0.2678185701,
-0.0715709552,
0.3697844446,
-0.1025822312,
0.0607986152,
0.1411420703,
-0.1148397699,
-0.1495313197,
0.0062992647,
0.1379146129,
-0.0633910745,
-0.1479610205,
0.0588901192,
-0.4454344213,
-0.0665023178,
0.0915178135,
-0.0156409293,
0.1372485161,
0.0614575297,
-0.2270420045,
0.1766369939,
-0.0205350071,
-0.0309893042,
0.2033303529,
-0.065584749,
0.4361161888,
0.1910601705,
0.2170721591,
0.1537662894,
0.049885571,
-0.4696022868,
-0.0289685465,
-0.1080413908,
-0.0012208316,
0.506937623,
-0.3495696187,
0.0856207609,
0.3764314055,
0.3894277215,
0.5139316916,
0.0112116002,
-0.1490625143,
0.4427871108,
0.2743192315,
-0.0154408701,
-0.1695474386,
0.3015775681,
0.1912884861,
0.0245826766,
0.1108363867,
-0.020066388,
-0.1465348452,
0.1181679666,
0.2566961646,
0.732300818,
-0.0011009555,
0.1976028532,
0.0902482569,
0.1754854023,
0.0045162532,
0.4779079556,
0.3105091155,
-0.0350732207,
0.2082250565,
-0.0762824789,
-0.1176381335,
0.0369774699,
0.1323197633,
-0.1063778326,
-0.2636117339,
0.035918247,
0.1957787573,
-0.2781749368,
-0.0142175332,
0.1020691767,
0.1815608293,
-0.2402107716,
-0.0688339323,
-0.1920790672,
0.2047711164,
0.0795007944,
0.2561768293,
0.3552336693,
-0.1377822459,
-0.0822461396,
0.0817598999,
0.0413426943,
-0.2312032729,
0.3926382959,
0.1953659654,
0.1165908724,
-0.5178905725,
0.0058876257,
-0.0900005102,
0.230494231,
-0.4653826058,
0.0823567435,
-0.0151106678,
-0.2950532436,
-0.0217589512,
0.2152808458,
0.5295716524,
0.1805810481,
-0.0744955987,
0.1209972873,
-0.0446577035,
-0.0673833117,
-0.0638553128,
0.5054074526,
0.0441163331,
-0.1488220394,
0.3898945451,
0.1145919114,
-0.2024144083,
0.2241458297,
0.0561453477,
0.2569642067,
-0.3091999888,
-0.0556071699,
-0.0921866372,
-0.1618698537,
-0.3807843924,
-0.1619993746,
-0.222225666,
-0.035723038,
0.4328233302,
-0.3476443589,
-0.032589294,
-0.2878081203,
0.1002571061,
-0.1317639053,
0.3615841269,
0.5655299425,
0.3356921971,
-0.1526849866,
-0.2620872259,
-0.4610743225,
0.0843296349,
-0.5949677229,
-0.0758611858,
-0.1460902244,
0.4706691206,
0.0703236908,
0.3799139261,
0.3234636784,
0.0588407815,
-0.410841763,
0.4678780138,
-0.3202511668,
-0.3522126973,
-0.0815754533,
0.039867878,
0.0524408221,
-0.2496676147,
0.1971647739,
-0.3352738023,
0.0077861473,
-0.1428928524,
-0.2132218331,
0.1658729315,
-0.0511899926,
0.4950643778,
0.0748207495,
0.3029791415,
0.2944585085,
-0.4896104932,
-0.5438293815,
-0.2805480957,
0.0079494566,
-0.0352588855,
0.0365840234,
0.2936920822,
-0.3994545937,
0.0398656428,
-0.1119328439,
0.217425406,
-0.1450022906,
-0.2861657143,
0.1758303344,
-0.2617858052,
-0.0467304736,
0.3729979694,
0.0740539879,
0.1809003353,
-0.0931033492,
0.1903899908,
-0.2506164908,
-0.3158219457,
0.2352681309,
-0.0230834149,
-0.354865253,
0.0035198182,
0.1605772078,
0.1762248129,
-0.0140080657,
-0.1961222589,
0.0897568017,
0.3986312747,
0.0048916228,
-0.1920949668,
0.1823784113,
0.0494248196,
0.1833334565,
-0.0118856728,
0.476911068,
0.0252298862,
-0.2749187946,
0.3731456399,
-0.12378034
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | To be clear, the error I get when I try to "re-instantiate" the download after failure is:
```
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: <HOME>/.cache/huggingface/datasets/downloads/1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c/corpus-webis-tldr-17.json'
``` | ## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
| 32 | Downloading “reddit” dataset keeps timing out.
## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
To be clear, the error I get when I try to "re-instantiate" the download after failure is:
```
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: <HOME>/.cache/huggingface/datasets/downloads/1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c/corpus-webis-tldr-17.json'
``` | [
-0.3457061648,
-0.113491118,
-0.088991344,
0.1294440925,
0.1474921703,
0.2143734545,
0.0480174869,
0.1998877823,
0.0338552371,
-0.0955312476,
-0.0302022472,
0.1168746427,
0.2437813878,
-0.0771484151,
-0.0491199233,
0.2314230204,
0.0577855445,
-0.1622306705,
-0.055919569,
0.0735025406,
0.0110588148,
0.1274362206,
-0.0714066923,
-0.1832772493,
-0.2978641391,
-0.0655249432,
-0.1329079568,
0.0713862106,
-0.2183753848,
-0.3113503754,
0.2569485307,
0.1230736226,
0.0103950351,
0.6663296223,
-0.0001116103,
-0.1592564881,
0.2437492758,
0.0426404327,
-0.4877469838,
-0.5513866544,
-0.1342114955,
-0.1945218742,
0.0699980184,
-0.0238277242,
0.1194951311,
0.0872307718,
0.1862624586,
-0.4260835648,
0.2967654765,
0.4254148006,
0.1753057837,
0.2387184799,
0.1722790599,
-0.0251174998,
0.173760131,
0.1074787378,
0.0559893548,
0.473761946,
0.1752825081,
-0.1304806769,
0.2195627987,
-0.0209694076,
-0.1029602587,
0.2084075511,
-0.09647201,
0.1018206924,
0.0989013091,
-0.4662340283,
-0.0699393153,
0.1454071701,
0.931850493,
-0.04775149,
-0.4556200504,
-0.2536897659,
0.0674694777,
-0.0081541613,
0.3597679436,
0.3981691003,
-0.3702104688,
0.2384303808,
-0.2310329676,
-0.0379167013,
0.0456238016,
0.3663993478,
0.1222331822,
0.0011731423,
0.0717662722,
0.1935005337,
0.0911998898,
-0.0108822733,
0.1897067428,
-0.287515074,
0.082783021,
-0.0230276547,
-0.3163490295,
-0.0040635318,
0.0655485839,
0.151458025,
0.1957386285,
0.0782985985,
0.0556205921,
-0.2048888057,
-0.191986531,
0.1541332155,
0.3801209629,
0.0180901401,
-0.0311847143,
0.0855463296,
0.3153649271,
-0.0658992156,
-0.0671005994,
0.0107097793,
0.0720508099,
0.0049375854,
0.2472784221,
-0.1595619619,
0.3136942089,
-0.1568963826,
-0.2649339437,
-0.0032859445,
-0.0083132908,
-0.10223943,
-0.1726380736,
0.179846704,
-0.4610124826,
0.2657698393,
0.0795592517,
0.0874041095,
-0.3733412623,
-0.3142510653,
-0.077197805,
0.0610377155,
-0.2870964408,
-0.0180023946,
0.0141789019,
-0.1022646427,
0.1352747083,
0.1678620875,
0.0020395909,
-0.3097983003,
-0.0176951624,
-0.1359442621,
-0.197619617,
0.2188750356,
-0.1506322175,
0.4216025174,
0.0583744794,
0.1022206545,
-0.0403339341,
-0.0383255184,
-0.2669510841,
-0.2788280845,
-0.1351444125,
0.2164527029,
-0.2373246849,
-0.2125955075,
-0.1456178278,
-0.1163152903,
0.2005088329,
-0.012750268,
-0.0898414776,
-0.042363368,
0.126197964,
-0.1159447581,
-0.0254691578,
0.4587134719,
-0.520549953,
0.2254989892,
-0.210218057,
0.1050470173,
0.1674222946,
0.2220853269,
-0.1680981964,
0.1256013811,
-0.3032051921,
-0.1276325583,
0.3263624609,
-0.2088167369,
-0.6565342546,
-0.0064633042,
-0.4225063622,
0.0436369181,
-0.03988396,
0.3199846447,
0.2116360962,
-0.0621473268,
0.0237385649,
0.3340672851,
-0.1920741647,
0.0146882012,
-0.3758514524,
-0.1495864987,
-0.0532920361,
0.1565192938,
0.0131836571,
0.0386526696,
-0.0940393656,
0.010665141,
0.2913519144,
0.3134846091,
0.1198113635,
0.2804670632,
0.069807902,
0.3056701124,
0.0819985121,
-0.2470280081,
-0.4421100914,
0.2378842682,
0.505831182,
0.0975981131,
-0.2918382883,
-0.0104450062,
-0.4422034919,
0.0312913805,
-0.025695961,
0.0083427653,
0.023564592,
0.1981828064,
0.2984958887,
0.2305757403,
-0.0688341409,
0.5827644467,
-0.0630006567,
0.2926049829,
-0.2162378132,
0.3001051545,
-0.1852462292,
-0.1520488411,
0.0735652521,
-0.3078401387,
0.0781650841,
-0.2067964524,
-0.1422499716,
0.3422002494,
-0.0093689542,
0.1589462459,
0.0476750582,
-0.0652099103,
0.2794476748,
-0.1224913746,
-0.1327506602,
0.3763540387,
0.0903324038,
0.0723877624,
-0.2474757433,
-0.0002934262,
0.1602978557,
0.1797794551,
-0.1811095476,
0.1444838047,
0.115394786,
-0.0085442737,
0.1329467744,
-0.0447311401,
0.4311593771,
-0.3700485229,
0.1274302751,
-0.2081591338,
-0.0152936578,
0.3702558875,
0.2613640726,
0.0569560975,
-0.1585606635,
0.1701384634,
0.1249949187,
-0.1409879476,
-0.0852989778,
0.3960925341,
0.3165250421,
0.1875200272,
0.2048453987,
-0.0945082754,
-0.1836341918,
-0.1254289001,
0.1274705678,
0.023261277,
-0.0187185854,
0.0660416558,
0.1705088913,
0.0169536248,
-0.1588125676,
-0.4864623249,
0.1523251235,
0.3400336206,
-0.1289245188,
0.0425565541,
-0.2582890391,
-0.0811862946,
0.1528226584,
-0.0556132272,
-0.3009981811,
-0.5474970341,
-0.0488038287,
0.3517225981,
-0.031738352,
0.0333201513,
-0.1687020063,
-0.1326801926,
0.3515861034,
-0.1978576183,
-0.0380520374,
-0.1242398769,
-0.0250987466,
0.0519404113,
0.2081225812,
-0.1554660201,
0.3499415219,
-0.3303994834,
-0.2150828689,
-0.5077778101,
-0.0573956817,
0.0420379043,
-0.071147278,
0.3454358578,
-0.1364250928,
0.4982603192,
0.0515564084,
0.0235982612,
0.1339964867,
-0.2258447558,
-0.1099701375,
-0.0887668505,
0.0489948653,
0.1446505338,
-0.0279514678,
-0.4025310278,
-0.198005408,
-0.3813937306,
0.1214809269,
-0.1050282642,
-0.0400377959,
0.1701103747,
0.1836491972,
0.0213116668,
0.0021812618,
0.1341613382,
-0.1613622159,
-0.4538009167,
0.4539411068,
-0.1210563853,
-0.183367148,
0.0870503336,
0.1361744404,
-0.0487817563,
0.3200145066,
-0.7256789804,
0.0329234973,
-0.2690053284,
0.291536957,
-0.1593283862,
-0.1423471719,
0.2895049155,
-0.4033138454,
-0.1086893603,
0.0458065048,
0.0284438953,
-0.0452257544,
0.170076862,
0.4130657315,
-0.1201204956,
0.2722564042,
-0.0237958729,
0.3074053526,
0.0999021828,
-0.0174081549,
0.1361951679,
0.1241229847,
0.2862436175,
-0.0135770701,
-0.2499908954,
-0.035664387,
-0.0534128174,
-0.2116123736,
0.0808123425,
0.0698372275,
-0.1821412593,
-0.1863363683,
0.0072597712,
-0.3295257688,
-0.2344164699,
-0.0848801583,
-0.2164968401,
-0.0028232671,
0.2924295664,
0.0991397053,
-0.0508789457,
-0.1793629676,
-0.1007221937,
0.0946596712,
0.0371530168,
-0.1377045512,
-0.5816247463,
0.0662402734,
-0.3708144128,
0.1462104023,
-0.0140091516,
0.2827032506,
-0.0599454939,
0.107307747,
0.1634767354,
-0.0294178389,
0.6919804811,
-0.2152400017,
0.0371403433,
-0.02992668,
0.3537358344,
-0.4249561429,
-0.0459863506,
0.186232239,
0.3114412725,
0.4815077782,
-0.023996301,
-0.3255310357,
0.0689757764,
0.1253193319,
0.3304876089,
0.0509944335,
-0.4549199343,
0.0984175727,
-0.1383913159,
-0.2370648086,
0.0883581191,
0.040953733,
0.0671758056,
0.0519367531,
-0.139957875,
0.2137626708,
0.1497505456,
0.067015186,
-0.121429652,
0.2189554721,
-0.2838028967,
0.5442031622,
0.143460393,
-0.1760967523,
0.3162307143,
0.7088834047,
0.1405871212,
-0.4247155786,
0.0590027049,
0.081585452,
-0.1278007627,
0.2983306646,
0.1206629202,
-0.1569913924,
-0.1940546334,
0.3669215441,
-0.0035607181,
0.1559979022,
0.2746645808,
0.0425257087,
-0.4269050062,
-0.4922950864,
0.2004535049,
0.1067946404,
0.0310724527,
0.6868848205,
-0.0483275019,
0.1477255225,
0.3077604771,
-0.0741999298,
1.040717721,
-0.2179803252,
0.1197611988,
0.0413823538,
-0.0214080438,
0.5579094887,
-0.4630917311,
0.0748171508,
-0.1090736017,
0.0262696706,
-0.0109228268,
-0.1529878378,
-0.1878224313,
0.3844897747,
-0.1779044271,
0.153781563,
-0.2142795622,
0.1738724262,
-0.1212548018,
0.2222172618,
-0.4063541889,
-0.0682747513,
-0.127855435,
0.2052882463,
0.0070125996,
0.2733253241,
-0.0355598181,
0.2405062318,
-0.2309956998,
-0.0035610422,
-0.6009570956,
0.0482945293,
-0.144888401,
0.0285135396,
-0.4012341201,
-0.3080595732,
-0.1364902258,
0.2661268413,
0.1745539904,
0.2025550604,
-0.0600728393,
0.23797822,
-0.1382526755,
-0.1495207846,
-0.0210517813,
-0.2287067175,
0.2524908185,
0.0927499384,
-0.3896206319,
0.1058074832,
-0.1077688187,
-0.1877209991,
0.1917238533,
0.2199914008,
0.12353082,
-0.0989542305,
0.0367773995,
0.0433516353,
0.1285729259,
-0.2819080353,
0.1095125377,
0.3493515551,
0.1423767507,
0.2095103264,
-0.1349355578,
-0.2640581429,
-0.3781039119,
0.4134249091,
0.0218760483,
-0.0857013464,
0.3029450178,
0.2900454402,
-0.436271131,
-0.2456236035,
0.0378439277,
-0.5051122904,
-0.4053313136,
0.2660216093,
-0.3573100567,
0.3312878609,
-0.0398355946,
-0.1801977605,
0.1913965642,
0.0492342487,
0.1025518477,
-0.6354929805,
-0.0688727275,
-0.0282223895,
-0.239497453,
0.0633845851,
-0.0798386708,
-0.1808777153,
0.1309540421,
-0.16102238,
-0.287602663,
0.09518978,
-0.255307138,
0.0912961513,
0.3782757521,
-0.1046428084,
0.3756402433,
-0.1644016504,
0.0805488378,
0.1534281075,
-0.1319142878,
-0.1438296139,
-0.0169353448,
0.1424365044,
-0.0566543415,
-0.121636413,
0.1616323441,
-0.4505062699,
-0.0557557568,
0.0261625312,
-0.0478166416,
0.2395346314,
0.0799975842,
-0.2451113462,
0.1829366684,
0.003919974,
-0.0365813486,
0.1725437343,
-0.0338568352,
0.476328373,
0.2203832418,
0.2932704687,
0.0837577581,
0.0673232004,
-0.5774546266,
0.0289659202,
-0.1202877313,
0.063743785,
0.4671875834,
-0.3326798975,
0.047376737,
0.3258730769,
0.4628508091,
0.544954896,
-0.0101524182,
-0.0936514363,
0.3874694407,
0.2539564073,
0.0218379274,
-0.1331838071,
0.3642088771,
0.1027423292,
0.044757992,
0.1804495454,
-0.028587766,
-0.1250514984,
0.1498920023,
0.2051856518,
0.7734171748,
-0.0462942645,
0.1690046936,
0.124243021,
0.1203419715,
0.0064932089,
0.4481610954,
0.2540308833,
0.10601978,
0.0917696804,
-0.1066588461,
-0.0925568193,
0.0123039614,
0.1724872887,
-0.1829889715,
-0.3379845023,
0.0398434401,
0.1847473979,
-0.1709377617,
0.0186974648,
0.1239753813,
0.23786138,
-0.2728782296,
-0.060868483,
-0.1533219218,
0.260120362,
0.0617553703,
0.2621086538,
0.2569057643,
-0.194794029,
-0.1001042575,
0.0892075151,
0.0280524958,
-0.2530421317,
0.2741196156,
0.1652853191,
0.0852828324,
-0.6464281678,
0.0074517857,
-0.1105929464,
0.1793161631,
-0.439878881,
0.0459659994,
0.0450880677,
-0.2883310914,
-0.0789095908,
0.2779342532,
0.5579771399,
0.1644066572,
-0.0585424379,
0.1780636758,
-0.1288060993,
-0.0518232137,
-0.1080695242,
0.3691688776,
0.0417228565,
-0.1889354289,
0.3852722645,
0.1355163604,
-0.2180573493,
0.142454803,
0.1456933171,
0.3020741343,
-0.2055168301,
-0.079981409,
-0.0809609592,
-0.1015380695,
-0.3095259666,
-0.1737589091,
-0.1946855038,
-0.0438488647,
0.3546400368,
-0.3365458846,
-0.0382000394,
-0.2726593018,
0.1017242223,
-0.1623692662,
0.2015333772,
0.5906612277,
0.2629621327,
-0.1339447796,
-0.2415398955,
-0.4791153967,
0.0867287517,
-0.5807116628,
-0.1464296877,
-0.2388320267,
0.4592357278,
0.0935254842,
0.3251010776,
0.4186295569,
0.0528816842,
-0.3567660153,
0.5118837357,
-0.2942037284,
-0.4408629835,
-0.070245795,
0.072171241,
0.0406724811,
-0.2368917912,
0.0800138116,
-0.30030182,
-0.0044022501,
-0.149890244,
-0.1932370067,
0.1880464703,
-0.1040889621,
0.5126103163,
0.0676484331,
0.3033855259,
0.1854617,
-0.5745764971,
-0.5213244557,
-0.3028706312,
-0.0419490971,
0.0739932954,
0.0750669912,
0.5065419078,
-0.4804158807,
-0.0385462567,
-0.1881074011,
0.1270097792,
-0.0792128518,
-0.2347915769,
0.1491236687,
-0.2023098916,
-0.0865538642,
0.3757196665,
0.0314427689,
0.2095027119,
-0.0320798419,
0.2295543849,
-0.2249717861,
-0.3684900701,
0.2885981202,
0.078787677,
-0.2721017599,
0.0808417499,
0.1974212974,
0.1026081145,
-0.0161032919,
-0.2055115998,
0.0939311385,
0.4026018381,
-0.0389592126,
-0.2909098566,
0.0970967337,
-0.0008470528,
0.1037740037,
-0.0382438786,
0.4988761842,
0.0005766395,
-0.268235445,
0.373096168,
-0.1041218266
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | Hi ! Since https://github.com/huggingface/datasets/pull/2803 we've changed the time out from 10sec to 100sec.
This should prevent the `ReadTimeoutError`. Feel free to try it out by installing `datasets` from source
```
pip install git+https://github.com/huggingface/datasets.git
```
When re-running your code you said you get a `OSError`, could you try deleting the file at the path returned by the error ? (the one after `[Errno 20] Not a directory:`). Ideally when a download fails you should be able to re-run it without error; there might be an issue here.
Finally not sure what we can do about `ConnectionError`, this must be an issue from zenodo. If it happens you simply need to try again
| ## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
| 111 | Downloading “reddit” dataset keeps timing out.
## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
Hi ! Since https://github.com/huggingface/datasets/pull/2803 we've changed the time out from 10sec to 100sec.
This should prevent the `ReadTimeoutError`. Feel free to try it out by installing `datasets` from source
```
pip install git+https://github.com/huggingface/datasets.git
```
When re-running your code you said you get a `OSError`, could you try deleting the file at the path returned by the error ? (the one after `[Errno 20] Not a directory:`). Ideally when a download fails you should be able to re-run it without error; there might be an issue here.
Finally not sure what we can do about `ConnectionError`, this must be an issue from zenodo. If it happens you simply need to try again
| [
-0.4538248777,
-0.0359522849,
-0.1072577089,
0.214806661,
0.2254009843,
0.0983383656,
0.1591718942,
0.2268796563,
-0.0526380017,
0.0000230521,
-0.1627777219,
0.154737249,
0.1955919266,
-0.1334100962,
-0.0972536057,
0.0610441603,
-0.0565709472,
-0.0677602589,
-0.1615534872,
0.0819472522,
0.0188205689,
0.143686235,
-0.1121321172,
-0.0026501454,
-0.0766934454,
-0.1644876152,
-0.1467981637,
0.0507246405,
-0.2956554294,
-0.3328927159,
0.1694847941,
0.2418559492,
-0.0690903515,
0.6850528121,
-0.0001101032,
-0.1397201866,
0.2245100588,
0.0490234345,
-0.3112403154,
-0.5094974041,
-0.1957671642,
-0.1742008626,
-0.0006462261,
-0.0291788056,
0.1854851544,
0.0554979779,
0.108992666,
-0.2749737203,
0.3389204144,
0.5729048848,
0.1995918155,
0.3697785735,
0.3693855405,
-0.0535559729,
0.2664018571,
-0.0121514797,
0.0311925486,
0.4169181883,
0.1380783767,
-0.0596361049,
0.182897687,
0.0227429718,
-0.0756143555,
0.1545685083,
-0.119391419,
0.0333613306,
0.2555915713,
-0.3887175918,
-0.138372153,
0.2219340354,
0.7953237295,
-0.0027444796,
-0.4068217278,
-0.2871252298,
0.1696535647,
-0.0129162967,
0.3349570334,
0.2615107894,
-0.4169996977,
0.2174752206,
-0.2613834441,
-0.0808658004,
-0.1266334206,
0.4406135678,
0.1170140058,
0.001206927,
-0.0256972965,
0.300727427,
0.2633585036,
-0.1087945104,
0.2221508324,
-0.3168979287,
-0.0292463358,
0.0137493759,
-0.3383378983,
-0.1888523698,
0.0329178348,
0.1638689786,
0.3037260771,
0.0318560973,
0.0471077673,
-0.1961563528,
-0.0839971006,
0.1398132443,
0.383251965,
0.0297963992,
0.0367339998,
0.0558994375,
0.2139369845,
0.0805047974,
-0.0963445231,
0.0382726006,
-0.052034989,
0.0375239812,
0.1067030877,
-0.1745733619,
0.4148418307,
-0.2983429432,
-0.165769577,
0.0255852044,
0.075737372,
-0.1702812016,
-0.1688548625,
0.2133612037,
-0.4682380855,
0.2446543425,
-0.0922744125,
0.0652115643,
-0.3638777435,
-0.3287382126,
-0.0513934866,
0.0137414485,
-0.1487398446,
-0.043121621,
-0.0900758952,
-0.233573094,
0.1790360808,
0.1448257864,
0.0673100948,
-0.2530995905,
0.0061691627,
-0.2436127663,
-0.1551752687,
0.1279544681,
-0.0695514828,
0.2915442884,
0.1237975657,
0.1339071095,
-0.063752301,
0.0186467934,
-0.2753818035,
-0.3336542249,
-0.2002142668,
0.228095755,
-0.335935384,
-0.2744777799,
0.0252535902,
-0.1338590533,
0.3139728904,
-0.147500515,
-0.1339816451,
-0.1570849419,
0.0600343496,
-0.0604758784,
-0.0414296426,
0.3157824278,
-0.3593470752,
0.1914786398,
-0.2504244149,
-0.0099845948,
0.1681514829,
0.2309767902,
-0.2553581595,
0.120076254,
-0.2136331499,
-0.2048168182,
0.3608434498,
-0.3011220098,
-0.600212574,
0.0031673349,
-0.3776431084,
0.1416862905,
-0.1392541379,
0.2376516908,
0.36052683,
-0.0069608651,
-0.0734065473,
0.3193843961,
-0.2023210377,
-0.0070760399,
-0.3626308441,
-0.1656437367,
-0.1414757371,
0.2422949225,
0.0788860321,
-0.0042996742,
-0.037706323,
0.0240191109,
0.2975078821,
0.316929251,
0.0668256432,
0.278215766,
0.1488051564,
0.3036116958,
-0.050267186,
-0.2682844996,
-0.2213938832,
0.1641264856,
0.5927708745,
0.1514855623,
-0.2055566758,
0.0556626767,
-0.3700688183,
0.0064083114,
-0.0968772471,
-0.002962918,
0.0381575152,
0.2506613135,
0.2869866788,
0.2637935281,
-0.0415525809,
0.4684081376,
-0.0279486254,
0.3550289273,
-0.1794383973,
0.2723226845,
-0.2326212674,
-0.1905998141,
0.034654744,
-0.2605826259,
0.1190179586,
-0.1672922373,
-0.134630844,
0.3733444512,
0.0169512741,
0.0580247082,
0.1264173836,
-0.119853884,
0.2207274139,
-0.1083707288,
-0.1503272355,
0.248680532,
0.1149940044,
0.1063640565,
-0.1766043901,
0.1053011417,
0.1430364996,
0.2057058513,
-0.1959834993,
0.1009417176,
0.1564980745,
0.0406320319,
0.0823937282,
0.0261109173,
0.437415123,
-0.3641563952,
0.0406908765,
-0.1805987209,
-0.0071351379,
0.3008776307,
0.4109622538,
0.0310153738,
-0.1827633381,
0.1770045608,
0.1970965713,
-0.0896119326,
-0.0317267738,
0.4135085344,
0.4253748059,
0.2163393795,
0.0385428108,
0.0027144607,
-0.1771412492,
-0.0891939327,
0.1667309105,
0.0989230573,
0.181651324,
0.0949451327,
-0.0189949051,
-0.0067829918,
-0.084052369,
-0.5713557005,
0.0794091076,
0.457100004,
-0.0892289653,
-0.1376043558,
-0.1908153445,
-0.0958800241,
0.1683703065,
0.0160174854,
-0.4750836194,
-0.5786950588,
-0.0676091164,
0.4529921412,
-0.052492477,
0.0596471354,
-0.2232988924,
-0.1037174016,
0.3926709592,
-0.0736512616,
0.0445316359,
-0.2548267543,
0.0125570204,
0.0856887102,
0.2230577767,
-0.191049099,
0.280952692,
-0.3305030465,
-0.2099800408,
-0.4389459789,
-0.0439103916,
0.1156765297,
-0.2164091617,
0.3292759657,
-0.1231698245,
0.5877863169,
0.0931106359,
0.0436491929,
0.2046535313,
-0.3436299264,
-0.0776780695,
-0.0562048145,
0.0713259578,
0.1451004595,
0.0598638356,
-0.2994941473,
-0.2301854789,
-0.4278174043,
0.1740368158,
-0.0479380637,
0.0908305272,
0.2794746161,
0.2059388757,
0.0834497362,
-0.2537410855,
0.169214204,
-0.1258782297,
-0.561702311,
0.432782352,
-0.1177530512,
-0.263663888,
0.0996502489,
0.3058505058,
-0.0206224173,
0.1772891581,
-0.6788049936,
-0.0035095029,
-0.2368993461,
0.3396564722,
-0.2022637278,
-0.1831393391,
0.3164764643,
-0.4094330668,
-0.1001707017,
0.0228220671,
0.1097884402,
-0.0111629106,
0.1557815373,
0.4228845239,
-0.0675443858,
0.3687638938,
-0.0110914335,
0.362790823,
0.0647311062,
0.0253921747,
0.0362946689,
0.0257077422,
0.3557808399,
0.0485111624,
-0.3596301377,
-0.0280464292,
-0.0110425577,
-0.1352110803,
0.1352455616,
0.0259224586,
-0.0934612602,
-0.2718132138,
-0.0847132578,
-0.2287120074,
-0.3163342476,
-0.0509185418,
-0.1603989154,
-0.07659024,
0.238176316,
0.1666229963,
-0.0253078416,
-0.2131287754,
-0.0903377607,
0.1065331846,
-0.0434227586,
-0.1533287466,
-0.6302164197,
0.2468215823,
-0.4078629315,
0.1728397012,
-0.0484999865,
0.238498494,
-0.1775384247,
0.0593117177,
0.1668083668,
-0.014790846,
0.5320884585,
-0.1183649078,
-0.0065429187,
-0.0412882566,
0.2439119667,
-0.4684119821,
-0.0319943056,
-0.0179601461,
0.26842767,
0.3909957409,
0.1017178744,
-0.3571452796,
-0.0560010262,
0.1374455392,
0.2031071484,
0.1029753834,
-0.3991024196,
0.0702964365,
-0.2252372354,
-0.3088775277,
0.1659787893,
-0.0910211056,
0.1600355357,
-0.0441161841,
-0.0862019956,
0.306735158,
0.2041905373,
0.0026235282,
-0.1327373683,
0.14016065,
-0.2742884159,
0.5147085786,
0.1473813057,
-0.2570006549,
0.5399028063,
0.6204404831,
0.1855614036,
-0.5246993303,
-0.002776945,
-0.1413170993,
-0.1575630903,
0.2658456564,
0.141418159,
-0.0564622357,
-0.1830663383,
0.449201256,
0.1471313983,
0.2245179862,
0.3479783833,
0.1122062355,
-0.3846342564,
-0.354485333,
-0.0518107228,
0.0050305873,
0.0098073483,
0.6732222438,
0.0225049332,
0.0605005622,
0.2474563718,
-0.0498158522,
1.1006951332,
-0.1692033112,
0.1691571176,
0.1133904085,
-0.1307372451,
0.5093157887,
-0.2213901281,
0.0868216604,
-0.1366999,
-0.1483267397,
0.0517302006,
-0.0947277918,
0.0730003715,
0.19206734,
-0.2430829853,
0.0707535595,
-0.1546963155,
0.1884453744,
-0.0883384347,
0.1380518228,
-0.3857751191,
-0.0779630095,
-0.1396875232,
0.225731492,
-0.0752516165,
0.269074589,
0.0206744522,
0.086884141,
-0.2398618758,
-0.0202984214,
-0.5047806501,
0.093881309,
-0.0931524858,
-0.0274193622,
-0.4438470304,
-0.1559705585,
-0.1467041671,
0.2542879581,
0.0000521205,
0.1928371191,
-0.0549909472,
0.2169497162,
-0.1297850311,
-0.0963957459,
0.0818103701,
-0.2373089194,
0.1440313756,
-0.0193444081,
-0.4969230592,
0.2323334366,
-0.0716104507,
-0.3198161125,
0.1333938688,
0.1087032259,
0.0935105979,
-0.1285552084,
0.0663376004,
-0.1190059632,
0.0405743867,
-0.3209658861,
0.1466359943,
0.2985934615,
-0.0046107545,
0.2261168063,
-0.0861771032,
-0.3036795855,
-0.3014825881,
0.3936604559,
-0.0082368683,
-0.0050010234,
0.2596043646,
0.2101561725,
-0.3978388309,
-0.2830134928,
0.306881398,
-0.4383845329,
-0.3919938803,
0.0434705466,
-0.5033023357,
0.365473181,
-0.0944298953,
-0.1962876469,
0.2207844555,
0.050056804,
0.105784677,
-0.6435924768,
-0.1127246693,
-0.0441768318,
-0.0875545815,
0.0152266715,
-0.0437840857,
-0.2011596262,
0.0685491413,
-0.0929156691,
-0.3221845627,
0.0387752056,
-0.295676142,
0.1002294123,
0.4034520686,
-0.1686833352,
0.4216536582,
-0.2036428005,
0.0921619385,
0.1077128649,
-0.1632178724,
-0.1457537413,
0.0300685316,
0.139789328,
-0.0278806649,
-0.219042927,
0.1264561415,
-0.4023290873,
-0.1240627766,
0.0671287626,
-0.0584940091,
0.1805597842,
0.0082782228,
-0.2347159088,
0.1887299418,
0.0936196595,
-0.0575824343,
0.1896214634,
-0.0769711956,
0.4825535417,
0.1868833452,
0.3720393777,
0.0232267044,
-0.036263898,
-0.4318803251,
0.0704974756,
-0.0795286521,
0.0478317142,
0.5599253178,
-0.2862208784,
0.0592893586,
0.3281358778,
0.5346978307,
0.5222048163,
-0.0060018674,
-0.122873798,
0.3413522243,
0.2643197179,
0.0288649946,
-0.1323684454,
0.43281582,
0.0564260893,
0.053824015,
0.1736360192,
-0.2305142879,
-0.0726383924,
0.1665360332,
0.1727384627,
0.8266085386,
0.1331851184,
0.1718325615,
0.2565769851,
-0.1135783046,
-0.0658831298,
0.4332049191,
0.265781343,
-0.0021296889,
0.1296421289,
-0.2896938026,
-0.024360694,
-0.0274883714,
0.1395933628,
-0.0272970423,
-0.3127537966,
0.0777791888,
0.1400437653,
-0.1352996975,
-0.1218783483,
0.0924051702,
0.1922762692,
-0.2082992792,
-0.1651861966,
-0.1020178273,
0.3825663924,
0.0385684706,
0.3544968963,
0.0017307103,
-0.1745240837,
-0.174330309,
0.0220146775,
0.0964682698,
-0.2946989834,
0.3090142608,
0.250826776,
0.0474551134,
-0.7139672041,
-0.1418225765,
-0.0674922168,
0.1310344189,
-0.4903656244,
0.1432151645,
0.0534577854,
-0.1623403728,
-0.0222109593,
0.307228148,
0.5712032318,
0.1255345941,
0.1071020961,
0.2486962676,
-0.085111618,
-0.0366280973,
0.0435944423,
0.3503603339,
0.06011457,
0.0243842006,
0.3931990266,
0.1480337977,
-0.2403559834,
0.1648116559,
0.1535255909,
0.238144204,
-0.2155442536,
-0.1856286973,
0.0254316516,
-0.1125084683,
-0.2143719494,
-0.1487717032,
-0.1726247072,
-0.0003799237,
0.3418625593,
-0.2883593738,
0.0096084997,
-0.285353899,
0.0952517837,
-0.1689322591,
0.2129426897,
0.542162776,
0.1865496039,
-0.0928702801,
-0.2022402138,
-0.4226510525,
0.1845502555,
-0.5492637157,
-0.3295220137,
-0.185074538,
0.3340439796,
0.1740223914,
0.4482901692,
0.4680608809,
-0.0904591158,
-0.2368761748,
0.399417609,
-0.3604362011,
-0.311796844,
0.0756684691,
0.0595292002,
0.0811509788,
-0.206394434,
0.244795233,
-0.242094785,
0.0437556505,
-0.0615611449,
-0.2038392425,
0.1301211268,
-0.2715981901,
0.3323509097,
0.0370635912,
0.3929245472,
0.1993743032,
-0.4113182425,
-0.3911924064,
-0.2847713828,
-0.0875259042,
0.1173937321,
0.1652345359,
0.4006866217,
-0.330283016,
-0.199699074,
-0.2120482326,
0.3072329462,
-0.1407978088,
-0.2316657901,
0.1535103619,
-0.2409272492,
0.1307955682,
0.2688872218,
-0.0364871696,
0.0119674262,
-0.0085225832,
0.1623503268,
-0.2913171649,
-0.2029947639,
0.3976861835,
0.0385886841,
-0.2475544512,
-0.0036505274,
0.1197993606,
0.0990642905,
-0.1700858027,
-0.2421633899,
0.0882801563,
0.369887203,
-0.0766193718,
-0.2562712431,
0.0985950157,
-0.0127003416,
0.1415994614,
0.0295897201,
0.348492384,
-0.0263652802,
-0.3384763002,
0.3663106561,
-0.0425282978
] |
https://github.com/huggingface/datasets/issues/2820 | Downloading “reddit” dataset keeps timing out. | @lhoestq thanks for the update. The directory specified by the OSError ie.
```
1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c/corpus-webis-tldr-17.json
```
was not actually in that directory so I can't delete it. | ## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
| 26 | Downloading “reddit” dataset keeps timing out.
## Describe the bug
A clear and concise description of what the bug is.
Everytime I try and download the reddit dataset it times out before finishing and I have to try again.
There is some timeout error that I will post once it happens again.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data")
```
## Expected results
A clear and concise description of the expected results.
I would expect the download to finish, or at least provide a parameter to extend the read timeout window.
## Actual results
Specify the actual results or traceback.
Shown below in error message.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.11.0
- Platform: macOS
- Python version: 3.9.6 (conda env)
- PyArrow version: N/A
@lhoestq thanks for the update. The directory specified by the OSError ie.
```
1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c/corpus-webis-tldr-17.json
```
was not actually in that directory so I can't delete it. | [
-0.3095024228,
-0.1504018754,
-0.1248522848,
0.1671924293,
0.0626937002,
0.232217297,
0.0452462509,
0.2481844425,
0.0208498091,
-0.0671560764,
-0.0702519342,
0.1633019596,
0.2610350847,
-0.1121933162,
-0.1331466436,
0.2049570233,
0.0665128678,
-0.2218915522,
-0.0956015736,
0.12066257,
-0.0917955115,
0.1593910903,
-0.1283439696,
-0.1198263317,
-0.1411829889,
-0.1201371029,
-0.1345242858,
-0.0305773467,
-0.2029905915,
-0.3059111834,
0.220469445,
0.116828233,
-0.0292119235,
0.6436536312,
-0.0001098637,
-0.1421743482,
0.2654626369,
0.0524744838,
-0.440998584,
-0.5108644962,
-0.2619163394,
-0.1298529208,
0.0590726286,
-0.0312442705,
0.2131995261,
0.0836233497,
0.1228473186,
-0.3912439048,
0.2117972523,
0.4887257814,
0.188662529,
0.3496268094,
0.2179190367,
-0.0172983985,
0.1792483032,
0.072833702,
0.0780199394,
0.3980510831,
0.1822239608,
-0.1413721442,
0.1812854856,
0.0218106322,
-0.1129291505,
0.2673599124,
-0.1171444803,
-0.0004770793,
0.1453634948,
-0.4685245752,
-0.0216493569,
0.1269262731,
0.9099083543,
-0.0185251944,
-0.4328924119,
-0.1754166037,
0.0527638011,
0.0815890953,
0.4559944868,
0.4742850959,
-0.3605517745,
0.2056498528,
-0.2597311437,
-0.0197782479,
-0.0729322433,
0.383402586,
0.0901438892,
0.0476597324,
0.0735123754,
0.2317580879,
0.0998645425,
-0.0492647626,
0.2535369694,
-0.3695166409,
0.0089940028,
-0.0261941031,
-0.3241217136,
-0.107620202,
0.0020494163,
0.1523839086,
0.1226413995,
0.0144252814,
-0.017225977,
-0.2915511131,
-0.2147483826,
0.1797130704,
0.4288503528,
0.0015057512,
-0.0348936245,
0.1349713653,
0.2598968744,
-0.0260890312,
-0.0193668827,
0.0810122192,
0.1183839664,
0.0089721121,
0.0835822821,
-0.1330718398,
0.3993256092,
-0.2017676532,
-0.2572392821,
-0.0288926084,
0.0433474332,
-0.1179032177,
-0.2280002832,
0.1583619565,
-0.4906694293,
0.2088638395,
0.0793644264,
0.1370232105,
-0.3628247082,
-0.3598406911,
-0.0434102379,
0.110272333,
-0.1638961285,
-0.1707216501,
-0.0593388751,
-0.1105473936,
0.0511404276,
0.1225287765,
-0.0155337378,
-0.3069614768,
-0.0715055168,
-0.1762698889,
-0.1245331466,
0.2396804541,
-0.1146276891,
0.4079993963,
0.1003963202,
0.1169270948,
-0.0820335746,
0.0389702171,
-0.3303117156,
-0.3403401375,
-0.1272414476,
0.2374206185,
-0.2133952826,
-0.3039639294,
-0.1250538081,
-0.1104237139,
0.2541172504,
0.0337235183,
-0.0793847218,
-0.0963227674,
0.0166098848,
-0.0846722573,
-0.1574709713,
0.342902422,
-0.5084069371,
0.3213288784,
-0.1965834498,
0.1041991934,
0.1816944629,
0.3182142079,
-0.1496503353,
0.0935460329,
-0.2771325707,
-0.1204958409,
0.27298069,
-0.253271997,
-0.6182516217,
0.0820885748,
-0.3610655963,
0.0075531378,
-0.0865056887,
0.2850090861,
0.2797898054,
-0.1380779743,
-0.013208881,
0.375226438,
-0.2172143757,
0.0725085363,
-0.3490177095,
-0.1847132146,
-0.0213697255,
0.1756251901,
-0.0187506322,
-0.0033900142,
-0.1430781484,
-0.0335802622,
0.3587704897,
0.3870672882,
0.1483339518,
0.3216244578,
0.0243822597,
0.2783783674,
0.0534569956,
-0.2024547756,
-0.3310603797,
0.1612716019,
0.5941178203,
0.1395784765,
-0.2706463635,
0.0003420934,
-0.4284191728,
0.0866751,
-0.0213274732,
0.0571299233,
0.0183078982,
0.1815391481,
0.2960187495,
0.2478748113,
-0.0115102828,
0.4557388723,
-0.057903327,
0.2721841931,
-0.2114624679,
0.2506322265,
-0.2167892158,
-0.1202928424,
0.1560702026,
-0.3509274423,
0.083666876,
-0.2268951833,
-0.2199625224,
0.326595515,
0.0438919738,
0.1196844503,
0.0249899179,
-0.0596185327,
0.2224900424,
-0.2003029883,
-0.1345724314,
0.4064630866,
0.1330253184,
0.0998225063,
-0.2701020241,
-0.019689694,
0.2064268589,
0.2266620398,
-0.1862727106,
0.1116254032,
0.0908956081,
0.039853707,
0.2047291547,
-0.0470398441,
0.4167722762,
-0.3639965951,
0.0535619557,
-0.2369762063,
0.0256811231,
0.3321654201,
0.3510741591,
0.0703331381,
-0.1828644425,
0.2540558279,
0.1528062075,
-0.1309077889,
-0.0735406876,
0.3477208912,
0.2638316154,
0.1764098853,
0.1616753042,
-0.1241322979,
-0.1138277799,
-0.1220460385,
0.1897410899,
0.1262056381,
-0.0436987244,
-0.018287519,
0.1533728838,
-0.0168348849,
-0.1188560352,
-0.4593300223,
0.072774373,
0.4072106183,
-0.0815583467,
0.0731031746,
-0.2246206105,
-0.1491610706,
0.199851349,
-0.0577890202,
-0.3491256833,
-0.5447545052,
-0.051644858,
0.365608871,
-0.0903268307,
0.0406890586,
-0.0846581832,
-0.1173727512,
0.4572751522,
-0.1580535769,
-0.0107646212,
-0.1331917644,
-0.0478318632,
0.0734729096,
0.2426554561,
-0.1946611106,
0.3340427279,
-0.2936217189,
-0.2266912758,
-0.5305720568,
-0.0189864486,
0.0168314837,
-0.1706742644,
0.2737115026,
-0.1221015453,
0.5325046182,
0.0582204163,
0.0858036801,
0.0869638473,
-0.2566452026,
-0.1234245449,
-0.0716626868,
0.0591875166,
0.1748992056,
-0.0101408362,
-0.3868832886,
-0.1918512434,
-0.404559046,
0.1063610017,
-0.1477370709,
0.0216791462,
0.1028049961,
0.1835914552,
0.024351757,
0.0331162028,
0.1411412507,
-0.1265156716,
-0.4522253275,
0.4309333563,
-0.0664701313,
-0.2162590325,
0.1043178588,
0.2256392539,
-0.0498272851,
0.2152759135,
-0.7514488697,
-0.0145282038,
-0.2783275247,
0.2697311044,
-0.1753168106,
-0.1897163242,
0.2162376791,
-0.4299248457,
-0.0869581848,
0.0475655124,
0.0349085256,
-0.0592549071,
0.1991396397,
0.3676380813,
-0.0787482038,
0.3557335734,
-0.0129547268,
0.1998181641,
0.1184438467,
0.0496494435,
0.1700463593,
0.1690751761,
0.27958709,
0.0121603347,
-0.2339679152,
-0.0585168749,
-0.0014458671,
-0.2347746193,
0.1252499819,
0.0456061251,
-0.1891676486,
-0.1527425647,
-0.0685339272,
-0.2882632315,
-0.2439082414,
-0.0603173226,
-0.1026767567,
0.017027501,
0.2532618642,
0.0990904272,
0.0114231333,
-0.2779010832,
-0.0780699253,
0.1083370149,
-0.0395468101,
-0.186832428,
-0.4770648181,
0.0852853954,
-0.3877300322,
0.2447303236,
-0.0003019646,
0.2891824543,
-0.0396194011,
0.1181324348,
0.172647357,
-0.0341566913,
0.6463549733,
-0.1588416547,
0.162861079,
-0.0375559814,
0.2864969075,
-0.4513315558,
-0.0555175468,
0.0547594279,
0.3185349107,
0.5014467239,
-0.0028706454,
-0.2623035908,
0.0188498385,
0.1009354144,
0.2959573567,
0.0538650155,
-0.4968959689,
0.0795543045,
-0.2046013474,
-0.2623450756,
0.1263031065,
0.1091593504,
0.0686353669,
0.0350878686,
-0.1038482785,
0.2448894083,
0.0855245218,
0.0520431176,
-0.1704455018,
0.1298329234,
-0.246481359,
0.4957833886,
0.0454470254,
-0.2059770823,
0.3695718646,
0.6841816306,
0.1612986326,
-0.4628186524,
0.0990606546,
-0.0322151557,
-0.1157462746,
0.2643631399,
0.1172473505,
-0.0979504436,
-0.1994202137,
0.3689549267,
0.0208757706,
0.157216087,
0.2718420625,
0.0810238868,
-0.452780664,
-0.430177778,
0.1138940528,
0.037564978,
0.0289462656,
0.6303078532,
-0.0606516674,
0.1159689128,
0.341804862,
-0.0649460331,
1.0060213804,
-0.2283346653,
0.106481351,
0.0492464267,
-0.0904067606,
0.4886731505,
-0.4113644361,
0.071689941,
-0.1177021116,
0.0135573335,
0.0311492532,
-0.1090932861,
-0.1918098927,
0.3354755342,
-0.2478164732,
0.0934099406,
-0.1912205815,
0.1450518072,
-0.1241279691,
0.2234560996,
-0.2989011705,
-0.0206948221,
-0.1991700828,
0.2247374505,
-0.0198316798,
0.2506227493,
-0.0100726038,
0.2096993476,
-0.1463121325,
-0.0804262757,
-0.6208148003,
0.0453267694,
-0.0195441544,
0.0316736363,
-0.3655816019,
-0.1974226236,
-0.043781735,
0.2366873324,
0.1416718364,
0.2241817862,
-0.0163394902,
0.234142229,
-0.1062711477,
-0.1597449183,
-0.0008496717,
-0.1496988088,
0.1444962621,
0.0135767907,
-0.2735587955,
0.214366585,
-0.1091818586,
-0.2239748538,
0.2120582312,
0.2389529496,
0.0794450939,
-0.1365668923,
0.041968286,
-0.1080692261,
0.1240835786,
-0.2395193279,
0.1314407885,
0.3121677041,
0.1640827656,
0.2492801547,
-0.1205935031,
-0.3549575806,
-0.3437147141,
0.4136875868,
0.0535840392,
-0.0073906779,
0.3306727111,
0.312874794,
-0.4030727744,
-0.3092560768,
0.0924073607,
-0.5343805552,
-0.3205623031,
0.3328488171,
-0.4157616496,
0.3471696377,
-0.0627883896,
-0.1378180832,
0.2030163109,
0.1054213643,
0.1233613864,
-0.6414015293,
-0.0647877231,
-0.0836526752,
-0.2053900063,
0.0240566023,
-0.1460577995,
-0.1997725666,
0.1127574742,
-0.1422037035,
-0.2951271236,
0.0484703556,
-0.2745979726,
0.0958568454,
0.3683099151,
-0.0902538747,
0.4197205007,
-0.0623871014,
0.0887814388,
0.1003367305,
-0.1311420053,
-0.1470998228,
0.0164529458,
0.1390112042,
-0.0766677409,
-0.1915547252,
0.1097427979,
-0.5065022707,
-0.0802385509,
0.0977505147,
-0.0953502879,
0.1345019341,
0.0178678557,
-0.2570759654,
0.1775741875,
-0.0285097994,
0.0442681313,
0.2221823633,
-0.1041630358,
0.5471839309,
0.1964337528,
0.2797547281,
0.1488571018,
0.0148905963,
-0.5414072275,
-0.0015546158,
-0.0919463336,
0.0543603599,
0.3810915053,
-0.3114634752,
0.0728837997,
0.3426958919,
0.4172763526,
0.5035362244,
-0.0343138278,
-0.1695259064,
0.2993566692,
0.272862792,
0.0618402585,
-0.1616176963,
0.3489336073,
0.0864299238,
-0.0092736855,
0.1848194599,
-0.1044385657,
-0.058701247,
0.1856527478,
0.238999635,
0.7759050131,
0.0514617749,
0.1726847291,
0.0957846567,
0.0030999109,
-0.0193007998,
0.3979816437,
0.1976182759,
0.0659397915,
0.0808463544,
-0.1315654218,
-0.0837668628,
0.1171828285,
0.14860937,
-0.0626392365,
-0.3323951364,
0.0346313864,
0.1082112566,
-0.1654983461,
-0.0080605689,
0.2052625269,
0.0791038871,
-0.2886407077,
-0.0663574263,
-0.2051648796,
0.287597537,
0.0468939878,
0.2713529766,
0.1986189783,
-0.146089077,
-0.0298800319,
0.1195138097,
-0.0047300719,
-0.2354215086,
0.2322649956,
0.2363516241,
0.1051328629,
-0.5865028501,
-0.0447980575,
-0.148578763,
0.1900197268,
-0.4724006355,
0.0266747046,
0.0291522127,
-0.2448442578,
0.0099701062,
0.2574672401,
0.5680676103,
0.2143834829,
-0.0539009422,
0.1223605573,
-0.1421371549,
-0.059241157,
-0.0138145387,
0.4059747458,
0.0000047609,
-0.0787821338,
0.4521327913,
0.1227863207,
-0.2082474381,
0.1654380858,
0.1053878963,
0.2668370903,
-0.1839601845,
-0.1674200743,
-0.0302669704,
-0.0702590644,
-0.3013981283,
-0.2018902004,
-0.1886170208,
-0.050456658,
0.3965955973,
-0.3332306743,
-0.0050685853,
-0.1903361976,
0.0933341756,
-0.1705903411,
0.3120707273,
0.6364370584,
0.28708902,
-0.1428941786,
-0.297038734,
-0.3884439766,
0.1540688574,
-0.5896972418,
-0.1935307235,
-0.2076192349,
0.463206768,
0.0898940861,
0.3273732662,
0.4216403067,
0.0515938513,
-0.4094792008,
0.4779765606,
-0.3611390293,
-0.3932264745,
0.0418683365,
0.0766324699,
0.0460632145,
-0.2648560405,
0.1191572249,
-0.2247221023,
-0.0011504367,
-0.1998832524,
-0.1851945817,
0.1524485648,
-0.0451052003,
0.4760365188,
0.0896721929,
0.3005133569,
0.1971117854,
-0.5851707458,
-0.4740627706,
-0.2801944911,
-0.0704731345,
0.0913136601,
0.0888687819,
0.4465157688,
-0.4278228879,
-0.0006203158,
-0.141266644,
0.199865818,
-0.164240092,
-0.2047736347,
0.1525722444,
-0.1896263808,
-0.0411875546,
0.4074383378,
-0.0385513827,
0.0942017362,
0.0715058595,
0.1940279156,
-0.2873761654,
-0.3336479664,
0.3049744666,
0.0193079747,
-0.3906154633,
0.0559615679,
0.1058751568,
0.0637912452,
-0.0104586203,
-0.2375223786,
0.1077346057,
0.439753294,
-0.0333892256,
-0.2493490875,
0.103724435,
-0.0079171397,
0.1705267727,
-0.0169549659,
0.5145735741,
0.0177302957,
-0.3262773156,
0.3846448064,
-0.1136138141
] |