html_url
stringlengths 51
51
| title
stringlengths 6
280
| comments
stringlengths 67
24.7k
| body
stringlengths 51
36.2k
| __index_level_0__
int64 1
1.17k
| comment_length
int64 16
1.45k
| text
stringlengths 190
38.3k
| embeddings
sequence |
---|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/5354 | Consider using "Sequence" instead of "List" | Hi! Linking a comment to provide more info on the issue: https://stackoverflow.com/a/39458225. This means we should replace all (most of) the occurrences of `List` with `Sequence` in function signatures.
@tranhd95 Would you be interested in submitting a PR? | ### Feature request
Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below.
**How to reproduce**
```py
list_of_filenames = ["foo.parquet", "bar.parquet"]
ds = Dataset.from_parquet(list_of_filenames)
```
**Expected mypy output:**
```
Success: no issues found
```
**Actual mypy output:**
```py
test.py:19: error: Argument 1 to "from_parquet" of "Dataset" has incompatible type "List[str]"; expected "Union[Union[str, bytes, PathLike[Any]], List[Union[str, bytes, PathLike[Any]]]]" [arg-type]
test.py:19: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
test.py:19: note: Consider using "Sequence" instead, which is covariant
```
**Env:** mypy 0.991, Python 3.10.0, datasets 2.7.1 | 374 | 38 | Consider using "Sequence" instead of "List"
### Feature request
Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below.
**How to reproduce**
```py
list_of_filenames = ["foo.parquet", "bar.parquet"]
ds = Dataset.from_parquet(list_of_filenames)
```
**Expected mypy output:**
```
Success: no issues found
```
**Actual mypy output:**
```py
test.py:19: error: Argument 1 to "from_parquet" of "Dataset" has incompatible type "List[str]"; expected "Union[Union[str, bytes, PathLike[Any]], List[Union[str, bytes, PathLike[Any]]]]" [arg-type]
test.py:19: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
test.py:19: note: Consider using "Sequence" instead, which is covariant
```
**Env:** mypy 0.991, Python 3.10.0, datasets 2.7.1
Hi! Linking a comment to provide more info on the issue: https://stackoverflow.com/a/39458225. This means we should replace all (most of) the occurrences of `List` with `Sequence` in function signatures.
@tranhd95 Would you be interested in submitting a PR? | [
-1.1331499814987183,
-0.8368464112281799,
-0.7626137733459473,
1.4945868253707886,
-0.16346971690654755,
-1.2774741649627686,
0.18324048817157745,
-1.0449070930480957,
1.7204946279525757,
-0.7336402535438538,
0.3742302656173706,
-1.6610338687896729,
-0.021034322679042816,
-0.6428208947181702,
-0.7998591661453247,
-0.8729862570762634,
-0.40722930431365967,
-0.663044273853302,
1.006149411201477,
2.4706223011016846,
1.278103232383728,
-1.4288262128829956,
2.599729537963867,
0.7208110094070435,
-0.18902061879634857,
-0.9534273743629456,
0.5600009560585022,
0.124728724360466,
-1.2539373636245728,
-0.38634049892425537,
-0.8984473347663879,
-0.18022394180297852,
-0.4757879972457886,
-0.5815399289131165,
0.02250421792268753,
0.469245582818985,
-0.28207066655158997,
-0.42591893672943115,
-0.5765944719314575,
-0.8015782833099365,
0.37107279896736145,
-0.42717650532722473,
0.9189186096191406,
-0.39544376730918884,
1.7832797765731812,
-0.7231959104537964,
0.4191078841686249,
0.7149367332458496,
1.3442329168319702,
0.19001144170761108,
0.006340652704238892,
0.30666598677635193,
0.4415912926197052,
-0.04949035495519638,
0.5017484426498413,
1.1802836656570435,
0.6823536157608032,
0.48638325929641724,
0.7910289764404297,
-2.2241666316986084,
1.240782618522644,
-1.0638482570648193,
0.29797473549842834,
1.397830843925476,
-0.9164668917655945,
0.33410805463790894,
-1.8243436813354492,
-0.03773697838187218,
0.5350947380065918,
-2.25911545753479,
0.3388366103172302,
-1.3300085067749023,
-0.6449150443077087,
0.9462282061576843,
0.33460861444473267,
-1.2319730520248413,
0.23705686628818512,
-0.43858587741851807,
0.9993492364883423,
0.34771212935447693,
1.110628366470337,
-1.7946892976760864,
-0.11486983299255371,
-0.3413669168949127,
0.018595842644572258,
-1.1838284730911255,
-1.5113917589187622,
0.6107339262962341,
0.5873403549194336,
0.5268595218658447,
-0.17213864624500275,
0.9665674567222595,
-0.9774714708328247,
0.8612966537475586,
-1.1109992265701294,
-1.7477142810821533,
-1.4070541858673096,
-2.168570041656494,
-2.20973539352417,
0.8418960571289062,
-0.45168671011924744,
-0.48134610056877136,
1.9925546646118164,
-0.9119468331336975,
-1.693841576576233,
1.0368897914886475,
0.33702602982521057,
0.01023527979850769,
2.3915648460388184,
0.1931309551000595,
-0.6796830296516418,
0.3359338343143463,
-0.8039861917495728,
0.7580965757369995,
-0.4318951368331909,
1.36454176902771,
0.41024044156074524,
-1.0646241903305054,
1.6334565877914429,
-0.3655032515525818,
0.6164063811302185,
-0.7641773819923401,
-0.5236461162567139,
-0.6569032669067383,
0.34332793951034546,
1.977211833000183,
-0.35490384697914124,
1.5106170177459717,
-0.32306423783302307,
-1.5368030071258545,
-1.5211244821548462,
0.8597415089607239,
0.49702009558677673,
-0.7162114381790161,
-0.019026657566428185,
-0.3050941526889801,
0.11018630862236023,
-0.13987432420253754,
1.1543267965316772,
1.1744314432144165,
0.724860429763794,
-0.34328165650367737,
-0.7845568656921387,
0.17210111021995544,
-0.013735515996813774,
-0.8112943768501282,
-1.786285161972046,
-0.3821924030780792,
0.20244914293289185,
0.5928119421005249,
-1.244314432144165,
1.7785834074020386,
0.8315516114234924,
1.928593397140503,
0.9559255242347717,
-0.43187057971954346,
1.4739357233047485,
0.03866489604115486,
1.9136247634887695,
-0.5460972189903259,
0.6571792960166931,
-0.3871612846851349,
-1.1880842447280884,
1.018090009689331,
-0.2950281500816345,
-2.0891473293304443,
-0.7441887259483337,
-0.8182028532028198,
-0.16180527210235596,
-0.7237436175346375,
0.9079809784889221,
-0.2706059217453003,
-1.3772467374801636,
0.15371660888195038,
-0.7192071676254272,
0.04227117449045181,
-1.2393691539764404,
0.2630879282951355,
0.6974238157272339,
-0.5635108351707458,
0.05604015663266182,
-0.26078614592552185,
-1.2798925638198853,
-0.549567699432373,
0.2804608941078186,
1.918298363685608,
-0.7198755741119385,
0.8924064636230469,
1.0457324981689453,
-0.7693385481834412,
0.04242720827460289,
0.33452215790748596,
-0.34208914637565613,
0.8356315493583679,
-1.0641528367996216,
-0.4898020625114441,
1.1298121213912964,
-0.05170423164963722,
-0.5957738757133484,
1.5440924167633057,
0.8197283744812012,
-0.9471306204795837,
-0.20755742490291595,
-0.23918528854846954,
-0.8228591680526733,
0.1263096034526825,
-1.566039800643921,
-0.0944928228855133,
0.3876087963581085,
-1.505009412765503,
-0.48703065514564514,
-0.20044055581092834,
1.3138091564178467,
-0.23485368490219116,
1.3297832012176514,
-0.29126259684562683,
-0.2952093183994293,
-0.412974089384079,
-0.35116899013519287,
0.0786161869764328,
-0.2455911785364151,
-0.6774432063102722,
0.2845931649208069,
-0.7505307197570801,
0.3414808213710785,
1.4205965995788574,
0.34730279445648193,
-0.008923131972551346,
0.49302956461906433,
1.0421911478042603,
0.2969299852848053,
0.006896397098898888,
-0.9814939498901367,
-1.4945456981658936,
1.9920618534088135,
-1.465860366821289,
2.048327684402466,
0.7686564922332764,
0.04380955547094345,
-1.7382553815841675,
-1.9252949953079224,
1.3847095966339111,
1.2204266786575317,
2.3265926837921143,
0.5466278195381165,
0.41753530502319336,
-0.8019423484802246,
-0.5672466158866882,
0.2960608899593353,
-1.0678033828735352,
-0.6425923705101013,
0.1873147040605545,
2.4144814014434814,
1.737529993057251,
-0.5875257253646851,
-0.15888191759586334,
-1.0498332977294922,
1.4458212852478027,
-0.134222611784935,
0.16584829986095428,
2.008474349975586,
-0.24185901880264282,
-1.1037352085113525,
1.262019395828247,
-2.318457841873169,
0.13847403228282928,
1.9980289936065674,
0.29783570766448975,
0.1282356232404709,
-1.3620768785476685,
-0.6569278240203857,
-0.35534465312957764,
-0.40967634320259094,
-1.1903014183044434,
0.5283955931663513,
-0.20053434371948242,
-0.7888524532318115,
-1.48563551902771,
0.2096271812915802,
-1.197555422782898,
-1.7318180799484253,
0.2786621153354645,
1.8968273401260376,
1.9174830913543701,
-0.7735706567764282,
1.5339725017547607,
-0.41395992040634155,
0.046213917434215546,
1.267534852027893,
1.2883495092391968,
3.040285348892212,
1.9494563341140747,
-1.1523165702819824,
0.6588112711906433,
-0.19616876542568207,
-0.4265075922012329,
1.1193246841430664,
-1.1554211378097534,
1.2160797119140625,
-0.1838572919368744,
-1.0917398929595947,
-1.232153058052063,
0.9526689052581787,
0.47818806767463684,
0.06889890134334564,
-0.557123601436615,
1.1397439241409302,
0.053146276623010635,
1.348612666130066,
0.6191413402557373,
-0.2969205677509308,
0.5893443822860718,
-0.38995683193206787,
-0.33567771315574646,
1.5997118949890137,
0.2432454228401184,
-1.4392963647842407,
-2.4226949214935303,
-0.1693955659866333,
-0.866860568523407,
0.011493170633912086,
-0.6350834369659424,
-1.050093650817871,
1.770393967628479,
0.402579128742218,
-1.2970830202102661,
-0.24380169808864594,
-0.35152149200439453,
-0.609239399433136,
2.726447820663452,
-1.4545971155166626,
-0.24227087199687958,
-0.9973244071006775,
-0.561714768409729,
1.7299402952194214,
-1.1651164293289185,
-0.12277263402938843,
-0.9690219759941101,
-0.4851375222206116,
-1.2885386943817139,
-0.5245413780212402,
0.06074770167469978,
-0.9411170482635498,
0.8431005477905273,
0.08604849874973297,
-1.2377803325653076,
-0.39242956042289734,
-0.8606601357460022,
0.8077603578567505,
-0.13411082327365875,
0.2164461314678192,
2.0413265228271484,
0.4315054714679718,
-0.3366442322731018,
0.6543845534324646,
1.1914072036743164,
0.6408541202545166,
-0.602331817150116,
0.27971169352531433,
-0.6230905652046204,
0.2512781322002411,
-1.3373013734817505,
0.2487305998802185,
-2.774230718612671,
0.6572734117507935,
-0.04317905753850937,
-0.0016347803175449371,
0.026405077427625656,
-1.2870897054672241,
1.1966387033462524,
2.6470017433166504,
-1.233427882194519,
0.4022595286369324,
0.27580973505973816,
1.1951318979263306,
-1.5357921123504639,
0.29146066308021545,
-0.346337229013443,
2.091278553009033,
0.13496272265911102,
1.1690808534622192,
-0.5225142240524292,
-2.196254253387451,
0.5834364891052246,
-1.2626819610595703,
-1.1965162754058838,
0.7059862613677979,
-0.7505829930305481,
0.12354843318462372,
-1.515181541442871,
-0.17511358857154846,
-0.901500403881073,
-1.202134609222412,
0.7443307042121887,
0.09501251578330994,
0.34976959228515625,
-0.660932719707489,
0.37972357869148254,
-2.1485512256622314,
-1.4027270078659058,
-0.3094494938850403,
-0.881346583366394,
0.5609407424926758,
-0.2882223129272461,
0.7408244609832764,
-0.125210240483284,
0.000329386442899704,
0.30109158158302307,
1.4902184009552002,
3.438490867614746,
0.19393061101436615,
0.34719279408454895,
-0.22891117632389069,
-0.9296203255653381,
1.415625810623169,
0.9734135270118713,
0.011386692523956299,
-0.47827956080436707,
-0.9832940101623535,
1.25339674949646,
2.0275213718414307,
1.1285810470581055,
0.004443305544555187,
-0.8434150815010071,
-0.7516980171203613,
-0.03407388925552368,
0.23571760952472687,
0.4040544331073761,
0.9271280765533447,
0.08326029777526855,
0.016621436923742294,
1.3844441175460815,
1.207050085067749,
-0.48726707696914673,
0.27613532543182373,
-0.8930326104164124,
-0.45705530047416687,
0.4644159972667694,
0.34030452370643616,
0.054291982203722,
0.41763898730278015,
-1.1052279472351074,
-0.37134259939193726,
-0.27947360277175903,
-0.8479516506195068,
-0.7235615253448486,
-0.4453839957714081,
-0.4400191307067871,
1.642085313796997,
0.06764127314090729,
-0.47342702746391296,
0.026360508054494858,
-0.7253406047821045,
-0.010038899257779121,
-1.0949602127075195,
0.28131407499313354,
-0.13183510303497314,
-0.05470392107963562,
-0.11475101113319397,
1.7883777618408203,
-0.9052373170852661,
-1.9831116199493408,
0.2764548659324646,
0.24691924452781677,
-0.4416196644306183,
0.2619940936565399,
1.6609430313110352,
0.6484382748603821,
1.4061198234558105,
1.3058446645736694,
1.004629373550415,
-0.6223424673080444,
-1.3344428539276123,
0.5906712412834167,
1.041931390762329,
-1.4099491834640503,
0.8336418867111206,
0.04230688512325287,
-0.4335203766822815,
0.5999003052711487,
1.3595409393310547,
0.45037761330604553,
-2.058534860610962,
0.6831800937652588,
-0.8654994964599609,
0.7983036637306213,
0.6651856899261475,
0.7416300773620605,
0.263665109872818,
0.7802594304084778,
-1.2308083772659302,
-1.0897570848464966,
-0.77424556016922,
-0.6606681942939758,
1.8674031496047974,
-0.20609331130981445,
0.562518835067749,
-0.30030855536460876,
-1.2941431999206543,
-0.12491638958454132,
0.7089444398880005,
0.4640102982521057,
-0.5182479619979858,
0.7643561363220215,
-0.5540751814842224,
-0.9772079586982727,
-1.2969101667404175,
-0.5157215595245361,
-0.9664785265922546,
-0.9724576473236084,
1.00382399559021,
0.9045371413230896,
0.47588998079299927,
1.886552333831787,
0.7078729271888733,
0.18201211094856262,
-2.5590429306030273,
0.924012303352356,
0.33442622423171997,
-0.14555206894874573,
0.8701226711273193,
0.34983986616134644,
0.9974081516265869,
-0.0832577794790268,
0.5973384380340576,
-2.400028705596924,
2.3419740200042725,
-0.1640823483467102,
0.6835034489631653,
0.04905268922448158,
-0.1399461179971695,
1.1119874715805054,
0.5140002369880676,
0.44478803873062134,
-1.0781527757644653,
0.5630739331245422,
-0.622497022151947,
1.2773776054382324,
0.8063963651657104,
-0.7114356160163879,
-0.03494738042354584,
1.3776301145553589,
0.5625472664833069,
-0.5205549597740173,
-0.9176505208015442,
-0.8980733752250671,
0.9717592597007751,
1.7238616943359375,
-0.06976714730262756,
-0.013098536990582943,
0.9200279116630554,
0.575871467590332,
-1.2396718263626099,
-0.02377927489578724,
-0.789655327796936,
-0.6904820203781128,
1.6385220289230347,
2.0801069736480713,
-0.17428748309612274,
-0.24177740514278412,
-0.7326146960258484,
-1.2475135326385498,
0.8363862633705139,
-0.01837795600295067,
0.10964816808700562,
0.6746047139167786,
-0.6177200078964233,
1.1485273838043213,
0.8108214735984802,
0.9941134452819824,
0.12023045122623444,
0.44066569209098816,
0.3350042700767517,
-0.4029501676559448,
-1.2003237009048462,
-0.2812613248825073,
-1.1318553686141968,
-2.562730073928833,
0.4961254894733429,
-0.2549327611923218,
-1.4015718698501587,
-0.08819451928138733,
-1.177018165588379,
0.8952873945236206,
-0.5659255385398865,
-1.0558249950408936,
-1.545345425605774,
0.2238408327102661,
-0.03285868838429451,
1.0171476602554321,
-1.650736927986145,
-0.08739915490150452,
1.2804019451141357,
0.842170238494873,
-0.6975111365318298,
0.8901309370994568,
0.16591811180114746,
1.1525273323059082,
0.850360095500946,
-0.3195454180240631,
0.44769924879074097,
-0.02415897697210312,
-1.3211811780929565,
0.4934220612049103,
1.1921831369400024,
0.1258871704339981,
1.3960545063018799,
-0.5339762568473816,
0.06270499527454376,
0.42265209555625916,
-0.47433000802993774,
-0.5284450650215149,
-0.5974248051643372,
0.6063408851623535,
0.1302352249622345,
-1.0382001399993896,
0.03482215851545334,
-0.02841012179851532,
-0.13591311872005463,
0.18247050046920776,
-1.4201737642288208,
-0.16516722738742828,
-0.28997305035591125,
-0.5775967836380005,
-1.1741539239883423,
-0.1004113256931305,
1.3097424507141113,
-0.6675716638565063,
-0.1459001749753952,
0.5022736191749573,
0.38183480501174927,
0.5416533946990967,
0.5723026394844055,
-0.6502805352210999,
-0.488942950963974,
-0.26930683851242065,
-0.35317492485046387,
0.3052033483982086,
1.3669798374176025,
-0.13442780077457428,
-0.985576331615448,
0.7263597249984741,
-0.4374281167984009,
0.060085903853178024,
2.0047900676727295,
-0.00007660966366529465,
-0.8227582573890686,
0.29761749505996704,
-0.6147885918617249,
1.9165382385253906,
1.7275254726409912,
1.2334392070770264,
-0.16331514716148376,
-0.9428817629814148,
0.6249907612800598,
-0.3136233389377594,
-0.432651162147522,
0.7707428932189941,
0.336063951253891,
-0.26198962330818176,
-1.4788569211959839,
0.566382110118866,
1.3839691877365112,
-0.8754881024360657,
-0.8536841869354248,
0.1846388280391693,
-0.8044614791870117,
1.0370469093322754,
0.6366766691207886,
0.3310832381248474,
0.3453688323497772,
1.5813567638397217,
0.7721692323684692,
-0.37262868881225586,
0.4578338861465454,
0.5253691673278809,
-0.1099715530872345,
-2.059209108352661,
-1.2252675294876099,
0.2801315188407898,
-0.5501390695571899,
-1.6638926267623901,
1.3819507360458374,
-1.187787413597107,
-0.9966973066329956,
0.593288004398346,
0.1344737559556961,
1.4886623620986938,
0.3176792860031128,
1.590896725654602,
1.9495160579681396,
0.8583666682243347,
0.37390434741973877,
1.2550897598266602,
-0.08937281370162964,
-0.5877319574356079,
1.8293923139572144,
-0.4556174576282501,
0.48455870151519775,
1.0333948135375977,
-0.2704358696937561,
-1.1922930479049683,
-0.7986024022102356,
-1.284388780593872,
-0.7155178189277649,
1.3352735042572021,
0.08181068301200867,
-1.1472160816192627,
0.24612820148468018,
1.5972014665603638,
0.11459007859230042,
-0.4313853085041046,
0.6128352284431458,
0.30422061681747437,
-0.8686900734901428,
-0.04307049140334129,
-0.9555591940879822,
0.5356017351150513,
0.004534426145255566,
-0.3226500451564789,
0.38908612728118896,
0.5110830068588257,
1.3338987827301025,
-0.0259481780230999,
0.14928419888019562,
1.0254905223846436,
-1.4898622035980225,
1.5970393419265747,
-0.6704567670822144,
0.3351227045059204,
-2.369962692260742,
1.4443382024765015,
-0.7436621189117432,
1.8676064014434814,
-2.6503145694732666,
0.3703925311565399,
-0.44953930377960205,
-0.4062740206718445,
0.2551775872707367,
-0.39507344365119934,
0.19744008779525757,
-0.09372058510780334,
-1.1555997133255005,
-0.08591525256633759,
-0.7596419453620911,
0.5708118081092834,
1.1513336896896362,
1.4561128616333008,
-1.146912932395935,
-0.3370468318462372,
-1.7636756896972656,
-0.1015191525220871,
-0.6953684091567993,
0.2886778712272644,
-1.9592138528823853,
-0.09167821705341339,
-1.803972601890564,
-2.294375419616699,
-1.4234468936920166,
-0.8568722009658813,
0.9866997003555298,
0.08795559406280518,
-0.8644036054611206,
1.1088147163391113,
-0.3873853385448456,
-1.893880844116211,
1.1358118057250977,
-2.1593213081359863
] |
https://github.com/huggingface/datasets/issues/5354 | Consider using "Sequence" instead of "List" | Hi all! I tried to reproduce this issue and didn't work for me. Also in your example i noticed that the variables have different names: `list_of_filenames` and `list_of_files`, could this be related to that?
```python
#I found random data in parquet format:
!wget "https://github.com/Teradata/kylo/raw/master/samples/sample-data/parquet/userdata1.parquet"
!wget "https://github.com/Teradata/kylo/raw/master/samples/sample-data/parquet/userdata2.parquet"
#Then i try reproduce
list_of_files = ["userdata1.parquet", "userdata2.parquet"]
ds = Dataset.from_parquet(list_of_files)
```
**My output:**
```python
WARNING:datasets.builder:Using custom data configuration default-e287d097dc54e046
Downloading and preparing dataset parquet/default to /root/.cache/huggingface/datasets/parquet/default-e287d097dc54e046/0.0.0/2a3b91fbd88a2c90d1dbbb32b460cf621d31bd5b05b934492fdef7d8d6f236ec...
Downloading data files: 100%
1/1 [00:00<00:00, 40.38it/s]
Extracting data files: 100%
1/1 [00:00<00:00, 23.43it/s]
Dataset parquet downloaded and prepared to /root/.cache/huggingface/datasets/parquet/default-e287d097dc54e046/0.0.0/2a3b91fbd88a2c90d1dbbb32b460cf621d31bd5b05b934492fdef7d8d6f236ec. Subsequent calls will reuse this data.
```
P.S. This is my first experience with open source. So do not judge strictly if I do not understand something) | ### Feature request
Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below.
**How to reproduce**
```py
list_of_filenames = ["foo.parquet", "bar.parquet"]
ds = Dataset.from_parquet(list_of_filenames)
```
**Expected mypy output:**
```
Success: no issues found
```
**Actual mypy output:**
```py
test.py:19: error: Argument 1 to "from_parquet" of "Dataset" has incompatible type "List[str]"; expected "Union[Union[str, bytes, PathLike[Any]], List[Union[str, bytes, PathLike[Any]]]]" [arg-type]
test.py:19: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
test.py:19: note: Consider using "Sequence" instead, which is covariant
```
**Env:** mypy 0.991, Python 3.10.0, datasets 2.7.1 | 374 | 121 | Consider using "Sequence" instead of "List"
### Feature request
Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below.
**How to reproduce**
```py
list_of_filenames = ["foo.parquet", "bar.parquet"]
ds = Dataset.from_parquet(list_of_filenames)
```
**Expected mypy output:**
```
Success: no issues found
```
**Actual mypy output:**
```py
test.py:19: error: Argument 1 to "from_parquet" of "Dataset" has incompatible type "List[str]"; expected "Union[Union[str, bytes, PathLike[Any]], List[Union[str, bytes, PathLike[Any]]]]" [arg-type]
test.py:19: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
test.py:19: note: Consider using "Sequence" instead, which is covariant
```
**Env:** mypy 0.991, Python 3.10.0, datasets 2.7.1
Hi all! I tried to reproduce this issue and didn't work for me. Also in your example i noticed that the variables have different names: `list_of_filenames` and `list_of_files`, could this be related to that?
```python
#I found random data in parquet format:
!wget "https://github.com/Teradata/kylo/raw/master/samples/sample-data/parquet/userdata1.parquet"
!wget "https://github.com/Teradata/kylo/raw/master/samples/sample-data/parquet/userdata2.parquet"
#Then i try reproduce
list_of_files = ["userdata1.parquet", "userdata2.parquet"]
ds = Dataset.from_parquet(list_of_files)
```
**My output:**
```python
WARNING:datasets.builder:Using custom data configuration default-e287d097dc54e046
Downloading and preparing dataset parquet/default to /root/.cache/huggingface/datasets/parquet/default-e287d097dc54e046/0.0.0/2a3b91fbd88a2c90d1dbbb32b460cf621d31bd5b05b934492fdef7d8d6f236ec...
Downloading data files: 100%
1/1 [00:00<00:00, 40.38it/s]
Extracting data files: 100%
1/1 [00:00<00:00, 23.43it/s]
Dataset parquet downloaded and prepared to /root/.cache/huggingface/datasets/parquet/default-e287d097dc54e046/0.0.0/2a3b91fbd88a2c90d1dbbb32b460cf621d31bd5b05b934492fdef7d8d6f236ec. Subsequent calls will reuse this data.
```
P.S. This is my first experience with open source. So do not judge strictly if I do not understand something) | [
-1.1363391876220703,
-0.8300718069076538,
-0.7608848214149475,
1.5081171989440918,
-0.14507760107517242,
-1.3009257316589355,
0.16242757439613342,
-1.038397192955017,
1.6914905309677124,
-0.746339738368988,
0.33476725220680237,
-1.6492044925689697,
-0.0681803748011589,
-0.6372345685958862,
-0.7880932092666626,
-0.8653319478034973,
-0.39517542719841003,
-0.6992920637130737,
1.0349574089050293,
2.4464149475097656,
1.267642855644226,
-1.4103164672851562,
2.6523351669311523,
0.7304240465164185,
-0.2107347548007965,
-0.9794365763664246,
0.5695334076881409,
0.10819519311189651,
-1.2490625381469727,
-0.40132197737693787,
-0.8909026980400085,
-0.1554059535264969,
-0.4794170558452606,
-0.5199120044708252,
0.021190611645579338,
0.5226335525512695,
-0.25252875685691833,
-0.42449846863746643,
-0.5973931550979614,
-0.7320757508277893,
0.3739709258079529,
-0.37030258774757385,
0.9466598033905029,
-0.37865543365478516,
1.771324634552002,
-0.7047041654586792,
0.40942519903182983,
0.724765419960022,
1.3262746334075928,
0.19077755510807037,
0.06773652881383896,
0.2337627112865448,
0.4650948643684387,
-0.05291079729795456,
0.5228588581085205,
1.177589774131775,
0.6558567881584167,
0.5274485349655151,
0.7691969871520996,
-2.205390691757202,
1.2190908193588257,
-1.0133105516433716,
0.2846299409866333,
1.3767372369766235,
-0.8838321566581726,
0.3190583288669586,
-1.842734932899475,
0.023855289444327354,
0.5687763690948486,
-2.2243874073028564,
0.3152293264865875,
-1.3100272417068481,
-0.6184943914413452,
0.9364671111106873,
0.29152822494506836,
-1.2154196500778198,
0.2312934547662735,
-0.4274255335330963,
1.0161679983139038,
0.39501702785491943,
1.1469690799713135,
-1.723300814628601,
-0.0835457518696785,
-0.29913410544395447,
0.020040320232510567,
-1.166642665863037,
-1.546961784362793,
0.601972222328186,
0.6193809509277344,
0.6025834679603577,
-0.17707794904708862,
0.9777878522872925,
-1.0021272897720337,
0.8275268077850342,
-1.080471396446228,
-1.7112984657287598,
-1.418203353881836,
-2.187188148498535,
-2.2243974208831787,
0.8453207015991211,
-0.4829549789428711,
-0.4357091784477234,
1.939867377281189,
-0.9169697761535645,
-1.7264121770858765,
0.9798440337181091,
0.36285901069641113,
0.07309421896934509,
2.349541664123535,
0.22770917415618896,
-0.6622898578643799,
0.38289690017700195,
-0.7779030203819275,
0.7477446794509888,
-0.4048025608062744,
1.350324273109436,
0.4085347652435303,
-1.052289366722107,
1.6193630695343018,
-0.38609495759010315,
0.6585772037506104,
-0.7491351962089539,
-0.4900335967540741,
-0.6851722002029419,
0.30898165702819824,
1.960567831993103,
-0.35294800996780396,
1.5263075828552246,
-0.3117178678512573,
-1.5662243366241455,
-1.5458080768585205,
0.8175321221351624,
0.4956897497177124,
-0.737092912197113,
-0.013036351650953293,
-0.3660699427127838,
0.12423521280288696,
-0.15128865838050842,
1.1382817029953003,
1.1779567003250122,
0.7374531626701355,
-0.3464429974555969,
-0.7455596327781677,
0.18159841001033783,
-0.00792422890663147,
-0.7656412124633789,
-1.8105943202972412,
-0.34672975540161133,
0.21965867280960083,
0.6043007373809814,
-1.2171149253845215,
1.806949257850647,
0.8297922611236572,
1.9520604610443115,
0.9464990496635437,
-0.4545574486255646,
1.5026276111602783,
0.03340252488851547,
1.89650559425354,
-0.5467690825462341,
0.6297957897186279,
-0.37533581256866455,
-1.1751956939697266,
0.9754631519317627,
-0.3254433870315552,
-2.043592929840088,
-0.747795581817627,
-0.8040913939476013,
-0.17134808003902435,
-0.7101039290428162,
0.862622857093811,
-0.293417364358902,
-1.4117827415466309,
0.10837379842996597,
-0.6893418431282043,
0.0603477880358696,
-1.2203717231750488,
0.21112142503261566,
0.7102279663085938,
-0.6106225252151489,
0.018732639029622078,
-0.2598528563976288,
-1.2704527378082275,
-0.5431040525436401,
0.32141342759132385,
1.921822428703308,
-0.6664871573448181,
0.9175853729248047,
1.0448461771011353,
-0.7491133213043213,
0.08158531039953232,
0.30698272585868835,
-0.3433641493320465,
0.7962263226509094,
-1.0976859331130981,
-0.4766903221607208,
1.162760853767395,
-0.10049136728048325,
-0.6272416114807129,
1.5241765975952148,
0.8511410355567932,
-0.9681334495544434,
-0.22589653730392456,
-0.22372402250766754,
-0.7978014349937439,
0.08472251147031784,
-1.5529193878173828,
-0.1277713030576706,
0.3529050052165985,
-1.4731240272521973,
-0.5072721242904663,
-0.23307770490646362,
1.324975609779358,
-0.23075351119041443,
1.3323594331741333,
-0.2859264612197876,
-0.2897684574127197,
-0.40167075395584106,
-0.4008079171180725,
0.09951727837324142,
-0.2501077353954315,
-0.669283390045166,
0.2519213855266571,
-0.7755138278007507,
0.317844957113266,
1.4269187450408936,
0.31540966033935547,
-0.016004497185349464,
0.5354194045066833,
1.072859287261963,
0.34248000383377075,
0.03497111797332764,
-0.9809638857841492,
-1.4777053594589233,
1.9728034734725952,
-1.4725698232650757,
2.0222089290618896,
0.7566191554069519,
-0.0006628017872571945,
-1.7466578483581543,
-1.8977267742156982,
1.3683505058288574,
1.2208938598632812,
2.3593931198120117,
0.5507748126983643,
0.428796648979187,
-0.8118061423301697,
-0.6032872796058655,
0.2782142460346222,
-1.0101903676986694,
-0.635148286819458,
0.17854797840118408,
2.3971245288848877,
1.7527426481246948,
-0.6281384229660034,
-0.22273649275302887,
-0.9865066409111023,
1.4202780723571777,
-0.19779369235038757,
0.23178933560848236,
2.0349295139312744,
-0.26098084449768066,
-1.0282152891159058,
1.2745689153671265,
-2.346837043762207,
0.17728732526302338,
2.00071120262146,
0.27929913997650146,
0.13453704118728638,
-1.411651611328125,
-0.6695937514305115,
-0.333144873380661,
-0.45582377910614014,
-1.2223283052444458,
0.5449146032333374,
-0.20356105268001556,
-0.8138270974159241,
-1.4772276878356934,
0.19338513910770416,
-1.202083945274353,
-1.7592847347259521,
0.30850619077682495,
1.9219216108322144,
1.9222934246063232,
-0.801678478717804,
1.5008100271224976,
-0.4290200173854828,
0.03701545298099518,
1.2703860998153687,
1.3195042610168457,
3.086019992828369,
1.927428960800171,
-1.1350420713424683,
0.7026720643043518,
-0.2258564978837967,
-0.44400522112846375,
1.1057546138763428,
-1.1220580339431763,
1.1722463369369507,
-0.22736850380897522,
-1.087689757347107,
-1.2406632900238037,
0.9662825465202332,
0.48577114939689636,
0.08629563450813293,
-0.5454357862472534,
1.1582691669464111,
0.08693590015172958,
1.3527169227600098,
0.6304842829704285,
-0.3531230092048645,
0.57175213098526,
-0.35718443989753723,
-0.36525654792785645,
1.6074862480163574,
0.20458605885505676,
-1.483477234840393,
-2.394312620162964,
-0.18650351464748383,
-0.8934423923492432,
-0.022996501997113228,
-0.6330668330192566,
-1.05007803440094,
1.7274105548858643,
0.4214617908000946,
-1.2671375274658203,
-0.23245768249034882,
-0.33686545491218567,
-0.5871247053146362,
2.7204902172088623,
-1.3982183933258057,
-0.26145344972610474,
-0.9538122415542603,
-0.550936758518219,
1.7507025003433228,
-1.1644232273101807,
-0.13301308453083038,
-0.9923341870307922,
-0.5144376754760742,
-1.3094892501831055,
-0.5260002613067627,
0.134226992726326,
-0.9249718189239502,
0.8572866320610046,
0.08445797860622406,
-1.2196226119995117,
-0.3570406138896942,
-0.8997452855110168,
0.900208592414856,
-0.1476995050907135,
0.237987220287323,
2.0552988052368164,
0.4343864321708679,
-0.36935293674468994,
0.6895096898078918,
1.2016929388046265,
0.5968459248542786,
-0.6482493281364441,
0.23499755561351776,
-0.6218293309211731,
0.2627493441104889,
-1.3960682153701782,
0.21195487678050995,
-2.8243210315704346,
0.7166072726249695,
-0.02625134587287903,
-0.0366198867559433,
-0.006184976547956467,
-1.3141415119171143,
1.1649779081344604,
2.632911443710327,
-1.237457513809204,
0.36242759227752686,
0.3275476396083832,
1.2379401922225952,
-1.5154521465301514,
0.2965429723262787,
-0.3622031807899475,
2.0593881607055664,
0.10227561742067337,
1.204390525817871,
-0.5034410953521729,
-2.201162099838257,
0.5724111795425415,
-1.2886385917663574,
-1.158064365386963,
0.7465659976005554,
-0.7921090722084045,
0.17548738420009613,
-1.525524377822876,
-0.1523887664079666,
-0.9199659824371338,
-1.2235163450241089,
0.760735034942627,
0.10282222926616669,
0.31816262006759644,
-0.6601908206939697,
0.35442546010017395,
-2.118253231048584,
-1.4148297309875488,
-0.27042362093925476,
-0.8787367343902588,
0.5216317176818848,
-0.3369792699813843,
0.7237864136695862,
-0.07324151694774628,
0.017351575195789337,
0.25904953479766846,
1.4888176918029785,
3.4292659759521484,
0.17494870722293854,
0.30149415135383606,
-0.23013873398303986,
-0.9550696015357971,
1.446003794670105,
0.9185600280761719,
-0.012840147130191326,
-0.484164297580719,
-0.991316020488739,
1.2281506061553955,
2.0273489952087402,
1.185036301612854,
-0.005146159324795008,
-0.9009921550750732,
-0.7606412768363953,
-0.03333957493305206,
0.2059190422296524,
0.46485793590545654,
0.9176537394523621,
0.056726403534412384,
0.0049049220979213715,
1.3753294944763184,
1.2183387279510498,
-0.4373348653316498,
0.3031620681285858,
-0.9085525870323181,
-0.4289047420024872,
0.4568895697593689,
0.33079764246940613,
0.09157006442546844,
0.42045480012893677,
-1.1217819452285767,
-0.3572511374950409,
-0.27740800380706787,
-0.8481405377388,
-0.7079163789749146,
-0.48254603147506714,
-0.410755455493927,
1.602455735206604,
0.07130798697471619,
-0.5099614262580872,
0.04903590679168701,
-0.737313449382782,
-0.029267247766256332,
-1.085563063621521,
0.254675030708313,
-0.18289552628993988,
-0.0217537023127079,
-0.10563290119171143,
1.7300161123275757,
-0.9269725680351257,
-2.009392499923706,
0.26296278834342957,
0.2776736915111542,
-0.4129120409488678,
0.24605727195739746,
1.6819956302642822,
0.6625583171844482,
1.3629447221755981,
1.3172541856765747,
1.0304059982299805,
-0.6170803904533386,
-1.294552206993103,
0.6008415818214417,
1.0277396440505981,
-1.3785433769226074,
0.8730834126472473,
-0.032511454075574875,
-0.4633444845676422,
0.614233672618866,
1.3459564447402954,
0.41402876377105713,
-2.0475564002990723,
0.7030054926872253,
-0.8152059316635132,
0.7913751006126404,
0.6886937618255615,
0.7129018902778625,
0.2504475712776184,
0.8075348138809204,
-1.2172008752822876,
-1.0677175521850586,
-0.7623722553253174,
-0.6585854291915894,
1.8706659078598022,
-0.19010388851165771,
0.5423663258552551,
-0.2784065902233124,
-1.2734500169754028,
-0.11298678815364838,
0.7205273509025574,
0.45897823572158813,
-0.5034805536270142,
0.7740347981452942,
-0.5713035464286804,
-0.9434799551963806,
-1.274392008781433,
-0.495153546333313,
-0.9723597168922424,
-0.9627174735069275,
0.9997462034225464,
0.8853783011436462,
0.5202117562294006,
1.8977515697479248,
0.7046326994895935,
0.2504917085170746,
-2.58061146736145,
0.9339843988418579,
0.31756240129470825,
-0.12618322670459747,
0.8478643894195557,
0.3457270860671997,
1.0608693361282349,
-0.06726845353841782,
0.6269418001174927,
-2.393547773361206,
2.3289237022399902,
-0.19225233793258667,
0.6221709847450256,
0.04937945306301117,
-0.17888431251049042,
1.1291245222091675,
0.5254886746406555,
0.4723522663116455,
-1.1094088554382324,
0.5600799918174744,
-0.6147582530975342,
1.2137253284454346,
0.8469796180725098,
-0.752436101436615,
0.035867951810359955,
1.3870021104812622,
0.567465603351593,
-0.5273381471633911,
-0.9629997611045837,
-0.8766413331031799,
0.9883573651313782,
1.6993236541748047,
-0.07043296098709106,
-0.013498494401574135,
0.9196380972862244,
0.6116669774055481,
-1.2490938901901245,
0.015942372381687164,
-0.7773672342300415,
-0.6489583849906921,
1.6697092056274414,
2.0844695568084717,
-0.1658015251159668,
-0.23721517622470856,
-0.7420316934585571,
-1.2307554483413696,
0.7921304702758789,
-0.03826792910695076,
0.10227758437395096,
0.6986082196235657,
-0.6664743423461914,
1.1478066444396973,
0.7331737279891968,
0.9695625901222229,
0.061669252812862396,
0.43833526968955994,
0.3605078160762787,
-0.41772860288619995,
-1.2223950624465942,
-0.3118772506713867,
-1.1221354007720947,
-2.5484509468078613,
0.4556750953197479,
-0.23508302867412567,
-1.348345160484314,
-0.08697440475225449,
-1.1712722778320312,
0.8786212801933289,
-0.6110852956771851,
-1.0451688766479492,
-1.5081554651260376,
0.24402469396591187,
-0.05721571296453476,
0.9998985528945923,
-1.6441963911056519,
-0.11393049359321594,
1.2583457231521606,
0.8146830797195435,
-0.68523770570755,
0.8901883959770203,
0.19017790257930756,
1.130738377571106,
0.8349423408508301,
-0.34418895840644836,
0.4735531806945801,
-0.02620362490415573,
-1.3421618938446045,
0.4614980220794678,
1.1918836832046509,
0.1439923793077469,
1.4066691398620605,
-0.525929868221283,
0.10059110075235367,
0.43999260663986206,
-0.545714795589447,
-0.5801995992660522,
-0.5770789980888367,
0.5898723602294922,
0.09347125887870789,
-1.046783685684204,
0.015172483399510384,
-0.017727956175804138,
-0.16904552280902863,
0.2010805308818817,
-1.4504785537719727,
-0.18090833723545074,
-0.238875150680542,
-0.5599612593650818,
-1.2027852535247803,
-0.04007866233587265,
1.2838267087936401,
-0.7046801447868347,
-0.16736164689064026,
0.4862195551395416,
0.3149963319301605,
0.5299549698829651,
0.5267960429191589,
-0.7047539949417114,
-0.4127693176269531,
-0.2785618305206299,
-0.3497254550457001,
0.30808722972869873,
1.368065595626831,
-0.13497942686080933,
-0.9754109382629395,
0.6621102690696716,
-0.46136385202407837,
0.08297284692525864,
2.062375068664551,
0.008726730942726135,
-0.8277993202209473,
0.300479918718338,
-0.6708285808563232,
1.8544132709503174,
1.7151284217834473,
1.2546322345733643,
-0.1823354810476303,
-0.8517093658447266,
0.6080307960510254,
-0.32508552074432373,
-0.4353529214859009,
0.7880144715309143,
0.31003132462501526,
-0.2565750777721405,
-1.4979863166809082,
0.5811440348625183,
1.3838740587234497,
-0.8603425621986389,
-0.8295462727546692,
0.1766597181558609,
-0.8468396663665771,
1.0990687608718872,
0.6570533514022827,
0.3479152321815491,
0.35388898849487305,
1.5473495721817017,
0.7742370963096619,
-0.34563279151916504,
0.44321519136428833,
0.4995068907737732,
-0.10948079079389572,
-2.062100887298584,
-1.1853036880493164,
0.28760024905204773,
-0.5325924158096313,
-1.704203724861145,
1.3835797309875488,
-1.2054246664047241,
-1.00184166431427,
0.5979199409484863,
0.1526864618062973,
1.4601223468780518,
0.3578706383705139,
1.6300030946731567,
1.9863429069519043,
0.8576202988624573,
0.3973905146121979,
1.2318973541259766,
-0.08198757469654083,
-0.5986574292182922,
1.8590610027313232,
-0.47406914830207825,
0.4990721344947815,
1.0286705493927002,
-0.27559342980384827,
-1.1814771890640259,
-0.839796781539917,
-1.2855116128921509,
-0.6993473768234253,
1.313621997833252,
0.07761891186237335,
-1.164743185043335,
0.26236769556999207,
1.612805724143982,
0.12049096822738647,
-0.4289599657058716,
0.7176975011825562,
0.29412198066711426,
-0.8441063165664673,
-0.010830480605363846,
-0.9085959196090698,
0.5452350378036499,
-0.03619755804538727,
-0.34875890612602234,
0.36422762274742126,
0.5153300762176514,
1.3600722551345825,
-0.03764486685395241,
0.10874751210212708,
1.0605661869049072,
-1.4459620714187622,
1.5823109149932861,
-0.6745654344558716,
0.3610106110572815,
-2.42718768119812,
1.445313811302185,
-0.7756913304328918,
1.8763580322265625,
-2.6093623638153076,
0.3865244388580322,
-0.44181278347969055,
-0.4603392779827118,
0.26576873660087585,
-0.38478711247444153,
0.14361608028411865,
-0.09133939445018768,
-1.1315903663635254,
-0.0692695751786232,
-0.7664862275123596,
0.5985615253448486,
1.1745854616165161,
1.487657904624939,
-1.150909662246704,
-0.3390701413154602,
-1.7909122705459595,
-0.10781759768724442,
-0.7078774571418762,
0.3029315769672394,
-1.9697986841201782,
-0.12651994824409485,
-1.8117716312408447,
-2.297494411468506,
-1.4141196012496948,
-0.8935636281967163,
0.9770991802215576,
0.09113266319036484,
-0.8870114684104919,
1.1460347175598145,
-0.3849599063396454,
-1.8808023929595947,
1.1237071752548218,
-2.154836416244507
] |
https://github.com/huggingface/datasets/issues/5354 | Consider using "Sequence" instead of "List" | @dantema There is indeed a typo in variable names. Nevertheless, I'm sorry if I was not clear but the output is from `mypy` type checker. You can run the code snippet without issues. The problem is with the type checking. | ### Feature request
Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below.
**How to reproduce**
```py
list_of_filenames = ["foo.parquet", "bar.parquet"]
ds = Dataset.from_parquet(list_of_filenames)
```
**Expected mypy output:**
```
Success: no issues found
```
**Actual mypy output:**
```py
test.py:19: error: Argument 1 to "from_parquet" of "Dataset" has incompatible type "List[str]"; expected "Union[Union[str, bytes, PathLike[Any]], List[Union[str, bytes, PathLike[Any]]]]" [arg-type]
test.py:19: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
test.py:19: note: Consider using "Sequence" instead, which is covariant
```
**Env:** mypy 0.991, Python 3.10.0, datasets 2.7.1 | 374 | 40 | Consider using "Sequence" instead of "List"
### Feature request
Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below.
**How to reproduce**
```py
list_of_filenames = ["foo.parquet", "bar.parquet"]
ds = Dataset.from_parquet(list_of_filenames)
```
**Expected mypy output:**
```
Success: no issues found
```
**Actual mypy output:**
```py
test.py:19: error: Argument 1 to "from_parquet" of "Dataset" has incompatible type "List[str]"; expected "Union[Union[str, bytes, PathLike[Any]], List[Union[str, bytes, PathLike[Any]]]]" [arg-type]
test.py:19: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
test.py:19: note: Consider using "Sequence" instead, which is covariant
```
**Env:** mypy 0.991, Python 3.10.0, datasets 2.7.1
@dantema There is indeed a typo in variable names. Nevertheless, I'm sorry if I was not clear but the output is from `mypy` type checker. You can run the code snippet without issues. The problem is with the type checking. | [
-1.1417784690856934,
-0.8362669944763184,
-0.7446849346160889,
1.523167371749878,
-0.16777461767196655,
-1.2624818086624146,
0.1661750078201294,
-1.0644620656967163,
1.730597972869873,
-0.7514219284057617,
0.38889002799987793,
-1.6621534824371338,
-0.03524775430560112,
-0.6129856705665588,
-0.810299277305603,
-0.8709233403205872,
-0.40585950016975403,
-0.7056231498718262,
1.0373737812042236,
2.471782684326172,
1.2625812292099,
-1.4276947975158691,
2.598555326461792,
0.6864039301872253,
-0.17905357480049133,
-0.9736451506614685,
0.5823887586593628,
0.09419959038496017,
-1.2744159698486328,
-0.39382171630859375,
-0.9146407842636108,
-0.19213658571243286,
-0.4879177510738373,
-0.5735827088356018,
0.007644230499863625,
0.4830456078052521,
-0.25027769804000854,
-0.458827942609787,
-0.5799330472946167,
-0.8096513748168945,
0.358146607875824,
-0.40515992045402527,
0.9225198030471802,
-0.3999534547328949,
1.7976336479187012,
-0.7089789509773254,
0.4337705671787262,
0.6996131539344788,
1.3563441038131714,
0.21761023998260498,
0.006875438615679741,
0.30904367566108704,
0.4538915753364563,
-0.044048819690942764,
0.49945712089538574,
1.1396139860153198,
0.6852170825004578,
0.5109580159187317,
0.7852781414985657,
-2.2097766399383545,
1.2448126077651978,
-1.0672482252120972,
0.2605419158935547,
1.403903841972351,
-0.9087048172950745,
0.3175691068172455,
-1.8277201652526855,
-0.005083344876766205,
0.5488637089729309,
-2.236276865005493,
0.31798747181892395,
-1.3216025829315186,
-0.6321619153022766,
0.9587556719779968,
0.3575684428215027,
-1.2743111848831177,
0.17789900302886963,
-0.41698744893074036,
0.9938837289810181,
0.3426891565322876,
1.1172764301300049,
-1.7677345275878906,
-0.09298152476549149,
-0.35572749376296997,
0.06158744543790817,
-1.1852335929870605,
-1.5374985933303833,
0.6185736656188965,
0.6024155616760254,
0.5272204279899597,
-0.1912974715232849,
0.9734978675842285,
-0.992463231086731,
0.8270552158355713,
-1.1256321668624878,
-1.787817120552063,
-1.4226298332214355,
-2.1920273303985596,
-2.2248694896698,
0.8355067372322083,
-0.46054503321647644,
-0.4855530858039856,
2.0262227058410645,
-0.9147404432296753,
-1.6749032735824585,
1.0154969692230225,
0.32463088631629944,
0.024514853954315186,
2.4069998264312744,
0.18226194381713867,
-0.6804249882698059,
0.3092838227748871,
-0.8084493279457092,
0.7533168792724609,
-0.3825693130493164,
1.3910294771194458,
0.38691696524620056,
-1.0424036979675293,
1.6493182182312012,
-0.3379957973957062,
0.610676109790802,
-0.7105697989463806,
-0.49233654141426086,
-0.6510419249534607,
0.32947513461112976,
1.975688099861145,
-0.3321899473667145,
1.521670937538147,
-0.3200126886367798,
-1.5348131656646729,
-1.5630507469177246,
0.8627628684043884,
0.49141889810562134,
-0.7234573364257812,
-0.003332829102873802,
-0.3038163483142853,
0.10314256697893143,
-0.13771197199821472,
1.1619411706924438,
1.2031742334365845,
0.7687512636184692,
-0.3488887846469879,
-0.8128178119659424,
0.1485457718372345,
-0.012971059419214725,
-0.8048840165138245,
-1.7772653102874756,
-0.3875413239002228,
0.15253901481628418,
0.6297150254249573,
-1.2451987266540527,
1.789989709854126,
0.8501018285751343,
1.9228603839874268,
0.9538256525993347,
-0.44332626461982727,
1.462558627128601,
0.0603121817111969,
1.8891890048980713,
-0.5353042483329773,
0.6576469540596008,
-0.38617148995399475,
-1.1954569816589355,
1.0125877857208252,
-0.31347790360450745,
-2.0667474269866943,
-0.7876425981521606,
-0.8341704607009888,
-0.16030794382095337,
-0.7352501153945923,
0.8713179230690002,
-0.2733515202999115,
-1.373342752456665,
0.17947956919670105,
-0.7153587341308594,
0.027837414294481277,
-1.2325258255004883,
0.27346545457839966,
0.6754501461982727,
-0.5746619701385498,
0.0658426359295845,
-0.272863507270813,
-1.2862679958343506,
-0.5471680164337158,
0.2906176447868347,
1.9291011095046997,
-0.7356072068214417,
0.9104143381118774,
1.0611381530761719,
-0.7644831538200378,
0.014807859435677528,
0.30026257038116455,
-0.3202139735221863,
0.8311076164245605,
-1.0597349405288696,
-0.5039727687835693,
1.10102117061615,
-0.0752153992652893,
-0.6042660474777222,
1.5179526805877686,
0.7859100103378296,
-0.9708474278450012,
-0.21764665842056274,
-0.24236714839935303,
-0.7996214628219604,
0.1279754936695099,
-1.5714704990386963,
-0.11544420570135117,
0.3773666322231293,
-1.5101706981658936,
-0.5038999319076538,
-0.16857537627220154,
1.3242522478103638,
-0.23188918828964233,
1.3244606256484985,
-0.2860964834690094,
-0.3141214847564697,
-0.4118339419364929,
-0.31873902678489685,
0.09879034757614136,
-0.23201096057891846,
-0.6725144982337952,
0.2831234037876129,
-0.7556015849113464,
0.3369378447532654,
1.3734312057495117,
0.34025245904922485,
-0.03499056398868561,
0.4953351616859436,
1.074510097503662,
0.34186768531799316,
0.016712041571736336,
-1.0077306032180786,
-1.492496371269226,
2.0035252571105957,
-1.4686064720153809,
2.0296788215637207,
0.7718520164489746,
0.026337523013353348,
-1.758047342300415,
-1.8714829683303833,
1.396936058998108,
1.2477065324783325,
2.2875797748565674,
0.6067786812782288,
0.3907555341720581,
-0.802698016166687,
-0.5576245188713074,
0.2909404933452606,
-1.0417780876159668,
-0.6369221210479736,
0.17981413006782532,
2.4308481216430664,
1.6955363750457764,
-0.5772391557693481,
-0.15156200528144836,
-1.0167776346206665,
1.441190481185913,
-0.14208725094795227,
0.18969208002090454,
2.0073788166046143,
-0.2520595192909241,
-1.1043604612350464,
1.2434309720993042,
-2.303518295288086,
0.15373167395591736,
2.009958505630493,
0.29329249262809753,
0.12305662781000137,
-1.385230302810669,
-0.6604547500610352,
-0.35426947474479675,
-0.40205833315849304,
-1.2223199605941772,
0.5171099305152893,
-0.19859561324119568,
-0.7927414178848267,
-1.5006935596466064,
0.2040104866027832,
-1.199194073677063,
-1.7163128852844238,
0.25282391905784607,
1.9192099571228027,
1.9055386781692505,
-0.7605748176574707,
1.5089119672775269,
-0.4208303689956665,
0.05643404275178909,
1.233759880065918,
1.2748961448669434,
3.024340867996216,
1.9574415683746338,
-1.1427106857299805,
0.6736228466033936,
-0.17776304483413696,
-0.42551425099372864,
1.122406005859375,
-1.1564949750900269,
1.2244763374328613,
-0.19297635555267334,
-1.076034665107727,
-1.2189174890518188,
0.9289687871932983,
0.4697195887565613,
0.06275303661823273,
-0.5448372960090637,
1.1558456420898438,
0.06245739758014679,
1.3526517152786255,
0.6104075908660889,
-0.28039348125457764,
0.6031235456466675,
-0.40731582045555115,
-0.3408040404319763,
1.6061877012252808,
0.24772268533706665,
-1.462640404701233,
-2.3911020755767822,
-0.19697949290275574,
-0.8474894165992737,
0.05639137327671051,
-0.6118947267532349,
-1.0433080196380615,
1.7600466012954712,
0.3873182237148285,
-1.2480063438415527,
-0.2328301966190338,
-0.38157665729522705,
-0.6360383629798889,
2.732553005218506,
-1.4284937381744385,
-0.22994762659072876,
-1.0103168487548828,
-0.5891607403755188,
1.713698148727417,
-1.183334469795227,
-0.09494341909885406,
-1.00043785572052,
-0.4773390293121338,
-1.2823140621185303,
-0.5511709451675415,
0.06213300675153732,
-0.9378498196601868,
0.8487002849578857,
0.10637349635362625,
-1.2652099132537842,
-0.3793761730194092,
-0.8567348718643188,
0.8085087537765503,
-0.1476326882839203,
0.24025174975395203,
2.043457269668579,
0.4486037790775299,
-0.3461204767227173,
0.6660276055335999,
1.187769889831543,
0.6682162284851074,
-0.5993900895118713,
0.2940441966056824,
-0.5927187204360962,
0.26580193638801575,
-1.3143224716186523,
0.227027028799057,
-2.777738332748413,
0.655340313911438,
-0.02702455222606659,
-0.0029590968042612076,
0.04333452507853508,
-1.2763948440551758,
1.1994078159332275,
2.6242752075195312,
-1.2299368381500244,
0.4030511677265167,
0.2676236927509308,
1.1961617469787598,
-1.5323801040649414,
0.2845098078250885,
-0.35592371225357056,
2.1050124168395996,
0.1510944664478302,
1.1480045318603516,
-0.5247625708580017,
-2.2231240272521973,
0.611225962638855,
-1.2683528661727905,
-1.210340976715088,
0.714003324508667,
-0.767320990562439,
0.13799771666526794,
-1.4961298704147339,
-0.1737285852432251,
-0.8690938949584961,
-1.1882638931274414,
0.7557254433631897,
0.09371449053287506,
0.349458247423172,
-0.6416189074516296,
0.3871973156929016,
-2.1577506065368652,
-1.4348137378692627,
-0.31410276889801025,
-0.9076094031333923,
0.5357192158699036,
-0.3351542055606842,
0.7364228963851929,
-0.1103372722864151,
0.005049349740147591,
0.3269774913787842,
1.5085939168930054,
3.4461355209350586,
0.17280089855194092,
0.34076768159866333,
-0.2220456600189209,
-0.9642818570137024,
1.4648972749710083,
0.9353851675987244,
0.005406196229159832,
-0.4545661509037018,
-1.0073128938674927,
1.2111587524414062,
2.0410006046295166,
1.105576515197754,
-0.018163837492465973,
-0.844569742679596,
-0.7617292404174805,
-0.03385806828737259,
0.2439211905002594,
0.44288119673728943,
0.9232538938522339,
0.08376719802618027,
0.030470039695501328,
1.3930221796035767,
1.182898998260498,
-0.4949077367782593,
0.2650318443775177,
-0.8836464285850525,
-0.4982241094112396,
0.4721947908401489,
0.34337782859802246,
0.059160664677619934,
0.4111796021461487,
-1.103973388671875,
-0.38063400983810425,
-0.25826922059059143,
-0.8542757630348206,
-0.7231088876724243,
-0.43581363558769226,
-0.42044150829315186,
1.634278416633606,
0.08489323407411575,
-0.49672389030456543,
0.008150562644004822,
-0.7332277894020081,
0.016535501927137375,
-1.1205259561538696,
0.266215443611145,
-0.1304953247308731,
-0.0780039057135582,
-0.08490710705518723,
1.7892942428588867,
-0.927599310874939,
-1.9650810956954956,
0.28295260667800903,
0.2517114281654358,
-0.41009727120399475,
0.27599167823791504,
1.644101858139038,
0.6678183674812317,
1.4277924299240112,
1.3064311742782593,
1.0129274129867554,
-0.6403319835662842,
-1.3663045167922974,
0.5730064511299133,
1.0333967208862305,
-1.39557683467865,
0.8529967069625854,
0.026148606091737747,
-0.4377332031726837,
0.5480252504348755,
1.3849711418151855,
0.4709484279155731,
-2.0454154014587402,
0.718456506729126,
-0.847361147403717,
0.8038692474365234,
0.6811603903770447,
0.7485499978065491,
0.21937790513038635,
0.765802264213562,
-1.2047861814498901,
-1.079395055770874,
-0.7720975875854492,
-0.6810847520828247,
1.8699108362197876,
-0.2426760494709015,
0.5567499995231628,
-0.29283204674720764,
-1.2925528287887573,
-0.11984821408987045,
0.6928197145462036,
0.47318339347839355,
-0.5010626912117004,
0.7504410147666931,
-0.5358527898788452,
-1.0108962059020996,
-1.3558984994888306,
-0.5053581595420837,
-0.9443093538284302,
-1.0023384094238281,
1.0048365592956543,
0.8761051893234253,
0.46664413809776306,
1.8935309648513794,
0.6941704154014587,
0.1662335991859436,
-2.5631864070892334,
0.9374522566795349,
0.3326987326145172,
-0.12832722067832947,
0.8541209101676941,
0.363480806350708,
0.9983965158462524,
-0.0993104800581932,
0.6313669085502625,
-2.3904385566711426,
2.3508031368255615,
-0.1656518280506134,
0.6852064728736877,
0.06849334388971329,
-0.15558046102523804,
1.1082348823547363,
0.5506088137626648,
0.4657396674156189,
-1.0827083587646484,
0.5622196793556213,
-0.6281858682632446,
1.2755144834518433,
0.8312339782714844,
-0.6676830649375916,
-0.016010385006666183,
1.3717979192733765,
0.5709525346755981,
-0.5307983160018921,
-0.9514132142066956,
-0.893661618232727,
0.9657666087150574,
1.705595850944519,
-0.08099639415740967,
-0.01668361760675907,
0.8856403231620789,
0.5814614295959473,
-1.2811154127120972,
-0.012296771630644798,
-0.8038626313209534,
-0.7063925862312317,
1.6500030755996704,
2.1110873222351074,
-0.1961284577846527,
-0.27010244131088257,
-0.7384143471717834,
-1.2549569606781006,
0.8202784657478333,
-0.02557147666811943,
0.11327551305294037,
0.6803454160690308,
-0.6269752979278564,
1.116104006767273,
0.8193519711494446,
0.9803147315979004,
0.16633209586143494,
0.44735389947891235,
0.32559677958488464,
-0.3724641501903534,
-1.1797220706939697,
-0.24936512112617493,
-1.1029784679412842,
-2.555713653564453,
0.45467883348464966,
-0.2874470353126526,
-1.38405442237854,
-0.10707185417413712,
-1.16633141040802,
0.8639143109321594,
-0.558998703956604,
-1.0345656871795654,
-1.5360203981399536,
0.2120772898197174,
-0.01939946599304676,
1.0118275880813599,
-1.6461801528930664,
-0.10641699284315109,
1.3092609643936157,
0.8437528610229492,
-0.7029665112495422,
0.8831372857093811,
0.17873570322990417,
1.188413381576538,
0.8459659218788147,
-0.3112700283527374,
0.45542705059051514,
-0.059449076652526855,
-1.2998100519180298,
0.4662668704986572,
1.1881874799728394,
0.11233878135681152,
1.4307297468185425,
-0.5131192803382874,
0.05527689307928085,
0.43133342266082764,
-0.5009836554527283,
-0.505318820476532,
-0.5813025832176208,
0.6271211504936218,
0.11449166387319565,
-0.9923567175865173,
0.04540995508432388,
-0.032242052257061005,
-0.11724675446748734,
0.18457651138305664,
-1.4259237051010132,
-0.1645490527153015,
-0.2940414845943451,
-0.5787274241447449,
-1.1934117078781128,
-0.11678197234869003,
1.3051573038101196,
-0.6844933032989502,
-0.1281352937221527,
0.47967231273651123,
0.34767794609069824,
0.5271753668785095,
0.5945711731910706,
-0.6532884836196899,
-0.49313682317733765,
-0.2709898352622986,
-0.35296007990837097,
0.3041640520095825,
1.3834936618804932,
-0.1435805857181549,
-1.0145890712738037,
0.6897009611129761,
-0.401475727558136,
0.05711904168128967,
2.0134623050689697,
-0.004266646690666676,
-0.8126439452171326,
0.2924221158027649,
-0.6348590850830078,
1.8901063203811646,
1.7037115097045898,
1.2472670078277588,
-0.1766267716884613,
-0.9571551084518433,
0.6437639594078064,
-0.3214653730392456,
-0.4200204908847809,
0.7459858059883118,
0.3672775626182556,
-0.2649734616279602,
-1.4510070085525513,
0.5906572341918945,
1.4134963750839233,
-0.8914715647697449,
-0.867591917514801,
0.19748109579086304,
-0.7802733778953552,
1.0403637886047363,
0.6381765007972717,
0.3751991093158722,
0.34738799929618835,
1.5938712358474731,
0.7678184509277344,
-0.3832034468650818,
0.47688743472099304,
0.5147793889045715,
-0.12166174501180649,
-2.0580265522003174,
-1.2320407629013062,
0.29514798521995544,
-0.5714575052261353,
-1.6874926090240479,
1.3918700218200684,
-1.2227168083190918,
-0.9732322692871094,
0.589698314666748,
0.14097556471824646,
1.4708545207977295,
0.31709256768226624,
1.6093735694885254,
1.9340084791183472,
0.866962730884552,
0.3982921838760376,
1.2519739866256714,
-0.07807520776987076,
-0.6032807230949402,
1.826106309890747,
-0.46841850876808167,
0.4519840478897095,
1.0557260513305664,
-0.24312067031860352,
-1.1864652633666992,
-0.8254098296165466,
-1.2611536979675293,
-0.7121633887290955,
1.3020392656326294,
0.08440885692834854,
-1.1981592178344727,
0.23434850573539734,
1.58159339427948,
0.10755930095911026,
-0.42230942845344543,
0.601701557636261,
0.3230602443218231,
-0.8679129481315613,
-0.041019123047590256,
-0.9427298307418823,
0.5362328886985779,
-0.027860959991812706,
-0.3293971121311188,
0.39021459221839905,
0.5084044337272644,
1.3815786838531494,
-0.020594310015439987,
0.1805882453918457,
1.0392818450927734,
-1.4649537801742554,
1.5783954858779907,
-0.6495541334152222,
0.33404237031936646,
-2.349973678588867,
1.414663553237915,
-0.747891366481781,
1.8685073852539062,
-2.6524972915649414,
0.38056033849716187,
-0.4563369154930115,
-0.3794930875301361,
0.2671698033809662,
-0.37294065952301025,
0.20006731152534485,
-0.0902046486735344,
-1.1719472408294678,
-0.08820612728595734,
-0.7728108167648315,
0.5736208558082581,
1.1131523847579956,
1.4468716382980347,
-1.1006512641906738,
-0.34111857414245605,
-1.7523726224899292,
-0.1052354946732521,
-0.7042109370231628,
0.3143619894981384,
-1.9286692142486572,
-0.13134188950061798,
-1.8510167598724365,
-2.29059100151062,
-1.35902738571167,
-0.8568403720855713,
0.9722118377685547,
0.054650917649269104,
-0.837485134601593,
1.116936206817627,
-0.3612608015537262,
-1.9168193340301514,
1.1444675922393799,
-2.120924234390259
] |
https://github.com/huggingface/datasets/issues/5354 | Consider using "Sequence" instead of "List" | However, I found out that the type annotation is actually misleading. The [`from_parquet`](https://github.com/huggingface/datasets/blob/5ef1ab1cc06c2b7a574bf2df454cd9fcb071ccb2/src/datasets/arrow_dataset.py#L1039) method should also accept list of [`PathLike`](https://github.com/huggingface/datasets/blob/main/src/datasets/utils/typing.py#L8) objects which includes [`os.PathLike`](https://docs.python.org/3/library/os.html#os.PathLike). But if I would ran the code snippet below, an exception is thrown.
**Code**
```py
from pathlib import Path
list_of_filenames = [Path("foo.parquet"), Path("bar.parquet")]
ds = Dataset.from_parquet(list_of_filenames)
```
**Output**
```py
[/usr/local/lib/python3.8/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in from_parquet(path_or_paths, split, features, cache_dir, keep_in_memory, columns, **kwargs)
1071 from .io.parquet import ParquetDatasetReader
1072
-> 1073 return ParquetDatasetReader(
1074 path_or_paths,
1075 split=split,
[/usr/local/lib/python3.8/dist-packages/datasets/io/parquet.py](https://localhost:8080/#) in __init__(self, path_or_paths, split, features, cache_dir, keep_in_memory, streaming, **kwargs)
35 path_or_paths = path_or_paths if isinstance(path_or_paths, dict) else {self.split: path_or_paths}
36 hash = _PACKAGED_DATASETS_MODULES["parquet"][1]
---> 37 self.builder = Parquet(
38 cache_dir=cache_dir,
39 data_files=path_or_paths,
[/usr/local/lib/python3.8/dist-packages/datasets/builder.py](https://localhost:8080/#) in __init__(self, cache_dir, config_name, hash, base_path, info, features, use_auth_token, repo_id, data_files, data_dir, name, **config_kwargs)
298
299 if data_files is not None and not isinstance(data_files, DataFilesDict):
--> 300 data_files = DataFilesDict.from_local_or_remote(
301 sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token
302 )
[/usr/local/lib/python3.8/dist-packages/datasets/data_files.py](https://localhost:8080/#) in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token)
794 for key, patterns_for_key in patterns.items():
795 out[key] = (
--> 796 DataFilesList.from_local_or_remote(
797 patterns_for_key,
798 base_path=base_path,
[/usr/local/lib/python3.8/dist-packages/datasets/data_files.py](https://localhost:8080/#) in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token)
762 ) -> "DataFilesList":
763 base_path = base_path if base_path is not None else str(Path().resolve())
--> 764 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
765 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token)
766 return cls(data_files, origin_metadata)
[/usr/local/lib/python3.8/dist-packages/datasets/data_files.py](https://localhost:8080/#) in resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
357 data_files = []
358 for pattern in patterns:
--> 359 if is_remote_url(pattern):
360 data_files.append(Url(pattern))
361 else:
[/usr/local/lib/python3.8/dist-packages/datasets/utils/file_utils.py](https://localhost:8080/#) in is_remote_url(url_or_filename)
62
63 def is_remote_url(url_or_filename: str) -> bool:
---> 64 parsed = urlparse(url_or_filename)
65 return parsed.scheme in ("http", "https", "s3", "gs", "hdfs", "ftp")
66
[/usr/lib/python3.8/urllib/parse.py](https://localhost:8080/#) in urlparse(url, scheme, allow_fragments)
373 Note that we don't break the components up in smaller bits
374 (e.g. netloc is a single string) and we don't expand % escapes."""
--> 375 url, scheme, _coerce_result = _coerce_args(url, scheme)
376 splitresult = urlsplit(url, scheme, allow_fragments)
377 scheme, netloc, url, query, fragment = splitresult
[/usr/lib/python3.8/urllib/parse.py](https://localhost:8080/#) in _coerce_args(*args)
125 if str_input:
126 return args + (_noop,)
--> 127 return _decode_args(args) + (_encode_result,)
128
129 # Result objects are more helpful than simple tuples
[/usr/lib/python3.8/urllib/parse.py](https://localhost:8080/#) in _decode_args(args, encoding, errors)
109 def _decode_args(args, encoding=_implicit_encoding,
110 errors=_implicit_errors):
--> 111 return tuple(x.decode(encoding, errors) if x else '' for x in args)
112
113 def _coerce_args(*args):
[/usr/lib/python3.8/urllib/parse.py](https://localhost:8080/#) in <genexpr>(.0)
109 def _decode_args(args, encoding=_implicit_encoding,
110 errors=_implicit_errors):
--> 111 return tuple(x.decode(encoding, errors) if x else '' for x in args)
112
113 def _coerce_args(*args):
AttributeError: 'PosixPath' object has no attribute 'decode'
```
@mariosasko Should I create a new issue? | ### Feature request
Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below.
**How to reproduce**
```py
list_of_filenames = ["foo.parquet", "bar.parquet"]
ds = Dataset.from_parquet(list_of_filenames)
```
**Expected mypy output:**
```
Success: no issues found
```
**Actual mypy output:**
```py
test.py:19: error: Argument 1 to "from_parquet" of "Dataset" has incompatible type "List[str]"; expected "Union[Union[str, bytes, PathLike[Any]], List[Union[str, bytes, PathLike[Any]]]]" [arg-type]
test.py:19: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
test.py:19: note: Consider using "Sequence" instead, which is covariant
```
**Env:** mypy 0.991, Python 3.10.0, datasets 2.7.1 | 374 | 405 | Consider using "Sequence" instead of "List"
### Feature request
Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below.
**How to reproduce**
```py
list_of_filenames = ["foo.parquet", "bar.parquet"]
ds = Dataset.from_parquet(list_of_filenames)
```
**Expected mypy output:**
```
Success: no issues found
```
**Actual mypy output:**
```py
test.py:19: error: Argument 1 to "from_parquet" of "Dataset" has incompatible type "List[str]"; expected "Union[Union[str, bytes, PathLike[Any]], List[Union[str, bytes, PathLike[Any]]]]" [arg-type]
test.py:19: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
test.py:19: note: Consider using "Sequence" instead, which is covariant
```
**Env:** mypy 0.991, Python 3.10.0, datasets 2.7.1
However, I found out that the type annotation is actually misleading. The [`from_parquet`](https://github.com/huggingface/datasets/blob/5ef1ab1cc06c2b7a574bf2df454cd9fcb071ccb2/src/datasets/arrow_dataset.py#L1039) method should also accept list of [`PathLike`](https://github.com/huggingface/datasets/blob/main/src/datasets/utils/typing.py#L8) objects which includes [`os.PathLike`](https://docs.python.org/3/library/os.html#os.PathLike). But if I would ran the code snippet below, an exception is thrown.
**Code**
```py
from pathlib import Path
list_of_filenames = [Path("foo.parquet"), Path("bar.parquet")]
ds = Dataset.from_parquet(list_of_filenames)
```
**Output**
```py
[/usr/local/lib/python3.8/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in from_parquet(path_or_paths, split, features, cache_dir, keep_in_memory, columns, **kwargs)
1071 from .io.parquet import ParquetDatasetReader
1072
-> 1073 return ParquetDatasetReader(
1074 path_or_paths,
1075 split=split,
[/usr/local/lib/python3.8/dist-packages/datasets/io/parquet.py](https://localhost:8080/#) in __init__(self, path_or_paths, split, features, cache_dir, keep_in_memory, streaming, **kwargs)
35 path_or_paths = path_or_paths if isinstance(path_or_paths, dict) else {self.split: path_or_paths}
36 hash = _PACKAGED_DATASETS_MODULES["parquet"][1]
---> 37 self.builder = Parquet(
38 cache_dir=cache_dir,
39 data_files=path_or_paths,
[/usr/local/lib/python3.8/dist-packages/datasets/builder.py](https://localhost:8080/#) in __init__(self, cache_dir, config_name, hash, base_path, info, features, use_auth_token, repo_id, data_files, data_dir, name, **config_kwargs)
298
299 if data_files is not None and not isinstance(data_files, DataFilesDict):
--> 300 data_files = DataFilesDict.from_local_or_remote(
301 sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token
302 )
[/usr/local/lib/python3.8/dist-packages/datasets/data_files.py](https://localhost:8080/#) in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token)
794 for key, patterns_for_key in patterns.items():
795 out[key] = (
--> 796 DataFilesList.from_local_or_remote(
797 patterns_for_key,
798 base_path=base_path,
[/usr/local/lib/python3.8/dist-packages/datasets/data_files.py](https://localhost:8080/#) in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token)
762 ) -> "DataFilesList":
763 base_path = base_path if base_path is not None else str(Path().resolve())
--> 764 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
765 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token)
766 return cls(data_files, origin_metadata)
[/usr/local/lib/python3.8/dist-packages/datasets/data_files.py](https://localhost:8080/#) in resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions)
357 data_files = []
358 for pattern in patterns:
--> 359 if is_remote_url(pattern):
360 data_files.append(Url(pattern))
361 else:
[/usr/local/lib/python3.8/dist-packages/datasets/utils/file_utils.py](https://localhost:8080/#) in is_remote_url(url_or_filename)
62
63 def is_remote_url(url_or_filename: str) -> bool:
---> 64 parsed = urlparse(url_or_filename)
65 return parsed.scheme in ("http", "https", "s3", "gs", "hdfs", "ftp")
66
[/usr/lib/python3.8/urllib/parse.py](https://localhost:8080/#) in urlparse(url, scheme, allow_fragments)
373 Note that we don't break the components up in smaller bits
374 (e.g. netloc is a single string) and we don't expand % escapes."""
--> 375 url, scheme, _coerce_result = _coerce_args(url, scheme)
376 splitresult = urlsplit(url, scheme, allow_fragments)
377 scheme, netloc, url, query, fragment = splitresult
[/usr/lib/python3.8/urllib/parse.py](https://localhost:8080/#) in _coerce_args(*args)
125 if str_input:
126 return args + (_noop,)
--> 127 return _decode_args(args) + (_encode_result,)
128
129 # Result objects are more helpful than simple tuples
[/usr/lib/python3.8/urllib/parse.py](https://localhost:8080/#) in _decode_args(args, encoding, errors)
109 def _decode_args(args, encoding=_implicit_encoding,
110 errors=_implicit_errors):
--> 111 return tuple(x.decode(encoding, errors) if x else '' for x in args)
112
113 def _coerce_args(*args):
[/usr/lib/python3.8/urllib/parse.py](https://localhost:8080/#) in <genexpr>(.0)
109 def _decode_args(args, encoding=_implicit_encoding,
110 errors=_implicit_errors):
--> 111 return tuple(x.decode(encoding, errors) if x else '' for x in args)
112
113 def _coerce_args(*args):
AttributeError: 'PosixPath' object has no attribute 'decode'
```
@mariosasko Should I create a new issue? | [
-1.1314377784729004,
-0.8188692331314087,
-0.7313487529754639,
1.4617829322814941,
-0.12871532142162323,
-1.2888085842132568,
0.1325380504131317,
-1.0625556707382202,
1.6795439720153809,
-0.7191594839096069,
0.34144148230552673,
-1.6790275573730469,
-0.08184440433979034,
-0.6191173791885376,
-0.7783090472221375,
-0.8703370690345764,
-0.3676743507385254,
-0.7223408222198486,
1.0217609405517578,
2.46987247467041,
1.2843645811080933,
-1.3999779224395752,
2.663191556930542,
0.7183893322944641,
-0.23919498920440674,
-0.9814304709434509,
0.5703772902488708,
0.09925279021263123,
-1.270320177078247,
-0.371902197599411,
-0.9076130986213684,
-0.15753769874572754,
-0.47440028190612793,
-0.5314801335334778,
0.05627244710922241,
0.46975889801979065,
-0.24140529334545135,
-0.402768075466156,
-0.5991272330284119,
-0.7431977987289429,
0.35917502641677856,
-0.3710080087184906,
0.9239414930343628,
-0.3630170226097107,
1.7926274538040161,
-0.6956935524940491,
0.3657197654247284,
0.6714914441108704,
1.3502637147903442,
0.17209452390670776,
0.06405095756053925,
0.27626994252204895,
0.4180006980895996,
-0.022294946014881134,
0.5074495077133179,
1.2110108137130737,
0.6864461898803711,
0.49176904559135437,
0.7956778407096863,
-2.193847179412842,
1.2479723691940308,
-0.986411452293396,
0.26795494556427,
1.4009394645690918,
-0.8853407502174377,
0.33904680609703064,
-1.8446859121322632,
0.00295440386980772,
0.536521852016449,
-2.269655704498291,
0.2824641466140747,
-1.3279973268508911,
-0.6374524235725403,
0.942086935043335,
0.30629920959472656,
-1.2232927083969116,
0.23796531558036804,
-0.4785296618938446,
1.029055118560791,
0.39824631810188293,
1.1707894802093506,
-1.7550839185714722,
-0.09521549940109253,
-0.3135768175125122,
0.03693472594022751,
-1.2208269834518433,
-1.5812041759490967,
0.6228850483894348,
0.6206362247467041,
0.6114597320556641,
-0.1834852248430252,
0.9621497392654419,
-0.9789698719978333,
0.797204852104187,
-1.0541303157806396,
-1.7381350994110107,
-1.431573510169983,
-2.1939029693603516,
-2.2294743061065674,
0.8502760529518127,
-0.4509633183479309,
-0.46643906831741333,
1.9652680158615112,
-0.9352694153785706,
-1.7447161674499512,
0.9761173725128174,
0.3638506829738617,
0.020549166947603226,
2.410521984100342,
0.2207784503698349,
-0.6866915225982666,
0.3356821537017822,
-0.7461027503013611,
0.7659169435501099,
-0.34001198410987854,
1.356629490852356,
0.4303840100765228,
-1.0286263227462769,
1.6264467239379883,
-0.3807741403579712,
0.6215505003929138,
-0.7236582636833191,
-0.48290419578552246,
-0.6835438013076782,
0.2861054539680481,
1.9751834869384766,
-0.37112778425216675,
1.5387533903121948,
-0.33625903725624084,
-1.5631963014602661,
-1.537229299545288,
0.814008891582489,
0.5228679776191711,
-0.7213698029518127,
-0.01997368410229683,
-0.36490434408187866,
0.09405090659856796,
-0.12898042798042297,
1.1486924886703491,
1.1766124963760376,
0.7010924220085144,
-0.3242543041706085,
-0.7799333930015564,
0.17548832297325134,
-0.0015315404161810875,
-0.7920885682106018,
-1.8128070831298828,
-0.35254737734794617,
0.2275676429271698,
0.5962241291999817,
-1.2400531768798828,
1.7811437845230103,
0.817206621170044,
1.951399326324463,
0.9632969498634338,
-0.4651864767074585,
1.4604822397232056,
0.029802994802594185,
1.8835276365280151,
-0.5596221089363098,
0.6471923589706421,
-0.3498903810977936,
-1.1835931539535522,
0.9717538952827454,
-0.32576143741607666,
-2.066329002380371,
-0.7647184729576111,
-0.799092710018158,
-0.1414097100496292,
-0.7263529896736145,
0.8604400753974915,
-0.28414350748062134,
-1.4041059017181396,
0.12001865357160568,
-0.7086610794067383,
0.04790008068084717,
-1.2385036945343018,
0.17725951969623566,
0.7122487425804138,
-0.6121407151222229,
-0.008875638246536255,
-0.2537555396556854,
-1.2994259595870972,
-0.5200688242912292,
0.2806796133518219,
1.8979902267456055,
-0.6693637371063232,
0.9054861068725586,
1.0479153394699097,
-0.7404948472976685,
0.1075965017080307,
0.30036863684654236,
-0.32241547107696533,
0.795444130897522,
-1.0918959379196167,
-0.4669467806816101,
1.129631519317627,
-0.05117552727460861,
-0.6375508904457092,
1.4991607666015625,
0.8562599420547485,
-1.0050380229949951,
-0.20393794775009155,
-0.23497802019119263,
-0.7955144047737122,
0.08591938763856888,
-1.555309772491455,
-0.15925325453281403,
0.38513240218162537,
-1.4637311697006226,
-0.49956926703453064,
-0.22611819207668304,
1.3350830078125,
-0.22517341375350952,
1.3100982904434204,
-0.2698172628879547,
-0.2798624634742737,
-0.41248518228530884,
-0.3981558382511139,
0.09192777425050735,
-0.2415168583393097,
-0.6744616031646729,
0.2683546841144562,
-0.8048933744430542,
0.3346879482269287,
1.422734022140503,
0.3547956347465515,
0.010540993884205818,
0.5365461707115173,
1.0885350704193115,
0.3292793035507202,
-0.017550421878695488,
-0.9857932329177856,
-1.525694727897644,
1.9925928115844727,
-1.449256420135498,
2.0185346603393555,
0.7954082489013672,
0.015565028414130211,
-1.737800121307373,
-1.8712459802627563,
1.3817158937454224,
1.228446125984192,
2.341569423675537,
0.5663610696792603,
0.41059523820877075,
-0.7892152070999146,
-0.6091467142105103,
0.26220694184303284,
-1.0070745944976807,
-0.6245830655097961,
0.19153417646884918,
2.4217944145202637,
1.765473484992981,
-0.6125024557113647,
-0.21255400776863098,
-0.984211802482605,
1.370403528213501,
-0.21578378975391388,
0.1957605928182602,
2.032566785812378,
-0.26227471232414246,
-1.0662211179733276,
1.3018661737442017,
-2.306337833404541,
0.17363546788692474,
1.9924046993255615,
0.2755589485168457,
0.12723934650421143,
-1.3676353693008423,
-0.6875602602958679,
-0.37385228276252747,
-0.41833576560020447,
-1.2111040353775024,
0.5120350122451782,
-0.2329069823026657,
-0.8439491391181946,
-1.4866658449172974,
0.1738705039024353,
-1.225127935409546,
-1.7472141981124878,
0.33089107275009155,
1.9348119497299194,
1.920833945274353,
-0.8018558621406555,
1.4687960147857666,
-0.39953094720840454,
0.03854674845933914,
1.259861946105957,
1.3038150072097778,
3.0549442768096924,
1.883946418762207,
-1.170942783355713,
0.7519570589065552,
-0.21547068655490875,
-0.4457992613315582,
1.1244672536849976,
-1.1405609846115112,
1.1754059791564941,
-0.20627835392951965,
-1.1518317461013794,
-1.2279106378555298,
0.9706862568855286,
0.49174579977989197,
0.07377848029136658,
-0.556906521320343,
1.171022891998291,
0.050189100205898285,
1.3763878345489502,
0.6358376741409302,
-0.34673556685447693,
0.5516428351402283,
-0.3326495885848999,
-0.36646154522895813,
1.614139199256897,
0.19304847717285156,
-1.4949290752410889,
-2.361715078353882,
-0.21241505444049835,
-0.8545364737510681,
-0.010930038057267666,
-0.6364470720291138,
-1.0618259906768799,
1.7383077144622803,
0.4098827540874481,
-1.2548524141311646,
-0.2343149185180664,
-0.3719440996646881,
-0.5708944201469421,
2.6807925701141357,
-1.41707444190979,
-0.19508673250675201,
-1.0011011362075806,
-0.5369035601615906,
1.706773042678833,
-1.1205395460128784,
-0.11689052730798721,
-0.989784300327301,
-0.5102461576461792,
-1.3086587190628052,
-0.5362544655799866,
0.10757630318403244,
-0.9047860503196716,
0.8128339052200317,
0.06791339814662933,
-1.1966153383255005,
-0.3500230610370636,
-0.8852631449699402,
0.9170960187911987,
-0.16179020702838898,
0.1910385638475418,
2.0347683429718018,
0.4572719931602478,
-0.356991171836853,
0.663793683052063,
1.2022103071212769,
0.6286904215812683,
-0.6520949602127075,
0.20284822583198547,
-0.6372759342193604,
0.24359901249408722,
-1.4326883554458618,
0.22270391881465912,
-2.817474603652954,
0.6813820004463196,
-0.03202735632658005,
-0.018402934074401855,
0.06858716905117035,
-1.2767449617385864,
1.161954402923584,
2.6530332565307617,
-1.2387431859970093,
0.39145421981811523,
0.3370094895362854,
1.1863899230957031,
-1.5366889238357544,
0.2613980770111084,
-0.37285953760147095,
2.0497922897338867,
0.13160564005374908,
1.221651315689087,
-0.544497549533844,
-2.190495729446411,
0.5827961564064026,
-1.2484519481658936,
-1.1424133777618408,
0.7866596579551697,
-0.7947376370429993,
0.21023398637771606,
-1.5322741270065308,
-0.15165956318378448,
-0.9177612662315369,
-1.193571925163269,
0.7342013716697693,
0.07738984376192093,
0.3503354489803314,
-0.6430022716522217,
0.38798025250434875,
-2.12398362159729,
-1.4096330404281616,
-0.2504425048828125,
-0.9056875705718994,
0.5944494009017944,
-0.30263185501098633,
0.7101744413375854,
-0.06688262522220612,
-0.0004091579467058182,
0.2840992212295532,
1.489301323890686,
3.4290692806243896,
0.17748451232910156,
0.2770840525627136,
-0.1804208606481552,
-0.9700073003768921,
1.4279309511184692,
0.9363676309585571,
0.0023888759315013885,
-0.4840594232082367,
-0.9587417840957642,
1.2384737730026245,
2.053934097290039,
1.201826572418213,
-0.008894993923604488,
-0.8929365873336792,
-0.7970292568206787,
0.007428841665387154,
0.25445327162742615,
0.43258368968963623,
0.9184955358505249,
0.040649279952049255,
0.031557224690914154,
1.373823881149292,
1.2175636291503906,
-0.47976917028427124,
0.3356579542160034,
-0.9451618194580078,
-0.48563888669013977,
0.4513287842273712,
0.30547311902046204,
0.10056011378765106,
0.4687676727771759,
-1.1617259979248047,
-0.3629172444343567,
-0.28020191192626953,
-0.8483135104179382,
-0.7346957921981812,
-0.43782398104667664,
-0.4197951555252075,
1.5882667303085327,
0.047044865787029266,
-0.48757120966911316,
0.0462123304605484,
-0.737875759601593,
-0.07153943181037903,
-1.0823460817337036,
0.27448880672454834,
-0.16876663267612457,
-0.037649743258953094,
-0.11195097863674164,
1.7019027471542358,
-0.9398424625396729,
-1.9844245910644531,
0.25673535466194153,
0.26612183451652527,
-0.4419283866882324,
0.23956701159477234,
1.6900821924209595,
0.644666850566864,
1.397179126739502,
1.297940731048584,
1.0160810947418213,
-0.6343764662742615,
-1.2836580276489258,
0.6123522520065308,
1.0386486053466797,
-1.3706512451171875,
0.8685265779495239,
-0.06109420955181122,
-0.4913873076438904,
0.6157666444778442,
1.3973877429962158,
0.42300406098365784,
-2.0460152626037598,
0.7347585558891296,
-0.8311758041381836,
0.7512605786323547,
0.6744181513786316,
0.7600853443145752,
0.2295994758605957,
0.8099711537361145,
-1.2510110139846802,
-1.0863200426101685,
-0.7631762027740479,
-0.6412390470504761,
1.853678584098816,
-0.17666128277778625,
0.5387289524078369,
-0.28518709540367126,
-1.240457534790039,
-0.13491974771022797,
0.7195025682449341,
0.47423264384269714,
-0.5134958624839783,
0.7978835701942444,
-0.5491155385971069,
-0.9654953479766846,
-1.3091868162155151,
-0.5104808211326599,
-0.9551799893379211,
-0.9395046830177307,
0.986162543296814,
0.8848593831062317,
0.5188655853271484,
1.8992398977279663,
0.6698551177978516,
0.21095147728919983,
-2.582451581954956,
0.9284055829048157,
0.3149726390838623,
-0.11149183660745621,
0.8662019371986389,
0.3250390589237213,
1.0528910160064697,
-0.052463069558143616,
0.6280114650726318,
-2.3486080169677734,
2.292248487472534,
-0.1569596230983734,
0.6369996070861816,
0.055675067007541656,
-0.1621653139591217,
1.0946458578109741,
0.5405992269515991,
0.47576215863227844,
-1.143380045890808,
0.584314227104187,
-0.612309992313385,
1.1811732053756714,
0.8713951110839844,
-0.758242130279541,
0.010992748662829399,
1.392414927482605,
0.5361341238021851,
-0.5080075263977051,
-0.9606235027313232,
-0.8555880188941956,
0.9682274460792542,
1.6852211952209473,
-0.07111568748950958,
-0.01752978004515171,
0.9017311930656433,
0.6179729104042053,
-1.270689606666565,
-0.009310679510235786,
-0.7458769083023071,
-0.655860960483551,
1.6885102987289429,
2.07295560836792,
-0.16860777139663696,
-0.23629321157932281,
-0.7436906695365906,
-1.1879843473434448,
0.7847727537155151,
-0.05534687638282776,
0.13547630608081818,
0.7213395833969116,
-0.6731835603713989,
1.178446650505066,
0.7221010327339172,
0.9803159236907959,
0.0903157964348793,
0.43161484599113464,
0.3605401813983917,
-0.37964850664138794,
-1.2174961566925049,
-0.32191601395606995,
-1.1276774406433105,
-2.5456767082214355,
0.46185314655303955,
-0.2642429769039154,
-1.4040790796279907,
-0.07171978801488876,
-1.1580508947372437,
0.866497814655304,
-0.6149421334266663,
-1.0309019088745117,
-1.5265579223632812,
0.29787686467170715,
-0.02415565773844719,
1.0104268789291382,
-1.6940981149673462,
-0.0823497548699379,
1.279041051864624,
0.8456968069076538,
-0.6359826326370239,
0.9117213487625122,
0.20036844909191132,
1.1453067064285278,
0.8407515287399292,
-0.3085815906524658,
0.4579015374183655,
0.0003363983705639839,
-1.313022494316101,
0.471318781375885,
1.1872597932815552,
0.1570902168750763,
1.401740312576294,
-0.48948439955711365,
0.11530718952417374,
0.45332446694374084,
-0.5062582492828369,
-0.5428159236907959,
-0.5622650384902954,
0.6075308918952942,
0.11477438360452652,
-1.045838475227356,
-0.00532460305839777,
-0.057763077318668365,
-0.17082206904888153,
0.20565710961818695,
-1.4350067377090454,
-0.21814802289009094,
-0.3055962026119232,
-0.5456236600875854,
-1.1900887489318848,
-0.06549833714962006,
1.3082404136657715,
-0.7310802340507507,
-0.18649737536907196,
0.48953402042388916,
0.3296959400177002,
0.5209993720054626,
0.5735568404197693,
-0.6929582953453064,
-0.42058998346328735,
-0.28192442655563354,
-0.35536032915115356,
0.2750568091869354,
1.3473098278045654,
-0.15029014647006989,
-1.0072636604309082,
0.6845021843910217,
-0.4469086527824402,
0.08936440944671631,
2.0364370346069336,
0.013133503496646881,
-0.8248941898345947,
0.2771622836589813,
-0.6532645225524902,
1.8621337413787842,
1.7098580598831177,
1.2609766721725464,
-0.1788758635520935,
-0.8897630572319031,
0.6076932549476624,
-0.28837311267852783,
-0.41006267070770264,
0.7864898443222046,
0.3182118535041809,
-0.2561570703983307,
-1.4812395572662354,
0.5542914271354675,
1.4316871166229248,
-0.8932102918624878,
-0.8029935359954834,
0.14790098369121552,
-0.8463402986526489,
1.081276535987854,
0.65226811170578,
0.3027956187725067,
0.34711483120918274,
1.5508376359939575,
0.7318096160888672,
-0.3762829899787903,
0.4512411952018738,
0.4983709156513214,
-0.12158776819705963,
-2.0872182846069336,
-1.1560536623001099,
0.25964850187301636,
-0.4950244426727295,
-1.6670174598693848,
1.3516993522644043,
-1.2288109064102173,
-0.9635579586029053,
0.5648905634880066,
0.15296469628810883,
1.4487189054489136,
0.3277364671230316,
1.6429336071014404,
2.0059309005737305,
0.8792510628700256,
0.3212149143218994,
1.264439582824707,
-0.053777098655700684,
-0.5455151200294495,
1.8128106594085693,
-0.4669616222381592,
0.5043111443519592,
1.001477837562561,
-0.29612207412719727,
-1.1917030811309814,
-0.830346941947937,
-1.2868410348892212,
-0.708038330078125,
1.3230563402175903,
0.08559800684452057,
-1.1776689291000366,
0.248554065823555,
1.5982975959777832,
0.13044916093349457,
-0.37760454416275024,
0.7023546695709229,
0.3699510395526886,
-0.8511129021644592,
-0.04540976881980896,
-0.8863005042076111,
0.5178990960121155,
-0.004309676121920347,
-0.3245832622051239,
0.34468382596969604,
0.5561111569404602,
1.3493679761886597,
-0.009488956071436405,
0.14418958127498627,
1.0895804166793823,
-1.422730803489685,
1.5880016088485718,
-0.6667084097862244,
0.33631348609924316,
-2.4323890209198,
1.4433313608169556,
-0.7593168616294861,
1.8774245977401733,
-2.6191458702087402,
0.4172922372817993,
-0.4636349380016327,
-0.41274309158325195,
0.23239000141620636,
-0.39096909761428833,
0.17456886172294617,
-0.03999070078134537,
-1.106717586517334,
-0.06752952188253403,
-0.7909918427467346,
0.6159349083900452,
1.1658098697662354,
1.490056037902832,
-1.120118260383606,
-0.3023846745491028,
-1.7777010202407837,
-0.15046311914920807,
-0.7239291071891785,
0.3196523189544678,
-1.9560670852661133,
-0.12627340853214264,
-1.8378762006759644,
-2.3585596084594727,
-1.4248020648956299,
-0.8585254549980164,
0.9754290580749512,
0.1041068583726883,
-0.8773345947265625,
1.1337836980819702,
-0.401088684797287,
-1.8885515928268433,
1.1356393098831177,
-2.1563563346862793
] |
https://github.com/huggingface/datasets/issues/5354 | Consider using "Sequence" instead of "List" | @avinashsai Hi, I've assigned you the issue.
@tranhd95 Yes, feel free to report this in a new issue. | ### Feature request
Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below.
**How to reproduce**
```py
list_of_filenames = ["foo.parquet", "bar.parquet"]
ds = Dataset.from_parquet(list_of_filenames)
```
**Expected mypy output:**
```
Success: no issues found
```
**Actual mypy output:**
```py
test.py:19: error: Argument 1 to "from_parquet" of "Dataset" has incompatible type "List[str]"; expected "Union[Union[str, bytes, PathLike[Any]], List[Union[str, bytes, PathLike[Any]]]]" [arg-type]
test.py:19: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
test.py:19: note: Consider using "Sequence" instead, which is covariant
```
**Env:** mypy 0.991, Python 3.10.0, datasets 2.7.1 | 374 | 18 | Consider using "Sequence" instead of "List"
### Feature request
Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below.
**How to reproduce**
```py
list_of_filenames = ["foo.parquet", "bar.parquet"]
ds = Dataset.from_parquet(list_of_filenames)
```
**Expected mypy output:**
```
Success: no issues found
```
**Actual mypy output:**
```py
test.py:19: error: Argument 1 to "from_parquet" of "Dataset" has incompatible type "List[str]"; expected "Union[Union[str, bytes, PathLike[Any]], List[Union[str, bytes, PathLike[Any]]]]" [arg-type]
test.py:19: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
test.py:19: note: Consider using "Sequence" instead, which is covariant
```
**Env:** mypy 0.991, Python 3.10.0, datasets 2.7.1
@avinashsai Hi, I've assigned you the issue.
@tranhd95 Yes, feel free to report this in a new issue. | [
-1.1352909803390503,
-0.841376006603241,
-0.7508730292320251,
1.5250927209854126,
-0.15977616608142853,
-1.2457406520843506,
0.15540334582328796,
-1.0274401903152466,
1.7066551446914673,
-0.7475284934043884,
0.37051212787628174,
-1.6746240854263306,
-0.04259897395968437,
-0.6223299503326416,
-0.7848450541496277,
-0.8877831697463989,
-0.40477022528648376,
-0.6813869476318359,
1.0401649475097656,
2.4600830078125,
1.239993929862976,
-1.4223737716674805,
2.6110823154449463,
0.7055523991584778,
-0.17347660660743713,
-0.9640207886695862,
0.5795933604240417,
0.1300501823425293,
-1.257980227470398,
-0.37568962574005127,
-0.9055902361869812,
-0.1929340362548828,
-0.49440494179725647,
-0.536811351776123,
0.04333885759115219,
0.47875654697418213,
-0.26577937602996826,
-0.42611998319625854,
-0.5680243372917175,
-0.8014806509017944,
0.34073394536972046,
-0.4118047058582306,
0.9197711944580078,
-0.39097538590431213,
1.819278597831726,
-0.7245807647705078,
0.42083415389060974,
0.7002153396606445,
1.3337310552597046,
0.19225163757801056,
0.006265023723244667,
0.310963898897171,
0.4321032762527466,
-0.048670221120119095,
0.48329266905784607,
1.139298677444458,
0.6625606417655945,
0.48017534613609314,
0.7927833199501038,
-2.2062442302703857,
1.247292399406433,
-1.078190803527832,
0.2951257824897766,
1.4456994533538818,
-0.9143661856651306,
0.33226245641708374,
-1.8359450101852417,
-0.013112489134073257,
0.5462980270385742,
-2.230985403060913,
0.3281588852405548,
-1.3214200735092163,
-0.6440564393997192,
0.9563286304473877,
0.36218133568763733,
-1.2718791961669922,
0.2183985412120819,
-0.42972373962402344,
1.016913652420044,
0.33381178975105286,
1.0843019485473633,
-1.8016164302825928,
-0.10031883418560028,
-0.3484164774417877,
0.01985008642077446,
-1.219254732131958,
-1.53340482711792,
0.6254217624664307,
0.5894039273262024,
0.5650132894515991,
-0.16668811440467834,
0.9625036120414734,
-0.9941478967666626,
0.8377638459205627,
-1.1190550327301025,
-1.7297600507736206,
-1.423014521598816,
-2.2066192626953125,
-2.23685622215271,
0.8476304411888123,
-0.454698771238327,
-0.4960593581199646,
1.9838007688522339,
-0.9207518100738525,
-1.6582269668579102,
1.0660817623138428,
0.3411502540111542,
-0.005297540687024593,
2.4259846210479736,
0.20138925313949585,
-0.6709049344062805,
0.3147331774234772,
-0.8270096182823181,
0.7627646923065186,
-0.3904419243335724,
1.3831640481948853,
0.42311447858810425,
-1.0616058111190796,
1.629128098487854,
-0.35725316405296326,
0.6276414394378662,
-0.7285301089286804,
-0.5032089352607727,
-0.6811092495918274,
0.33092987537384033,
1.9726349115371704,
-0.3177412152290344,
1.5198005437850952,
-0.28174781799316406,
-1.55494225025177,
-1.522735595703125,
0.872538149356842,
0.47740960121154785,
-0.7041664719581604,
-0.01311543583869934,
-0.29362258315086365,
0.11341981589794159,
-0.13742956519126892,
1.1524966955184937,
1.1704858541488647,
0.7016745805740356,
-0.3507477045059204,
-0.7942922115325928,
0.15710459649562836,
-0.02930891513824463,
-0.8113235235214233,
-1.802107810974121,
-0.3872101902961731,
0.17326506972312927,
0.602332592010498,
-1.2633092403411865,
1.7762305736541748,
0.8366855978965759,
1.9264194965362549,
0.9540124535560608,
-0.44247865676879883,
1.4546303749084473,
0.0422663576900959,
1.8840569257736206,
-0.5544808506965637,
0.6746634840965271,
-0.37155014276504517,
-1.171531319618225,
1.018401026725769,
-0.30692654848098755,
-2.0786690711975098,
-0.7941684126853943,
-0.8196006417274475,
-0.16044719517230988,
-0.7059596180915833,
0.904333233833313,
-0.27191847562789917,
-1.3969436883926392,
0.16694727540016174,
-0.7072782516479492,
0.02762138471007347,
-1.2404893636703491,
0.25058481097221375,
0.6746920943260193,
-0.5470166206359863,
0.028223596513271332,
-0.25066253542900085,
-1.296726107597351,
-0.5177174806594849,
0.2771836817264557,
1.9308618307113647,
-0.7063798904418945,
0.9214059710502625,
1.0458612442016602,
-0.7614856958389282,
0.029187701642513275,
0.30485665798187256,
-0.3407764434814453,
0.8251485228538513,
-1.0636838674545288,
-0.508620023727417,
1.1346920728683472,
-0.06370357424020767,
-0.6109364628791809,
1.5413141250610352,
0.8155333399772644,
-0.963331937789917,
-0.20009565353393555,
-0.2753535211086273,
-0.7947388887405396,
0.14083518087863922,
-1.5844937562942505,
-0.11517861485481262,
0.3842996060848236,
-1.486990213394165,
-0.4855831563472748,
-0.1825905442237854,
1.3269531726837158,
-0.2602095305919647,
1.3058825731277466,
-0.30957353115081787,
-0.3170557916164398,
-0.4248998463153839,
-0.36497169733047485,
0.11434318125247955,
-0.21708625555038452,
-0.648369312286377,
0.297415167093277,
-0.7557770609855652,
0.35708653926849365,
1.3941538333892822,
0.35279685258865356,
-0.005207096692174673,
0.49510645866394043,
1.0252275466918945,
0.30675750970840454,
0.015366999432444572,
-1.017028570175171,
-1.505164384841919,
2.0019795894622803,
-1.472154974937439,
2.0640676021575928,
0.7683645486831665,
0.036961596459150314,
-1.7249464988708496,
-1.8851590156555176,
1.3769538402557373,
1.2557216882705688,
2.3102593421936035,
0.5751399993896484,
0.4122059941291809,
-0.8247924447059631,
-0.5867394208908081,
0.26117604970932007,
-1.0529981851577759,
-0.6256601810455322,
0.21212109923362732,
2.4067413806915283,
1.7103214263916016,
-0.5826590657234192,
-0.1394442319869995,
-1.0282632112503052,
1.4449297189712524,
-0.16069623827934265,
0.18214090168476105,
2.029756546020508,
-0.23941843211650848,
-1.0936710834503174,
1.236657977104187,
-2.3201215267181396,
0.15244191884994507,
2.010193109512329,
0.29877176880836487,
0.1365746408700943,
-1.388244867324829,
-0.6782855987548828,
-0.3762546479701996,
-0.38750940561294556,
-1.2147672176361084,
0.5430471301078796,
-0.20492704212665558,
-0.7855812907218933,
-1.4876302480697632,
0.21260248124599457,
-1.2091301679611206,
-1.7231457233428955,
0.2677154839038849,
1.8885220289230347,
1.9316458702087402,
-0.7648049592971802,
1.4966150522232056,
-0.3952818512916565,
0.0605437271296978,
1.234319806098938,
1.2692607641220093,
3.0069308280944824,
1.9401209354400635,
-1.1223310232162476,
0.6719517111778259,
-0.20590898394584656,
-0.4221612215042114,
1.1225864887237549,
-1.1307451725006104,
1.229466438293457,
-0.16274622082710266,
-1.0906198024749756,
-1.2356637716293335,
0.9410398602485657,
0.4602218270301819,
0.05123806372284889,
-0.5516446232795715,
1.1548151969909668,
0.04519471526145935,
1.3771909475326538,
0.6094942688941956,
-0.27749010920524597,
0.5536990165710449,
-0.41854023933410645,
-0.36431458592414856,
1.6195815801620483,
0.25248146057128906,
-1.474159598350525,
-2.421759605407715,
-0.2088983654975891,
-0.8476644158363342,
0.007379874587059021,
-0.6262933015823364,
-1.0499284267425537,
1.7491706609725952,
0.40397724509239197,
-1.2591540813446045,
-0.21994729340076447,
-0.36483678221702576,
-0.6115938425064087,
2.758235216140747,
-1.4400285482406616,
-0.22535492479801178,
-0.9858420491218567,
-0.5861994624137878,
1.7231477499008179,
-1.1628838777542114,
-0.08386704325675964,
-0.9998981356620789,
-0.4862065613269806,
-1.2876529693603516,
-0.5346895456314087,
0.0696500837802887,
-0.9570448994636536,
0.8370234370231628,
0.06887856125831604,
-1.2450939416885376,
-0.4052738547325134,
-0.874464750289917,
0.8063427209854126,
-0.12289708852767944,
0.23569731414318085,
2.0257954597473145,
0.44297710061073303,
-0.3462842106819153,
0.6578534245491028,
1.1975771188735962,
0.6660640239715576,
-0.6314590573310852,
0.27476242184638977,
-0.5955014824867249,
0.2523251175880432,
-1.304951548576355,
0.23762059211730957,
-2.795177459716797,
0.6689862012863159,
-0.03462865203619003,
-0.01787247695028782,
0.04261412099003792,
-1.2529292106628418,
1.2141355276107788,
2.651073455810547,
-1.2454880475997925,
0.4011242091655731,
0.2830577492713928,
1.2003940343856812,
-1.5374135971069336,
0.310205340385437,
-0.3522554636001587,
2.1026699542999268,
0.13354754447937012,
1.1617016792297363,
-0.5476639270782471,
-2.23724102973938,
0.5883033871650696,
-1.2914786338806152,
-1.1980119943618774,
0.7022829055786133,
-0.7791485786437988,
0.14817583560943604,
-1.5212244987487793,
-0.17286047339439392,
-0.887771487236023,
-1.2156959772109985,
0.7295106649398804,
0.07628490030765533,
0.3586832284927368,
-0.6122395396232605,
0.3790006637573242,
-2.189612627029419,
-1.4267020225524902,
-0.3097362816333771,
-0.8834342360496521,
0.5527046322822571,
-0.29874590039253235,
0.7585307359695435,
-0.10836713016033173,
0.022869717329740524,
0.30691850185394287,
1.5102941989898682,
3.461137533187866,
0.19238679111003876,
0.34114426374435425,
-0.19794045388698578,
-0.9546142816543579,
1.4155412912368774,
0.9659267663955688,
0.03628086671233177,
-0.4773308336734772,
-0.9700260162353516,
1.2468044757843018,
2.0420165061950684,
1.1411653757095337,
-0.02193370833992958,
-0.8482435941696167,
-0.7277153134346008,
-0.024705659598112106,
0.23202462494373322,
0.4093203842639923,
0.8972991108894348,
0.08276347815990448,
0.02510831132531166,
1.4033397436141968,
1.2066545486450195,
-0.5046864748001099,
0.26111602783203125,
-0.9014938473701477,
-0.46440932154655457,
0.46899428963661194,
0.3222294747829437,
0.05773458257317543,
0.4314580261707306,
-1.0970327854156494,
-0.37101098895072937,
-0.27140361070632935,
-0.867535412311554,
-0.719678521156311,
-0.4374692440032959,
-0.46945852041244507,
1.6439911127090454,
0.07193732261657715,
-0.4734377861022949,
0.027187425643205643,
-0.7251678109169006,
0.015459949150681496,
-1.111424446105957,
0.2528909742832184,
-0.1332305371761322,
-0.0479058139026165,
-0.11968685686588287,
1.8025585412979126,
-0.9251412153244019,
-1.9800968170166016,
0.25111517310142517,
0.2798157036304474,
-0.4148730933666229,
0.23757466673851013,
1.655112385749817,
0.6396622061729431,
1.4228744506835938,
1.2860438823699951,
1.0258567333221436,
-0.6439207196235657,
-1.3752672672271729,
0.5954331755638123,
1.0616261959075928,
-1.3879226446151733,
0.8632722496986389,
0.009920284152030945,
-0.41321220993995667,
0.5681528449058533,
1.4032559394836426,
0.4666924476623535,
-2.037252902984619,
0.6927011609077454,
-0.8642820715904236,
0.7940265536308289,
0.6805852055549622,
0.7211283445358276,
0.2310607135295868,
0.7752089500427246,
-1.2300710678100586,
-1.062118649482727,
-0.7796483039855957,
-0.6472194194793701,
1.856567621231079,
-0.20537300407886505,
0.5501832962036133,
-0.3089064955711365,
-1.2742292881011963,
-0.08154822885990143,
0.6911555528640747,
0.5029899477958679,
-0.4795732796192169,
0.7939514517784119,
-0.5368382930755615,
-0.9992305636405945,
-1.3365719318389893,
-0.475284218788147,
-0.9598634243011475,
-0.9831523895263672,
1.00845468044281,
0.8650596737861633,
0.48500674962997437,
1.8590970039367676,
0.7110692262649536,
0.18442504107952118,
-2.548736095428467,
0.9511974453926086,
0.30977168679237366,
-0.13499359786510468,
0.8414016962051392,
0.34484902024269104,
1.0041335821151733,
-0.1051749736070633,
0.6017084717750549,
-2.3822274208068848,
2.3495187759399414,
-0.17812985181808472,
0.651181161403656,
0.07703401148319244,
-0.1169305145740509,
1.0965416431427002,
0.5395460724830627,
0.43979379534721375,
-1.0783098936080933,
0.5424157381057739,
-0.6069521903991699,
1.262428879737854,
0.8392660021781921,
-0.6759462952613831,
-0.025166641920804977,
1.3695379495620728,
0.546150267124176,
-0.5271456241607666,
-0.9436248540878296,
-0.8739808797836304,
0.9722538590431213,
1.6801849603652954,
-0.094768226146698,
-0.03317040950059891,
0.8836684823036194,
0.5758339762687683,
-1.2458590269088745,
-0.005364565644413233,
-0.7960520386695862,
-0.7130248546600342,
1.626550316810608,
2.10858154296875,
-0.18393728137016296,
-0.24886807799339294,
-0.7390169501304626,
-1.2284609079360962,
0.8229044079780579,
-0.03477160632610321,
0.12184424698352814,
0.6887300610542297,
-0.5927966833114624,
1.1100667715072632,
0.8033679127693176,
0.9895521998405457,
0.13932538032531738,
0.4434730112552643,
0.33000731468200684,
-0.3778172731399536,
-1.2115247249603271,
-0.2834349274635315,
-1.1323513984680176,
-2.5921220779418945,
0.465265154838562,
-0.2745622992515564,
-1.3796958923339844,
-0.11182597279548645,
-1.1635674238204956,
0.8874292373657227,
-0.5429002642631531,
-1.0388939380645752,
-1.5386183261871338,
0.22150099277496338,
-0.029620185494422913,
1.0270631313323975,
-1.6913584470748901,
-0.09565027058124542,
1.2781400680541992,
0.8256625533103943,
-0.696890652179718,
0.9167898297309875,
0.1539166271686554,
1.1584616899490356,
0.8176262378692627,
-0.32305553555488586,
0.47541114687919617,
-0.02990848384797573,
-1.3305044174194336,
0.5141779184341431,
1.1686835289001465,
0.1374538540840149,
1.369637370109558,
-0.5014913082122803,
0.0725816935300827,
0.41016051173210144,
-0.4933563470840454,
-0.5420796275138855,
-0.5779233574867249,
0.6300420761108398,
0.1416567713022232,
-1.0070416927337646,
0.03130839392542839,
-0.016432518139481544,
-0.1237129271030426,
0.20072399079799652,
-1.4317480325698853,
-0.18898628652095795,
-0.2872913181781769,
-0.5484726428985596,
-1.1923357248306274,
-0.13960981369018555,
1.3154023885726929,
-0.675825297832489,
-0.15481926500797272,
0.5046427249908447,
0.37631696462631226,
0.5506367087364197,
0.5981324315071106,
-0.6468272805213928,
-0.4719248116016388,
-0.28922179341316223,
-0.3266366720199585,
0.2912464439868927,
1.3641153573989868,
-0.14825110137462616,
-0.9796438217163086,
0.6996413469314575,
-0.4097369611263275,
0.0701957643032074,
2.0235183238983154,
0.013461600989103317,
-0.8513467311859131,
0.29938066005706787,
-0.6324247121810913,
1.8958184719085693,
1.7038812637329102,
1.2089930772781372,
-0.18315911293029785,
-0.9487677216529846,
0.6327958106994629,
-0.29503437876701355,
-0.4424780011177063,
0.7265167236328125,
0.3497592508792877,
-0.25562262535095215,
-1.4643539190292358,
0.587518036365509,
1.3974148035049438,
-0.8540335893630981,
-0.8829561471939087,
0.1917346864938736,
-0.825688898563385,
1.0315495729446411,
0.6352153420448303,
0.35407397150993347,
0.3441857099533081,
1.5878652334213257,
0.7519431710243225,
-0.402034729719162,
0.4306876063346863,
0.5031059384346008,
-0.1276596337556839,
-2.0410149097442627,
-1.2382360696792603,
0.27286750078201294,
-0.5914809703826904,
-1.6811270713806152,
1.3933537006378174,
-1.1961448192596436,
-0.9628812670707703,
0.6066873073577881,
0.142393097281456,
1.4775729179382324,
0.3165028691291809,
1.6097091436386108,
1.9284595251083374,
0.8679640293121338,
0.3778558373451233,
1.2535793781280518,
-0.06939376890659332,
-0.614041268825531,
1.8465385437011719,
-0.46734851598739624,
0.4732595682144165,
1.0332354307174683,
-0.25962093472480774,
-1.1853598356246948,
-0.8189327716827393,
-1.2400447130203247,
-0.695899248123169,
1.3203673362731934,
0.10331350564956665,
-1.184188961982727,
0.20792809128761292,
1.5933531522750854,
0.12189142405986786,
-0.4288988411426544,
0.6239030957221985,
0.3042536675930023,
-0.8628295660018921,
-0.03296777233481407,
-0.9551978707313538,
0.5383436679840088,
-0.008174524642527103,
-0.30744194984436035,
0.36772385239601135,
0.5193437933921814,
1.3616340160369873,
-0.02219025045633316,
0.19336500763893127,
1.020969271659851,
-1.4476161003112793,
1.5762966871261597,
-0.639728844165802,
0.34961754083633423,
-2.360490560531616,
1.4173866510391235,
-0.7237085103988647,
1.8467988967895508,
-2.6552250385284424,
0.3666667640209198,
-0.4498327076435089,
-0.41848549246788025,
0.25208818912506104,
-0.4088830053806305,
0.21540246903896332,
-0.06766916811466217,
-1.1567742824554443,
-0.07261930406093597,
-0.7595596313476562,
0.5772210955619812,
1.1234217882156372,
1.4701027870178223,
-1.1297091245651245,
-0.33901146054267883,
-1.7598090171813965,
-0.10088016092777252,
-0.6970580220222473,
0.30836954712867737,
-1.9506694078445435,
-0.1145426332950592,
-1.8073437213897705,
-2.2834792137145996,
-1.418366551399231,
-0.8669660091400146,
1.0082511901855469,
0.0839763879776001,
-0.8678221106529236,
1.1092580556869507,
-0.35152044892311096,
-1.8943318128585815,
1.1437772512435913,
-2.109926700592041
] |
https://github.com/huggingface/datasets/issues/5354 | Consider using "Sequence" instead of "List" | @avinashsai Are you still working on this? If not I would like to give it a try. | ### Feature request
Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below.
**How to reproduce**
```py
list_of_filenames = ["foo.parquet", "bar.parquet"]
ds = Dataset.from_parquet(list_of_filenames)
```
**Expected mypy output:**
```
Success: no issues found
```
**Actual mypy output:**
```py
test.py:19: error: Argument 1 to "from_parquet" of "Dataset" has incompatible type "List[str]"; expected "Union[Union[str, bytes, PathLike[Any]], List[Union[str, bytes, PathLike[Any]]]]" [arg-type]
test.py:19: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
test.py:19: note: Consider using "Sequence" instead, which is covariant
```
**Env:** mypy 0.991, Python 3.10.0, datasets 2.7.1 | 374 | 17 | Consider using "Sequence" instead of "List"
### Feature request
Hi, please consider using `Sequence` type annotation instead of `List` in function arguments such as in [`Dataset.from_parquet()`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L1088). It leads to type checking errors, see below.
**How to reproduce**
```py
list_of_filenames = ["foo.parquet", "bar.parquet"]
ds = Dataset.from_parquet(list_of_filenames)
```
**Expected mypy output:**
```
Success: no issues found
```
**Actual mypy output:**
```py
test.py:19: error: Argument 1 to "from_parquet" of "Dataset" has incompatible type "List[str]"; expected "Union[Union[str, bytes, PathLike[Any]], List[Union[str, bytes, PathLike[Any]]]]" [arg-type]
test.py:19: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
test.py:19: note: Consider using "Sequence" instead, which is covariant
```
**Env:** mypy 0.991, Python 3.10.0, datasets 2.7.1
@avinashsai Are you still working on this? If not I would like to give it a try. | [
-1.140164852142334,
-0.8359280824661255,
-0.7365889549255371,
1.528045892715454,
-0.14484205842018127,
-1.2515233755111694,
0.16015976667404175,
-1.0420674085617065,
1.7080374956130981,
-0.7429264187812805,
0.3787233829498291,
-1.659406065940857,
-0.0451342798769474,
-0.6294645667076111,
-0.7821370363235474,
-0.9047046303749084,
-0.41758352518081665,
-0.6667661666870117,
1.0266408920288086,
2.479910135269165,
1.2341660261154175,
-1.435684084892273,
2.5913784503936768,
0.7012746930122375,
-0.17681629955768585,
-0.9695859551429749,
0.5605906248092651,
0.14166702330112457,
-1.2414859533309937,
-0.3715662956237793,
-0.9037531614303589,
-0.2193806916475296,
-0.49570751190185547,
-0.544259786605835,
0.03908238559961319,
0.4877907931804657,
-0.24581152200698853,
-0.42665207386016846,
-0.5802058577537537,
-0.7889174818992615,
0.359889417886734,
-0.4220927357673645,
0.9267427921295166,
-0.4147588014602661,
1.8053494691848755,
-0.7259575724601746,
0.43645212054252625,
0.6945105791091919,
1.3569144010543823,
0.2100665271282196,
0.01500233355909586,
0.30151599645614624,
0.43063586950302124,
-0.04797058179974556,
0.4936267137527466,
1.1381672620773315,
0.6745442748069763,
0.498113214969635,
0.7812539935112,
-2.198925018310547,
1.2321959733963013,
-1.0842338800430298,
0.2855776846408844,
1.4332950115203857,
-0.9082021713256836,
0.32857224345207214,
-1.8241761922836304,
-0.011315735056996346,
0.5542274713516235,
-2.2343199253082275,
0.3127638101577759,
-1.3084464073181152,
-0.6360489130020142,
0.9761032462120056,
0.3550676703453064,
-1.2593575716018677,
0.20509479939937592,
-0.4219171106815338,
0.9970061779022217,
0.3388824164867401,
1.1065045595169067,
-1.784198522567749,
-0.07620086520910263,
-0.3483369052410126,
0.03309052437543869,
-1.2085400819778442,
-1.5148460865020752,
0.6186100244522095,
0.5995665788650513,
0.5483554005622864,
-0.15730279684066772,
0.9388059377670288,
-0.9789029359817505,
0.8299939036369324,
-1.13034188747406,
-1.7261028289794922,
-1.4180983304977417,
-2.210561990737915,
-2.251770496368408,
0.8470388650894165,
-0.45307111740112305,
-0.4978983998298645,
1.9807573556900024,
-0.9084199666976929,
-1.6728675365447998,
1.037593126296997,
0.3381362855434418,
0.025221504271030426,
2.4157657623291016,
0.17804215848445892,
-0.6638268232345581,
0.32113397121429443,
-0.8269712328910828,
0.7554332613945007,
-0.3929033577442169,
1.3720088005065918,
0.4039821922779083,
-1.0586111545562744,
1.623375415802002,
-0.3581889569759369,
0.6386849284172058,
-0.7168095707893372,
-0.5108301043510437,
-0.6858662962913513,
0.3444405794143677,
1.9916160106658936,
-0.3038087487220764,
1.532051920890808,
-0.2885593771934509,
-1.5609098672866821,
-1.5331933498382568,
0.873966634273529,
0.4990467429161072,
-0.6943015456199646,
-0.03114733099937439,
-0.30244430899620056,
0.10930731892585754,
-0.13825874030590057,
1.1477051973342896,
1.1710354089736938,
0.708219587802887,
-0.3403913974761963,
-0.7981542944908142,
0.1677272617816925,
-0.014947742223739624,
-0.8128359913825989,
-1.795322299003601,
-0.3956893980503082,
0.15972021222114563,
0.6012203097343445,
-1.2600266933441162,
1.788941502571106,
0.8359630703926086,
1.932197093963623,
0.9472658038139343,
-0.43880051374435425,
1.475383996963501,
0.03448669984936714,
1.8870141506195068,
-0.5450116991996765,
0.6804516911506653,
-0.36540499329566956,
-1.1738685369491577,
0.9948998689651489,
-0.3264005780220032,
-2.076566696166992,
-0.8021051287651062,
-0.8197960257530212,
-0.1418842077255249,
-0.722055196762085,
0.8907727003097534,
-0.25599566102027893,
-1.3914092779159546,
0.16826176643371582,
-0.7090476751327515,
0.026002850383520126,
-1.2421588897705078,
0.2677302956581116,
0.6887413263320923,
-0.5837320685386658,
0.03618471324443817,
-0.25689682364463806,
-1.286968469619751,
-0.5374678373336792,
0.24865201115608215,
1.9301066398620605,
-0.7165389657020569,
0.8938027024269104,
1.0399411916732788,
-0.7655227780342102,
0.0437040850520134,
0.31102272868156433,
-0.333975225687027,
0.8315455317497253,
-1.066981315612793,
-0.4986875355243683,
1.1352322101593018,
-0.06958454102277756,
-0.6067796349525452,
1.549957036972046,
0.813774585723877,
-0.9646683931350708,
-0.18841807544231415,
-0.2701852321624756,
-0.7798915505409241,
0.14284834265708923,
-1.5630910396575928,
-0.10091250389814377,
0.3795106112957001,
-1.4855749607086182,
-0.4921429455280304,
-0.18509873747825623,
1.320939302444458,
-0.24807992577552795,
1.2912653684616089,
-0.30544042587280273,
-0.314621239900589,
-0.41223952174186707,
-0.36677342653274536,
0.09357314556837082,
-0.23982742428779602,
-0.6661697626113892,
0.29426488280296326,
-0.748124897480011,
0.3433777093887329,
1.3908815383911133,
0.35049158334732056,
-0.0124091487377882,
0.5051743388175964,
1.0361039638519287,
0.317894846200943,
-0.0002486361190676689,
-1.0205025672912598,
-1.4991025924682617,
1.986992359161377,
-1.4575073719024658,
2.053969621658325,
0.7870778441429138,
0.030309349298477173,
-1.7051717042922974,
-1.8677043914794922,
1.3803417682647705,
1.2457915544509888,
2.318843126296997,
0.5799461007118225,
0.407382071018219,
-0.8312100172042847,
-0.571408212184906,
0.2746964991092682,
-1.0446633100509644,
-0.6383947730064392,
0.19286148250102997,
2.418790102005005,
1.6982871294021606,
-0.5883956551551819,
-0.13906517624855042,
-1.0095949172973633,
1.4531757831573486,
-0.16502027213573456,
0.1800958514213562,
2.0322229862213135,
-0.23014405369758606,
-1.116328477859497,
1.2516041994094849,
-2.305971145629883,
0.14804159104824066,
2.0078823566436768,
0.3129129111766815,
0.12401089817285538,
-1.3960250616073608,
-0.682787299156189,
-0.37864190340042114,
-0.37892356514930725,
-1.2088271379470825,
0.5304486155509949,
-0.18593938648700714,
-0.7665282487869263,
-1.4956398010253906,
0.22139142453670502,
-1.2117260694503784,
-1.7231824398040771,
0.26525020599365234,
1.8803757429122925,
1.9075053930282593,
-0.7686312198638916,
1.4862171411514282,
-0.4091775417327881,
0.052838634699583054,
1.2135156393051147,
1.2670685052871704,
3.033128261566162,
1.9464174509048462,
-1.1233797073364258,
0.6734050512313843,
-0.21157024800777435,
-0.43266943097114563,
1.1149934530258179,
-1.1492843627929688,
1.2235133647918701,
-0.1817159503698349,
-1.0835672616958618,
-1.256281852722168,
0.9354091286659241,
0.47745198011398315,
0.05773325636982918,
-0.5535768270492554,
1.1511799097061157,
0.045856066048145294,
1.377687931060791,
0.5989841222763062,
-0.27413371205329895,
0.5589642524719238,
-0.4199453592300415,
-0.3582300841808319,
1.6301978826522827,
0.24639511108398438,
-1.4930120706558228,
-2.4103662967681885,
-0.18452000617980957,
-0.8531332612037659,
0.0053117042407393456,
-0.6248898506164551,
-1.036975383758545,
1.7576464414596558,
0.3933515250682831,
-1.2779357433319092,
-0.22505809366703033,
-0.3725454807281494,
-0.6411653161048889,
2.75032114982605,
-1.4419124126434326,
-0.22557349503040314,
-0.9915895462036133,
-0.5994873642921448,
1.714785099029541,
-1.1751229763031006,
-0.09243908524513245,
-0.9886052012443542,
-0.49121221899986267,
-1.2798815965652466,
-0.5486112236976624,
0.0717853382229805,
-0.9485571980476379,
0.8510951399803162,
0.08431675285100937,
-1.2569659948349,
-0.4070625901222229,
-0.8807559609413147,
0.8100243806838989,
-0.11046159267425537,
0.24170738458633423,
2.019073486328125,
0.4336385428905487,
-0.3215671479701996,
0.6472122073173523,
1.2039594650268555,
0.6588828563690186,
-0.6364070177078247,
0.2701052725315094,
-0.5857670903205872,
0.25106576085090637,
-1.3159434795379639,
0.2519267797470093,
-2.8037073612213135,
0.6710888743400574,
-0.020846690982580185,
-0.024091146886348724,
0.04502066224813461,
-1.2514139413833618,
1.22022545337677,
2.6698145866394043,
-1.2356269359588623,
0.3982886075973511,
0.2959935665130615,
1.2018084526062012,
-1.54425847530365,
0.30945783853530884,
-0.3438359797000885,
2.1030566692352295,
0.13467521965503693,
1.1663858890533447,
-0.5526044964790344,
-2.2355453968048096,
0.5940145254135132,
-1.2925658226013184,
-1.2177071571350098,
0.700263261795044,
-0.7764067053794861,
0.14065337181091309,
-1.4993681907653809,
-0.1588834524154663,
-0.8783291578292847,
-1.2077281475067139,
0.7325877547264099,
0.09067562967538834,
0.3459603786468506,
-0.6143805384635925,
0.3820430338382721,
-2.197748899459839,
-1.4490832090377808,
-0.3196808993816376,
-0.8876051902770996,
0.5469460487365723,
-0.31135183572769165,
0.7661534547805786,
-0.11267434060573578,
0.0209440179169178,
0.3072565495967865,
1.5083980560302734,
3.460191249847412,
0.19457845389842987,
0.3515431582927704,
-0.1972152441740036,
-0.9507344961166382,
1.4379663467407227,
0.9393001198768616,
0.0174240805208683,
-0.4717547297477722,
-0.9623770713806152,
1.2417371273040771,
2.0406062602996826,
1.1664279699325562,
-0.03407809138298035,
-0.8577897548675537,
-0.7377229928970337,
-0.03190401569008827,
0.2377382218837738,
0.4218280017375946,
0.9069628715515137,
0.07170795649290085,
0.0236310213804245,
1.4069957733154297,
1.2188431024551392,
-0.5052009224891663,
0.24242901802062988,
-0.8841104507446289,
-0.47521060705184937,
0.47679945826530457,
0.3265605568885803,
0.0657031387090683,
0.43089550733566284,
-1.0973286628723145,
-0.36371347308158875,
-0.24715100228786469,
-0.8622545599937439,
-0.7167503833770752,
-0.45958197116851807,
-0.4629158675670624,
1.650463581085205,
0.05786050483584404,
-0.4858667254447937,
0.014989863149821758,
-0.7415459156036377,
0.013474774546921253,
-1.1314799785614014,
0.2565050423145294,
-0.11907657980918884,
-0.06844665110111237,
-0.13085488975048065,
1.8125765323638916,
-0.9378231763839722,
-1.9821176528930664,
0.28347164392471313,
0.28118616342544556,
-0.42541927099227905,
0.2461273968219757,
1.6413235664367676,
0.6465363502502441,
1.4172067642211914,
1.2984760999679565,
1.0271272659301758,
-0.6426540017127991,
-1.3629660606384277,
0.5894957184791565,
1.0604777336120605,
-1.3820550441741943,
0.8486990928649902,
0.020964328199625015,
-0.4197881519794464,
0.5609314441680908,
1.3922579288482666,
0.4691058397293091,
-2.0142085552215576,
0.6835968494415283,
-0.8445726037025452,
0.7799978852272034,
0.6709843277931213,
0.7124869227409363,
0.2118905782699585,
0.7623410820960999,
-1.220599889755249,
-1.0691123008728027,
-0.7840604186058044,
-0.6410960555076599,
1.8749396800994873,
-0.2253320813179016,
0.5487338304519653,
-0.31544819474220276,
-1.2757524251937866,
-0.09156546741724014,
0.6852288842201233,
0.5033596158027649,
-0.47097015380859375,
0.7835648059844971,
-0.5301410555839539,
-1.0058715343475342,
-1.3354458808898926,
-0.4820038676261902,
-0.9407951235771179,
-0.9668421149253845,
1.0045983791351318,
0.8619966506958008,
0.4850713610649109,
1.8668278455734253,
0.7075390219688416,
0.17767050862312317,
-2.5602164268493652,
0.9343099594116211,
0.3095300793647766,
-0.12084929645061493,
0.8359619975090027,
0.35600465536117554,
0.9955918788909912,
-0.08865366876125336,
0.6114003658294678,
-2.391901731491089,
2.3557682037353516,
-0.1624622941017151,
0.6495925784111023,
0.08183895796537399,
-0.12737663090229034,
1.0895196199417114,
0.5631476640701294,
0.4410119652748108,
-1.0860567092895508,
0.524079442024231,
-0.6101508736610413,
1.2725473642349243,
0.8348953127861023,
-0.6831610202789307,
-0.02361910231411457,
1.3615211248397827,
0.55461186170578,
-0.5236386656761169,
-0.9541581273078918,
-0.8641990423202515,
0.977205216884613,
1.6771522760391235,
-0.09064821153879166,
-0.04735823720693588,
0.8983304500579834,
0.5749667286872864,
-1.242538571357727,
-0.020889323204755783,
-0.8052557706832886,
-0.7073100805282593,
1.6332749128341675,
2.123002290725708,
-0.17064689099788666,
-0.2651079595088959,
-0.7418634295463562,
-1.2265733480453491,
0.8260831236839294,
-0.027104102075099945,
0.12201281636953354,
0.6913555860519409,
-0.604972779750824,
1.1144604682922363,
0.8265923857688904,
0.9962236881256104,
0.14665479958057404,
0.4322122037410736,
0.3408750891685486,
-0.36763548851013184,
-1.216834545135498,
-0.2932669222354889,
-1.1256767511367798,
-2.572211742401123,
0.45451661944389343,
-0.29007893800735474,
-1.3676289319992065,
-0.10962289571762085,
-1.1790622472763062,
0.8873236775398254,
-0.5542666912078857,
-1.0301600694656372,
-1.552016019821167,
0.21797817945480347,
-0.023398343473672867,
1.0228581428527832,
-1.6591899394989014,
-0.09961967915296555,
1.2561018466949463,
0.82624351978302,
-0.7015242576599121,
0.8994020223617554,
0.14471541345119476,
1.1576097011566162,
0.8313446044921875,
-0.32196229696273804,
0.47716814279556274,
-0.024907032027840614,
-1.3127939701080322,
0.498751163482666,
1.171878695487976,
0.1315360963344574,
1.3805910348892212,
-0.5128570199012756,
0.07089035212993622,
0.40169164538383484,
-0.4951745867729187,
-0.5305428504943848,
-0.6045870780944824,
0.638390302658081,
0.1347750574350357,
-1.021454095840454,
0.053735580295324326,
-0.03122371807694435,
-0.11209703236818314,
0.19034364819526672,
-1.4350578784942627,
-0.17269091308116913,
-0.2764973044395447,
-0.5537447333335876,
-1.1726692914962769,
-0.1339550018310547,
1.309926986694336,
-0.6919517517089844,
-0.1266171783208847,
0.49076932668685913,
0.37253573536872864,
0.5378128290176392,
0.5919159054756165,
-0.6494373083114624,
-0.473373681306839,
-0.28944939374923706,
-0.32660505175590515,
0.2987257242202759,
1.3628538846969604,
-0.13698914647102356,
-0.9903414845466614,
0.697310745716095,
-0.41890856623649597,
0.07670549303293228,
2.0237233638763428,
0.016493041068315506,
-0.8359730839729309,
0.3037307858467102,
-0.6420993804931641,
1.8944933414459229,
1.707048773765564,
1.2165656089782715,
-0.1671045422554016,
-0.9387241005897522,
0.6453530192375183,
-0.2994794547557831,
-0.44607457518577576,
0.7304171919822693,
0.3465346693992615,
-0.2583944797515869,
-1.4639575481414795,
0.5751912593841553,
1.400048851966858,
-0.8523193597793579,
-0.8735527396202087,
0.19163796305656433,
-0.8308181762695312,
1.0336272716522217,
0.6340058445930481,
0.37150171399116516,
0.34724071621894836,
1.6175020933151245,
0.7559368014335632,
-0.40302494168281555,
0.4289689064025879,
0.5065273642539978,
-0.13761326670646667,
-2.0454959869384766,
-1.2497483491897583,
0.2849445939064026,
-0.5922656655311584,
-1.670591115951538,
1.3948115110397339,
-1.2059603929519653,
-0.9523038268089294,
0.6172150373458862,
0.1358889490365982,
1.4900046586990356,
0.3202878534793854,
1.6139475107192993,
1.9294633865356445,
0.874538242816925,
0.37447041273117065,
1.2558045387268066,
-0.07785442471504211,
-0.6055543422698975,
1.8311545848846436,
-0.4601247012615204,
0.4639471173286438,
1.0673484802246094,
-0.25757166743278503,
-1.181806206703186,
-0.8170754909515381,
-1.2614716291427612,
-0.7140218615531921,
1.3028786182403564,
0.11052733659744263,
-1.2012321949005127,
0.21739748120307922,
1.5992203950881958,
0.11329808086156845,
-0.4230042099952698,
0.6121852993965149,
0.2948271334171295,
-0.8784306049346924,
-0.02494765631854534,
-0.967284083366394,
0.5193085670471191,
-0.037922296673059464,
-0.31313732266426086,
0.3570834696292877,
0.5243707895278931,
1.3516823053359985,
-0.010005456395447254,
0.17460104823112488,
1.0340373516082764,
-1.4561223983764648,
1.5754960775375366,
-0.6510700583457947,
0.364490807056427,
-2.353221893310547,
1.429853916168213,
-0.729864239692688,
1.8437951803207397,
-2.6565940380096436,
0.36124029755592346,
-0.4453600347042084,
-0.42625319957733154,
0.2507272958755493,
-0.4084564447402954,
0.2116253823041916,
-0.07208134979009628,
-1.174604892730713,
-0.07165540009737015,
-0.7581555843353271,
0.5869957208633423,
1.1175531148910522,
1.478271722793579,
-1.1102042198181152,
-0.3457227051258087,
-1.7581325769424438,
-0.11208293586969376,
-0.6874173283576965,
0.3120773434638977,
-1.9475970268249512,
-0.12064371258020401,
-1.7946802377700806,
-2.265296697616577,
-1.4043391942977905,
-0.845677375793457,
1.003108263015747,
0.07066023349761963,
-0.8586073517799377,
1.1124078035354614,
-0.3505348563194275,
-1.8940175771713257,
1.1545225381851196,
-2.1261847019195557
] |
https://github.com/huggingface/datasets/issues/5352 | __init__() got an unexpected keyword argument 'input_size' | Hi @J-shel, thanks for reporting.
I think the issue comes from your call to `load_dataset`. As first argument, you should pass:
- either the name of your dataset ("mrf") if this is already published on the Hub
- or the path to the loading script of your dataset ("path/to/your/local/mrf.py"). | ### Describe the bug
I try to define a custom configuration with a input_size attribute following the instructions by "Specifying several dataset configurations" in https://huggingface.co/docs/datasets/v1.2.1/add_dataset.html
But when I load the dataset, I got an error "__init__() got an unexpected keyword argument 'input_size'"
### Steps to reproduce the bug
Following is the code to define the dataset:
class CsvConfig(datasets.BuilderConfig):
"""BuilderConfig for CSV."""
input_size: int = 2048
class MRF(datasets.ArrowBasedBuilder):
"""Archival MRF data"""
BUILDER_CONFIG_CLASS = CsvConfig
VERSION = datasets.Version("1.0.0")
BUILDER_CONFIGS = [
CsvConfig(name="default", version=VERSION, description="MRF data", input_size=2048),
]
...
def _generate_examples(self):
input_size = self.config.input_size
if input_size > 1000:
numin = 10000
else:
numin = 15000
Below is the code to load the dataset:
reader = load_dataset("default", input_size=1024)
### Expected behavior
I hope to pass the "input_size" parameter to MRF datasets, and change "input_size" to any value when loading the datasets.
### Environment info
- `datasets` version: 2.5.1
- Platform: Linux-4.18.0-305.3.1.el8.x86_64-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 9.0.0
- Pandas version: 1.5.0 | 376 | 49 | __init__() got an unexpected keyword argument 'input_size'
### Describe the bug
I try to define a custom configuration with a input_size attribute following the instructions by "Specifying several dataset configurations" in https://huggingface.co/docs/datasets/v1.2.1/add_dataset.html
But when I load the dataset, I got an error "__init__() got an unexpected keyword argument 'input_size'"
### Steps to reproduce the bug
Following is the code to define the dataset:
class CsvConfig(datasets.BuilderConfig):
"""BuilderConfig for CSV."""
input_size: int = 2048
class MRF(datasets.ArrowBasedBuilder):
"""Archival MRF data"""
BUILDER_CONFIG_CLASS = CsvConfig
VERSION = datasets.Version("1.0.0")
BUILDER_CONFIGS = [
CsvConfig(name="default", version=VERSION, description="MRF data", input_size=2048),
]
...
def _generate_examples(self):
input_size = self.config.input_size
if input_size > 1000:
numin = 10000
else:
numin = 15000
Below is the code to load the dataset:
reader = load_dataset("default", input_size=1024)
### Expected behavior
I hope to pass the "input_size" parameter to MRF datasets, and change "input_size" to any value when loading the datasets.
### Environment info
- `datasets` version: 2.5.1
- Platform: Linux-4.18.0-305.3.1.el8.x86_64-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 9.0.0
- Pandas version: 1.5.0
Hi @J-shel, thanks for reporting.
I think the issue comes from your call to `load_dataset`. As first argument, you should pass:
- either the name of your dataset ("mrf") if this is already published on the Hub
- or the path to the loading script of your dataset ("path/to/your/local/mrf.py"). | [
-1.3179267644882202,
-0.8770233988761902,
-0.6781187057495117,
1.4217880964279175,
-0.23399394750595093,
-1.1265684366226196,
0.21573123335838318,
-1.0965675115585327,
1.5839473009109497,
-0.7800825238227844,
0.32759523391723633,
-1.5724815130233765,
-0.059767208993434906,
-0.5339155197143555,
-0.6693002581596375,
-0.92668616771698,
-0.4548549950122833,
-0.6490945219993591,
1.1285275220870972,
2.5203511714935303,
1.2778993844985962,
-1.3579208850860596,
2.689429998397827,
0.7414218783378601,
-0.11279906332492828,
-0.997982382774353,
0.5672057271003723,
0.08236660808324814,
-1.4330805540084839,
-0.38736194372177124,
-0.9217300415039062,
-0.05353165790438652,
-0.5900715589523315,
-0.4566775858402252,
-0.03369234502315521,
0.38780030608177185,
-0.3571239113807678,
-0.47396162152290344,
-0.656144380569458,
-0.7530595660209656,
0.4575374722480774,
-0.4116697609424591,
0.9240889549255371,
-0.4496687054634094,
1.7703866958618164,
-0.5658519864082336,
0.5705637335777283,
0.8143621683120728,
1.2128597497940063,
0.27848386764526367,
0.06766759604215622,
0.3374899625778198,
0.4630178213119507,
-0.0485062450170517,
0.5224009156227112,
1.1939549446105957,
0.6717170476913452,
0.44889068603515625,
0.6670077443122864,
-2.1350693702697754,
1.3570281267166138,
-0.9422240257263184,
0.24099096655845642,
1.4202555418014526,
-0.884905219078064,
0.33284351229667664,
-1.7705929279327393,
-0.09273286908864975,
0.5507665872573853,
-2.2727856636047363,
0.3541496694087982,
-1.3057419061660767,
-0.5790615677833557,
0.9835534691810608,
0.4001117944717407,
-1.1731754541397095,
0.10691546648740768,
-0.5025157332420349,
0.981204628944397,
0.4544932544231415,
1.1480010747909546,
-1.6593658924102783,
-0.09937679022550583,
-0.2777250111103058,
0.0654367059469223,
-1.275694489479065,
-1.5646902322769165,
0.5271145701408386,
0.5853344798088074,
0.5987180471420288,
-0.07777673006057739,
1.0133190155029297,
-1.0463999509811401,
0.8076369166374207,
-1.0165135860443115,
-1.6874703168869019,
-1.441574215888977,
-2.3698465824127197,
-2.3098068237304688,
0.7534295916557312,
-0.4109744727611542,
-0.5567036867141724,
2.0945327281951904,
-1.0985764265060425,
-1.6610629558563232,
1.1459428071975708,
0.2665430009365082,
0.042455993592739105,
2.377108573913574,
0.2437286078929901,
-0.7241654396057129,
0.5154982805252075,
-0.7495079040527344,
0.7917267680168152,
-0.29256361722946167,
1.2757556438446045,
0.3610529899597168,
-1.0222413539886475,
1.5229737758636475,
-0.37573644518852234,
0.6656368374824524,
-0.6097551584243774,
-0.4833367168903351,
-0.735478401184082,
0.22195351123809814,
1.8432403802871704,
-0.25416386127471924,
1.514638066291809,
-0.2747094929218292,
-1.580660343170166,
-1.6216073036193848,
0.8579550385475159,
0.4546942114830017,
-0.6788555979728699,
0.087213896214962,
-0.3881314694881439,
0.16833196580410004,
-0.01871499978005886,
1.0847634077072144,
1.349042534828186,
0.7993003129959106,
-0.4517916440963745,
-0.920648992061615,
0.10878186672925949,
-0.10497885942459106,
-0.7680009603500366,
-1.7138209342956543,
-0.22516825795173645,
0.09150979667901993,
0.6155511140823364,
-1.2682431936264038,
1.7614995241165161,
0.9041592478752136,
1.9309601783752441,
1.012223720550537,
-0.3814229369163513,
1.453268051147461,
0.11905989795923233,
1.7922558784484863,
-0.5480676293373108,
0.6022400856018066,
-0.3093321621417999,
-1.0937920808792114,
0.8503517508506775,
-0.33405372500419617,
-2.1165318489074707,
-0.8531176447868347,
-0.6537370681762695,
-0.1733630746603012,
-0.7771526575088501,
1.0182298421859741,
-0.22926408052444458,
-1.3939599990844727,
0.25101491808891296,
-0.7217886447906494,
0.0995677262544632,
-1.2213611602783203,
0.26812484860420227,
0.664915919303894,
-0.6323117017745972,
0.05716203525662422,
-0.18897956609725952,
-1.2385478019714355,
-0.45959195494651794,
0.31824278831481934,
1.8063288927078247,
-0.6709374189376831,
0.9246327877044678,
1.0532227754592896,
-0.736187219619751,
0.053527962416410446,
0.2767884135246277,
-0.3456125855445862,
0.8583758473396301,
-1.0365869998931885,
-0.44958922266960144,
1.178794026374817,
-0.24293063580989838,
-0.6242586374282837,
1.4619373083114624,
0.6806066632270813,
-1.0491341352462769,
-0.21951128542423248,
-0.03671013563871384,
-0.8899027705192566,
0.05127723515033722,
-1.55463707447052,
-0.09910084307193756,
0.37368717789649963,
-1.5431312322616577,
-0.4521215856075287,
-0.1983388513326645,
1.2830818891525269,
-0.1510809063911438,
1.4422874450683594,
-0.3284737169742584,
-0.13917021453380585,
-0.3569089472293854,
-0.33724066615104675,
0.1153007224202156,
-0.1968095898628235,
-0.5987324714660645,
0.18759030103683472,
-0.8561584949493408,
0.21279007196426392,
1.4306374788284302,
0.37417271733283997,
-0.0071526020765304565,
0.4706583619117737,
1.0212817192077637,
0.4224000871181488,
-0.18471506237983704,
-0.8189986348152161,
-1.502793312072754,
2.0075490474700928,
-1.3524339199066162,
1.9845908880233765,
0.7664167284965515,
-0.05345378816127777,
-1.8113220930099487,
-1.9054816961288452,
1.300216794013977,
1.1209970712661743,
2.3820743560791016,
0.4752862751483917,
0.41671448945999146,
-0.8097621202468872,
-0.7432646751403809,
0.3686434030532837,
-1.0126737356185913,
-0.6370489597320557,
0.16807372868061066,
2.3965275287628174,
1.8000667095184326,
-0.43700718879699707,
-0.11949454993009567,
-1.007936954498291,
1.4329864978790283,
-0.1913444697856903,
0.19603919982910156,
2.0257205963134766,
-0.21469302475452423,
-0.9823101162910461,
1.3657968044281006,
-2.3373565673828125,
0.17409847676753998,
1.9521089792251587,
0.2945040464401245,
0.0412200465798378,
-1.3531161546707153,
-0.771947979927063,
-0.3887462615966797,
-0.462573379278183,
-1.1475415229797363,
0.5485581159591675,
-0.25517570972442627,
-0.7714757323265076,
-1.3889812231063843,
0.09882859885692596,
-1.1406631469726562,
-1.6879616975784302,
0.27799880504608154,
1.8055437803268433,
2.0115208625793457,
-0.8110738396644592,
1.5045078992843628,
-0.3151102066040039,
0.03602537885308266,
1.1613311767578125,
1.2574771642684937,
3.1317336559295654,
1.8968045711517334,
-1.379304051399231,
0.7047176957130432,
-0.09675363451242447,
-0.3676556646823883,
1.1139415502548218,
-1.238483190536499,
1.3479410409927368,
-0.10746046155691147,
-1.1670001745224,
-1.1945915222167969,
0.9946345686912537,
0.4884357750415802,
0.05947525426745415,
-0.5018237829208374,
1.1674306392669678,
0.11945802718400955,
1.4047075510025024,
0.5478556156158447,
-0.28670355677604675,
0.6211533546447754,
-0.37010928988456726,
-0.5370051860809326,
1.595592737197876,
0.1666278839111328,
-1.4697003364562988,
-2.2743330001831055,
-0.30023491382598877,
-0.7963096499443054,
0.05972936376929283,
-0.5768579840660095,
-1.0237356424331665,
1.6736024618148804,
0.38422903418540955,
-1.2581244707107544,
-0.3344821333885193,
-0.354260116815567,
-0.5880957841873169,
2.7512032985687256,
-1.3949542045593262,
-0.08344828337430954,
-0.9706749320030212,
-0.6044478416442871,
1.642269253730774,
-1.164668083190918,
-0.24916177988052368,
-1.0913602113723755,
-0.5578914880752563,
-1.284862995147705,
-0.5055875182151794,
0.0699491873383522,
-1.0065701007843018,
0.816885769367218,
0.1517372727394104,
-1.2101407051086426,
-0.30480465292930603,
-0.9108411073684692,
0.9423192739486694,
-0.0712331011891365,
0.1820780336856842,
1.8672181367874146,
0.383137583732605,
-0.381189227104187,
0.7071710228919983,
1.15120530128479,
0.6185573935508728,
-0.706882655620575,
0.1646503210067749,
-0.7412004470825195,
0.3560967743396759,
-1.260236144065857,
0.2342892736196518,
-2.8503212928771973,
0.6210777759552002,
-0.09154055267572403,
-0.07557686418294907,
-0.04280789569020271,
-1.2373589277267456,
1.1344351768493652,
2.549330472946167,
-1.1648063659667969,
0.5533930063247681,
0.33971139788627625,
1.0410661697387695,
-1.5762817859649658,
0.3717160224914551,
-0.45138129591941833,
2.019630193710327,
0.16713722050189972,
1.1717047691345215,
-0.5677427053451538,
-2.2868523597717285,
0.7198745608329773,
-1.2094615697860718,
-1.202070951461792,
0.8121069669723511,
-0.9475873708724976,
0.2776622772216797,
-1.4172632694244385,
-0.269791841506958,
-0.8654113411903381,
-1.1691210269927979,
0.5549577474594116,
0.21969519555568695,
0.4303298890590668,
-0.567863404750824,
0.32365506887435913,
-2.284355878829956,
-1.286356806755066,
-0.2695161998271942,
-0.9335008263587952,
0.5341824293136597,
-0.39374855160713196,
0.6889162659645081,
-0.1334758847951889,
0.0003440696746110916,
0.37229621410369873,
1.3860341310501099,
3.414578437805176,
0.08275238424539566,
0.17879635095596313,
-0.13022390007972717,
-0.9472659230232239,
1.5102238655090332,
0.9018328189849854,
-0.07828036695718765,
-0.629929780960083,
-1.159130573272705,
1.2427388429641724,
1.9751981496810913,
1.020641565322876,
0.010384217835962772,
-0.8926969766616821,
-0.7292816638946533,
0.011352634988725185,
0.13698352873325348,
0.44897159934043884,
0.9685021638870239,
0.032431669533252716,
-0.006893201731145382,
1.56128990650177,
1.205910563468933,
-0.2552372217178345,
0.2377355843782425,
-0.9088287353515625,
-0.5073546767234802,
0.5179316401481628,
0.32708579301834106,
0.023893583565950394,
0.34194403886795044,
-1.0669987201690674,
-0.2550296485424042,
-0.3643048107624054,
-0.9156525135040283,
-0.6954860687255859,
-0.44086459279060364,
-0.4185098707675934,
1.6350924968719482,
0.13223041594028473,
-0.49358364939689636,
-0.0511929877102375,
-0.7636655569076538,
-0.12016481906175613,
-1.1316498517990112,
0.3142754137516022,
-0.11495363712310791,
-0.0779317170381546,
-0.21295833587646484,
1.764426350593567,
-0.929006814956665,
-2.1844654083251953,
0.21012453734874725,
0.19165676832199097,
-0.22583909332752228,
0.24446585774421692,
1.6539634466171265,
0.5979991555213928,
1.4108757972717285,
1.2613950967788696,
0.8702223300933838,
-0.6748368144035339,
-1.3083120584487915,
0.6252328753471375,
1.0195965766906738,
-1.3685929775238037,
0.8443424105644226,
-0.04426019638776779,
-0.6012668609619141,
0.6328272223472595,
1.2685099840164185,
0.4519127905368805,
-2.006969928741455,
0.8722197413444519,
-0.9171133637428284,
0.8016355037689209,
0.6789078712463379,
0.7260032296180725,
0.1259128898382187,
0.8134475350379944,
-1.2543598413467407,
-1.0583698749542236,
-0.7205713987350464,
-0.6352761387825012,
1.9853757619857788,
-0.4299306273460388,
0.6086384654045105,
-0.2542928457260132,
-1.2141571044921875,
-0.04389346390962601,
0.7249026298522949,
0.30340656638145447,
-0.4602145552635193,
0.7941687107086182,
-0.6762024760246277,
-1.1837520599365234,
-1.4010670185089111,
-0.36560872197151184,
-1.044366478919983,
-0.8849718570709229,
1.0642657279968262,
0.6964237093925476,
0.3428402841091156,
1.8059937953948975,
0.6532361507415771,
0.29111921787261963,
-2.6051933765411377,
0.8933766484260559,
0.28367021679878235,
-0.010819830000400543,
0.9207287430763245,
0.3182232081890106,
1.0485191345214844,
-0.07905015349388123,
0.5222570300102234,
-2.431321859359741,
2.300490617752075,
-0.25286585092544556,
0.6694467663764954,
-0.043290115892887115,
-0.13435839116573334,
1.1573317050933838,
0.6891734004020691,
0.587429404258728,
-1.0061852931976318,
0.6656401753425598,
-0.4845435917377472,
1.221407175064087,
0.9046973586082458,
-0.7246133089065552,
-0.024552904069423676,
1.3542048931121826,
0.48400717973709106,
-0.4132414758205414,
-0.9366129636764526,
-0.8939333558082581,
0.9869423508644104,
1.8010085821151733,
-0.0842529833316803,
0.03104155883193016,
0.7777336835861206,
0.7136379480361938,
-1.3474470376968384,
0.021889016032218933,
-0.7685647010803223,
-0.7074524760246277,
1.6958189010620117,
2.1191465854644775,
-0.07764147967100143,
-0.2647453844547272,
-0.7099260091781616,
-1.323283076286316,
0.8269315361976624,
-0.07001800090074539,
0.21692520380020142,
0.6566700339317322,
-0.6568924188613892,
0.983755886554718,
0.8130589127540588,
0.9954352974891663,
0.16376890242099762,
0.2747989296913147,
0.40855252742767334,
-0.3201611340045929,
-1.2278649806976318,
-0.21938849985599518,
-0.9897242188453674,
-2.514033317565918,
0.425630122423172,
-0.1923806220293045,
-1.496738076210022,
-0.055207815021276474,
-1.0712276697158813,
0.9395027756690979,
-0.5310957431793213,
-1.0620404481887817,
-1.5401010513305664,
0.18669848144054413,
-0.06227705255150795,
0.9530081152915955,
-1.541943907737732,
-0.2699688971042633,
1.3138506412506104,
0.8687581419944763,
-0.6471225619316101,
1.019413948059082,
0.20721235871315002,
0.9529117345809937,
0.7501965761184692,
-0.3730338215827942,
0.46655407547950745,
0.05901079252362251,
-1.3584895133972168,
0.3680765628814697,
1.2624908685684204,
0.18027392029762268,
1.5351287126541138,
-0.6783607006072998,
0.0527159757912159,
0.36732563376426697,
-0.5250012278556824,
-0.4527778923511505,
-0.481612890958786,
0.6344768404960632,
0.029812723398208618,
-0.970368504524231,
-0.13504059612751007,
-0.13236384093761444,
-0.24176143109798431,
0.13084813952445984,
-1.3612353801727295,
-0.11529425531625748,
-0.4244357943534851,
-0.56749427318573,
-1.2592804431915283,
-0.016938768327236176,
1.3815863132476807,
-0.8025954365730286,
-0.18679961562156677,
0.43035709857940674,
0.29134202003479004,
0.629205584526062,
0.6432332992553711,
-0.762618362903595,
-0.2601871192455292,
-0.25695323944091797,
-0.25027766823768616,
0.2684973180294037,
1.3303817510604858,
-0.07450118660926819,
-0.9592992067337036,
0.6973275542259216,
-0.3769356906414032,
0.1897350400686264,
2.05765962600708,
0.03196122869849205,
-0.7342318892478943,
0.3377940058708191,
-0.6880564093589783,
1.8994115591049194,
1.7193857431411743,
1.3781955242156982,
-0.16787852346897125,
-0.9564736485481262,
0.5784289240837097,
-0.3677203953266144,
-0.4405111074447632,
0.917631983757019,
0.4716814160346985,
-0.24322564899921417,
-1.3963149785995483,
0.6648263931274414,
1.2128640413284302,
-0.893299400806427,
-0.7898396849632263,
0.21172992885112762,
-0.8447523713111877,
1.153044581413269,
0.6651838421821594,
0.37147942185401917,
0.27953365445137024,
1.6385464668273926,
0.7879067659378052,
-0.5075021386146545,
0.49582943320274353,
0.5665574669837952,
-0.2042970359325409,
-2.0736382007598877,
-1.1661452054977417,
0.3366285562515259,
-0.5571199059486389,
-1.5521790981292725,
1.4169360399246216,
-1.1468727588653564,
-1.1025958061218262,
0.5529990196228027,
0.003865819424390793,
1.2890337705612183,
0.38923537731170654,
1.571422815322876,
2.067143201828003,
0.9522504210472107,
0.4344363212585449,
1.3393421173095703,
-0.1282815933227539,
-0.4279853105545044,
1.8266440629959106,
-0.39213886857032776,
0.5435361862182617,
1.1043609380722046,
-0.35518571734428406,
-1.0560415983200073,
-0.7949630618095398,
-1.169267177581787,
-0.7220436334609985,
1.1842104196548462,
0.07557475566864014,
-0.9972657561302185,
0.2561972141265869,
1.5246294736862183,
0.19653907418251038,
-0.3645898699760437,
0.7115693092346191,
0.3639221787452698,
-0.8063188195228577,
-0.14474524557590485,
-0.9732658863067627,
0.557090163230896,
-0.24474018812179565,
-0.3933295011520386,
0.20819418132305145,
0.4413464665412903,
1.394726276397705,
-0.09790529310703278,
0.14301897585391998,
1.1477971076965332,
-1.3831053972244263,
1.5272700786590576,
-0.6698580980300903,
0.1901721954345703,
-2.3493173122406006,
1.3971126079559326,
-0.7736390233039856,
1.8735216856002808,
-2.675541400909424,
0.49141040444374084,
-0.5255366563796997,
-0.41679567098617554,
0.233170747756958,
-0.38973143696784973,
0.1684551239013672,
-0.08372005075216293,
-1.127894401550293,
-0.043698642402887344,
-0.6861237287521362,
0.6042041778564453,
1.1204967498779297,
1.3673168420791626,
-1.1872986555099487,
-0.23743586242198944,
-1.6642627716064453,
-0.20735281705856323,
-0.8142873048782349,
0.37061014771461487,
-1.9010692834854126,
-0.17349588871002197,
-1.8511208295822144,
-2.4485318660736084,
-1.2394105195999146,
-0.8194698095321655,
1.1390154361724854,
0.20035894215106964,
-0.9146783947944641,
1.2231460809707642,
-0.40376946330070496,
-1.894810676574707,
1.1522293090820312,
-2.2121336460113525
] |
https://github.com/huggingface/datasets/issues/5352 | __init__() got an unexpected keyword argument 'input_size' | Hi, following your suggestion, I changed my call to load_dataset. Below is the latest:
reader = load_dataset('data/mrf.py',"default", input_size=1024, split=split, streaming=True, keep_in_memory=None)
However, I still got the same error.
I have one question that is if I only define input_size=2048 in BUILDER_CONFIGS, may I specify input_size=1024 when loading the dataset? Cause I found that I could only specify name="default" since I only define name="default" in BUILDER_CONFIGS. | ### Describe the bug
I try to define a custom configuration with a input_size attribute following the instructions by "Specifying several dataset configurations" in https://huggingface.co/docs/datasets/v1.2.1/add_dataset.html
But when I load the dataset, I got an error "__init__() got an unexpected keyword argument 'input_size'"
### Steps to reproduce the bug
Following is the code to define the dataset:
class CsvConfig(datasets.BuilderConfig):
"""BuilderConfig for CSV."""
input_size: int = 2048
class MRF(datasets.ArrowBasedBuilder):
"""Archival MRF data"""
BUILDER_CONFIG_CLASS = CsvConfig
VERSION = datasets.Version("1.0.0")
BUILDER_CONFIGS = [
CsvConfig(name="default", version=VERSION, description="MRF data", input_size=2048),
]
...
def _generate_examples(self):
input_size = self.config.input_size
if input_size > 1000:
numin = 10000
else:
numin = 15000
Below is the code to load the dataset:
reader = load_dataset("default", input_size=1024)
### Expected behavior
I hope to pass the "input_size" parameter to MRF datasets, and change "input_size" to any value when loading the datasets.
### Environment info
- `datasets` version: 2.5.1
- Platform: Linux-4.18.0-305.3.1.el8.x86_64-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 9.0.0
- Pandas version: 1.5.0 | 376 | 65 | __init__() got an unexpected keyword argument 'input_size'
### Describe the bug
I try to define a custom configuration with a input_size attribute following the instructions by "Specifying several dataset configurations" in https://huggingface.co/docs/datasets/v1.2.1/add_dataset.html
But when I load the dataset, I got an error "__init__() got an unexpected keyword argument 'input_size'"
### Steps to reproduce the bug
Following is the code to define the dataset:
class CsvConfig(datasets.BuilderConfig):
"""BuilderConfig for CSV."""
input_size: int = 2048
class MRF(datasets.ArrowBasedBuilder):
"""Archival MRF data"""
BUILDER_CONFIG_CLASS = CsvConfig
VERSION = datasets.Version("1.0.0")
BUILDER_CONFIGS = [
CsvConfig(name="default", version=VERSION, description="MRF data", input_size=2048),
]
...
def _generate_examples(self):
input_size = self.config.input_size
if input_size > 1000:
numin = 10000
else:
numin = 15000
Below is the code to load the dataset:
reader = load_dataset("default", input_size=1024)
### Expected behavior
I hope to pass the "input_size" parameter to MRF datasets, and change "input_size" to any value when loading the datasets.
### Environment info
- `datasets` version: 2.5.1
- Platform: Linux-4.18.0-305.3.1.el8.x86_64-x86_64-with-glibc2.31
- Python version: 3.9.12
- PyArrow version: 9.0.0
- Pandas version: 1.5.0
Hi, following your suggestion, I changed my call to load_dataset. Below is the latest:
reader = load_dataset('data/mrf.py',"default", input_size=1024, split=split, streaming=True, keep_in_memory=None)
However, I still got the same error.
I have one question that is if I only define input_size=2048 in BUILDER_CONFIGS, may I specify input_size=1024 when loading the dataset? Cause I found that I could only specify name="default" since I only define name="default" in BUILDER_CONFIGS. | [
-1.319419503211975,
-0.8907701373100281,
-0.6713951230049133,
1.427407145500183,
-0.23848478496074677,
-1.1148940324783325,
0.22346144914627075,
-1.092186450958252,
1.556174397468567,
-0.7811620235443115,
0.31490352749824524,
-1.5549242496490479,
-0.07593421638011932,
-0.5233897566795349,
-0.6498241424560547,
-0.9282014966011047,
-0.45027920603752136,
-0.6585826277732849,
1.1370083093643188,
2.5253331661224365,
1.2713159322738647,
-1.3642728328704834,
2.688953161239624,
0.7462380528450012,
-0.11648034304380417,
-1.0126888751983643,
0.5729843378067017,
0.08892533928155899,
-1.4144855737686157,
-0.39163485169410706,
-0.9048409461975098,
-0.05421261489391327,
-0.5830156803131104,
-0.43333402276039124,
-0.030488204210996628,
0.38719263672828674,
-0.3560096323490143,
-0.47081321477890015,
-0.6593499779701233,
-0.7480307817459106,
0.45737287402153015,
-0.4287939965724945,
0.9239709973335266,
-0.433590292930603,
1.7716256380081177,
-0.5434953570365906,
0.5544377565383911,
0.82823646068573,
1.2054723501205444,
0.2671981751918793,
0.08379486203193665,
0.3448196351528168,
0.4746370017528534,
-0.05674535408616066,
0.5218598246574402,
1.1880111694335938,
0.6716704964637756,
0.44738200306892395,
0.6686830520629883,
-2.153634548187256,
1.3682547807693481,
-0.9564083814620972,
0.25496259331703186,
1.4228789806365967,
-0.8677015900611877,
0.34992870688438416,
-1.7667814493179321,
-0.09211158752441406,
0.5658464431762695,
-2.2721006870269775,
0.371984601020813,
-1.2933624982833862,
-0.5992432832717896,
0.9668768644332886,
0.39184442162513733,
-1.1666823625564575,
0.11357031762599945,
-0.5160850882530212,
0.9911574721336365,
0.4434835612773895,
1.1385332345962524,
-1.6671335697174072,
-0.09932567924261093,
-0.24830381572246552,
0.057250235229730606,
-1.2972896099090576,
-1.5586801767349243,
0.536872148513794,
0.5741826295852661,
0.6052306294441223,
-0.07794083654880524,
1.0232648849487305,
-1.053557276725769,
0.7998604774475098,
-1.0297375917434692,
-1.6770226955413818,
-1.448009729385376,
-2.4001553058624268,
-2.308607339859009,
0.7442730665206909,
-0.40713804960250854,
-0.5615454912185669,
2.0926411151885986,
-1.095236897468567,
-1.6479644775390625,
1.1690497398376465,
0.26781848073005676,
0.04833480343222618,
2.3855857849121094,
0.2436327040195465,
-0.730363667011261,
0.5013304352760315,
-0.7569743394851685,
0.7871763110160828,
-0.2915498912334442,
1.267774224281311,
0.37038901448249817,
-1.0337722301483154,
1.521706223487854,
-0.3761979639530182,
0.6589499115943909,
-0.6032076478004456,
-0.477295458316803,
-0.7500119209289551,
0.2236909717321396,
1.8393856287002563,
-0.2536572515964508,
1.5170987844467163,
-0.2992563545703888,
-1.5687185525894165,
-1.622222900390625,
0.8627509474754333,
0.4382420480251312,
-0.6904944777488708,
0.0928758904337883,
-0.40555766224861145,
0.17351816594600677,
-0.03740581125020981,
1.0861756801605225,
1.3436239957809448,
0.7809469103813171,
-0.46130311489105225,
-0.9283313155174255,
0.11703509837388992,
-0.1241968646645546,
-0.7612425684928894,
-1.7342748641967773,
-0.2366243302822113,
0.08490061014890671,
0.618445098400116,
-1.2695602178573608,
1.7633018493652344,
0.9140492677688599,
1.933545470237732,
1.0018352270126343,
-0.39691805839538574,
1.4442213773727417,
0.1229991540312767,
1.7768129110336304,
-0.5608812570571899,
0.6085878014564514,
-0.31481894850730896,
-1.096733570098877,
0.865260899066925,
-0.32477015256881714,
-2.113217353820801,
-0.871993362903595,
-0.6484813094139099,
-0.17881080508232117,
-0.784883975982666,
0.9955070614814758,
-0.24781766533851624,
-1.4064505100250244,
0.258034884929657,
-0.718345582485199,
0.11696314066648483,
-1.2122173309326172,
0.2714250385761261,
0.6723524332046509,
-0.6168603897094727,
0.04416173696517944,
-0.1861514151096344,
-1.2461960315704346,
-0.4617052674293518,
0.31837260723114014,
1.80648672580719,
-0.6512974500656128,
0.9225109815597534,
1.0662972927093506,
-0.7313289642333984,
0.065848708152771,
0.25152745842933655,
-0.33774253726005554,
0.8486388921737671,
-1.0283259153366089,
-0.4703039824962616,
1.1801331043243408,
-0.2357855886220932,
-0.6439029574394226,
1.473501443862915,
0.6959245800971985,
-1.0593376159667969,
-0.22706018388271332,
-0.04429572448134422,
-0.8833190202713013,
0.0515068955719471,
-1.5469238758087158,
-0.09683799743652344,
0.3962874412536621,
-1.5333516597747803,
-0.43867745995521545,
-0.2081449180841446,
1.2807961702346802,
-0.1585995852947235,
1.454769253730774,
-0.33433157205581665,
-0.1348140686750412,
-0.35730716586112976,
-0.3186590075492859,
0.12353970855474472,
-0.19235630333423615,
-0.5997493863105774,
0.18378277122974396,
-0.8744903206825256,
0.23351803421974182,
1.436759352684021,
0.3781105577945709,
0.0011219112202525139,
0.4664113223552704,
1.0050089359283447,
0.43238136172294617,
-0.16230440139770508,
-0.8194125890731812,
-1.4870548248291016,
1.9937597513198853,
-1.344002366065979,
1.9739476442337036,
0.7647935748100281,
-0.055635083466768265,
-1.8071399927139282,
-1.9004788398742676,
1.2671120166778564,
1.1239219903945923,
2.3655636310577393,
0.4738043546676636,
0.41531699895858765,
-0.8012951612472534,
-0.7584355473518372,
0.3524707853794098,
-1.0245592594146729,
-0.617206871509552,
0.17557817697525024,
2.401808500289917,
1.801598310470581,
-0.4382478892803192,
-0.10405518859624863,
-0.9961737394332886,
1.446187138557434,
-0.19403475522994995,
0.21441030502319336,
2.047999143600464,
-0.22932781279087067,
-0.9749390482902527,
1.363681674003601,
-2.3699212074279785,
0.19572867453098297,
1.9570274353027344,
0.2960020899772644,
0.03640808165073395,
-1.3627963066101074,
-0.764310359954834,
-0.39865946769714355,
-0.45880240201950073,
-1.1479694843292236,
0.5577178597450256,
-0.25574561953544617,
-0.7773581743240356,
-1.3934489488601685,
0.10674529522657394,
-1.1543687582015991,
-1.7002171277999878,
0.2861383259296417,
1.7961723804473877,
2.033538818359375,
-0.8033668398857117,
1.4884783029556274,
-0.30574852228164673,
0.025589268654584885,
1.1493101119995117,
1.2763330936431885,
3.0963618755340576,
1.9000799655914307,
-1.3681696653366089,
0.699874758720398,
-0.09756942093372345,
-0.3679312765598297,
1.0964230298995972,
-1.2512098550796509,
1.3305023908615112,
-0.09147685766220093,
-1.1547203063964844,
-1.1921463012695312,
1.0075916051864624,
0.49452030658721924,
0.05650753155350685,
-0.4978219270706177,
1.1762303113937378,
0.12921790778636932,
1.419500708580017,
0.5589373707771301,
-0.29141899943351746,
0.6078557968139648,
-0.37325116991996765,
-0.5518919825553894,
1.6001372337341309,
0.1674964725971222,
-1.4633129835128784,
-2.2625205516815186,
-0.3185657262802124,
-0.7949678897857666,
0.06505998224020004,
-0.5765537023544312,
-1.019085168838501,
1.6740527153015137,
0.37739086151123047,
-1.2598646879196167,
-0.32455506920814514,
-0.34880784153938293,
-0.5744533538818359,
2.736772298812866,
-1.3781107664108276,
-0.0861155167222023,
-0.9656747579574585,
-0.5979301929473877,
1.637650489807129,
-1.1771314144134521,
-0.23296456038951874,
-1.0983936786651611,
-0.5623378157615662,
-1.2798750400543213,
-0.4967074990272522,
0.06251876801252365,
-1.0131906270980835,
0.8299089670181274,
0.17008070647716522,
-1.2060710191726685,
-0.3138279914855957,
-0.9036180377006531,
0.9537132382392883,
-0.06573016196489334,
0.1866157054901123,
1.8491548299789429,
0.37414923310279846,
-0.37987110018730164,
0.7218869924545288,
1.1660887002944946,
0.6208102107048035,
-0.7155845761299133,
0.14593395590782166,
-0.7454565763473511,
0.3377734124660492,
-1.2502444982528687,
0.23060135543346405,
-2.8646512031555176,
0.6270996332168579,
-0.09404557198286057,
-0.07468056678771973,
-0.047384295612573624,
-1.22173011302948,
1.1351590156555176,
2.5396392345428467,
-1.167708396911621,
0.5569098591804504,
0.3591369688510895,
1.049944519996643,
-1.580223798751831,
0.37759658694267273,
-0.456725150346756,
2.012902021408081,
0.17079049348831177,
1.183972954750061,
-0.5759067535400391,
-2.2940030097961426,
0.7173048853874207,
-1.2182763814926147,
-1.1943159103393555,
0.8045282363891602,
-0.9590442776679993,
0.2967472970485687,
-1.4427711963653564,
-0.28082403540611267,
-0.8717289566993713,
-1.1688570976257324,
0.5452694296836853,
0.2264518141746521,
0.4155537784099579,
-0.5658966302871704,
0.33055102825164795,
-2.2833077907562256,
-1.292168378829956,
-0.26227664947509766,
-0.9397992491722107,
0.5549629926681519,
-0.4025479555130005,
0.6887481212615967,
-0.12123691290616989,
-0.003111331257969141,
0.366020530462265,
1.4064640998840332,
3.426304578781128,
0.09539514780044556,
0.1613232046365738,
-0.11409690231084824,
-0.94952791929245,
1.499819278717041,
0.9094566106796265,
-0.07064083218574524,
-0.6130566000938416,
-1.173756718635559,
1.274487018585205,
1.9841938018798828,
1.0220201015472412,
0.012710479088127613,
-0.9019361734390259,
-0.7213472723960876,
0.002492227591574192,
0.1461889147758484,
0.45090335607528687,
0.9638038873672485,
0.024104472249746323,
-0.01033255085349083,
1.5608817338943481,
1.2185794115066528,
-0.2524333596229553,
0.23086319863796234,
-0.9225033521652222,
-0.515571117401123,
0.5199903845787048,
0.30778253078460693,
0.013610993511974812,
0.35138460993766785,
-1.0704517364501953,
-0.2514123320579529,
-0.34835928678512573,
-0.8935816287994385,
-0.7030233144760132,
-0.42926302552223206,
-0.4261505603790283,
1.615997552871704,
0.1565188765525818,
-0.48674434423446655,
-0.03112989291548729,
-0.7502284646034241,
-0.13914154469966888,
-1.1441963911056519,
0.2833573818206787,
-0.11778900027275085,
-0.09093248099088669,
-0.2314453125,
1.7674695253372192,
-0.9156180620193481,
-2.174797534942627,
0.1871373951435089,
0.19615817070007324,
-0.20331329107284546,
0.2621484398841858,
1.661858320236206,
0.5889155864715576,
1.4060689210891724,
1.237259030342102,
0.8666890859603882,
-0.6722251772880554,
-1.313267707824707,
0.631774365901947,
1.0262173414230347,
-1.3675191402435303,
0.8442028760910034,
-0.05595875158905983,
-0.6085439324378967,
0.6526858806610107,
1.2719637155532837,
0.4549196660518646,
-2.0113635063171387,
0.8708892464637756,
-0.9417343735694885,
0.823837399482727,
0.6820589303970337,
0.7125070095062256,
0.12363915890455246,
0.8011809587478638,
-1.2540861368179321,
-1.041020154953003,
-0.7325791120529175,
-0.6424967646598816,
1.9797471761703491,
-0.4424254596233368,
0.6045013070106506,
-0.24491086602210999,
-1.209721565246582,
-0.03988942503929138,
0.7366018891334534,
0.30741623044013977,
-0.4650867283344269,
0.7919225096702576,
-0.6701334714889526,
-1.1880955696105957,
-1.3999388217926025,
-0.3516688346862793,
-1.057087779045105,
-0.8932391405105591,
1.0693893432617188,
0.6931144595146179,
0.3262155055999756,
1.7938724756240845,
0.6618131995201111,
0.27781161665916443,
-2.597679376602173,
0.8973672986030579,
0.2842031717300415,
-0.005715463310480118,
0.9058353900909424,
0.30805304646492004,
1.065035343170166,
-0.06357833743095398,
0.5304259657859802,
-2.4424331188201904,
2.303428888320923,
-0.25052958726882935,
0.6758338809013367,
-0.03858097270131111,
-0.1253689080476761,
1.1671465635299683,
0.6874293088912964,
0.6122210025787354,
-1.0114173889160156,
0.645929753780365,
-0.4693889021873474,
1.2240595817565918,
0.8926817178726196,
-0.719847559928894,
-0.03321610391139984,
1.3571470975875854,
0.4859146475791931,
-0.4227592349052429,
-0.9255728125572205,
-0.8929272890090942,
0.9988310933113098,
1.8091425895690918,
-0.10210084915161133,
0.02312062680721283,
0.768976092338562,
0.7036756277084351,
-1.33541738986969,
0.0005058739334344864,
-0.7646498084068298,
-0.7050570845603943,
1.7019540071487427,
2.121178388595581,
-0.10166782140731812,
-0.2549871504306793,
-0.7106329798698425,
-1.3347053527832031,
0.8316437005996704,
-0.09333615750074387,
0.20667336881160736,
0.6750434041023254,
-0.6460447907447815,
0.9729940295219421,
0.7793149352073669,
0.9905470609664917,
0.1645834594964981,
0.278622567653656,
0.4101974368095398,
-0.332664430141449,
-1.2168233394622803,
-0.22194337844848633,
-0.9884499311447144,
-2.5389747619628906,
0.41533055901527405,
-0.18742604553699493,
-1.487308144569397,
-0.07235555350780487,
-1.0747789144515991,
0.9551023840904236,
-0.527529776096344,
-1.0573121309280396,
-1.532112956047058,
0.18618443608283997,
-0.05940743908286095,
0.9561469554901123,
-1.5589845180511475,
-0.27454856038093567,
1.3134440183639526,
0.8675660490989685,
-0.6412447690963745,
1.0188461542129517,
0.1994147002696991,
0.9551076292991638,
0.7278262376785278,
-0.3579542636871338,
0.47883108258247375,
0.03944234549999237,
-1.356713056564331,
0.3744972050189972,
1.2673369646072388,
0.19044266641139984,
1.5099608898162842,
-0.6645881533622742,
0.05370346084237099,
0.36129099130630493,
-0.5284793972969055,
-0.4460107684135437,
-0.44550204277038574,
0.6377192139625549,
0.01530772540718317,
-0.9643889665603638,
-0.13567517697811127,
-0.1333262175321579,
-0.25372228026390076,
0.13052409887313843,
-1.3417937755584717,
-0.13777700066566467,
-0.435200035572052,
-0.5633165240287781,
-1.2598026990890503,
-0.019474390894174576,
1.3972985744476318,
-0.7946396470069885,
-0.19351443648338318,
0.41917654871940613,
0.3016349971294403,
0.642960786819458,
0.6529750823974609,
-0.7672737240791321,
-0.27014803886413574,
-0.258646160364151,
-0.23528477549552917,
0.27780330181121826,
1.3333581686019897,
-0.07815730571746826,
-0.9585902690887451,
0.7114595770835876,
-0.3721257448196411,
0.20315828919410706,
2.054171323776245,
0.03763926774263382,
-0.7357829809188843,
0.3266271948814392,
-0.706588864326477,
1.9041812419891357,
1.7199764251708984,
1.3753139972686768,
-0.1871742308139801,
-0.931633472442627,
0.5682516098022461,
-0.38229069113731384,
-0.43048927187919617,
0.9090868830680847,
0.46645495295524597,
-0.23469935357570648,
-1.380733847618103,
0.6760595440864563,
1.2083537578582764,
-0.8819864988327026,
-0.803174614906311,
0.21024273335933685,
-0.8356732130050659,
1.1715118885040283,
0.6351527571678162,
0.38870376348495483,
0.2726071774959564,
1.6431082487106323,
0.7922024726867676,
-0.5309843420982361,
0.49421483278274536,
0.5786446928977966,
-0.21559402346611023,
-2.0837111473083496,
-1.169474720954895,
0.327094703912735,
-0.5531398057937622,
-1.5563286542892456,
1.4104102849960327,
-1.1163725852966309,
-1.1048095226287842,
0.5616336464881897,
-0.00008447375148534775,
1.2730474472045898,
0.3782818615436554,
1.5697712898254395,
2.057859420776367,
0.9460374116897583,
0.44428518414497375,
1.3504538536071777,
-0.12848880887031555,
-0.4340702295303345,
1.8346869945526123,
-0.3685294985771179,
0.5224083065986633,
1.106318473815918,
-0.35762399435043335,
-1.0462414026260376,
-0.7841187119483948,
-1.1607658863067627,
-0.6980961561203003,
1.1826037168502808,
0.08033233135938644,
-0.9934517741203308,
0.25717413425445557,
1.5150593519210815,
0.2077673077583313,
-0.376810222864151,
0.7099952697753906,
0.3686397671699524,
-0.8072144985198975,
-0.14504209160804749,
-0.9694361686706543,
0.5474406480789185,
-0.2490432858467102,
-0.38718098402023315,
0.20741724967956543,
0.43966761231422424,
1.3832937479019165,
-0.11086494475603104,
0.1525302231311798,
1.1286524534225464,
-1.3855488300323486,
1.5287193059921265,
-0.6694517731666565,
0.20415474474430084,
-2.348936080932617,
1.3797059059143066,
-0.7508271932601929,
1.8913850784301758,
-2.6765432357788086,
0.48756521940231323,
-0.5341297388076782,
-0.4215050935745239,
0.2259528785943985,
-0.3811216652393341,
0.16426193714141846,
-0.08356402069330215,
-1.1309633255004883,
-0.028661321848630905,
-0.6756084561347961,
0.6070903539657593,
1.1224766969680786,
1.3643078804016113,
-1.2034293413162231,
-0.22606848180294037,
-1.6680412292480469,
-0.2141401469707489,
-0.8377723693847656,
0.3768932819366455,
-1.9142788648605347,
-0.18156534433364868,
-1.8592910766601562,
-2.4155569076538086,
-1.227362036705017,
-0.8197313547134399,
1.1290756464004517,
0.19317330420017242,
-0.9066286087036133,
1.2335060834884644,
-0.39634639024734497,
-1.9009137153625488,
1.1536861658096313,
-2.2117156982421875
] |
https://github.com/huggingface/datasets/issues/5351 | Do we need to implement `_prepare_split`? | Hi! `DatasetBuilder` is a parent class for concrete builders: `GeneratorBasedBuilder`, `ArrowBasedBuilder` and `BeamBasedBuilder`. When writing a builder script, these classes are the ones you should inherit from. And since all of them implement `_prepare_split`, you only have to implement the three methods mentioned above. | ### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 377 | 44 | Do we need to implement `_prepare_split`?
### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Hi! `DatasetBuilder` is a parent class for concrete builders: `GeneratorBasedBuilder`, `ArrowBasedBuilder` and `BeamBasedBuilder`. When writing a builder script, these classes are the ones you should inherit from. And since all of them implement `_prepare_split`, you only have to implement the three methods mentioned above. | [
-1.1564629077911377,
-0.9498602747917175,
-0.663374125957489,
1.4442986249923706,
-0.10583754628896713,
-1.330580234527588,
0.14666317403316498,
-1.096006155014038,
1.5908504724502563,
-0.7755786180496216,
0.2561314105987549,
-1.64324951171875,
0.0009109014645218849,
-0.5524017810821533,
-0.7539600729942322,
-0.8674906492233276,
-0.40539678931236267,
-0.8347030878067017,
1.090440034866333,
2.49111270904541,
1.3073545694351196,
-1.3592675924301147,
2.6914243698120117,
0.6253315806388855,
-0.25068217515945435,
-1.0284806489944458,
0.5118100047111511,
-0.08683808147907257,
-1.244111180305481,
-0.44190430641174316,
-0.8866837620735168,
-0.02659996971487999,
-0.5436497926712036,
-0.44842851161956787,
0.020160146057605743,
0.507144033908844,
-0.2853304445743561,
-0.3522126376628876,
-0.5469552278518677,
-0.7873325943946838,
0.5138752460479736,
-0.39047810435295105,
0.9771408438682556,
-0.2916063368320465,
1.7428398132324219,
-0.5489139556884766,
0.5562779903411865,
0.7052303552627563,
1.323817491531372,
0.2096545547246933,
0.04410451278090477,
0.274929404258728,
0.3526633381843567,
-0.013621739111840725,
0.5801300406455994,
1.1732457876205444,
0.6227781176567078,
0.5495607852935791,
0.6936177611351013,
-2.2312402725219727,
1.2467851638793945,
-0.8898006677627563,
0.25347813963890076,
1.3205538988113403,
-0.8416476845741272,
0.2985175848007202,
-1.7818101644515991,
-0.023926209658384323,
0.626913845539093,
-2.219168186187744,
0.2871083915233612,
-1.2484748363494873,
-0.4404938817024231,
0.9812764525413513,
0.3844491243362427,
-1.1995611190795898,
0.17814722657203674,
-0.4682336151599884,
1.0708445310592651,
0.4985090494155884,
1.0634267330169678,
-1.6850014925003052,
-0.07276272028684616,
-0.12144693732261658,
0.09427030384540558,
-1.2751214504241943,
-1.616385817527771,
0.49936777353286743,
0.6314769387245178,
0.601296067237854,
-0.12011171132326126,
1.0285768508911133,
-1.0327154397964478,
0.7683276534080505,
-0.9833645820617676,
-1.7085256576538086,
-1.3746590614318848,
-2.381073474884033,
-2.2604963779449463,
0.7647416591644287,
-0.5077292323112488,
-0.505199134349823,
2.139141321182251,
-0.9762452244758606,
-1.7382080554962158,
1.0784868001937866,
0.2431776374578476,
0.06848800927400589,
2.3521018028259277,
0.16266687214374542,
-0.7607546448707581,
0.5209259390830994,
-0.7144909501075745,
0.7387741804122925,
-0.39588698744773865,
1.252274990081787,
0.4191671311855316,
-1.0772514343261719,
1.5892210006713867,
-0.40179985761642456,
0.6249086856842041,
-0.7159730195999146,
-0.5217868089675903,
-0.7206072807312012,
0.3132014870643616,
1.8762284517288208,
-0.33961737155914307,
1.5194368362426758,
-0.32035568356513977,
-1.5336531400680542,
-1.5990382432937622,
0.8680450320243835,
0.4627731740474701,
-0.8155038356781006,
0.09122943878173828,
-0.48781535029411316,
0.2082277536392212,
-0.06082328408956528,
1.128096342086792,
1.2877923250198364,
0.7558377981185913,
-0.3190732002258301,
-0.8446569442749023,
0.25557368993759155,
-0.1556096076965332,
-0.6958494782447815,
-1.7885955572128296,
-0.3052981197834015,
0.17082178592681885,
0.5933625102043152,
-1.1116772890090942,
1.8696622848510742,
0.8560017347335815,
1.9921929836273193,
0.9572242498397827,
-0.3342181444168091,
1.4478574991226196,
0.06541766226291656,
1.9272236824035645,
-0.4427891969680786,
0.5949949622154236,
-0.39413365721702576,
-1.1338410377502441,
0.8701661825180054,
-0.3614889085292816,
-1.9595794677734375,
-0.7341879606246948,
-0.8264647722244263,
-0.17505481839179993,
-0.708142101764679,
0.8774099349975586,
-0.2663131654262543,
-1.4149501323699951,
0.11569773405790329,
-0.7542639970779419,
0.2199944108724594,
-1.2592239379882812,
0.3063918948173523,
0.7784298062324524,
-0.6639541983604431,
0.04141148552298546,
-0.3063095510005951,
-1.2594068050384521,
-0.5460323095321655,
0.4466667175292969,
1.9278122186660767,
-0.6600537300109863,
0.9300511479377747,
1.011794090270996,
-0.7280043363571167,
0.03813764452934265,
0.2915889322757721,
-0.3372534513473511,
0.7900884747505188,
-1.0482622385025024,
-0.39814725518226624,
1.2299141883850098,
-0.3695739805698395,
-0.7544583678245544,
1.4501296281814575,
0.7863385081291199,
-1.0509814023971558,
-0.20092853903770447,
-0.18119466304779053,
-0.876839280128479,
0.015529326163232327,
-1.569655179977417,
-0.12916986644268036,
0.4387114942073822,
-1.5323073863983154,
-0.4060429632663727,
-0.15828348696231842,
1.3243621587753296,
-0.13921552896499634,
1.479224443435669,
-0.33318212628364563,
-0.1262056529521942,
-0.3214600384235382,
-0.538142204284668,
0.1865719109773636,
-0.25583040714263916,
-0.5980302095413208,
0.17820009589195251,
-0.7133988738059998,
0.29234805703163147,
1.4261348247528076,
0.2827163338661194,
0.030307937413454056,
0.4866514205932617,
1.1270930767059326,
0.37554773688316345,
-0.09323905408382416,
-0.8659719228744507,
-1.5276507139205933,
1.985545039176941,
-1.3766818046569824,
1.9685890674591064,
0.796990156173706,
-0.12539328634738922,
-1.7223299741744995,
-1.943402647972107,
1.2971711158752441,
1.0976943969726562,
2.3299427032470703,
0.49259698390960693,
0.4547470510005951,
-0.7977319359779358,
-0.7149744033813477,
0.3336649239063263,
-0.9496043920516968,
-0.7331341505050659,
0.07010006904602051,
2.3565030097961426,
1.8225458860397339,
-0.4789726436138153,
-0.2311103343963623,
-0.9668517708778381,
1.3721799850463867,
-0.2531738877296448,
0.2692728638648987,
2.0086100101470947,
-0.25003552436828613,
-1.0128575563430786,
1.3398571014404297,
-2.37532639503479,
0.27889758348464966,
2.115629196166992,
0.20042608678340912,
0.11211490631103516,
-1.3850890398025513,
-0.6014786958694458,
-0.2301217019557953,
-0.38556089997291565,
-1.1824657917022705,
0.5414159893989563,
-0.2159890979528427,
-0.7475156188011169,
-1.3930753469467163,
0.13728395104408264,
-1.1351197957992554,
-1.7050246000289917,
0.23927702009677887,
2.012388229370117,
2.0520071983337402,
-0.7621761560440063,
1.5114890336990356,
-0.22967028617858887,
0.08344762027263641,
1.2601089477539062,
1.3046258687973022,
3.1649277210235596,
1.8914395570755005,
-1.3264226913452148,
0.6760744452476501,
-0.20314453542232513,
-0.5631694197654724,
1.185669183731079,
-1.104954719543457,
1.1327316761016846,
-0.21271631121635437,
-1.2313809394836426,
-1.2939273118972778,
0.9873712658882141,
0.5158125758171082,
0.025481365621089935,
-0.4924657642841339,
1.1772260665893555,
0.15745796263217926,
1.2910624742507935,
0.5986789464950562,
-0.3793202340602875,
0.6575230956077576,
-0.34905344247817993,
-0.5723183751106262,
1.5220750570297241,
0.23512719571590424,
-1.4771002531051636,
-2.314833641052246,
-0.24035222828388214,
-0.989816427230835,
0.05458572134375572,
-0.6313184499740601,
-1.0164166688919067,
1.5855330228805542,
0.41652029752731323,
-1.204595685005188,
-0.32203954458236694,
-0.26826635003089905,
-0.6159901022911072,
2.6673202514648438,
-1.296557068824768,
-0.1959097683429718,
-0.9832245111465454,
-0.6201346516609192,
1.646789789199829,
-1.3081531524658203,
-0.2536858916282654,
-1.0449162721633911,
-0.5633188486099243,
-1.204432725906372,
-0.4156692326068878,
0.00017940066754817963,
-1.0350329875946045,
0.8815065622329712,
0.20566467940807343,
-1.2380343675613403,
-0.27396827936172485,
-0.8543654084205627,
0.9676741361618042,
-0.17954851686954498,
0.19348452985286713,
1.8297902345657349,
0.3837759792804718,
-0.4612348675727844,
0.702591061592102,
1.1624724864959717,
0.6379249095916748,
-0.6234326958656311,
0.1226920410990715,
-0.6428767442703247,
0.4060932397842407,
-1.344262719154358,
0.22438135743141174,
-2.9140398502349854,
0.6981197595596313,
-0.1339835375547409,
-0.12728069722652435,
-0.10684055835008621,
-1.3465044498443604,
1.0124449729919434,
2.5713601112365723,
-1.2336301803588867,
0.5177386403083801,
0.36035025119781494,
1.2439528703689575,
-1.6612108945846558,
0.24558381736278534,
-0.45589688420295715,
2.098037004470825,
0.1471700370311737,
1.1919119358062744,
-0.4455353319644928,
-2.262268304824829,
0.6005784273147583,
-1.1980524063110352,
-1.1207102537155151,
0.7814950942993164,
-0.8190786838531494,
0.1668454110622406,
-1.3703157901763916,
-0.18261797726154327,
-0.8361983895301819,
-1.1715487241744995,
0.6985576748847961,
0.06842677295207977,
0.42135754227638245,
-0.6395373344421387,
0.336136132478714,
-2.154599905014038,
-1.3874353170394897,
-0.27940091490745544,
-0.9733956456184387,
0.4419567883014679,
-0.41470077633857727,
0.6238090395927429,
-0.16768954694271088,
0.037147946655750275,
0.2500651776790619,
1.4804905652999878,
3.4421114921569824,
0.17771697044372559,
0.24483223259449005,
-0.19648662209510803,
-0.9977810978889465,
1.5157930850982666,
0.8317613005638123,
-0.17600484192371368,
-0.6123067140579224,
-1.0189603567123413,
1.2684961557388306,
2.037594795227051,
1.0326206684112549,
0.1027127206325531,
-0.7947538495063782,
-0.7730505466461182,
-0.0384259968996048,
0.14180199801921844,
0.5665819048881531,
0.9340365529060364,
0.03249649703502655,
0.06129974499344826,
1.2876309156417847,
1.1718088388442993,
-0.3541872203350067,
0.38223031163215637,
-0.8588184118270874,
-0.4467441737651825,
0.4121202230453491,
0.2608020305633545,
0.007466488517820835,
0.3485439419746399,
-1.0343236923217773,
-0.20120930671691895,
-0.3594076633453369,
-0.82073974609375,
-0.7539194822311401,
-0.39656180143356323,
-0.3974001407623291,
1.631977915763855,
0.0869210883975029,
-0.5356523394584656,
0.03382260724902153,
-0.6886394023895264,
-0.08983830362558365,
-1.1240814924240112,
0.19238854944705963,
-0.13390682637691498,
-0.11804307997226715,
-0.09411947429180145,
1.5987719297409058,
-0.9060934782028198,
-2.1414005756378174,
0.20714020729064941,
0.23293840885162354,
-0.3610650897026062,
0.1696798950433731,
1.7081104516983032,
0.49887579679489136,
1.4110337495803833,
1.3703587055206299,
1.0174821615219116,
-0.6648986339569092,
-1.255874514579773,
0.7305397987365723,
0.8711697459220886,
-1.3915215730667114,
0.8875351548194885,
-0.055887576192617416,
-0.5125802755355835,
0.6095615029335022,
1.2924888134002686,
0.47322407364845276,
-2.0349347591400146,
0.9116463661193848,
-0.9786221981048584,
0.7941464781761169,
0.7807414531707764,
0.7714515328407288,
0.2673463225364685,
0.8266734480857849,
-1.1877694129943848,
-1.2073613405227661,
-0.686370849609375,
-0.7503151893615723,
1.9003506898880005,
-0.3006671071052551,
0.5845129489898682,
-0.09481355547904968,
-1.274228811264038,
-0.18531543016433716,
0.7698746919631958,
0.3985372483730316,
-0.4298521876335144,
0.8468557596206665,
-0.6480663418769836,
-0.9938225746154785,
-1.3048819303512573,
-0.45272502303123474,
-1.086867332458496,
-0.908661961555481,
0.981162965297699,
0.7983056306838989,
0.4321610927581787,
1.8837265968322754,
0.6655076146125793,
0.33069372177124023,
-2.5772812366485596,
0.9012133479118347,
0.3899919092655182,
-0.1164841279387474,
0.8133838772773743,
0.3097606897354126,
1.0903209447860718,
0.018509801477193832,
0.6414077281951904,
-2.384675979614258,
2.2772269248962402,
-0.21570292115211487,
0.6263805031776428,
-0.021933358162641525,
-0.1754019558429718,
1.153302550315857,
0.5683140158653259,
0.5449026823043823,
-1.1305207014083862,
0.7943546772003174,
-0.6072681546211243,
1.1672158241271973,
0.8444135785102844,
-0.9138373732566833,
0.0844084694981575,
1.4776599407196045,
0.4338153004646301,
-0.5898798108100891,
-0.9695457816123962,
-0.964612603187561,
0.9758743643760681,
1.7192661762237549,
-0.062050238251686096,
-0.028716813772916794,
0.9103127121925354,
0.6701670289039612,
-1.2489792108535767,
0.03616589680314064,
-0.6582447290420532,
-0.6857039928436279,
1.6809818744659424,
2.042865753173828,
-0.13356338441371918,
-0.2495882213115692,
-0.7972837686538696,
-1.3103824853897095,
0.7620494961738586,
-0.024564595893025398,
0.014163236133754253,
0.701738178730011,
-0.6504037976264954,
1.1040027141571045,
0.7207214832305908,
0.9829180836677551,
0.07911467552185059,
0.23658236861228943,
0.40658625960350037,
-0.3819456398487091,
-1.1238608360290527,
-0.2651198208332062,
-1.155806541442871,
-2.5206730365753174,
0.3582878112792969,
-0.24617315828800201,
-1.444240927696228,
0.04137367382645607,
-1.0220611095428467,
0.8658166527748108,
-0.596747875213623,
-1.1690682172775269,
-1.4858847856521606,
0.27549323439598083,
-0.124195896089077,
0.8688755631446838,
-1.6494537591934204,
-0.16310611367225647,
1.2179878950119019,
0.8136535286903381,
-0.6952535510063171,
0.9075143337249756,
0.19994531571865082,
0.997154176235199,
0.8245577216148376,
-0.3658524453639984,
0.5860274434089661,
-0.027293618768453598,
-1.3324542045593262,
0.436606228351593,
1.2201216220855713,
0.13848941028118134,
1.3918094635009766,
-0.5203527212142944,
0.04129275307059288,
0.40585628151893616,
-0.5345935821533203,
-0.5368354916572571,
-0.46970221400260925,
0.7351785898208618,
-0.027869444340467453,
-0.9442132115364075,
-0.04478848725557327,
-0.07321973145008087,
-0.32421934604644775,
0.19791679084300995,
-1.4980450868606567,
-0.1759658008813858,
-0.3550759553909302,
-0.5446197390556335,
-1.3070662021636963,
0.0007366007193922997,
1.3676881790161133,
-0.7312538027763367,
-0.23115184903144836,
0.4706878364086151,
0.3806515634059906,
0.5305399894714355,
0.6248136758804321,
-0.7334347367286682,
-0.24560286104679108,
-0.32628628611564636,
-0.3330787420272827,
0.30618664622306824,
1.3299474716186523,
-0.05256514996290207,
-0.9271502494812012,
0.670837938785553,
-0.35318487882614136,
0.12045691162347794,
1.944673776626587,
0.06084105744957924,
-0.7390353679656982,
0.31206175684928894,
-0.7688798904418945,
1.8656044006347656,
1.777951717376709,
1.2954565286636353,
-0.034962188452482224,
-1.0028449296951294,
0.5729559063911438,
-0.27177712321281433,
-0.31935566663742065,
0.9061789512634277,
0.38126838207244873,
-0.2839735448360443,
-1.4187432527542114,
0.7277187705039978,
1.1800577640533447,
-0.7450852990150452,
-0.8035045862197876,
0.09513155370950699,
-0.8989228010177612,
1.2059745788574219,
0.5763342380523682,
0.33297741413116455,
0.22320586442947388,
1.6344531774520874,
0.7567206025123596,
-0.4538254737854004,
0.5294429063796997,
0.5833489298820496,
-0.21448944509029388,
-2.1158618927001953,
-1.1107107400894165,
0.32288193702697754,
-0.4195615351200104,
-1.6125329732894897,
1.3533644676208496,
-1.1596659421920776,
-0.9913483262062073,
0.5293236970901489,
0.07257653772830963,
1.4167755842208862,
0.3478182256221771,
1.6835576295852661,
2.143578290939331,
0.9611176252365112,
0.43803057074546814,
1.2517995834350586,
-0.2156001329421997,
-0.4492306709289551,
1.8154386281967163,
-0.45114201307296753,
0.4094456732273102,
1.0898773670196533,
-0.410121351480484,
-1.1495558023452759,
-0.7983534336090088,
-1.161502480506897,
-0.6639454960823059,
1.1521958112716675,
0.04759562388062477,
-1.070610761642456,
0.30708155035972595,
1.5930784940719604,
0.1295613944530487,
-0.20851828157901764,
0.6972835659980774,
0.4213953912258148,
-0.7585194706916809,
-0.030215326696634293,
-0.8819595575332642,
0.5650939345359802,
-0.18648573756217957,
-0.33454522490501404,
0.36605653166770935,
0.49442100524902344,
1.328126072883606,
-0.0774458572268486,
0.15736769139766693,
1.1003525257110596,
-1.429910659790039,
1.455661654472351,
-0.6468491554260254,
0.3054923415184021,
-2.373232126235962,
1.4213669300079346,
-0.8225035071372986,
2.0158185958862305,
-2.5427181720733643,
0.40359070897102356,
-0.5925984382629395,
-0.48344752192497253,
0.2905476987361908,
-0.3779946267604828,
0.02229512482881546,
-0.15146315097808838,
-1.0800471305847168,
-0.07782576978206635,
-0.7412011623382568,
0.6089487075805664,
1.2082841396331787,
1.3640718460083008,
-1.0785326957702637,
-0.25073304772377014,
-1.69828200340271,
-0.15519782900810242,
-0.7357625961303711,
0.3411356508731842,
-1.9539389610290527,
-0.17517445981502533,
-2.0240142345428467,
-2.3079681396484375,
-1.2734472751617432,
-0.8591833114624023,
1.0265870094299316,
0.17389324307441711,
-0.8874174952507019,
1.2385292053222656,
-0.3261457085609436,
-1.8157798051834106,
1.1615747213363647,
-2.2166244983673096
] |
https://github.com/huggingface/datasets/issues/5351 | Do we need to implement `_prepare_split`? | Thanks so much @mariosasko for the fast response! I've been referencing [this page in the docs](https://huggingface.co/docs/datasets/v2.4.0/en/about_dataset_load) because it it pretty comprehensive in terms of what we have to do and I figured since we subclass the `BuilderConfig` the same pattern would hold, but I've also seen the page with those sub-classed builders as well, so that fills in a knowledge gap for me. | ### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 377 | 63 | Do we need to implement `_prepare_split`?
### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
Thanks so much @mariosasko for the fast response! I've been referencing [this page in the docs](https://huggingface.co/docs/datasets/v2.4.0/en/about_dataset_load) because it it pretty comprehensive in terms of what we have to do and I figured since we subclass the `BuilderConfig` the same pattern would hold, but I've also seen the page with those sub-classed builders as well, so that fills in a knowledge gap for me. | [
-1.1564629077911377,
-0.9498602747917175,
-0.663374125957489,
1.4442986249923706,
-0.10583754628896713,
-1.330580234527588,
0.14666317403316498,
-1.096006155014038,
1.5908504724502563,
-0.7755786180496216,
0.2561314105987549,
-1.64324951171875,
0.0009109014645218849,
-0.5524017810821533,
-0.7539600729942322,
-0.8674906492233276,
-0.40539678931236267,
-0.8347030878067017,
1.090440034866333,
2.49111270904541,
1.3073545694351196,
-1.3592675924301147,
2.6914243698120117,
0.6253315806388855,
-0.25068217515945435,
-1.0284806489944458,
0.5118100047111511,
-0.08683808147907257,
-1.244111180305481,
-0.44190430641174316,
-0.8866837620735168,
-0.02659996971487999,
-0.5436497926712036,
-0.44842851161956787,
0.020160146057605743,
0.507144033908844,
-0.2853304445743561,
-0.3522126376628876,
-0.5469552278518677,
-0.7873325943946838,
0.5138752460479736,
-0.39047810435295105,
0.9771408438682556,
-0.2916063368320465,
1.7428398132324219,
-0.5489139556884766,
0.5562779903411865,
0.7052303552627563,
1.323817491531372,
0.2096545547246933,
0.04410451278090477,
0.274929404258728,
0.3526633381843567,
-0.013621739111840725,
0.5801300406455994,
1.1732457876205444,
0.6227781176567078,
0.5495607852935791,
0.6936177611351013,
-2.2312402725219727,
1.2467851638793945,
-0.8898006677627563,
0.25347813963890076,
1.3205538988113403,
-0.8416476845741272,
0.2985175848007202,
-1.7818101644515991,
-0.023926209658384323,
0.626913845539093,
-2.219168186187744,
0.2871083915233612,
-1.2484748363494873,
-0.4404938817024231,
0.9812764525413513,
0.3844491243362427,
-1.1995611190795898,
0.17814722657203674,
-0.4682336151599884,
1.0708445310592651,
0.4985090494155884,
1.0634267330169678,
-1.6850014925003052,
-0.07276272028684616,
-0.12144693732261658,
0.09427030384540558,
-1.2751214504241943,
-1.616385817527771,
0.49936777353286743,
0.6314769387245178,
0.601296067237854,
-0.12011171132326126,
1.0285768508911133,
-1.0327154397964478,
0.7683276534080505,
-0.9833645820617676,
-1.7085256576538086,
-1.3746590614318848,
-2.381073474884033,
-2.2604963779449463,
0.7647416591644287,
-0.5077292323112488,
-0.505199134349823,
2.139141321182251,
-0.9762452244758606,
-1.7382080554962158,
1.0784868001937866,
0.2431776374578476,
0.06848800927400589,
2.3521018028259277,
0.16266687214374542,
-0.7607546448707581,
0.5209259390830994,
-0.7144909501075745,
0.7387741804122925,
-0.39588698744773865,
1.252274990081787,
0.4191671311855316,
-1.0772514343261719,
1.5892210006713867,
-0.40179985761642456,
0.6249086856842041,
-0.7159730195999146,
-0.5217868089675903,
-0.7206072807312012,
0.3132014870643616,
1.8762284517288208,
-0.33961737155914307,
1.5194368362426758,
-0.32035568356513977,
-1.5336531400680542,
-1.5990382432937622,
0.8680450320243835,
0.4627731740474701,
-0.8155038356781006,
0.09122943878173828,
-0.48781535029411316,
0.2082277536392212,
-0.06082328408956528,
1.128096342086792,
1.2877923250198364,
0.7558377981185913,
-0.3190732002258301,
-0.8446569442749023,
0.25557368993759155,
-0.1556096076965332,
-0.6958494782447815,
-1.7885955572128296,
-0.3052981197834015,
0.17082178592681885,
0.5933625102043152,
-1.1116772890090942,
1.8696622848510742,
0.8560017347335815,
1.9921929836273193,
0.9572242498397827,
-0.3342181444168091,
1.4478574991226196,
0.06541766226291656,
1.9272236824035645,
-0.4427891969680786,
0.5949949622154236,
-0.39413365721702576,
-1.1338410377502441,
0.8701661825180054,
-0.3614889085292816,
-1.9595794677734375,
-0.7341879606246948,
-0.8264647722244263,
-0.17505481839179993,
-0.708142101764679,
0.8774099349975586,
-0.2663131654262543,
-1.4149501323699951,
0.11569773405790329,
-0.7542639970779419,
0.2199944108724594,
-1.2592239379882812,
0.3063918948173523,
0.7784298062324524,
-0.6639541983604431,
0.04141148552298546,
-0.3063095510005951,
-1.2594068050384521,
-0.5460323095321655,
0.4466667175292969,
1.9278122186660767,
-0.6600537300109863,
0.9300511479377747,
1.011794090270996,
-0.7280043363571167,
0.03813764452934265,
0.2915889322757721,
-0.3372534513473511,
0.7900884747505188,
-1.0482622385025024,
-0.39814725518226624,
1.2299141883850098,
-0.3695739805698395,
-0.7544583678245544,
1.4501296281814575,
0.7863385081291199,
-1.0509814023971558,
-0.20092853903770447,
-0.18119466304779053,
-0.876839280128479,
0.015529326163232327,
-1.569655179977417,
-0.12916986644268036,
0.4387114942073822,
-1.5323073863983154,
-0.4060429632663727,
-0.15828348696231842,
1.3243621587753296,
-0.13921552896499634,
1.479224443435669,
-0.33318212628364563,
-0.1262056529521942,
-0.3214600384235382,
-0.538142204284668,
0.1865719109773636,
-0.25583040714263916,
-0.5980302095413208,
0.17820009589195251,
-0.7133988738059998,
0.29234805703163147,
1.4261348247528076,
0.2827163338661194,
0.030307937413454056,
0.4866514205932617,
1.1270930767059326,
0.37554773688316345,
-0.09323905408382416,
-0.8659719228744507,
-1.5276507139205933,
1.985545039176941,
-1.3766818046569824,
1.9685890674591064,
0.796990156173706,
-0.12539328634738922,
-1.7223299741744995,
-1.943402647972107,
1.2971711158752441,
1.0976943969726562,
2.3299427032470703,
0.49259698390960693,
0.4547470510005951,
-0.7977319359779358,
-0.7149744033813477,
0.3336649239063263,
-0.9496043920516968,
-0.7331341505050659,
0.07010006904602051,
2.3565030097961426,
1.8225458860397339,
-0.4789726436138153,
-0.2311103343963623,
-0.9668517708778381,
1.3721799850463867,
-0.2531738877296448,
0.2692728638648987,
2.0086100101470947,
-0.25003552436828613,
-1.0128575563430786,
1.3398571014404297,
-2.37532639503479,
0.27889758348464966,
2.115629196166992,
0.20042608678340912,
0.11211490631103516,
-1.3850890398025513,
-0.6014786958694458,
-0.2301217019557953,
-0.38556089997291565,
-1.1824657917022705,
0.5414159893989563,
-0.2159890979528427,
-0.7475156188011169,
-1.3930753469467163,
0.13728395104408264,
-1.1351197957992554,
-1.7050246000289917,
0.23927702009677887,
2.012388229370117,
2.0520071983337402,
-0.7621761560440063,
1.5114890336990356,
-0.22967028617858887,
0.08344762027263641,
1.2601089477539062,
1.3046258687973022,
3.1649277210235596,
1.8914395570755005,
-1.3264226913452148,
0.6760744452476501,
-0.20314453542232513,
-0.5631694197654724,
1.185669183731079,
-1.104954719543457,
1.1327316761016846,
-0.21271631121635437,
-1.2313809394836426,
-1.2939273118972778,
0.9873712658882141,
0.5158125758171082,
0.025481365621089935,
-0.4924657642841339,
1.1772260665893555,
0.15745796263217926,
1.2910624742507935,
0.5986789464950562,
-0.3793202340602875,
0.6575230956077576,
-0.34905344247817993,
-0.5723183751106262,
1.5220750570297241,
0.23512719571590424,
-1.4771002531051636,
-2.314833641052246,
-0.24035222828388214,
-0.989816427230835,
0.05458572134375572,
-0.6313184499740601,
-1.0164166688919067,
1.5855330228805542,
0.41652029752731323,
-1.204595685005188,
-0.32203954458236694,
-0.26826635003089905,
-0.6159901022911072,
2.6673202514648438,
-1.296557068824768,
-0.1959097683429718,
-0.9832245111465454,
-0.6201346516609192,
1.646789789199829,
-1.3081531524658203,
-0.2536858916282654,
-1.0449162721633911,
-0.5633188486099243,
-1.204432725906372,
-0.4156692326068878,
0.00017940066754817963,
-1.0350329875946045,
0.8815065622329712,
0.20566467940807343,
-1.2380343675613403,
-0.27396827936172485,
-0.8543654084205627,
0.9676741361618042,
-0.17954851686954498,
0.19348452985286713,
1.8297902345657349,
0.3837759792804718,
-0.4612348675727844,
0.702591061592102,
1.1624724864959717,
0.6379249095916748,
-0.6234326958656311,
0.1226920410990715,
-0.6428767442703247,
0.4060932397842407,
-1.344262719154358,
0.22438135743141174,
-2.9140398502349854,
0.6981197595596313,
-0.1339835375547409,
-0.12728069722652435,
-0.10684055835008621,
-1.3465044498443604,
1.0124449729919434,
2.5713601112365723,
-1.2336301803588867,
0.5177386403083801,
0.36035025119781494,
1.2439528703689575,
-1.6612108945846558,
0.24558381736278534,
-0.45589688420295715,
2.098037004470825,
0.1471700370311737,
1.1919119358062744,
-0.4455353319644928,
-2.262268304824829,
0.6005784273147583,
-1.1980524063110352,
-1.1207102537155151,
0.7814950942993164,
-0.8190786838531494,
0.1668454110622406,
-1.3703157901763916,
-0.18261797726154327,
-0.8361983895301819,
-1.1715487241744995,
0.6985576748847961,
0.06842677295207977,
0.42135754227638245,
-0.6395373344421387,
0.336136132478714,
-2.154599905014038,
-1.3874353170394897,
-0.27940091490745544,
-0.9733956456184387,
0.4419567883014679,
-0.41470077633857727,
0.6238090395927429,
-0.16768954694271088,
0.037147946655750275,
0.2500651776790619,
1.4804905652999878,
3.4421114921569824,
0.17771697044372559,
0.24483223259449005,
-0.19648662209510803,
-0.9977810978889465,
1.5157930850982666,
0.8317613005638123,
-0.17600484192371368,
-0.6123067140579224,
-1.0189603567123413,
1.2684961557388306,
2.037594795227051,
1.0326206684112549,
0.1027127206325531,
-0.7947538495063782,
-0.7730505466461182,
-0.0384259968996048,
0.14180199801921844,
0.5665819048881531,
0.9340365529060364,
0.03249649703502655,
0.06129974499344826,
1.2876309156417847,
1.1718088388442993,
-0.3541872203350067,
0.38223031163215637,
-0.8588184118270874,
-0.4467441737651825,
0.4121202230453491,
0.2608020305633545,
0.007466488517820835,
0.3485439419746399,
-1.0343236923217773,
-0.20120930671691895,
-0.3594076633453369,
-0.82073974609375,
-0.7539194822311401,
-0.39656180143356323,
-0.3974001407623291,
1.631977915763855,
0.0869210883975029,
-0.5356523394584656,
0.03382260724902153,
-0.6886394023895264,
-0.08983830362558365,
-1.1240814924240112,
0.19238854944705963,
-0.13390682637691498,
-0.11804307997226715,
-0.09411947429180145,
1.5987719297409058,
-0.9060934782028198,
-2.1414005756378174,
0.20714020729064941,
0.23293840885162354,
-0.3610650897026062,
0.1696798950433731,
1.7081104516983032,
0.49887579679489136,
1.4110337495803833,
1.3703587055206299,
1.0174821615219116,
-0.6648986339569092,
-1.255874514579773,
0.7305397987365723,
0.8711697459220886,
-1.3915215730667114,
0.8875351548194885,
-0.055887576192617416,
-0.5125802755355835,
0.6095615029335022,
1.2924888134002686,
0.47322407364845276,
-2.0349347591400146,
0.9116463661193848,
-0.9786221981048584,
0.7941464781761169,
0.7807414531707764,
0.7714515328407288,
0.2673463225364685,
0.8266734480857849,
-1.1877694129943848,
-1.2073613405227661,
-0.686370849609375,
-0.7503151893615723,
1.9003506898880005,
-0.3006671071052551,
0.5845129489898682,
-0.09481355547904968,
-1.274228811264038,
-0.18531543016433716,
0.7698746919631958,
0.3985372483730316,
-0.4298521876335144,
0.8468557596206665,
-0.6480663418769836,
-0.9938225746154785,
-1.3048819303512573,
-0.45272502303123474,
-1.086867332458496,
-0.908661961555481,
0.981162965297699,
0.7983056306838989,
0.4321610927581787,
1.8837265968322754,
0.6655076146125793,
0.33069372177124023,
-2.5772812366485596,
0.9012133479118347,
0.3899919092655182,
-0.1164841279387474,
0.8133838772773743,
0.3097606897354126,
1.0903209447860718,
0.018509801477193832,
0.6414077281951904,
-2.384675979614258,
2.2772269248962402,
-0.21570292115211487,
0.6263805031776428,
-0.021933358162641525,
-0.1754019558429718,
1.153302550315857,
0.5683140158653259,
0.5449026823043823,
-1.1305207014083862,
0.7943546772003174,
-0.6072681546211243,
1.1672158241271973,
0.8444135785102844,
-0.9138373732566833,
0.0844084694981575,
1.4776599407196045,
0.4338153004646301,
-0.5898798108100891,
-0.9695457816123962,
-0.964612603187561,
0.9758743643760681,
1.7192661762237549,
-0.062050238251686096,
-0.028716813772916794,
0.9103127121925354,
0.6701670289039612,
-1.2489792108535767,
0.03616589680314064,
-0.6582447290420532,
-0.6857039928436279,
1.6809818744659424,
2.042865753173828,
-0.13356338441371918,
-0.2495882213115692,
-0.7972837686538696,
-1.3103824853897095,
0.7620494961738586,
-0.024564595893025398,
0.014163236133754253,
0.701738178730011,
-0.6504037976264954,
1.1040027141571045,
0.7207214832305908,
0.9829180836677551,
0.07911467552185059,
0.23658236861228943,
0.40658625960350037,
-0.3819456398487091,
-1.1238608360290527,
-0.2651198208332062,
-1.155806541442871,
-2.5206730365753174,
0.3582878112792969,
-0.24617315828800201,
-1.444240927696228,
0.04137367382645607,
-1.0220611095428467,
0.8658166527748108,
-0.596747875213623,
-1.1690682172775269,
-1.4858847856521606,
0.27549323439598083,
-0.124195896089077,
0.8688755631446838,
-1.6494537591934204,
-0.16310611367225647,
1.2179878950119019,
0.8136535286903381,
-0.6952535510063171,
0.9075143337249756,
0.19994531571865082,
0.997154176235199,
0.8245577216148376,
-0.3658524453639984,
0.5860274434089661,
-0.027293618768453598,
-1.3324542045593262,
0.436606228351593,
1.2201216220855713,
0.13848941028118134,
1.3918094635009766,
-0.5203527212142944,
0.04129275307059288,
0.40585628151893616,
-0.5345935821533203,
-0.5368354916572571,
-0.46970221400260925,
0.7351785898208618,
-0.027869444340467453,
-0.9442132115364075,
-0.04478848725557327,
-0.07321973145008087,
-0.32421934604644775,
0.19791679084300995,
-1.4980450868606567,
-0.1759658008813858,
-0.3550759553909302,
-0.5446197390556335,
-1.3070662021636963,
0.0007366007193922997,
1.3676881790161133,
-0.7312538027763367,
-0.23115184903144836,
0.4706878364086151,
0.3806515634059906,
0.5305399894714355,
0.6248136758804321,
-0.7334347367286682,
-0.24560286104679108,
-0.32628628611564636,
-0.3330787420272827,
0.30618664622306824,
1.3299474716186523,
-0.05256514996290207,
-0.9271502494812012,
0.670837938785553,
-0.35318487882614136,
0.12045691162347794,
1.944673776626587,
0.06084105744957924,
-0.7390353679656982,
0.31206175684928894,
-0.7688798904418945,
1.8656044006347656,
1.777951717376709,
1.2954565286636353,
-0.034962188452482224,
-1.0028449296951294,
0.5729559063911438,
-0.27177712321281433,
-0.31935566663742065,
0.9061789512634277,
0.38126838207244873,
-0.2839735448360443,
-1.4187432527542114,
0.7277187705039978,
1.1800577640533447,
-0.7450852990150452,
-0.8035045862197876,
0.09513155370950699,
-0.8989228010177612,
1.2059745788574219,
0.5763342380523682,
0.33297741413116455,
0.22320586442947388,
1.6344531774520874,
0.7567206025123596,
-0.4538254737854004,
0.5294429063796997,
0.5833489298820496,
-0.21448944509029388,
-2.1158618927001953,
-1.1107107400894165,
0.32288193702697754,
-0.4195615351200104,
-1.6125329732894897,
1.3533644676208496,
-1.1596659421920776,
-0.9913483262062073,
0.5293236970901489,
0.07257653772830963,
1.4167755842208862,
0.3478182256221771,
1.6835576295852661,
2.143578290939331,
0.9611176252365112,
0.43803057074546814,
1.2517995834350586,
-0.2156001329421997,
-0.4492306709289551,
1.8154386281967163,
-0.45114201307296753,
0.4094456732273102,
1.0898773670196533,
-0.410121351480484,
-1.1495558023452759,
-0.7983534336090088,
-1.161502480506897,
-0.6639454960823059,
1.1521958112716675,
0.04759562388062477,
-1.070610761642456,
0.30708155035972595,
1.5930784940719604,
0.1295613944530487,
-0.20851828157901764,
0.6972835659980774,
0.4213953912258148,
-0.7585194706916809,
-0.030215326696634293,
-0.8819595575332642,
0.5650939345359802,
-0.18648573756217957,
-0.33454522490501404,
0.36605653166770935,
0.49442100524902344,
1.328126072883606,
-0.0774458572268486,
0.15736769139766693,
1.1003525257110596,
-1.429910659790039,
1.455661654472351,
-0.6468491554260254,
0.3054923415184021,
-2.373232126235962,
1.4213669300079346,
-0.8225035071372986,
2.0158185958862305,
-2.5427181720733643,
0.40359070897102356,
-0.5925984382629395,
-0.48344752192497253,
0.2905476987361908,
-0.3779946267604828,
0.02229512482881546,
-0.15146315097808838,
-1.0800471305847168,
-0.07782576978206635,
-0.7412011623382568,
0.6089487075805664,
1.2082841396331787,
1.3640718460083008,
-1.0785326957702637,
-0.25073304772377014,
-1.69828200340271,
-0.15519782900810242,
-0.7357625961303711,
0.3411356508731842,
-1.9539389610290527,
-0.17517445981502533,
-2.0240142345428467,
-2.3079681396484375,
-1.2734472751617432,
-0.8591833114624023,
1.0265870094299316,
0.17389324307441711,
-0.8874174952507019,
1.2385292053222656,
-0.3261457085609436,
-1.8157798051834106,
1.1615747213363647,
-2.2166244983673096
] |
https://github.com/huggingface/datasets/issues/5351 | Do we need to implement `_prepare_split`? | cc @stevhliu who may have some ideas on how to improve this part of the docs. | ### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 377 | 16 | Do we need to implement `_prepare_split`?
### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
cc @stevhliu who may have some ideas on how to improve this part of the docs. | [
-1.1564629077911377,
-0.9498602747917175,
-0.663374125957489,
1.4442986249923706,
-0.10583754628896713,
-1.330580234527588,
0.14666317403316498,
-1.096006155014038,
1.5908504724502563,
-0.7755786180496216,
0.2561314105987549,
-1.64324951171875,
0.0009109014645218849,
-0.5524017810821533,
-0.7539600729942322,
-0.8674906492233276,
-0.40539678931236267,
-0.8347030878067017,
1.090440034866333,
2.49111270904541,
1.3073545694351196,
-1.3592675924301147,
2.6914243698120117,
0.6253315806388855,
-0.25068217515945435,
-1.0284806489944458,
0.5118100047111511,
-0.08683808147907257,
-1.244111180305481,
-0.44190430641174316,
-0.8866837620735168,
-0.02659996971487999,
-0.5436497926712036,
-0.44842851161956787,
0.020160146057605743,
0.507144033908844,
-0.2853304445743561,
-0.3522126376628876,
-0.5469552278518677,
-0.7873325943946838,
0.5138752460479736,
-0.39047810435295105,
0.9771408438682556,
-0.2916063368320465,
1.7428398132324219,
-0.5489139556884766,
0.5562779903411865,
0.7052303552627563,
1.323817491531372,
0.2096545547246933,
0.04410451278090477,
0.274929404258728,
0.3526633381843567,
-0.013621739111840725,
0.5801300406455994,
1.1732457876205444,
0.6227781176567078,
0.5495607852935791,
0.6936177611351013,
-2.2312402725219727,
1.2467851638793945,
-0.8898006677627563,
0.25347813963890076,
1.3205538988113403,
-0.8416476845741272,
0.2985175848007202,
-1.7818101644515991,
-0.023926209658384323,
0.626913845539093,
-2.219168186187744,
0.2871083915233612,
-1.2484748363494873,
-0.4404938817024231,
0.9812764525413513,
0.3844491243362427,
-1.1995611190795898,
0.17814722657203674,
-0.4682336151599884,
1.0708445310592651,
0.4985090494155884,
1.0634267330169678,
-1.6850014925003052,
-0.07276272028684616,
-0.12144693732261658,
0.09427030384540558,
-1.2751214504241943,
-1.616385817527771,
0.49936777353286743,
0.6314769387245178,
0.601296067237854,
-0.12011171132326126,
1.0285768508911133,
-1.0327154397964478,
0.7683276534080505,
-0.9833645820617676,
-1.7085256576538086,
-1.3746590614318848,
-2.381073474884033,
-2.2604963779449463,
0.7647416591644287,
-0.5077292323112488,
-0.505199134349823,
2.139141321182251,
-0.9762452244758606,
-1.7382080554962158,
1.0784868001937866,
0.2431776374578476,
0.06848800927400589,
2.3521018028259277,
0.16266687214374542,
-0.7607546448707581,
0.5209259390830994,
-0.7144909501075745,
0.7387741804122925,
-0.39588698744773865,
1.252274990081787,
0.4191671311855316,
-1.0772514343261719,
1.5892210006713867,
-0.40179985761642456,
0.6249086856842041,
-0.7159730195999146,
-0.5217868089675903,
-0.7206072807312012,
0.3132014870643616,
1.8762284517288208,
-0.33961737155914307,
1.5194368362426758,
-0.32035568356513977,
-1.5336531400680542,
-1.5990382432937622,
0.8680450320243835,
0.4627731740474701,
-0.8155038356781006,
0.09122943878173828,
-0.48781535029411316,
0.2082277536392212,
-0.06082328408956528,
1.128096342086792,
1.2877923250198364,
0.7558377981185913,
-0.3190732002258301,
-0.8446569442749023,
0.25557368993759155,
-0.1556096076965332,
-0.6958494782447815,
-1.7885955572128296,
-0.3052981197834015,
0.17082178592681885,
0.5933625102043152,
-1.1116772890090942,
1.8696622848510742,
0.8560017347335815,
1.9921929836273193,
0.9572242498397827,
-0.3342181444168091,
1.4478574991226196,
0.06541766226291656,
1.9272236824035645,
-0.4427891969680786,
0.5949949622154236,
-0.39413365721702576,
-1.1338410377502441,
0.8701661825180054,
-0.3614889085292816,
-1.9595794677734375,
-0.7341879606246948,
-0.8264647722244263,
-0.17505481839179993,
-0.708142101764679,
0.8774099349975586,
-0.2663131654262543,
-1.4149501323699951,
0.11569773405790329,
-0.7542639970779419,
0.2199944108724594,
-1.2592239379882812,
0.3063918948173523,
0.7784298062324524,
-0.6639541983604431,
0.04141148552298546,
-0.3063095510005951,
-1.2594068050384521,
-0.5460323095321655,
0.4466667175292969,
1.9278122186660767,
-0.6600537300109863,
0.9300511479377747,
1.011794090270996,
-0.7280043363571167,
0.03813764452934265,
0.2915889322757721,
-0.3372534513473511,
0.7900884747505188,
-1.0482622385025024,
-0.39814725518226624,
1.2299141883850098,
-0.3695739805698395,
-0.7544583678245544,
1.4501296281814575,
0.7863385081291199,
-1.0509814023971558,
-0.20092853903770447,
-0.18119466304779053,
-0.876839280128479,
0.015529326163232327,
-1.569655179977417,
-0.12916986644268036,
0.4387114942073822,
-1.5323073863983154,
-0.4060429632663727,
-0.15828348696231842,
1.3243621587753296,
-0.13921552896499634,
1.479224443435669,
-0.33318212628364563,
-0.1262056529521942,
-0.3214600384235382,
-0.538142204284668,
0.1865719109773636,
-0.25583040714263916,
-0.5980302095413208,
0.17820009589195251,
-0.7133988738059998,
0.29234805703163147,
1.4261348247528076,
0.2827163338661194,
0.030307937413454056,
0.4866514205932617,
1.1270930767059326,
0.37554773688316345,
-0.09323905408382416,
-0.8659719228744507,
-1.5276507139205933,
1.985545039176941,
-1.3766818046569824,
1.9685890674591064,
0.796990156173706,
-0.12539328634738922,
-1.7223299741744995,
-1.943402647972107,
1.2971711158752441,
1.0976943969726562,
2.3299427032470703,
0.49259698390960693,
0.4547470510005951,
-0.7977319359779358,
-0.7149744033813477,
0.3336649239063263,
-0.9496043920516968,
-0.7331341505050659,
0.07010006904602051,
2.3565030097961426,
1.8225458860397339,
-0.4789726436138153,
-0.2311103343963623,
-0.9668517708778381,
1.3721799850463867,
-0.2531738877296448,
0.2692728638648987,
2.0086100101470947,
-0.25003552436828613,
-1.0128575563430786,
1.3398571014404297,
-2.37532639503479,
0.27889758348464966,
2.115629196166992,
0.20042608678340912,
0.11211490631103516,
-1.3850890398025513,
-0.6014786958694458,
-0.2301217019557953,
-0.38556089997291565,
-1.1824657917022705,
0.5414159893989563,
-0.2159890979528427,
-0.7475156188011169,
-1.3930753469467163,
0.13728395104408264,
-1.1351197957992554,
-1.7050246000289917,
0.23927702009677887,
2.012388229370117,
2.0520071983337402,
-0.7621761560440063,
1.5114890336990356,
-0.22967028617858887,
0.08344762027263641,
1.2601089477539062,
1.3046258687973022,
3.1649277210235596,
1.8914395570755005,
-1.3264226913452148,
0.6760744452476501,
-0.20314453542232513,
-0.5631694197654724,
1.185669183731079,
-1.104954719543457,
1.1327316761016846,
-0.21271631121635437,
-1.2313809394836426,
-1.2939273118972778,
0.9873712658882141,
0.5158125758171082,
0.025481365621089935,
-0.4924657642841339,
1.1772260665893555,
0.15745796263217926,
1.2910624742507935,
0.5986789464950562,
-0.3793202340602875,
0.6575230956077576,
-0.34905344247817993,
-0.5723183751106262,
1.5220750570297241,
0.23512719571590424,
-1.4771002531051636,
-2.314833641052246,
-0.24035222828388214,
-0.989816427230835,
0.05458572134375572,
-0.6313184499740601,
-1.0164166688919067,
1.5855330228805542,
0.41652029752731323,
-1.204595685005188,
-0.32203954458236694,
-0.26826635003089905,
-0.6159901022911072,
2.6673202514648438,
-1.296557068824768,
-0.1959097683429718,
-0.9832245111465454,
-0.6201346516609192,
1.646789789199829,
-1.3081531524658203,
-0.2536858916282654,
-1.0449162721633911,
-0.5633188486099243,
-1.204432725906372,
-0.4156692326068878,
0.00017940066754817963,
-1.0350329875946045,
0.8815065622329712,
0.20566467940807343,
-1.2380343675613403,
-0.27396827936172485,
-0.8543654084205627,
0.9676741361618042,
-0.17954851686954498,
0.19348452985286713,
1.8297902345657349,
0.3837759792804718,
-0.4612348675727844,
0.702591061592102,
1.1624724864959717,
0.6379249095916748,
-0.6234326958656311,
0.1226920410990715,
-0.6428767442703247,
0.4060932397842407,
-1.344262719154358,
0.22438135743141174,
-2.9140398502349854,
0.6981197595596313,
-0.1339835375547409,
-0.12728069722652435,
-0.10684055835008621,
-1.3465044498443604,
1.0124449729919434,
2.5713601112365723,
-1.2336301803588867,
0.5177386403083801,
0.36035025119781494,
1.2439528703689575,
-1.6612108945846558,
0.24558381736278534,
-0.45589688420295715,
2.098037004470825,
0.1471700370311737,
1.1919119358062744,
-0.4455353319644928,
-2.262268304824829,
0.6005784273147583,
-1.1980524063110352,
-1.1207102537155151,
0.7814950942993164,
-0.8190786838531494,
0.1668454110622406,
-1.3703157901763916,
-0.18261797726154327,
-0.8361983895301819,
-1.1715487241744995,
0.6985576748847961,
0.06842677295207977,
0.42135754227638245,
-0.6395373344421387,
0.336136132478714,
-2.154599905014038,
-1.3874353170394897,
-0.27940091490745544,
-0.9733956456184387,
0.4419567883014679,
-0.41470077633857727,
0.6238090395927429,
-0.16768954694271088,
0.037147946655750275,
0.2500651776790619,
1.4804905652999878,
3.4421114921569824,
0.17771697044372559,
0.24483223259449005,
-0.19648662209510803,
-0.9977810978889465,
1.5157930850982666,
0.8317613005638123,
-0.17600484192371368,
-0.6123067140579224,
-1.0189603567123413,
1.2684961557388306,
2.037594795227051,
1.0326206684112549,
0.1027127206325531,
-0.7947538495063782,
-0.7730505466461182,
-0.0384259968996048,
0.14180199801921844,
0.5665819048881531,
0.9340365529060364,
0.03249649703502655,
0.06129974499344826,
1.2876309156417847,
1.1718088388442993,
-0.3541872203350067,
0.38223031163215637,
-0.8588184118270874,
-0.4467441737651825,
0.4121202230453491,
0.2608020305633545,
0.007466488517820835,
0.3485439419746399,
-1.0343236923217773,
-0.20120930671691895,
-0.3594076633453369,
-0.82073974609375,
-0.7539194822311401,
-0.39656180143356323,
-0.3974001407623291,
1.631977915763855,
0.0869210883975029,
-0.5356523394584656,
0.03382260724902153,
-0.6886394023895264,
-0.08983830362558365,
-1.1240814924240112,
0.19238854944705963,
-0.13390682637691498,
-0.11804307997226715,
-0.09411947429180145,
1.5987719297409058,
-0.9060934782028198,
-2.1414005756378174,
0.20714020729064941,
0.23293840885162354,
-0.3610650897026062,
0.1696798950433731,
1.7081104516983032,
0.49887579679489136,
1.4110337495803833,
1.3703587055206299,
1.0174821615219116,
-0.6648986339569092,
-1.255874514579773,
0.7305397987365723,
0.8711697459220886,
-1.3915215730667114,
0.8875351548194885,
-0.055887576192617416,
-0.5125802755355835,
0.6095615029335022,
1.2924888134002686,
0.47322407364845276,
-2.0349347591400146,
0.9116463661193848,
-0.9786221981048584,
0.7941464781761169,
0.7807414531707764,
0.7714515328407288,
0.2673463225364685,
0.8266734480857849,
-1.1877694129943848,
-1.2073613405227661,
-0.686370849609375,
-0.7503151893615723,
1.9003506898880005,
-0.3006671071052551,
0.5845129489898682,
-0.09481355547904968,
-1.274228811264038,
-0.18531543016433716,
0.7698746919631958,
0.3985372483730316,
-0.4298521876335144,
0.8468557596206665,
-0.6480663418769836,
-0.9938225746154785,
-1.3048819303512573,
-0.45272502303123474,
-1.086867332458496,
-0.908661961555481,
0.981162965297699,
0.7983056306838989,
0.4321610927581787,
1.8837265968322754,
0.6655076146125793,
0.33069372177124023,
-2.5772812366485596,
0.9012133479118347,
0.3899919092655182,
-0.1164841279387474,
0.8133838772773743,
0.3097606897354126,
1.0903209447860718,
0.018509801477193832,
0.6414077281951904,
-2.384675979614258,
2.2772269248962402,
-0.21570292115211487,
0.6263805031776428,
-0.021933358162641525,
-0.1754019558429718,
1.153302550315857,
0.5683140158653259,
0.5449026823043823,
-1.1305207014083862,
0.7943546772003174,
-0.6072681546211243,
1.1672158241271973,
0.8444135785102844,
-0.9138373732566833,
0.0844084694981575,
1.4776599407196045,
0.4338153004646301,
-0.5898798108100891,
-0.9695457816123962,
-0.964612603187561,
0.9758743643760681,
1.7192661762237549,
-0.062050238251686096,
-0.028716813772916794,
0.9103127121925354,
0.6701670289039612,
-1.2489792108535767,
0.03616589680314064,
-0.6582447290420532,
-0.6857039928436279,
1.6809818744659424,
2.042865753173828,
-0.13356338441371918,
-0.2495882213115692,
-0.7972837686538696,
-1.3103824853897095,
0.7620494961738586,
-0.024564595893025398,
0.014163236133754253,
0.701738178730011,
-0.6504037976264954,
1.1040027141571045,
0.7207214832305908,
0.9829180836677551,
0.07911467552185059,
0.23658236861228943,
0.40658625960350037,
-0.3819456398487091,
-1.1238608360290527,
-0.2651198208332062,
-1.155806541442871,
-2.5206730365753174,
0.3582878112792969,
-0.24617315828800201,
-1.444240927696228,
0.04137367382645607,
-1.0220611095428467,
0.8658166527748108,
-0.596747875213623,
-1.1690682172775269,
-1.4858847856521606,
0.27549323439598083,
-0.124195896089077,
0.8688755631446838,
-1.6494537591934204,
-0.16310611367225647,
1.2179878950119019,
0.8136535286903381,
-0.6952535510063171,
0.9075143337249756,
0.19994531571865082,
0.997154176235199,
0.8245577216148376,
-0.3658524453639984,
0.5860274434089661,
-0.027293618768453598,
-1.3324542045593262,
0.436606228351593,
1.2201216220855713,
0.13848941028118134,
1.3918094635009766,
-0.5203527212142944,
0.04129275307059288,
0.40585628151893616,
-0.5345935821533203,
-0.5368354916572571,
-0.46970221400260925,
0.7351785898208618,
-0.027869444340467453,
-0.9442132115364075,
-0.04478848725557327,
-0.07321973145008087,
-0.32421934604644775,
0.19791679084300995,
-1.4980450868606567,
-0.1759658008813858,
-0.3550759553909302,
-0.5446197390556335,
-1.3070662021636963,
0.0007366007193922997,
1.3676881790161133,
-0.7312538027763367,
-0.23115184903144836,
0.4706878364086151,
0.3806515634059906,
0.5305399894714355,
0.6248136758804321,
-0.7334347367286682,
-0.24560286104679108,
-0.32628628611564636,
-0.3330787420272827,
0.30618664622306824,
1.3299474716186523,
-0.05256514996290207,
-0.9271502494812012,
0.670837938785553,
-0.35318487882614136,
0.12045691162347794,
1.944673776626587,
0.06084105744957924,
-0.7390353679656982,
0.31206175684928894,
-0.7688798904418945,
1.8656044006347656,
1.777951717376709,
1.2954565286636353,
-0.034962188452482224,
-1.0028449296951294,
0.5729559063911438,
-0.27177712321281433,
-0.31935566663742065,
0.9061789512634277,
0.38126838207244873,
-0.2839735448360443,
-1.4187432527542114,
0.7277187705039978,
1.1800577640533447,
-0.7450852990150452,
-0.8035045862197876,
0.09513155370950699,
-0.8989228010177612,
1.2059745788574219,
0.5763342380523682,
0.33297741413116455,
0.22320586442947388,
1.6344531774520874,
0.7567206025123596,
-0.4538254737854004,
0.5294429063796997,
0.5833489298820496,
-0.21448944509029388,
-2.1158618927001953,
-1.1107107400894165,
0.32288193702697754,
-0.4195615351200104,
-1.6125329732894897,
1.3533644676208496,
-1.1596659421920776,
-0.9913483262062073,
0.5293236970901489,
0.07257653772830963,
1.4167755842208862,
0.3478182256221771,
1.6835576295852661,
2.143578290939331,
0.9611176252365112,
0.43803057074546814,
1.2517995834350586,
-0.2156001329421997,
-0.4492306709289551,
1.8154386281967163,
-0.45114201307296753,
0.4094456732273102,
1.0898773670196533,
-0.410121351480484,
-1.1495558023452759,
-0.7983534336090088,
-1.161502480506897,
-0.6639454960823059,
1.1521958112716675,
0.04759562388062477,
-1.070610761642456,
0.30708155035972595,
1.5930784940719604,
0.1295613944530487,
-0.20851828157901764,
0.6972835659980774,
0.4213953912258148,
-0.7585194706916809,
-0.030215326696634293,
-0.8819595575332642,
0.5650939345359802,
-0.18648573756217957,
-0.33454522490501404,
0.36605653166770935,
0.49442100524902344,
1.328126072883606,
-0.0774458572268486,
0.15736769139766693,
1.1003525257110596,
-1.429910659790039,
1.455661654472351,
-0.6468491554260254,
0.3054923415184021,
-2.373232126235962,
1.4213669300079346,
-0.8225035071372986,
2.0158185958862305,
-2.5427181720733643,
0.40359070897102356,
-0.5925984382629395,
-0.48344752192497253,
0.2905476987361908,
-0.3779946267604828,
0.02229512482881546,
-0.15146315097808838,
-1.0800471305847168,
-0.07782576978206635,
-0.7412011623382568,
0.6089487075805664,
1.2082841396331787,
1.3640718460083008,
-1.0785326957702637,
-0.25073304772377014,
-1.69828200340271,
-0.15519782900810242,
-0.7357625961303711,
0.3411356508731842,
-1.9539389610290527,
-0.17517445981502533,
-2.0240142345428467,
-2.3079681396484375,
-1.2734472751617432,
-0.8591833114624023,
1.0265870094299316,
0.17389324307441711,
-0.8874174952507019,
1.2385292053222656,
-0.3261457085609436,
-1.8157798051834106,
1.1615747213363647,
-2.2166244983673096
] |
https://github.com/huggingface/datasets/issues/5351 | Do we need to implement `_prepare_split`? | one more question for my understanding @mariosasko. the requirement of a loading script has always seemed counterintuitive to me. if i have to provide a script with every dataset, what is the point of using `datasets` if we're doing all the work of loading it, I can just do that in my code and skip the datasets integration (this of course discounts other potential benefits around metadata management, etc., my example is just simplest use case though for the sake of discussion).
so i figured I would implement my own `BuilderConfig` and `DatasetBuilder` to handle that portion of it and not have to make a script. i _thought_ this would result in `datasets` (via `download_and_prepare`) then making me something that I could load using `load_dataset` moving forward.
Concretely, i envisioned this pattern being possible:
```
class MyBuilderConfig(BuilderConfig):
def __init__(self, name="my_named_dataset", ...):
super().__init__(name, ...)
class MyDatasetBuilder(GeneratorBasedBuilder):
BUILDER_CONFIG_CLASS = MyBuilderConfig
....
my_builder = MyDatasetBuilder(...)
# this doesn't exactly work like I thought; I don't get a dataset back, but NoneType instead
# though I can see it loading the files and it generates the cache, etc.
my_dataset = my_builder.download_and_prepare()
# load the dataset in the future by referencing it by name and loading from the cached arrow version
new_instance_of_my_dataset = load_dataset("my_named_dataset")
```
I've seen references to the `save_to_disk` method which might be the next step I need in order to load it by name, in which case, that makes sense, then i just need to debug why `download_and_prepare` isn't returning me a dataset, but I feel like I still have a larger conceptual knowledge gap on how to use the library correctly.
Thanks again in advance! | ### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 377 | 274 | Do we need to implement `_prepare_split`?
### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
one more question for my understanding @mariosasko. the requirement of a loading script has always seemed counterintuitive to me. if i have to provide a script with every dataset, what is the point of using `datasets` if we're doing all the work of loading it, I can just do that in my code and skip the datasets integration (this of course discounts other potential benefits around metadata management, etc., my example is just simplest use case though for the sake of discussion).
so i figured I would implement my own `BuilderConfig` and `DatasetBuilder` to handle that portion of it and not have to make a script. i _thought_ this would result in `datasets` (via `download_and_prepare`) then making me something that I could load using `load_dataset` moving forward.
Concretely, i envisioned this pattern being possible:
```
class MyBuilderConfig(BuilderConfig):
def __init__(self, name="my_named_dataset", ...):
super().__init__(name, ...)
class MyDatasetBuilder(GeneratorBasedBuilder):
BUILDER_CONFIG_CLASS = MyBuilderConfig
....
my_builder = MyDatasetBuilder(...)
# this doesn't exactly work like I thought; I don't get a dataset back, but NoneType instead
# though I can see it loading the files and it generates the cache, etc.
my_dataset = my_builder.download_and_prepare()
# load the dataset in the future by referencing it by name and loading from the cached arrow version
new_instance_of_my_dataset = load_dataset("my_named_dataset")
```
I've seen references to the `save_to_disk` method which might be the next step I need in order to load it by name, in which case, that makes sense, then i just need to debug why `download_and_prepare` isn't returning me a dataset, but I feel like I still have a larger conceptual knowledge gap on how to use the library correctly.
Thanks again in advance! | [
-1.1564629077911377,
-0.9498602747917175,
-0.663374125957489,
1.4442986249923706,
-0.10583754628896713,
-1.330580234527588,
0.14666317403316498,
-1.096006155014038,
1.5908504724502563,
-0.7755786180496216,
0.2561314105987549,
-1.64324951171875,
0.0009109014645218849,
-0.5524017810821533,
-0.7539600729942322,
-0.8674906492233276,
-0.40539678931236267,
-0.8347030878067017,
1.090440034866333,
2.49111270904541,
1.3073545694351196,
-1.3592675924301147,
2.6914243698120117,
0.6253315806388855,
-0.25068217515945435,
-1.0284806489944458,
0.5118100047111511,
-0.08683808147907257,
-1.244111180305481,
-0.44190430641174316,
-0.8866837620735168,
-0.02659996971487999,
-0.5436497926712036,
-0.44842851161956787,
0.020160146057605743,
0.507144033908844,
-0.2853304445743561,
-0.3522126376628876,
-0.5469552278518677,
-0.7873325943946838,
0.5138752460479736,
-0.39047810435295105,
0.9771408438682556,
-0.2916063368320465,
1.7428398132324219,
-0.5489139556884766,
0.5562779903411865,
0.7052303552627563,
1.323817491531372,
0.2096545547246933,
0.04410451278090477,
0.274929404258728,
0.3526633381843567,
-0.013621739111840725,
0.5801300406455994,
1.1732457876205444,
0.6227781176567078,
0.5495607852935791,
0.6936177611351013,
-2.2312402725219727,
1.2467851638793945,
-0.8898006677627563,
0.25347813963890076,
1.3205538988113403,
-0.8416476845741272,
0.2985175848007202,
-1.7818101644515991,
-0.023926209658384323,
0.626913845539093,
-2.219168186187744,
0.2871083915233612,
-1.2484748363494873,
-0.4404938817024231,
0.9812764525413513,
0.3844491243362427,
-1.1995611190795898,
0.17814722657203674,
-0.4682336151599884,
1.0708445310592651,
0.4985090494155884,
1.0634267330169678,
-1.6850014925003052,
-0.07276272028684616,
-0.12144693732261658,
0.09427030384540558,
-1.2751214504241943,
-1.616385817527771,
0.49936777353286743,
0.6314769387245178,
0.601296067237854,
-0.12011171132326126,
1.0285768508911133,
-1.0327154397964478,
0.7683276534080505,
-0.9833645820617676,
-1.7085256576538086,
-1.3746590614318848,
-2.381073474884033,
-2.2604963779449463,
0.7647416591644287,
-0.5077292323112488,
-0.505199134349823,
2.139141321182251,
-0.9762452244758606,
-1.7382080554962158,
1.0784868001937866,
0.2431776374578476,
0.06848800927400589,
2.3521018028259277,
0.16266687214374542,
-0.7607546448707581,
0.5209259390830994,
-0.7144909501075745,
0.7387741804122925,
-0.39588698744773865,
1.252274990081787,
0.4191671311855316,
-1.0772514343261719,
1.5892210006713867,
-0.40179985761642456,
0.6249086856842041,
-0.7159730195999146,
-0.5217868089675903,
-0.7206072807312012,
0.3132014870643616,
1.8762284517288208,
-0.33961737155914307,
1.5194368362426758,
-0.32035568356513977,
-1.5336531400680542,
-1.5990382432937622,
0.8680450320243835,
0.4627731740474701,
-0.8155038356781006,
0.09122943878173828,
-0.48781535029411316,
0.2082277536392212,
-0.06082328408956528,
1.128096342086792,
1.2877923250198364,
0.7558377981185913,
-0.3190732002258301,
-0.8446569442749023,
0.25557368993759155,
-0.1556096076965332,
-0.6958494782447815,
-1.7885955572128296,
-0.3052981197834015,
0.17082178592681885,
0.5933625102043152,
-1.1116772890090942,
1.8696622848510742,
0.8560017347335815,
1.9921929836273193,
0.9572242498397827,
-0.3342181444168091,
1.4478574991226196,
0.06541766226291656,
1.9272236824035645,
-0.4427891969680786,
0.5949949622154236,
-0.39413365721702576,
-1.1338410377502441,
0.8701661825180054,
-0.3614889085292816,
-1.9595794677734375,
-0.7341879606246948,
-0.8264647722244263,
-0.17505481839179993,
-0.708142101764679,
0.8774099349975586,
-0.2663131654262543,
-1.4149501323699951,
0.11569773405790329,
-0.7542639970779419,
0.2199944108724594,
-1.2592239379882812,
0.3063918948173523,
0.7784298062324524,
-0.6639541983604431,
0.04141148552298546,
-0.3063095510005951,
-1.2594068050384521,
-0.5460323095321655,
0.4466667175292969,
1.9278122186660767,
-0.6600537300109863,
0.9300511479377747,
1.011794090270996,
-0.7280043363571167,
0.03813764452934265,
0.2915889322757721,
-0.3372534513473511,
0.7900884747505188,
-1.0482622385025024,
-0.39814725518226624,
1.2299141883850098,
-0.3695739805698395,
-0.7544583678245544,
1.4501296281814575,
0.7863385081291199,
-1.0509814023971558,
-0.20092853903770447,
-0.18119466304779053,
-0.876839280128479,
0.015529326163232327,
-1.569655179977417,
-0.12916986644268036,
0.4387114942073822,
-1.5323073863983154,
-0.4060429632663727,
-0.15828348696231842,
1.3243621587753296,
-0.13921552896499634,
1.479224443435669,
-0.33318212628364563,
-0.1262056529521942,
-0.3214600384235382,
-0.538142204284668,
0.1865719109773636,
-0.25583040714263916,
-0.5980302095413208,
0.17820009589195251,
-0.7133988738059998,
0.29234805703163147,
1.4261348247528076,
0.2827163338661194,
0.030307937413454056,
0.4866514205932617,
1.1270930767059326,
0.37554773688316345,
-0.09323905408382416,
-0.8659719228744507,
-1.5276507139205933,
1.985545039176941,
-1.3766818046569824,
1.9685890674591064,
0.796990156173706,
-0.12539328634738922,
-1.7223299741744995,
-1.943402647972107,
1.2971711158752441,
1.0976943969726562,
2.3299427032470703,
0.49259698390960693,
0.4547470510005951,
-0.7977319359779358,
-0.7149744033813477,
0.3336649239063263,
-0.9496043920516968,
-0.7331341505050659,
0.07010006904602051,
2.3565030097961426,
1.8225458860397339,
-0.4789726436138153,
-0.2311103343963623,
-0.9668517708778381,
1.3721799850463867,
-0.2531738877296448,
0.2692728638648987,
2.0086100101470947,
-0.25003552436828613,
-1.0128575563430786,
1.3398571014404297,
-2.37532639503479,
0.27889758348464966,
2.115629196166992,
0.20042608678340912,
0.11211490631103516,
-1.3850890398025513,
-0.6014786958694458,
-0.2301217019557953,
-0.38556089997291565,
-1.1824657917022705,
0.5414159893989563,
-0.2159890979528427,
-0.7475156188011169,
-1.3930753469467163,
0.13728395104408264,
-1.1351197957992554,
-1.7050246000289917,
0.23927702009677887,
2.012388229370117,
2.0520071983337402,
-0.7621761560440063,
1.5114890336990356,
-0.22967028617858887,
0.08344762027263641,
1.2601089477539062,
1.3046258687973022,
3.1649277210235596,
1.8914395570755005,
-1.3264226913452148,
0.6760744452476501,
-0.20314453542232513,
-0.5631694197654724,
1.185669183731079,
-1.104954719543457,
1.1327316761016846,
-0.21271631121635437,
-1.2313809394836426,
-1.2939273118972778,
0.9873712658882141,
0.5158125758171082,
0.025481365621089935,
-0.4924657642841339,
1.1772260665893555,
0.15745796263217926,
1.2910624742507935,
0.5986789464950562,
-0.3793202340602875,
0.6575230956077576,
-0.34905344247817993,
-0.5723183751106262,
1.5220750570297241,
0.23512719571590424,
-1.4771002531051636,
-2.314833641052246,
-0.24035222828388214,
-0.989816427230835,
0.05458572134375572,
-0.6313184499740601,
-1.0164166688919067,
1.5855330228805542,
0.41652029752731323,
-1.204595685005188,
-0.32203954458236694,
-0.26826635003089905,
-0.6159901022911072,
2.6673202514648438,
-1.296557068824768,
-0.1959097683429718,
-0.9832245111465454,
-0.6201346516609192,
1.646789789199829,
-1.3081531524658203,
-0.2536858916282654,
-1.0449162721633911,
-0.5633188486099243,
-1.204432725906372,
-0.4156692326068878,
0.00017940066754817963,
-1.0350329875946045,
0.8815065622329712,
0.20566467940807343,
-1.2380343675613403,
-0.27396827936172485,
-0.8543654084205627,
0.9676741361618042,
-0.17954851686954498,
0.19348452985286713,
1.8297902345657349,
0.3837759792804718,
-0.4612348675727844,
0.702591061592102,
1.1624724864959717,
0.6379249095916748,
-0.6234326958656311,
0.1226920410990715,
-0.6428767442703247,
0.4060932397842407,
-1.344262719154358,
0.22438135743141174,
-2.9140398502349854,
0.6981197595596313,
-0.1339835375547409,
-0.12728069722652435,
-0.10684055835008621,
-1.3465044498443604,
1.0124449729919434,
2.5713601112365723,
-1.2336301803588867,
0.5177386403083801,
0.36035025119781494,
1.2439528703689575,
-1.6612108945846558,
0.24558381736278534,
-0.45589688420295715,
2.098037004470825,
0.1471700370311737,
1.1919119358062744,
-0.4455353319644928,
-2.262268304824829,
0.6005784273147583,
-1.1980524063110352,
-1.1207102537155151,
0.7814950942993164,
-0.8190786838531494,
0.1668454110622406,
-1.3703157901763916,
-0.18261797726154327,
-0.8361983895301819,
-1.1715487241744995,
0.6985576748847961,
0.06842677295207977,
0.42135754227638245,
-0.6395373344421387,
0.336136132478714,
-2.154599905014038,
-1.3874353170394897,
-0.27940091490745544,
-0.9733956456184387,
0.4419567883014679,
-0.41470077633857727,
0.6238090395927429,
-0.16768954694271088,
0.037147946655750275,
0.2500651776790619,
1.4804905652999878,
3.4421114921569824,
0.17771697044372559,
0.24483223259449005,
-0.19648662209510803,
-0.9977810978889465,
1.5157930850982666,
0.8317613005638123,
-0.17600484192371368,
-0.6123067140579224,
-1.0189603567123413,
1.2684961557388306,
2.037594795227051,
1.0326206684112549,
0.1027127206325531,
-0.7947538495063782,
-0.7730505466461182,
-0.0384259968996048,
0.14180199801921844,
0.5665819048881531,
0.9340365529060364,
0.03249649703502655,
0.06129974499344826,
1.2876309156417847,
1.1718088388442993,
-0.3541872203350067,
0.38223031163215637,
-0.8588184118270874,
-0.4467441737651825,
0.4121202230453491,
0.2608020305633545,
0.007466488517820835,
0.3485439419746399,
-1.0343236923217773,
-0.20120930671691895,
-0.3594076633453369,
-0.82073974609375,
-0.7539194822311401,
-0.39656180143356323,
-0.3974001407623291,
1.631977915763855,
0.0869210883975029,
-0.5356523394584656,
0.03382260724902153,
-0.6886394023895264,
-0.08983830362558365,
-1.1240814924240112,
0.19238854944705963,
-0.13390682637691498,
-0.11804307997226715,
-0.09411947429180145,
1.5987719297409058,
-0.9060934782028198,
-2.1414005756378174,
0.20714020729064941,
0.23293840885162354,
-0.3610650897026062,
0.1696798950433731,
1.7081104516983032,
0.49887579679489136,
1.4110337495803833,
1.3703587055206299,
1.0174821615219116,
-0.6648986339569092,
-1.255874514579773,
0.7305397987365723,
0.8711697459220886,
-1.3915215730667114,
0.8875351548194885,
-0.055887576192617416,
-0.5125802755355835,
0.6095615029335022,
1.2924888134002686,
0.47322407364845276,
-2.0349347591400146,
0.9116463661193848,
-0.9786221981048584,
0.7941464781761169,
0.7807414531707764,
0.7714515328407288,
0.2673463225364685,
0.8266734480857849,
-1.1877694129943848,
-1.2073613405227661,
-0.686370849609375,
-0.7503151893615723,
1.9003506898880005,
-0.3006671071052551,
0.5845129489898682,
-0.09481355547904968,
-1.274228811264038,
-0.18531543016433716,
0.7698746919631958,
0.3985372483730316,
-0.4298521876335144,
0.8468557596206665,
-0.6480663418769836,
-0.9938225746154785,
-1.3048819303512573,
-0.45272502303123474,
-1.086867332458496,
-0.908661961555481,
0.981162965297699,
0.7983056306838989,
0.4321610927581787,
1.8837265968322754,
0.6655076146125793,
0.33069372177124023,
-2.5772812366485596,
0.9012133479118347,
0.3899919092655182,
-0.1164841279387474,
0.8133838772773743,
0.3097606897354126,
1.0903209447860718,
0.018509801477193832,
0.6414077281951904,
-2.384675979614258,
2.2772269248962402,
-0.21570292115211487,
0.6263805031776428,
-0.021933358162641525,
-0.1754019558429718,
1.153302550315857,
0.5683140158653259,
0.5449026823043823,
-1.1305207014083862,
0.7943546772003174,
-0.6072681546211243,
1.1672158241271973,
0.8444135785102844,
-0.9138373732566833,
0.0844084694981575,
1.4776599407196045,
0.4338153004646301,
-0.5898798108100891,
-0.9695457816123962,
-0.964612603187561,
0.9758743643760681,
1.7192661762237549,
-0.062050238251686096,
-0.028716813772916794,
0.9103127121925354,
0.6701670289039612,
-1.2489792108535767,
0.03616589680314064,
-0.6582447290420532,
-0.6857039928436279,
1.6809818744659424,
2.042865753173828,
-0.13356338441371918,
-0.2495882213115692,
-0.7972837686538696,
-1.3103824853897095,
0.7620494961738586,
-0.024564595893025398,
0.014163236133754253,
0.701738178730011,
-0.6504037976264954,
1.1040027141571045,
0.7207214832305908,
0.9829180836677551,
0.07911467552185059,
0.23658236861228943,
0.40658625960350037,
-0.3819456398487091,
-1.1238608360290527,
-0.2651198208332062,
-1.155806541442871,
-2.5206730365753174,
0.3582878112792969,
-0.24617315828800201,
-1.444240927696228,
0.04137367382645607,
-1.0220611095428467,
0.8658166527748108,
-0.596747875213623,
-1.1690682172775269,
-1.4858847856521606,
0.27549323439598083,
-0.124195896089077,
0.8688755631446838,
-1.6494537591934204,
-0.16310611367225647,
1.2179878950119019,
0.8136535286903381,
-0.6952535510063171,
0.9075143337249756,
0.19994531571865082,
0.997154176235199,
0.8245577216148376,
-0.3658524453639984,
0.5860274434089661,
-0.027293618768453598,
-1.3324542045593262,
0.436606228351593,
1.2201216220855713,
0.13848941028118134,
1.3918094635009766,
-0.5203527212142944,
0.04129275307059288,
0.40585628151893616,
-0.5345935821533203,
-0.5368354916572571,
-0.46970221400260925,
0.7351785898208618,
-0.027869444340467453,
-0.9442132115364075,
-0.04478848725557327,
-0.07321973145008087,
-0.32421934604644775,
0.19791679084300995,
-1.4980450868606567,
-0.1759658008813858,
-0.3550759553909302,
-0.5446197390556335,
-1.3070662021636963,
0.0007366007193922997,
1.3676881790161133,
-0.7312538027763367,
-0.23115184903144836,
0.4706878364086151,
0.3806515634059906,
0.5305399894714355,
0.6248136758804321,
-0.7334347367286682,
-0.24560286104679108,
-0.32628628611564636,
-0.3330787420272827,
0.30618664622306824,
1.3299474716186523,
-0.05256514996290207,
-0.9271502494812012,
0.670837938785553,
-0.35318487882614136,
0.12045691162347794,
1.944673776626587,
0.06084105744957924,
-0.7390353679656982,
0.31206175684928894,
-0.7688798904418945,
1.8656044006347656,
1.777951717376709,
1.2954565286636353,
-0.034962188452482224,
-1.0028449296951294,
0.5729559063911438,
-0.27177712321281433,
-0.31935566663742065,
0.9061789512634277,
0.38126838207244873,
-0.2839735448360443,
-1.4187432527542114,
0.7277187705039978,
1.1800577640533447,
-0.7450852990150452,
-0.8035045862197876,
0.09513155370950699,
-0.8989228010177612,
1.2059745788574219,
0.5763342380523682,
0.33297741413116455,
0.22320586442947388,
1.6344531774520874,
0.7567206025123596,
-0.4538254737854004,
0.5294429063796997,
0.5833489298820496,
-0.21448944509029388,
-2.1158618927001953,
-1.1107107400894165,
0.32288193702697754,
-0.4195615351200104,
-1.6125329732894897,
1.3533644676208496,
-1.1596659421920776,
-0.9913483262062073,
0.5293236970901489,
0.07257653772830963,
1.4167755842208862,
0.3478182256221771,
1.6835576295852661,
2.143578290939331,
0.9611176252365112,
0.43803057074546814,
1.2517995834350586,
-0.2156001329421997,
-0.4492306709289551,
1.8154386281967163,
-0.45114201307296753,
0.4094456732273102,
1.0898773670196533,
-0.410121351480484,
-1.1495558023452759,
-0.7983534336090088,
-1.161502480506897,
-0.6639454960823059,
1.1521958112716675,
0.04759562388062477,
-1.070610761642456,
0.30708155035972595,
1.5930784940719604,
0.1295613944530487,
-0.20851828157901764,
0.6972835659980774,
0.4213953912258148,
-0.7585194706916809,
-0.030215326696634293,
-0.8819595575332642,
0.5650939345359802,
-0.18648573756217957,
-0.33454522490501404,
0.36605653166770935,
0.49442100524902344,
1.328126072883606,
-0.0774458572268486,
0.15736769139766693,
1.1003525257110596,
-1.429910659790039,
1.455661654472351,
-0.6468491554260254,
0.3054923415184021,
-2.373232126235962,
1.4213669300079346,
-0.8225035071372986,
2.0158185958862305,
-2.5427181720733643,
0.40359070897102356,
-0.5925984382629395,
-0.48344752192497253,
0.2905476987361908,
-0.3779946267604828,
0.02229512482881546,
-0.15146315097808838,
-1.0800471305847168,
-0.07782576978206635,
-0.7412011623382568,
0.6089487075805664,
1.2082841396331787,
1.3640718460083008,
-1.0785326957702637,
-0.25073304772377014,
-1.69828200340271,
-0.15519782900810242,
-0.7357625961303711,
0.3411356508731842,
-1.9539389610290527,
-0.17517445981502533,
-2.0240142345428467,
-2.3079681396484375,
-1.2734472751617432,
-0.8591833114624023,
1.0265870094299316,
0.17389324307441711,
-0.8874174952507019,
1.2385292053222656,
-0.3261457085609436,
-1.8157798051834106,
1.1615747213363647,
-2.2166244983673096
] |
https://github.com/huggingface/datasets/issues/5351 | Do we need to implement `_prepare_split`? | > the requirement of a loading script has always seemed counterintuitive to me
This is a requirement only for datasets not stored in standard formats such as CSV, JSON, SQL, Parquet, ImageFolder, etc.
> if i have to provide a script with every dataset, what is the point of using datasets if we're doing all the work of loading it, I can just do that in my code and skip the datasets integration (this of course discounts other potential benefits around metadata management, etc., my example is just simplest use case though for the sake of discussion)
Our README/documentation lists the main features...
One of the main ones is that our library makes it easy to work with datasets larger than RAM (thanks to Arrow and the caching mechanism), and this is not trivial to implement.
Regarding the step-by-step builder, this is the pattern:
```python
from datasets import load_dataset_builder
builder = load_dataset_builder("path/to/script") # or direct instantiation with MyDatasetBuilder(...)
builder.download_and_prepare()
dset = builder.as_dataset()
``` | ### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 377 | 163 | Do we need to implement `_prepare_split`?
### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
> the requirement of a loading script has always seemed counterintuitive to me
This is a requirement only for datasets not stored in standard formats such as CSV, JSON, SQL, Parquet, ImageFolder, etc.
> if i have to provide a script with every dataset, what is the point of using datasets if we're doing all the work of loading it, I can just do that in my code and skip the datasets integration (this of course discounts other potential benefits around metadata management, etc., my example is just simplest use case though for the sake of discussion)
Our README/documentation lists the main features...
One of the main ones is that our library makes it easy to work with datasets larger than RAM (thanks to Arrow and the caching mechanism), and this is not trivial to implement.
Regarding the step-by-step builder, this is the pattern:
```python
from datasets import load_dataset_builder
builder = load_dataset_builder("path/to/script") # or direct instantiation with MyDatasetBuilder(...)
builder.download_and_prepare()
dset = builder.as_dataset()
``` | [
-1.1564629077911377,
-0.9498602747917175,
-0.663374125957489,
1.4442986249923706,
-0.10583754628896713,
-1.330580234527588,
0.14666317403316498,
-1.096006155014038,
1.5908504724502563,
-0.7755786180496216,
0.2561314105987549,
-1.64324951171875,
0.0009109014645218849,
-0.5524017810821533,
-0.7539600729942322,
-0.8674906492233276,
-0.40539678931236267,
-0.8347030878067017,
1.090440034866333,
2.49111270904541,
1.3073545694351196,
-1.3592675924301147,
2.6914243698120117,
0.6253315806388855,
-0.25068217515945435,
-1.0284806489944458,
0.5118100047111511,
-0.08683808147907257,
-1.244111180305481,
-0.44190430641174316,
-0.8866837620735168,
-0.02659996971487999,
-0.5436497926712036,
-0.44842851161956787,
0.020160146057605743,
0.507144033908844,
-0.2853304445743561,
-0.3522126376628876,
-0.5469552278518677,
-0.7873325943946838,
0.5138752460479736,
-0.39047810435295105,
0.9771408438682556,
-0.2916063368320465,
1.7428398132324219,
-0.5489139556884766,
0.5562779903411865,
0.7052303552627563,
1.323817491531372,
0.2096545547246933,
0.04410451278090477,
0.274929404258728,
0.3526633381843567,
-0.013621739111840725,
0.5801300406455994,
1.1732457876205444,
0.6227781176567078,
0.5495607852935791,
0.6936177611351013,
-2.2312402725219727,
1.2467851638793945,
-0.8898006677627563,
0.25347813963890076,
1.3205538988113403,
-0.8416476845741272,
0.2985175848007202,
-1.7818101644515991,
-0.023926209658384323,
0.626913845539093,
-2.219168186187744,
0.2871083915233612,
-1.2484748363494873,
-0.4404938817024231,
0.9812764525413513,
0.3844491243362427,
-1.1995611190795898,
0.17814722657203674,
-0.4682336151599884,
1.0708445310592651,
0.4985090494155884,
1.0634267330169678,
-1.6850014925003052,
-0.07276272028684616,
-0.12144693732261658,
0.09427030384540558,
-1.2751214504241943,
-1.616385817527771,
0.49936777353286743,
0.6314769387245178,
0.601296067237854,
-0.12011171132326126,
1.0285768508911133,
-1.0327154397964478,
0.7683276534080505,
-0.9833645820617676,
-1.7085256576538086,
-1.3746590614318848,
-2.381073474884033,
-2.2604963779449463,
0.7647416591644287,
-0.5077292323112488,
-0.505199134349823,
2.139141321182251,
-0.9762452244758606,
-1.7382080554962158,
1.0784868001937866,
0.2431776374578476,
0.06848800927400589,
2.3521018028259277,
0.16266687214374542,
-0.7607546448707581,
0.5209259390830994,
-0.7144909501075745,
0.7387741804122925,
-0.39588698744773865,
1.252274990081787,
0.4191671311855316,
-1.0772514343261719,
1.5892210006713867,
-0.40179985761642456,
0.6249086856842041,
-0.7159730195999146,
-0.5217868089675903,
-0.7206072807312012,
0.3132014870643616,
1.8762284517288208,
-0.33961737155914307,
1.5194368362426758,
-0.32035568356513977,
-1.5336531400680542,
-1.5990382432937622,
0.8680450320243835,
0.4627731740474701,
-0.8155038356781006,
0.09122943878173828,
-0.48781535029411316,
0.2082277536392212,
-0.06082328408956528,
1.128096342086792,
1.2877923250198364,
0.7558377981185913,
-0.3190732002258301,
-0.8446569442749023,
0.25557368993759155,
-0.1556096076965332,
-0.6958494782447815,
-1.7885955572128296,
-0.3052981197834015,
0.17082178592681885,
0.5933625102043152,
-1.1116772890090942,
1.8696622848510742,
0.8560017347335815,
1.9921929836273193,
0.9572242498397827,
-0.3342181444168091,
1.4478574991226196,
0.06541766226291656,
1.9272236824035645,
-0.4427891969680786,
0.5949949622154236,
-0.39413365721702576,
-1.1338410377502441,
0.8701661825180054,
-0.3614889085292816,
-1.9595794677734375,
-0.7341879606246948,
-0.8264647722244263,
-0.17505481839179993,
-0.708142101764679,
0.8774099349975586,
-0.2663131654262543,
-1.4149501323699951,
0.11569773405790329,
-0.7542639970779419,
0.2199944108724594,
-1.2592239379882812,
0.3063918948173523,
0.7784298062324524,
-0.6639541983604431,
0.04141148552298546,
-0.3063095510005951,
-1.2594068050384521,
-0.5460323095321655,
0.4466667175292969,
1.9278122186660767,
-0.6600537300109863,
0.9300511479377747,
1.011794090270996,
-0.7280043363571167,
0.03813764452934265,
0.2915889322757721,
-0.3372534513473511,
0.7900884747505188,
-1.0482622385025024,
-0.39814725518226624,
1.2299141883850098,
-0.3695739805698395,
-0.7544583678245544,
1.4501296281814575,
0.7863385081291199,
-1.0509814023971558,
-0.20092853903770447,
-0.18119466304779053,
-0.876839280128479,
0.015529326163232327,
-1.569655179977417,
-0.12916986644268036,
0.4387114942073822,
-1.5323073863983154,
-0.4060429632663727,
-0.15828348696231842,
1.3243621587753296,
-0.13921552896499634,
1.479224443435669,
-0.33318212628364563,
-0.1262056529521942,
-0.3214600384235382,
-0.538142204284668,
0.1865719109773636,
-0.25583040714263916,
-0.5980302095413208,
0.17820009589195251,
-0.7133988738059998,
0.29234805703163147,
1.4261348247528076,
0.2827163338661194,
0.030307937413454056,
0.4866514205932617,
1.1270930767059326,
0.37554773688316345,
-0.09323905408382416,
-0.8659719228744507,
-1.5276507139205933,
1.985545039176941,
-1.3766818046569824,
1.9685890674591064,
0.796990156173706,
-0.12539328634738922,
-1.7223299741744995,
-1.943402647972107,
1.2971711158752441,
1.0976943969726562,
2.3299427032470703,
0.49259698390960693,
0.4547470510005951,
-0.7977319359779358,
-0.7149744033813477,
0.3336649239063263,
-0.9496043920516968,
-0.7331341505050659,
0.07010006904602051,
2.3565030097961426,
1.8225458860397339,
-0.4789726436138153,
-0.2311103343963623,
-0.9668517708778381,
1.3721799850463867,
-0.2531738877296448,
0.2692728638648987,
2.0086100101470947,
-0.25003552436828613,
-1.0128575563430786,
1.3398571014404297,
-2.37532639503479,
0.27889758348464966,
2.115629196166992,
0.20042608678340912,
0.11211490631103516,
-1.3850890398025513,
-0.6014786958694458,
-0.2301217019557953,
-0.38556089997291565,
-1.1824657917022705,
0.5414159893989563,
-0.2159890979528427,
-0.7475156188011169,
-1.3930753469467163,
0.13728395104408264,
-1.1351197957992554,
-1.7050246000289917,
0.23927702009677887,
2.012388229370117,
2.0520071983337402,
-0.7621761560440063,
1.5114890336990356,
-0.22967028617858887,
0.08344762027263641,
1.2601089477539062,
1.3046258687973022,
3.1649277210235596,
1.8914395570755005,
-1.3264226913452148,
0.6760744452476501,
-0.20314453542232513,
-0.5631694197654724,
1.185669183731079,
-1.104954719543457,
1.1327316761016846,
-0.21271631121635437,
-1.2313809394836426,
-1.2939273118972778,
0.9873712658882141,
0.5158125758171082,
0.025481365621089935,
-0.4924657642841339,
1.1772260665893555,
0.15745796263217926,
1.2910624742507935,
0.5986789464950562,
-0.3793202340602875,
0.6575230956077576,
-0.34905344247817993,
-0.5723183751106262,
1.5220750570297241,
0.23512719571590424,
-1.4771002531051636,
-2.314833641052246,
-0.24035222828388214,
-0.989816427230835,
0.05458572134375572,
-0.6313184499740601,
-1.0164166688919067,
1.5855330228805542,
0.41652029752731323,
-1.204595685005188,
-0.32203954458236694,
-0.26826635003089905,
-0.6159901022911072,
2.6673202514648438,
-1.296557068824768,
-0.1959097683429718,
-0.9832245111465454,
-0.6201346516609192,
1.646789789199829,
-1.3081531524658203,
-0.2536858916282654,
-1.0449162721633911,
-0.5633188486099243,
-1.204432725906372,
-0.4156692326068878,
0.00017940066754817963,
-1.0350329875946045,
0.8815065622329712,
0.20566467940807343,
-1.2380343675613403,
-0.27396827936172485,
-0.8543654084205627,
0.9676741361618042,
-0.17954851686954498,
0.19348452985286713,
1.8297902345657349,
0.3837759792804718,
-0.4612348675727844,
0.702591061592102,
1.1624724864959717,
0.6379249095916748,
-0.6234326958656311,
0.1226920410990715,
-0.6428767442703247,
0.4060932397842407,
-1.344262719154358,
0.22438135743141174,
-2.9140398502349854,
0.6981197595596313,
-0.1339835375547409,
-0.12728069722652435,
-0.10684055835008621,
-1.3465044498443604,
1.0124449729919434,
2.5713601112365723,
-1.2336301803588867,
0.5177386403083801,
0.36035025119781494,
1.2439528703689575,
-1.6612108945846558,
0.24558381736278534,
-0.45589688420295715,
2.098037004470825,
0.1471700370311737,
1.1919119358062744,
-0.4455353319644928,
-2.262268304824829,
0.6005784273147583,
-1.1980524063110352,
-1.1207102537155151,
0.7814950942993164,
-0.8190786838531494,
0.1668454110622406,
-1.3703157901763916,
-0.18261797726154327,
-0.8361983895301819,
-1.1715487241744995,
0.6985576748847961,
0.06842677295207977,
0.42135754227638245,
-0.6395373344421387,
0.336136132478714,
-2.154599905014038,
-1.3874353170394897,
-0.27940091490745544,
-0.9733956456184387,
0.4419567883014679,
-0.41470077633857727,
0.6238090395927429,
-0.16768954694271088,
0.037147946655750275,
0.2500651776790619,
1.4804905652999878,
3.4421114921569824,
0.17771697044372559,
0.24483223259449005,
-0.19648662209510803,
-0.9977810978889465,
1.5157930850982666,
0.8317613005638123,
-0.17600484192371368,
-0.6123067140579224,
-1.0189603567123413,
1.2684961557388306,
2.037594795227051,
1.0326206684112549,
0.1027127206325531,
-0.7947538495063782,
-0.7730505466461182,
-0.0384259968996048,
0.14180199801921844,
0.5665819048881531,
0.9340365529060364,
0.03249649703502655,
0.06129974499344826,
1.2876309156417847,
1.1718088388442993,
-0.3541872203350067,
0.38223031163215637,
-0.8588184118270874,
-0.4467441737651825,
0.4121202230453491,
0.2608020305633545,
0.007466488517820835,
0.3485439419746399,
-1.0343236923217773,
-0.20120930671691895,
-0.3594076633453369,
-0.82073974609375,
-0.7539194822311401,
-0.39656180143356323,
-0.3974001407623291,
1.631977915763855,
0.0869210883975029,
-0.5356523394584656,
0.03382260724902153,
-0.6886394023895264,
-0.08983830362558365,
-1.1240814924240112,
0.19238854944705963,
-0.13390682637691498,
-0.11804307997226715,
-0.09411947429180145,
1.5987719297409058,
-0.9060934782028198,
-2.1414005756378174,
0.20714020729064941,
0.23293840885162354,
-0.3610650897026062,
0.1696798950433731,
1.7081104516983032,
0.49887579679489136,
1.4110337495803833,
1.3703587055206299,
1.0174821615219116,
-0.6648986339569092,
-1.255874514579773,
0.7305397987365723,
0.8711697459220886,
-1.3915215730667114,
0.8875351548194885,
-0.055887576192617416,
-0.5125802755355835,
0.6095615029335022,
1.2924888134002686,
0.47322407364845276,
-2.0349347591400146,
0.9116463661193848,
-0.9786221981048584,
0.7941464781761169,
0.7807414531707764,
0.7714515328407288,
0.2673463225364685,
0.8266734480857849,
-1.1877694129943848,
-1.2073613405227661,
-0.686370849609375,
-0.7503151893615723,
1.9003506898880005,
-0.3006671071052551,
0.5845129489898682,
-0.09481355547904968,
-1.274228811264038,
-0.18531543016433716,
0.7698746919631958,
0.3985372483730316,
-0.4298521876335144,
0.8468557596206665,
-0.6480663418769836,
-0.9938225746154785,
-1.3048819303512573,
-0.45272502303123474,
-1.086867332458496,
-0.908661961555481,
0.981162965297699,
0.7983056306838989,
0.4321610927581787,
1.8837265968322754,
0.6655076146125793,
0.33069372177124023,
-2.5772812366485596,
0.9012133479118347,
0.3899919092655182,
-0.1164841279387474,
0.8133838772773743,
0.3097606897354126,
1.0903209447860718,
0.018509801477193832,
0.6414077281951904,
-2.384675979614258,
2.2772269248962402,
-0.21570292115211487,
0.6263805031776428,
-0.021933358162641525,
-0.1754019558429718,
1.153302550315857,
0.5683140158653259,
0.5449026823043823,
-1.1305207014083862,
0.7943546772003174,
-0.6072681546211243,
1.1672158241271973,
0.8444135785102844,
-0.9138373732566833,
0.0844084694981575,
1.4776599407196045,
0.4338153004646301,
-0.5898798108100891,
-0.9695457816123962,
-0.964612603187561,
0.9758743643760681,
1.7192661762237549,
-0.062050238251686096,
-0.028716813772916794,
0.9103127121925354,
0.6701670289039612,
-1.2489792108535767,
0.03616589680314064,
-0.6582447290420532,
-0.6857039928436279,
1.6809818744659424,
2.042865753173828,
-0.13356338441371918,
-0.2495882213115692,
-0.7972837686538696,
-1.3103824853897095,
0.7620494961738586,
-0.024564595893025398,
0.014163236133754253,
0.701738178730011,
-0.6504037976264954,
1.1040027141571045,
0.7207214832305908,
0.9829180836677551,
0.07911467552185059,
0.23658236861228943,
0.40658625960350037,
-0.3819456398487091,
-1.1238608360290527,
-0.2651198208332062,
-1.155806541442871,
-2.5206730365753174,
0.3582878112792969,
-0.24617315828800201,
-1.444240927696228,
0.04137367382645607,
-1.0220611095428467,
0.8658166527748108,
-0.596747875213623,
-1.1690682172775269,
-1.4858847856521606,
0.27549323439598083,
-0.124195896089077,
0.8688755631446838,
-1.6494537591934204,
-0.16310611367225647,
1.2179878950119019,
0.8136535286903381,
-0.6952535510063171,
0.9075143337249756,
0.19994531571865082,
0.997154176235199,
0.8245577216148376,
-0.3658524453639984,
0.5860274434089661,
-0.027293618768453598,
-1.3324542045593262,
0.436606228351593,
1.2201216220855713,
0.13848941028118134,
1.3918094635009766,
-0.5203527212142944,
0.04129275307059288,
0.40585628151893616,
-0.5345935821533203,
-0.5368354916572571,
-0.46970221400260925,
0.7351785898208618,
-0.027869444340467453,
-0.9442132115364075,
-0.04478848725557327,
-0.07321973145008087,
-0.32421934604644775,
0.19791679084300995,
-1.4980450868606567,
-0.1759658008813858,
-0.3550759553909302,
-0.5446197390556335,
-1.3070662021636963,
0.0007366007193922997,
1.3676881790161133,
-0.7312538027763367,
-0.23115184903144836,
0.4706878364086151,
0.3806515634059906,
0.5305399894714355,
0.6248136758804321,
-0.7334347367286682,
-0.24560286104679108,
-0.32628628611564636,
-0.3330787420272827,
0.30618664622306824,
1.3299474716186523,
-0.05256514996290207,
-0.9271502494812012,
0.670837938785553,
-0.35318487882614136,
0.12045691162347794,
1.944673776626587,
0.06084105744957924,
-0.7390353679656982,
0.31206175684928894,
-0.7688798904418945,
1.8656044006347656,
1.777951717376709,
1.2954565286636353,
-0.034962188452482224,
-1.0028449296951294,
0.5729559063911438,
-0.27177712321281433,
-0.31935566663742065,
0.9061789512634277,
0.38126838207244873,
-0.2839735448360443,
-1.4187432527542114,
0.7277187705039978,
1.1800577640533447,
-0.7450852990150452,
-0.8035045862197876,
0.09513155370950699,
-0.8989228010177612,
1.2059745788574219,
0.5763342380523682,
0.33297741413116455,
0.22320586442947388,
1.6344531774520874,
0.7567206025123596,
-0.4538254737854004,
0.5294429063796997,
0.5833489298820496,
-0.21448944509029388,
-2.1158618927001953,
-1.1107107400894165,
0.32288193702697754,
-0.4195615351200104,
-1.6125329732894897,
1.3533644676208496,
-1.1596659421920776,
-0.9913483262062073,
0.5293236970901489,
0.07257653772830963,
1.4167755842208862,
0.3478182256221771,
1.6835576295852661,
2.143578290939331,
0.9611176252365112,
0.43803057074546814,
1.2517995834350586,
-0.2156001329421997,
-0.4492306709289551,
1.8154386281967163,
-0.45114201307296753,
0.4094456732273102,
1.0898773670196533,
-0.410121351480484,
-1.1495558023452759,
-0.7983534336090088,
-1.161502480506897,
-0.6639454960823059,
1.1521958112716675,
0.04759562388062477,
-1.070610761642456,
0.30708155035972595,
1.5930784940719604,
0.1295613944530487,
-0.20851828157901764,
0.6972835659980774,
0.4213953912258148,
-0.7585194706916809,
-0.030215326696634293,
-0.8819595575332642,
0.5650939345359802,
-0.18648573756217957,
-0.33454522490501404,
0.36605653166770935,
0.49442100524902344,
1.328126072883606,
-0.0774458572268486,
0.15736769139766693,
1.1003525257110596,
-1.429910659790039,
1.455661654472351,
-0.6468491554260254,
0.3054923415184021,
-2.373232126235962,
1.4213669300079346,
-0.8225035071372986,
2.0158185958862305,
-2.5427181720733643,
0.40359070897102356,
-0.5925984382629395,
-0.48344752192497253,
0.2905476987361908,
-0.3779946267604828,
0.02229512482881546,
-0.15146315097808838,
-1.0800471305847168,
-0.07782576978206635,
-0.7412011623382568,
0.6089487075805664,
1.2082841396331787,
1.3640718460083008,
-1.0785326957702637,
-0.25073304772377014,
-1.69828200340271,
-0.15519782900810242,
-0.7357625961303711,
0.3411356508731842,
-1.9539389610290527,
-0.17517445981502533,
-2.0240142345428467,
-2.3079681396484375,
-1.2734472751617432,
-0.8591833114624023,
1.0265870094299316,
0.17389324307441711,
-0.8874174952507019,
1.2385292053222656,
-0.3261457085609436,
-1.8157798051834106,
1.1615747213363647,
-2.2166244983673096
] |
https://github.com/huggingface/datasets/issues/5351 | Do we need to implement `_prepare_split`? | ok, that makes sense. thank you @mariosasko. I realized i'd never looked on the hub at any of the files associated with any datasets. just did that now and it appears that i'll need to have a script regardless _but_ that will just contain my custom config and builder classes, so without realizing it I was already making my script, I just need to wrap that in a file that sits alongside my data (I looked at Glue and realized I was already doing what I thought didn't make sense to have to do, lol).
`download_and_prepare` isn't returning me a dataset though, but I'll look into that and open another issue if I can't figure it out. | ### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 377 | 117 | Do we need to implement `_prepare_split`?
### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
ok, that makes sense. thank you @mariosasko. I realized i'd never looked on the hub at any of the files associated with any datasets. just did that now and it appears that i'll need to have a script regardless _but_ that will just contain my custom config and builder classes, so without realizing it I was already making my script, I just need to wrap that in a file that sits alongside my data (I looked at Glue and realized I was already doing what I thought didn't make sense to have to do, lol).
`download_and_prepare` isn't returning me a dataset though, but I'll look into that and open another issue if I can't figure it out. | [
-1.1564629077911377,
-0.9498602747917175,
-0.663374125957489,
1.4442986249923706,
-0.10583754628896713,
-1.330580234527588,
0.14666317403316498,
-1.096006155014038,
1.5908504724502563,
-0.7755786180496216,
0.2561314105987549,
-1.64324951171875,
0.0009109014645218849,
-0.5524017810821533,
-0.7539600729942322,
-0.8674906492233276,
-0.40539678931236267,
-0.8347030878067017,
1.090440034866333,
2.49111270904541,
1.3073545694351196,
-1.3592675924301147,
2.6914243698120117,
0.6253315806388855,
-0.25068217515945435,
-1.0284806489944458,
0.5118100047111511,
-0.08683808147907257,
-1.244111180305481,
-0.44190430641174316,
-0.8866837620735168,
-0.02659996971487999,
-0.5436497926712036,
-0.44842851161956787,
0.020160146057605743,
0.507144033908844,
-0.2853304445743561,
-0.3522126376628876,
-0.5469552278518677,
-0.7873325943946838,
0.5138752460479736,
-0.39047810435295105,
0.9771408438682556,
-0.2916063368320465,
1.7428398132324219,
-0.5489139556884766,
0.5562779903411865,
0.7052303552627563,
1.323817491531372,
0.2096545547246933,
0.04410451278090477,
0.274929404258728,
0.3526633381843567,
-0.013621739111840725,
0.5801300406455994,
1.1732457876205444,
0.6227781176567078,
0.5495607852935791,
0.6936177611351013,
-2.2312402725219727,
1.2467851638793945,
-0.8898006677627563,
0.25347813963890076,
1.3205538988113403,
-0.8416476845741272,
0.2985175848007202,
-1.7818101644515991,
-0.023926209658384323,
0.626913845539093,
-2.219168186187744,
0.2871083915233612,
-1.2484748363494873,
-0.4404938817024231,
0.9812764525413513,
0.3844491243362427,
-1.1995611190795898,
0.17814722657203674,
-0.4682336151599884,
1.0708445310592651,
0.4985090494155884,
1.0634267330169678,
-1.6850014925003052,
-0.07276272028684616,
-0.12144693732261658,
0.09427030384540558,
-1.2751214504241943,
-1.616385817527771,
0.49936777353286743,
0.6314769387245178,
0.601296067237854,
-0.12011171132326126,
1.0285768508911133,
-1.0327154397964478,
0.7683276534080505,
-0.9833645820617676,
-1.7085256576538086,
-1.3746590614318848,
-2.381073474884033,
-2.2604963779449463,
0.7647416591644287,
-0.5077292323112488,
-0.505199134349823,
2.139141321182251,
-0.9762452244758606,
-1.7382080554962158,
1.0784868001937866,
0.2431776374578476,
0.06848800927400589,
2.3521018028259277,
0.16266687214374542,
-0.7607546448707581,
0.5209259390830994,
-0.7144909501075745,
0.7387741804122925,
-0.39588698744773865,
1.252274990081787,
0.4191671311855316,
-1.0772514343261719,
1.5892210006713867,
-0.40179985761642456,
0.6249086856842041,
-0.7159730195999146,
-0.5217868089675903,
-0.7206072807312012,
0.3132014870643616,
1.8762284517288208,
-0.33961737155914307,
1.5194368362426758,
-0.32035568356513977,
-1.5336531400680542,
-1.5990382432937622,
0.8680450320243835,
0.4627731740474701,
-0.8155038356781006,
0.09122943878173828,
-0.48781535029411316,
0.2082277536392212,
-0.06082328408956528,
1.128096342086792,
1.2877923250198364,
0.7558377981185913,
-0.3190732002258301,
-0.8446569442749023,
0.25557368993759155,
-0.1556096076965332,
-0.6958494782447815,
-1.7885955572128296,
-0.3052981197834015,
0.17082178592681885,
0.5933625102043152,
-1.1116772890090942,
1.8696622848510742,
0.8560017347335815,
1.9921929836273193,
0.9572242498397827,
-0.3342181444168091,
1.4478574991226196,
0.06541766226291656,
1.9272236824035645,
-0.4427891969680786,
0.5949949622154236,
-0.39413365721702576,
-1.1338410377502441,
0.8701661825180054,
-0.3614889085292816,
-1.9595794677734375,
-0.7341879606246948,
-0.8264647722244263,
-0.17505481839179993,
-0.708142101764679,
0.8774099349975586,
-0.2663131654262543,
-1.4149501323699951,
0.11569773405790329,
-0.7542639970779419,
0.2199944108724594,
-1.2592239379882812,
0.3063918948173523,
0.7784298062324524,
-0.6639541983604431,
0.04141148552298546,
-0.3063095510005951,
-1.2594068050384521,
-0.5460323095321655,
0.4466667175292969,
1.9278122186660767,
-0.6600537300109863,
0.9300511479377747,
1.011794090270996,
-0.7280043363571167,
0.03813764452934265,
0.2915889322757721,
-0.3372534513473511,
0.7900884747505188,
-1.0482622385025024,
-0.39814725518226624,
1.2299141883850098,
-0.3695739805698395,
-0.7544583678245544,
1.4501296281814575,
0.7863385081291199,
-1.0509814023971558,
-0.20092853903770447,
-0.18119466304779053,
-0.876839280128479,
0.015529326163232327,
-1.569655179977417,
-0.12916986644268036,
0.4387114942073822,
-1.5323073863983154,
-0.4060429632663727,
-0.15828348696231842,
1.3243621587753296,
-0.13921552896499634,
1.479224443435669,
-0.33318212628364563,
-0.1262056529521942,
-0.3214600384235382,
-0.538142204284668,
0.1865719109773636,
-0.25583040714263916,
-0.5980302095413208,
0.17820009589195251,
-0.7133988738059998,
0.29234805703163147,
1.4261348247528076,
0.2827163338661194,
0.030307937413454056,
0.4866514205932617,
1.1270930767059326,
0.37554773688316345,
-0.09323905408382416,
-0.8659719228744507,
-1.5276507139205933,
1.985545039176941,
-1.3766818046569824,
1.9685890674591064,
0.796990156173706,
-0.12539328634738922,
-1.7223299741744995,
-1.943402647972107,
1.2971711158752441,
1.0976943969726562,
2.3299427032470703,
0.49259698390960693,
0.4547470510005951,
-0.7977319359779358,
-0.7149744033813477,
0.3336649239063263,
-0.9496043920516968,
-0.7331341505050659,
0.07010006904602051,
2.3565030097961426,
1.8225458860397339,
-0.4789726436138153,
-0.2311103343963623,
-0.9668517708778381,
1.3721799850463867,
-0.2531738877296448,
0.2692728638648987,
2.0086100101470947,
-0.25003552436828613,
-1.0128575563430786,
1.3398571014404297,
-2.37532639503479,
0.27889758348464966,
2.115629196166992,
0.20042608678340912,
0.11211490631103516,
-1.3850890398025513,
-0.6014786958694458,
-0.2301217019557953,
-0.38556089997291565,
-1.1824657917022705,
0.5414159893989563,
-0.2159890979528427,
-0.7475156188011169,
-1.3930753469467163,
0.13728395104408264,
-1.1351197957992554,
-1.7050246000289917,
0.23927702009677887,
2.012388229370117,
2.0520071983337402,
-0.7621761560440063,
1.5114890336990356,
-0.22967028617858887,
0.08344762027263641,
1.2601089477539062,
1.3046258687973022,
3.1649277210235596,
1.8914395570755005,
-1.3264226913452148,
0.6760744452476501,
-0.20314453542232513,
-0.5631694197654724,
1.185669183731079,
-1.104954719543457,
1.1327316761016846,
-0.21271631121635437,
-1.2313809394836426,
-1.2939273118972778,
0.9873712658882141,
0.5158125758171082,
0.025481365621089935,
-0.4924657642841339,
1.1772260665893555,
0.15745796263217926,
1.2910624742507935,
0.5986789464950562,
-0.3793202340602875,
0.6575230956077576,
-0.34905344247817993,
-0.5723183751106262,
1.5220750570297241,
0.23512719571590424,
-1.4771002531051636,
-2.314833641052246,
-0.24035222828388214,
-0.989816427230835,
0.05458572134375572,
-0.6313184499740601,
-1.0164166688919067,
1.5855330228805542,
0.41652029752731323,
-1.204595685005188,
-0.32203954458236694,
-0.26826635003089905,
-0.6159901022911072,
2.6673202514648438,
-1.296557068824768,
-0.1959097683429718,
-0.9832245111465454,
-0.6201346516609192,
1.646789789199829,
-1.3081531524658203,
-0.2536858916282654,
-1.0449162721633911,
-0.5633188486099243,
-1.204432725906372,
-0.4156692326068878,
0.00017940066754817963,
-1.0350329875946045,
0.8815065622329712,
0.20566467940807343,
-1.2380343675613403,
-0.27396827936172485,
-0.8543654084205627,
0.9676741361618042,
-0.17954851686954498,
0.19348452985286713,
1.8297902345657349,
0.3837759792804718,
-0.4612348675727844,
0.702591061592102,
1.1624724864959717,
0.6379249095916748,
-0.6234326958656311,
0.1226920410990715,
-0.6428767442703247,
0.4060932397842407,
-1.344262719154358,
0.22438135743141174,
-2.9140398502349854,
0.6981197595596313,
-0.1339835375547409,
-0.12728069722652435,
-0.10684055835008621,
-1.3465044498443604,
1.0124449729919434,
2.5713601112365723,
-1.2336301803588867,
0.5177386403083801,
0.36035025119781494,
1.2439528703689575,
-1.6612108945846558,
0.24558381736278534,
-0.45589688420295715,
2.098037004470825,
0.1471700370311737,
1.1919119358062744,
-0.4455353319644928,
-2.262268304824829,
0.6005784273147583,
-1.1980524063110352,
-1.1207102537155151,
0.7814950942993164,
-0.8190786838531494,
0.1668454110622406,
-1.3703157901763916,
-0.18261797726154327,
-0.8361983895301819,
-1.1715487241744995,
0.6985576748847961,
0.06842677295207977,
0.42135754227638245,
-0.6395373344421387,
0.336136132478714,
-2.154599905014038,
-1.3874353170394897,
-0.27940091490745544,
-0.9733956456184387,
0.4419567883014679,
-0.41470077633857727,
0.6238090395927429,
-0.16768954694271088,
0.037147946655750275,
0.2500651776790619,
1.4804905652999878,
3.4421114921569824,
0.17771697044372559,
0.24483223259449005,
-0.19648662209510803,
-0.9977810978889465,
1.5157930850982666,
0.8317613005638123,
-0.17600484192371368,
-0.6123067140579224,
-1.0189603567123413,
1.2684961557388306,
2.037594795227051,
1.0326206684112549,
0.1027127206325531,
-0.7947538495063782,
-0.7730505466461182,
-0.0384259968996048,
0.14180199801921844,
0.5665819048881531,
0.9340365529060364,
0.03249649703502655,
0.06129974499344826,
1.2876309156417847,
1.1718088388442993,
-0.3541872203350067,
0.38223031163215637,
-0.8588184118270874,
-0.4467441737651825,
0.4121202230453491,
0.2608020305633545,
0.007466488517820835,
0.3485439419746399,
-1.0343236923217773,
-0.20120930671691895,
-0.3594076633453369,
-0.82073974609375,
-0.7539194822311401,
-0.39656180143356323,
-0.3974001407623291,
1.631977915763855,
0.0869210883975029,
-0.5356523394584656,
0.03382260724902153,
-0.6886394023895264,
-0.08983830362558365,
-1.1240814924240112,
0.19238854944705963,
-0.13390682637691498,
-0.11804307997226715,
-0.09411947429180145,
1.5987719297409058,
-0.9060934782028198,
-2.1414005756378174,
0.20714020729064941,
0.23293840885162354,
-0.3610650897026062,
0.1696798950433731,
1.7081104516983032,
0.49887579679489136,
1.4110337495803833,
1.3703587055206299,
1.0174821615219116,
-0.6648986339569092,
-1.255874514579773,
0.7305397987365723,
0.8711697459220886,
-1.3915215730667114,
0.8875351548194885,
-0.055887576192617416,
-0.5125802755355835,
0.6095615029335022,
1.2924888134002686,
0.47322407364845276,
-2.0349347591400146,
0.9116463661193848,
-0.9786221981048584,
0.7941464781761169,
0.7807414531707764,
0.7714515328407288,
0.2673463225364685,
0.8266734480857849,
-1.1877694129943848,
-1.2073613405227661,
-0.686370849609375,
-0.7503151893615723,
1.9003506898880005,
-0.3006671071052551,
0.5845129489898682,
-0.09481355547904968,
-1.274228811264038,
-0.18531543016433716,
0.7698746919631958,
0.3985372483730316,
-0.4298521876335144,
0.8468557596206665,
-0.6480663418769836,
-0.9938225746154785,
-1.3048819303512573,
-0.45272502303123474,
-1.086867332458496,
-0.908661961555481,
0.981162965297699,
0.7983056306838989,
0.4321610927581787,
1.8837265968322754,
0.6655076146125793,
0.33069372177124023,
-2.5772812366485596,
0.9012133479118347,
0.3899919092655182,
-0.1164841279387474,
0.8133838772773743,
0.3097606897354126,
1.0903209447860718,
0.018509801477193832,
0.6414077281951904,
-2.384675979614258,
2.2772269248962402,
-0.21570292115211487,
0.6263805031776428,
-0.021933358162641525,
-0.1754019558429718,
1.153302550315857,
0.5683140158653259,
0.5449026823043823,
-1.1305207014083862,
0.7943546772003174,
-0.6072681546211243,
1.1672158241271973,
0.8444135785102844,
-0.9138373732566833,
0.0844084694981575,
1.4776599407196045,
0.4338153004646301,
-0.5898798108100891,
-0.9695457816123962,
-0.964612603187561,
0.9758743643760681,
1.7192661762237549,
-0.062050238251686096,
-0.028716813772916794,
0.9103127121925354,
0.6701670289039612,
-1.2489792108535767,
0.03616589680314064,
-0.6582447290420532,
-0.6857039928436279,
1.6809818744659424,
2.042865753173828,
-0.13356338441371918,
-0.2495882213115692,
-0.7972837686538696,
-1.3103824853897095,
0.7620494961738586,
-0.024564595893025398,
0.014163236133754253,
0.701738178730011,
-0.6504037976264954,
1.1040027141571045,
0.7207214832305908,
0.9829180836677551,
0.07911467552185059,
0.23658236861228943,
0.40658625960350037,
-0.3819456398487091,
-1.1238608360290527,
-0.2651198208332062,
-1.155806541442871,
-2.5206730365753174,
0.3582878112792969,
-0.24617315828800201,
-1.444240927696228,
0.04137367382645607,
-1.0220611095428467,
0.8658166527748108,
-0.596747875213623,
-1.1690682172775269,
-1.4858847856521606,
0.27549323439598083,
-0.124195896089077,
0.8688755631446838,
-1.6494537591934204,
-0.16310611367225647,
1.2179878950119019,
0.8136535286903381,
-0.6952535510063171,
0.9075143337249756,
0.19994531571865082,
0.997154176235199,
0.8245577216148376,
-0.3658524453639984,
0.5860274434089661,
-0.027293618768453598,
-1.3324542045593262,
0.436606228351593,
1.2201216220855713,
0.13848941028118134,
1.3918094635009766,
-0.5203527212142944,
0.04129275307059288,
0.40585628151893616,
-0.5345935821533203,
-0.5368354916572571,
-0.46970221400260925,
0.7351785898208618,
-0.027869444340467453,
-0.9442132115364075,
-0.04478848725557327,
-0.07321973145008087,
-0.32421934604644775,
0.19791679084300995,
-1.4980450868606567,
-0.1759658008813858,
-0.3550759553909302,
-0.5446197390556335,
-1.3070662021636963,
0.0007366007193922997,
1.3676881790161133,
-0.7312538027763367,
-0.23115184903144836,
0.4706878364086151,
0.3806515634059906,
0.5305399894714355,
0.6248136758804321,
-0.7334347367286682,
-0.24560286104679108,
-0.32628628611564636,
-0.3330787420272827,
0.30618664622306824,
1.3299474716186523,
-0.05256514996290207,
-0.9271502494812012,
0.670837938785553,
-0.35318487882614136,
0.12045691162347794,
1.944673776626587,
0.06084105744957924,
-0.7390353679656982,
0.31206175684928894,
-0.7688798904418945,
1.8656044006347656,
1.777951717376709,
1.2954565286636353,
-0.034962188452482224,
-1.0028449296951294,
0.5729559063911438,
-0.27177712321281433,
-0.31935566663742065,
0.9061789512634277,
0.38126838207244873,
-0.2839735448360443,
-1.4187432527542114,
0.7277187705039978,
1.1800577640533447,
-0.7450852990150452,
-0.8035045862197876,
0.09513155370950699,
-0.8989228010177612,
1.2059745788574219,
0.5763342380523682,
0.33297741413116455,
0.22320586442947388,
1.6344531774520874,
0.7567206025123596,
-0.4538254737854004,
0.5294429063796997,
0.5833489298820496,
-0.21448944509029388,
-2.1158618927001953,
-1.1107107400894165,
0.32288193702697754,
-0.4195615351200104,
-1.6125329732894897,
1.3533644676208496,
-1.1596659421920776,
-0.9913483262062073,
0.5293236970901489,
0.07257653772830963,
1.4167755842208862,
0.3478182256221771,
1.6835576295852661,
2.143578290939331,
0.9611176252365112,
0.43803057074546814,
1.2517995834350586,
-0.2156001329421997,
-0.4492306709289551,
1.8154386281967163,
-0.45114201307296753,
0.4094456732273102,
1.0898773670196533,
-0.410121351480484,
-1.1495558023452759,
-0.7983534336090088,
-1.161502480506897,
-0.6639454960823059,
1.1521958112716675,
0.04759562388062477,
-1.070610761642456,
0.30708155035972595,
1.5930784940719604,
0.1295613944530487,
-0.20851828157901764,
0.6972835659980774,
0.4213953912258148,
-0.7585194706916809,
-0.030215326696634293,
-0.8819595575332642,
0.5650939345359802,
-0.18648573756217957,
-0.33454522490501404,
0.36605653166770935,
0.49442100524902344,
1.328126072883606,
-0.0774458572268486,
0.15736769139766693,
1.1003525257110596,
-1.429910659790039,
1.455661654472351,
-0.6468491554260254,
0.3054923415184021,
-2.373232126235962,
1.4213669300079346,
-0.8225035071372986,
2.0158185958862305,
-2.5427181720733643,
0.40359070897102356,
-0.5925984382629395,
-0.48344752192497253,
0.2905476987361908,
-0.3779946267604828,
0.02229512482881546,
-0.15146315097808838,
-1.0800471305847168,
-0.07782576978206635,
-0.7412011623382568,
0.6089487075805664,
1.2082841396331787,
1.3640718460083008,
-1.0785326957702637,
-0.25073304772377014,
-1.69828200340271,
-0.15519782900810242,
-0.7357625961303711,
0.3411356508731842,
-1.9539389610290527,
-0.17517445981502533,
-2.0240142345428467,
-2.3079681396484375,
-1.2734472751617432,
-0.8591833114624023,
1.0265870094299316,
0.17389324307441711,
-0.8874174952507019,
1.2385292053222656,
-0.3261457085609436,
-1.8157798051834106,
1.1615747213363647,
-2.2166244983673096
] |
https://github.com/huggingface/datasets/issues/5351 | Do we need to implement `_prepare_split`? | `download_and_prepare` downloads and prepares the arrow files. You need to call `as_dataset` on the builder to get the dataset. | ### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 377 | 19 | Do we need to implement `_prepare_split`?
### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
`download_and_prepare` downloads and prepares the arrow files. You need to call `as_dataset` on the builder to get the dataset. | [
-1.1564629077911377,
-0.9498602747917175,
-0.663374125957489,
1.4442986249923706,
-0.10583754628896713,
-1.330580234527588,
0.14666317403316498,
-1.096006155014038,
1.5908504724502563,
-0.7755786180496216,
0.2561314105987549,
-1.64324951171875,
0.0009109014645218849,
-0.5524017810821533,
-0.7539600729942322,
-0.8674906492233276,
-0.40539678931236267,
-0.8347030878067017,
1.090440034866333,
2.49111270904541,
1.3073545694351196,
-1.3592675924301147,
2.6914243698120117,
0.6253315806388855,
-0.25068217515945435,
-1.0284806489944458,
0.5118100047111511,
-0.08683808147907257,
-1.244111180305481,
-0.44190430641174316,
-0.8866837620735168,
-0.02659996971487999,
-0.5436497926712036,
-0.44842851161956787,
0.020160146057605743,
0.507144033908844,
-0.2853304445743561,
-0.3522126376628876,
-0.5469552278518677,
-0.7873325943946838,
0.5138752460479736,
-0.39047810435295105,
0.9771408438682556,
-0.2916063368320465,
1.7428398132324219,
-0.5489139556884766,
0.5562779903411865,
0.7052303552627563,
1.323817491531372,
0.2096545547246933,
0.04410451278090477,
0.274929404258728,
0.3526633381843567,
-0.013621739111840725,
0.5801300406455994,
1.1732457876205444,
0.6227781176567078,
0.5495607852935791,
0.6936177611351013,
-2.2312402725219727,
1.2467851638793945,
-0.8898006677627563,
0.25347813963890076,
1.3205538988113403,
-0.8416476845741272,
0.2985175848007202,
-1.7818101644515991,
-0.023926209658384323,
0.626913845539093,
-2.219168186187744,
0.2871083915233612,
-1.2484748363494873,
-0.4404938817024231,
0.9812764525413513,
0.3844491243362427,
-1.1995611190795898,
0.17814722657203674,
-0.4682336151599884,
1.0708445310592651,
0.4985090494155884,
1.0634267330169678,
-1.6850014925003052,
-0.07276272028684616,
-0.12144693732261658,
0.09427030384540558,
-1.2751214504241943,
-1.616385817527771,
0.49936777353286743,
0.6314769387245178,
0.601296067237854,
-0.12011171132326126,
1.0285768508911133,
-1.0327154397964478,
0.7683276534080505,
-0.9833645820617676,
-1.7085256576538086,
-1.3746590614318848,
-2.381073474884033,
-2.2604963779449463,
0.7647416591644287,
-0.5077292323112488,
-0.505199134349823,
2.139141321182251,
-0.9762452244758606,
-1.7382080554962158,
1.0784868001937866,
0.2431776374578476,
0.06848800927400589,
2.3521018028259277,
0.16266687214374542,
-0.7607546448707581,
0.5209259390830994,
-0.7144909501075745,
0.7387741804122925,
-0.39588698744773865,
1.252274990081787,
0.4191671311855316,
-1.0772514343261719,
1.5892210006713867,
-0.40179985761642456,
0.6249086856842041,
-0.7159730195999146,
-0.5217868089675903,
-0.7206072807312012,
0.3132014870643616,
1.8762284517288208,
-0.33961737155914307,
1.5194368362426758,
-0.32035568356513977,
-1.5336531400680542,
-1.5990382432937622,
0.8680450320243835,
0.4627731740474701,
-0.8155038356781006,
0.09122943878173828,
-0.48781535029411316,
0.2082277536392212,
-0.06082328408956528,
1.128096342086792,
1.2877923250198364,
0.7558377981185913,
-0.3190732002258301,
-0.8446569442749023,
0.25557368993759155,
-0.1556096076965332,
-0.6958494782447815,
-1.7885955572128296,
-0.3052981197834015,
0.17082178592681885,
0.5933625102043152,
-1.1116772890090942,
1.8696622848510742,
0.8560017347335815,
1.9921929836273193,
0.9572242498397827,
-0.3342181444168091,
1.4478574991226196,
0.06541766226291656,
1.9272236824035645,
-0.4427891969680786,
0.5949949622154236,
-0.39413365721702576,
-1.1338410377502441,
0.8701661825180054,
-0.3614889085292816,
-1.9595794677734375,
-0.7341879606246948,
-0.8264647722244263,
-0.17505481839179993,
-0.708142101764679,
0.8774099349975586,
-0.2663131654262543,
-1.4149501323699951,
0.11569773405790329,
-0.7542639970779419,
0.2199944108724594,
-1.2592239379882812,
0.3063918948173523,
0.7784298062324524,
-0.6639541983604431,
0.04141148552298546,
-0.3063095510005951,
-1.2594068050384521,
-0.5460323095321655,
0.4466667175292969,
1.9278122186660767,
-0.6600537300109863,
0.9300511479377747,
1.011794090270996,
-0.7280043363571167,
0.03813764452934265,
0.2915889322757721,
-0.3372534513473511,
0.7900884747505188,
-1.0482622385025024,
-0.39814725518226624,
1.2299141883850098,
-0.3695739805698395,
-0.7544583678245544,
1.4501296281814575,
0.7863385081291199,
-1.0509814023971558,
-0.20092853903770447,
-0.18119466304779053,
-0.876839280128479,
0.015529326163232327,
-1.569655179977417,
-0.12916986644268036,
0.4387114942073822,
-1.5323073863983154,
-0.4060429632663727,
-0.15828348696231842,
1.3243621587753296,
-0.13921552896499634,
1.479224443435669,
-0.33318212628364563,
-0.1262056529521942,
-0.3214600384235382,
-0.538142204284668,
0.1865719109773636,
-0.25583040714263916,
-0.5980302095413208,
0.17820009589195251,
-0.7133988738059998,
0.29234805703163147,
1.4261348247528076,
0.2827163338661194,
0.030307937413454056,
0.4866514205932617,
1.1270930767059326,
0.37554773688316345,
-0.09323905408382416,
-0.8659719228744507,
-1.5276507139205933,
1.985545039176941,
-1.3766818046569824,
1.9685890674591064,
0.796990156173706,
-0.12539328634738922,
-1.7223299741744995,
-1.943402647972107,
1.2971711158752441,
1.0976943969726562,
2.3299427032470703,
0.49259698390960693,
0.4547470510005951,
-0.7977319359779358,
-0.7149744033813477,
0.3336649239063263,
-0.9496043920516968,
-0.7331341505050659,
0.07010006904602051,
2.3565030097961426,
1.8225458860397339,
-0.4789726436138153,
-0.2311103343963623,
-0.9668517708778381,
1.3721799850463867,
-0.2531738877296448,
0.2692728638648987,
2.0086100101470947,
-0.25003552436828613,
-1.0128575563430786,
1.3398571014404297,
-2.37532639503479,
0.27889758348464966,
2.115629196166992,
0.20042608678340912,
0.11211490631103516,
-1.3850890398025513,
-0.6014786958694458,
-0.2301217019557953,
-0.38556089997291565,
-1.1824657917022705,
0.5414159893989563,
-0.2159890979528427,
-0.7475156188011169,
-1.3930753469467163,
0.13728395104408264,
-1.1351197957992554,
-1.7050246000289917,
0.23927702009677887,
2.012388229370117,
2.0520071983337402,
-0.7621761560440063,
1.5114890336990356,
-0.22967028617858887,
0.08344762027263641,
1.2601089477539062,
1.3046258687973022,
3.1649277210235596,
1.8914395570755005,
-1.3264226913452148,
0.6760744452476501,
-0.20314453542232513,
-0.5631694197654724,
1.185669183731079,
-1.104954719543457,
1.1327316761016846,
-0.21271631121635437,
-1.2313809394836426,
-1.2939273118972778,
0.9873712658882141,
0.5158125758171082,
0.025481365621089935,
-0.4924657642841339,
1.1772260665893555,
0.15745796263217926,
1.2910624742507935,
0.5986789464950562,
-0.3793202340602875,
0.6575230956077576,
-0.34905344247817993,
-0.5723183751106262,
1.5220750570297241,
0.23512719571590424,
-1.4771002531051636,
-2.314833641052246,
-0.24035222828388214,
-0.989816427230835,
0.05458572134375572,
-0.6313184499740601,
-1.0164166688919067,
1.5855330228805542,
0.41652029752731323,
-1.204595685005188,
-0.32203954458236694,
-0.26826635003089905,
-0.6159901022911072,
2.6673202514648438,
-1.296557068824768,
-0.1959097683429718,
-0.9832245111465454,
-0.6201346516609192,
1.646789789199829,
-1.3081531524658203,
-0.2536858916282654,
-1.0449162721633911,
-0.5633188486099243,
-1.204432725906372,
-0.4156692326068878,
0.00017940066754817963,
-1.0350329875946045,
0.8815065622329712,
0.20566467940807343,
-1.2380343675613403,
-0.27396827936172485,
-0.8543654084205627,
0.9676741361618042,
-0.17954851686954498,
0.19348452985286713,
1.8297902345657349,
0.3837759792804718,
-0.4612348675727844,
0.702591061592102,
1.1624724864959717,
0.6379249095916748,
-0.6234326958656311,
0.1226920410990715,
-0.6428767442703247,
0.4060932397842407,
-1.344262719154358,
0.22438135743141174,
-2.9140398502349854,
0.6981197595596313,
-0.1339835375547409,
-0.12728069722652435,
-0.10684055835008621,
-1.3465044498443604,
1.0124449729919434,
2.5713601112365723,
-1.2336301803588867,
0.5177386403083801,
0.36035025119781494,
1.2439528703689575,
-1.6612108945846558,
0.24558381736278534,
-0.45589688420295715,
2.098037004470825,
0.1471700370311737,
1.1919119358062744,
-0.4455353319644928,
-2.262268304824829,
0.6005784273147583,
-1.1980524063110352,
-1.1207102537155151,
0.7814950942993164,
-0.8190786838531494,
0.1668454110622406,
-1.3703157901763916,
-0.18261797726154327,
-0.8361983895301819,
-1.1715487241744995,
0.6985576748847961,
0.06842677295207977,
0.42135754227638245,
-0.6395373344421387,
0.336136132478714,
-2.154599905014038,
-1.3874353170394897,
-0.27940091490745544,
-0.9733956456184387,
0.4419567883014679,
-0.41470077633857727,
0.6238090395927429,
-0.16768954694271088,
0.037147946655750275,
0.2500651776790619,
1.4804905652999878,
3.4421114921569824,
0.17771697044372559,
0.24483223259449005,
-0.19648662209510803,
-0.9977810978889465,
1.5157930850982666,
0.8317613005638123,
-0.17600484192371368,
-0.6123067140579224,
-1.0189603567123413,
1.2684961557388306,
2.037594795227051,
1.0326206684112549,
0.1027127206325531,
-0.7947538495063782,
-0.7730505466461182,
-0.0384259968996048,
0.14180199801921844,
0.5665819048881531,
0.9340365529060364,
0.03249649703502655,
0.06129974499344826,
1.2876309156417847,
1.1718088388442993,
-0.3541872203350067,
0.38223031163215637,
-0.8588184118270874,
-0.4467441737651825,
0.4121202230453491,
0.2608020305633545,
0.007466488517820835,
0.3485439419746399,
-1.0343236923217773,
-0.20120930671691895,
-0.3594076633453369,
-0.82073974609375,
-0.7539194822311401,
-0.39656180143356323,
-0.3974001407623291,
1.631977915763855,
0.0869210883975029,
-0.5356523394584656,
0.03382260724902153,
-0.6886394023895264,
-0.08983830362558365,
-1.1240814924240112,
0.19238854944705963,
-0.13390682637691498,
-0.11804307997226715,
-0.09411947429180145,
1.5987719297409058,
-0.9060934782028198,
-2.1414005756378174,
0.20714020729064941,
0.23293840885162354,
-0.3610650897026062,
0.1696798950433731,
1.7081104516983032,
0.49887579679489136,
1.4110337495803833,
1.3703587055206299,
1.0174821615219116,
-0.6648986339569092,
-1.255874514579773,
0.7305397987365723,
0.8711697459220886,
-1.3915215730667114,
0.8875351548194885,
-0.055887576192617416,
-0.5125802755355835,
0.6095615029335022,
1.2924888134002686,
0.47322407364845276,
-2.0349347591400146,
0.9116463661193848,
-0.9786221981048584,
0.7941464781761169,
0.7807414531707764,
0.7714515328407288,
0.2673463225364685,
0.8266734480857849,
-1.1877694129943848,
-1.2073613405227661,
-0.686370849609375,
-0.7503151893615723,
1.9003506898880005,
-0.3006671071052551,
0.5845129489898682,
-0.09481355547904968,
-1.274228811264038,
-0.18531543016433716,
0.7698746919631958,
0.3985372483730316,
-0.4298521876335144,
0.8468557596206665,
-0.6480663418769836,
-0.9938225746154785,
-1.3048819303512573,
-0.45272502303123474,
-1.086867332458496,
-0.908661961555481,
0.981162965297699,
0.7983056306838989,
0.4321610927581787,
1.8837265968322754,
0.6655076146125793,
0.33069372177124023,
-2.5772812366485596,
0.9012133479118347,
0.3899919092655182,
-0.1164841279387474,
0.8133838772773743,
0.3097606897354126,
1.0903209447860718,
0.018509801477193832,
0.6414077281951904,
-2.384675979614258,
2.2772269248962402,
-0.21570292115211487,
0.6263805031776428,
-0.021933358162641525,
-0.1754019558429718,
1.153302550315857,
0.5683140158653259,
0.5449026823043823,
-1.1305207014083862,
0.7943546772003174,
-0.6072681546211243,
1.1672158241271973,
0.8444135785102844,
-0.9138373732566833,
0.0844084694981575,
1.4776599407196045,
0.4338153004646301,
-0.5898798108100891,
-0.9695457816123962,
-0.964612603187561,
0.9758743643760681,
1.7192661762237549,
-0.062050238251686096,
-0.028716813772916794,
0.9103127121925354,
0.6701670289039612,
-1.2489792108535767,
0.03616589680314064,
-0.6582447290420532,
-0.6857039928436279,
1.6809818744659424,
2.042865753173828,
-0.13356338441371918,
-0.2495882213115692,
-0.7972837686538696,
-1.3103824853897095,
0.7620494961738586,
-0.024564595893025398,
0.014163236133754253,
0.701738178730011,
-0.6504037976264954,
1.1040027141571045,
0.7207214832305908,
0.9829180836677551,
0.07911467552185059,
0.23658236861228943,
0.40658625960350037,
-0.3819456398487091,
-1.1238608360290527,
-0.2651198208332062,
-1.155806541442871,
-2.5206730365753174,
0.3582878112792969,
-0.24617315828800201,
-1.444240927696228,
0.04137367382645607,
-1.0220611095428467,
0.8658166527748108,
-0.596747875213623,
-1.1690682172775269,
-1.4858847856521606,
0.27549323439598083,
-0.124195896089077,
0.8688755631446838,
-1.6494537591934204,
-0.16310611367225647,
1.2179878950119019,
0.8136535286903381,
-0.6952535510063171,
0.9075143337249756,
0.19994531571865082,
0.997154176235199,
0.8245577216148376,
-0.3658524453639984,
0.5860274434089661,
-0.027293618768453598,
-1.3324542045593262,
0.436606228351593,
1.2201216220855713,
0.13848941028118134,
1.3918094635009766,
-0.5203527212142944,
0.04129275307059288,
0.40585628151893616,
-0.5345935821533203,
-0.5368354916572571,
-0.46970221400260925,
0.7351785898208618,
-0.027869444340467453,
-0.9442132115364075,
-0.04478848725557327,
-0.07321973145008087,
-0.32421934604644775,
0.19791679084300995,
-1.4980450868606567,
-0.1759658008813858,
-0.3550759553909302,
-0.5446197390556335,
-1.3070662021636963,
0.0007366007193922997,
1.3676881790161133,
-0.7312538027763367,
-0.23115184903144836,
0.4706878364086151,
0.3806515634059906,
0.5305399894714355,
0.6248136758804321,
-0.7334347367286682,
-0.24560286104679108,
-0.32628628611564636,
-0.3330787420272827,
0.30618664622306824,
1.3299474716186523,
-0.05256514996290207,
-0.9271502494812012,
0.670837938785553,
-0.35318487882614136,
0.12045691162347794,
1.944673776626587,
0.06084105744957924,
-0.7390353679656982,
0.31206175684928894,
-0.7688798904418945,
1.8656044006347656,
1.777951717376709,
1.2954565286636353,
-0.034962188452482224,
-1.0028449296951294,
0.5729559063911438,
-0.27177712321281433,
-0.31935566663742065,
0.9061789512634277,
0.38126838207244873,
-0.2839735448360443,
-1.4187432527542114,
0.7277187705039978,
1.1800577640533447,
-0.7450852990150452,
-0.8035045862197876,
0.09513155370950699,
-0.8989228010177612,
1.2059745788574219,
0.5763342380523682,
0.33297741413116455,
0.22320586442947388,
1.6344531774520874,
0.7567206025123596,
-0.4538254737854004,
0.5294429063796997,
0.5833489298820496,
-0.21448944509029388,
-2.1158618927001953,
-1.1107107400894165,
0.32288193702697754,
-0.4195615351200104,
-1.6125329732894897,
1.3533644676208496,
-1.1596659421920776,
-0.9913483262062073,
0.5293236970901489,
0.07257653772830963,
1.4167755842208862,
0.3478182256221771,
1.6835576295852661,
2.143578290939331,
0.9611176252365112,
0.43803057074546814,
1.2517995834350586,
-0.2156001329421997,
-0.4492306709289551,
1.8154386281967163,
-0.45114201307296753,
0.4094456732273102,
1.0898773670196533,
-0.410121351480484,
-1.1495558023452759,
-0.7983534336090088,
-1.161502480506897,
-0.6639454960823059,
1.1521958112716675,
0.04759562388062477,
-1.070610761642456,
0.30708155035972595,
1.5930784940719604,
0.1295613944530487,
-0.20851828157901764,
0.6972835659980774,
0.4213953912258148,
-0.7585194706916809,
-0.030215326696634293,
-0.8819595575332642,
0.5650939345359802,
-0.18648573756217957,
-0.33454522490501404,
0.36605653166770935,
0.49442100524902344,
1.328126072883606,
-0.0774458572268486,
0.15736769139766693,
1.1003525257110596,
-1.429910659790039,
1.455661654472351,
-0.6468491554260254,
0.3054923415184021,
-2.373232126235962,
1.4213669300079346,
-0.8225035071372986,
2.0158185958862305,
-2.5427181720733643,
0.40359070897102356,
-0.5925984382629395,
-0.48344752192497253,
0.2905476987361908,
-0.3779946267604828,
0.02229512482881546,
-0.15146315097808838,
-1.0800471305847168,
-0.07782576978206635,
-0.7412011623382568,
0.6089487075805664,
1.2082841396331787,
1.3640718460083008,
-1.0785326957702637,
-0.25073304772377014,
-1.69828200340271,
-0.15519782900810242,
-0.7357625961303711,
0.3411356508731842,
-1.9539389610290527,
-0.17517445981502533,
-2.0240142345428467,
-2.3079681396484375,
-1.2734472751617432,
-0.8591833114624023,
1.0265870094299316,
0.17389324307441711,
-0.8874174952507019,
1.2385292053222656,
-0.3261457085609436,
-1.8157798051834106,
1.1615747213363647,
-2.2166244983673096
] |
https://github.com/huggingface/datasets/issues/5351 | Do we need to implement `_prepare_split`? | ok, I think I was assigning the output of `builder.download_and_prepare` but it's an inplace op, so that explains the `NoneType` i was getting back. Now I'm getting:
```
ArrowInvalid Traceback (most recent call last)
<ipython-input-7-3ed50fb87c70> in <module>
----> 1 ds = dataset_builder.as_dataset()
/databricks/python/lib/python3.8/site-packages/datasets/builder.py in as_dataset(self, split, run_post_process, ignore_verifications, in_memory)
1020
1021 # Create a dataset for each of the given splits
-> 1022 datasets = map_nested(
1023 partial(
1024 self._build_single_dataset,
/databricks/python/lib/python3.8/site-packages/datasets/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, parallel_min_length, types, disable_tqdm, desc)
442 num_proc = 1
443 if num_proc <= 1 or len(iterable) < parallel_min_length:
--> 444 mapped = [
445 _single_map_nested((function, obj, types, None, True, None))
446 for obj in logging.tqdm(iterable, disable=disable_tqdm, desc=desc)
/databricks/python/lib/python3.8/site-packages/datasets/utils/py_utils.py in <listcomp>(.0)
443 if num_proc <= 1 or len(iterable) < parallel_min_length:
444 mapped = [
--> 445 _single_map_nested((function, obj, types, None, True, None))
446 for obj in logging.tqdm(iterable, disable=disable_tqdm, desc=desc)
447 ]
/databricks/python/lib/python3.8/site-packages/datasets/utils/py_utils.py in _single_map_nested(args)
344 # Singleton first to spare some computation
345 if not isinstance(data_struct, dict) and not isinstance(data_struct, types):
--> 346 return function(data_struct)
347
348 # Reduce logging to keep things readable in multiprocessing with tqdm
/databricks/python/lib/python3.8/site-packages/datasets/builder.py in _build_single_dataset(self, split, run_post_process, ignore_verifications, in_memory)
1051
1052 # Build base dataset
-> 1053 ds = self._as_dataset(
1054 split=split,
1055 in_memory=in_memory,
/databricks/python/lib/python3.8/site-packages/datasets/builder.py in _as_dataset(self, split, in_memory)
1120 """
1121 cache_dir = self._fs._strip_protocol(self._output_dir)
-> 1122 dataset_kwargs = ArrowReader(cache_dir, self.info).read(
1123 name=self.name,
1124 instructions=split,
/databricks/python/lib/python3.8/site-packages/datasets/arrow_reader.py in read(self, name, instructions, split_infos, in_memory)
236 msg = f'Instruction "{instructions}" corresponds to no data!'
237 raise ValueError(msg)
--> 238 return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
239
240 def read_files(
/databricks/python/lib/python3.8/site-packages/datasets/arrow_reader.py in read_files(self, files, original_instructions, in_memory)
257 """
258 # Prepend path to filename
--> 259 pa_table = self._read_files(files, in_memory=in_memory)
260 # If original_instructions is not None, convert it to a human-readable NamedSplit
261 if original_instructions is not None:
/databricks/python/lib/python3.8/site-packages/datasets/arrow_reader.py in _read_files(self, files, in_memory)
192 f["filename"] = os.path.join(self._path, f["filename"])
193 for f_dict in files:
--> 194 pa_table: Table = self._get_table_from_filename(f_dict, in_memory=in_memory)
195 pa_tables.append(pa_table)
196 pa_tables = [t for t in pa_tables if len(t) > 0]
/databricks/python/lib/python3.8/site-packages/datasets/arrow_reader.py in _get_table_from_filename(self, filename_skip_take, in_memory)
327 filename_skip_take["take"] if "take" in filename_skip_take else None,
328 )
--> 329 table = ArrowReader.read_table(filename, in_memory=in_memory)
330 if take == -1:
331 take = len(table) - skip
/databricks/python/lib/python3.8/site-packages/datasets/arrow_reader.py in read_table(filename, in_memory)
348 """
349 table_cls = InMemoryTable if in_memory else MemoryMappedTable
--> 350 return table_cls.from_file(filename)
351
352
/databricks/python/lib/python3.8/site-packages/datasets/table.py in from_file(cls, filename, replays)
1034 @classmethod
1035 def from_file(cls, filename: str, replays=None):
-> 1036 table = _memory_mapped_arrow_table_from_file(filename)
1037 table = cls._apply_replays(table, replays)
1038 return cls(table, filename, replays)
/databricks/python/lib/python3.8/site-packages/datasets/table.py in _memory_mapped_arrow_table_from_file(filename)
48 def _memory_mapped_arrow_table_from_file(filename: str) -> pa.Table:
49 memory_mapped_stream = pa.memory_map(filename)
---> 50 opened_stream = pa.ipc.open_stream(memory_mapped_stream)
51 pa_table = opened_stream.read_all()
52 return pa_table
/databricks/python/lib/python3.8/site-packages/pyarrow/ipc.py in open_stream(source)
152 reader : RecordBatchStreamReader
153 """
--> 154 return RecordBatchStreamReader(source)
155
156
/databricks/python/lib/python3.8/site-packages/pyarrow/ipc.py in __init__(self, source)
43
44 def __init__(self, source):
---> 45 self._open(source)
46
47
/databricks/python/lib/python3.8/site-packages/pyarrow/ipc.pxi in pyarrow.lib._RecordBatchStreamReader._open()
/databricks/python/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
/databricks/python/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Tried reading schema message, was null or length 0
```
| ### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 377 | 486 | Do we need to implement `_prepare_split`?
### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
ok, I think I was assigning the output of `builder.download_and_prepare` but it's an inplace op, so that explains the `NoneType` i was getting back. Now I'm getting:
```
ArrowInvalid Traceback (most recent call last)
<ipython-input-7-3ed50fb87c70> in <module>
----> 1 ds = dataset_builder.as_dataset()
/databricks/python/lib/python3.8/site-packages/datasets/builder.py in as_dataset(self, split, run_post_process, ignore_verifications, in_memory)
1020
1021 # Create a dataset for each of the given splits
-> 1022 datasets = map_nested(
1023 partial(
1024 self._build_single_dataset,
/databricks/python/lib/python3.8/site-packages/datasets/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, parallel_min_length, types, disable_tqdm, desc)
442 num_proc = 1
443 if num_proc <= 1 or len(iterable) < parallel_min_length:
--> 444 mapped = [
445 _single_map_nested((function, obj, types, None, True, None))
446 for obj in logging.tqdm(iterable, disable=disable_tqdm, desc=desc)
/databricks/python/lib/python3.8/site-packages/datasets/utils/py_utils.py in <listcomp>(.0)
443 if num_proc <= 1 or len(iterable) < parallel_min_length:
444 mapped = [
--> 445 _single_map_nested((function, obj, types, None, True, None))
446 for obj in logging.tqdm(iterable, disable=disable_tqdm, desc=desc)
447 ]
/databricks/python/lib/python3.8/site-packages/datasets/utils/py_utils.py in _single_map_nested(args)
344 # Singleton first to spare some computation
345 if not isinstance(data_struct, dict) and not isinstance(data_struct, types):
--> 346 return function(data_struct)
347
348 # Reduce logging to keep things readable in multiprocessing with tqdm
/databricks/python/lib/python3.8/site-packages/datasets/builder.py in _build_single_dataset(self, split, run_post_process, ignore_verifications, in_memory)
1051
1052 # Build base dataset
-> 1053 ds = self._as_dataset(
1054 split=split,
1055 in_memory=in_memory,
/databricks/python/lib/python3.8/site-packages/datasets/builder.py in _as_dataset(self, split, in_memory)
1120 """
1121 cache_dir = self._fs._strip_protocol(self._output_dir)
-> 1122 dataset_kwargs = ArrowReader(cache_dir, self.info).read(
1123 name=self.name,
1124 instructions=split,
/databricks/python/lib/python3.8/site-packages/datasets/arrow_reader.py in read(self, name, instructions, split_infos, in_memory)
236 msg = f'Instruction "{instructions}" corresponds to no data!'
237 raise ValueError(msg)
--> 238 return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory)
239
240 def read_files(
/databricks/python/lib/python3.8/site-packages/datasets/arrow_reader.py in read_files(self, files, original_instructions, in_memory)
257 """
258 # Prepend path to filename
--> 259 pa_table = self._read_files(files, in_memory=in_memory)
260 # If original_instructions is not None, convert it to a human-readable NamedSplit
261 if original_instructions is not None:
/databricks/python/lib/python3.8/site-packages/datasets/arrow_reader.py in _read_files(self, files, in_memory)
192 f["filename"] = os.path.join(self._path, f["filename"])
193 for f_dict in files:
--> 194 pa_table: Table = self._get_table_from_filename(f_dict, in_memory=in_memory)
195 pa_tables.append(pa_table)
196 pa_tables = [t for t in pa_tables if len(t) > 0]
/databricks/python/lib/python3.8/site-packages/datasets/arrow_reader.py in _get_table_from_filename(self, filename_skip_take, in_memory)
327 filename_skip_take["take"] if "take" in filename_skip_take else None,
328 )
--> 329 table = ArrowReader.read_table(filename, in_memory=in_memory)
330 if take == -1:
331 take = len(table) - skip
/databricks/python/lib/python3.8/site-packages/datasets/arrow_reader.py in read_table(filename, in_memory)
348 """
349 table_cls = InMemoryTable if in_memory else MemoryMappedTable
--> 350 return table_cls.from_file(filename)
351
352
/databricks/python/lib/python3.8/site-packages/datasets/table.py in from_file(cls, filename, replays)
1034 @classmethod
1035 def from_file(cls, filename: str, replays=None):
-> 1036 table = _memory_mapped_arrow_table_from_file(filename)
1037 table = cls._apply_replays(table, replays)
1038 return cls(table, filename, replays)
/databricks/python/lib/python3.8/site-packages/datasets/table.py in _memory_mapped_arrow_table_from_file(filename)
48 def _memory_mapped_arrow_table_from_file(filename: str) -> pa.Table:
49 memory_mapped_stream = pa.memory_map(filename)
---> 50 opened_stream = pa.ipc.open_stream(memory_mapped_stream)
51 pa_table = opened_stream.read_all()
52 return pa_table
/databricks/python/lib/python3.8/site-packages/pyarrow/ipc.py in open_stream(source)
152 reader : RecordBatchStreamReader
153 """
--> 154 return RecordBatchStreamReader(source)
155
156
/databricks/python/lib/python3.8/site-packages/pyarrow/ipc.py in __init__(self, source)
43
44 def __init__(self, source):
---> 45 self._open(source)
46
47
/databricks/python/lib/python3.8/site-packages/pyarrow/ipc.pxi in pyarrow.lib._RecordBatchStreamReader._open()
/databricks/python/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
/databricks/python/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Tried reading schema message, was null or length 0
```
| [
-1.1564629077911377,
-0.9498602747917175,
-0.663374125957489,
1.4442986249923706,
-0.10583754628896713,
-1.330580234527588,
0.14666317403316498,
-1.096006155014038,
1.5908504724502563,
-0.7755786180496216,
0.2561314105987549,
-1.64324951171875,
0.0009109014645218849,
-0.5524017810821533,
-0.7539600729942322,
-0.8674906492233276,
-0.40539678931236267,
-0.8347030878067017,
1.090440034866333,
2.49111270904541,
1.3073545694351196,
-1.3592675924301147,
2.6914243698120117,
0.6253315806388855,
-0.25068217515945435,
-1.0284806489944458,
0.5118100047111511,
-0.08683808147907257,
-1.244111180305481,
-0.44190430641174316,
-0.8866837620735168,
-0.02659996971487999,
-0.5436497926712036,
-0.44842851161956787,
0.020160146057605743,
0.507144033908844,
-0.2853304445743561,
-0.3522126376628876,
-0.5469552278518677,
-0.7873325943946838,
0.5138752460479736,
-0.39047810435295105,
0.9771408438682556,
-0.2916063368320465,
1.7428398132324219,
-0.5489139556884766,
0.5562779903411865,
0.7052303552627563,
1.323817491531372,
0.2096545547246933,
0.04410451278090477,
0.274929404258728,
0.3526633381843567,
-0.013621739111840725,
0.5801300406455994,
1.1732457876205444,
0.6227781176567078,
0.5495607852935791,
0.6936177611351013,
-2.2312402725219727,
1.2467851638793945,
-0.8898006677627563,
0.25347813963890076,
1.3205538988113403,
-0.8416476845741272,
0.2985175848007202,
-1.7818101644515991,
-0.023926209658384323,
0.626913845539093,
-2.219168186187744,
0.2871083915233612,
-1.2484748363494873,
-0.4404938817024231,
0.9812764525413513,
0.3844491243362427,
-1.1995611190795898,
0.17814722657203674,
-0.4682336151599884,
1.0708445310592651,
0.4985090494155884,
1.0634267330169678,
-1.6850014925003052,
-0.07276272028684616,
-0.12144693732261658,
0.09427030384540558,
-1.2751214504241943,
-1.616385817527771,
0.49936777353286743,
0.6314769387245178,
0.601296067237854,
-0.12011171132326126,
1.0285768508911133,
-1.0327154397964478,
0.7683276534080505,
-0.9833645820617676,
-1.7085256576538086,
-1.3746590614318848,
-2.381073474884033,
-2.2604963779449463,
0.7647416591644287,
-0.5077292323112488,
-0.505199134349823,
2.139141321182251,
-0.9762452244758606,
-1.7382080554962158,
1.0784868001937866,
0.2431776374578476,
0.06848800927400589,
2.3521018028259277,
0.16266687214374542,
-0.7607546448707581,
0.5209259390830994,
-0.7144909501075745,
0.7387741804122925,
-0.39588698744773865,
1.252274990081787,
0.4191671311855316,
-1.0772514343261719,
1.5892210006713867,
-0.40179985761642456,
0.6249086856842041,
-0.7159730195999146,
-0.5217868089675903,
-0.7206072807312012,
0.3132014870643616,
1.8762284517288208,
-0.33961737155914307,
1.5194368362426758,
-0.32035568356513977,
-1.5336531400680542,
-1.5990382432937622,
0.8680450320243835,
0.4627731740474701,
-0.8155038356781006,
0.09122943878173828,
-0.48781535029411316,
0.2082277536392212,
-0.06082328408956528,
1.128096342086792,
1.2877923250198364,
0.7558377981185913,
-0.3190732002258301,
-0.8446569442749023,
0.25557368993759155,
-0.1556096076965332,
-0.6958494782447815,
-1.7885955572128296,
-0.3052981197834015,
0.17082178592681885,
0.5933625102043152,
-1.1116772890090942,
1.8696622848510742,
0.8560017347335815,
1.9921929836273193,
0.9572242498397827,
-0.3342181444168091,
1.4478574991226196,
0.06541766226291656,
1.9272236824035645,
-0.4427891969680786,
0.5949949622154236,
-0.39413365721702576,
-1.1338410377502441,
0.8701661825180054,
-0.3614889085292816,
-1.9595794677734375,
-0.7341879606246948,
-0.8264647722244263,
-0.17505481839179993,
-0.708142101764679,
0.8774099349975586,
-0.2663131654262543,
-1.4149501323699951,
0.11569773405790329,
-0.7542639970779419,
0.2199944108724594,
-1.2592239379882812,
0.3063918948173523,
0.7784298062324524,
-0.6639541983604431,
0.04141148552298546,
-0.3063095510005951,
-1.2594068050384521,
-0.5460323095321655,
0.4466667175292969,
1.9278122186660767,
-0.6600537300109863,
0.9300511479377747,
1.011794090270996,
-0.7280043363571167,
0.03813764452934265,
0.2915889322757721,
-0.3372534513473511,
0.7900884747505188,
-1.0482622385025024,
-0.39814725518226624,
1.2299141883850098,
-0.3695739805698395,
-0.7544583678245544,
1.4501296281814575,
0.7863385081291199,
-1.0509814023971558,
-0.20092853903770447,
-0.18119466304779053,
-0.876839280128479,
0.015529326163232327,
-1.569655179977417,
-0.12916986644268036,
0.4387114942073822,
-1.5323073863983154,
-0.4060429632663727,
-0.15828348696231842,
1.3243621587753296,
-0.13921552896499634,
1.479224443435669,
-0.33318212628364563,
-0.1262056529521942,
-0.3214600384235382,
-0.538142204284668,
0.1865719109773636,
-0.25583040714263916,
-0.5980302095413208,
0.17820009589195251,
-0.7133988738059998,
0.29234805703163147,
1.4261348247528076,
0.2827163338661194,
0.030307937413454056,
0.4866514205932617,
1.1270930767059326,
0.37554773688316345,
-0.09323905408382416,
-0.8659719228744507,
-1.5276507139205933,
1.985545039176941,
-1.3766818046569824,
1.9685890674591064,
0.796990156173706,
-0.12539328634738922,
-1.7223299741744995,
-1.943402647972107,
1.2971711158752441,
1.0976943969726562,
2.3299427032470703,
0.49259698390960693,
0.4547470510005951,
-0.7977319359779358,
-0.7149744033813477,
0.3336649239063263,
-0.9496043920516968,
-0.7331341505050659,
0.07010006904602051,
2.3565030097961426,
1.8225458860397339,
-0.4789726436138153,
-0.2311103343963623,
-0.9668517708778381,
1.3721799850463867,
-0.2531738877296448,
0.2692728638648987,
2.0086100101470947,
-0.25003552436828613,
-1.0128575563430786,
1.3398571014404297,
-2.37532639503479,
0.27889758348464966,
2.115629196166992,
0.20042608678340912,
0.11211490631103516,
-1.3850890398025513,
-0.6014786958694458,
-0.2301217019557953,
-0.38556089997291565,
-1.1824657917022705,
0.5414159893989563,
-0.2159890979528427,
-0.7475156188011169,
-1.3930753469467163,
0.13728395104408264,
-1.1351197957992554,
-1.7050246000289917,
0.23927702009677887,
2.012388229370117,
2.0520071983337402,
-0.7621761560440063,
1.5114890336990356,
-0.22967028617858887,
0.08344762027263641,
1.2601089477539062,
1.3046258687973022,
3.1649277210235596,
1.8914395570755005,
-1.3264226913452148,
0.6760744452476501,
-0.20314453542232513,
-0.5631694197654724,
1.185669183731079,
-1.104954719543457,
1.1327316761016846,
-0.21271631121635437,
-1.2313809394836426,
-1.2939273118972778,
0.9873712658882141,
0.5158125758171082,
0.025481365621089935,
-0.4924657642841339,
1.1772260665893555,
0.15745796263217926,
1.2910624742507935,
0.5986789464950562,
-0.3793202340602875,
0.6575230956077576,
-0.34905344247817993,
-0.5723183751106262,
1.5220750570297241,
0.23512719571590424,
-1.4771002531051636,
-2.314833641052246,
-0.24035222828388214,
-0.989816427230835,
0.05458572134375572,
-0.6313184499740601,
-1.0164166688919067,
1.5855330228805542,
0.41652029752731323,
-1.204595685005188,
-0.32203954458236694,
-0.26826635003089905,
-0.6159901022911072,
2.6673202514648438,
-1.296557068824768,
-0.1959097683429718,
-0.9832245111465454,
-0.6201346516609192,
1.646789789199829,
-1.3081531524658203,
-0.2536858916282654,
-1.0449162721633911,
-0.5633188486099243,
-1.204432725906372,
-0.4156692326068878,
0.00017940066754817963,
-1.0350329875946045,
0.8815065622329712,
0.20566467940807343,
-1.2380343675613403,
-0.27396827936172485,
-0.8543654084205627,
0.9676741361618042,
-0.17954851686954498,
0.19348452985286713,
1.8297902345657349,
0.3837759792804718,
-0.4612348675727844,
0.702591061592102,
1.1624724864959717,
0.6379249095916748,
-0.6234326958656311,
0.1226920410990715,
-0.6428767442703247,
0.4060932397842407,
-1.344262719154358,
0.22438135743141174,
-2.9140398502349854,
0.6981197595596313,
-0.1339835375547409,
-0.12728069722652435,
-0.10684055835008621,
-1.3465044498443604,
1.0124449729919434,
2.5713601112365723,
-1.2336301803588867,
0.5177386403083801,
0.36035025119781494,
1.2439528703689575,
-1.6612108945846558,
0.24558381736278534,
-0.45589688420295715,
2.098037004470825,
0.1471700370311737,
1.1919119358062744,
-0.4455353319644928,
-2.262268304824829,
0.6005784273147583,
-1.1980524063110352,
-1.1207102537155151,
0.7814950942993164,
-0.8190786838531494,
0.1668454110622406,
-1.3703157901763916,
-0.18261797726154327,
-0.8361983895301819,
-1.1715487241744995,
0.6985576748847961,
0.06842677295207977,
0.42135754227638245,
-0.6395373344421387,
0.336136132478714,
-2.154599905014038,
-1.3874353170394897,
-0.27940091490745544,
-0.9733956456184387,
0.4419567883014679,
-0.41470077633857727,
0.6238090395927429,
-0.16768954694271088,
0.037147946655750275,
0.2500651776790619,
1.4804905652999878,
3.4421114921569824,
0.17771697044372559,
0.24483223259449005,
-0.19648662209510803,
-0.9977810978889465,
1.5157930850982666,
0.8317613005638123,
-0.17600484192371368,
-0.6123067140579224,
-1.0189603567123413,
1.2684961557388306,
2.037594795227051,
1.0326206684112549,
0.1027127206325531,
-0.7947538495063782,
-0.7730505466461182,
-0.0384259968996048,
0.14180199801921844,
0.5665819048881531,
0.9340365529060364,
0.03249649703502655,
0.06129974499344826,
1.2876309156417847,
1.1718088388442993,
-0.3541872203350067,
0.38223031163215637,
-0.8588184118270874,
-0.4467441737651825,
0.4121202230453491,
0.2608020305633545,
0.007466488517820835,
0.3485439419746399,
-1.0343236923217773,
-0.20120930671691895,
-0.3594076633453369,
-0.82073974609375,
-0.7539194822311401,
-0.39656180143356323,
-0.3974001407623291,
1.631977915763855,
0.0869210883975029,
-0.5356523394584656,
0.03382260724902153,
-0.6886394023895264,
-0.08983830362558365,
-1.1240814924240112,
0.19238854944705963,
-0.13390682637691498,
-0.11804307997226715,
-0.09411947429180145,
1.5987719297409058,
-0.9060934782028198,
-2.1414005756378174,
0.20714020729064941,
0.23293840885162354,
-0.3610650897026062,
0.1696798950433731,
1.7081104516983032,
0.49887579679489136,
1.4110337495803833,
1.3703587055206299,
1.0174821615219116,
-0.6648986339569092,
-1.255874514579773,
0.7305397987365723,
0.8711697459220886,
-1.3915215730667114,
0.8875351548194885,
-0.055887576192617416,
-0.5125802755355835,
0.6095615029335022,
1.2924888134002686,
0.47322407364845276,
-2.0349347591400146,
0.9116463661193848,
-0.9786221981048584,
0.7941464781761169,
0.7807414531707764,
0.7714515328407288,
0.2673463225364685,
0.8266734480857849,
-1.1877694129943848,
-1.2073613405227661,
-0.686370849609375,
-0.7503151893615723,
1.9003506898880005,
-0.3006671071052551,
0.5845129489898682,
-0.09481355547904968,
-1.274228811264038,
-0.18531543016433716,
0.7698746919631958,
0.3985372483730316,
-0.4298521876335144,
0.8468557596206665,
-0.6480663418769836,
-0.9938225746154785,
-1.3048819303512573,
-0.45272502303123474,
-1.086867332458496,
-0.908661961555481,
0.981162965297699,
0.7983056306838989,
0.4321610927581787,
1.8837265968322754,
0.6655076146125793,
0.33069372177124023,
-2.5772812366485596,
0.9012133479118347,
0.3899919092655182,
-0.1164841279387474,
0.8133838772773743,
0.3097606897354126,
1.0903209447860718,
0.018509801477193832,
0.6414077281951904,
-2.384675979614258,
2.2772269248962402,
-0.21570292115211487,
0.6263805031776428,
-0.021933358162641525,
-0.1754019558429718,
1.153302550315857,
0.5683140158653259,
0.5449026823043823,
-1.1305207014083862,
0.7943546772003174,
-0.6072681546211243,
1.1672158241271973,
0.8444135785102844,
-0.9138373732566833,
0.0844084694981575,
1.4776599407196045,
0.4338153004646301,
-0.5898798108100891,
-0.9695457816123962,
-0.964612603187561,
0.9758743643760681,
1.7192661762237549,
-0.062050238251686096,
-0.028716813772916794,
0.9103127121925354,
0.6701670289039612,
-1.2489792108535767,
0.03616589680314064,
-0.6582447290420532,
-0.6857039928436279,
1.6809818744659424,
2.042865753173828,
-0.13356338441371918,
-0.2495882213115692,
-0.7972837686538696,
-1.3103824853897095,
0.7620494961738586,
-0.024564595893025398,
0.014163236133754253,
0.701738178730011,
-0.6504037976264954,
1.1040027141571045,
0.7207214832305908,
0.9829180836677551,
0.07911467552185059,
0.23658236861228943,
0.40658625960350037,
-0.3819456398487091,
-1.1238608360290527,
-0.2651198208332062,
-1.155806541442871,
-2.5206730365753174,
0.3582878112792969,
-0.24617315828800201,
-1.444240927696228,
0.04137367382645607,
-1.0220611095428467,
0.8658166527748108,
-0.596747875213623,
-1.1690682172775269,
-1.4858847856521606,
0.27549323439598083,
-0.124195896089077,
0.8688755631446838,
-1.6494537591934204,
-0.16310611367225647,
1.2179878950119019,
0.8136535286903381,
-0.6952535510063171,
0.9075143337249756,
0.19994531571865082,
0.997154176235199,
0.8245577216148376,
-0.3658524453639984,
0.5860274434089661,
-0.027293618768453598,
-1.3324542045593262,
0.436606228351593,
1.2201216220855713,
0.13848941028118134,
1.3918094635009766,
-0.5203527212142944,
0.04129275307059288,
0.40585628151893616,
-0.5345935821533203,
-0.5368354916572571,
-0.46970221400260925,
0.7351785898208618,
-0.027869444340467453,
-0.9442132115364075,
-0.04478848725557327,
-0.07321973145008087,
-0.32421934604644775,
0.19791679084300995,
-1.4980450868606567,
-0.1759658008813858,
-0.3550759553909302,
-0.5446197390556335,
-1.3070662021636963,
0.0007366007193922997,
1.3676881790161133,
-0.7312538027763367,
-0.23115184903144836,
0.4706878364086151,
0.3806515634059906,
0.5305399894714355,
0.6248136758804321,
-0.7334347367286682,
-0.24560286104679108,
-0.32628628611564636,
-0.3330787420272827,
0.30618664622306824,
1.3299474716186523,
-0.05256514996290207,
-0.9271502494812012,
0.670837938785553,
-0.35318487882614136,
0.12045691162347794,
1.944673776626587,
0.06084105744957924,
-0.7390353679656982,
0.31206175684928894,
-0.7688798904418945,
1.8656044006347656,
1.777951717376709,
1.2954565286636353,
-0.034962188452482224,
-1.0028449296951294,
0.5729559063911438,
-0.27177712321281433,
-0.31935566663742065,
0.9061789512634277,
0.38126838207244873,
-0.2839735448360443,
-1.4187432527542114,
0.7277187705039978,
1.1800577640533447,
-0.7450852990150452,
-0.8035045862197876,
0.09513155370950699,
-0.8989228010177612,
1.2059745788574219,
0.5763342380523682,
0.33297741413116455,
0.22320586442947388,
1.6344531774520874,
0.7567206025123596,
-0.4538254737854004,
0.5294429063796997,
0.5833489298820496,
-0.21448944509029388,
-2.1158618927001953,
-1.1107107400894165,
0.32288193702697754,
-0.4195615351200104,
-1.6125329732894897,
1.3533644676208496,
-1.1596659421920776,
-0.9913483262062073,
0.5293236970901489,
0.07257653772830963,
1.4167755842208862,
0.3478182256221771,
1.6835576295852661,
2.143578290939331,
0.9611176252365112,
0.43803057074546814,
1.2517995834350586,
-0.2156001329421997,
-0.4492306709289551,
1.8154386281967163,
-0.45114201307296753,
0.4094456732273102,
1.0898773670196533,
-0.410121351480484,
-1.1495558023452759,
-0.7983534336090088,
-1.161502480506897,
-0.6639454960823059,
1.1521958112716675,
0.04759562388062477,
-1.070610761642456,
0.30708155035972595,
1.5930784940719604,
0.1295613944530487,
-0.20851828157901764,
0.6972835659980774,
0.4213953912258148,
-0.7585194706916809,
-0.030215326696634293,
-0.8819595575332642,
0.5650939345359802,
-0.18648573756217957,
-0.33454522490501404,
0.36605653166770935,
0.49442100524902344,
1.328126072883606,
-0.0774458572268486,
0.15736769139766693,
1.1003525257110596,
-1.429910659790039,
1.455661654472351,
-0.6468491554260254,
0.3054923415184021,
-2.373232126235962,
1.4213669300079346,
-0.8225035071372986,
2.0158185958862305,
-2.5427181720733643,
0.40359070897102356,
-0.5925984382629395,
-0.48344752192497253,
0.2905476987361908,
-0.3779946267604828,
0.02229512482881546,
-0.15146315097808838,
-1.0800471305847168,
-0.07782576978206635,
-0.7412011623382568,
0.6089487075805664,
1.2082841396331787,
1.3640718460083008,
-1.0785326957702637,
-0.25073304772377014,
-1.69828200340271,
-0.15519782900810242,
-0.7357625961303711,
0.3411356508731842,
-1.9539389610290527,
-0.17517445981502533,
-2.0240142345428467,
-2.3079681396484375,
-1.2734472751617432,
-0.8591833114624023,
1.0265870094299316,
0.17389324307441711,
-0.8874174952507019,
1.2385292053222656,
-0.3261457085609436,
-1.8157798051834106,
1.1615747213363647,
-2.2166244983673096
] |
https://github.com/huggingface/datasets/issues/5351 | Do we need to implement `_prepare_split`? | looks like my arrow files are all empty @mariosasko

i also see the `incomplete_info.lock` file a level up too. seems like the data isn't being persisted to disk when I call `download_and_prepare`. is there something else i need to do before then, perhaps? | ### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 377 | 44 | Do we need to implement `_prepare_split`?
### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
looks like my arrow files are all empty @mariosasko

i also see the `incomplete_info.lock` file a level up too. seems like the data isn't being persisted to disk when I call `download_and_prepare`. is there something else i need to do before then, perhaps? | [
-1.1564629077911377,
-0.9498602747917175,
-0.663374125957489,
1.4442986249923706,
-0.10583754628896713,
-1.330580234527588,
0.14666317403316498,
-1.096006155014038,
1.5908504724502563,
-0.7755786180496216,
0.2561314105987549,
-1.64324951171875,
0.0009109014645218849,
-0.5524017810821533,
-0.7539600729942322,
-0.8674906492233276,
-0.40539678931236267,
-0.8347030878067017,
1.090440034866333,
2.49111270904541,
1.3073545694351196,
-1.3592675924301147,
2.6914243698120117,
0.6253315806388855,
-0.25068217515945435,
-1.0284806489944458,
0.5118100047111511,
-0.08683808147907257,
-1.244111180305481,
-0.44190430641174316,
-0.8866837620735168,
-0.02659996971487999,
-0.5436497926712036,
-0.44842851161956787,
0.020160146057605743,
0.507144033908844,
-0.2853304445743561,
-0.3522126376628876,
-0.5469552278518677,
-0.7873325943946838,
0.5138752460479736,
-0.39047810435295105,
0.9771408438682556,
-0.2916063368320465,
1.7428398132324219,
-0.5489139556884766,
0.5562779903411865,
0.7052303552627563,
1.323817491531372,
0.2096545547246933,
0.04410451278090477,
0.274929404258728,
0.3526633381843567,
-0.013621739111840725,
0.5801300406455994,
1.1732457876205444,
0.6227781176567078,
0.5495607852935791,
0.6936177611351013,
-2.2312402725219727,
1.2467851638793945,
-0.8898006677627563,
0.25347813963890076,
1.3205538988113403,
-0.8416476845741272,
0.2985175848007202,
-1.7818101644515991,
-0.023926209658384323,
0.626913845539093,
-2.219168186187744,
0.2871083915233612,
-1.2484748363494873,
-0.4404938817024231,
0.9812764525413513,
0.3844491243362427,
-1.1995611190795898,
0.17814722657203674,
-0.4682336151599884,
1.0708445310592651,
0.4985090494155884,
1.0634267330169678,
-1.6850014925003052,
-0.07276272028684616,
-0.12144693732261658,
0.09427030384540558,
-1.2751214504241943,
-1.616385817527771,
0.49936777353286743,
0.6314769387245178,
0.601296067237854,
-0.12011171132326126,
1.0285768508911133,
-1.0327154397964478,
0.7683276534080505,
-0.9833645820617676,
-1.7085256576538086,
-1.3746590614318848,
-2.381073474884033,
-2.2604963779449463,
0.7647416591644287,
-0.5077292323112488,
-0.505199134349823,
2.139141321182251,
-0.9762452244758606,
-1.7382080554962158,
1.0784868001937866,
0.2431776374578476,
0.06848800927400589,
2.3521018028259277,
0.16266687214374542,
-0.7607546448707581,
0.5209259390830994,
-0.7144909501075745,
0.7387741804122925,
-0.39588698744773865,
1.252274990081787,
0.4191671311855316,
-1.0772514343261719,
1.5892210006713867,
-0.40179985761642456,
0.6249086856842041,
-0.7159730195999146,
-0.5217868089675903,
-0.7206072807312012,
0.3132014870643616,
1.8762284517288208,
-0.33961737155914307,
1.5194368362426758,
-0.32035568356513977,
-1.5336531400680542,
-1.5990382432937622,
0.8680450320243835,
0.4627731740474701,
-0.8155038356781006,
0.09122943878173828,
-0.48781535029411316,
0.2082277536392212,
-0.06082328408956528,
1.128096342086792,
1.2877923250198364,
0.7558377981185913,
-0.3190732002258301,
-0.8446569442749023,
0.25557368993759155,
-0.1556096076965332,
-0.6958494782447815,
-1.7885955572128296,
-0.3052981197834015,
0.17082178592681885,
0.5933625102043152,
-1.1116772890090942,
1.8696622848510742,
0.8560017347335815,
1.9921929836273193,
0.9572242498397827,
-0.3342181444168091,
1.4478574991226196,
0.06541766226291656,
1.9272236824035645,
-0.4427891969680786,
0.5949949622154236,
-0.39413365721702576,
-1.1338410377502441,
0.8701661825180054,
-0.3614889085292816,
-1.9595794677734375,
-0.7341879606246948,
-0.8264647722244263,
-0.17505481839179993,
-0.708142101764679,
0.8774099349975586,
-0.2663131654262543,
-1.4149501323699951,
0.11569773405790329,
-0.7542639970779419,
0.2199944108724594,
-1.2592239379882812,
0.3063918948173523,
0.7784298062324524,
-0.6639541983604431,
0.04141148552298546,
-0.3063095510005951,
-1.2594068050384521,
-0.5460323095321655,
0.4466667175292969,
1.9278122186660767,
-0.6600537300109863,
0.9300511479377747,
1.011794090270996,
-0.7280043363571167,
0.03813764452934265,
0.2915889322757721,
-0.3372534513473511,
0.7900884747505188,
-1.0482622385025024,
-0.39814725518226624,
1.2299141883850098,
-0.3695739805698395,
-0.7544583678245544,
1.4501296281814575,
0.7863385081291199,
-1.0509814023971558,
-0.20092853903770447,
-0.18119466304779053,
-0.876839280128479,
0.015529326163232327,
-1.569655179977417,
-0.12916986644268036,
0.4387114942073822,
-1.5323073863983154,
-0.4060429632663727,
-0.15828348696231842,
1.3243621587753296,
-0.13921552896499634,
1.479224443435669,
-0.33318212628364563,
-0.1262056529521942,
-0.3214600384235382,
-0.538142204284668,
0.1865719109773636,
-0.25583040714263916,
-0.5980302095413208,
0.17820009589195251,
-0.7133988738059998,
0.29234805703163147,
1.4261348247528076,
0.2827163338661194,
0.030307937413454056,
0.4866514205932617,
1.1270930767059326,
0.37554773688316345,
-0.09323905408382416,
-0.8659719228744507,
-1.5276507139205933,
1.985545039176941,
-1.3766818046569824,
1.9685890674591064,
0.796990156173706,
-0.12539328634738922,
-1.7223299741744995,
-1.943402647972107,
1.2971711158752441,
1.0976943969726562,
2.3299427032470703,
0.49259698390960693,
0.4547470510005951,
-0.7977319359779358,
-0.7149744033813477,
0.3336649239063263,
-0.9496043920516968,
-0.7331341505050659,
0.07010006904602051,
2.3565030097961426,
1.8225458860397339,
-0.4789726436138153,
-0.2311103343963623,
-0.9668517708778381,
1.3721799850463867,
-0.2531738877296448,
0.2692728638648987,
2.0086100101470947,
-0.25003552436828613,
-1.0128575563430786,
1.3398571014404297,
-2.37532639503479,
0.27889758348464966,
2.115629196166992,
0.20042608678340912,
0.11211490631103516,
-1.3850890398025513,
-0.6014786958694458,
-0.2301217019557953,
-0.38556089997291565,
-1.1824657917022705,
0.5414159893989563,
-0.2159890979528427,
-0.7475156188011169,
-1.3930753469467163,
0.13728395104408264,
-1.1351197957992554,
-1.7050246000289917,
0.23927702009677887,
2.012388229370117,
2.0520071983337402,
-0.7621761560440063,
1.5114890336990356,
-0.22967028617858887,
0.08344762027263641,
1.2601089477539062,
1.3046258687973022,
3.1649277210235596,
1.8914395570755005,
-1.3264226913452148,
0.6760744452476501,
-0.20314453542232513,
-0.5631694197654724,
1.185669183731079,
-1.104954719543457,
1.1327316761016846,
-0.21271631121635437,
-1.2313809394836426,
-1.2939273118972778,
0.9873712658882141,
0.5158125758171082,
0.025481365621089935,
-0.4924657642841339,
1.1772260665893555,
0.15745796263217926,
1.2910624742507935,
0.5986789464950562,
-0.3793202340602875,
0.6575230956077576,
-0.34905344247817993,
-0.5723183751106262,
1.5220750570297241,
0.23512719571590424,
-1.4771002531051636,
-2.314833641052246,
-0.24035222828388214,
-0.989816427230835,
0.05458572134375572,
-0.6313184499740601,
-1.0164166688919067,
1.5855330228805542,
0.41652029752731323,
-1.204595685005188,
-0.32203954458236694,
-0.26826635003089905,
-0.6159901022911072,
2.6673202514648438,
-1.296557068824768,
-0.1959097683429718,
-0.9832245111465454,
-0.6201346516609192,
1.646789789199829,
-1.3081531524658203,
-0.2536858916282654,
-1.0449162721633911,
-0.5633188486099243,
-1.204432725906372,
-0.4156692326068878,
0.00017940066754817963,
-1.0350329875946045,
0.8815065622329712,
0.20566467940807343,
-1.2380343675613403,
-0.27396827936172485,
-0.8543654084205627,
0.9676741361618042,
-0.17954851686954498,
0.19348452985286713,
1.8297902345657349,
0.3837759792804718,
-0.4612348675727844,
0.702591061592102,
1.1624724864959717,
0.6379249095916748,
-0.6234326958656311,
0.1226920410990715,
-0.6428767442703247,
0.4060932397842407,
-1.344262719154358,
0.22438135743141174,
-2.9140398502349854,
0.6981197595596313,
-0.1339835375547409,
-0.12728069722652435,
-0.10684055835008621,
-1.3465044498443604,
1.0124449729919434,
2.5713601112365723,
-1.2336301803588867,
0.5177386403083801,
0.36035025119781494,
1.2439528703689575,
-1.6612108945846558,
0.24558381736278534,
-0.45589688420295715,
2.098037004470825,
0.1471700370311737,
1.1919119358062744,
-0.4455353319644928,
-2.262268304824829,
0.6005784273147583,
-1.1980524063110352,
-1.1207102537155151,
0.7814950942993164,
-0.8190786838531494,
0.1668454110622406,
-1.3703157901763916,
-0.18261797726154327,
-0.8361983895301819,
-1.1715487241744995,
0.6985576748847961,
0.06842677295207977,
0.42135754227638245,
-0.6395373344421387,
0.336136132478714,
-2.154599905014038,
-1.3874353170394897,
-0.27940091490745544,
-0.9733956456184387,
0.4419567883014679,
-0.41470077633857727,
0.6238090395927429,
-0.16768954694271088,
0.037147946655750275,
0.2500651776790619,
1.4804905652999878,
3.4421114921569824,
0.17771697044372559,
0.24483223259449005,
-0.19648662209510803,
-0.9977810978889465,
1.5157930850982666,
0.8317613005638123,
-0.17600484192371368,
-0.6123067140579224,
-1.0189603567123413,
1.2684961557388306,
2.037594795227051,
1.0326206684112549,
0.1027127206325531,
-0.7947538495063782,
-0.7730505466461182,
-0.0384259968996048,
0.14180199801921844,
0.5665819048881531,
0.9340365529060364,
0.03249649703502655,
0.06129974499344826,
1.2876309156417847,
1.1718088388442993,
-0.3541872203350067,
0.38223031163215637,
-0.8588184118270874,
-0.4467441737651825,
0.4121202230453491,
0.2608020305633545,
0.007466488517820835,
0.3485439419746399,
-1.0343236923217773,
-0.20120930671691895,
-0.3594076633453369,
-0.82073974609375,
-0.7539194822311401,
-0.39656180143356323,
-0.3974001407623291,
1.631977915763855,
0.0869210883975029,
-0.5356523394584656,
0.03382260724902153,
-0.6886394023895264,
-0.08983830362558365,
-1.1240814924240112,
0.19238854944705963,
-0.13390682637691498,
-0.11804307997226715,
-0.09411947429180145,
1.5987719297409058,
-0.9060934782028198,
-2.1414005756378174,
0.20714020729064941,
0.23293840885162354,
-0.3610650897026062,
0.1696798950433731,
1.7081104516983032,
0.49887579679489136,
1.4110337495803833,
1.3703587055206299,
1.0174821615219116,
-0.6648986339569092,
-1.255874514579773,
0.7305397987365723,
0.8711697459220886,
-1.3915215730667114,
0.8875351548194885,
-0.055887576192617416,
-0.5125802755355835,
0.6095615029335022,
1.2924888134002686,
0.47322407364845276,
-2.0349347591400146,
0.9116463661193848,
-0.9786221981048584,
0.7941464781761169,
0.7807414531707764,
0.7714515328407288,
0.2673463225364685,
0.8266734480857849,
-1.1877694129943848,
-1.2073613405227661,
-0.686370849609375,
-0.7503151893615723,
1.9003506898880005,
-0.3006671071052551,
0.5845129489898682,
-0.09481355547904968,
-1.274228811264038,
-0.18531543016433716,
0.7698746919631958,
0.3985372483730316,
-0.4298521876335144,
0.8468557596206665,
-0.6480663418769836,
-0.9938225746154785,
-1.3048819303512573,
-0.45272502303123474,
-1.086867332458496,
-0.908661961555481,
0.981162965297699,
0.7983056306838989,
0.4321610927581787,
1.8837265968322754,
0.6655076146125793,
0.33069372177124023,
-2.5772812366485596,
0.9012133479118347,
0.3899919092655182,
-0.1164841279387474,
0.8133838772773743,
0.3097606897354126,
1.0903209447860718,
0.018509801477193832,
0.6414077281951904,
-2.384675979614258,
2.2772269248962402,
-0.21570292115211487,
0.6263805031776428,
-0.021933358162641525,
-0.1754019558429718,
1.153302550315857,
0.5683140158653259,
0.5449026823043823,
-1.1305207014083862,
0.7943546772003174,
-0.6072681546211243,
1.1672158241271973,
0.8444135785102844,
-0.9138373732566833,
0.0844084694981575,
1.4776599407196045,
0.4338153004646301,
-0.5898798108100891,
-0.9695457816123962,
-0.964612603187561,
0.9758743643760681,
1.7192661762237549,
-0.062050238251686096,
-0.028716813772916794,
0.9103127121925354,
0.6701670289039612,
-1.2489792108535767,
0.03616589680314064,
-0.6582447290420532,
-0.6857039928436279,
1.6809818744659424,
2.042865753173828,
-0.13356338441371918,
-0.2495882213115692,
-0.7972837686538696,
-1.3103824853897095,
0.7620494961738586,
-0.024564595893025398,
0.014163236133754253,
0.701738178730011,
-0.6504037976264954,
1.1040027141571045,
0.7207214832305908,
0.9829180836677551,
0.07911467552185059,
0.23658236861228943,
0.40658625960350037,
-0.3819456398487091,
-1.1238608360290527,
-0.2651198208332062,
-1.155806541442871,
-2.5206730365753174,
0.3582878112792969,
-0.24617315828800201,
-1.444240927696228,
0.04137367382645607,
-1.0220611095428467,
0.8658166527748108,
-0.596747875213623,
-1.1690682172775269,
-1.4858847856521606,
0.27549323439598083,
-0.124195896089077,
0.8688755631446838,
-1.6494537591934204,
-0.16310611367225647,
1.2179878950119019,
0.8136535286903381,
-0.6952535510063171,
0.9075143337249756,
0.19994531571865082,
0.997154176235199,
0.8245577216148376,
-0.3658524453639984,
0.5860274434089661,
-0.027293618768453598,
-1.3324542045593262,
0.436606228351593,
1.2201216220855713,
0.13848941028118134,
1.3918094635009766,
-0.5203527212142944,
0.04129275307059288,
0.40585628151893616,
-0.5345935821533203,
-0.5368354916572571,
-0.46970221400260925,
0.7351785898208618,
-0.027869444340467453,
-0.9442132115364075,
-0.04478848725557327,
-0.07321973145008087,
-0.32421934604644775,
0.19791679084300995,
-1.4980450868606567,
-0.1759658008813858,
-0.3550759553909302,
-0.5446197390556335,
-1.3070662021636963,
0.0007366007193922997,
1.3676881790161133,
-0.7312538027763367,
-0.23115184903144836,
0.4706878364086151,
0.3806515634059906,
0.5305399894714355,
0.6248136758804321,
-0.7334347367286682,
-0.24560286104679108,
-0.32628628611564636,
-0.3330787420272827,
0.30618664622306824,
1.3299474716186523,
-0.05256514996290207,
-0.9271502494812012,
0.670837938785553,
-0.35318487882614136,
0.12045691162347794,
1.944673776626587,
0.06084105744957924,
-0.7390353679656982,
0.31206175684928894,
-0.7688798904418945,
1.8656044006347656,
1.777951717376709,
1.2954565286636353,
-0.034962188452482224,
-1.0028449296951294,
0.5729559063911438,
-0.27177712321281433,
-0.31935566663742065,
0.9061789512634277,
0.38126838207244873,
-0.2839735448360443,
-1.4187432527542114,
0.7277187705039978,
1.1800577640533447,
-0.7450852990150452,
-0.8035045862197876,
0.09513155370950699,
-0.8989228010177612,
1.2059745788574219,
0.5763342380523682,
0.33297741413116455,
0.22320586442947388,
1.6344531774520874,
0.7567206025123596,
-0.4538254737854004,
0.5294429063796997,
0.5833489298820496,
-0.21448944509029388,
-2.1158618927001953,
-1.1107107400894165,
0.32288193702697754,
-0.4195615351200104,
-1.6125329732894897,
1.3533644676208496,
-1.1596659421920776,
-0.9913483262062073,
0.5293236970901489,
0.07257653772830963,
1.4167755842208862,
0.3478182256221771,
1.6835576295852661,
2.143578290939331,
0.9611176252365112,
0.43803057074546814,
1.2517995834350586,
-0.2156001329421997,
-0.4492306709289551,
1.8154386281967163,
-0.45114201307296753,
0.4094456732273102,
1.0898773670196533,
-0.410121351480484,
-1.1495558023452759,
-0.7983534336090088,
-1.161502480506897,
-0.6639454960823059,
1.1521958112716675,
0.04759562388062477,
-1.070610761642456,
0.30708155035972595,
1.5930784940719604,
0.1295613944530487,
-0.20851828157901764,
0.6972835659980774,
0.4213953912258148,
-0.7585194706916809,
-0.030215326696634293,
-0.8819595575332642,
0.5650939345359802,
-0.18648573756217957,
-0.33454522490501404,
0.36605653166770935,
0.49442100524902344,
1.328126072883606,
-0.0774458572268486,
0.15736769139766693,
1.1003525257110596,
-1.429910659790039,
1.455661654472351,
-0.6468491554260254,
0.3054923415184021,
-2.373232126235962,
1.4213669300079346,
-0.8225035071372986,
2.0158185958862305,
-2.5427181720733643,
0.40359070897102356,
-0.5925984382629395,
-0.48344752192497253,
0.2905476987361908,
-0.3779946267604828,
0.02229512482881546,
-0.15146315097808838,
-1.0800471305847168,
-0.07782576978206635,
-0.7412011623382568,
0.6089487075805664,
1.2082841396331787,
1.3640718460083008,
-1.0785326957702637,
-0.25073304772377014,
-1.69828200340271,
-0.15519782900810242,
-0.7357625961303711,
0.3411356508731842,
-1.9539389610290527,
-0.17517445981502533,
-2.0240142345428467,
-2.3079681396484375,
-1.2734472751617432,
-0.8591833114624023,
1.0265870094299316,
0.17389324307441711,
-0.8874174952507019,
1.2385292053222656,
-0.3261457085609436,
-1.8157798051834106,
1.1615747213363647,
-2.2166244983673096
] |
https://github.com/huggingface/datasets/issues/5351 | Do we need to implement `_prepare_split`? | quick update @mariosasko. i got it working! i had to downgrade to `datasets==2.4.0`. testing other versions now and will let you know the results. | ### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 377 | 24 | Do we need to implement `_prepare_split`?
### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
quick update @mariosasko. i got it working! i had to downgrade to `datasets==2.4.0`. testing other versions now and will let you know the results. | [
-1.1564629077911377,
-0.9498602747917175,
-0.663374125957489,
1.4442986249923706,
-0.10583754628896713,
-1.330580234527588,
0.14666317403316498,
-1.096006155014038,
1.5908504724502563,
-0.7755786180496216,
0.2561314105987549,
-1.64324951171875,
0.0009109014645218849,
-0.5524017810821533,
-0.7539600729942322,
-0.8674906492233276,
-0.40539678931236267,
-0.8347030878067017,
1.090440034866333,
2.49111270904541,
1.3073545694351196,
-1.3592675924301147,
2.6914243698120117,
0.6253315806388855,
-0.25068217515945435,
-1.0284806489944458,
0.5118100047111511,
-0.08683808147907257,
-1.244111180305481,
-0.44190430641174316,
-0.8866837620735168,
-0.02659996971487999,
-0.5436497926712036,
-0.44842851161956787,
0.020160146057605743,
0.507144033908844,
-0.2853304445743561,
-0.3522126376628876,
-0.5469552278518677,
-0.7873325943946838,
0.5138752460479736,
-0.39047810435295105,
0.9771408438682556,
-0.2916063368320465,
1.7428398132324219,
-0.5489139556884766,
0.5562779903411865,
0.7052303552627563,
1.323817491531372,
0.2096545547246933,
0.04410451278090477,
0.274929404258728,
0.3526633381843567,
-0.013621739111840725,
0.5801300406455994,
1.1732457876205444,
0.6227781176567078,
0.5495607852935791,
0.6936177611351013,
-2.2312402725219727,
1.2467851638793945,
-0.8898006677627563,
0.25347813963890076,
1.3205538988113403,
-0.8416476845741272,
0.2985175848007202,
-1.7818101644515991,
-0.023926209658384323,
0.626913845539093,
-2.219168186187744,
0.2871083915233612,
-1.2484748363494873,
-0.4404938817024231,
0.9812764525413513,
0.3844491243362427,
-1.1995611190795898,
0.17814722657203674,
-0.4682336151599884,
1.0708445310592651,
0.4985090494155884,
1.0634267330169678,
-1.6850014925003052,
-0.07276272028684616,
-0.12144693732261658,
0.09427030384540558,
-1.2751214504241943,
-1.616385817527771,
0.49936777353286743,
0.6314769387245178,
0.601296067237854,
-0.12011171132326126,
1.0285768508911133,
-1.0327154397964478,
0.7683276534080505,
-0.9833645820617676,
-1.7085256576538086,
-1.3746590614318848,
-2.381073474884033,
-2.2604963779449463,
0.7647416591644287,
-0.5077292323112488,
-0.505199134349823,
2.139141321182251,
-0.9762452244758606,
-1.7382080554962158,
1.0784868001937866,
0.2431776374578476,
0.06848800927400589,
2.3521018028259277,
0.16266687214374542,
-0.7607546448707581,
0.5209259390830994,
-0.7144909501075745,
0.7387741804122925,
-0.39588698744773865,
1.252274990081787,
0.4191671311855316,
-1.0772514343261719,
1.5892210006713867,
-0.40179985761642456,
0.6249086856842041,
-0.7159730195999146,
-0.5217868089675903,
-0.7206072807312012,
0.3132014870643616,
1.8762284517288208,
-0.33961737155914307,
1.5194368362426758,
-0.32035568356513977,
-1.5336531400680542,
-1.5990382432937622,
0.8680450320243835,
0.4627731740474701,
-0.8155038356781006,
0.09122943878173828,
-0.48781535029411316,
0.2082277536392212,
-0.06082328408956528,
1.128096342086792,
1.2877923250198364,
0.7558377981185913,
-0.3190732002258301,
-0.8446569442749023,
0.25557368993759155,
-0.1556096076965332,
-0.6958494782447815,
-1.7885955572128296,
-0.3052981197834015,
0.17082178592681885,
0.5933625102043152,
-1.1116772890090942,
1.8696622848510742,
0.8560017347335815,
1.9921929836273193,
0.9572242498397827,
-0.3342181444168091,
1.4478574991226196,
0.06541766226291656,
1.9272236824035645,
-0.4427891969680786,
0.5949949622154236,
-0.39413365721702576,
-1.1338410377502441,
0.8701661825180054,
-0.3614889085292816,
-1.9595794677734375,
-0.7341879606246948,
-0.8264647722244263,
-0.17505481839179993,
-0.708142101764679,
0.8774099349975586,
-0.2663131654262543,
-1.4149501323699951,
0.11569773405790329,
-0.7542639970779419,
0.2199944108724594,
-1.2592239379882812,
0.3063918948173523,
0.7784298062324524,
-0.6639541983604431,
0.04141148552298546,
-0.3063095510005951,
-1.2594068050384521,
-0.5460323095321655,
0.4466667175292969,
1.9278122186660767,
-0.6600537300109863,
0.9300511479377747,
1.011794090270996,
-0.7280043363571167,
0.03813764452934265,
0.2915889322757721,
-0.3372534513473511,
0.7900884747505188,
-1.0482622385025024,
-0.39814725518226624,
1.2299141883850098,
-0.3695739805698395,
-0.7544583678245544,
1.4501296281814575,
0.7863385081291199,
-1.0509814023971558,
-0.20092853903770447,
-0.18119466304779053,
-0.876839280128479,
0.015529326163232327,
-1.569655179977417,
-0.12916986644268036,
0.4387114942073822,
-1.5323073863983154,
-0.4060429632663727,
-0.15828348696231842,
1.3243621587753296,
-0.13921552896499634,
1.479224443435669,
-0.33318212628364563,
-0.1262056529521942,
-0.3214600384235382,
-0.538142204284668,
0.1865719109773636,
-0.25583040714263916,
-0.5980302095413208,
0.17820009589195251,
-0.7133988738059998,
0.29234805703163147,
1.4261348247528076,
0.2827163338661194,
0.030307937413454056,
0.4866514205932617,
1.1270930767059326,
0.37554773688316345,
-0.09323905408382416,
-0.8659719228744507,
-1.5276507139205933,
1.985545039176941,
-1.3766818046569824,
1.9685890674591064,
0.796990156173706,
-0.12539328634738922,
-1.7223299741744995,
-1.943402647972107,
1.2971711158752441,
1.0976943969726562,
2.3299427032470703,
0.49259698390960693,
0.4547470510005951,
-0.7977319359779358,
-0.7149744033813477,
0.3336649239063263,
-0.9496043920516968,
-0.7331341505050659,
0.07010006904602051,
2.3565030097961426,
1.8225458860397339,
-0.4789726436138153,
-0.2311103343963623,
-0.9668517708778381,
1.3721799850463867,
-0.2531738877296448,
0.2692728638648987,
2.0086100101470947,
-0.25003552436828613,
-1.0128575563430786,
1.3398571014404297,
-2.37532639503479,
0.27889758348464966,
2.115629196166992,
0.20042608678340912,
0.11211490631103516,
-1.3850890398025513,
-0.6014786958694458,
-0.2301217019557953,
-0.38556089997291565,
-1.1824657917022705,
0.5414159893989563,
-0.2159890979528427,
-0.7475156188011169,
-1.3930753469467163,
0.13728395104408264,
-1.1351197957992554,
-1.7050246000289917,
0.23927702009677887,
2.012388229370117,
2.0520071983337402,
-0.7621761560440063,
1.5114890336990356,
-0.22967028617858887,
0.08344762027263641,
1.2601089477539062,
1.3046258687973022,
3.1649277210235596,
1.8914395570755005,
-1.3264226913452148,
0.6760744452476501,
-0.20314453542232513,
-0.5631694197654724,
1.185669183731079,
-1.104954719543457,
1.1327316761016846,
-0.21271631121635437,
-1.2313809394836426,
-1.2939273118972778,
0.9873712658882141,
0.5158125758171082,
0.025481365621089935,
-0.4924657642841339,
1.1772260665893555,
0.15745796263217926,
1.2910624742507935,
0.5986789464950562,
-0.3793202340602875,
0.6575230956077576,
-0.34905344247817993,
-0.5723183751106262,
1.5220750570297241,
0.23512719571590424,
-1.4771002531051636,
-2.314833641052246,
-0.24035222828388214,
-0.989816427230835,
0.05458572134375572,
-0.6313184499740601,
-1.0164166688919067,
1.5855330228805542,
0.41652029752731323,
-1.204595685005188,
-0.32203954458236694,
-0.26826635003089905,
-0.6159901022911072,
2.6673202514648438,
-1.296557068824768,
-0.1959097683429718,
-0.9832245111465454,
-0.6201346516609192,
1.646789789199829,
-1.3081531524658203,
-0.2536858916282654,
-1.0449162721633911,
-0.5633188486099243,
-1.204432725906372,
-0.4156692326068878,
0.00017940066754817963,
-1.0350329875946045,
0.8815065622329712,
0.20566467940807343,
-1.2380343675613403,
-0.27396827936172485,
-0.8543654084205627,
0.9676741361618042,
-0.17954851686954498,
0.19348452985286713,
1.8297902345657349,
0.3837759792804718,
-0.4612348675727844,
0.702591061592102,
1.1624724864959717,
0.6379249095916748,
-0.6234326958656311,
0.1226920410990715,
-0.6428767442703247,
0.4060932397842407,
-1.344262719154358,
0.22438135743141174,
-2.9140398502349854,
0.6981197595596313,
-0.1339835375547409,
-0.12728069722652435,
-0.10684055835008621,
-1.3465044498443604,
1.0124449729919434,
2.5713601112365723,
-1.2336301803588867,
0.5177386403083801,
0.36035025119781494,
1.2439528703689575,
-1.6612108945846558,
0.24558381736278534,
-0.45589688420295715,
2.098037004470825,
0.1471700370311737,
1.1919119358062744,
-0.4455353319644928,
-2.262268304824829,
0.6005784273147583,
-1.1980524063110352,
-1.1207102537155151,
0.7814950942993164,
-0.8190786838531494,
0.1668454110622406,
-1.3703157901763916,
-0.18261797726154327,
-0.8361983895301819,
-1.1715487241744995,
0.6985576748847961,
0.06842677295207977,
0.42135754227638245,
-0.6395373344421387,
0.336136132478714,
-2.154599905014038,
-1.3874353170394897,
-0.27940091490745544,
-0.9733956456184387,
0.4419567883014679,
-0.41470077633857727,
0.6238090395927429,
-0.16768954694271088,
0.037147946655750275,
0.2500651776790619,
1.4804905652999878,
3.4421114921569824,
0.17771697044372559,
0.24483223259449005,
-0.19648662209510803,
-0.9977810978889465,
1.5157930850982666,
0.8317613005638123,
-0.17600484192371368,
-0.6123067140579224,
-1.0189603567123413,
1.2684961557388306,
2.037594795227051,
1.0326206684112549,
0.1027127206325531,
-0.7947538495063782,
-0.7730505466461182,
-0.0384259968996048,
0.14180199801921844,
0.5665819048881531,
0.9340365529060364,
0.03249649703502655,
0.06129974499344826,
1.2876309156417847,
1.1718088388442993,
-0.3541872203350067,
0.38223031163215637,
-0.8588184118270874,
-0.4467441737651825,
0.4121202230453491,
0.2608020305633545,
0.007466488517820835,
0.3485439419746399,
-1.0343236923217773,
-0.20120930671691895,
-0.3594076633453369,
-0.82073974609375,
-0.7539194822311401,
-0.39656180143356323,
-0.3974001407623291,
1.631977915763855,
0.0869210883975029,
-0.5356523394584656,
0.03382260724902153,
-0.6886394023895264,
-0.08983830362558365,
-1.1240814924240112,
0.19238854944705963,
-0.13390682637691498,
-0.11804307997226715,
-0.09411947429180145,
1.5987719297409058,
-0.9060934782028198,
-2.1414005756378174,
0.20714020729064941,
0.23293840885162354,
-0.3610650897026062,
0.1696798950433731,
1.7081104516983032,
0.49887579679489136,
1.4110337495803833,
1.3703587055206299,
1.0174821615219116,
-0.6648986339569092,
-1.255874514579773,
0.7305397987365723,
0.8711697459220886,
-1.3915215730667114,
0.8875351548194885,
-0.055887576192617416,
-0.5125802755355835,
0.6095615029335022,
1.2924888134002686,
0.47322407364845276,
-2.0349347591400146,
0.9116463661193848,
-0.9786221981048584,
0.7941464781761169,
0.7807414531707764,
0.7714515328407288,
0.2673463225364685,
0.8266734480857849,
-1.1877694129943848,
-1.2073613405227661,
-0.686370849609375,
-0.7503151893615723,
1.9003506898880005,
-0.3006671071052551,
0.5845129489898682,
-0.09481355547904968,
-1.274228811264038,
-0.18531543016433716,
0.7698746919631958,
0.3985372483730316,
-0.4298521876335144,
0.8468557596206665,
-0.6480663418769836,
-0.9938225746154785,
-1.3048819303512573,
-0.45272502303123474,
-1.086867332458496,
-0.908661961555481,
0.981162965297699,
0.7983056306838989,
0.4321610927581787,
1.8837265968322754,
0.6655076146125793,
0.33069372177124023,
-2.5772812366485596,
0.9012133479118347,
0.3899919092655182,
-0.1164841279387474,
0.8133838772773743,
0.3097606897354126,
1.0903209447860718,
0.018509801477193832,
0.6414077281951904,
-2.384675979614258,
2.2772269248962402,
-0.21570292115211487,
0.6263805031776428,
-0.021933358162641525,
-0.1754019558429718,
1.153302550315857,
0.5683140158653259,
0.5449026823043823,
-1.1305207014083862,
0.7943546772003174,
-0.6072681546211243,
1.1672158241271973,
0.8444135785102844,
-0.9138373732566833,
0.0844084694981575,
1.4776599407196045,
0.4338153004646301,
-0.5898798108100891,
-0.9695457816123962,
-0.964612603187561,
0.9758743643760681,
1.7192661762237549,
-0.062050238251686096,
-0.028716813772916794,
0.9103127121925354,
0.6701670289039612,
-1.2489792108535767,
0.03616589680314064,
-0.6582447290420532,
-0.6857039928436279,
1.6809818744659424,
2.042865753173828,
-0.13356338441371918,
-0.2495882213115692,
-0.7972837686538696,
-1.3103824853897095,
0.7620494961738586,
-0.024564595893025398,
0.014163236133754253,
0.701738178730011,
-0.6504037976264954,
1.1040027141571045,
0.7207214832305908,
0.9829180836677551,
0.07911467552185059,
0.23658236861228943,
0.40658625960350037,
-0.3819456398487091,
-1.1238608360290527,
-0.2651198208332062,
-1.155806541442871,
-2.5206730365753174,
0.3582878112792969,
-0.24617315828800201,
-1.444240927696228,
0.04137367382645607,
-1.0220611095428467,
0.8658166527748108,
-0.596747875213623,
-1.1690682172775269,
-1.4858847856521606,
0.27549323439598083,
-0.124195896089077,
0.8688755631446838,
-1.6494537591934204,
-0.16310611367225647,
1.2179878950119019,
0.8136535286903381,
-0.6952535510063171,
0.9075143337249756,
0.19994531571865082,
0.997154176235199,
0.8245577216148376,
-0.3658524453639984,
0.5860274434089661,
-0.027293618768453598,
-1.3324542045593262,
0.436606228351593,
1.2201216220855713,
0.13848941028118134,
1.3918094635009766,
-0.5203527212142944,
0.04129275307059288,
0.40585628151893616,
-0.5345935821533203,
-0.5368354916572571,
-0.46970221400260925,
0.7351785898208618,
-0.027869444340467453,
-0.9442132115364075,
-0.04478848725557327,
-0.07321973145008087,
-0.32421934604644775,
0.19791679084300995,
-1.4980450868606567,
-0.1759658008813858,
-0.3550759553909302,
-0.5446197390556335,
-1.3070662021636963,
0.0007366007193922997,
1.3676881790161133,
-0.7312538027763367,
-0.23115184903144836,
0.4706878364086151,
0.3806515634059906,
0.5305399894714355,
0.6248136758804321,
-0.7334347367286682,
-0.24560286104679108,
-0.32628628611564636,
-0.3330787420272827,
0.30618664622306824,
1.3299474716186523,
-0.05256514996290207,
-0.9271502494812012,
0.670837938785553,
-0.35318487882614136,
0.12045691162347794,
1.944673776626587,
0.06084105744957924,
-0.7390353679656982,
0.31206175684928894,
-0.7688798904418945,
1.8656044006347656,
1.777951717376709,
1.2954565286636353,
-0.034962188452482224,
-1.0028449296951294,
0.5729559063911438,
-0.27177712321281433,
-0.31935566663742065,
0.9061789512634277,
0.38126838207244873,
-0.2839735448360443,
-1.4187432527542114,
0.7277187705039978,
1.1800577640533447,
-0.7450852990150452,
-0.8035045862197876,
0.09513155370950699,
-0.8989228010177612,
1.2059745788574219,
0.5763342380523682,
0.33297741413116455,
0.22320586442947388,
1.6344531774520874,
0.7567206025123596,
-0.4538254737854004,
0.5294429063796997,
0.5833489298820496,
-0.21448944509029388,
-2.1158618927001953,
-1.1107107400894165,
0.32288193702697754,
-0.4195615351200104,
-1.6125329732894897,
1.3533644676208496,
-1.1596659421920776,
-0.9913483262062073,
0.5293236970901489,
0.07257653772830963,
1.4167755842208862,
0.3478182256221771,
1.6835576295852661,
2.143578290939331,
0.9611176252365112,
0.43803057074546814,
1.2517995834350586,
-0.2156001329421997,
-0.4492306709289551,
1.8154386281967163,
-0.45114201307296753,
0.4094456732273102,
1.0898773670196533,
-0.410121351480484,
-1.1495558023452759,
-0.7983534336090088,
-1.161502480506897,
-0.6639454960823059,
1.1521958112716675,
0.04759562388062477,
-1.070610761642456,
0.30708155035972595,
1.5930784940719604,
0.1295613944530487,
-0.20851828157901764,
0.6972835659980774,
0.4213953912258148,
-0.7585194706916809,
-0.030215326696634293,
-0.8819595575332642,
0.5650939345359802,
-0.18648573756217957,
-0.33454522490501404,
0.36605653166770935,
0.49442100524902344,
1.328126072883606,
-0.0774458572268486,
0.15736769139766693,
1.1003525257110596,
-1.429910659790039,
1.455661654472351,
-0.6468491554260254,
0.3054923415184021,
-2.373232126235962,
1.4213669300079346,
-0.8225035071372986,
2.0158185958862305,
-2.5427181720733643,
0.40359070897102356,
-0.5925984382629395,
-0.48344752192497253,
0.2905476987361908,
-0.3779946267604828,
0.02229512482881546,
-0.15146315097808838,
-1.0800471305847168,
-0.07782576978206635,
-0.7412011623382568,
0.6089487075805664,
1.2082841396331787,
1.3640718460083008,
-1.0785326957702637,
-0.25073304772377014,
-1.69828200340271,
-0.15519782900810242,
-0.7357625961303711,
0.3411356508731842,
-1.9539389610290527,
-0.17517445981502533,
-2.0240142345428467,
-2.3079681396484375,
-1.2734472751617432,
-0.8591833114624023,
1.0265870094299316,
0.17389324307441711,
-0.8874174952507019,
1.2385292053222656,
-0.3261457085609436,
-1.8157798051834106,
1.1615747213363647,
-2.2166244983673096
] |
https://github.com/huggingface/datasets/issues/5351 | Do we need to implement `_prepare_split`? | I've tested with every version of `datasets>2.4.0` and i get the same error with all of them. | ### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
| 377 | 17 | Do we need to implement `_prepare_split`?
### Describe the bug
I'm not sure this is a bug or if it's just missing in the documentation, or i'm not doing something correctly, but I'm subclassing `DatasetBuilder` and getting the following error because on the `DatasetBuilder` class the `_prepare_split` method is abstract (as are the others we are required to implement, hence the genesis of my question):
```
Traceback (most recent call last):
File "/home/jason/source/python/prism_machine_learning/examples/create_hf_datasets.py", line 28, in <module>
dataset_builder.download_and_prepare()
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/jason/.virtualenvs/pml/lib/python3.8/site-packages/datasets/builder.py", line 1124, in _prepare_split
raise NotImplementedError()
NotImplementedError
```
### Steps to reproduce the bug
I will share implementation if it turns out that everything should be working (i.e. we only need to implement those 3 methods the docs mention), but I don't want to distract from the original question.
### Expected behavior
I just need to know if there are additional methods we need to implement when subclassing `DatasetBuilder` besides what the documentation specifies -> `_info`, `_split_generators` and `_generate_examples`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-5.4.0-135-generic-x86_64-with-glibc2.2.5
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1
I've tested with every version of `datasets>2.4.0` and i get the same error with all of them. | [
-1.1564629077911377,
-0.9498602747917175,
-0.663374125957489,
1.4442986249923706,
-0.10583754628896713,
-1.330580234527588,
0.14666317403316498,
-1.096006155014038,
1.5908504724502563,
-0.7755786180496216,
0.2561314105987549,
-1.64324951171875,
0.0009109014645218849,
-0.5524017810821533,
-0.7539600729942322,
-0.8674906492233276,
-0.40539678931236267,
-0.8347030878067017,
1.090440034866333,
2.49111270904541,
1.3073545694351196,
-1.3592675924301147,
2.6914243698120117,
0.6253315806388855,
-0.25068217515945435,
-1.0284806489944458,
0.5118100047111511,
-0.08683808147907257,
-1.244111180305481,
-0.44190430641174316,
-0.8866837620735168,
-0.02659996971487999,
-0.5436497926712036,
-0.44842851161956787,
0.020160146057605743,
0.507144033908844,
-0.2853304445743561,
-0.3522126376628876,
-0.5469552278518677,
-0.7873325943946838,
0.5138752460479736,
-0.39047810435295105,
0.9771408438682556,
-0.2916063368320465,
1.7428398132324219,
-0.5489139556884766,
0.5562779903411865,
0.7052303552627563,
1.323817491531372,
0.2096545547246933,
0.04410451278090477,
0.274929404258728,
0.3526633381843567,
-0.013621739111840725,
0.5801300406455994,
1.1732457876205444,
0.6227781176567078,
0.5495607852935791,
0.6936177611351013,
-2.2312402725219727,
1.2467851638793945,
-0.8898006677627563,
0.25347813963890076,
1.3205538988113403,
-0.8416476845741272,
0.2985175848007202,
-1.7818101644515991,
-0.023926209658384323,
0.626913845539093,
-2.219168186187744,
0.2871083915233612,
-1.2484748363494873,
-0.4404938817024231,
0.9812764525413513,
0.3844491243362427,
-1.1995611190795898,
0.17814722657203674,
-0.4682336151599884,
1.0708445310592651,
0.4985090494155884,
1.0634267330169678,
-1.6850014925003052,
-0.07276272028684616,
-0.12144693732261658,
0.09427030384540558,
-1.2751214504241943,
-1.616385817527771,
0.49936777353286743,
0.6314769387245178,
0.601296067237854,
-0.12011171132326126,
1.0285768508911133,
-1.0327154397964478,
0.7683276534080505,
-0.9833645820617676,
-1.7085256576538086,
-1.3746590614318848,
-2.381073474884033,
-2.2604963779449463,
0.7647416591644287,
-0.5077292323112488,
-0.505199134349823,
2.139141321182251,
-0.9762452244758606,
-1.7382080554962158,
1.0784868001937866,
0.2431776374578476,
0.06848800927400589,
2.3521018028259277,
0.16266687214374542,
-0.7607546448707581,
0.5209259390830994,
-0.7144909501075745,
0.7387741804122925,
-0.39588698744773865,
1.252274990081787,
0.4191671311855316,
-1.0772514343261719,
1.5892210006713867,
-0.40179985761642456,
0.6249086856842041,
-0.7159730195999146,
-0.5217868089675903,
-0.7206072807312012,
0.3132014870643616,
1.8762284517288208,
-0.33961737155914307,
1.5194368362426758,
-0.32035568356513977,
-1.5336531400680542,
-1.5990382432937622,
0.8680450320243835,
0.4627731740474701,
-0.8155038356781006,
0.09122943878173828,
-0.48781535029411316,
0.2082277536392212,
-0.06082328408956528,
1.128096342086792,
1.2877923250198364,
0.7558377981185913,
-0.3190732002258301,
-0.8446569442749023,
0.25557368993759155,
-0.1556096076965332,
-0.6958494782447815,
-1.7885955572128296,
-0.3052981197834015,
0.17082178592681885,
0.5933625102043152,
-1.1116772890090942,
1.8696622848510742,
0.8560017347335815,
1.9921929836273193,
0.9572242498397827,
-0.3342181444168091,
1.4478574991226196,
0.06541766226291656,
1.9272236824035645,
-0.4427891969680786,
0.5949949622154236,
-0.39413365721702576,
-1.1338410377502441,
0.8701661825180054,
-0.3614889085292816,
-1.9595794677734375,
-0.7341879606246948,
-0.8264647722244263,
-0.17505481839179993,
-0.708142101764679,
0.8774099349975586,
-0.2663131654262543,
-1.4149501323699951,
0.11569773405790329,
-0.7542639970779419,
0.2199944108724594,
-1.2592239379882812,
0.3063918948173523,
0.7784298062324524,
-0.6639541983604431,
0.04141148552298546,
-0.3063095510005951,
-1.2594068050384521,
-0.5460323095321655,
0.4466667175292969,
1.9278122186660767,
-0.6600537300109863,
0.9300511479377747,
1.011794090270996,
-0.7280043363571167,
0.03813764452934265,
0.2915889322757721,
-0.3372534513473511,
0.7900884747505188,
-1.0482622385025024,
-0.39814725518226624,
1.2299141883850098,
-0.3695739805698395,
-0.7544583678245544,
1.4501296281814575,
0.7863385081291199,
-1.0509814023971558,
-0.20092853903770447,
-0.18119466304779053,
-0.876839280128479,
0.015529326163232327,
-1.569655179977417,
-0.12916986644268036,
0.4387114942073822,
-1.5323073863983154,
-0.4060429632663727,
-0.15828348696231842,
1.3243621587753296,
-0.13921552896499634,
1.479224443435669,
-0.33318212628364563,
-0.1262056529521942,
-0.3214600384235382,
-0.538142204284668,
0.1865719109773636,
-0.25583040714263916,
-0.5980302095413208,
0.17820009589195251,
-0.7133988738059998,
0.29234805703163147,
1.4261348247528076,
0.2827163338661194,
0.030307937413454056,
0.4866514205932617,
1.1270930767059326,
0.37554773688316345,
-0.09323905408382416,
-0.8659719228744507,
-1.5276507139205933,
1.985545039176941,
-1.3766818046569824,
1.9685890674591064,
0.796990156173706,
-0.12539328634738922,
-1.7223299741744995,
-1.943402647972107,
1.2971711158752441,
1.0976943969726562,
2.3299427032470703,
0.49259698390960693,
0.4547470510005951,
-0.7977319359779358,
-0.7149744033813477,
0.3336649239063263,
-0.9496043920516968,
-0.7331341505050659,
0.07010006904602051,
2.3565030097961426,
1.8225458860397339,
-0.4789726436138153,
-0.2311103343963623,
-0.9668517708778381,
1.3721799850463867,
-0.2531738877296448,
0.2692728638648987,
2.0086100101470947,
-0.25003552436828613,
-1.0128575563430786,
1.3398571014404297,
-2.37532639503479,
0.27889758348464966,
2.115629196166992,
0.20042608678340912,
0.11211490631103516,
-1.3850890398025513,
-0.6014786958694458,
-0.2301217019557953,
-0.38556089997291565,
-1.1824657917022705,
0.5414159893989563,
-0.2159890979528427,
-0.7475156188011169,
-1.3930753469467163,
0.13728395104408264,
-1.1351197957992554,
-1.7050246000289917,
0.23927702009677887,
2.012388229370117,
2.0520071983337402,
-0.7621761560440063,
1.5114890336990356,
-0.22967028617858887,
0.08344762027263641,
1.2601089477539062,
1.3046258687973022,
3.1649277210235596,
1.8914395570755005,
-1.3264226913452148,
0.6760744452476501,
-0.20314453542232513,
-0.5631694197654724,
1.185669183731079,
-1.104954719543457,
1.1327316761016846,
-0.21271631121635437,
-1.2313809394836426,
-1.2939273118972778,
0.9873712658882141,
0.5158125758171082,
0.025481365621089935,
-0.4924657642841339,
1.1772260665893555,
0.15745796263217926,
1.2910624742507935,
0.5986789464950562,
-0.3793202340602875,
0.6575230956077576,
-0.34905344247817993,
-0.5723183751106262,
1.5220750570297241,
0.23512719571590424,
-1.4771002531051636,
-2.314833641052246,
-0.24035222828388214,
-0.989816427230835,
0.05458572134375572,
-0.6313184499740601,
-1.0164166688919067,
1.5855330228805542,
0.41652029752731323,
-1.204595685005188,
-0.32203954458236694,
-0.26826635003089905,
-0.6159901022911072,
2.6673202514648438,
-1.296557068824768,
-0.1959097683429718,
-0.9832245111465454,
-0.6201346516609192,
1.646789789199829,
-1.3081531524658203,
-0.2536858916282654,
-1.0449162721633911,
-0.5633188486099243,
-1.204432725906372,
-0.4156692326068878,
0.00017940066754817963,
-1.0350329875946045,
0.8815065622329712,
0.20566467940807343,
-1.2380343675613403,
-0.27396827936172485,
-0.8543654084205627,
0.9676741361618042,
-0.17954851686954498,
0.19348452985286713,
1.8297902345657349,
0.3837759792804718,
-0.4612348675727844,
0.702591061592102,
1.1624724864959717,
0.6379249095916748,
-0.6234326958656311,
0.1226920410990715,
-0.6428767442703247,
0.4060932397842407,
-1.344262719154358,
0.22438135743141174,
-2.9140398502349854,
0.6981197595596313,
-0.1339835375547409,
-0.12728069722652435,
-0.10684055835008621,
-1.3465044498443604,
1.0124449729919434,
2.5713601112365723,
-1.2336301803588867,
0.5177386403083801,
0.36035025119781494,
1.2439528703689575,
-1.6612108945846558,
0.24558381736278534,
-0.45589688420295715,
2.098037004470825,
0.1471700370311737,
1.1919119358062744,
-0.4455353319644928,
-2.262268304824829,
0.6005784273147583,
-1.1980524063110352,
-1.1207102537155151,
0.7814950942993164,
-0.8190786838531494,
0.1668454110622406,
-1.3703157901763916,
-0.18261797726154327,
-0.8361983895301819,
-1.1715487241744995,
0.6985576748847961,
0.06842677295207977,
0.42135754227638245,
-0.6395373344421387,
0.336136132478714,
-2.154599905014038,
-1.3874353170394897,
-0.27940091490745544,
-0.9733956456184387,
0.4419567883014679,
-0.41470077633857727,
0.6238090395927429,
-0.16768954694271088,
0.037147946655750275,
0.2500651776790619,
1.4804905652999878,
3.4421114921569824,
0.17771697044372559,
0.24483223259449005,
-0.19648662209510803,
-0.9977810978889465,
1.5157930850982666,
0.8317613005638123,
-0.17600484192371368,
-0.6123067140579224,
-1.0189603567123413,
1.2684961557388306,
2.037594795227051,
1.0326206684112549,
0.1027127206325531,
-0.7947538495063782,
-0.7730505466461182,
-0.0384259968996048,
0.14180199801921844,
0.5665819048881531,
0.9340365529060364,
0.03249649703502655,
0.06129974499344826,
1.2876309156417847,
1.1718088388442993,
-0.3541872203350067,
0.38223031163215637,
-0.8588184118270874,
-0.4467441737651825,
0.4121202230453491,
0.2608020305633545,
0.007466488517820835,
0.3485439419746399,
-1.0343236923217773,
-0.20120930671691895,
-0.3594076633453369,
-0.82073974609375,
-0.7539194822311401,
-0.39656180143356323,
-0.3974001407623291,
1.631977915763855,
0.0869210883975029,
-0.5356523394584656,
0.03382260724902153,
-0.6886394023895264,
-0.08983830362558365,
-1.1240814924240112,
0.19238854944705963,
-0.13390682637691498,
-0.11804307997226715,
-0.09411947429180145,
1.5987719297409058,
-0.9060934782028198,
-2.1414005756378174,
0.20714020729064941,
0.23293840885162354,
-0.3610650897026062,
0.1696798950433731,
1.7081104516983032,
0.49887579679489136,
1.4110337495803833,
1.3703587055206299,
1.0174821615219116,
-0.6648986339569092,
-1.255874514579773,
0.7305397987365723,
0.8711697459220886,
-1.3915215730667114,
0.8875351548194885,
-0.055887576192617416,
-0.5125802755355835,
0.6095615029335022,
1.2924888134002686,
0.47322407364845276,
-2.0349347591400146,
0.9116463661193848,
-0.9786221981048584,
0.7941464781761169,
0.7807414531707764,
0.7714515328407288,
0.2673463225364685,
0.8266734480857849,
-1.1877694129943848,
-1.2073613405227661,
-0.686370849609375,
-0.7503151893615723,
1.9003506898880005,
-0.3006671071052551,
0.5845129489898682,
-0.09481355547904968,
-1.274228811264038,
-0.18531543016433716,
0.7698746919631958,
0.3985372483730316,
-0.4298521876335144,
0.8468557596206665,
-0.6480663418769836,
-0.9938225746154785,
-1.3048819303512573,
-0.45272502303123474,
-1.086867332458496,
-0.908661961555481,
0.981162965297699,
0.7983056306838989,
0.4321610927581787,
1.8837265968322754,
0.6655076146125793,
0.33069372177124023,
-2.5772812366485596,
0.9012133479118347,
0.3899919092655182,
-0.1164841279387474,
0.8133838772773743,
0.3097606897354126,
1.0903209447860718,
0.018509801477193832,
0.6414077281951904,
-2.384675979614258,
2.2772269248962402,
-0.21570292115211487,
0.6263805031776428,
-0.021933358162641525,
-0.1754019558429718,
1.153302550315857,
0.5683140158653259,
0.5449026823043823,
-1.1305207014083862,
0.7943546772003174,
-0.6072681546211243,
1.1672158241271973,
0.8444135785102844,
-0.9138373732566833,
0.0844084694981575,
1.4776599407196045,
0.4338153004646301,
-0.5898798108100891,
-0.9695457816123962,
-0.964612603187561,
0.9758743643760681,
1.7192661762237549,
-0.062050238251686096,
-0.028716813772916794,
0.9103127121925354,
0.6701670289039612,
-1.2489792108535767,
0.03616589680314064,
-0.6582447290420532,
-0.6857039928436279,
1.6809818744659424,
2.042865753173828,
-0.13356338441371918,
-0.2495882213115692,
-0.7972837686538696,
-1.3103824853897095,
0.7620494961738586,
-0.024564595893025398,
0.014163236133754253,
0.701738178730011,
-0.6504037976264954,
1.1040027141571045,
0.7207214832305908,
0.9829180836677551,
0.07911467552185059,
0.23658236861228943,
0.40658625960350037,
-0.3819456398487091,
-1.1238608360290527,
-0.2651198208332062,
-1.155806541442871,
-2.5206730365753174,
0.3582878112792969,
-0.24617315828800201,
-1.444240927696228,
0.04137367382645607,
-1.0220611095428467,
0.8658166527748108,
-0.596747875213623,
-1.1690682172775269,
-1.4858847856521606,
0.27549323439598083,
-0.124195896089077,
0.8688755631446838,
-1.6494537591934204,
-0.16310611367225647,
1.2179878950119019,
0.8136535286903381,
-0.6952535510063171,
0.9075143337249756,
0.19994531571865082,
0.997154176235199,
0.8245577216148376,
-0.3658524453639984,
0.5860274434089661,
-0.027293618768453598,
-1.3324542045593262,
0.436606228351593,
1.2201216220855713,
0.13848941028118134,
1.3918094635009766,
-0.5203527212142944,
0.04129275307059288,
0.40585628151893616,
-0.5345935821533203,
-0.5368354916572571,
-0.46970221400260925,
0.7351785898208618,
-0.027869444340467453,
-0.9442132115364075,
-0.04478848725557327,
-0.07321973145008087,
-0.32421934604644775,
0.19791679084300995,
-1.4980450868606567,
-0.1759658008813858,
-0.3550759553909302,
-0.5446197390556335,
-1.3070662021636963,
0.0007366007193922997,
1.3676881790161133,
-0.7312538027763367,
-0.23115184903144836,
0.4706878364086151,
0.3806515634059906,
0.5305399894714355,
0.6248136758804321,
-0.7334347367286682,
-0.24560286104679108,
-0.32628628611564636,
-0.3330787420272827,
0.30618664622306824,
1.3299474716186523,
-0.05256514996290207,
-0.9271502494812012,
0.670837938785553,
-0.35318487882614136,
0.12045691162347794,
1.944673776626587,
0.06084105744957924,
-0.7390353679656982,
0.31206175684928894,
-0.7688798904418945,
1.8656044006347656,
1.777951717376709,
1.2954565286636353,
-0.034962188452482224,
-1.0028449296951294,
0.5729559063911438,
-0.27177712321281433,
-0.31935566663742065,
0.9061789512634277,
0.38126838207244873,
-0.2839735448360443,
-1.4187432527542114,
0.7277187705039978,
1.1800577640533447,
-0.7450852990150452,
-0.8035045862197876,
0.09513155370950699,
-0.8989228010177612,
1.2059745788574219,
0.5763342380523682,
0.33297741413116455,
0.22320586442947388,
1.6344531774520874,
0.7567206025123596,
-0.4538254737854004,
0.5294429063796997,
0.5833489298820496,
-0.21448944509029388,
-2.1158618927001953,
-1.1107107400894165,
0.32288193702697754,
-0.4195615351200104,
-1.6125329732894897,
1.3533644676208496,
-1.1596659421920776,
-0.9913483262062073,
0.5293236970901489,
0.07257653772830963,
1.4167755842208862,
0.3478182256221771,
1.6835576295852661,
2.143578290939331,
0.9611176252365112,
0.43803057074546814,
1.2517995834350586,
-0.2156001329421997,
-0.4492306709289551,
1.8154386281967163,
-0.45114201307296753,
0.4094456732273102,
1.0898773670196533,
-0.410121351480484,
-1.1495558023452759,
-0.7983534336090088,
-1.161502480506897,
-0.6639454960823059,
1.1521958112716675,
0.04759562388062477,
-1.070610761642456,
0.30708155035972595,
1.5930784940719604,
0.1295613944530487,
-0.20851828157901764,
0.6972835659980774,
0.4213953912258148,
-0.7585194706916809,
-0.030215326696634293,
-0.8819595575332642,
0.5650939345359802,
-0.18648573756217957,
-0.33454522490501404,
0.36605653166770935,
0.49442100524902344,
1.328126072883606,
-0.0774458572268486,
0.15736769139766693,
1.1003525257110596,
-1.429910659790039,
1.455661654472351,
-0.6468491554260254,
0.3054923415184021,
-2.373232126235962,
1.4213669300079346,
-0.8225035071372986,
2.0158185958862305,
-2.5427181720733643,
0.40359070897102356,
-0.5925984382629395,
-0.48344752192497253,
0.2905476987361908,
-0.3779946267604828,
0.02229512482881546,
-0.15146315097808838,
-1.0800471305847168,
-0.07782576978206635,
-0.7412011623382568,
0.6089487075805664,
1.2082841396331787,
1.3640718460083008,
-1.0785326957702637,
-0.25073304772377014,
-1.69828200340271,
-0.15519782900810242,
-0.7357625961303711,
0.3411356508731842,
-1.9539389610290527,
-0.17517445981502533,
-2.0240142345428467,
-2.3079681396484375,
-1.2734472751617432,
-0.8591833114624023,
1.0265870094299316,
0.17389324307441711,
-0.8874174952507019,
1.2385292053222656,
-0.3261457085609436,
-1.8157798051834106,
1.1615747213363647,
-2.2166244983673096
] |
https://github.com/huggingface/datasets/issues/5348 | The data downloaded in the download folder of the cache does not respect `umask` | note, that `datasets` already did some of that umask fixing in the past and also at the hub - the recent work on the hub about the same: https://github.com/huggingface/huggingface_hub/pull/1220
Also I noticed that each file has a .json counterpart and the latter always has the correct perms:
```
-rw------- 1 uue59kq cnw 173M Dec 9 01:37 537596e64721e2ae3d98785b91d30fda0360c196a8224e29658ad629e7303a4d
-rw-rw---- 1 uue59kq cnw 101 Dec 9 01:37 537596e64721e2ae3d98785b91d30fda0360c196a8224e29658ad629e7303a4d.json
```
so perhaps cheating is possible and syncing the perms between the 2 will do the trick. | ### Describe the bug
For a project on a cluster we are several users to share the same cache for the datasets library. And we have a problem with the permissions on the data downloaded in the cache.
Indeed, it seems that the data is downloaded by giving read and write permissions only to the user launching the command (and no permissions to the group). In our case, those permissions don't respect the `umask` of this user, which was `0007`.
Traceback:
```
Using custom data configuration default
Downloading and preparing dataset text_caps/default to /gpfswork/rech/cnw/commun/datasets/HuggingFaceM4___text_caps/default/1.0.0/2b9ad220cd90fcf2bfb454645bc54364711b83d6d39401ffdaf8cc40882e9141...
Downloading data files: 100%|████████████████████| 3/3 [00:00<00:00, 921.62it/s]
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
Cell In [3], line 1
----> 1 ds = load_dataset(dataset_name)
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/load.py:1746, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1743 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1745 # Download and prepare data
-> 1746 builder_instance.download_and_prepare(
1747 download_config=download_config,
1748 download_mode=download_mode,
1749 ignore_verifications=ignore_verifications,
1750 try_from_hf_gcs=try_from_hf_gcs,
1751 use_auth_token=use_auth_token,
1752 )
1754 # Build dataset for splits
1755 keep_in_memory = (
1756 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1757 )
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/builder.py:704, in DatasetBuilder.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)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/builder.py:1227, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1226 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1227 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File /gpfswork/rech/cnw/commun/modules/datasets_modules/datasets/HuggingFaceM4--TextCaps/2b9ad220cd90fcf2bfb454645bc54364711b83d6d39401ffdaf8cc40882e9141/TextCaps.py:125, in TextCapsDataset._split_generators(self, dl_manager)
123 def _split_generators(self, dl_manager):
124 # urls = _URLS[self.config.name] # TODO later
--> 125 data_dir = dl_manager.download_and_extract(_URLS)
126 gen_kwargs = {
127 split_name: {
128 f"{dir_name}_path": Path(data_dir[dir_name][split_name])
(...)
133 for split_name in ["train", "val", "test"]
134 }
136 for split_name in ["train", "val", "test"]:
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/download/download_manager.py:431, in DownloadManager.download_and_extract(self, url_or_urls)
415 def download_and_extract(self, url_or_urls):
416 """Download and extract given url_or_urls.
417
418 Is roughly equivalent to:
(...)
429 extracted_path(s): `str`, extracted paths of given URL(s).
430 """
--> 431 return self.extract(self.download(url_or_urls))
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/download/download_manager.py:324, in DownloadManager.download(self, url_or_urls)
321 self.downloaded_paths.update(dict(zip(url_or_urls.flatten(), downloaded_path_or_paths.flatten())))
323 start_time = datetime.now()
--> 324 self._record_sizes_checksums(url_or_urls, downloaded_path_or_paths)
325 duration = datetime.now() - start_time
326 logger.info(f"Checksum Computation took {duration.total_seconds() // 60} min")
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/download/download_manager.py:229, in DownloadManager._record_sizes_checksums(self, url_or_urls, downloaded_path_or_paths)
226 """Record size/checksum of downloaded files."""
227 for url, path in zip(url_or_urls.flatten(), downloaded_path_or_paths.flatten()):
228 # call str to support PathLike objects
--> 229 self._recorded_sizes_checksums[str(url)] = get_size_checksum_dict(
230 path, record_checksum=self.record_checksums
231 )
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/utils/info_utils.py:82, in get_size_checksum_dict(path, record_checksum)
80 if record_checksum:
81 m = sha256()
---> 82 with open(path, "rb") as f:
83 for chunk in iter(lambda: f.read(1 << 20), b""):
84 m.update(chunk)
PermissionError: [Errno 13] Permission denied: '/gpfswork/rech/cnw/commun/datasets/downloads/1e6aa6d23190c30885194fabb193dce3874d902d7636b66315ee8aaa584e80d6'
```
### Steps to reproduce the bug
I think the following will reproduce the bug.
Given 2 users belonging to the same group with `umask` set to `0007`
- first run with User 1:
```python
from datasets import load_dataset
ds_name = "HuggingFaceM4/VQAv2"
ds = load_dataset(ds_name)
```
- then run with User 2:
```python
from datasets import load_dataset
ds_name = "HuggingFaceM4/TextCaps"
ds = load_dataset(ds_name)
```
### Expected behavior
No `PermissionError`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-4.18.0-305.65.1.el8_4.x86_64-x86_64-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
| 378 | 83 | The data downloaded in the download folder of the cache does not respect `umask`
### Describe the bug
For a project on a cluster we are several users to share the same cache for the datasets library. And we have a problem with the permissions on the data downloaded in the cache.
Indeed, it seems that the data is downloaded by giving read and write permissions only to the user launching the command (and no permissions to the group). In our case, those permissions don't respect the `umask` of this user, which was `0007`.
Traceback:
```
Using custom data configuration default
Downloading and preparing dataset text_caps/default to /gpfswork/rech/cnw/commun/datasets/HuggingFaceM4___text_caps/default/1.0.0/2b9ad220cd90fcf2bfb454645bc54364711b83d6d39401ffdaf8cc40882e9141...
Downloading data files: 100%|████████████████████| 3/3 [00:00<00:00, 921.62it/s]
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
Cell In [3], line 1
----> 1 ds = load_dataset(dataset_name)
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/load.py:1746, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1743 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1745 # Download and prepare data
-> 1746 builder_instance.download_and_prepare(
1747 download_config=download_config,
1748 download_mode=download_mode,
1749 ignore_verifications=ignore_verifications,
1750 try_from_hf_gcs=try_from_hf_gcs,
1751 use_auth_token=use_auth_token,
1752 )
1754 # Build dataset for splits
1755 keep_in_memory = (
1756 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1757 )
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/builder.py:704, in DatasetBuilder.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)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/builder.py:1227, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1226 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1227 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File /gpfswork/rech/cnw/commun/modules/datasets_modules/datasets/HuggingFaceM4--TextCaps/2b9ad220cd90fcf2bfb454645bc54364711b83d6d39401ffdaf8cc40882e9141/TextCaps.py:125, in TextCapsDataset._split_generators(self, dl_manager)
123 def _split_generators(self, dl_manager):
124 # urls = _URLS[self.config.name] # TODO later
--> 125 data_dir = dl_manager.download_and_extract(_URLS)
126 gen_kwargs = {
127 split_name: {
128 f"{dir_name}_path": Path(data_dir[dir_name][split_name])
(...)
133 for split_name in ["train", "val", "test"]
134 }
136 for split_name in ["train", "val", "test"]:
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/download/download_manager.py:431, in DownloadManager.download_and_extract(self, url_or_urls)
415 def download_and_extract(self, url_or_urls):
416 """Download and extract given url_or_urls.
417
418 Is roughly equivalent to:
(...)
429 extracted_path(s): `str`, extracted paths of given URL(s).
430 """
--> 431 return self.extract(self.download(url_or_urls))
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/download/download_manager.py:324, in DownloadManager.download(self, url_or_urls)
321 self.downloaded_paths.update(dict(zip(url_or_urls.flatten(), downloaded_path_or_paths.flatten())))
323 start_time = datetime.now()
--> 324 self._record_sizes_checksums(url_or_urls, downloaded_path_or_paths)
325 duration = datetime.now() - start_time
326 logger.info(f"Checksum Computation took {duration.total_seconds() // 60} min")
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/download/download_manager.py:229, in DownloadManager._record_sizes_checksums(self, url_or_urls, downloaded_path_or_paths)
226 """Record size/checksum of downloaded files."""
227 for url, path in zip(url_or_urls.flatten(), downloaded_path_or_paths.flatten()):
228 # call str to support PathLike objects
--> 229 self._recorded_sizes_checksums[str(url)] = get_size_checksum_dict(
230 path, record_checksum=self.record_checksums
231 )
File /gpfswork/rech/cnw/commun/conda/lucile-m4_3/lib/python3.8/site-packages/datasets/utils/info_utils.py:82, in get_size_checksum_dict(path, record_checksum)
80 if record_checksum:
81 m = sha256()
---> 82 with open(path, "rb") as f:
83 for chunk in iter(lambda: f.read(1 << 20), b""):
84 m.update(chunk)
PermissionError: [Errno 13] Permission denied: '/gpfswork/rech/cnw/commun/datasets/downloads/1e6aa6d23190c30885194fabb193dce3874d902d7636b66315ee8aaa584e80d6'
```
### Steps to reproduce the bug
I think the following will reproduce the bug.
Given 2 users belonging to the same group with `umask` set to `0007`
- first run with User 1:
```python
from datasets import load_dataset
ds_name = "HuggingFaceM4/VQAv2"
ds = load_dataset(ds_name)
```
- then run with User 2:
```python
from datasets import load_dataset
ds_name = "HuggingFaceM4/TextCaps"
ds = load_dataset(ds_name)
```
### Expected behavior
No `PermissionError`
### Environment info
- `datasets` version: 2.4.0
- Platform: Linux-4.18.0-305.65.1.el8_4.x86_64-x86_64-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 7.0.0
- Pandas version: 1.4.2
note, that `datasets` already did some of that umask fixing in the past and also at the hub - the recent work on the hub about the same: https://github.com/huggingface/huggingface_hub/pull/1220
Also I noticed that each file has a .json counterpart and the latter always has the correct perms:
```
-rw------- 1 uue59kq cnw 173M Dec 9 01:37 537596e64721e2ae3d98785b91d30fda0360c196a8224e29658ad629e7303a4d
-rw-rw---- 1 uue59kq cnw 101 Dec 9 01:37 537596e64721e2ae3d98785b91d30fda0360c196a8224e29658ad629e7303a4d.json
```
so perhaps cheating is possible and syncing the perms between the 2 will do the trick. | [
-1.1730643510818481,
-0.8724946975708008,
-0.6110600233078003,
1.3566467761993408,
-0.0034409910440444946,
-1.4475382566452026,
0.09687133878469467,
-0.9708036780357361,
1.5548968315124512,
-0.8790223598480225,
0.3033035695552826,
-1.7146375179290771,
0.0685807541012764,
-0.6226881146430969,
-0.6877670884132385,
-0.6980807781219482,
-0.32362836599349976,
-0.7781752347946167,
1.065001368522644,
2.4404022693634033,
1.1843609809875488,
-1.3005845546722412,
2.8187851905822754,
0.651979923248291,
-0.26035934686660767,
-0.8198142647743225,
0.43605321645736694,
0.006377811543643475,
-1.4051814079284668,
-0.2907487154006958,
-1.0088802576065063,
0.005830823443830013,
-0.7167787551879883,
-0.45129528641700745,
0.06439494341611862,
0.49880099296569824,
-0.2364000529050827,
-0.3297154903411865,
-0.3885030150413513,
-0.7480192184448242,
0.6009014248847961,
-0.2343747466802597,
0.9075450897216797,
-0.30959680676460266,
1.7891689538955688,
-0.6219109296798706,
0.4319973886013031,
0.5444605946540833,
1.1661940813064575,
0.14632967114448547,
-0.021049734205007553,
0.3023684620857239,
0.18636822700500488,
0.02953531965613365,
0.5033782720565796,
1.2219269275665283,
0.5920800566673279,
0.5546947121620178,
0.7261350154876709,
-2.1905972957611084,
1.356912612915039,
-0.8027999401092529,
0.258926659822464,
1.3774806261062622,
-1.0639599561691284,
0.43557342886924744,
-1.851726770401001,
-0.17517006397247314,
0.4468834698200226,
-2.2294278144836426,
0.15633247792720795,
-1.2327353954315186,
-0.5539975762367249,
0.9782223701477051,
0.3442937433719635,
-1.1817669868469238,
0.058326803147792816,
-0.5298335552215576,
1.0665051937103271,
0.42061612010002136,
1.1154189109802246,
-1.6710013151168823,
0.0633002445101738,
-0.2233099490404129,
0.288116991519928,
-1.259711742401123,
-1.6946275234222412,
0.6223052740097046,
0.678912878036499,
0.6366908550262451,
-0.16564466059207916,
0.9267187714576721,
-1.1313015222549438,
0.839847207069397,
-0.9530938267707825,
-1.7045090198516846,
-1.2492111921310425,
-2.49240779876709,
-2.4072329998016357,
0.7770198583602905,
-0.4468567669391632,
-0.41598060727119446,
2.119694471359253,
-1.1031525135040283,
-1.6945720911026,
1.0389814376831055,
0.29733291268348694,
-0.09068430215120316,
2.4010565280914307,
0.20067434012889862,
-0.8646416664123535,
0.6870602965354919,
-0.8727544546127319,
0.6551063060760498,
-0.4100603759288788,
1.2451015710830688,
0.4251610338687897,
-1.0712612867355347,
1.5770584344863892,
-0.4980236887931824,
0.5342235565185547,
-0.7624457478523254,
-0.4295988380908966,
-0.6767258048057556,
0.19558347761631012,
1.9255454540252686,
-0.1983589380979538,
1.5105444192886353,
-0.14437568187713623,
-1.4684867858886719,
-1.392614483833313,
0.8034709095954895,
0.47813722491264343,
-0.8946412801742554,
0.19104710221290588,
-0.4065719544887543,
0.12469736486673355,
0.0925082117319107,
1.056799292564392,
1.2484276294708252,
0.7712062001228333,
-0.20419834554195404,
-0.91123366355896,
0.09197531640529633,
-0.18292690813541412,
-0.5948760509490967,
-1.8101089000701904,
-0.22241362929344177,
0.13921667635440826,
0.6720111966133118,
-1.1046327352523804,
1.9605478048324585,
0.9028947949409485,
2.0379815101623535,
0.918254554271698,
-0.40082043409347534,
1.5287244319915771,
0.05903597176074982,
1.907913327217102,
-0.3395869731903076,
0.7023186683654785,
-0.4943399429321289,
-1.2135512828826904,
0.7962033152580261,
-0.29955849051475525,
-1.944447636604309,
-0.3882163166999817,
-0.8677880764007568,
-0.14036095142364502,
-0.8718675374984741,
1.011781096458435,
-0.16530627012252808,
-1.4539622068405151,
0.21442727744579315,
-0.5859919190406799,
0.13915947079658508,
-1.3340647220611572,
0.2509172558784485,
0.744701087474823,
-0.6977903842926025,
-0.01148463599383831,
-0.3886050879955292,
-1.3923389911651611,
-0.6302635669708252,
0.505994439125061,
1.7315126657485962,
-0.6205731630325317,
1.0191726684570312,
1.0674241781234741,
-0.5962107181549072,
-0.03659332916140556,
0.46136751770973206,
-0.37754666805267334,
0.8471790552139282,
-1.0560519695281982,
-0.4560321271419525,
1.1341173648834229,
-0.33312395215034485,
-0.49197471141815186,
1.350842833518982,
0.7154237627983093,
-1.0722626447677612,
-0.24441306293010712,
-0.15460433065891266,
-0.8530905842781067,
0.04507109522819519,
-1.6117935180664062,
-0.05515756830573082,
0.30492135882377625,
-1.469390630722046,
-0.44154658913612366,
-0.04250643774867058,
1.3409302234649658,
-0.050417348742485046,
1.3696542978286743,
-0.2034701555967331,
-0.11909537017345428,
-0.5273592472076416,
-0.4957559406757355,
0.17067459225654602,
-0.04768604785203934,
-0.49629026651382446,
0.2809182405471802,
-0.8147225379943848,
0.15006490051746368,
1.4746304750442505,
0.1693924218416214,
0.15672428905963898,
0.4760909676551819,
1.1442428827285767,
0.26426035165786743,
-0.16741003096103668,
-0.8313442468643188,
-1.6733171939849854,
1.9913828372955322,
-1.6302253007888794,
1.9702447652816772,
0.8789856433868408,
-0.03391912952065468,
-1.8578468561172485,
-1.830708384513855,
1.4565361738204956,
1.0866891145706177,
2.4636666774749756,
0.4854528307914734,
0.380496084690094,
-0.8098589181900024,
-0.7073351144790649,
0.5319184064865112,
-0.7789034843444824,
-0.8097317218780518,
0.15438055992126465,
2.3126795291900635,
1.7157398462295532,
-0.35672780871391296,
-0.21478457748889923,
-0.9182279109954834,
1.361350417137146,
-0.2562210261821747,
0.25312739610671997,
1.9057785272598267,
-0.4473215341567993,
-1.0374113321304321,
1.3189071416854858,
-2.4374165534973145,
0.25804248452186584,
2.028027057647705,
0.3341623544692993,
0.08836201578378677,
-1.1629992723464966,
-0.7159268856048584,
-0.20593476295471191,
-0.4596145451068878,
-1.2810804843902588,
0.4127321243286133,
-0.306856632232666,
-0.821653425693512,
-1.4622403383255005,
0.02126968279480934,
-1.2269283533096313,
-1.7751762866973877,
0.3630179166793823,
1.8243428468704224,
2.2413032054901123,
-0.7531120181083679,
1.3557144403457642,
-0.2587783634662628,
0.2458769530057907,
1.1610381603240967,
1.3142929077148438,
3.1960878372192383,
1.8251992464065552,
-1.30913245677948,
0.6975626349449158,
-0.1395053118467331,
-0.5146985650062561,
1.1255252361297607,
-0.970465898513794,
1.2244219779968262,
-0.27087166905403137,
-1.3614882230758667,
-1.2648226022720337,
1.0111563205718994,
0.41162043809890747,
0.019237156957387924,
-0.47570523619651794,
1.1374521255493164,
0.21064750850200653,
1.3410274982452393,
0.6413969993591309,
-0.36126112937927246,
0.47609803080558777,
-0.41433894634246826,
-0.6078816056251526,
1.6258623600006104,
0.13946093618869781,
-1.504244089126587,
-2.368734121322632,
-0.2382885068655014,
-0.9920179843902588,
0.051899559795856476,
-0.9044360518455505,
-1.00834059715271,
1.4942221641540527,
0.46668797731399536,
-0.9820449948310852,
-0.12528391182422638,
-0.3710308372974396,
-0.5879424214363098,
2.5342745780944824,
-1.3417174816131592,
-0.20609785616397858,
-0.8762719631195068,
-0.6047617197036743,
1.4567004442214966,
-1.2194000482559204,
-0.30650898814201355,
-1.0908242464065552,
-0.5456668138504028,
-1.2097047567367554,
-0.41389894485473633,
-0.03545638546347618,
-0.8576583862304688,
0.7662110328674316,
-0.023962415754795074,
-1.2960917949676514,
-0.26773157715797424,
-1.0748480558395386,
0.9344021677970886,
-0.19735130667686462,
0.06120811402797699,
1.6242378950119019,
0.23713193833827972,
-0.4703976809978485,
0.766692578792572,
1.2219899892807007,
0.6381838917732239,
-0.566539466381073,
0.13486404716968536,
-0.6195942163467407,
0.4972551465034485,
-1.1344560384750366,
0.41988447308540344,
-3.0343949794769287,
0.6734371781349182,
-0.014232896268367767,
-0.04812776669859886,
-0.18253137171268463,
-1.4907935857772827,
0.9290836453437805,
2.495267391204834,
-1.1078194379806519,
0.5872209072113037,
0.301395446062088,
1.218123435974121,
-1.627363920211792,
0.07140026241540909,
-0.6502197980880737,
2.0840799808502197,
-0.024758215993642807,
1.0818907022476196,
-0.5767805576324463,
-2.344479560852051,
0.5393244624137878,
-1.2268720865249634,
-0.964194655418396,
0.8690245151519775,
-0.8198372721672058,
0.22198587656021118,
-1.1856852769851685,
-0.12486763298511505,
-0.9192238450050354,
-1.1926780939102173,
0.5053167939186096,
0.036324597895145416,
0.7027941942214966,
-0.621038019657135,
0.2124962955713272,
-2.2252182960510254,
-1.343857765197754,
-0.15444625914096832,
-0.9039894342422485,
0.4814465343952179,
-0.4120260179042816,
0.6687676906585693,
-0.06596194952726364,
0.10692127794027328,
0.3074353039264679,
1.456201195716858,
3.2117745876312256,
0.00048636458814144135,
0.305030882358551,
-0.21526069939136505,
-1.0469777584075928,
1.4642270803451538,
0.9483285546302795,
-0.21833385527133942,
-0.6390590667724609,
-0.9024559259414673,
1.3408571481704712,
1.9372334480285645,
1.0390242338180542,
0.08701476454734802,
-0.8578263521194458,
-0.7526872754096985,
0.09831076860427856,
0.13688154518604279,
0.5031126737594604,
0.978803277015686,
0.0765499398112297,
0.14932702481746674,
1.373920202255249,
1.0338385105133057,
-0.31707993149757385,
0.4774268567562103,
-0.8576633334159851,
-0.3930058777332306,
0.5125911831855774,
0.3751964271068573,
-0.017057988792657852,
0.31088247895240784,
-1.0334724187850952,
-0.2660320997238159,
-0.23966291546821594,
-0.8253722190856934,
-0.7012638449668884,
-0.40172621607780457,
-0.4738287925720215,
1.7428451776504517,
-0.05749218165874481,
-0.49698957800865173,
0.03354709595441818,
-0.7679329514503479,
-0.13350947201251984,
-1.0449248552322388,
0.2719384431838989,
-0.14704643189907074,
0.06257084757089615,
-0.13904012739658356,
1.696781039237976,
-0.9623996019363403,
-2.232724189758301,
0.12077059596776962,
0.2122538983821869,
-0.31481972336769104,
-0.05936266481876373,
1.8457987308502197,
0.5118629336357117,
1.4423905611038208,
1.5041416883468628,
1.0933268070220947,
-0.6526588201522827,
-1.3075475692749023,
0.8294168710708618,
0.8989450931549072,
-1.3800231218338013,
0.92491614818573,
-0.17399795353412628,
-0.5799179673194885,
0.627793550491333,
1.2496401071548462,
0.3855314254760742,
-2.0082526206970215,
0.9144823551177979,
-1.1957366466522217,
0.9140442609786987,
0.8140478134155273,
0.8029953241348267,
0.13147692382335663,
0.9335019588470459,
-1.2537204027175903,
-1.0310746431350708,
-0.5992019772529602,
-0.6946317553520203,
1.89134681224823,
-0.2751842439174652,
0.3201609253883362,
-0.3221585750579834,
-1.235856533050537,
0.06819312274456024,
0.697602391242981,
0.34979674220085144,
-0.28480562567710876,
0.7470605969429016,
-0.758223295211792,
-1.0566757917404175,
-1.2965096235275269,
-0.4832689166069031,
-1.0632781982421875,
-0.7823390364646912,
1.0131300687789917,
0.7638018131256104,
0.5345404744148254,
1.9937593936920166,
0.6470596790313721,
0.23690763115882874,
-2.5211076736450195,
0.8052507638931274,
0.38630542159080505,
-0.12414990365505219,
0.8345767259597778,
0.23601092398166656,
1.246801733970642,
-0.08787702023983002,
0.5908754467964172,
-2.37661075592041,
2.2107536792755127,
-0.22559775412082672,
0.7260578274726868,
0.09023359417915344,
-0.06098345294594765,
1.0634486675262451,
0.562777578830719,
0.5190820693969727,
-1.0693914890289307,
0.9213679432868958,
-0.6002423167228699,
1.1580379009246826,
0.9095110297203064,
-0.8883206844329834,
0.13800986111164093,
1.2094398736953735,
0.39956361055374146,
-0.5466152429580688,
-1.0025149583816528,
-0.9049035310745239,
0.8799924850463867,
1.7704999446868896,
0.031551528722047806,
0.11745882779359818,
0.7678442597389221,
0.7943274974822998,
-1.243899941444397,
0.04762846976518631,
-0.5914063453674316,
-0.737899124622345,
1.807204246520996,
2.0110769271850586,
-0.04910847917199135,
0.09328924119472504,
-0.7333810925483704,
-1.46519935131073,
0.8676607608795166,
0.06735467910766602,
-0.10701236128807068,
0.7113040089607239,
-0.6465821862220764,
1.1464327573776245,
0.8185551762580872,
0.8842797875404358,
0.2256721705198288,
0.03093446046113968,
0.2893342077732086,
-0.31310728192329407,
-1.1557228565216064,
-0.3690955340862274,
-1.0133607387542725,
-2.5878357887268066,
0.4763481616973877,
-0.2367086559534073,
-1.535645842552185,
0.10645242780447006,
-0.9277951717376709,
0.7678483724594116,
-0.49167653918266296,
-1.1704760789871216,
-1.3712644577026367,
0.3572528064250946,
-0.13380290567874908,
0.8693968057632446,
-1.6323771476745605,
-0.11506912112236023,
1.123490571975708,
0.880352795124054,
-0.6189000606536865,
0.9257662892341614,
0.26414456963539124,
0.9231316447257996,
0.9196281433105469,
-0.39644402265548706,
0.4673152267932892,
0.29344654083251953,
-1.3516616821289062,
0.3225151002407074,
1.369622826576233,
0.10681665688753128,
1.330122947692871,
-0.34738460183143616,
0.019513580948114395,
0.3976547122001648,
-0.3639785647392273,
-0.5999789834022522,
-0.629219114780426,
0.6588019132614136,
-0.10291719436645508,
-0.9194222688674927,
-0.09517209976911545,
0.05043002963066101,
-0.2956746220588684,
0.3277345597743988,
-1.4852133989334106,
-0.1697264164686203,
-0.4233245253562927,
-0.5255703330039978,
-1.4736436605453491,
-0.0031464044004678726,
1.343442678451538,
-0.7594243884086609,
-0.13056810200214386,
0.5404304265975952,
0.28235623240470886,
0.5647724270820618,
0.725613534450531,
-0.6895167231559753,
-0.21048063039779663,
-0.24140307307243347,
-0.4321339726448059,
0.29722341895103455,
1.3036775588989258,
-0.12595964968204498,
-0.9089768528938293,
0.5393713712692261,
-0.2664613127708435,
0.15932011604309082,
1.9442189931869507,
0.06327513605356216,
-0.8384647965431213,
0.4019349217414856,
-0.7274280786514282,
1.8659926652908325,
1.6939502954483032,
1.2557051181793213,
-0.08548571914434433,
-0.9310455322265625,
0.6517103314399719,
-0.32534894347190857,
-0.33574414253234863,
0.9555361866950989,
0.40395063161849976,
-0.32226330041885376,
-1.4421281814575195,
0.6821818947792053,
1.238563895225525,
-0.7434961795806885,
-0.7479718327522278,
0.07501420378684998,
-0.8018603920936584,
1.2437677383422852,
0.7088544964790344,
0.386262446641922,
0.3153649568557739,
1.6626993417739868,
0.6985328197479248,
-0.6002809405326843,
0.5187119841575623,
0.4236193597316742,
-0.16893142461776733,
-2.0171661376953125,
-1.1397340297698975,
0.2656944990158081,
-0.4747757613658905,
-1.4998658895492554,
1.424778938293457,
-1.1904735565185547,
-1.014685034751892,
0.5060921907424927,
0.05456539988517761,
1.2521214485168457,
0.3531961441040039,
1.754367470741272,
2.0145649909973145,
0.9323577284812927,
0.4695604741573334,
1.2001451253890991,
-0.22146053612232208,
-0.2538966238498688,
1.70551335811615,
-0.4671555161476135,
0.6020366549491882,
1.1098891496658325,
-0.43122491240501404,
-1.217383861541748,
-0.799136757850647,
-1.0909311771392822,
-0.7086679935455322,
1.05122709274292,
0.11698449403047562,
-1.0638117790222168,
0.33138415217399597,
1.6473259925842285,
0.015024003572762012,
-0.06500057876110077,
0.746401846408844,
0.39133015275001526,
-0.6702181100845337,
-0.13415385782718658,
-1.0565539598464966,
0.6347784996032715,
-0.3801058232784271,
-0.4125884175300598,
0.24386285245418549,
0.6255322694778442,
1.2478331327438354,
0.09943035244941711,
0.14510811865329742,
1.2799428701400757,
-1.4405626058578491,
1.197391390800476,
-0.9488969445228577,
0.3418741524219513,
-2.3686773777008057,
1.429154872894287,
-0.8681217432022095,
1.9741463661193848,
-2.7095937728881836,
0.4381974935531616,
-0.4866694211959839,
-0.6478790044784546,
0.24587441980838776,
-0.2112145721912384,
0.09762892872095108,
-0.06260834634304047,
-1.0238460302352905,
-0.06319618225097656,
-0.81142657995224,
0.5293492674827576,
1.249617338180542,
1.3264716863632202,
-0.9293556809425354,
-0.23901590704917908,
-1.5877548456192017,
-0.1768430471420288,
-0.48417404294013977,
0.17057283222675323,
-1.8193519115447998,
-0.15149226784706116,
-2.0544731616973877,
-2.466022491455078,
-1.3923417329788208,
-1.0424529314041138,
1.3089640140533447,
0.17114152014255524,
-0.9647984504699707,
1.14921236038208,
-0.3931308090686798,
-1.7856327295303345,
1.1891045570373535,
-2.1653637886047363
] |
https://github.com/huggingface/datasets/issues/5345 | Wrong dtype for array in audio features | After some more investigation, this is due to [this line of code](https://github.com/huggingface/datasets/blob/main/src/datasets/features/audio.py#L279). The function `sf.read(file)` should be updated to `sf.read(file, dtype="float32")`
Indeed, the default value in soundfile is `float64` ([see here](https://pysoundfile.readthedocs.io/en/latest/#soundfile.read)).
| ### Describe the bug
When concatenating/interleaving different datasets, I stumble into an error because the features can't be aligned. After some investigation, I understood that the audio arrays had different dtypes, namely `float32` and `float64`. Consequently, the datasets cannot be merged.
### Steps to reproduce the bug
For example, for `facebook/voxpopuli` and `mozilla-foundation/common_voice_11_0`:
```
from datasets import load_dataset, interleave_datasets
covost = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="train", streaming=True)
voxpopuli = datasets.load_dataset("facebook/voxpopuli", "nl", split="train", streaming=True)
sample_cv, = covost.take(1)
sample_vp, = voxpopuli.take(1)
assert sample_cv["audio"]["array"].dtype == sample_vp["audio"]["array"].dtype
# Fails
dataset = interleave_datasets([covost, voxpopuli])
# ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string', id=None), 'language': Value(dtype='int64', id=None), 'audio': {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)}, 'normalized_text': Value(dtype='string', id=None), 'gender': Value(dtype='string', id=None), 'speaker_id': Value(dtype='string', id=None), 'is_gold_transcript': Value(dtype='bool', id=None), 'accent': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None)} has unexpected type - {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)} (expected either Audio(sampling_rate=16000, mono=True, decode=True, id=None) or Value("null").
```
### Expected behavior
The audio should be loaded to arrays with a unique dtype (I guess `float32`)
### Environment info
```
- `datasets` version: 2.7.1.dev0
- Platform: Linux-4.18.0-425.3.1.el8.x86_64-x86_64-with-glibc2.28
- Python version: 3.9.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
``` | 380 | 31 | Wrong dtype for array in audio features
### Describe the bug
When concatenating/interleaving different datasets, I stumble into an error because the features can't be aligned. After some investigation, I understood that the audio arrays had different dtypes, namely `float32` and `float64`. Consequently, the datasets cannot be merged.
### Steps to reproduce the bug
For example, for `facebook/voxpopuli` and `mozilla-foundation/common_voice_11_0`:
```
from datasets import load_dataset, interleave_datasets
covost = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="train", streaming=True)
voxpopuli = datasets.load_dataset("facebook/voxpopuli", "nl", split="train", streaming=True)
sample_cv, = covost.take(1)
sample_vp, = voxpopuli.take(1)
assert sample_cv["audio"]["array"].dtype == sample_vp["audio"]["array"].dtype
# Fails
dataset = interleave_datasets([covost, voxpopuli])
# ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string', id=None), 'language': Value(dtype='int64', id=None), 'audio': {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)}, 'normalized_text': Value(dtype='string', id=None), 'gender': Value(dtype='string', id=None), 'speaker_id': Value(dtype='string', id=None), 'is_gold_transcript': Value(dtype='bool', id=None), 'accent': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None)} has unexpected type - {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)} (expected either Audio(sampling_rate=16000, mono=True, decode=True, id=None) or Value("null").
```
### Expected behavior
The audio should be loaded to arrays with a unique dtype (I guess `float32`)
### Environment info
```
- `datasets` version: 2.7.1.dev0
- Platform: Linux-4.18.0-425.3.1.el8.x86_64-x86_64-with-glibc2.28
- Python version: 3.9.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
```
After some more investigation, this is due to [this line of code](https://github.com/huggingface/datasets/blob/main/src/datasets/features/audio.py#L279). The function `sf.read(file)` should be updated to `sf.read(file, dtype="float32")`
Indeed, the default value in soundfile is `float64` ([see here](https://pysoundfile.readthedocs.io/en/latest/#soundfile.read)).
| [
-1.3297818899154663,
-1.0398335456848145,
-0.7567360997200012,
1.6267650127410889,
-0.26365041732788086,
-1.0593035221099854,
0.12767237424850464,
-1.0891356468200684,
1.538980484008789,
-0.7270705103874207,
0.23913443088531494,
-1.5932620763778687,
0.00082396250218153,
-0.7497702240943909,
-0.6767918467521667,
-0.8565664291381836,
-0.298057496547699,
-0.7275330424308777,
1.1821483373641968,
2.4495792388916016,
1.245980978012085,
-1.3719335794448853,
2.783842086791992,
0.8442907333374023,
-0.17889449000358582,
-1.0215269327163696,
0.5665276646614075,
-0.07742148637771606,
-1.174533486366272,
-0.5452814102172852,
-0.9279714822769165,
-0.11980747431516647,
-0.5688576698303223,
-0.39684927463531494,
-0.09247289597988129,
0.464272141456604,
-0.32900530099868774,
-0.4545668065547943,
-0.5622127056121826,
-0.7672949433326721,
0.4687029719352722,
-0.4061623811721802,
0.8163682818412781,
-0.2737746834754944,
1.7792855501174927,
-0.45544615387916565,
0.3084271252155304,
0.6011683344841003,
1.2547931671142578,
0.25742924213409424,
0.08419366925954819,
0.3587610125541687,
0.4474295973777771,
-0.10344572365283966,
0.6217677593231201,
1.1627906560897827,
0.7495837807655334,
0.4285365343093872,
0.8193067312240601,
-2.2712254524230957,
1.169782042503357,
-1.1578617095947266,
0.34215837717056274,
1.4514062404632568,
-0.8136277198791504,
0.5547147989273071,
-1.7364816665649414,
-0.031219540163874626,
0.6509189009666443,
-2.163752317428589,
0.3818178176879883,
-1.212200403213501,
-0.4871636927127838,
0.9431713223457336,
0.4306996464729309,
-1.2423887252807617,
0.1178937628865242,
-0.40273186564445496,
1.0705175399780273,
0.3507861793041229,
0.987638533115387,
-1.6452215909957886,
0.022849608212709427,
-0.2797073423862457,
0.09931863099336624,
-1.2711819410324097,
-1.4891310930252075,
0.49124693870544434,
0.4555959105491638,
0.638288140296936,
-0.12818700075149536,
1.1466457843780518,
-1.1406519412994385,
0.6465874314308167,
-1.09328031539917,
-1.6701346635818481,
-1.4547998905181885,
-2.408515691757202,
-2.1879613399505615,
0.7170456647872925,
-0.4325542449951172,
-0.5933522582054138,
2.0131072998046875,
-0.8984143137931824,
-1.674013376235962,
1.2269549369812012,
0.36521396040916443,
0.0608692467212677,
2.511279582977295,
0.21144667267799377,
-0.7232173085212708,
0.48205748200416565,
-0.8243891000747681,
0.6885042786598206,
-0.413044810295105,
1.467579960823059,
0.42420756816864014,
-0.9465684294700623,
1.6258476972579956,
-0.42786040902137756,
0.6112861633300781,
-0.6472809314727783,
-0.44791314005851746,
-0.806901752948761,
0.3730936348438263,
1.864010214805603,
-0.18376490473747253,
1.4706432819366455,
-0.39999350905418396,
-1.4951491355895996,
-1.5605559349060059,
1.0023502111434937,
0.326306015253067,
-0.900337278842926,
0.22349867224693298,
-0.391512393951416,
0.15656396746635437,
-0.18481025099754333,
1.1874014139175415,
1.2816938161849976,
0.6102591156959534,
-0.30148637294769287,
-0.7763906121253967,
0.15924274921417236,
-0.20191317796707153,
-0.7142614126205444,
-1.742734432220459,
-0.2955528497695923,
0.08094228059053421,
0.6824181079864502,
-1.2857526540756226,
1.6154605150222778,
0.923477828502655,
1.8073996305465698,
1.0932255983352661,
-0.49452975392341614,
1.4897935390472412,
0.12004569917917252,
1.7997733354568481,
-0.6539011001586914,
0.6988422870635986,
-0.37570828199386597,
-1.188111662864685,
0.8467358946800232,
-0.29737675189971924,
-1.9991813898086548,
-0.7978504300117493,
-0.8167202472686768,
-0.22217535972595215,
-0.7704890370368958,
0.8948965072631836,
-0.4316401779651642,
-1.4707709550857544,
0.25330132246017456,
-0.8646697402000427,
0.2545660436153412,
-1.150044322013855,
0.38957464694976807,
0.742405116558075,
-0.5842677354812622,
0.07705917209386826,
-0.2259177565574646,
-1.2021856307983398,
-0.4880434274673462,
0.4001617729663849,
1.9273369312286377,
-0.794011116027832,
0.6999537348747253,
1.0404852628707886,
-0.7129296064376831,
0.025578711181879044,
0.2979750633239746,
-0.2743329405784607,
0.8066853284835815,
-1.0222947597503662,
-0.7518048286437988,
1.1919493675231934,
-0.2526296377182007,
-0.5965320467948914,
1.4088330268859863,
0.8123348355293274,
-1.0563679933547974,
-0.29772984981536865,
-0.12876537442207336,
-0.8348403573036194,
0.07177361100912094,
-1.5208855867385864,
-0.2336828112602234,
0.5579165816307068,
-1.6084163188934326,
-0.453460156917572,
-0.21699517965316772,
1.3399025201797485,
-0.19612601399421692,
1.4368952512741089,
-0.3926490247249603,
-0.1182955801486969,
-0.21625259518623352,
-0.35122498869895935,
0.23755311965942383,
-0.23773619532585144,
-0.6155287623405457,
0.08234412968158722,
-0.7678505778312683,
0.40382808446884155,
1.420338749885559,
0.3216469883918762,
0.06027788668870926,
0.5224635004997253,
1.1246050596237183,
0.4752300977706909,
0.09440850466489792,
-0.8876756429672241,
-1.4546844959259033,
1.9016185998916626,
-1.5757344961166382,
2.010794162750244,
0.6572142839431763,
-0.06251640617847443,
-1.6242516040802002,
-1.800563931465149,
1.3592010736465454,
1.2114133834838867,
2.2521753311157227,
0.6115701198577881,
0.3894723057746887,
-0.8854888081550598,
-0.7362667322158813,
0.09958790242671967,
-0.9526458978652954,
-0.726329505443573,
0.22721371054649353,
2.4788222312927246,
1.878364086151123,
-0.41466593742370605,
-0.23518040776252747,
-0.9286659955978394,
1.4414997100830078,
-0.2646571099758148,
0.23180082440376282,
2.0233263969421387,
-0.18495240807533264,
-1.021439552307129,
1.2649420499801636,
-2.55220627784729,
0.20604583621025085,
1.9726775884628296,
0.3610549867153168,
0.18128609657287598,
-1.361603021621704,
-0.7431173324584961,
-0.2865394353866577,
-0.49805423617362976,
-1.2668074369430542,
0.4440803825855255,
-0.26947250962257385,
-0.6764093637466431,
-1.442026138305664,
0.19033440947532654,
-1.1395432949066162,
-1.5175477266311646,
0.18833792209625244,
1.9249088764190674,
2.113546848297119,
-0.7622976899147034,
1.685968279838562,
-0.2002526819705963,
0.19273224472999573,
1.2788889408111572,
1.3025130033493042,
2.9832282066345215,
1.8936233520507812,
-1.2551995515823364,
0.4883016049861908,
-0.16681933403015137,
-0.5242664217948914,
1.0702778100967407,
-1.1919809579849243,
1.2364517450332642,
-0.027765078470110893,
-1.1746635437011719,
-1.2283135652542114,
0.8595426082611084,
0.5386436581611633,
-0.08082857728004456,
-0.5267934799194336,
1.1390973329544067,
0.021965093910694122,
1.3567861318588257,
0.6563441157341003,
-0.3031538724899292,
0.5126122832298279,
-0.3729442059993744,
-0.518863320350647,
1.5520237684249878,
0.1265769600868225,
-1.4432560205459595,
-2.1452713012695312,
-0.195611834526062,
-0.8571910858154297,
-0.043103281408548355,
-0.591961145401001,
-1.047835350036621,
1.605595350265503,
0.2850590646266937,
-1.1292904615402222,
-0.22045478224754333,
-0.2926614582538605,
-0.5107105374336243,
2.8128528594970703,
-1.3439762592315674,
-0.3448743224143982,
-1.002682089805603,
-0.7401053309440613,
1.6839090585708618,
-1.0753140449523926,
-0.2167051136493683,
-1.1181875467300415,
-0.6199414730072021,
-1.2996399402618408,
-0.44667452573776245,
0.03150121495127678,
-0.8833486437797546,
0.9576306939125061,
0.377787321805954,
-1.2308361530303955,
-0.4270612895488739,
-0.9471167922019958,
0.9361853003501892,
-0.10873670876026154,
0.17576023936271667,
1.8641940355300903,
0.3332676589488983,
-0.39854469895362854,
0.8960758447647095,
1.1613974571228027,
0.6343783736228943,
-0.6111011505126953,
0.1801299750804901,
-0.5631477236747742,
0.30090397596359253,
-1.3619354963302612,
0.28074511885643005,
-2.894118309020996,
0.5812569856643677,
0.009303921833634377,
-0.1083383560180664,
-0.004893741104751825,
-1.3211724758148193,
1.1112772226333618,
2.4627106189727783,
-1.2000269889831543,
0.5422335863113403,
0.35071560740470886,
1.2989733219146729,
-1.794769525527954,
0.2808453440666199,
-0.3782060742378235,
2.0850064754486084,
0.20688769221305847,
1.2627898454666138,
-0.43013888597488403,
-2.435654401779175,
0.5381569862365723,
-1.3233531713485718,
-1.1091587543487549,
0.5829174518585205,
-0.9216229319572449,
0.26037389039993286,
-1.5982543230056763,
-0.3448737859725952,
-0.8946767449378967,
-1.190598487854004,
0.6897331476211548,
0.18011698126792908,
0.23606154322624207,
-0.5348224639892578,
0.4006516635417938,
-2.169711112976074,
-1.4206011295318604,
-0.10210785269737244,
-0.8625565767288208,
0.5003693103790283,
-0.5175145864486694,
0.7515975832939148,
-0.15587681531906128,
-0.09861799329519272,
0.3410048484802246,
1.5430828332901,
3.3599748611450195,
0.2269335687160492,
0.42069703340530396,
-0.2504325807094574,
-0.9359225034713745,
1.4991692304611206,
0.8639992475509644,
-0.1686757206916809,
-0.4514886438846588,
-1.152536392211914,
1.3855993747711182,
1.8027724027633667,
1.0255980491638184,
0.02152562141418457,
-0.7544860243797302,
-0.6670110821723938,
-0.07037750631570816,
0.29783838987350464,
0.41485998034477234,
0.8241248726844788,
-0.08911436796188354,
-0.03156866505742073,
1.4220207929611206,
1.0625191926956177,
-0.5253458619117737,
0.27830880880355835,
-0.8701545000076294,
-0.4548426568508148,
0.5106653571128845,
0.14708968997001648,
-0.13628080487251282,
0.3588290512561798,
-0.977186381816864,
-0.21192055940628052,
-0.340185284614563,
-0.7778877019882202,
-0.6261228919029236,
-0.34821510314941406,
-0.3348851203918457,
1.5660746097564697,
0.26378047466278076,
-0.6330265998840332,
-0.15514305233955383,
-0.791357696056366,
-0.14488866925239563,
-1.134294033050537,
0.09799402952194214,
-0.061222538352012634,
-0.23112285137176514,
-0.24438625574111938,
1.7102340459823608,
-0.8429660797119141,
-2.123241901397705,
0.0543118417263031,
0.3252268433570862,
-0.06148642301559448,
0.30025047063827515,
1.7313848733901978,
0.42363911867141724,
1.3834408521652222,
1.2823668718338013,
1.0110313892364502,
-0.5758333206176758,
-1.4043294191360474,
0.6767823100090027,
1.133951187133789,
-1.3210572004318237,
0.8420476317405701,
-0.08290276676416397,
-0.49090054631233215,
0.5379801392555237,
1.367526888847351,
0.4763284921646118,
-1.9613659381866455,
0.8329009413719177,
-1.0610381364822388,
0.949573814868927,
0.7427374124526978,
0.6317911744117737,
0.2947017550468445,
0.8435364365577698,
-1.2430847883224487,
-1.1372567415237427,
-0.7316291928291321,
-0.7056376338005066,
2.058891534805298,
-0.32388296723365784,
0.6180158853530884,
-0.15359196066856384,
-1.3060516119003296,
0.06241041421890259,
0.6423075795173645,
0.34902727603912354,
-0.5306304693222046,
0.8639082312583923,
-0.7186235189437866,
-1.170549988746643,
-1.2828792333602905,
-0.4391752779483795,
-1.0249055624008179,
-0.998415470123291,
1.1248537302017212,
0.8146865367889404,
0.13421449065208435,
1.8164786100387573,
0.6767969727516174,
0.23727518320083618,
-2.5175771713256836,
0.9065105319023132,
0.27600908279418945,
-0.0957273468375206,
0.7032080888748169,
0.4400928020477295,
1.091210126876831,
0.11922677606344223,
0.5338960886001587,
-2.4754104614257812,
2.3382716178894043,
-0.13844594359397888,
0.7211463451385498,
-0.09252460300922394,
-0.1191876083612442,
1.1087257862091064,
0.6113008856773376,
0.5324355959892273,
-0.8681846857070923,
0.5484955906867981,
-0.46118640899658203,
1.3463252782821655,
1.02845299243927,
-0.8460679650306702,
-0.07264731824398041,
1.3249839544296265,
0.45482149720191956,
-0.6956624984741211,
-0.9925373196601868,
-0.8917893171310425,
0.9404534697532654,
1.622131586074829,
-0.025690456852316856,
-0.03867502883076668,
0.77439945936203,
0.6161831021308899,
-1.2191590070724487,
0.10750361531972885,
-0.6193790435791016,
-0.6764052510261536,
1.734081506729126,
2.043870687484741,
-0.33522504568099976,
-0.19034039974212646,
-0.5814172625541687,
-1.3696892261505127,
0.7305991053581238,
-0.12098042666912079,
0.1832047700881958,
0.6630688309669495,
-0.5832687020301819,
0.8948370218276978,
0.858243465423584,
0.8240270614624023,
0.2275855541229248,
0.2433203160762787,
0.5044025778770447,
-0.5021575689315796,
-1.1015446186065674,
-0.19151198863983154,
-1.1766846179962158,
-2.613737106323242,
0.336580753326416,
-0.14134982228279114,
-1.2416057586669922,
0.08897722512483597,
-0.9613248705863953,
1.1059510707855225,
-0.5312657356262207,
-1.1749755144119263,
-1.431598424911499,
0.20057782530784607,
0.06601347029209137,
0.8781009912490845,
-1.6901434659957886,
-0.1343054473400116,
1.2398383617401123,
0.8656798005104065,
-0.71882164478302,
0.9795001149177551,
0.23052039742469788,
1.2129266262054443,
0.7015745043754578,
-0.30875706672668457,
0.5337618589401245,
-0.18164268136024475,
-1.3881254196166992,
0.5324357151985168,
1.1597402095794678,
0.13586518168449402,
1.4826688766479492,
-0.4873015880584717,
-0.0632745623588562,
0.35985127091407776,
-0.6427609920501709,
-0.45060306787490845,
-0.38613182306289673,
0.51617032289505,
0.024835806339979172,
-0.7750239372253418,
-0.08974380046129227,
0.008437948301434517,
-0.3387707471847534,
0.05225444585084915,
-1.4862483739852905,
-0.12767526507377625,
-0.541416347026825,
-0.5459944605827332,
-1.2472623586654663,
-0.15252727270126343,
1.285272479057312,
-0.6365743279457092,
-0.3616844117641449,
0.5077724456787109,
0.32068943977355957,
0.48842892050743103,
0.6050392389297485,
-0.7753689885139465,
-0.28918665647506714,
-0.10675273090600967,
-0.3489567041397095,
0.2649869918823242,
1.4601637125015259,
-0.16327005624771118,
-0.9686958193778992,
0.6455652117729187,
-0.2842143177986145,
0.0721956118941307,
1.7733027935028076,
-0.021295215934515,
-0.7918623685836792,
0.21281573176383972,
-0.8610733151435852,
1.9776684045791626,
1.6521708965301514,
1.3106666803359985,
-0.30555713176727295,
-0.7658140063285828,
0.700688898563385,
-0.4523122012615204,
-0.4860168397426605,
0.7557795643806458,
0.36852237582206726,
-0.21310606598854065,
-1.4794851541519165,
0.895429253578186,
1.2641462087631226,
-0.7861696481704712,
-0.8139249682426453,
0.23811748623847961,
-0.7759034037590027,
1.1567000150680542,
0.5680748224258423,
0.36605873703956604,
0.34154537320137024,
1.7244750261306763,
0.8850435614585876,
-0.5172980427742004,
0.5391045808792114,
0.5848608613014221,
-0.24650338292121887,
-2.14017653465271,
-1.2451794147491455,
0.2494315207004547,
-0.5640129446983337,
-1.6431236267089844,
1.3686788082122803,
-1.0865318775177002,
-0.941485583782196,
0.6564630270004272,
0.1445276141166687,
1.2574836015701294,
0.4727541208267212,
1.448784351348877,
2.003162384033203,
0.6469935178756714,
0.49183690547943115,
1.1304553747177124,
-0.14684656262397766,
-0.40623968839645386,
1.7770531177520752,
-0.36138299107551575,
0.5271570086479187,
1.0916314125061035,
-0.1941266655921936,
-1.2041940689086914,
-0.7041857242584229,
-1.3937325477600098,
-0.6635839939117432,
1.2077475786209106,
0.09063143283128738,
-1.0402849912643433,
0.2928444445133209,
1.553126573562622,
-0.022484080865979195,
-0.4801907241344452,
0.7079222202301025,
0.4363090693950653,
-0.8419598937034607,
-0.04922020062804222,
-0.9128777384757996,
0.5253365635871887,
-0.15834230184555054,
-0.23373639583587646,
0.3943162262439728,
0.461638867855072,
1.4845305681228638,
0.07083383202552795,
0.25411397218704224,
0.9754819273948669,
-1.3747402429580688,
1.5431675910949707,
-0.7678852677345276,
0.34809964895248413,
-2.3295066356658936,
1.3631895780563354,
-0.6876402497291565,
2.0553030967712402,
-2.628551483154297,
0.5267364382743835,
-0.6158685088157654,
-0.5165228247642517,
0.3449571132659912,
-0.3957694470882416,
0.03969376161694527,
-0.081244096159935,
-1.1708157062530518,
0.15033861994743347,
-0.5486768484115601,
0.4658425450325012,
1.2427970170974731,
1.3318103551864624,
-1.1453168392181396,
-0.2219354510307312,
-1.7299531698226929,
-0.14111998677253723,
-0.8542290329933167,
0.2803722023963928,
-2.0451860427856445,
-0.35476404428482056,
-1.8327726125717163,
-2.2387025356292725,
-1.1621363162994385,
-0.7948140501976013,
1.2670340538024902,
0.140072762966156,
-0.8952270746231079,
1.5049453973770142,
-0.4595396816730499,
-1.778876781463623,
1.052161693572998,
-2.052220582962036
] |
https://github.com/huggingface/datasets/issues/5345 | Wrong dtype for array in audio features | @qmeeus I agree, decoding of different audio formats should return the same dtypes indeed!
But note that here you are concatenating datasets with different sampling rates: 48000 for CommonVoice and 16000 for Voxpopuli. So you should cast them to the same sampling rate value before interleaving, for example:
```
cv = cv.cast_column("audio", Audio(sampling_rate=16000))
```
otherwise you would get the same error because features of the same column ("audio") are not the same.
Also, the error you get is unexpected. Could you please confirm that you use the latest main version of the `datasets`? We had an issue that could lead to an error like this after using `rename_column` method, but it was fixed in https://github.com/huggingface/datasets/pull/5287 | ### Describe the bug
When concatenating/interleaving different datasets, I stumble into an error because the features can't be aligned. After some investigation, I understood that the audio arrays had different dtypes, namely `float32` and `float64`. Consequently, the datasets cannot be merged.
### Steps to reproduce the bug
For example, for `facebook/voxpopuli` and `mozilla-foundation/common_voice_11_0`:
```
from datasets import load_dataset, interleave_datasets
covost = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="train", streaming=True)
voxpopuli = datasets.load_dataset("facebook/voxpopuli", "nl", split="train", streaming=True)
sample_cv, = covost.take(1)
sample_vp, = voxpopuli.take(1)
assert sample_cv["audio"]["array"].dtype == sample_vp["audio"]["array"].dtype
# Fails
dataset = interleave_datasets([covost, voxpopuli])
# ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string', id=None), 'language': Value(dtype='int64', id=None), 'audio': {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)}, 'normalized_text': Value(dtype='string', id=None), 'gender': Value(dtype='string', id=None), 'speaker_id': Value(dtype='string', id=None), 'is_gold_transcript': Value(dtype='bool', id=None), 'accent': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None)} has unexpected type - {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)} (expected either Audio(sampling_rate=16000, mono=True, decode=True, id=None) or Value("null").
```
### Expected behavior
The audio should be loaded to arrays with a unique dtype (I guess `float32`)
### Environment info
```
- `datasets` version: 2.7.1.dev0
- Platform: Linux-4.18.0-425.3.1.el8.x86_64-x86_64-with-glibc2.28
- Python version: 3.9.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
``` | 380 | 115 | Wrong dtype for array in audio features
### Describe the bug
When concatenating/interleaving different datasets, I stumble into an error because the features can't be aligned. After some investigation, I understood that the audio arrays had different dtypes, namely `float32` and `float64`. Consequently, the datasets cannot be merged.
### Steps to reproduce the bug
For example, for `facebook/voxpopuli` and `mozilla-foundation/common_voice_11_0`:
```
from datasets import load_dataset, interleave_datasets
covost = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="train", streaming=True)
voxpopuli = datasets.load_dataset("facebook/voxpopuli", "nl", split="train", streaming=True)
sample_cv, = covost.take(1)
sample_vp, = voxpopuli.take(1)
assert sample_cv["audio"]["array"].dtype == sample_vp["audio"]["array"].dtype
# Fails
dataset = interleave_datasets([covost, voxpopuli])
# ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string', id=None), 'language': Value(dtype='int64', id=None), 'audio': {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)}, 'normalized_text': Value(dtype='string', id=None), 'gender': Value(dtype='string', id=None), 'speaker_id': Value(dtype='string', id=None), 'is_gold_transcript': Value(dtype='bool', id=None), 'accent': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None)} has unexpected type - {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)} (expected either Audio(sampling_rate=16000, mono=True, decode=True, id=None) or Value("null").
```
### Expected behavior
The audio should be loaded to arrays with a unique dtype (I guess `float32`)
### Environment info
```
- `datasets` version: 2.7.1.dev0
- Platform: Linux-4.18.0-425.3.1.el8.x86_64-x86_64-with-glibc2.28
- Python version: 3.9.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
```
@qmeeus I agree, decoding of different audio formats should return the same dtypes indeed!
But note that here you are concatenating datasets with different sampling rates: 48000 for CommonVoice and 16000 for Voxpopuli. So you should cast them to the same sampling rate value before interleaving, for example:
```
cv = cv.cast_column("audio", Audio(sampling_rate=16000))
```
otherwise you would get the same error because features of the same column ("audio") are not the same.
Also, the error you get is unexpected. Could you please confirm that you use the latest main version of the `datasets`? We had an issue that could lead to an error like this after using `rename_column` method, but it was fixed in https://github.com/huggingface/datasets/pull/5287 | [
-1.3297818899154663,
-1.0398335456848145,
-0.7567360997200012,
1.6267650127410889,
-0.26365041732788086,
-1.0593035221099854,
0.12767237424850464,
-1.0891356468200684,
1.538980484008789,
-0.7270705103874207,
0.23913443088531494,
-1.5932620763778687,
0.00082396250218153,
-0.7497702240943909,
-0.6767918467521667,
-0.8565664291381836,
-0.298057496547699,
-0.7275330424308777,
1.1821483373641968,
2.4495792388916016,
1.245980978012085,
-1.3719335794448853,
2.783842086791992,
0.8442907333374023,
-0.17889449000358582,
-1.0215269327163696,
0.5665276646614075,
-0.07742148637771606,
-1.174533486366272,
-0.5452814102172852,
-0.9279714822769165,
-0.11980747431516647,
-0.5688576698303223,
-0.39684927463531494,
-0.09247289597988129,
0.464272141456604,
-0.32900530099868774,
-0.4545668065547943,
-0.5622127056121826,
-0.7672949433326721,
0.4687029719352722,
-0.4061623811721802,
0.8163682818412781,
-0.2737746834754944,
1.7792855501174927,
-0.45544615387916565,
0.3084271252155304,
0.6011683344841003,
1.2547931671142578,
0.25742924213409424,
0.08419366925954819,
0.3587610125541687,
0.4474295973777771,
-0.10344572365283966,
0.6217677593231201,
1.1627906560897827,
0.7495837807655334,
0.4285365343093872,
0.8193067312240601,
-2.2712254524230957,
1.169782042503357,
-1.1578617095947266,
0.34215837717056274,
1.4514062404632568,
-0.8136277198791504,
0.5547147989273071,
-1.7364816665649414,
-0.031219540163874626,
0.6509189009666443,
-2.163752317428589,
0.3818178176879883,
-1.212200403213501,
-0.4871636927127838,
0.9431713223457336,
0.4306996464729309,
-1.2423887252807617,
0.1178937628865242,
-0.40273186564445496,
1.0705175399780273,
0.3507861793041229,
0.987638533115387,
-1.6452215909957886,
0.022849608212709427,
-0.2797073423862457,
0.09931863099336624,
-1.2711819410324097,
-1.4891310930252075,
0.49124693870544434,
0.4555959105491638,
0.638288140296936,
-0.12818700075149536,
1.1466457843780518,
-1.1406519412994385,
0.6465874314308167,
-1.09328031539917,
-1.6701346635818481,
-1.4547998905181885,
-2.408515691757202,
-2.1879613399505615,
0.7170456647872925,
-0.4325542449951172,
-0.5933522582054138,
2.0131072998046875,
-0.8984143137931824,
-1.674013376235962,
1.2269549369812012,
0.36521396040916443,
0.0608692467212677,
2.511279582977295,
0.21144667267799377,
-0.7232173085212708,
0.48205748200416565,
-0.8243891000747681,
0.6885042786598206,
-0.413044810295105,
1.467579960823059,
0.42420756816864014,
-0.9465684294700623,
1.6258476972579956,
-0.42786040902137756,
0.6112861633300781,
-0.6472809314727783,
-0.44791314005851746,
-0.806901752948761,
0.3730936348438263,
1.864010214805603,
-0.18376490473747253,
1.4706432819366455,
-0.39999350905418396,
-1.4951491355895996,
-1.5605559349060059,
1.0023502111434937,
0.326306015253067,
-0.900337278842926,
0.22349867224693298,
-0.391512393951416,
0.15656396746635437,
-0.18481025099754333,
1.1874014139175415,
1.2816938161849976,
0.6102591156959534,
-0.30148637294769287,
-0.7763906121253967,
0.15924274921417236,
-0.20191317796707153,
-0.7142614126205444,
-1.742734432220459,
-0.2955528497695923,
0.08094228059053421,
0.6824181079864502,
-1.2857526540756226,
1.6154605150222778,
0.923477828502655,
1.8073996305465698,
1.0932255983352661,
-0.49452975392341614,
1.4897935390472412,
0.12004569917917252,
1.7997733354568481,
-0.6539011001586914,
0.6988422870635986,
-0.37570828199386597,
-1.188111662864685,
0.8467358946800232,
-0.29737675189971924,
-1.9991813898086548,
-0.7978504300117493,
-0.8167202472686768,
-0.22217535972595215,
-0.7704890370368958,
0.8948965072631836,
-0.4316401779651642,
-1.4707709550857544,
0.25330132246017456,
-0.8646697402000427,
0.2545660436153412,
-1.150044322013855,
0.38957464694976807,
0.742405116558075,
-0.5842677354812622,
0.07705917209386826,
-0.2259177565574646,
-1.2021856307983398,
-0.4880434274673462,
0.4001617729663849,
1.9273369312286377,
-0.794011116027832,
0.6999537348747253,
1.0404852628707886,
-0.7129296064376831,
0.025578711181879044,
0.2979750633239746,
-0.2743329405784607,
0.8066853284835815,
-1.0222947597503662,
-0.7518048286437988,
1.1919493675231934,
-0.2526296377182007,
-0.5965320467948914,
1.4088330268859863,
0.8123348355293274,
-1.0563679933547974,
-0.29772984981536865,
-0.12876537442207336,
-0.8348403573036194,
0.07177361100912094,
-1.5208855867385864,
-0.2336828112602234,
0.5579165816307068,
-1.6084163188934326,
-0.453460156917572,
-0.21699517965316772,
1.3399025201797485,
-0.19612601399421692,
1.4368952512741089,
-0.3926490247249603,
-0.1182955801486969,
-0.21625259518623352,
-0.35122498869895935,
0.23755311965942383,
-0.23773619532585144,
-0.6155287623405457,
0.08234412968158722,
-0.7678505778312683,
0.40382808446884155,
1.420338749885559,
0.3216469883918762,
0.06027788668870926,
0.5224635004997253,
1.1246050596237183,
0.4752300977706909,
0.09440850466489792,
-0.8876756429672241,
-1.4546844959259033,
1.9016185998916626,
-1.5757344961166382,
2.010794162750244,
0.6572142839431763,
-0.06251640617847443,
-1.6242516040802002,
-1.800563931465149,
1.3592010736465454,
1.2114133834838867,
2.2521753311157227,
0.6115701198577881,
0.3894723057746887,
-0.8854888081550598,
-0.7362667322158813,
0.09958790242671967,
-0.9526458978652954,
-0.726329505443573,
0.22721371054649353,
2.4788222312927246,
1.878364086151123,
-0.41466593742370605,
-0.23518040776252747,
-0.9286659955978394,
1.4414997100830078,
-0.2646571099758148,
0.23180082440376282,
2.0233263969421387,
-0.18495240807533264,
-1.021439552307129,
1.2649420499801636,
-2.55220627784729,
0.20604583621025085,
1.9726775884628296,
0.3610549867153168,
0.18128609657287598,
-1.361603021621704,
-0.7431173324584961,
-0.2865394353866577,
-0.49805423617362976,
-1.2668074369430542,
0.4440803825855255,
-0.26947250962257385,
-0.6764093637466431,
-1.442026138305664,
0.19033440947532654,
-1.1395432949066162,
-1.5175477266311646,
0.18833792209625244,
1.9249088764190674,
2.113546848297119,
-0.7622976899147034,
1.685968279838562,
-0.2002526819705963,
0.19273224472999573,
1.2788889408111572,
1.3025130033493042,
2.9832282066345215,
1.8936233520507812,
-1.2551995515823364,
0.4883016049861908,
-0.16681933403015137,
-0.5242664217948914,
1.0702778100967407,
-1.1919809579849243,
1.2364517450332642,
-0.027765078470110893,
-1.1746635437011719,
-1.2283135652542114,
0.8595426082611084,
0.5386436581611633,
-0.08082857728004456,
-0.5267934799194336,
1.1390973329544067,
0.021965093910694122,
1.3567861318588257,
0.6563441157341003,
-0.3031538724899292,
0.5126122832298279,
-0.3729442059993744,
-0.518863320350647,
1.5520237684249878,
0.1265769600868225,
-1.4432560205459595,
-2.1452713012695312,
-0.195611834526062,
-0.8571910858154297,
-0.043103281408548355,
-0.591961145401001,
-1.047835350036621,
1.605595350265503,
0.2850590646266937,
-1.1292904615402222,
-0.22045478224754333,
-0.2926614582538605,
-0.5107105374336243,
2.8128528594970703,
-1.3439762592315674,
-0.3448743224143982,
-1.002682089805603,
-0.7401053309440613,
1.6839090585708618,
-1.0753140449523926,
-0.2167051136493683,
-1.1181875467300415,
-0.6199414730072021,
-1.2996399402618408,
-0.44667452573776245,
0.03150121495127678,
-0.8833486437797546,
0.9576306939125061,
0.377787321805954,
-1.2308361530303955,
-0.4270612895488739,
-0.9471167922019958,
0.9361853003501892,
-0.10873670876026154,
0.17576023936271667,
1.8641940355300903,
0.3332676589488983,
-0.39854469895362854,
0.8960758447647095,
1.1613974571228027,
0.6343783736228943,
-0.6111011505126953,
0.1801299750804901,
-0.5631477236747742,
0.30090397596359253,
-1.3619354963302612,
0.28074511885643005,
-2.894118309020996,
0.5812569856643677,
0.009303921833634377,
-0.1083383560180664,
-0.004893741104751825,
-1.3211724758148193,
1.1112772226333618,
2.4627106189727783,
-1.2000269889831543,
0.5422335863113403,
0.35071560740470886,
1.2989733219146729,
-1.794769525527954,
0.2808453440666199,
-0.3782060742378235,
2.0850064754486084,
0.20688769221305847,
1.2627898454666138,
-0.43013888597488403,
-2.435654401779175,
0.5381569862365723,
-1.3233531713485718,
-1.1091587543487549,
0.5829174518585205,
-0.9216229319572449,
0.26037389039993286,
-1.5982543230056763,
-0.3448737859725952,
-0.8946767449378967,
-1.190598487854004,
0.6897331476211548,
0.18011698126792908,
0.23606154322624207,
-0.5348224639892578,
0.4006516635417938,
-2.169711112976074,
-1.4206011295318604,
-0.10210785269737244,
-0.8625565767288208,
0.5003693103790283,
-0.5175145864486694,
0.7515975832939148,
-0.15587681531906128,
-0.09861799329519272,
0.3410048484802246,
1.5430828332901,
3.3599748611450195,
0.2269335687160492,
0.42069703340530396,
-0.2504325807094574,
-0.9359225034713745,
1.4991692304611206,
0.8639992475509644,
-0.1686757206916809,
-0.4514886438846588,
-1.152536392211914,
1.3855993747711182,
1.8027724027633667,
1.0255980491638184,
0.02152562141418457,
-0.7544860243797302,
-0.6670110821723938,
-0.07037750631570816,
0.29783838987350464,
0.41485998034477234,
0.8241248726844788,
-0.08911436796188354,
-0.03156866505742073,
1.4220207929611206,
1.0625191926956177,
-0.5253458619117737,
0.27830880880355835,
-0.8701545000076294,
-0.4548426568508148,
0.5106653571128845,
0.14708968997001648,
-0.13628080487251282,
0.3588290512561798,
-0.977186381816864,
-0.21192055940628052,
-0.340185284614563,
-0.7778877019882202,
-0.6261228919029236,
-0.34821510314941406,
-0.3348851203918457,
1.5660746097564697,
0.26378047466278076,
-0.6330265998840332,
-0.15514305233955383,
-0.791357696056366,
-0.14488866925239563,
-1.134294033050537,
0.09799402952194214,
-0.061222538352012634,
-0.23112285137176514,
-0.24438625574111938,
1.7102340459823608,
-0.8429660797119141,
-2.123241901397705,
0.0543118417263031,
0.3252268433570862,
-0.06148642301559448,
0.30025047063827515,
1.7313848733901978,
0.42363911867141724,
1.3834408521652222,
1.2823668718338013,
1.0110313892364502,
-0.5758333206176758,
-1.4043294191360474,
0.6767823100090027,
1.133951187133789,
-1.3210572004318237,
0.8420476317405701,
-0.08290276676416397,
-0.49090054631233215,
0.5379801392555237,
1.367526888847351,
0.4763284921646118,
-1.9613659381866455,
0.8329009413719177,
-1.0610381364822388,
0.949573814868927,
0.7427374124526978,
0.6317911744117737,
0.2947017550468445,
0.8435364365577698,
-1.2430847883224487,
-1.1372567415237427,
-0.7316291928291321,
-0.7056376338005066,
2.058891534805298,
-0.32388296723365784,
0.6180158853530884,
-0.15359196066856384,
-1.3060516119003296,
0.06241041421890259,
0.6423075795173645,
0.34902727603912354,
-0.5306304693222046,
0.8639082312583923,
-0.7186235189437866,
-1.170549988746643,
-1.2828792333602905,
-0.4391752779483795,
-1.0249055624008179,
-0.998415470123291,
1.1248537302017212,
0.8146865367889404,
0.13421449065208435,
1.8164786100387573,
0.6767969727516174,
0.23727518320083618,
-2.5175771713256836,
0.9065105319023132,
0.27600908279418945,
-0.0957273468375206,
0.7032080888748169,
0.4400928020477295,
1.091210126876831,
0.11922677606344223,
0.5338960886001587,
-2.4754104614257812,
2.3382716178894043,
-0.13844594359397888,
0.7211463451385498,
-0.09252460300922394,
-0.1191876083612442,
1.1087257862091064,
0.6113008856773376,
0.5324355959892273,
-0.8681846857070923,
0.5484955906867981,
-0.46118640899658203,
1.3463252782821655,
1.02845299243927,
-0.8460679650306702,
-0.07264731824398041,
1.3249839544296265,
0.45482149720191956,
-0.6956624984741211,
-0.9925373196601868,
-0.8917893171310425,
0.9404534697532654,
1.622131586074829,
-0.025690456852316856,
-0.03867502883076668,
0.77439945936203,
0.6161831021308899,
-1.2191590070724487,
0.10750361531972885,
-0.6193790435791016,
-0.6764052510261536,
1.734081506729126,
2.043870687484741,
-0.33522504568099976,
-0.19034039974212646,
-0.5814172625541687,
-1.3696892261505127,
0.7305991053581238,
-0.12098042666912079,
0.1832047700881958,
0.6630688309669495,
-0.5832687020301819,
0.8948370218276978,
0.858243465423584,
0.8240270614624023,
0.2275855541229248,
0.2433203160762787,
0.5044025778770447,
-0.5021575689315796,
-1.1015446186065674,
-0.19151198863983154,
-1.1766846179962158,
-2.613737106323242,
0.336580753326416,
-0.14134982228279114,
-1.2416057586669922,
0.08897722512483597,
-0.9613248705863953,
1.1059510707855225,
-0.5312657356262207,
-1.1749755144119263,
-1.431598424911499,
0.20057782530784607,
0.06601347029209137,
0.8781009912490845,
-1.6901434659957886,
-0.1343054473400116,
1.2398383617401123,
0.8656798005104065,
-0.71882164478302,
0.9795001149177551,
0.23052039742469788,
1.2129266262054443,
0.7015745043754578,
-0.30875706672668457,
0.5337618589401245,
-0.18164268136024475,
-1.3881254196166992,
0.5324357151985168,
1.1597402095794678,
0.13586518168449402,
1.4826688766479492,
-0.4873015880584717,
-0.0632745623588562,
0.35985127091407776,
-0.6427609920501709,
-0.45060306787490845,
-0.38613182306289673,
0.51617032289505,
0.024835806339979172,
-0.7750239372253418,
-0.08974380046129227,
0.008437948301434517,
-0.3387707471847534,
0.05225444585084915,
-1.4862483739852905,
-0.12767526507377625,
-0.541416347026825,
-0.5459944605827332,
-1.2472623586654663,
-0.15252727270126343,
1.285272479057312,
-0.6365743279457092,
-0.3616844117641449,
0.5077724456787109,
0.32068943977355957,
0.48842892050743103,
0.6050392389297485,
-0.7753689885139465,
-0.28918665647506714,
-0.10675273090600967,
-0.3489567041397095,
0.2649869918823242,
1.4601637125015259,
-0.16327005624771118,
-0.9686958193778992,
0.6455652117729187,
-0.2842143177986145,
0.0721956118941307,
1.7733027935028076,
-0.021295215934515,
-0.7918623685836792,
0.21281573176383972,
-0.8610733151435852,
1.9776684045791626,
1.6521708965301514,
1.3106666803359985,
-0.30555713176727295,
-0.7658140063285828,
0.700688898563385,
-0.4523122012615204,
-0.4860168397426605,
0.7557795643806458,
0.36852237582206726,
-0.21310606598854065,
-1.4794851541519165,
0.895429253578186,
1.2641462087631226,
-0.7861696481704712,
-0.8139249682426453,
0.23811748623847961,
-0.7759034037590027,
1.1567000150680542,
0.5680748224258423,
0.36605873703956604,
0.34154537320137024,
1.7244750261306763,
0.8850435614585876,
-0.5172980427742004,
0.5391045808792114,
0.5848608613014221,
-0.24650338292121887,
-2.14017653465271,
-1.2451794147491455,
0.2494315207004547,
-0.5640129446983337,
-1.6431236267089844,
1.3686788082122803,
-1.0865318775177002,
-0.941485583782196,
0.6564630270004272,
0.1445276141166687,
1.2574836015701294,
0.4727541208267212,
1.448784351348877,
2.003162384033203,
0.6469935178756714,
0.49183690547943115,
1.1304553747177124,
-0.14684656262397766,
-0.40623968839645386,
1.7770531177520752,
-0.36138299107551575,
0.5271570086479187,
1.0916314125061035,
-0.1941266655921936,
-1.2041940689086914,
-0.7041857242584229,
-1.3937325477600098,
-0.6635839939117432,
1.2077475786209106,
0.09063143283128738,
-1.0402849912643433,
0.2928444445133209,
1.553126573562622,
-0.022484080865979195,
-0.4801907241344452,
0.7079222202301025,
0.4363090693950653,
-0.8419598937034607,
-0.04922020062804222,
-0.9128777384757996,
0.5253365635871887,
-0.15834230184555054,
-0.23373639583587646,
0.3943162262439728,
0.461638867855072,
1.4845305681228638,
0.07083383202552795,
0.25411397218704224,
0.9754819273948669,
-1.3747402429580688,
1.5431675910949707,
-0.7678852677345276,
0.34809964895248413,
-2.3295066356658936,
1.3631895780563354,
-0.6876402497291565,
2.0553030967712402,
-2.628551483154297,
0.5267364382743835,
-0.6158685088157654,
-0.5165228247642517,
0.3449571132659912,
-0.3957694470882416,
0.03969376161694527,
-0.081244096159935,
-1.1708157062530518,
0.15033861994743347,
-0.5486768484115601,
0.4658425450325012,
1.2427970170974731,
1.3318103551864624,
-1.1453168392181396,
-0.2219354510307312,
-1.7299531698226929,
-0.14111998677253723,
-0.8542290329933167,
0.2803722023963928,
-2.0451860427856445,
-0.35476404428482056,
-1.8327726125717163,
-2.2387025356292725,
-1.1621363162994385,
-0.7948140501976013,
1.2670340538024902,
0.140072762966156,
-0.8952270746231079,
1.5049453973770142,
-0.4595396816730499,
-1.778876781463623,
1.052161693572998,
-2.052220582962036
] |
https://github.com/huggingface/datasets/issues/5345 | Wrong dtype for array in audio features | Hi Polina,
Sorry for the late answer
It is possible that the issue was due to a bug that is now fixed. I installed an editable version of datasets from github, but I don't recall whether I had updated it at the time of the issue. My research led me to other directions so I did not follow through on the interleave datasets.
| ### Describe the bug
When concatenating/interleaving different datasets, I stumble into an error because the features can't be aligned. After some investigation, I understood that the audio arrays had different dtypes, namely `float32` and `float64`. Consequently, the datasets cannot be merged.
### Steps to reproduce the bug
For example, for `facebook/voxpopuli` and `mozilla-foundation/common_voice_11_0`:
```
from datasets import load_dataset, interleave_datasets
covost = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="train", streaming=True)
voxpopuli = datasets.load_dataset("facebook/voxpopuli", "nl", split="train", streaming=True)
sample_cv, = covost.take(1)
sample_vp, = voxpopuli.take(1)
assert sample_cv["audio"]["array"].dtype == sample_vp["audio"]["array"].dtype
# Fails
dataset = interleave_datasets([covost, voxpopuli])
# ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string', id=None), 'language': Value(dtype='int64', id=None), 'audio': {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)}, 'normalized_text': Value(dtype='string', id=None), 'gender': Value(dtype='string', id=None), 'speaker_id': Value(dtype='string', id=None), 'is_gold_transcript': Value(dtype='bool', id=None), 'accent': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None)} has unexpected type - {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)} (expected either Audio(sampling_rate=16000, mono=True, decode=True, id=None) or Value("null").
```
### Expected behavior
The audio should be loaded to arrays with a unique dtype (I guess `float32`)
### Environment info
```
- `datasets` version: 2.7.1.dev0
- Platform: Linux-4.18.0-425.3.1.el8.x86_64-x86_64-with-glibc2.28
- Python version: 3.9.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
``` | 380 | 63 | Wrong dtype for array in audio features
### Describe the bug
When concatenating/interleaving different datasets, I stumble into an error because the features can't be aligned. After some investigation, I understood that the audio arrays had different dtypes, namely `float32` and `float64`. Consequently, the datasets cannot be merged.
### Steps to reproduce the bug
For example, for `facebook/voxpopuli` and `mozilla-foundation/common_voice_11_0`:
```
from datasets import load_dataset, interleave_datasets
covost = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="train", streaming=True)
voxpopuli = datasets.load_dataset("facebook/voxpopuli", "nl", split="train", streaming=True)
sample_cv, = covost.take(1)
sample_vp, = voxpopuli.take(1)
assert sample_cv["audio"]["array"].dtype == sample_vp["audio"]["array"].dtype
# Fails
dataset = interleave_datasets([covost, voxpopuli])
# ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string', id=None), 'language': Value(dtype='int64', id=None), 'audio': {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)}, 'normalized_text': Value(dtype='string', id=None), 'gender': Value(dtype='string', id=None), 'speaker_id': Value(dtype='string', id=None), 'is_gold_transcript': Value(dtype='bool', id=None), 'accent': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None)} has unexpected type - {'array': Sequence(feature=Value(dtype='float64', id=None), length=-1, id=None), 'path': Value(dtype='string', id=None), 'sampling_rate': Value(dtype='int64', id=None)} (expected either Audio(sampling_rate=16000, mono=True, decode=True, id=None) or Value("null").
```
### Expected behavior
The audio should be loaded to arrays with a unique dtype (I guess `float32`)
### Environment info
```
- `datasets` version: 2.7.1.dev0
- Platform: Linux-4.18.0-425.3.1.el8.x86_64-x86_64-with-glibc2.28
- Python version: 3.9.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
```
Hi Polina,
Sorry for the late answer
It is possible that the issue was due to a bug that is now fixed. I installed an editable version of datasets from github, but I don't recall whether I had updated it at the time of the issue. My research led me to other directions so I did not follow through on the interleave datasets.
| [
-1.3297818899154663,
-1.0398335456848145,
-0.7567360997200012,
1.6267650127410889,
-0.26365041732788086,
-1.0593035221099854,
0.12767237424850464,
-1.0891356468200684,
1.538980484008789,
-0.7270705103874207,
0.23913443088531494,
-1.5932620763778687,
0.00082396250218153,
-0.7497702240943909,
-0.6767918467521667,
-0.8565664291381836,
-0.298057496547699,
-0.7275330424308777,
1.1821483373641968,
2.4495792388916016,
1.245980978012085,
-1.3719335794448853,
2.783842086791992,
0.8442907333374023,
-0.17889449000358582,
-1.0215269327163696,
0.5665276646614075,
-0.07742148637771606,
-1.174533486366272,
-0.5452814102172852,
-0.9279714822769165,
-0.11980747431516647,
-0.5688576698303223,
-0.39684927463531494,
-0.09247289597988129,
0.464272141456604,
-0.32900530099868774,
-0.4545668065547943,
-0.5622127056121826,
-0.7672949433326721,
0.4687029719352722,
-0.4061623811721802,
0.8163682818412781,
-0.2737746834754944,
1.7792855501174927,
-0.45544615387916565,
0.3084271252155304,
0.6011683344841003,
1.2547931671142578,
0.25742924213409424,
0.08419366925954819,
0.3587610125541687,
0.4474295973777771,
-0.10344572365283966,
0.6217677593231201,
1.1627906560897827,
0.7495837807655334,
0.4285365343093872,
0.8193067312240601,
-2.2712254524230957,
1.169782042503357,
-1.1578617095947266,
0.34215837717056274,
1.4514062404632568,
-0.8136277198791504,
0.5547147989273071,
-1.7364816665649414,
-0.031219540163874626,
0.6509189009666443,
-2.163752317428589,
0.3818178176879883,
-1.212200403213501,
-0.4871636927127838,
0.9431713223457336,
0.4306996464729309,
-1.2423887252807617,
0.1178937628865242,
-0.40273186564445496,
1.0705175399780273,
0.3507861793041229,
0.987638533115387,
-1.6452215909957886,
0.022849608212709427,
-0.2797073423862457,
0.09931863099336624,
-1.2711819410324097,
-1.4891310930252075,
0.49124693870544434,
0.4555959105491638,
0.638288140296936,
-0.12818700075149536,
1.1466457843780518,
-1.1406519412994385,
0.6465874314308167,
-1.09328031539917,
-1.6701346635818481,
-1.4547998905181885,
-2.408515691757202,
-2.1879613399505615,
0.7170456647872925,
-0.4325542449951172,
-0.5933522582054138,
2.0131072998046875,
-0.8984143137931824,
-1.674013376235962,
1.2269549369812012,
0.36521396040916443,
0.0608692467212677,
2.511279582977295,
0.21144667267799377,
-0.7232173085212708,
0.48205748200416565,
-0.8243891000747681,
0.6885042786598206,
-0.413044810295105,
1.467579960823059,
0.42420756816864014,
-0.9465684294700623,
1.6258476972579956,
-0.42786040902137756,
0.6112861633300781,
-0.6472809314727783,
-0.44791314005851746,
-0.806901752948761,
0.3730936348438263,
1.864010214805603,
-0.18376490473747253,
1.4706432819366455,
-0.39999350905418396,
-1.4951491355895996,
-1.5605559349060059,
1.0023502111434937,
0.326306015253067,
-0.900337278842926,
0.22349867224693298,
-0.391512393951416,
0.15656396746635437,
-0.18481025099754333,
1.1874014139175415,
1.2816938161849976,
0.6102591156959534,
-0.30148637294769287,
-0.7763906121253967,
0.15924274921417236,
-0.20191317796707153,
-0.7142614126205444,
-1.742734432220459,
-0.2955528497695923,
0.08094228059053421,
0.6824181079864502,
-1.2857526540756226,
1.6154605150222778,
0.923477828502655,
1.8073996305465698,
1.0932255983352661,
-0.49452975392341614,
1.4897935390472412,
0.12004569917917252,
1.7997733354568481,
-0.6539011001586914,
0.6988422870635986,
-0.37570828199386597,
-1.188111662864685,
0.8467358946800232,
-0.29737675189971924,
-1.9991813898086548,
-0.7978504300117493,
-0.8167202472686768,
-0.22217535972595215,
-0.7704890370368958,
0.8948965072631836,
-0.4316401779651642,
-1.4707709550857544,
0.25330132246017456,
-0.8646697402000427,
0.2545660436153412,
-1.150044322013855,
0.38957464694976807,
0.742405116558075,
-0.5842677354812622,
0.07705917209386826,
-0.2259177565574646,
-1.2021856307983398,
-0.4880434274673462,
0.4001617729663849,
1.9273369312286377,
-0.794011116027832,
0.6999537348747253,
1.0404852628707886,
-0.7129296064376831,
0.025578711181879044,
0.2979750633239746,
-0.2743329405784607,
0.8066853284835815,
-1.0222947597503662,
-0.7518048286437988,
1.1919493675231934,
-0.2526296377182007,
-0.5965320467948914,
1.4088330268859863,
0.8123348355293274,
-1.0563679933547974,
-0.29772984981536865,
-0.12876537442207336,
-0.8348403573036194,
0.07177361100912094,
-1.5208855867385864,
-0.2336828112602234,
0.5579165816307068,
-1.6084163188934326,
-0.453460156917572,
-0.21699517965316772,
1.3399025201797485,
-0.19612601399421692,
1.4368952512741089,
-0.3926490247249603,
-0.1182955801486969,
-0.21625259518623352,
-0.35122498869895935,
0.23755311965942383,
-0.23773619532585144,
-0.6155287623405457,
0.08234412968158722,
-0.7678505778312683,
0.40382808446884155,
1.420338749885559,
0.3216469883918762,
0.06027788668870926,
0.5224635004997253,
1.1246050596237183,
0.4752300977706909,
0.09440850466489792,
-0.8876756429672241,
-1.4546844959259033,
1.9016185998916626,
-1.5757344961166382,
2.010794162750244,
0.6572142839431763,
-0.06251640617847443,
-1.6242516040802002,
-1.800563931465149,
1.3592010736465454,
1.2114133834838867,
2.2521753311157227,
0.6115701198577881,
0.3894723057746887,
-0.8854888081550598,
-0.7362667322158813,
0.09958790242671967,
-0.9526458978652954,
-0.726329505443573,
0.22721371054649353,
2.4788222312927246,
1.878364086151123,
-0.41466593742370605,
-0.23518040776252747,
-0.9286659955978394,
1.4414997100830078,
-0.2646571099758148,
0.23180082440376282,
2.0233263969421387,
-0.18495240807533264,
-1.021439552307129,
1.2649420499801636,
-2.55220627784729,
0.20604583621025085,
1.9726775884628296,
0.3610549867153168,
0.18128609657287598,
-1.361603021621704,
-0.7431173324584961,
-0.2865394353866577,
-0.49805423617362976,
-1.2668074369430542,
0.4440803825855255,
-0.26947250962257385,
-0.6764093637466431,
-1.442026138305664,
0.19033440947532654,
-1.1395432949066162,
-1.5175477266311646,
0.18833792209625244,
1.9249088764190674,
2.113546848297119,
-0.7622976899147034,
1.685968279838562,
-0.2002526819705963,
0.19273224472999573,
1.2788889408111572,
1.3025130033493042,
2.9832282066345215,
1.8936233520507812,
-1.2551995515823364,
0.4883016049861908,
-0.16681933403015137,
-0.5242664217948914,
1.0702778100967407,
-1.1919809579849243,
1.2364517450332642,
-0.027765078470110893,
-1.1746635437011719,
-1.2283135652542114,
0.8595426082611084,
0.5386436581611633,
-0.08082857728004456,
-0.5267934799194336,
1.1390973329544067,
0.021965093910694122,
1.3567861318588257,
0.6563441157341003,
-0.3031538724899292,
0.5126122832298279,
-0.3729442059993744,
-0.518863320350647,
1.5520237684249878,
0.1265769600868225,
-1.4432560205459595,
-2.1452713012695312,
-0.195611834526062,
-0.8571910858154297,
-0.043103281408548355,
-0.591961145401001,
-1.047835350036621,
1.605595350265503,
0.2850590646266937,
-1.1292904615402222,
-0.22045478224754333,
-0.2926614582538605,
-0.5107105374336243,
2.8128528594970703,
-1.3439762592315674,
-0.3448743224143982,
-1.002682089805603,
-0.7401053309440613,
1.6839090585708618,
-1.0753140449523926,
-0.2167051136493683,
-1.1181875467300415,
-0.6199414730072021,
-1.2996399402618408,
-0.44667452573776245,
0.03150121495127678,
-0.8833486437797546,
0.9576306939125061,
0.377787321805954,
-1.2308361530303955,
-0.4270612895488739,
-0.9471167922019958,
0.9361853003501892,
-0.10873670876026154,
0.17576023936271667,
1.8641940355300903,
0.3332676589488983,
-0.39854469895362854,
0.8960758447647095,
1.1613974571228027,
0.6343783736228943,
-0.6111011505126953,
0.1801299750804901,
-0.5631477236747742,
0.30090397596359253,
-1.3619354963302612,
0.28074511885643005,
-2.894118309020996,
0.5812569856643677,
0.009303921833634377,
-0.1083383560180664,
-0.004893741104751825,
-1.3211724758148193,
1.1112772226333618,
2.4627106189727783,
-1.2000269889831543,
0.5422335863113403,
0.35071560740470886,
1.2989733219146729,
-1.794769525527954,
0.2808453440666199,
-0.3782060742378235,
2.0850064754486084,
0.20688769221305847,
1.2627898454666138,
-0.43013888597488403,
-2.435654401779175,
0.5381569862365723,
-1.3233531713485718,
-1.1091587543487549,
0.5829174518585205,
-0.9216229319572449,
0.26037389039993286,
-1.5982543230056763,
-0.3448737859725952,
-0.8946767449378967,
-1.190598487854004,
0.6897331476211548,
0.18011698126792908,
0.23606154322624207,
-0.5348224639892578,
0.4006516635417938,
-2.169711112976074,
-1.4206011295318604,
-0.10210785269737244,
-0.8625565767288208,
0.5003693103790283,
-0.5175145864486694,
0.7515975832939148,
-0.15587681531906128,
-0.09861799329519272,
0.3410048484802246,
1.5430828332901,
3.3599748611450195,
0.2269335687160492,
0.42069703340530396,
-0.2504325807094574,
-0.9359225034713745,
1.4991692304611206,
0.8639992475509644,
-0.1686757206916809,
-0.4514886438846588,
-1.152536392211914,
1.3855993747711182,
1.8027724027633667,
1.0255980491638184,
0.02152562141418457,
-0.7544860243797302,
-0.6670110821723938,
-0.07037750631570816,
0.29783838987350464,
0.41485998034477234,
0.8241248726844788,
-0.08911436796188354,
-0.03156866505742073,
1.4220207929611206,
1.0625191926956177,
-0.5253458619117737,
0.27830880880355835,
-0.8701545000076294,
-0.4548426568508148,
0.5106653571128845,
0.14708968997001648,
-0.13628080487251282,
0.3588290512561798,
-0.977186381816864,
-0.21192055940628052,
-0.340185284614563,
-0.7778877019882202,
-0.6261228919029236,
-0.34821510314941406,
-0.3348851203918457,
1.5660746097564697,
0.26378047466278076,
-0.6330265998840332,
-0.15514305233955383,
-0.791357696056366,
-0.14488866925239563,
-1.134294033050537,
0.09799402952194214,
-0.061222538352012634,
-0.23112285137176514,
-0.24438625574111938,
1.7102340459823608,
-0.8429660797119141,
-2.123241901397705,
0.0543118417263031,
0.3252268433570862,
-0.06148642301559448,
0.30025047063827515,
1.7313848733901978,
0.42363911867141724,
1.3834408521652222,
1.2823668718338013,
1.0110313892364502,
-0.5758333206176758,
-1.4043294191360474,
0.6767823100090027,
1.133951187133789,
-1.3210572004318237,
0.8420476317405701,
-0.08290276676416397,
-0.49090054631233215,
0.5379801392555237,
1.367526888847351,
0.4763284921646118,
-1.9613659381866455,
0.8329009413719177,
-1.0610381364822388,
0.949573814868927,
0.7427374124526978,
0.6317911744117737,
0.2947017550468445,
0.8435364365577698,
-1.2430847883224487,
-1.1372567415237427,
-0.7316291928291321,
-0.7056376338005066,
2.058891534805298,
-0.32388296723365784,
0.6180158853530884,
-0.15359196066856384,
-1.3060516119003296,
0.06241041421890259,
0.6423075795173645,
0.34902727603912354,
-0.5306304693222046,
0.8639082312583923,
-0.7186235189437866,
-1.170549988746643,
-1.2828792333602905,
-0.4391752779483795,
-1.0249055624008179,
-0.998415470123291,
1.1248537302017212,
0.8146865367889404,
0.13421449065208435,
1.8164786100387573,
0.6767969727516174,
0.23727518320083618,
-2.5175771713256836,
0.9065105319023132,
0.27600908279418945,
-0.0957273468375206,
0.7032080888748169,
0.4400928020477295,
1.091210126876831,
0.11922677606344223,
0.5338960886001587,
-2.4754104614257812,
2.3382716178894043,
-0.13844594359397888,
0.7211463451385498,
-0.09252460300922394,
-0.1191876083612442,
1.1087257862091064,
0.6113008856773376,
0.5324355959892273,
-0.8681846857070923,
0.5484955906867981,
-0.46118640899658203,
1.3463252782821655,
1.02845299243927,
-0.8460679650306702,
-0.07264731824398041,
1.3249839544296265,
0.45482149720191956,
-0.6956624984741211,
-0.9925373196601868,
-0.8917893171310425,
0.9404534697532654,
1.622131586074829,
-0.025690456852316856,
-0.03867502883076668,
0.77439945936203,
0.6161831021308899,
-1.2191590070724487,
0.10750361531972885,
-0.6193790435791016,
-0.6764052510261536,
1.734081506729126,
2.043870687484741,
-0.33522504568099976,
-0.19034039974212646,
-0.5814172625541687,
-1.3696892261505127,
0.7305991053581238,
-0.12098042666912079,
0.1832047700881958,
0.6630688309669495,
-0.5832687020301819,
0.8948370218276978,
0.858243465423584,
0.8240270614624023,
0.2275855541229248,
0.2433203160762787,
0.5044025778770447,
-0.5021575689315796,
-1.1015446186065674,
-0.19151198863983154,
-1.1766846179962158,
-2.613737106323242,
0.336580753326416,
-0.14134982228279114,
-1.2416057586669922,
0.08897722512483597,
-0.9613248705863953,
1.1059510707855225,
-0.5312657356262207,
-1.1749755144119263,
-1.431598424911499,
0.20057782530784607,
0.06601347029209137,
0.8781009912490845,
-1.6901434659957886,
-0.1343054473400116,
1.2398383617401123,
0.8656798005104065,
-0.71882164478302,
0.9795001149177551,
0.23052039742469788,
1.2129266262054443,
0.7015745043754578,
-0.30875706672668457,
0.5337618589401245,
-0.18164268136024475,
-1.3881254196166992,
0.5324357151985168,
1.1597402095794678,
0.13586518168449402,
1.4826688766479492,
-0.4873015880584717,
-0.0632745623588562,
0.35985127091407776,
-0.6427609920501709,
-0.45060306787490845,
-0.38613182306289673,
0.51617032289505,
0.024835806339979172,
-0.7750239372253418,
-0.08974380046129227,
0.008437948301434517,
-0.3387707471847534,
0.05225444585084915,
-1.4862483739852905,
-0.12767526507377625,
-0.541416347026825,
-0.5459944605827332,
-1.2472623586654663,
-0.15252727270126343,
1.285272479057312,
-0.6365743279457092,
-0.3616844117641449,
0.5077724456787109,
0.32068943977355957,
0.48842892050743103,
0.6050392389297485,
-0.7753689885139465,
-0.28918665647506714,
-0.10675273090600967,
-0.3489567041397095,
0.2649869918823242,
1.4601637125015259,
-0.16327005624771118,
-0.9686958193778992,
0.6455652117729187,
-0.2842143177986145,
0.0721956118941307,
1.7733027935028076,
-0.021295215934515,
-0.7918623685836792,
0.21281573176383972,
-0.8610733151435852,
1.9776684045791626,
1.6521708965301514,
1.3106666803359985,
-0.30555713176727295,
-0.7658140063285828,
0.700688898563385,
-0.4523122012615204,
-0.4860168397426605,
0.7557795643806458,
0.36852237582206726,
-0.21310606598854065,
-1.4794851541519165,
0.895429253578186,
1.2641462087631226,
-0.7861696481704712,
-0.8139249682426453,
0.23811748623847961,
-0.7759034037590027,
1.1567000150680542,
0.5680748224258423,
0.36605873703956604,
0.34154537320137024,
1.7244750261306763,
0.8850435614585876,
-0.5172980427742004,
0.5391045808792114,
0.5848608613014221,
-0.24650338292121887,
-2.14017653465271,
-1.2451794147491455,
0.2494315207004547,
-0.5640129446983337,
-1.6431236267089844,
1.3686788082122803,
-1.0865318775177002,
-0.941485583782196,
0.6564630270004272,
0.1445276141166687,
1.2574836015701294,
0.4727541208267212,
1.448784351348877,
2.003162384033203,
0.6469935178756714,
0.49183690547943115,
1.1304553747177124,
-0.14684656262397766,
-0.40623968839645386,
1.7770531177520752,
-0.36138299107551575,
0.5271570086479187,
1.0916314125061035,
-0.1941266655921936,
-1.2041940689086914,
-0.7041857242584229,
-1.3937325477600098,
-0.6635839939117432,
1.2077475786209106,
0.09063143283128738,
-1.0402849912643433,
0.2928444445133209,
1.553126573562622,
-0.022484080865979195,
-0.4801907241344452,
0.7079222202301025,
0.4363090693950653,
-0.8419598937034607,
-0.04922020062804222,
-0.9128777384757996,
0.5253365635871887,
-0.15834230184555054,
-0.23373639583587646,
0.3943162262439728,
0.461638867855072,
1.4845305681228638,
0.07083383202552795,
0.25411397218704224,
0.9754819273948669,
-1.3747402429580688,
1.5431675910949707,
-0.7678852677345276,
0.34809964895248413,
-2.3295066356658936,
1.3631895780563354,
-0.6876402497291565,
2.0553030967712402,
-2.628551483154297,
0.5267364382743835,
-0.6158685088157654,
-0.5165228247642517,
0.3449571132659912,
-0.3957694470882416,
0.03969376161694527,
-0.081244096159935,
-1.1708157062530518,
0.15033861994743347,
-0.5486768484115601,
0.4658425450325012,
1.2427970170974731,
1.3318103551864624,
-1.1453168392181396,
-0.2219354510307312,
-1.7299531698226929,
-0.14111998677253723,
-0.8542290329933167,
0.2803722023963928,
-2.0451860427856445,
-0.35476404428482056,
-1.8327726125717163,
-2.2387025356292725,
-1.1621363162994385,
-0.7948140501976013,
1.2670340538024902,
0.140072762966156,
-0.8952270746231079,
1.5049453973770142,
-0.4595396816730499,
-1.778876781463623,
1.052161693572998,
-2.052220582962036
] |
https://github.com/huggingface/datasets/issues/5342 | Emotion dataset cannot be downloaded | Hi @cbarond there's already an open issue at https://github.com/dair-ai/emotion_dataset/issues/5, as the data seems to be missing now, so check that issue instead 👍🏻 | ### Describe the bug
The emotion dataset gives a FileNotFoundError. The full error is: `FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/1pzkadrvffbqw6o/train.txt?dl=1`.
It was working yesterday (December 7, 2022), but stopped working today (December 8, 2022).
### Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("emotion")
```
### Expected behavior
The dataset should load properly.
### Environment info
- `datasets` version: 2.7.1
- Platform: Windows-10-10.0.19045-SP0
- Python version: 3.9.13
- PyArrow version: 10.0.1
- Pandas version: 1.5.1 | 381 | 23 | Emotion dataset cannot be downloaded
### Describe the bug
The emotion dataset gives a FileNotFoundError. The full error is: `FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/1pzkadrvffbqw6o/train.txt?dl=1`.
It was working yesterday (December 7, 2022), but stopped working today (December 8, 2022).
### Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("emotion")
```
### Expected behavior
The dataset should load properly.
### Environment info
- `datasets` version: 2.7.1
- Platform: Windows-10-10.0.19045-SP0
- Python version: 3.9.13
- PyArrow version: 10.0.1
- Pandas version: 1.5.1
Hi @cbarond there's already an open issue at https://github.com/dair-ai/emotion_dataset/issues/5, as the data seems to be missing now, so check that issue instead 👍🏻 | [
-1.0933345556259155,
-0.8987973928451538,
-0.8178911209106445,
1.440356731414795,
-0.18660634756088257,
-1.2340970039367676,
0.13042962551116943,
-0.977516770362854,
1.568128228187561,
-0.7103350162506104,
0.25876522064208984,
-1.6854135990142822,
-0.0371609665453434,
-0.6266356706619263,
-0.7120749950408936,
-0.9128332138061523,
-0.3959374725818634,
-0.7346388101577759,
1.016445517539978,
2.5172019004821777,
1.148688554763794,
-1.229414463043213,
2.7177462577819824,
0.6640012264251709,
-0.16128844022750854,
-1.0110735893249512,
0.6052652597427368,
0.040602512657642365,
-1.2826522588729858,
-0.38983339071273804,
-0.8777099847793579,
-0.12602508068084717,
-0.5668532848358154,
-0.5960496664047241,
0.10961128771305084,
0.4047301411628723,
-0.3196633458137512,
-0.38304924964904785,
-0.5035178065299988,
-0.8081977367401123,
0.5323266983032227,
-0.36096665263175964,
0.9404364824295044,
-0.35370126366615295,
1.8061935901641846,
-0.6071057319641113,
0.44041159749031067,
0.6821646690368652,
1.325670599937439,
0.14520566165447235,
0.040477752685546875,
0.4010446071624756,
0.4404325783252716,
0.09133350104093552,
0.45544224977493286,
1.1035239696502686,
0.6063443422317505,
0.45950353145599365,
0.7319607734680176,
-2.1918485164642334,
1.2975742816925049,
-0.95556640625,
0.28270936012268066,
1.3055444955825806,
-0.9646199941635132,
0.4014149606227875,
-1.7165067195892334,
-0.04297623038291931,
0.5128568410873413,
-2.24541974067688,
0.24876472353935242,
-1.351191520690918,
-0.49503451585769653,
1.037163496017456,
0.38734161853790283,
-1.2653932571411133,
0.1487250179052353,
-0.4631911516189575,
1.0614714622497559,
0.4197295308113098,
1.1258004903793335,
-1.6920678615570068,
-0.1323225200176239,
-0.2373780459165573,
0.029962148517370224,
-1.298851728439331,
-1.4869139194488525,
0.5310028791427612,
0.7089126110076904,
0.6011490821838379,
-0.15714186429977417,
0.8906204700469971,
-0.943419337272644,
0.7197201251983643,
-1.023988962173462,
-1.8000441789627075,
-1.418061375617981,
-2.322404384613037,
-2.3330187797546387,
0.8238515853881836,
-0.4227151572704315,
-0.42620956897735596,
1.9582024812698364,
-1.0091676712036133,
-1.8359613418579102,
1.0954854488372803,
0.24402809143066406,
-0.029396921396255493,
2.350656747817993,
0.33596548438072205,
-0.6800954341888428,
0.46084535121917725,
-0.8379590511322021,
0.7017793655395508,
-0.38232097029685974,
1.3396689891815186,
0.5334988832473755,
-1.036910057067871,
1.5492660999298096,
-0.4237353503704071,
0.586773157119751,
-0.7092388868331909,
-0.4787119925022125,
-0.8372474908828735,
0.2218712568283081,
1.9308453798294067,
-0.3073057234287262,
1.5555919408798218,
-0.2526896595954895,
-1.5666768550872803,
-1.5598748922348022,
0.8041175603866577,
0.47306329011917114,
-0.795438289642334,
0.11734984815120697,
-0.2763621509075165,
0.13830967247486115,
-0.039038561284542084,
1.1448078155517578,
1.2063467502593994,
0.7045114040374756,
-0.36431920528411865,
-0.9314137697219849,
0.26674818992614746,
-0.045405447483062744,
-0.7136193513870239,
-1.8377203941345215,
-0.3838040828704834,
0.20922011137008667,
0.6278393268585205,
-1.267717957496643,
1.6142245531082153,
0.861128568649292,
1.925508975982666,
1.0113568305969238,
-0.4024260342121124,
1.4390743970870972,
0.06028471887111664,
1.9512933492660522,
-0.6012903451919556,
0.7039426565170288,
-0.3562152683734894,
-1.1231244802474976,
0.8032327890396118,
-0.3391980826854706,
-2.0439376831054688,
-0.7354804277420044,
-0.8973422050476074,
-0.1724560707807541,
-0.7575135231018066,
0.9881821870803833,
-0.33327239751815796,
-1.3524301052093506,
0.24292388558387756,
-0.8524675369262695,
0.10661565512418747,
-1.2951228618621826,
0.2370123714208603,
0.7540661096572876,
-0.618647575378418,
0.0384959802031517,
-0.29870861768722534,
-1.2810032367706299,
-0.4355263113975525,
0.2988317608833313,
1.8081111907958984,
-0.7941702604293823,
1.0575650930404663,
0.8765690326690674,
-0.7694761753082275,
-0.006041812244802713,
0.3921259045600891,
-0.30999305844306946,
0.8382196426391602,
-1.049566626548767,
-0.4409605860710144,
1.1748549938201904,
-0.14697971940040588,
-0.6425156593322754,
1.4178560972213745,
0.8677380084991455,
-1.0236988067626953,
-0.21155090630054474,
-0.19173920154571533,
-0.821699857711792,
0.010579979047179222,
-1.6946853399276733,
-0.08959676325321198,
0.28743377327919006,
-1.5368750095367432,
-0.500602662563324,
-0.250673770904541,
1.322034478187561,
-0.08498825877904892,
1.4065455198287964,
-0.25988444685935974,
-0.2846674621105194,
-0.4690071642398834,
-0.44094616174697876,
0.15524621307849884,
-0.2537226676940918,
-0.5577402114868164,
0.28052079677581787,
-0.7757062911987305,
0.345596581697464,
1.3911315202713013,
0.3202294707298279,
0.09456609934568405,
0.5851023197174072,
1.0653061866760254,
0.3953671157360077,
-0.03130010515451431,
-0.9170467853546143,
-1.6092668771743774,
2.073819637298584,
-1.4057496786117554,
1.932464599609375,
0.685321569442749,
-0.04745398089289665,
-1.7592830657958984,
-1.9544051885604858,
1.3309866189956665,
1.177978515625,
2.341338872909546,
0.6018790006637573,
0.46505007147789,
-0.8395146131515503,
-0.6846191883087158,
0.27078887820243835,
-1.0680441856384277,
-0.7697511911392212,
0.11969439685344696,
2.4396438598632812,
1.7229681015014648,
-0.47696158289909363,
-0.23516763746738434,
-1.1171061992645264,
1.3573426008224487,
-0.12233532965183258,
0.12167496979236603,
2.052114248275757,
-0.22558726370334625,
-1.0378663539886475,
1.2321453094482422,
-2.292178153991699,
0.15842808783054352,
1.9816606044769287,
0.24286141991615295,
0.10059747844934464,
-1.5002851486206055,
-0.8150854110717773,
-0.22032999992370605,
-0.3711657226085663,
-1.2210328578948975,
0.6252553462982178,
-0.21493276953697205,
-0.844569206237793,
-1.4470566511154175,
0.14620117843151093,
-1.0706883668899536,
-1.7874276638031006,
0.2745766341686249,
1.8313738107681274,
1.9912244081497192,
-0.7524490356445312,
1.4563771486282349,
-0.26243773102760315,
0.20250244438648224,
1.3578221797943115,
1.2390347719192505,
3.157200336456299,
1.9936150312423706,
-1.2334725856781006,
0.7837892770767212,
-0.11058786511421204,
-0.4303748607635498,
1.218576431274414,
-1.202406406402588,
1.2131513357162476,
-0.23193132877349854,
-1.2219123840332031,
-1.197415828704834,
0.9448699951171875,
0.4524535834789276,
0.014244301244616508,
-0.48107200860977173,
1.2819077968597412,
0.00539108831435442,
1.4061626195907593,
0.6192359924316406,
-0.3197556138038635,
0.70993971824646,
-0.36398935317993164,
-0.454618364572525,
1.6106287240982056,
0.27170029282569885,
-1.38787841796875,
-2.442012071609497,
-0.3209361732006073,
-0.8552813529968262,
-0.0746731087565422,
-0.5787419080734253,
-1.061079978942871,
1.6190407276153564,
0.4867281913757324,
-1.237601399421692,
-0.26250505447387695,
-0.28570249676704407,
-0.5991594791412354,
2.7276437282562256,
-1.5385781526565552,
-0.2072664052248001,
-1.0407172441482544,
-0.48750004172325134,
1.657926082611084,
-1.1624113321304321,
-0.26303616166114807,
-1.0259780883789062,
-0.6078904867172241,
-1.3189650774002075,
-0.5285434722900391,
-0.10367640107870102,
-0.8525129556655884,
0.7674902677536011,
0.05577133595943451,
-1.1842045783996582,
-0.22509512305259705,
-0.9416103363037109,
0.8844783306121826,
-0.053525909781455994,
0.32990965247154236,
1.8800698518753052,
0.4827369749546051,
-0.3406490683555603,
0.6584742069244385,
1.1338636875152588,
0.6704305410385132,
-0.73433518409729,
0.23105429112911224,
-0.7577177286148071,
0.21079377830028534,
-1.3208959102630615,
0.259868860244751,
-2.8465933799743652,
0.6002634763717651,
-0.1331598162651062,
-0.05952097102999687,
-0.04421835020184517,
-1.2995015382766724,
1.151230812072754,
2.5689923763275146,
-1.2255491018295288,
0.4401080012321472,
0.24027371406555176,
1.1942065954208374,
-1.5739331245422363,
0.3141290843486786,
-0.4081183671951294,
2.1364991664886475,
0.23528218269348145,
1.1946995258331299,
-0.34102368354797363,
-2.1420910358428955,
0.6326663494110107,
-1.3146778345108032,
-1.16936457157135,
0.8041181564331055,
-0.7285968065261841,
0.06034693866968155,
-1.3764711618423462,
-0.06664516031742096,
-0.7752529382705688,
-1.3491840362548828,
0.7318207025527954,
0.07974231243133545,
0.4804234206676483,
-0.5570908784866333,
0.4115820527076721,
-2.1227481365203857,
-1.3325867652893066,
-0.2218230962753296,
-0.893317699432373,
0.45416462421417236,
-0.2783651053905487,
0.7295371294021606,
-0.1878318339586258,
-0.041079841554164886,
0.3447132408618927,
1.3391867876052856,
3.4175753593444824,
0.16069160401821136,
0.28503888845443726,
-0.11454132199287415,
-0.9531844854354858,
1.404640793800354,
0.9719634056091309,
-0.19983737170696259,
-0.5529079437255859,
-0.9832329750061035,
1.27786386013031,
1.9607431888580322,
1.1234253644943237,
0.06790408492088318,
-0.8453415632247925,
-0.7385420799255371,
0.1079653948545456,
0.1773003488779068,
0.4804191291332245,
0.8778195381164551,
0.11589030921459198,
0.07440783083438873,
1.4402838945388794,
1.1551246643066406,
-0.28739306330680847,
0.3764418959617615,
-0.832436203956604,
-0.5043425559997559,
0.5636914968490601,
0.27081215381622314,
-0.010927046649158001,
0.35162580013275146,
-1.104457139968872,
-0.2652874290943146,
-0.36054325103759766,
-0.9692386388778687,
-0.799210786819458,
-0.48212772607803345,
-0.3985339403152466,
1.6466083526611328,
0.05435582250356674,
-0.48333778977394104,
-0.07562053948640823,
-0.7296549081802368,
-0.06815814971923828,
-1.0793533325195312,
0.3289499878883362,
-0.180347740650177,
-0.0985163077712059,
-0.04814348369836807,
1.7560288906097412,
-1.002538800239563,
-2.096818447113037,
0.29560330510139465,
0.31779682636260986,
-0.3964926600456238,
0.16620929539203644,
1.607598066329956,
0.5794031620025635,
1.352704644203186,
1.3066571950912476,
1.0059140920639038,
-0.7088475227355957,
-1.3446530103683472,
0.622361421585083,
1.008139729499817,
-1.4988393783569336,
0.7067878246307373,
0.014945149421691895,
-0.4844910502433777,
0.6104878187179565,
1.2514877319335938,
0.38777828216552734,
-1.9427540302276611,
0.6948208808898926,
-0.8379868268966675,
0.7208573818206787,
0.7640953063964844,
0.7752516269683838,
0.1896466165781021,
0.7400064468383789,
-1.3405333757400513,
-1.0904545783996582,
-0.7450598478317261,
-0.5439819097518921,
1.908259630203247,
-0.2005700021982193,
0.4706866145133972,
-0.16948477923870087,
-1.337282657623291,
-0.10084258764982224,
0.7098617553710938,
0.2896580100059509,
-0.513579249382019,
0.8209441900253296,
-0.5764079093933105,
-1.1126410961151123,
-1.335229754447937,
-0.4758282005786896,
-1.0071473121643066,
-0.9987614154815674,
1.0263288021087646,
0.8476113080978394,
0.3900320529937744,
1.8192942142486572,
0.6261329650878906,
0.22621792554855347,
-2.681550979614258,
0.9304150342941284,
0.27098721265792847,
-0.02914716675877571,
0.890968918800354,
0.2508436143398285,
1.025048017501831,
-0.11595520377159119,
0.6263571977615356,
-2.350585699081421,
2.2905023097991943,
-0.21714362502098083,
0.4847943186759949,
0.057980433106422424,
-0.17337968945503235,
1.0595436096191406,
0.5002572536468506,
0.6370452642440796,
-1.0106955766677856,
0.7485650777816772,
-0.6300520896911621,
1.1691428422927856,
0.8717094659805298,
-0.9034193754196167,
-0.02082180604338646,
1.362507700920105,
0.5530761480331421,
-0.39452677965164185,
-0.8720743656158447,
-0.9448156356811523,
0.982344388961792,
1.8189042806625366,
-0.07033979892730713,
-0.01872098632156849,
0.8956993818283081,
0.5807920694351196,
-1.3995091915130615,
0.047873739153146744,
-0.707732081413269,
-0.6001186370849609,
1.664017677307129,
2.074022054672241,
-0.11517439037561417,
-0.23794443905353546,
-0.8580974340438843,
-1.1862070560455322,
0.8108923435211182,
0.10748282819986343,
0.07821998745203018,
0.7630553245544434,
-0.6104402542114258,
1.1413826942443848,
0.7822126150131226,
0.9504085779190063,
0.16961102187633514,
0.31262362003326416,
0.19410577416419983,
-0.3110950291156769,
-1.2225788831710815,
-0.28940996527671814,
-0.9814828634262085,
-2.4839861392974854,
0.5453251600265503,
-0.30403900146484375,
-1.4045401811599731,
0.07040915638208389,
-1.0904262065887451,
0.9082670211791992,
-0.5321637392044067,
-1.0114659070968628,
-1.5372258424758911,
0.2357081174850464,
-0.16603830456733704,
0.9038190841674805,
-1.5894722938537598,
0.014977743849158287,
1.333003282546997,
0.9039090871810913,
-0.6541602611541748,
0.9983453750610352,
0.280203253030777,
1.0263805389404297,
0.8709139823913574,
-0.2761978805065155,
0.4882946014404297,
0.19452603161334991,
-1.3963340520858765,
0.5257521867752075,
1.2061084508895874,
0.18815045058727264,
1.5614013671875,
-0.6496948003768921,
0.07681301236152649,
0.42074719071388245,
-0.46399256587028503,
-0.4670698046684265,
-0.6022626161575317,
0.712175726890564,
0.208637073636055,
-0.9558440446853638,
0.03849835693836212,
-0.056846734136343,
-0.1137029230594635,
0.1782877892255783,
-1.469003438949585,
-0.19129276275634766,
-0.3024333417415619,
-0.7189735174179077,
-1.2254356145858765,
-0.1041087955236435,
1.2773290872573853,
-0.8103693723678589,
-0.12406566739082336,
0.5754120349884033,
0.280545175075531,
0.5317641496658325,
0.5839681625366211,
-0.6107444763183594,
-0.41830962896347046,
-0.20678678154945374,
-0.27556338906288147,
0.2942332625389099,
1.2917202711105347,
-0.12872299551963806,
-1.0166699886322021,
0.7977679967880249,
-0.3598595857620239,
0.09494630247354507,
1.9559175968170166,
0.012550126761198044,
-0.8400578498840332,
0.33517149090766907,
-0.6769883632659912,
2.0162298679351807,
1.6460292339324951,
1.3306580781936646,
-0.07322441041469574,
-0.9661058187484741,
0.5807398557662964,
-0.19664937257766724,
-0.3793152868747711,
0.9473003149032593,
0.474984735250473,
-0.20038552582263947,
-1.3277939558029175,
0.6329487562179565,
1.346935749053955,
-0.9529944658279419,
-0.9124099016189575,
0.17099231481552124,
-0.8548585176467896,
1.039341688156128,
0.6737930774688721,
0.4387032985687256,
0.20441743731498718,
1.5086370706558228,
0.7065670490264893,
-0.48973092436790466,
0.5061279535293579,
0.43470829725265503,
-0.06446605175733566,
-1.9974315166473389,
-1.0880801677703857,
0.4267454147338867,
-0.4284539222717285,
-1.6182295083999634,
1.3652827739715576,
-1.2449415922164917,
-0.9089576005935669,
0.6019231081008911,
0.17839711904525757,
1.4617949724197388,
0.23592257499694824,
1.637885570526123,
1.9865055084228516,
0.8822087049484253,
0.33705592155456543,
1.3563936948776245,
-0.08063013106584549,
-0.47357356548309326,
1.7157983779907227,
-0.4147495925426483,
0.6059660911560059,
1.0191699266433716,
-0.376635879278183,
-1.0750564336776733,
-0.7346508502960205,
-1.1680938005447388,
-0.6479101181030273,
1.1836678981781006,
0.170682892203331,
-1.165055513381958,
0.2568373382091522,
1.5570645332336426,
0.06816430389881134,
-0.25841739773750305,
0.6846811771392822,
0.3537147641181946,
-0.7569546699523926,
0.02084692008793354,
-1.0100592374801636,
0.46349838376045227,
-0.13815344870090485,
-0.3000965416431427,
0.33540913462638855,
0.4112340807914734,
1.2654775381088257,
0.06141359359025955,
0.1658908724784851,
1.1990325450897217,
-1.309235692024231,
1.568088412284851,
-0.5791854858398438,
0.22422006726264954,
-2.3967127799987793,
1.3745898008346558,
-0.8541214466094971,
1.8312673568725586,
-2.602097988128662,
0.358472615480423,
-0.5733493566513062,
-0.41173139214515686,
0.255729615688324,
-0.3764927089214325,
0.1718662828207016,
-0.1527848243713379,
-1.183137059211731,
-0.03240305185317993,
-0.8895800113677979,
0.6038956642150879,
1.1614353656768799,
1.4649475812911987,
-1.1261858940124512,
-0.27577513456344604,
-1.8092223405838013,
-0.20001912117004395,
-0.6923820972442627,
0.40974074602127075,
-1.925464153289795,
-0.10656750202178955,
-1.8678334951400757,
-2.407073974609375,
-1.3935049772262573,
-0.8938744068145752,
1.0627813339233398,
0.13101835548877716,
-0.8914247751235962,
1.0829969644546509,
-0.4006786644458771,
-1.8703279495239258,
1.1006721258163452,
-2.1866700649261475
] |
https://github.com/huggingface/datasets/issues/5342 | Emotion dataset cannot be downloaded | Thanks @cbarond for reporting and @alvarobartt for pointing to the issue we opened in the author's repo.
Indeed, this issue was first raised in the "emotion" dataset Community tab: https://huggingface.co/datasets/emotion/discussions/3
I'm closing this issue and leave the issue above for the subsequent updates.
Duplicate of: https://huggingface.co/datasets/emotion/discussions/3 | ### Describe the bug
The emotion dataset gives a FileNotFoundError. The full error is: `FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/1pzkadrvffbqw6o/train.txt?dl=1`.
It was working yesterday (December 7, 2022), but stopped working today (December 8, 2022).
### Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("emotion")
```
### Expected behavior
The dataset should load properly.
### Environment info
- `datasets` version: 2.7.1
- Platform: Windows-10-10.0.19045-SP0
- Python version: 3.9.13
- PyArrow version: 10.0.1
- Pandas version: 1.5.1 | 381 | 46 | Emotion dataset cannot be downloaded
### Describe the bug
The emotion dataset gives a FileNotFoundError. The full error is: `FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/1pzkadrvffbqw6o/train.txt?dl=1`.
It was working yesterday (December 7, 2022), but stopped working today (December 8, 2022).
### Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("emotion")
```
### Expected behavior
The dataset should load properly.
### Environment info
- `datasets` version: 2.7.1
- Platform: Windows-10-10.0.19045-SP0
- Python version: 3.9.13
- PyArrow version: 10.0.1
- Pandas version: 1.5.1
Thanks @cbarond for reporting and @alvarobartt for pointing to the issue we opened in the author's repo.
Indeed, this issue was first raised in the "emotion" dataset Community tab: https://huggingface.co/datasets/emotion/discussions/3
I'm closing this issue and leave the issue above for the subsequent updates.
Duplicate of: https://huggingface.co/datasets/emotion/discussions/3 | [
-1.1503911018371582,
-0.9479205012321472,
-0.8195348978042603,
1.4430569410324097,
-0.15113148093223572,
-1.2766895294189453,
0.11261900514364243,
-0.955824613571167,
1.629323124885559,
-0.6967946290969849,
0.22675691545009613,
-1.6891469955444336,
-0.0682714432477951,
-0.551869809627533,
-0.7080272436141968,
-0.9111712574958801,
-0.4492685794830322,
-0.7650602459907532,
0.9668851494789124,
2.506218671798706,
1.2232309579849243,
-1.2973158359527588,
2.7024765014648438,
0.6744320392608643,
-0.1268952488899231,
-1.0508347749710083,
0.6163835525512695,
0.014171427115797997,
-1.335540533065796,
-0.40646371245384216,
-0.8563634753227234,
-0.0815911665558815,
-0.5340060591697693,
-0.5810362100601196,
0.07837069034576416,
0.42938312888145447,
-0.2872782051563263,
-0.38716092705726624,
-0.524878203868866,
-0.8059788346290588,
0.4956754744052887,
-0.34787002205848694,
0.8992417454719543,
-0.4097343385219574,
1.8029680252075195,
-0.5950812101364136,
0.4776186943054199,
0.7398244142532349,
1.3317679166793823,
0.13273094594478607,
0.018627023324370384,
0.3219747245311737,
0.4271208643913269,
0.1212175115942955,
0.4369654059410095,
1.1236567497253418,
0.5823934674263,
0.40698039531707764,
0.6789713501930237,
-2.2483441829681396,
1.2694796323776245,
-0.9642450213432312,
0.28867462277412415,
1.3745023012161255,
-0.9614530801773071,
0.36786630749702454,
-1.7757943868637085,
-0.017691947519779205,
0.5515233874320984,
-2.2355804443359375,
0.25576600432395935,
-1.333389163017273,
-0.482290655374527,
1.045346736907959,
0.36954063177108765,
-1.2614465951919556,
0.1322518140077591,
-0.470293253660202,
1.061457633972168,
0.49655261635780334,
1.1766226291656494,
-1.6961462497711182,
-0.12416145205497742,
-0.23522116243839264,
0.009706689044833183,
-1.305542230606079,
-1.4967451095581055,
0.4841153621673584,
0.7186878323554993,
0.6000465154647827,
-0.09903538972139359,
0.884104311466217,
-0.9450799226760864,
0.7256743907928467,
-0.9863796234130859,
-1.7861815690994263,
-1.4545127153396606,
-2.30594801902771,
-2.304309368133545,
0.8274526596069336,
-0.45644065737724304,
-0.43870148062705994,
1.9061328172683716,
-1.0245530605316162,
-1.8604718446731567,
1.100867748260498,
0.27593833208084106,
0.007992519065737724,
2.343059778213501,
0.3087916672229767,
-0.6891558170318604,
0.421855628490448,
-0.797815203666687,
0.6171054244041443,
-0.40480875968933105,
1.3015867471694946,
0.5220630168914795,
-1.078615427017212,
1.560051679611206,
-0.45262396335601807,
0.573678195476532,
-0.7675527334213257,
-0.4517860412597656,
-0.8198176622390747,
0.21855156123638153,
1.8758033514022827,
-0.3245932459831238,
1.5600281953811646,
-0.24715040624141693,
-1.5691039562225342,
-1.5831174850463867,
0.8040496706962585,
0.45712757110595703,
-0.7446413040161133,
0.08266530185937881,
-0.263154536485672,
0.09584127366542816,
-0.08623506873846054,
1.0854387283325195,
1.178702473640442,
0.7133883833885193,
-0.40030738711357117,
-0.9027593731880188,
0.29051050543785095,
-0.04100263863801956,
-0.7070875763893127,
-1.7909295558929443,
-0.33345264196395874,
0.25237464904785156,
0.6020035743713379,
-1.2968171834945679,
1.6372538805007935,
0.8609341382980347,
1.9632878303527832,
1.0050421953201294,
-0.3848998248577118,
1.4753031730651855,
0.10525506734848022,
1.9398127794265747,
-0.5551363825798035,
0.7056869864463806,
-0.2607726454734802,
-1.0830368995666504,
0.8107426762580872,
-0.3552202582359314,
-2.0274875164031982,
-0.765309751033783,
-0.9057672023773193,
-0.14705106616020203,
-0.7414430975914001,
1.0000059604644775,
-0.2850585877895355,
-1.357412338256836,
0.2282162308692932,
-0.8110637664794922,
0.1250922530889511,
-1.30078125,
0.2258530855178833,
0.7680630087852478,
-0.6040597558021545,
0.017069701105356216,
-0.27127358317375183,
-1.313783049583435,
-0.4280262291431427,
0.29153892397880554,
1.8024415969848633,
-0.7762160301208496,
1.0409108400344849,
0.9198129177093506,
-0.760334312915802,
0.04561465233564377,
0.3725500702857971,
-0.26840782165527344,
0.896393895149231,
-1.0288763046264648,
-0.3978416621685028,
1.204235315322876,
-0.14387239515781403,
-0.6725187301635742,
1.4692027568817139,
0.8240100741386414,
-0.9965512156486511,
-0.2251865565776825,
-0.19303597509860992,
-0.8560863733291626,
-0.041436925530433655,
-1.6415553092956543,
-0.03876137733459473,
0.2205672413110733,
-1.5088680982589722,
-0.4767768979072571,
-0.2490960657596588,
1.3664605617523193,
-0.14303058385849,
1.441818118095398,
-0.2999586760997772,
-0.21925990283489227,
-0.4595349133014679,
-0.4178299307823181,
0.13731014728546143,
-0.2905626595020294,
-0.5692816972732544,
0.3172681927680969,
-0.8379889726638794,
0.3511943221092224,
1.407089352607727,
0.39217185974121094,
0.08369839936494827,
0.5915484428405762,
1.0568699836730957,
0.35972535610198975,
-0.07406675070524216,
-0.8947389125823975,
-1.6334065198898315,
2.1103291511535645,
-1.4074890613555908,
1.9608350992202759,
0.6932581067085266,
-0.07844190299510956,
-1.7692134380340576,
-1.9804693460464478,
1.3317264318466187,
1.1394859552383423,
2.369281768798828,
0.5768177509307861,
0.4795472025871277,
-0.8863506317138672,
-0.7208600640296936,
0.23800112307071686,
-1.059874415397644,
-0.7516472935676575,
0.10597018897533417,
2.411176919937134,
1.7420389652252197,
-0.4694322645664215,
-0.20493745803833008,
-1.1122723817825317,
1.2914190292358398,
-0.11126993596553802,
0.13265998661518097,
2.043231964111328,
-0.20923523604869843,
-0.9792054295539856,
1.2729891538619995,
-2.298259735107422,
0.16346408426761627,
1.9795761108398438,
0.24157878756523132,
0.09732045233249664,
-1.5028765201568604,
-0.7846699953079224,
-0.2557950019836426,
-0.3678804337978363,
-1.2384494543075562,
0.6288253664970398,
-0.24886375665664673,
-0.874957799911499,
-1.4426625967025757,
0.12610483169555664,
-1.0243580341339111,
-1.7558798789978027,
0.30912619829177856,
1.8208988904953003,
1.9283912181854248,
-0.7858364582061768,
1.4792486429214478,
-0.22511163353919983,
0.17249739170074463,
1.334736943244934,
1.2100412845611572,
3.129025459289551,
1.9284075498580933,
-1.2921245098114014,
0.7986807227134705,
-0.07805486023426056,
-0.39017829298973083,
1.1720504760742188,
-1.191760540008545,
1.2264236211776733,
-0.2403896003961563,
-1.22807776927948,
-1.230333924293518,
0.9992344379425049,
0.48271575570106506,
0.06293854117393494,
-0.5206019878387451,
1.2903683185577393,
0.00009489990770816803,
1.3825442790985107,
0.5919678211212158,
-0.3850588798522949,
0.6958694458007812,
-0.3424938917160034,
-0.4853762686252594,
1.57960045337677,
0.2520911693572998,
-1.424233317375183,
-2.396550416946411,
-0.32620757818222046,
-0.8888213038444519,
-0.10820145159959793,
-0.5754722952842712,
-0.990064799785614,
1.6846259832382202,
0.5317704677581787,
-1.2755972146987915,
-0.27384641766548157,
-0.30708685517311096,
-0.6147260665893555,
2.728511333465576,
-1.49498450756073,
-0.18342724442481995,
-1.0751941204071045,
-0.4673866331577301,
1.6426550149917603,
-1.1994907855987549,
-0.20149719715118408,
-1.0325062274932861,
-0.6913652420043945,
-1.3022485971450806,
-0.5628851652145386,
-0.04494202136993408,
-0.8632218837738037,
0.8202264308929443,
0.06175794452428818,
-1.1512268781661987,
-0.23726141452789307,
-0.9349173903465271,
0.9100200533866882,
-0.07120992243289948,
0.33083832263946533,
1.8988670110702515,
0.47881945967674255,
-0.33300235867500305,
0.6680198311805725,
1.092692255973816,
0.6313837766647339,
-0.6853340268135071,
0.2242572158575058,
-0.7263900637626648,
0.21964848041534424,
-1.3599196672439575,
0.24409836530685425,
-2.8400678634643555,
0.6168407797813416,
-0.14687444269657135,
-0.0016005290672183037,
-0.051836512982845306,
-1.2820295095443726,
1.135520339012146,
2.5736780166625977,
-1.1933695077896118,
0.4208487570285797,
0.3219127357006073,
1.1758204698562622,
-1.5957859754562378,
0.36495333909988403,
-0.41620296239852905,
2.166332721710205,
0.18010590970516205,
1.1552776098251343,
-0.3612837791442871,
-2.120955467224121,
0.60148686170578,
-1.3088319301605225,
-1.1238398551940918,
0.8289539813995361,
-0.734200119972229,
0.07363341748714447,
-1.3997129201889038,
-0.08823014050722122,
-0.7749176621437073,
-1.3219962120056152,
0.7812418341636658,
0.0967436283826828,
0.4586847126483917,
-0.5651193857192993,
0.4346905052661896,
-2.1003713607788086,
-1.275071144104004,
-0.2616419196128845,
-0.866939902305603,
0.42465975880622864,
-0.2497238963842392,
0.7347174286842346,
-0.15872371196746826,
-0.0531255304813385,
0.33406442403793335,
1.2769322395324707,
3.4077248573303223,
0.198648601770401,
0.30388984084129333,
-0.04558046907186508,
-0.9815740585327148,
1.4492181539535522,
0.9655541181564331,
-0.19404269754886627,
-0.5512851476669312,
-1.0167820453643799,
1.3074365854263306,
1.9317618608474731,
1.1214045286178589,
0.09972677379846573,
-0.8736166954040527,
-0.7731829881668091,
0.06447312235832214,
0.1610856056213379,
0.5026484131813049,
0.8431333303451538,
0.06396890431642532,
0.06098800152540207,
1.5068717002868652,
1.2276095151901245,
-0.25477972626686096,
0.4022642970085144,
-0.8882691264152527,
-0.5086381435394287,
0.5343762636184692,
0.3147647976875305,
0.024329619482159615,
0.3784051537513733,
-1.1156771183013916,
-0.2760492265224457,
-0.3153047561645508,
-0.979099452495575,
-0.7472032904624939,
-0.518892228603363,
-0.3980652391910553,
1.656994342803955,
0.10227388888597488,
-0.4815116226673126,
-0.05074414610862732,
-0.7543364763259888,
-0.09109598398208618,
-1.1119669675827026,
0.3847539722919464,
-0.17514298856258392,
-0.025457166135311127,
-0.09508590400218964,
1.7692499160766602,
-0.961541473865509,
-2.1427791118621826,
0.2779969274997711,
0.2981802225112915,
-0.41127535700798035,
0.13921166956424713,
1.6074445247650146,
0.5575474500656128,
1.3478143215179443,
1.2753986120224,
0.9788243174552917,
-0.6988353133201599,
-1.3369048833847046,
0.6280941367149353,
1.0388530492782593,
-1.4795854091644287,
0.7812060117721558,
0.004370613023638725,
-0.5194495320320129,
0.6539887189865112,
1.2469477653503418,
0.3442600667476654,
-1.96074378490448,
0.7289027571678162,
-0.7925897240638733,
0.7000035643577576,
0.6935364007949829,
0.8058044910430908,
0.18000145256519318,
0.7497491240501404,
-1.3702391386032104,
-1.1267740726470947,
-0.742942214012146,
-0.5587713122367859,
1.8596128225326538,
-0.1876162439584732,
0.4893721044063568,
-0.16645367443561554,
-1.3406037092208862,
-0.09983672201633453,
0.6794517636299133,
0.3015919327735901,
-0.47519850730895996,
0.8378344774246216,
-0.566303014755249,
-1.1047719717025757,
-1.301924228668213,
-0.4511648714542389,
-0.9881148338317871,
-0.962307333946228,
1.038323998451233,
0.8553758859634399,
0.39080268144607544,
1.8063392639160156,
0.581025242805481,
0.23070459067821503,
-2.7186803817749023,
0.9465665221214294,
0.27370449900627136,
-0.004557039588689804,
0.8907446265220642,
0.26349690556526184,
1.0450682640075684,
-0.04673661291599274,
0.553068220615387,
-2.366140127182007,
2.253347158432007,
-0.22794686257839203,
0.5440275073051453,
-0.008550490252673626,
-0.20764891803264618,
1.0791587829589844,
0.5287417769432068,
0.6277241706848145,
-1.0312539339065552,
0.7487995028495789,
-0.6107525825500488,
1.148091197013855,
0.8968467712402344,
-0.9136897325515747,
-0.0709250271320343,
1.3048927783966064,
0.5641621351242065,
-0.37987810373306274,
-0.8807421326637268,
-0.9128661155700684,
0.9697751402854919,
1.7771546840667725,
-0.02080310881137848,
0.009540833532810211,
0.9355705976486206,
0.621894121170044,
-1.3411005735397339,
0.048778511583805084,
-0.757274329662323,
-0.59026038646698,
1.7078933715820312,
2.065765380859375,
-0.037452857941389084,
-0.2234439253807068,
-0.8174506425857544,
-1.2117174863815308,
0.7859818339347839,
0.020865511149168015,
0.13307157158851624,
0.7784214615821838,
-0.6632164716720581,
1.1228078603744507,
0.7595406174659729,
0.9903914928436279,
0.10331401228904724,
0.306071937084198,
0.20705939829349518,
-0.30312761664390564,
-1.238300085067749,
-0.2461467981338501,
-1.0317457914352417,
-2.437316417694092,
0.5310242772102356,
-0.2404177337884903,
-1.4205749034881592,
0.05941805988550186,
-1.079660415649414,
0.9456959962844849,
-0.5768173336982727,
-1.072298288345337,
-1.471174716949463,
0.2201891839504242,
-0.19027242064476013,
0.8405194878578186,
-1.5679281949996948,
-0.024849561974406242,
1.3329557180404663,
0.8950852155685425,
-0.5794404745101929,
1.0276697874069214,
0.26738405227661133,
1.054546594619751,
0.8283589482307434,
-0.2570393681526184,
0.4904034733772278,
0.18118920922279358,
-1.4036694765090942,
0.48931124806404114,
1.1497660875320435,
0.23806962370872498,
1.5333240032196045,
-0.6392689347267151,
0.1068701520562172,
0.45255619287490845,
-0.5023290514945984,
-0.4641830623149872,
-0.588939905166626,
0.7211662530899048,
0.1685984581708908,
-0.9882721304893494,
0.01197034865617752,
-0.08700897544622421,
-0.09804124385118484,
0.1550552099943161,
-1.47831392288208,
-0.1708235740661621,
-0.2828085720539093,
-0.6657139658927917,
-1.2360544204711914,
-0.05336537957191467,
1.2874538898468018,
-0.7991671562194824,
-0.1631864309310913,
0.5802302360534668,
0.286352276802063,
0.5623793601989746,
0.5925999879837036,
-0.5982846617698669,
-0.33618611097335815,
-0.24711771309375763,
-0.28820860385894775,
0.2920430302619934,
1.3048124313354492,
-0.16080482304096222,
-1.006547451019287,
0.8210394382476807,
-0.40491732954978943,
0.08032294362783432,
2.000723361968994,
0.07092983275651932,
-0.7888259291648865,
0.3244282305240631,
-0.7015256285667419,
1.9782600402832031,
1.703871250152588,
1.357828140258789,
-0.09618507325649261,
-0.9645625948905945,
0.5629692673683167,
-0.26363977789878845,
-0.4032566249370575,
0.939017117023468,
0.4916718304157257,
-0.19030475616455078,
-1.3202604055404663,
0.5780954360961914,
1.313097357749939,
-0.9513888955116272,
-0.8488540053367615,
0.1528071165084839,
-0.8790163397789001,
1.0208443403244019,
0.7463072538375854,
0.4405612051486969,
0.22356188297271729,
1.4675612449645996,
0.7149435877799988,
-0.45623865723609924,
0.4515722095966339,
0.49091044068336487,
-0.08755998313426971,
-1.9729669094085693,
-1.064118504524231,
0.41243770718574524,
-0.4356629252433777,
-1.5781404972076416,
1.3688523769378662,
-1.2570481300354004,
-0.932793915271759,
0.5449066162109375,
0.17640411853790283,
1.437554121017456,
0.2687455415725708,
1.6428472995758057,
2.017274856567383,
0.896750807762146,
0.3111380934715271,
1.3559354543685913,
-0.07796351611614227,
-0.49440810084342957,
1.7415908575057983,
-0.38722050189971924,
0.5681460499763489,
1.0549334287643433,
-0.4121250510215759,
-1.081243872642517,
-0.7654843926429749,
-1.1595183610916138,
-0.6376152038574219,
1.24396550655365,
0.179202139377594,
-1.1152299642562866,
0.2093178927898407,
1.5364307165145874,
0.0859081819653511,
-0.2864179015159607,
0.6833124160766602,
0.3854672610759735,
-0.7621682286262512,
0.023762626573443413,
-0.9306603074073792,
0.4803224503993988,
-0.11598584055900574,
-0.33307313919067383,
0.30678805708885193,
0.40994399785995483,
1.2819479703903198,
0.02590102143585682,
0.17582041025161743,
1.2629138231277466,
-1.272248387336731,
1.5540999174118042,
-0.6404640078544617,
0.1978423148393631,
-2.39619517326355,
1.3798571825027466,
-0.8546581268310547,
1.764299750328064,
-2.609407424926758,
0.37885332107543945,
-0.5571686625480652,
-0.40783828496932983,
0.27602872252464294,
-0.4883226156234741,
0.10491570085287094,
-0.15268556773662567,
-1.170428991317749,
-0.054365649819374084,
-0.8445804715156555,
0.6056081056594849,
1.1521550416946411,
1.4545798301696777,
-1.1198458671569824,
-0.3179021179676056,
-1.8169729709625244,
-0.22120441496372223,
-0.7806277275085449,
0.4593762457370758,
-1.9423716068267822,
-0.06215132772922516,
-1.9126510620117188,
-2.413530111312866,
-1.400668740272522,
-0.8541103005409241,
1.0493078231811523,
0.16680683195590973,
-0.9009175300598145,
1.0721889734268188,
-0.4092436134815216,
-1.8651188611984253,
1.0592097043991089,
-2.2330446243286133
] |
https://github.com/huggingface/datasets/issues/5342 | Emotion dataset cannot be downloaded | > try using "SetFit/emotion" instead
I' replaced "emotion" with "SetFit/Emotion", but the code is getting stuck at
`emotions = load_dataset("SetFit/emotion")`
I pause execution using the debugger, and it takes me to filelock.py:226
`with self._thread_lock:`
Do you know a way to get past this issue? | ### Describe the bug
The emotion dataset gives a FileNotFoundError. The full error is: `FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/1pzkadrvffbqw6o/train.txt?dl=1`.
It was working yesterday (December 7, 2022), but stopped working today (December 8, 2022).
### Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("emotion")
```
### Expected behavior
The dataset should load properly.
### Environment info
- `datasets` version: 2.7.1
- Platform: Windows-10-10.0.19045-SP0
- Python version: 3.9.13
- PyArrow version: 10.0.1
- Pandas version: 1.5.1 | 381 | 44 | Emotion dataset cannot be downloaded
### Describe the bug
The emotion dataset gives a FileNotFoundError. The full error is: `FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/1pzkadrvffbqw6o/train.txt?dl=1`.
It was working yesterday (December 7, 2022), but stopped working today (December 8, 2022).
### Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("emotion")
```
### Expected behavior
The dataset should load properly.
### Environment info
- `datasets` version: 2.7.1
- Platform: Windows-10-10.0.19045-SP0
- Python version: 3.9.13
- PyArrow version: 10.0.1
- Pandas version: 1.5.1
> try using "SetFit/emotion" instead
I' replaced "emotion" with "SetFit/Emotion", but the code is getting stuck at
`emotions = load_dataset("SetFit/emotion")`
I pause execution using the debugger, and it takes me to filelock.py:226
`with self._thread_lock:`
Do you know a way to get past this issue? | [
-1.1264564990997314,
-0.8865939974784851,
-0.8132458329200745,
1.4566452503204346,
-0.19419091939926147,
-1.2872220277786255,
0.17019471526145935,
-1.0140031576156616,
1.598790168762207,
-0.740466296672821,
0.2705131471157074,
-1.6355057954788208,
0.005785159766674042,
-0.5599542260169983,
-0.7002207636833191,
-0.9395380020141602,
-0.4459284842014313,
-0.7162836790084839,
1.0143916606903076,
2.4991207122802734,
1.1681830883026123,
-1.2871733903884888,
2.7081236839294434,
0.6434155702590942,
-0.13262422382831573,
-0.9854623675346375,
0.5817767977714539,
0.059390176087617874,
-1.3040642738342285,
-0.385320246219635,
-0.8773230910301208,
-0.1616690307855606,
-0.5674467086791992,
-0.6106156706809998,
0.050452567636966705,
0.38251766562461853,
-0.369043231010437,
-0.4543275237083435,
-0.5340083241462708,
-0.8258329629898071,
0.5312275290489197,
-0.3596746623516083,
0.9140188694000244,
-0.4095125198364258,
1.8113175630569458,
-0.5985735654830933,
0.5341851711273193,
0.7502403259277344,
1.3317033052444458,
0.19468800723552704,
0.035062920302152634,
0.38934025168418884,
0.5014703273773193,
0.06857365369796753,
0.46886304020881653,
1.1273635625839233,
0.5846682190895081,
0.48620256781578064,
0.7021985054016113,
-2.2131102085113525,
1.2696069478988647,
-1.0311241149902344,
0.3011675477027893,
1.268186092376709,
-0.9195126891136169,
0.3805057108402252,
-1.7561010122299194,
-0.04642720893025398,
0.5418097376823425,
-2.2629215717315674,
0.326931357383728,
-1.34298574924469,
-0.48925381898880005,
1.0522676706314087,
0.36481162905693054,
-1.2242153882980347,
0.0801544189453125,
-0.449553906917572,
1.02420973777771,
0.42220956087112427,
1.1438210010528564,
-1.668546438217163,
-0.1476241499185562,
-0.2927263677120209,
0.02777436375617981,
-1.2527745962142944,
-1.490119218826294,
0.5321949124336243,
0.6704529523849487,
0.5815340876579285,
-0.09614165127277374,
0.9161322712898254,
-1.0039879083633423,
0.7479647994041443,
-1.0280119180679321,
-1.7842535972595215,
-1.46711003780365,
-2.2720277309417725,
-2.3112995624542236,
0.8160150051116943,
-0.4789324998855591,
-0.4426857531070709,
1.9752146005630493,
-1.0270133018493652,
-1.8056615591049194,
1.1290627717971802,
0.24866162240505219,
0.013891968876123428,
2.3355772495269775,
0.2900334894657135,
-0.6656287908554077,
0.489550918340683,
-0.8472190499305725,
0.6267838478088379,
-0.43761199712753296,
1.3212321996688843,
0.4470115005970001,
-1.046462059020996,
1.5471638441085815,
-0.43782103061676025,
0.654850959777832,
-0.7347575426101685,
-0.5059481263160706,
-0.801703691482544,
0.1995033621788025,
1.895141839981079,
-0.30558452010154724,
1.5536277294158936,
-0.2279573380947113,
-1.5483325719833374,
-1.5572466850280762,
0.8598909974098206,
0.46469464898109436,
-0.7616091370582581,
0.05782386288046837,
-0.27815788984298706,
0.14937742054462433,
-0.08397406339645386,
1.0999865531921387,
1.217175006866455,
0.7411283850669861,
-0.37690743803977966,
-0.9067912101745605,
0.23999784886837006,
-0.029270566999912262,
-0.7358677983283997,
-1.7682260274887085,
-0.37635675072669983,
0.15830981731414795,
0.6352786421775818,
-1.281820297241211,
1.657843828201294,
0.8771300911903381,
1.9556971788406372,
1.0180985927581787,
-0.37686118483543396,
1.459934115409851,
0.09958483278751373,
1.9056147336959839,
-0.5725520849227905,
0.7220728397369385,
-0.3115318715572357,
-1.1016038656234741,
0.7792835831642151,
-0.34528884291648865,
-2.0559372901916504,
-0.7796537280082703,
-0.8950472474098206,
-0.13122907280921936,
-0.7487246990203857,
0.985475480556488,
-0.32042396068573,
-1.3757623434066772,
0.22209742665290833,
-0.840343177318573,
0.055302057415246964,
-1.2903002500534058,
0.3146945536136627,
0.7069447636604309,
-0.6815018057823181,
0.06654320657253265,
-0.28163942694664,
-1.2489535808563232,
-0.42060184478759766,
0.2447146326303482,
1.863978385925293,
-0.8117827773094177,
1.0397650003433228,
0.8966032862663269,
-0.7613884210586548,
0.0031294701620936394,
0.3788381814956665,
-0.29139670729637146,
0.850432276725769,
-1.0461015701293945,
-0.445858359336853,
1.2348498106002808,
-0.12655507028102875,
-0.6177019476890564,
1.4246916770935059,
0.7853407263755798,
-1.0114188194274902,
-0.19747211039066315,
-0.1539689600467682,
-0.8368170857429504,
0.005615435540676117,
-1.5941131114959717,
0.0033779675140976906,
0.3227902054786682,
-1.5262653827667236,
-0.5093352198600769,
-0.27512797713279724,
1.287282109260559,
-0.1305510252714157,
1.4104236364364624,
-0.32474765181541443,
-0.24311745166778564,
-0.4312591254711151,
-0.3933342397212982,
0.11827951669692993,
-0.2970643639564514,
-0.5771120190620422,
0.2583625912666321,
-0.759610652923584,
0.3134074807167053,
1.393843412399292,
0.32555291056632996,
0.07166305184364319,
0.5932894349098206,
1.0351176261901855,
0.3960812985897064,
-0.025608481839299202,
-0.9042667150497437,
-1.584795594215393,
2.0271103382110596,
-1.4273860454559326,
1.9880714416503906,
0.6854990720748901,
-0.06865799427032471,
-1.768943190574646,
-1.9964810609817505,
1.2914185523986816,
1.164920687675476,
2.3663859367370605,
0.5829458832740784,
0.4456213712692261,
-0.8613864183425903,
-0.6824547648429871,
0.27259159088134766,
-1.0687137842178345,
-0.742275595664978,
0.11385586857795715,
2.4500019550323486,
1.6911861896514893,
-0.4523441195487976,
-0.22602692246437073,
-1.0904572010040283,
1.441264033317566,
-0.1302267163991928,
0.13969668745994568,
2.0140767097473145,
-0.21729247272014618,
-1.0338351726531982,
1.2449654340744019,
-2.2471237182617188,
0.14960229396820068,
1.9796346426010132,
0.29297158122062683,
0.07300001382827759,
-1.482034683227539,
-0.7688072323799133,
-0.2300737500190735,
-0.3798426687717438,
-1.211974024772644,
0.5904104113578796,
-0.20830443501472473,
-0.7731407880783081,
-1.4347362518310547,
0.12689867615699768,
-1.0503157377243042,
-1.7573022842407227,
0.2645735442638397,
1.8386857509613037,
1.947550892829895,
-0.7793236374855042,
1.4794923067092896,
-0.3115690350532532,
0.19525146484375,
1.3156615495681763,
1.2299518585205078,
3.130462408065796,
1.94307541847229,
-1.2452318668365479,
0.7583671808242798,
-0.09740515053272247,
-0.41895097494125366,
1.1802810430526733,
-1.2418620586395264,
1.240502119064331,
-0.17964650690555573,
-1.1069239377975464,
-1.1943355798721313,
0.9440393447875977,
0.4417741894721985,
0.03649742528796196,
-0.47278812527656555,
1.2470664978027344,
0.008081123232841492,
1.4120432138442993,
0.5833602547645569,
-0.32428184151649475,
0.7667151093482971,
-0.3500535488128662,
-0.4543561041355133,
1.6036403179168701,
0.295632928609848,
-1.4011722803115845,
-2.410245180130005,
-0.29093366861343384,
-0.8599736094474792,
-0.021079406142234802,
-0.5506715774536133,
-1.0273388624191284,
1.719765067100525,
0.4724494218826294,
-1.2913795709609985,
-0.24923305213451385,
-0.30590522289276123,
-0.6257290244102478,
2.7564773559570312,
-1.5132579803466797,
-0.23665200173854828,
-1.058794617652893,
-0.5411637425422668,
1.652091145515442,
-1.2017772197723389,
-0.2237158715724945,
-1.0253124237060547,
-0.5767458081245422,
-1.2845025062561035,
-0.5645691156387329,
-0.006331847980618477,
-0.8676026463508606,
0.8520262837409973,
0.12771476805210114,
-1.2242305278778076,
-0.29365620017051697,
-0.9435737729072571,
0.8731732964515686,
-0.054485663771629333,
0.3180142343044281,
1.892393946647644,
0.4525414705276489,
-0.3011452257633209,
0.6604542136192322,
1.1413034200668335,
0.6079633235931396,
-0.7150685787200928,
0.27632802724838257,
-0.7131553292274475,
0.2870292067527771,
-1.2774686813354492,
0.24700407683849335,
-2.79947829246521,
0.5832985639572144,
-0.13256360590457916,
-0.035846054553985596,
-0.04448013752698898,
-1.353680968284607,
1.1396926641464233,
2.5761663913726807,
-1.1537965536117554,
0.4287277162075043,
0.27179044485092163,
1.1699877977371216,
-1.6150791645050049,
0.36136382818222046,
-0.4251478612422943,
2.1438045501708984,
0.2356889843940735,
1.2129632234573364,
-0.36056676506996155,
-2.164583921432495,
0.6288158297538757,
-1.3090195655822754,
-1.2125991582870483,
0.8014963865280151,
-0.7437898516654968,
0.04905476048588753,
-1.3742090463638306,
-0.10465428233146667,
-0.7576197981834412,
-1.2941384315490723,
0.720839262008667,
0.13943025469779968,
0.4841810166835785,
-0.5589987635612488,
0.3936022222042084,
-2.1476733684539795,
-1.3260501623153687,
-0.24991673231124878,
-0.8871030211448669,
0.4548972547054291,
-0.27257782220840454,
0.7681761980056763,
-0.19399118423461914,
-0.015862874686717987,
0.38923048973083496,
1.3490071296691895,
3.442683219909668,
0.19087110459804535,
0.304484486579895,
-0.1624588668346405,
-0.9729182124137878,
1.43706214427948,
0.9010060429573059,
-0.14807173609733582,
-0.5422751307487488,
-1.0569428205490112,
1.2332714796066284,
1.9470614194869995,
1.1059925556182861,
0.02830115333199501,
-0.8280212879180908,
-0.707882285118103,
0.0389370359480381,
0.15335340797901154,
0.4536745846271515,
0.9048424363136292,
0.1304289996623993,
0.08377309143543243,
1.4468374252319336,
1.1880106925964355,
-0.2903958559036255,
0.3846888244152069,
-0.8265641927719116,
-0.48384878039360046,
0.5747520923614502,
0.2945360541343689,
-0.012284726835787296,
0.29372191429138184,
-1.068690538406372,
-0.29839128255844116,
-0.3821542263031006,
-0.9434622526168823,
-0.7733553051948547,
-0.495075523853302,
-0.389116495847702,
1.6859166622161865,
0.10156331956386566,
-0.508752703666687,
-0.05915968865156174,
-0.738395631313324,
-0.0459761805832386,
-1.1268469095230103,
0.3106028735637665,
-0.18112871050834656,
-0.10714156925678253,
-0.0389569029211998,
1.8079111576080322,
-0.9800361394882202,
-2.075299024581909,
0.2979370951652527,
0.2800696790218353,
-0.3285996615886688,
0.12802574038505554,
1.5742311477661133,
0.5921972393989563,
1.3371565341949463,
1.3000949621200562,
0.9801268577575684,
-0.736082136631012,
-1.3419501781463623,
0.6070086359977722,
1.0401203632354736,
-1.4272674322128296,
0.69565749168396,
0.056800778955221176,
-0.5190482139587402,
0.5765901207923889,
1.2470440864562988,
0.4165041744709015,
-1.924601674079895,
0.6734474301338196,
-0.807345986366272,
0.7049006223678589,
0.727012574672699,
0.7395553588867188,
0.19986969232559204,
0.7509737014770508,
-1.3065203428268433,
-1.087732195854187,
-0.7371342778205872,
-0.5987063050270081,
1.899462103843689,
-0.23815859854221344,
0.5096203088760376,
-0.17814652621746063,
-1.3336107730865479,
-0.09947150945663452,
0.707603931427002,
0.3204087018966675,
-0.5131313800811768,
0.7561341524124146,
-0.5448994636535645,
-1.0881534814834595,
-1.332140564918518,
-0.45523980259895325,
-1.0526679754257202,
-1.0028775930404663,
1.0405752658843994,
0.8274215459823608,
0.3855329751968384,
1.8281245231628418,
0.6692191958427429,
0.20297598838806152,
-2.724822521209717,
0.9312840104103088,
0.2736603915691376,
-0.07717417180538177,
0.8763043284416199,
0.30004650354385376,
0.9903479218482971,
-0.06747128069400787,
0.6048341393470764,
-2.419072389602661,
2.330331325531006,
-0.2146318107843399,
0.5273469090461731,
-0.004113595467060804,
-0.2041151374578476,
1.1080721616744995,
0.5085473656654358,
0.5652080178260803,
-0.9663777947425842,
0.664823591709137,
-0.5916532874107361,
1.2126351594924927,
0.8894824981689453,
-0.8861060738563538,
-0.03926551342010498,
1.344664454460144,
0.5919848084449768,
-0.3984120488166809,
-0.9216282367706299,
-0.9477534294128418,
0.9917696714401245,
1.8255558013916016,
-0.08019480109214783,
-0.03649086877703667,
0.9190277457237244,
0.6393371820449829,
-1.3230187892913818,
0.016948066651821136,
-0.7581560611724854,
-0.6807349920272827,
1.6854265928268433,
2.118903875350952,
-0.09839701652526855,
-0.263152539730072,
-0.8286734223365784,
-1.257317066192627,
0.877839982509613,
0.05011622607707977,
0.11578184366226196,
0.7347694039344788,
-0.619770348072052,
1.130843162536621,
0.7855966091156006,
0.9902281165122986,
0.19648118317127228,
0.2925718128681183,
0.21993286907672882,
-0.3175036609172821,
-1.2136385440826416,
-0.189932182431221,
-1.0240172147750854,
-2.4617910385131836,
0.5248602032661438,
-0.2615973949432373,
-1.3833935260772705,
0.02360045164823532,
-1.0787951946258545,
0.9251309633255005,
-0.5442773103713989,
-1.0313767194747925,
-1.4995603561401367,
0.15822367370128632,
-0.1296675056219101,
0.8917364478111267,
-1.5870707035064697,
-0.03772567957639694,
1.272869348526001,
0.9119495153427124,
-0.6754160523414612,
0.9805034399032593,
0.24496562778949738,
1.0408661365509033,
0.8440682291984558,
-0.2881064713001251,
0.5087108612060547,
0.144674152135849,
-1.3727329969406128,
0.5284543633460999,
1.2088730335235596,
0.19006237387657166,
1.6218817234039307,
-0.6119022369384766,
0.07488887012004852,
0.4402366578578949,
-0.48542463779449463,
-0.4988909065723419,
-0.5848778486251831,
0.6689852476119995,
0.13647884130477905,
-0.9966033697128296,
0.04857436940073967,
-0.049178749322891235,
-0.14368340373039246,
0.13600246608257294,
-1.4401922225952148,
-0.13750390708446503,
-0.2701283395290375,
-0.6993298530578613,
-1.199486494064331,
-0.12487941980361938,
1.309873342514038,
-0.7828284502029419,
-0.12179571390151978,
0.5378926396369934,
0.239495649933815,
0.5311733484268188,
0.5433322191238403,
-0.6122410297393799,
-0.39564430713653564,
-0.17185446619987488,
-0.26368412375450134,
0.3280738592147827,
1.324669361114502,
-0.13222850859165192,
-1.0105469226837158,
0.7758358120918274,
-0.35876813530921936,
0.09800286591053009,
1.986047625541687,
0.06152988597750664,
-0.7736766934394836,
0.303455650806427,
-0.6673837304115295,
2.014899492263794,
1.740956425666809,
1.3045815229415894,
-0.06966958194971085,
-0.9449217915534973,
0.5778115391731262,
-0.3019324541091919,
-0.40059995651245117,
0.886144757270813,
0.4062947630882263,
-0.1912679821252823,
-1.3461424112319946,
0.650428295135498,
1.2973945140838623,
-0.8982319831848145,
-0.9276041984558105,
0.15527500212192535,
-0.8841734528541565,
1.0417420864105225,
0.6782591938972473,
0.4858596920967102,
0.2352980226278305,
1.550399899482727,
0.7562450766563416,
-0.41528987884521484,
0.5301902294158936,
0.48944100737571716,
-0.10491770505905151,
-1.9972283840179443,
-1.1506308317184448,
0.4324849247932434,
-0.4766690731048584,
-1.5991531610488892,
1.4309937953948975,
-1.259312629699707,
-0.9661146402359009,
0.6184301972389221,
0.16878393292427063,
1.4474314451217651,
0.2757793664932251,
1.6139880418777466,
1.988425374031067,
0.8895071744918823,
0.369209885597229,
1.3398206233978271,
-0.14544746279716492,
-0.520527720451355,
1.73536217212677,
-0.3838582932949066,
0.5634719133377075,
1.0425481796264648,
-0.37371599674224854,
-1.0765819549560547,
-0.7325483560562134,
-1.2187641859054565,
-0.7481648921966553,
1.2043414115905762,
0.1308382898569107,
-1.1254558563232422,
0.23483307659626007,
1.604643702507019,
0.038141362369060516,
-0.31028205156326294,
0.6792904138565063,
0.32484129071235657,
-0.7859633564949036,
0.01682623289525509,
-1.0272400379180908,
0.4612533450126648,
-0.1351485252380371,
-0.3585999011993408,
0.3119722008705139,
0.43532076478004456,
1.2864198684692383,
-0.00016865506768226624,
0.1291942596435547,
1.1955608129501343,
-1.349854588508606,
1.5771795511245728,
-0.6364957094192505,
0.2032686024904251,
-2.3706717491149902,
1.3509596586227417,
-0.8192516565322876,
1.7904326915740967,
-2.626577377319336,
0.38149574398994446,
-0.5470812916755676,
-0.41231900453567505,
0.274935781955719,
-0.41507968306541443,
0.18126492202281952,
-0.17406196892261505,
-1.1793224811553955,
-0.036287616938352585,
-0.8329614400863647,
0.5955529808998108,
1.101048231124878,
1.4611711502075195,
-1.1383179426193237,
-0.3156794011592865,
-1.7738007307052612,
-0.17002230882644653,
-0.7326933741569519,
0.3827260136604309,
-1.954150676727295,
-0.1407919079065323,
-1.8494919538497925,
-2.357304811477661,
-1.34211003780365,
-0.8626005053520203,
1.0636076927185059,
0.11941088736057281,
-0.8851246237754822,
1.1024649143218994,
-0.4007429778575897,
-1.8951733112335205,
1.1669158935546875,
-2.1906473636627197
] |
https://github.com/huggingface/datasets/issues/5338 | `map()` stops every 1000 steps | Hi !
> It starts using all the cores (I am not sure why because I did not pass num_proc)
The tokenizer uses Rust code that is multithreaded. And maybe the `feature_extractor` might run some things in parallel as well - but I'm not super familiar with its internals.
> then progress bar stops at every 1k steps. (starts using a single core)
Every 1000 examples we flush the processed examples to disk. It is this way because Arrow is a columnar format: you must write data chunk by chunk. The processing in on hold while writing right now - maybe this can be improved in the future. | ### Describe the bug
I am passing the following `prepare_dataset` function to `Dataset.map` (code is inspired from [here](https://github.com/huggingface/community-events/blob/main/whisper-fine-tuning-event/run_speech_recognition_seq2seq_streaming.py#L454))
```python3
def prepare_dataset(batch):
# load and resample audio data from 48 to 16kHz
audio = batch["audio"]
# compute log-Mel input features from input audio array
batch["input_features"] = feature_extractor(audio["array"], sampling_rate=audio["sampling_rate"]).input_features[0]
# encode target text to label ids
batch["labels"] = tokenizer(batch[text_column]).input_ids
return batch
...
train_ds = train_ds.map(prepare_dataset)
```
Here is the exact code I am running https://github.com/bayartsogt-ya/whisper-multiple-hf-datasets/blob/main/train.py#L70-L71
It starts using all the cores (I am not sure why because I did not pass `num_proc`)
then progress bar stops at every 1k steps. (starts using a single core)
then come back to using all the cores again.
link to [screen record](https://youtu.be/jPQpQQGp6Gc)
Can someone explain this process and maybe provide a way to improve this pipeline? cc: @lhoestq
### Steps to reproduce the bug
1. load the dataset
2. create a Whisper processor
3. create a `prepare_dataset` function
4. pass the function to `dataset.map(prepare_dataset)`
### Expected behavior
- Use a single core per a function
- not to stop at some point?
### Environment info
- `datasets` version: 2.7.1.dev0
- Platform: Linux-5.4.0-109-generic-x86_64-with-glibc2.27
- Python version: 3.8.10
- PyArrow version: 10.0.1
- Pandas version: 1.5.2 | 382 | 108 | `map()` stops every 1000 steps
### Describe the bug
I am passing the following `prepare_dataset` function to `Dataset.map` (code is inspired from [here](https://github.com/huggingface/community-events/blob/main/whisper-fine-tuning-event/run_speech_recognition_seq2seq_streaming.py#L454))
```python3
def prepare_dataset(batch):
# load and resample audio data from 48 to 16kHz
audio = batch["audio"]
# compute log-Mel input features from input audio array
batch["input_features"] = feature_extractor(audio["array"], sampling_rate=audio["sampling_rate"]).input_features[0]
# encode target text to label ids
batch["labels"] = tokenizer(batch[text_column]).input_ids
return batch
...
train_ds = train_ds.map(prepare_dataset)
```
Here is the exact code I am running https://github.com/bayartsogt-ya/whisper-multiple-hf-datasets/blob/main/train.py#L70-L71
It starts using all the cores (I am not sure why because I did not pass `num_proc`)
then progress bar stops at every 1k steps. (starts using a single core)
then come back to using all the cores again.
link to [screen record](https://youtu.be/jPQpQQGp6Gc)
Can someone explain this process and maybe provide a way to improve this pipeline? cc: @lhoestq
### Steps to reproduce the bug
1. load the dataset
2. create a Whisper processor
3. create a `prepare_dataset` function
4. pass the function to `dataset.map(prepare_dataset)`
### Expected behavior
- Use a single core per a function
- not to stop at some point?
### Environment info
- `datasets` version: 2.7.1.dev0
- Platform: Linux-5.4.0-109-generic-x86_64-with-glibc2.27
- Python version: 3.8.10
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
Hi !
> It starts using all the cores (I am not sure why because I did not pass num_proc)
The tokenizer uses Rust code that is multithreaded. And maybe the `feature_extractor` might run some things in parallel as well - but I'm not super familiar with its internals.
> then progress bar stops at every 1k steps. (starts using a single core)
Every 1000 examples we flush the processed examples to disk. It is this way because Arrow is a columnar format: you must write data chunk by chunk. The processing in on hold while writing right now - maybe this can be improved in the future. | [
-1.2085660696029663,
-0.8807992935180664,
-0.6695201992988586,
1.4731371402740479,
-0.08829861879348755,
-1.3140623569488525,
0.18715448677539825,
-1.0919111967086792,
1.6589032411575317,
-0.7869752645492554,
0.3509739637374878,
-1.6116012334823608,
0.056128792464733124,
-0.5951489210128784,
-0.7683001756668091,
-0.8721674084663391,
-0.360786110162735,
-0.6664426922798157,
1.1170361042022705,
2.4853031635284424,
1.2268270254135132,
-1.327083706855774,
2.760002851486206,
0.7029528617858887,
-0.2070440798997879,
-0.9980409145355225,
0.4303577244281769,
0.030997544527053833,
-1.3439279794692993,
-0.38759806752204895,
-0.9212509393692017,
-0.11697036027908325,
-0.6325931549072266,
-0.5440464615821838,
0.006795619614422321,
0.43174660205841064,
-0.28731513023376465,
-0.4606107771396637,
-0.5725250840187073,
-0.7729806900024414,
0.49046269059181213,
-0.36093711853027344,
0.8968808650970459,
-0.27989625930786133,
1.78943932056427,
-0.6665998101234436,
0.5469069480895996,
0.6235368847846985,
1.3150181770324707,
0.2042441964149475,
0.033133815973997116,
0.3786141276359558,
0.3916923701763153,
-0.04334583133459091,
0.5421322584152222,
1.2718251943588257,
0.6796872019767761,
0.47873371839523315,
0.7562732696533203,
-2.1816232204437256,
1.2982722520828247,
-0.8909360766410828,
0.27808013558387756,
1.2755979299545288,
-0.9849587678909302,
0.3581092655658722,
-1.770923376083374,
-0.11966806650161743,
0.4979538023471832,
-2.2378597259521484,
0.14816606044769287,
-1.348984718322754,
-0.5712472796440125,
1.0139703750610352,
0.35261332988739014,
-1.2086702585220337,
0.12034782022237778,
-0.44843199849128723,
1.0375779867172241,
0.41937389969825745,
1.1128422021865845,
-1.6660473346710205,
-0.06609361618757248,
-0.27930980920791626,
0.1720970869064331,
-1.1754021644592285,
-1.5889257192611694,
0.5303061604499817,
0.6343360543251038,
0.5891937613487244,
-0.14326699078083038,
0.9683858752250671,
-1.0399351119995117,
0.79013991355896,
-0.9779767394065857,
-1.7806247472763062,
-1.4033392667770386,
-2.301543712615967,
-2.2890264987945557,
0.7421157360076904,
-0.43064752221107483,
-0.46422335505485535,
2.0538179874420166,
-1.0230813026428223,
-1.7309072017669678,
1.1236416101455688,
0.22207598388195038,
0.003633894957602024,
2.3474795818328857,
0.2475530058145523,
-0.7916225790977478,
0.5360538959503174,
-0.7996658682823181,
0.6895219683647156,
-0.373458594083786,
1.2772949934005737,
0.3553742468357086,
-1.0635055303573608,
1.5476223230361938,
-0.38167673349380493,
0.6121805310249329,
-0.7418434619903564,
-0.46361833810806274,
-0.6860371828079224,
0.27443575859069824,
1.9757874011993408,
-0.30713820457458496,
1.5988351106643677,
-0.26863032579421997,
-1.512120246887207,
-1.5430095195770264,
0.7954068779945374,
0.48375916481018066,
-0.7434625029563904,
0.1167021170258522,
-0.39361628890037537,
0.12317513674497604,
0.02051270380616188,
1.1452056169509888,
1.2681385278701782,
0.7115724086761475,
-0.33018678426742554,
-0.852823793888092,
0.21836383640766144,
-0.06418344378471375,
-0.7031498551368713,
-1.7535320520401,
-0.3095017075538635,
0.1914946734905243,
0.5974809527397156,
-1.265419363975525,
1.7285038232803345,
0.8129199743270874,
1.9420486688613892,
1.0504841804504395,
-0.3812970221042633,
1.4841288328170776,
0.09037161618471146,
1.891139268875122,
-0.465878963470459,
0.6754060387611389,
-0.3850313723087311,
-1.1420964002609253,
0.7814820408821106,
-0.3501548171043396,
-2.060450792312622,
-0.7009846568107605,
-0.7766631245613098,
-0.13343164324760437,
-0.7897453904151917,
0.9176867604255676,
-0.27549272775650024,
-1.432605266571045,
0.2097903937101364,
-0.7935256958007812,
0.09199208766222,
-1.2683534622192383,
0.24472908675670624,
0.7475144863128662,
-0.6043431758880615,
0.14353694021701813,
-0.2669335901737213,
-1.3083100318908691,
-0.46026673913002014,
0.3491969108581543,
1.846433162689209,
-0.7465189695358276,
0.9039055109024048,
1.046682357788086,
-0.6142781376838684,
-0.01790926791727543,
0.37598246335983276,
-0.3502901792526245,
0.8804395794868469,
-1.0702579021453857,
-0.3883817195892334,
1.1641302108764648,
-0.19331969320774078,
-0.6284273862838745,
1.4741263389587402,
0.7910752296447754,
-1.0024163722991943,
-0.18862441182136536,
-0.08882582932710648,
-0.9109838604927063,
0.03002849593758583,
-1.6573406457901,
-0.1631791591644287,
0.347310870885849,
-1.5425289869308472,
-0.539279580116272,
-0.2294679582118988,
1.2936345338821411,
-0.08635375648736954,
1.4661785364151,
-0.29760757088661194,
-0.15472060441970825,
-0.40641605854034424,
-0.42942890524864197,
0.10504983365535736,
-0.24258746206760406,
-0.6464399695396423,
0.2311798632144928,
-0.7270841598510742,
0.28338727355003357,
1.4476311206817627,
0.31016138195991516,
0.13280640542507172,
0.5332483053207397,
1.0804675817489624,
0.32443562150001526,
-0.1482323259115219,
-0.8192944526672363,
-1.63985276222229,
2.0168285369873047,
-1.3785039186477661,
2.0785562992095947,
0.8077743053436279,
-0.06750006228685379,
-1.783632516860962,
-1.8578739166259766,
1.3258498907089233,
1.1104792356491089,
2.3761744499206543,
0.5323570966720581,
0.4196349084377289,
-0.794516384601593,
-0.6421345472335815,
0.29518336057662964,
-0.962231457233429,
-0.7373087406158447,
0.14409974217414856,
2.378176212310791,
1.747213363647461,
-0.3670613467693329,
-0.18502366542816162,
-1.0167441368103027,
1.3876664638519287,
-0.229953795671463,
0.24807168543338776,
1.9137868881225586,
-0.2931247353553772,
-0.9863872528076172,
1.3073323965072632,
-2.3087894916534424,
0.17489181458950043,
1.9579793214797974,
0.24429820477962494,
0.007759480737149715,
-1.338724970817566,
-0.6550226211547852,
-0.35252001881599426,
-0.36757010221481323,
-1.2057993412017822,
0.43733593821525574,
-0.20210805535316467,
-0.8216637372970581,
-1.4259498119354248,
0.0672793760895729,
-1.1062334775924683,
-1.7423278093338013,
0.29247796535491943,
1.8887988328933716,
1.94359290599823,
-0.7268446683883667,
1.50689697265625,
-0.3256450295448303,
0.17363131046295166,
1.2229033708572388,
1.2556756734848022,
3.219147205352783,
1.9200297594070435,
-1.2839850187301636,
0.7390103936195374,
-0.21144211292266846,
-0.4821101129055023,
1.1094170808792114,
-1.169013261795044,
1.292123794555664,
-0.16090168058872223,
-1.2484638690948486,
-1.2351467609405518,
1.034138560295105,
0.5175458788871765,
-0.01858118176460266,
-0.48462432622909546,
1.2288109064102173,
0.10622859746217728,
1.3525052070617676,
0.5443183183670044,
-0.30156058073043823,
0.5973587036132812,
-0.3067178428173065,
-0.49854186177253723,
1.5604957342147827,
0.1343274563550949,
-1.432013750076294,
-2.355433464050293,
-0.16989023983478546,
-0.9092963337898254,
-0.017740897834300995,
-0.7082839608192444,
-1.0710251331329346,
1.6085233688354492,
0.39268958568573,
-1.219571590423584,
-0.25032687187194824,
-0.3695014715194702,
-0.5902494192123413,
2.7608115673065186,
-1.4220249652862549,
-0.24432457983493805,
-0.989294171333313,
-0.5916823148727417,
1.5975220203399658,
-1.175552248954773,
-0.24495886266231537,
-0.9531612396240234,
-0.5362877249717712,
-1.2421530485153198,
-0.5132188200950623,
0.04992419108748436,
-0.9670149683952332,
0.797819197177887,
0.10537642240524292,
-1.215530276298523,
-0.2824271321296692,
-0.9255368113517761,
0.9417998790740967,
-0.13676929473876953,
0.15151086449623108,
1.8900291919708252,
0.3787432312965393,
-0.40082839131355286,
0.7318772077560425,
1.2208186388015747,
0.6244410872459412,
-0.6793940663337708,
0.17332342267036438,
-0.6804497838020325,
0.3329966962337494,
-1.3314720392227173,
0.23187071084976196,
-2.8483622074127197,
0.6862395405769348,
-0.03575312718749046,
-0.06900043785572052,
0.01892836019396782,
-1.3348920345306396,
1.0489084720611572,
2.624387502670288,
-1.1486386060714722,
0.5126551389694214,
0.3146103024482727,
1.1613065004348755,
-1.58780038356781,
0.2942081391811371,
-0.48105350136756897,
2.0197646617889404,
0.19433404505252838,
1.2041860818862915,
-0.4755890369415283,
-2.2737436294555664,
0.5903713703155518,
-1.2219107151031494,
-1.135345220565796,
0.8509964942932129,
-0.8822073936462402,
0.1775229424238205,
-1.315341830253601,
-0.1541832685470581,
-0.8442462682723999,
-1.148055911064148,
0.5694145560264587,
0.12077172845602036,
0.5053904056549072,
-0.67373126745224,
0.33302193880081177,
-2.182661771774292,
-1.358511209487915,
-0.18328914046287537,
-0.9144182801246643,
0.4749703109264374,
-0.37063178420066833,
0.6646251678466797,
-0.19281746447086334,
-0.009112067520618439,
0.298399955034256,
1.4669933319091797,
3.3608016967773438,
0.156439408659935,
0.2910473048686981,
-0.229988694190979,
-0.9453086256980896,
1.4571542739868164,
0.9117497205734253,
-0.18285633623600006,
-0.6098912954330444,
-0.9684095978736877,
1.2672107219696045,
1.9515023231506348,
1.0548961162567139,
0.06800094991922379,
-0.8680252432823181,
-0.8104864358901978,
0.050919633358716965,
0.1877395212650299,
0.39413249492645264,
0.9878641366958618,
0.10941906273365021,
0.07534850388765335,
1.4616159200668335,
1.1861076354980469,
-0.45743680000305176,
0.41873499751091003,
-0.9289270043373108,
-0.4378671646118164,
0.4414931833744049,
0.36640438437461853,
-0.024234667420387268,
0.31974831223487854,
-1.0585711002349854,
-0.20602034032344818,
-0.4243119955062866,
-0.8545917272567749,
-0.7804679870605469,
-0.3490414023399353,
-0.34072110056877136,
1.687918782234192,
0.03723427280783653,
-0.48698824644088745,
-0.026489615440368652,
-0.73957359790802,
-0.08884672820568085,
-1.0013283491134644,
0.30753293633461,
-0.08526338636875153,
-0.07279591262340546,
-0.06835813075304031,
1.7022149562835693,
-0.9295393824577332,
-2.157900333404541,
0.2098110467195511,
0.12746624648571014,
-0.3453635573387146,
0.1499471813440323,
1.7589423656463623,
0.5745561122894287,
1.4103214740753174,
1.378705620765686,
0.943461000919342,
-0.6686579585075378,
-1.3181774616241455,
0.6440845131874084,
0.974834680557251,
-1.3174877166748047,
0.8443287014961243,
-0.024508656933903694,
-0.5401769876480103,
0.6056205034255981,
1.27287757396698,
0.4518582820892334,
-2.0082385540008545,
0.7673564553260803,
-0.9025322198867798,
0.7994779944419861,
0.7344632744789124,
0.6949965357780457,
0.24321044981479645,
0.7964527010917664,
-1.2277692556381226,
-1.1428097486495972,
-0.7427358627319336,
-0.6434534788131714,
1.9308844804763794,
-0.24333803355693817,
0.5511427521705627,
-0.20599491894245148,
-1.307847499847412,
-0.03241711109876633,
0.7040289640426636,
0.4158724248409271,
-0.5165150165557861,
0.7760908603668213,
-0.6347554326057434,
-1.0284696817398071,
-1.3311280012130737,
-0.47566020488739014,
-1.0612229108810425,
-0.9216471314430237,
0.9986656308174133,
0.8373480439186096,
0.4237416982650757,
1.8728288412094116,
0.6720894575119019,
0.262056827545166,
-2.61793851852417,
0.9068019390106201,
0.31812775135040283,
-0.07023073732852936,
0.8770256638526917,
0.32649746537208557,
1.0295644998550415,
-0.04884772002696991,
0.5461926460266113,
-2.3732802867889404,
2.2790544033050537,
-0.20892702043056488,
0.6882443428039551,
-0.027987487614154816,
-0.07719910144805908,
1.0928740501403809,
0.5460933446884155,
0.5448655486106873,
-1.0912177562713623,
0.6984911561012268,
-0.5870112180709839,
1.2481865882873535,
0.8661444187164307,
-0.832393229007721,
0.008297632448375225,
1.4215043783187866,
0.46191930770874023,
-0.5789967179298401,
-0.9983506202697754,
-0.9771418571472168,
0.9539752006530762,
1.7262576818466187,
-0.0071027218364179134,
0.0007078098133206367,
0.8308913707733154,
0.6758944392204285,
-1.3140254020690918,
0.04702753946185112,
-0.7307502627372742,
-0.7014999985694885,
1.6929538249969482,
2.1018619537353516,
-0.15034238994121552,
-0.1973852664232254,
-0.6944520473480225,
-1.266925573348999,
0.8085362315177917,
-0.032993413507938385,
0.12563513219356537,
0.7290489673614502,
-0.6798292994499207,
1.1556036472320557,
0.8161929845809937,
0.8864642977714539,
0.22178587317466736,
0.23314505815505981,
0.3147867023944855,
-0.3347446024417877,
-1.2435917854309082,
-0.26155903935432434,
-1.1125410795211792,
-2.4558024406433105,
0.3983405530452728,
-0.1846059411764145,
-1.4499377012252808,
0.1031564325094223,
-1.0546783208847046,
0.8594232797622681,
-0.5189434289932251,
-1.082546353340149,
-1.4936497211456299,
0.2407497614622116,
-0.03102754056453705,
0.8804961442947388,
-1.5787936449050903,
-0.11766412854194641,
1.2224395275115967,
0.8940342664718628,
-0.6287935376167297,
0.9367140531539917,
0.21640941500663757,
0.988646924495697,
0.8883840441703796,
-0.36691564321517944,
0.47083520889282227,
0.0515877828001976,
-1.3410085439682007,
0.4654991924762726,
1.22034752368927,
0.17552122473716736,
1.4521737098693848,
-0.5647409558296204,
0.04859787970781326,
0.4155038297176361,
-0.44401034712791443,
-0.4716976583003998,
-0.6468805074691772,
0.6431151032447815,
-0.014903451316058636,
-0.8836303949356079,
-0.06566612422466278,
-0.027817122638225555,
-0.2585470676422119,
0.19459450244903564,
-1.4538452625274658,
-0.07346533983945847,
-0.3295220136642456,
-0.6729115843772888,
-1.2581143379211426,
-0.021944858133792877,
1.3392021656036377,
-0.8417215347290039,
-0.2229144424200058,
0.48847031593322754,
0.3066865801811218,
0.5674670934677124,
0.66264808177948,
-0.7484858632087708,
-0.3303103446960449,
-0.1776982843875885,
-0.30796781182289124,
0.3539605438709259,
1.3328484296798706,
-0.12304608523845673,
-0.9656686782836914,
0.6681694388389587,
-0.411545991897583,
0.12090080231428146,
1.9761013984680176,
0.09664060920476913,
-0.81367027759552,
0.2405811995267868,
-0.748721718788147,
1.9359536170959473,
1.7573769092559814,
1.3128221035003662,
-0.0785113051533699,
-0.9632324576377869,
0.6041918396949768,
-0.31958746910095215,
-0.3813343048095703,
0.9530579447746277,
0.3070664703845978,
-0.2499963790178299,
-1.393060326576233,
0.6268797516822815,
1.2835981845855713,
-0.8405106067657471,
-0.8202599287033081,
0.08529747277498245,
-0.8686796426773071,
1.1800616979599,
0.6495591402053833,
0.3133608400821686,
0.28831562399864197,
1.5973442792892456,
0.7924860119819641,
-0.44466057419776917,
0.531741201877594,
0.5032378435134888,
-0.17687766253948212,
-2.133767604827881,
-1.100441575050354,
0.3374687135219574,
-0.47771155834198,
-1.6010907888412476,
1.4241137504577637,
-1.2245903015136719,
-0.9652068614959717,
0.5856178402900696,
0.1059112548828125,
1.415679693222046,
0.25780412554740906,
1.6235325336456299,
2.063009023666382,
0.9177733063697815,
0.37766897678375244,
1.250038504600525,
-0.13850872218608856,
-0.4150726795196533,
1.7135009765625,
-0.4917965531349182,
0.5123907327651978,
1.0273042917251587,
-0.37555262446403503,
-1.12296724319458,
-0.7870620489120483,
-1.2233006954193115,
-0.7294167876243591,
1.1576117277145386,
0.13489429652690887,
-1.0898853540420532,
0.27028098702430725,
1.5616916418075562,
0.15324780344963074,
-0.32381778955459595,
0.6752203702926636,
0.40462711453437805,
-0.7291299700737,
-0.06609539687633514,
-0.9347150325775146,
0.5469716191291809,
-0.1878964602947235,
-0.36111000180244446,
0.337129682302475,
0.4706879258155823,
1.2777788639068604,
0.030386067926883698,
0.09480426460504532,
1.2284742593765259,
-1.4745427370071411,
1.4679630994796753,
-0.7421121001243591,
0.32817527651786804,
-2.4149434566497803,
1.4486278295516968,
-0.7887662649154663,
1.9034464359283447,
-2.665896415710449,
0.4633343517780304,
-0.5234641432762146,
-0.49891555309295654,
0.2495366781949997,
-0.2872045934200287,
0.15224505960941315,
-0.042651399970054626,
-1.15103018283844,
-0.1196955218911171,
-0.7997974157333374,
0.5632571578025818,
1.167074203491211,
1.3407198190689087,
-1.0861741304397583,
-0.25499585270881653,
-1.6935060024261475,
-0.1311236172914505,
-0.7062788605690002,
0.31218189001083374,
-1.9490303993225098,
-0.11802203953266144,
-1.8952078819274902,
-2.4530978202819824,
-1.3557051420211792,
-0.8094971776008606,
1.109567642211914,
0.18076132237911224,
-0.8636606335639954,
1.2274631261825562,
-0.4436599016189575,
-1.8590528964996338,
1.1836053133010864,
-2.216637134552002
] |
https://github.com/huggingface/datasets/issues/5338 | `map()` stops every 1000 steps | Hi @lhoestq
Thanks for the explanation! it was so helpful! Let me check why `feature_extractor` is running on multiple cpus. | ### Describe the bug
I am passing the following `prepare_dataset` function to `Dataset.map` (code is inspired from [here](https://github.com/huggingface/community-events/blob/main/whisper-fine-tuning-event/run_speech_recognition_seq2seq_streaming.py#L454))
```python3
def prepare_dataset(batch):
# load and resample audio data from 48 to 16kHz
audio = batch["audio"]
# compute log-Mel input features from input audio array
batch["input_features"] = feature_extractor(audio["array"], sampling_rate=audio["sampling_rate"]).input_features[0]
# encode target text to label ids
batch["labels"] = tokenizer(batch[text_column]).input_ids
return batch
...
train_ds = train_ds.map(prepare_dataset)
```
Here is the exact code I am running https://github.com/bayartsogt-ya/whisper-multiple-hf-datasets/blob/main/train.py#L70-L71
It starts using all the cores (I am not sure why because I did not pass `num_proc`)
then progress bar stops at every 1k steps. (starts using a single core)
then come back to using all the cores again.
link to [screen record](https://youtu.be/jPQpQQGp6Gc)
Can someone explain this process and maybe provide a way to improve this pipeline? cc: @lhoestq
### Steps to reproduce the bug
1. load the dataset
2. create a Whisper processor
3. create a `prepare_dataset` function
4. pass the function to `dataset.map(prepare_dataset)`
### Expected behavior
- Use a single core per a function
- not to stop at some point?
### Environment info
- `datasets` version: 2.7.1.dev0
- Platform: Linux-5.4.0-109-generic-x86_64-with-glibc2.27
- Python version: 3.8.10
- PyArrow version: 10.0.1
- Pandas version: 1.5.2 | 382 | 20 | `map()` stops every 1000 steps
### Describe the bug
I am passing the following `prepare_dataset` function to `Dataset.map` (code is inspired from [here](https://github.com/huggingface/community-events/blob/main/whisper-fine-tuning-event/run_speech_recognition_seq2seq_streaming.py#L454))
```python3
def prepare_dataset(batch):
# load and resample audio data from 48 to 16kHz
audio = batch["audio"]
# compute log-Mel input features from input audio array
batch["input_features"] = feature_extractor(audio["array"], sampling_rate=audio["sampling_rate"]).input_features[0]
# encode target text to label ids
batch["labels"] = tokenizer(batch[text_column]).input_ids
return batch
...
train_ds = train_ds.map(prepare_dataset)
```
Here is the exact code I am running https://github.com/bayartsogt-ya/whisper-multiple-hf-datasets/blob/main/train.py#L70-L71
It starts using all the cores (I am not sure why because I did not pass `num_proc`)
then progress bar stops at every 1k steps. (starts using a single core)
then come back to using all the cores again.
link to [screen record](https://youtu.be/jPQpQQGp6Gc)
Can someone explain this process and maybe provide a way to improve this pipeline? cc: @lhoestq
### Steps to reproduce the bug
1. load the dataset
2. create a Whisper processor
3. create a `prepare_dataset` function
4. pass the function to `dataset.map(prepare_dataset)`
### Expected behavior
- Use a single core per a function
- not to stop at some point?
### Environment info
- `datasets` version: 2.7.1.dev0
- Platform: Linux-5.4.0-109-generic-x86_64-with-glibc2.27
- Python version: 3.8.10
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
Hi @lhoestq
Thanks for the explanation! it was so helpful! Let me check why `feature_extractor` is running on multiple cpus. | [
-1.2085660696029663,
-0.8807992935180664,
-0.6695201992988586,
1.4731371402740479,
-0.08829861879348755,
-1.3140623569488525,
0.18715448677539825,
-1.0919111967086792,
1.6589032411575317,
-0.7869752645492554,
0.3509739637374878,
-1.6116012334823608,
0.056128792464733124,
-0.5951489210128784,
-0.7683001756668091,
-0.8721674084663391,
-0.360786110162735,
-0.6664426922798157,
1.1170361042022705,
2.4853031635284424,
1.2268270254135132,
-1.327083706855774,
2.760002851486206,
0.7029528617858887,
-0.2070440798997879,
-0.9980409145355225,
0.4303577244281769,
0.030997544527053833,
-1.3439279794692993,
-0.38759806752204895,
-0.9212509393692017,
-0.11697036027908325,
-0.6325931549072266,
-0.5440464615821838,
0.006795619614422321,
0.43174660205841064,
-0.28731513023376465,
-0.4606107771396637,
-0.5725250840187073,
-0.7729806900024414,
0.49046269059181213,
-0.36093711853027344,
0.8968808650970459,
-0.27989625930786133,
1.78943932056427,
-0.6665998101234436,
0.5469069480895996,
0.6235368847846985,
1.3150181770324707,
0.2042441964149475,
0.033133815973997116,
0.3786141276359558,
0.3916923701763153,
-0.04334583133459091,
0.5421322584152222,
1.2718251943588257,
0.6796872019767761,
0.47873371839523315,
0.7562732696533203,
-2.1816232204437256,
1.2982722520828247,
-0.8909360766410828,
0.27808013558387756,
1.2755979299545288,
-0.9849587678909302,
0.3581092655658722,
-1.770923376083374,
-0.11966806650161743,
0.4979538023471832,
-2.2378597259521484,
0.14816606044769287,
-1.348984718322754,
-0.5712472796440125,
1.0139703750610352,
0.35261332988739014,
-1.2086702585220337,
0.12034782022237778,
-0.44843199849128723,
1.0375779867172241,
0.41937389969825745,
1.1128422021865845,
-1.6660473346710205,
-0.06609361618757248,
-0.27930980920791626,
0.1720970869064331,
-1.1754021644592285,
-1.5889257192611694,
0.5303061604499817,
0.6343360543251038,
0.5891937613487244,
-0.14326699078083038,
0.9683858752250671,
-1.0399351119995117,
0.79013991355896,
-0.9779767394065857,
-1.7806247472763062,
-1.4033392667770386,
-2.301543712615967,
-2.2890264987945557,
0.7421157360076904,
-0.43064752221107483,
-0.46422335505485535,
2.0538179874420166,
-1.0230813026428223,
-1.7309072017669678,
1.1236416101455688,
0.22207598388195038,
0.003633894957602024,
2.3474795818328857,
0.2475530058145523,
-0.7916225790977478,
0.5360538959503174,
-0.7996658682823181,
0.6895219683647156,
-0.373458594083786,
1.2772949934005737,
0.3553742468357086,
-1.0635055303573608,
1.5476223230361938,
-0.38167673349380493,
0.6121805310249329,
-0.7418434619903564,
-0.46361833810806274,
-0.6860371828079224,
0.27443575859069824,
1.9757874011993408,
-0.30713820457458496,
1.5988351106643677,
-0.26863032579421997,
-1.512120246887207,
-1.5430095195770264,
0.7954068779945374,
0.48375916481018066,
-0.7434625029563904,
0.1167021170258522,
-0.39361628890037537,
0.12317513674497604,
0.02051270380616188,
1.1452056169509888,
1.2681385278701782,
0.7115724086761475,
-0.33018678426742554,
-0.852823793888092,
0.21836383640766144,
-0.06418344378471375,
-0.7031498551368713,
-1.7535320520401,
-0.3095017075538635,
0.1914946734905243,
0.5974809527397156,
-1.265419363975525,
1.7285038232803345,
0.8129199743270874,
1.9420486688613892,
1.0504841804504395,
-0.3812970221042633,
1.4841288328170776,
0.09037161618471146,
1.891139268875122,
-0.465878963470459,
0.6754060387611389,
-0.3850313723087311,
-1.1420964002609253,
0.7814820408821106,
-0.3501548171043396,
-2.060450792312622,
-0.7009846568107605,
-0.7766631245613098,
-0.13343164324760437,
-0.7897453904151917,
0.9176867604255676,
-0.27549272775650024,
-1.432605266571045,
0.2097903937101364,
-0.7935256958007812,
0.09199208766222,
-1.2683534622192383,
0.24472908675670624,
0.7475144863128662,
-0.6043431758880615,
0.14353694021701813,
-0.2669335901737213,
-1.3083100318908691,
-0.46026673913002014,
0.3491969108581543,
1.846433162689209,
-0.7465189695358276,
0.9039055109024048,
1.046682357788086,
-0.6142781376838684,
-0.01790926791727543,
0.37598246335983276,
-0.3502901792526245,
0.8804395794868469,
-1.0702579021453857,
-0.3883817195892334,
1.1641302108764648,
-0.19331969320774078,
-0.6284273862838745,
1.4741263389587402,
0.7910752296447754,
-1.0024163722991943,
-0.18862441182136536,
-0.08882582932710648,
-0.9109838604927063,
0.03002849593758583,
-1.6573406457901,
-0.1631791591644287,
0.347310870885849,
-1.5425289869308472,
-0.539279580116272,
-0.2294679582118988,
1.2936345338821411,
-0.08635375648736954,
1.4661785364151,
-0.29760757088661194,
-0.15472060441970825,
-0.40641605854034424,
-0.42942890524864197,
0.10504983365535736,
-0.24258746206760406,
-0.6464399695396423,
0.2311798632144928,
-0.7270841598510742,
0.28338727355003357,
1.4476311206817627,
0.31016138195991516,
0.13280640542507172,
0.5332483053207397,
1.0804675817489624,
0.32443562150001526,
-0.1482323259115219,
-0.8192944526672363,
-1.63985276222229,
2.0168285369873047,
-1.3785039186477661,
2.0785562992095947,
0.8077743053436279,
-0.06750006228685379,
-1.783632516860962,
-1.8578739166259766,
1.3258498907089233,
1.1104792356491089,
2.3761744499206543,
0.5323570966720581,
0.4196349084377289,
-0.794516384601593,
-0.6421345472335815,
0.29518336057662964,
-0.962231457233429,
-0.7373087406158447,
0.14409974217414856,
2.378176212310791,
1.747213363647461,
-0.3670613467693329,
-0.18502366542816162,
-1.0167441368103027,
1.3876664638519287,
-0.229953795671463,
0.24807168543338776,
1.9137868881225586,
-0.2931247353553772,
-0.9863872528076172,
1.3073323965072632,
-2.3087894916534424,
0.17489181458950043,
1.9579793214797974,
0.24429820477962494,
0.007759480737149715,
-1.338724970817566,
-0.6550226211547852,
-0.35252001881599426,
-0.36757010221481323,
-1.2057993412017822,
0.43733593821525574,
-0.20210805535316467,
-0.8216637372970581,
-1.4259498119354248,
0.0672793760895729,
-1.1062334775924683,
-1.7423278093338013,
0.29247796535491943,
1.8887988328933716,
1.94359290599823,
-0.7268446683883667,
1.50689697265625,
-0.3256450295448303,
0.17363131046295166,
1.2229033708572388,
1.2556756734848022,
3.219147205352783,
1.9200297594070435,
-1.2839850187301636,
0.7390103936195374,
-0.21144211292266846,
-0.4821101129055023,
1.1094170808792114,
-1.169013261795044,
1.292123794555664,
-0.16090168058872223,
-1.2484638690948486,
-1.2351467609405518,
1.034138560295105,
0.5175458788871765,
-0.01858118176460266,
-0.48462432622909546,
1.2288109064102173,
0.10622859746217728,
1.3525052070617676,
0.5443183183670044,
-0.30156058073043823,
0.5973587036132812,
-0.3067178428173065,
-0.49854186177253723,
1.5604957342147827,
0.1343274563550949,
-1.432013750076294,
-2.355433464050293,
-0.16989023983478546,
-0.9092963337898254,
-0.017740897834300995,
-0.7082839608192444,
-1.0710251331329346,
1.6085233688354492,
0.39268958568573,
-1.219571590423584,
-0.25032687187194824,
-0.3695014715194702,
-0.5902494192123413,
2.7608115673065186,
-1.4220249652862549,
-0.24432457983493805,
-0.989294171333313,
-0.5916823148727417,
1.5975220203399658,
-1.175552248954773,
-0.24495886266231537,
-0.9531612396240234,
-0.5362877249717712,
-1.2421530485153198,
-0.5132188200950623,
0.04992419108748436,
-0.9670149683952332,
0.797819197177887,
0.10537642240524292,
-1.215530276298523,
-0.2824271321296692,
-0.9255368113517761,
0.9417998790740967,
-0.13676929473876953,
0.15151086449623108,
1.8900291919708252,
0.3787432312965393,
-0.40082839131355286,
0.7318772077560425,
1.2208186388015747,
0.6244410872459412,
-0.6793940663337708,
0.17332342267036438,
-0.6804497838020325,
0.3329966962337494,
-1.3314720392227173,
0.23187071084976196,
-2.8483622074127197,
0.6862395405769348,
-0.03575312718749046,
-0.06900043785572052,
0.01892836019396782,
-1.3348920345306396,
1.0489084720611572,
2.624387502670288,
-1.1486386060714722,
0.5126551389694214,
0.3146103024482727,
1.1613065004348755,
-1.58780038356781,
0.2942081391811371,
-0.48105350136756897,
2.0197646617889404,
0.19433404505252838,
1.2041860818862915,
-0.4755890369415283,
-2.2737436294555664,
0.5903713703155518,
-1.2219107151031494,
-1.135345220565796,
0.8509964942932129,
-0.8822073936462402,
0.1775229424238205,
-1.315341830253601,
-0.1541832685470581,
-0.8442462682723999,
-1.148055911064148,
0.5694145560264587,
0.12077172845602036,
0.5053904056549072,
-0.67373126745224,
0.33302193880081177,
-2.182661771774292,
-1.358511209487915,
-0.18328914046287537,
-0.9144182801246643,
0.4749703109264374,
-0.37063178420066833,
0.6646251678466797,
-0.19281746447086334,
-0.009112067520618439,
0.298399955034256,
1.4669933319091797,
3.3608016967773438,
0.156439408659935,
0.2910473048686981,
-0.229988694190979,
-0.9453086256980896,
1.4571542739868164,
0.9117497205734253,
-0.18285633623600006,
-0.6098912954330444,
-0.9684095978736877,
1.2672107219696045,
1.9515023231506348,
1.0548961162567139,
0.06800094991922379,
-0.8680252432823181,
-0.8104864358901978,
0.050919633358716965,
0.1877395212650299,
0.39413249492645264,
0.9878641366958618,
0.10941906273365021,
0.07534850388765335,
1.4616159200668335,
1.1861076354980469,
-0.45743680000305176,
0.41873499751091003,
-0.9289270043373108,
-0.4378671646118164,
0.4414931833744049,
0.36640438437461853,
-0.024234667420387268,
0.31974831223487854,
-1.0585711002349854,
-0.20602034032344818,
-0.4243119955062866,
-0.8545917272567749,
-0.7804679870605469,
-0.3490414023399353,
-0.34072110056877136,
1.687918782234192,
0.03723427280783653,
-0.48698824644088745,
-0.026489615440368652,
-0.73957359790802,
-0.08884672820568085,
-1.0013283491134644,
0.30753293633461,
-0.08526338636875153,
-0.07279591262340546,
-0.06835813075304031,
1.7022149562835693,
-0.9295393824577332,
-2.157900333404541,
0.2098110467195511,
0.12746624648571014,
-0.3453635573387146,
0.1499471813440323,
1.7589423656463623,
0.5745561122894287,
1.4103214740753174,
1.378705620765686,
0.943461000919342,
-0.6686579585075378,
-1.3181774616241455,
0.6440845131874084,
0.974834680557251,
-1.3174877166748047,
0.8443287014961243,
-0.024508656933903694,
-0.5401769876480103,
0.6056205034255981,
1.27287757396698,
0.4518582820892334,
-2.0082385540008545,
0.7673564553260803,
-0.9025322198867798,
0.7994779944419861,
0.7344632744789124,
0.6949965357780457,
0.24321044981479645,
0.7964527010917664,
-1.2277692556381226,
-1.1428097486495972,
-0.7427358627319336,
-0.6434534788131714,
1.9308844804763794,
-0.24333803355693817,
0.5511427521705627,
-0.20599491894245148,
-1.307847499847412,
-0.03241711109876633,
0.7040289640426636,
0.4158724248409271,
-0.5165150165557861,
0.7760908603668213,
-0.6347554326057434,
-1.0284696817398071,
-1.3311280012130737,
-0.47566020488739014,
-1.0612229108810425,
-0.9216471314430237,
0.9986656308174133,
0.8373480439186096,
0.4237416982650757,
1.8728288412094116,
0.6720894575119019,
0.262056827545166,
-2.61793851852417,
0.9068019390106201,
0.31812775135040283,
-0.07023073732852936,
0.8770256638526917,
0.32649746537208557,
1.0295644998550415,
-0.04884772002696991,
0.5461926460266113,
-2.3732802867889404,
2.2790544033050537,
-0.20892702043056488,
0.6882443428039551,
-0.027987487614154816,
-0.07719910144805908,
1.0928740501403809,
0.5460933446884155,
0.5448655486106873,
-1.0912177562713623,
0.6984911561012268,
-0.5870112180709839,
1.2481865882873535,
0.8661444187164307,
-0.832393229007721,
0.008297632448375225,
1.4215043783187866,
0.46191930770874023,
-0.5789967179298401,
-0.9983506202697754,
-0.9771418571472168,
0.9539752006530762,
1.7262576818466187,
-0.0071027218364179134,
0.0007078098133206367,
0.8308913707733154,
0.6758944392204285,
-1.3140254020690918,
0.04702753946185112,
-0.7307502627372742,
-0.7014999985694885,
1.6929538249969482,
2.1018619537353516,
-0.15034238994121552,
-0.1973852664232254,
-0.6944520473480225,
-1.266925573348999,
0.8085362315177917,
-0.032993413507938385,
0.12563513219356537,
0.7290489673614502,
-0.6798292994499207,
1.1556036472320557,
0.8161929845809937,
0.8864642977714539,
0.22178587317466736,
0.23314505815505981,
0.3147867023944855,
-0.3347446024417877,
-1.2435917854309082,
-0.26155903935432434,
-1.1125410795211792,
-2.4558024406433105,
0.3983405530452728,
-0.1846059411764145,
-1.4499377012252808,
0.1031564325094223,
-1.0546783208847046,
0.8594232797622681,
-0.5189434289932251,
-1.082546353340149,
-1.4936497211456299,
0.2407497614622116,
-0.03102754056453705,
0.8804961442947388,
-1.5787936449050903,
-0.11766412854194641,
1.2224395275115967,
0.8940342664718628,
-0.6287935376167297,
0.9367140531539917,
0.21640941500663757,
0.988646924495697,
0.8883840441703796,
-0.36691564321517944,
0.47083520889282227,
0.0515877828001976,
-1.3410085439682007,
0.4654991924762726,
1.22034752368927,
0.17552122473716736,
1.4521737098693848,
-0.5647409558296204,
0.04859787970781326,
0.4155038297176361,
-0.44401034712791443,
-0.4716976583003998,
-0.6468805074691772,
0.6431151032447815,
-0.014903451316058636,
-0.8836303949356079,
-0.06566612422466278,
-0.027817122638225555,
-0.2585470676422119,
0.19459450244903564,
-1.4538452625274658,
-0.07346533983945847,
-0.3295220136642456,
-0.6729115843772888,
-1.2581143379211426,
-0.021944858133792877,
1.3392021656036377,
-0.8417215347290039,
-0.2229144424200058,
0.48847031593322754,
0.3066865801811218,
0.5674670934677124,
0.66264808177948,
-0.7484858632087708,
-0.3303103446960449,
-0.1776982843875885,
-0.30796781182289124,
0.3539605438709259,
1.3328484296798706,
-0.12304608523845673,
-0.9656686782836914,
0.6681694388389587,
-0.411545991897583,
0.12090080231428146,
1.9761013984680176,
0.09664060920476913,
-0.81367027759552,
0.2405811995267868,
-0.748721718788147,
1.9359536170959473,
1.7573769092559814,
1.3128221035003662,
-0.0785113051533699,
-0.9632324576377869,
0.6041918396949768,
-0.31958746910095215,
-0.3813343048095703,
0.9530579447746277,
0.3070664703845978,
-0.2499963790178299,
-1.393060326576233,
0.6268797516822815,
1.2835981845855713,
-0.8405106067657471,
-0.8202599287033081,
0.08529747277498245,
-0.8686796426773071,
1.1800616979599,
0.6495591402053833,
0.3133608400821686,
0.28831562399864197,
1.5973442792892456,
0.7924860119819641,
-0.44466057419776917,
0.531741201877594,
0.5032378435134888,
-0.17687766253948212,
-2.133767604827881,
-1.100441575050354,
0.3374687135219574,
-0.47771155834198,
-1.6010907888412476,
1.4241137504577637,
-1.2245903015136719,
-0.9652068614959717,
0.5856178402900696,
0.1059112548828125,
1.415679693222046,
0.25780412554740906,
1.6235325336456299,
2.063009023666382,
0.9177733063697815,
0.37766897678375244,
1.250038504600525,
-0.13850872218608856,
-0.4150726795196533,
1.7135009765625,
-0.4917965531349182,
0.5123907327651978,
1.0273042917251587,
-0.37555262446403503,
-1.12296724319458,
-0.7870620489120483,
-1.2233006954193115,
-0.7294167876243591,
1.1576117277145386,
0.13489429652690887,
-1.0898853540420532,
0.27028098702430725,
1.5616916418075562,
0.15324780344963074,
-0.32381778955459595,
0.6752203702926636,
0.40462711453437805,
-0.7291299700737,
-0.06609539687633514,
-0.9347150325775146,
0.5469716191291809,
-0.1878964602947235,
-0.36111000180244446,
0.337129682302475,
0.4706879258155823,
1.2777788639068604,
0.030386067926883698,
0.09480426460504532,
1.2284742593765259,
-1.4745427370071411,
1.4679630994796753,
-0.7421121001243591,
0.32817527651786804,
-2.4149434566497803,
1.4486278295516968,
-0.7887662649154663,
1.9034464359283447,
-2.665896415710449,
0.4633343517780304,
-0.5234641432762146,
-0.49891555309295654,
0.2495366781949997,
-0.2872045934200287,
0.15224505960941315,
-0.042651399970054626,
-1.15103018283844,
-0.1196955218911171,
-0.7997974157333374,
0.5632571578025818,
1.167074203491211,
1.3407198190689087,
-1.0861741304397583,
-0.25499585270881653,
-1.6935060024261475,
-0.1311236172914505,
-0.7062788605690002,
0.31218189001083374,
-1.9490303993225098,
-0.11802203953266144,
-1.8952078819274902,
-2.4530978202819824,
-1.3557051420211792,
-0.8094971776008606,
1.109567642211914,
0.18076132237911224,
-0.8636606335639954,
1.2274631261825562,
-0.4436599016189575,
-1.8590528964996338,
1.1836053133010864,
-2.216637134552002
] |
https://github.com/huggingface/datasets/issues/5337 | Support webdataset format | I like the idea of having `webdataset` as an optional dependency to ensure our loader generates web datasets the same way as the main project. | Webdataset is an efficient format for iterable datasets. It would be nice to support it in `datasets`, as discussed in https://github.com/rom1504/img2dataset/issues/234.
In particular it would be awesome to be able to load one using `load_dataset` in streaming mode (either from a local directory, or from a dataset on the Hugging Face Hub). Some datasets on the Hub are already in webdataset format.
It terms of implementation, we can have something similar to the Parquet loader.
I also think it's fine to have webdataset as an optional dependency. | 383 | 25 | Support webdataset format
Webdataset is an efficient format for iterable datasets. It would be nice to support it in `datasets`, as discussed in https://github.com/rom1504/img2dataset/issues/234.
In particular it would be awesome to be able to load one using `load_dataset` in streaming mode (either from a local directory, or from a dataset on the Hugging Face Hub). Some datasets on the Hub are already in webdataset format.
It terms of implementation, we can have something similar to the Parquet loader.
I also think it's fine to have webdataset as an optional dependency.
I like the idea of having `webdataset` as an optional dependency to ensure our loader generates web datasets the same way as the main project. | [
-1.1585583686828613,
-0.9291451573371887,
-0.9457713961601257,
1.511222243309021,
-0.28723976016044617,
-1.4082257747650146,
0.09250763058662415,
-1.1086831092834473,
1.6967360973358154,
-0.8459455370903015,
0.39014437794685364,
-1.738334059715271,
0.11118140071630478,
-0.4907057583332062,
-0.7585377097129822,
-1.0072811841964722,
-0.34524020552635193,
-0.8788687586784363,
1.0434201955795288,
2.526142120361328,
1.1114708185195923,
-1.348768711090088,
2.6891591548919678,
0.605743408203125,
-0.1878831535577774,
-1.039546012878418,
0.46740731596946716,
0.11900316923856735,
-1.1629118919372559,
-0.6457502841949463,
-0.8704966306686401,
0.06389974802732468,
-0.5050930380821228,
-0.6372485756874084,
0.12262295931577682,
0.2748376429080963,
-0.34387853741645813,
-0.427052766084671,
-0.5118590593338013,
-0.7819491624832153,
0.5377675890922546,
-0.3514079451560974,
1.0259082317352295,
-0.40585076808929443,
1.8946491479873657,
-0.3982181251049042,
0.3492833375930786,
0.6282541751861572,
1.3707536458969116,
0.2331102341413498,
0.009678680449724197,
0.2580503523349762,
0.33075183629989624,
-0.004802795592695475,
0.3600943982601166,
1.1470251083374023,
0.519031286239624,
0.517447292804718,
0.6903762221336365,
-2.1825225353240967,
1.4099200963974,
-1.046521544456482,
0.3102262020111084,
1.2686166763305664,
-0.9601578712463379,
0.375690758228302,
-1.6672183275222778,
-0.20240534842014313,
0.546063244342804,
-2.297506809234619,
0.2561948299407959,
-1.2893308401107788,
-0.41695359349250793,
0.8936339616775513,
0.16750457882881165,
-1.2765296697616577,
0.2940343916416168,
-0.43301576375961304,
0.9607798457145691,
0.6151665449142456,
1.1302025318145752,
-1.653773546218872,
0.14063356816768646,
-0.23452778160572052,
0.04524324834346771,
-1.3564964532852173,
-1.3901286125183105,
0.500778317451477,
0.6122466325759888,
0.7577368021011353,
-0.1380814164876938,
0.8907167315483093,
-0.9328504204750061,
0.8814921379089355,
-0.9450620412826538,
-1.5922894477844238,
-1.273433804512024,
-2.2950851917266846,
-2.378523349761963,
0.9352584481239319,
-0.5195938944816589,
-0.5771357417106628,
2.090507984161377,
-1.0245825052261353,
-1.7169222831726074,
1.2409101724624634,
0.2878398597240448,
0.028953557834029198,
2.428089141845703,
0.14867231249809265,
-0.6748567223548889,
0.4362119436264038,
-0.5813968777656555,
0.9641323685646057,
-0.39978647232055664,
1.437384009361267,
0.6338443756103516,
-1.0098977088928223,
1.5981924533843994,
-0.4180326759815216,
0.45233553647994995,
-0.6373369097709656,
-0.6024519801139832,
-0.9276326298713684,
0.34649717807769775,
1.8010610342025757,
-0.27312201261520386,
1.5601228475570679,
-0.36006295680999756,
-1.6200162172317505,
-1.4961601495742798,
0.9375301599502563,
0.5252084136009216,
-0.7451736927032471,
0.0868859812617302,
-0.3671203851699829,
0.03716542571783066,
0.1471617966890335,
1.1681084632873535,
1.1952860355377197,
0.6910247802734375,
-0.2354976087808609,
-0.8982008695602417,
0.2675277590751648,
-0.02941674180328846,
-0.5952014327049255,
-1.8702718019485474,
-0.3768458068370819,
0.224439337849617,
0.6367911100387573,
-1.290993571281433,
1.5853990316390991,
1.084464430809021,
1.9591522216796875,
1.0258268117904663,
-0.15802724659442902,
1.5325299501419067,
-0.12467166036367416,
1.842502236366272,
-0.5215839743614197,
0.6758198738098145,
-0.3284403383731842,
-1.1390324831008911,
0.7658578753471375,
-0.35353729128837585,
-1.9300527572631836,
-1.0146195888519287,
-0.8439074754714966,
-0.19677041471004486,
-0.60201096534729,
0.9917643666267395,
-0.392648309469223,
-1.3515892028808594,
0.20128270983695984,
-0.6488888263702393,
0.13284900784492493,
-1.1812255382537842,
0.28562822937965393,
0.7046573162078857,
-0.7462161183357239,
0.0379762127995491,
-0.21618053317070007,
-1.3554556369781494,
-0.5706242918968201,
0.3109050393104553,
1.9307588338851929,
-0.807172954082489,
0.9283012747764587,
1.013611078262329,
-0.752250611782074,
0.03603198379278183,
0.2926046848297119,
-0.30595505237579346,
0.6714074015617371,
-1.0214664936065674,
-0.36825019121170044,
1.2154269218444824,
-0.245473712682724,
-0.7204970717430115,
1.4553717374801636,
0.7975099682807922,
-0.9731515049934387,
-0.1414928138256073,
-0.22265216708183289,
-0.865597665309906,
-0.04988613724708557,
-1.486737847328186,
-0.14277522265911102,
0.27944815158843994,
-1.4600728750228882,
-0.46517592668533325,
-0.2936801016330719,
1.265628457069397,
-0.19481757283210754,
1.4552313089370728,
-0.37636512517929077,
-0.39483463764190674,
-0.36786141991615295,
-0.528785228729248,
0.22460493445396423,
-0.16208188235759735,
-0.7094890475273132,
0.2425333708524704,
-0.6949513554573059,
0.39877384901046753,
1.4057114124298096,
0.4269888997077942,
0.03419937938451767,
0.4903148412704468,
1.1772994995117188,
0.4549829661846161,
-0.042494237422943115,
-0.8678885698318481,
-1.551863670349121,
2.017310857772827,
-1.4611079692840576,
1.8922346830368042,
0.7858189940452576,
0.016749516129493713,
-1.6122496128082275,
-1.7786016464233398,
1.3301576375961304,
1.333579182624817,
2.33030366897583,
0.668378472328186,
0.23531652987003326,
-0.7716988921165466,
-0.7119869589805603,
0.3221089541912079,
-1.2292366027832031,
-0.7645995020866394,
0.08530521392822266,
2.4254910945892334,
1.8177119493484497,
-0.5810196399688721,
-0.24837061762809753,
-1.0108264684677124,
1.3453844785690308,
-0.16422143578529358,
0.2098303884267807,
1.989336371421814,
-0.29923215508461,
-1.082187533378601,
1.1719304323196411,
-2.3731720447540283,
0.11393298953771591,
2.026775360107422,
0.34262192249298096,
0.04988940805196762,
-1.5125008821487427,
-0.6324116587638855,
-0.20166543126106262,
-0.4365789294242859,
-1.229819893836975,
0.6575294137001038,
-0.3604903519153595,
-0.846998929977417,
-1.4270031452178955,
0.2181793451309204,
-1.1054469347000122,
-1.6894376277923584,
0.38488009572029114,
1.830037236213684,
2.1256449222564697,
-0.6341649889945984,
1.5858389139175415,
-0.3079986572265625,
0.3253557085990906,
1.251814365386963,
1.3518956899642944,
3.106635570526123,
1.8939913511276245,
-1.1791040897369385,
0.5743787884712219,
-0.12964516878128052,
-0.6937012076377869,
1.190063238143921,
-1.053506851196289,
1.2273967266082764,
-0.13540197908878326,
-1.2054502964019775,
-1.2441822290420532,
0.9554599523544312,
0.4911896586418152,
0.09837885200977325,
-0.5091331005096436,
1.1691498756408691,
0.06514357775449753,
1.2411433458328247,
0.4162798821926117,
-0.40791600942611694,
0.6529273986816406,
-0.4860185384750366,
-0.5964035391807556,
1.5377616882324219,
0.19795429706573486,
-1.4921597242355347,
-2.325324058532715,
-0.3276674449443817,
-0.8324153423309326,
-0.10545403510332108,
-0.4675556421279907,
-0.9567243456840515,
1.5623316764831543,
0.34369975328445435,
-1.3507237434387207,
-0.29636150598526,
-0.3487171530723572,
-0.6361585259437561,
2.6634418964385986,
-1.3963127136230469,
-0.18797962367534637,
-0.8341490626335144,
-0.6338447332382202,
1.735531210899353,
-1.1384673118591309,
-0.1611822545528412,
-1.092772364616394,
-0.547885000705719,
-1.470696210861206,
-0.6448080539703369,
-0.0541682094335556,
-0.9440312385559082,
0.6893544793128967,
0.09842109680175781,
-1.1139206886291504,
-0.27980539202690125,
-0.8394855856895447,
0.8609546422958374,
-0.055024534463882446,
0.30735471844673157,
1.857475996017456,
0.5134482383728027,
-0.4299356937408447,
0.6901840567588806,
1.1294037103652954,
0.5631195306777954,
-0.6556444764137268,
0.2579934895038605,
-0.7540931105613708,
0.21301747858524323,
-1.294392704963684,
0.27426180243492126,
-2.965367555618286,
0.6820098757743835,
-0.054776981472969055,
-0.16976958513259888,
-0.0234562698751688,
-1.2966392040252686,
1.1936620473861694,
2.6665101051330566,
-1.2256453037261963,
0.4369162917137146,
0.3282678723335266,
1.2061288356781006,
-1.6412640810012817,
0.3430784046649933,
-0.3854270875453949,
2.128441572189331,
0.17074279487133026,
1.2763391733169556,
-0.519230306148529,
-2.178861618041992,
0.6156576871871948,
-1.3476741313934326,
-1.161987543106079,
0.8014876842498779,
-1.01215660572052,
0.06374456733465195,
-1.3446192741394043,
-0.051959872245788574,
-0.7107504606246948,
-1.2380776405334473,
0.8704198598861694,
0.2144678682088852,
0.4102517366409302,
-0.6032607555389404,
0.39521852135658264,
-2.013576030731201,
-1.3051515817642212,
-0.28973275423049927,
-0.9847247004508972,
0.4994998574256897,
-0.3117726743221283,
0.600433349609375,
-0.26709213852882385,
0.15814152359962463,
0.3666509687900543,
1.3957781791687012,
3.381286144256592,
0.24842692911624908,
0.40386414527893066,
-0.07317785918712616,
-0.9253619909286499,
1.4963449239730835,
1.1444907188415527,
-0.1343151330947876,
-0.4765891134738922,
-0.9056379795074463,
1.1319743394851685,
1.9701483249664307,
1.0027525424957275,
0.06379204243421555,
-0.8184504508972168,
-0.6733438372612,
0.003609263338148594,
0.16495990753173828,
0.5103238224983215,
0.862186849117279,
0.023306632414460182,
0.07952091842889786,
1.4195995330810547,
1.122463345527649,
-0.5203239917755127,
0.427072674036026,
-0.84201580286026,
-0.5375577807426453,
0.4341624677181244,
0.3123720586299896,
-0.0743044912815094,
0.4400695562362671,
-0.8668482303619385,
-0.18743260204792023,
-0.3266834616661072,
-1.0176671743392944,
-0.7583644390106201,
-0.5417075157165527,
-0.4095625579357147,
1.630999207496643,
0.08824864774942398,
-0.4813550114631653,
0.0577135905623436,
-0.8231409192085266,
-0.13209514319896698,
-1.0571520328521729,
0.1652446836233139,
-0.04476487636566162,
-0.13812397420406342,
-0.04634057730436325,
1.7490812540054321,
-1.0816534757614136,
-2.1164708137512207,
0.2522865831851959,
0.17168664932250977,
-0.3069189190864563,
0.21271787583827972,
1.6011098623275757,
0.4610894024372101,
1.4939857721328735,
1.3378368616104126,
1.0295161008834839,
-0.746911883354187,
-1.3756356239318848,
0.6860342025756836,
0.9211862087249756,
-1.3490163087844849,
0.8508049845695496,
0.028649182990193367,
-0.457284539937973,
0.7042980194091797,
1.1916300058364868,
0.4083859622478485,
-1.9986399412155151,
0.8866158127784729,
-0.8941118121147156,
0.7305212616920471,
0.717661440372467,
0.6328395009040833,
0.17900513112545013,
0.8545560836791992,
-1.0583683252334595,
-1.1833337545394897,
-0.8663808703422546,
-0.678127646446228,
1.8233790397644043,
-0.20260097086429596,
0.6107985973358154,
-0.005862118676304817,
-1.2811322212219238,
-0.08251257240772247,
0.7427107095718384,
0.4339047074317932,
-0.453122615814209,
0.8048163056373596,
-0.7428141832351685,
-1.1407517194747925,
-1.5838348865509033,
-0.47924742102622986,
-0.9821761846542358,
-0.9964852929115295,
1.1107219457626343,
0.7893512845039368,
0.08500674366950989,
1.8774664402008057,
0.6415291428565979,
0.26719924807548523,
-2.7009050846099854,
0.8932066559791565,
0.23225964605808258,
-0.03881451487541199,
0.8410646915435791,
0.2896323502063751,
1.1159741878509521,
-0.02544069103896618,
0.534320056438446,
-2.29740047454834,
2.1999659538269043,
-0.256253719329834,
0.6264215111732483,
0.16116704046726227,
-0.24362221360206604,
1.1643556356430054,
0.5424747467041016,
0.6822129487991333,
-1.10740327835083,
0.7551614046096802,
-0.5313504338264465,
1.244641661643982,
1.0433456897735596,
-0.7644473910331726,
0.07266189903020859,
1.40483820438385,
0.49010875821113586,
-0.4718334674835205,
-1.0038371086120605,
-0.9869686365127563,
0.8752307891845703,
1.6883407831192017,
-0.1279604136943817,
-0.034017905592918396,
0.7696560025215149,
0.6717348694801331,
-1.2816226482391357,
0.009910570457577705,
-0.818385899066925,
-0.7771139144897461,
1.581848382949829,
1.9820365905761719,
-0.14389215409755707,
-0.29652097821235657,
-0.8398736715316772,
-0.96799635887146,
0.7481634020805359,
0.0005530724301934242,
0.10808397084474564,
0.6911728978157043,
-0.6095424294471741,
1.1780179738998413,
0.8887851238250732,
0.7665928602218628,
0.22505129873752594,
0.319038450717926,
0.35691577196121216,
-0.22468289732933044,
-1.0668089389801025,
-0.24850353598594666,
-1.1058428287506104,
-2.5571658611297607,
0.45039063692092896,
-0.32663455605506897,
-1.3681548833847046,
-0.08741708844900131,
-1.1186410188674927,
0.9024509787559509,
-0.5619999766349792,
-1.1165804862976074,
-1.496000051498413,
0.10352394729852676,
-0.17122215032577515,
0.8371062874794006,
-1.5944569110870361,
-0.019466295838356018,
1.2434308528900146,
0.9603307247161865,
-0.7950947284698486,
1.1689119338989258,
0.16514045000076294,
1.0622040033340454,
0.8655685782432556,
-0.5036110877990723,
0.5625671148300171,
0.08842016756534576,
-1.4527645111083984,
0.408154159784317,
1.087161898612976,
0.14121605455875397,
1.4100794792175293,
-0.6283921599388123,
0.10394257307052612,
0.48810791969299316,
-0.5423306822776794,
-0.47337040305137634,
-0.6378137469291687,
0.8324883580207825,
0.04967174679040909,
-0.8744574785232544,
0.1563309133052826,
-0.1775551736354828,
-0.30425095558166504,
0.2514649033546448,
-1.5533846616744995,
-0.315304696559906,
-0.2827860414981842,
-0.5088365077972412,
-1.1666678190231323,
0.0651460811495781,
1.4321130514144897,
-0.7372422814369202,
-0.25940316915512085,
0.42306023836135864,
0.4476318359375,
0.5235746502876282,
0.5790605545043945,
-0.7720296382904053,
-0.28772541880607605,
-0.2604503929615021,
-0.27758121490478516,
0.4279276430606842,
1.3737941980361938,
-0.10390961170196533,
-0.980433464050293,
0.8117627501487732,
-0.30050745606422424,
0.07094882428646088,
1.9543218612670898,
0.01852988824248314,
-0.8171426653862,
0.29111868143081665,
-0.7738770842552185,
1.8981140851974487,
1.7304702997207642,
1.2579550743103027,
-0.14085553586483002,
-0.9617322683334351,
0.6466150879859924,
-0.2761364281177521,
-0.3054727613925934,
0.8942362666130066,
0.47407272458076477,
-0.08347497880458832,
-1.3617119789123535,
0.5450506210327148,
1.290076494216919,
-0.7276619672775269,
-0.793311357498169,
0.03194653242826462,
-0.8358263373374939,
1.0147476196289062,
0.7257453203201294,
0.4371103048324585,
0.06466790288686752,
1.6439741849899292,
0.6291515231132507,
-0.4120473861694336,
0.5278476476669312,
0.5120518207550049,
-0.19266512989997864,
-2.12538480758667,
-1.1330626010894775,
0.3105987310409546,
-0.259408175945282,
-1.6446316242218018,
1.3503849506378174,
-1.196117639541626,
-0.8972709774971008,
0.6043861508369446,
-0.03762452304363251,
1.5785655975341797,
0.27068331837654114,
1.5649889707565308,
2.1307053565979004,
0.9225372076034546,
0.21969716250896454,
1.3588756322860718,
-0.13137105107307434,
-0.4908154308795929,
1.797072410583496,
-0.43073728680610657,
0.4670634865760803,
0.9735962152481079,
-0.4087297022342682,
-1.0282121896743774,
-0.7504131197929382,
-1.0873830318450928,
-0.597169816493988,
1.1203819513320923,
0.2616713345050812,
-1.158149242401123,
0.30659663677215576,
1.551769495010376,
0.08588961511850357,
-0.3894615173339844,
0.5612511038780212,
0.47640103101730347,
-0.6866228580474854,
0.018830373883247375,
-0.9713656306266785,
0.41797375679016113,
-0.14054785668849945,
-0.3239676356315613,
0.33978888392448425,
0.33528560400009155,
1.1980679035186768,
-0.020690035074949265,
0.27703914046287537,
1.194575309753418,
-1.296498417854309,
1.3827569484710693,
-0.5739550590515137,
0.25935184955596924,
-2.3997342586517334,
1.4981663227081299,
-0.8990092873573303,
1.8815791606903076,
-2.6037960052490234,
0.3283563256263733,
-0.5792897939682007,
-0.4734567701816559,
0.37338191270828247,
-0.4002419710159302,
0.20564299821853638,
-0.12133657932281494,
-1.0287874937057495,
-0.018529314547777176,
-0.7259957790374756,
0.563630223274231,
1.1225553750991821,
1.1312944889068604,
-1.1080306768417358,
-0.3994942605495453,
-1.7633394002914429,
-0.20241205394268036,
-0.6667179465293884,
0.35211777687072754,
-2.102651834487915,
-0.3024788796901703,
-1.9316856861114502,
-2.347813844680786,
-1.383780837059021,
-0.7885337471961975,
1.0779428482055664,
0.36222654581069946,
-0.8239777684211731,
1.141426920890808,
-0.35903459787368774,
-1.7631103992462158,
1.1289584636688232,
-2.0278539657592773
] |
https://github.com/huggingface/datasets/issues/5337 | Support webdataset format | Webdataset is the one of the most popular dataset formats for large scale computer vision tasks. Upvote for this issue. | Webdataset is an efficient format for iterable datasets. It would be nice to support it in `datasets`, as discussed in https://github.com/rom1504/img2dataset/issues/234.
In particular it would be awesome to be able to load one using `load_dataset` in streaming mode (either from a local directory, or from a dataset on the Hugging Face Hub). Some datasets on the Hub are already in webdataset format.
It terms of implementation, we can have something similar to the Parquet loader.
I also think it's fine to have webdataset as an optional dependency. | 383 | 20 | Support webdataset format
Webdataset is an efficient format for iterable datasets. It would be nice to support it in `datasets`, as discussed in https://github.com/rom1504/img2dataset/issues/234.
In particular it would be awesome to be able to load one using `load_dataset` in streaming mode (either from a local directory, or from a dataset on the Hugging Face Hub). Some datasets on the Hub are already in webdataset format.
It terms of implementation, we can have something similar to the Parquet loader.
I also think it's fine to have webdataset as an optional dependency.
Webdataset is the one of the most popular dataset formats for large scale computer vision tasks. Upvote for this issue. | [
-1.1678622961044312,
-0.9333143830299377,
-0.9526174068450928,
1.5264627933502197,
-0.2599416971206665,
-1.4019267559051514,
0.1297958940267563,
-1.1392103433609009,
1.6976109743118286,
-0.7957373261451721,
0.3557114601135254,
-1.7333347797393799,
0.1317697912454605,
-0.48345568776130676,
-0.7707659006118774,
-1.0332976579666138,
-0.3583659827709198,
-0.8812593221664429,
1.044683814048767,
2.531013250350952,
1.1660354137420654,
-1.305219292640686,
2.691817283630371,
0.6216984987258911,
-0.19713431596755981,
-1.0690091848373413,
0.48665305972099304,
0.11212877929210663,
-1.1423636674880981,
-0.6099986433982849,
-0.8525105714797974,
0.030278204008936882,
-0.4884621500968933,
-0.6271740198135376,
0.04855036735534668,
0.3145655393600464,
-0.34342506527900696,
-0.3931725025177002,
-0.48883509635925293,
-0.7750966548919678,
0.5329790115356445,
-0.3490559458732605,
1.0420926809310913,
-0.4348907172679901,
1.8612092733383179,
-0.3682098388671875,
0.388621985912323,
0.6241841912269592,
1.370125412940979,
0.23879213631153107,
0.0012658508494496346,
0.24388884007930756,
0.3452388346195221,
-0.015005337074398994,
0.3695377707481384,
1.1273932456970215,
0.5717257261276245,
0.49814578890800476,
0.6753469705581665,
-2.157686471939087,
1.4165936708450317,
-1.0484310388565063,
0.32461312413215637,
1.2924729585647583,
-0.941608726978302,
0.36934682726860046,
-1.6730153560638428,
-0.21139919757843018,
0.5778673887252808,
-2.281068801879883,
0.24532450735569,
-1.2832123041152954,
-0.4110826849937439,
0.9303428530693054,
0.18526974320411682,
-1.2765445709228516,
0.28480884432792664,
-0.4314687252044678,
0.993843138217926,
0.6245837807655334,
1.1475690603256226,
-1.6402521133422852,
0.16038945317268372,
-0.2768796384334564,
0.042329736053943634,
-1.353671669960022,
-1.377854824066162,
0.4977005422115326,
0.6346262693405151,
0.7735603451728821,
-0.09747233241796494,
0.8479796051979065,
-0.9469133019447327,
0.8878029584884644,
-0.958741307258606,
-1.6084591150283813,
-1.2724502086639404,
-2.342984199523926,
-2.3976247310638428,
0.9201030731201172,
-0.4925534427165985,
-0.5925704836845398,
2.064275026321411,
-1.025316834449768,
-1.7434017658233643,
1.2326223850250244,
0.274349570274353,
0.02917751483619213,
2.4485204219818115,
0.11352283507585526,
-0.7054392695426941,
0.4570592939853668,
-0.577473521232605,
0.9122582674026489,
-0.40783175826072693,
1.4857118129730225,
0.6288917064666748,
-1.0192856788635254,
1.587735652923584,
-0.4532201290130615,
0.4565702974796295,
-0.62123703956604,
-0.6258760094642639,
-0.9081887006759644,
0.3292664587497711,
1.7899078130722046,
-0.3056047856807709,
1.5830955505371094,
-0.38896164298057556,
-1.5963281393051147,
-1.520933985710144,
0.8901904225349426,
0.5002841353416443,
-0.7338533997535706,
0.06854353845119476,
-0.34297260642051697,
0.035235852003097534,
0.13420237600803375,
1.1228231191635132,
1.204683780670166,
0.6972200274467468,
-0.2829333543777466,
-0.9448192715644836,
0.27553337812423706,
-0.03548659756779671,
-0.6119910478591919,
-1.8448277711868286,
-0.36758822202682495,
0.2062162458896637,
0.6906293034553528,
-1.2716666460037231,
1.5295217037200928,
1.0309466123580933,
1.9683568477630615,
1.0268373489379883,
-0.2302902340888977,
1.5267139673233032,
-0.11237338930368423,
1.798907995223999,
-0.5560261607170105,
0.6739290356636047,
-0.29772526025772095,
-1.1336185932159424,
0.7419122457504272,
-0.34230372309684753,
-1.935408353805542,
-1.0154433250427246,
-0.8449383974075317,
-0.15868325531482697,
-0.6631568670272827,
1.0057640075683594,
-0.3482208847999573,
-1.3281848430633545,
0.26157936453819275,
-0.6892945170402527,
0.13919757306575775,
-1.217809796333313,
0.3309766948223114,
0.7104607820510864,
-0.7033841609954834,
0.036353565752506256,
-0.19821453094482422,
-1.383516550064087,
-0.5616933107376099,
0.26977813243865967,
1.9144423007965088,
-0.7945084571838379,
0.9109218120574951,
1.0170834064483643,
-0.7600736618041992,
-0.007012011017650366,
0.29850640892982483,
-0.25732994079589844,
0.7032051086425781,
-1.0010437965393066,
-0.4143550992012024,
1.1865836381912231,
-0.21229691803455353,
-0.7019150257110596,
1.4663323163986206,
0.8046881556510925,
-0.9567068815231323,
-0.11994286626577377,
-0.1970483958721161,
-0.8389894962310791,
-0.07002244889736176,
-1.5380516052246094,
-0.15647688508033752,
0.2745497524738312,
-1.4808558225631714,
-0.41956833004951477,
-0.27415651082992554,
1.2599694728851318,
-0.17711277306079865,
1.4395091533660889,
-0.3561646342277527,
-0.37042492628097534,
-0.36388763785362244,
-0.5057811737060547,
0.1997423768043518,
-0.14711108803749084,
-0.7177546620368958,
0.21986186504364014,
-0.7097664475440979,
0.4110197424888611,
1.3720825910568237,
0.44333353638648987,
0.0227204579859972,
0.5034294128417969,
1.1490545272827148,
0.47627490758895874,
-0.08597461134195328,
-0.8315325975418091,
-1.5151902437210083,
2.045477867126465,
-1.4210678339004517,
1.8929316997528076,
0.7792604565620422,
-0.036234915256500244,
-1.6332826614379883,
-1.7798869609832764,
1.3318803310394287,
1.3464171886444092,
2.3164238929748535,
0.6723408102989197,
0.24974282085895538,
-0.8046696782112122,
-0.7045747637748718,
0.2961089313030243,
-1.2322189807891846,
-0.7417657375335693,
0.07431891560554504,
2.4084012508392334,
1.8301399946212769,
-0.5709497332572937,
-0.21395178139209747,
-1.055293083190918,
1.3508390188217163,
-0.15122802555561066,
0.18359404802322388,
1.9841620922088623,
-0.29198190569877625,
-1.0806094408035278,
1.1851496696472168,
-2.3653507232666016,
0.12816664576530457,
2.0288610458374023,
0.3714625835418701,
0.04340686649084091,
-1.5357917547225952,
-0.5850623250007629,
-0.2588883936405182,
-0.40349993109703064,
-1.211262583732605,
0.7166796326637268,
-0.35351231694221497,
-0.8431808948516846,
-1.4667837619781494,
0.1924193799495697,
-1.0795363187789917,
-1.6783243417739868,
0.4241154193878174,
1.805088996887207,
2.0716652870178223,
-0.6510035395622253,
1.5872541666030884,
-0.2425636351108551,
0.32453563809394836,
1.2546613216400146,
1.3396885395050049,
3.1038410663604736,
1.915686011314392,
-1.146530032157898,
0.572139322757721,
-0.14953553676605225,
-0.6671484112739563,
1.1540189981460571,
-1.1063719987869263,
1.280130386352539,
-0.14609575271606445,
-1.2472304105758667,
-1.2257522344589233,
0.9702612161636353,
0.4736492335796356,
0.068817637860775,
-0.5296489596366882,
1.1826876401901245,
0.08387088030576706,
1.2767802476882935,
0.41128578782081604,
-0.3791612684726715,
0.6736660003662109,
-0.4917553663253784,
-0.5979247689247131,
1.5364609956741333,
0.19777421653270721,
-1.5143522024154663,
-2.3028147220611572,
-0.3291943669319153,
-0.8053323030471802,
-0.13140898942947388,
-0.4646849036216736,
-0.9675368070602417,
1.5814932584762573,
0.3820558786392212,
-1.3796393871307373,
-0.32651522755622864,
-0.36034533381462097,
-0.6464716792106628,
2.7129199504852295,
-1.3879748582839966,
-0.16242487728595734,
-0.8499383926391602,
-0.6337988972663879,
1.7515318393707275,
-1.171942114830017,
-0.16343940794467926,
-1.0584911108016968,
-0.6059972643852234,
-1.4809372425079346,
-0.6508224606513977,
-0.07620786130428314,
-0.9463708400726318,
0.6586018204689026,
0.15449321269989014,
-1.0758949518203735,
-0.3247149884700775,
-0.7992146611213684,
0.8687904477119446,
-0.0715610682964325,
0.2737026512622833,
1.8679530620574951,
0.509312629699707,
-0.3887583017349243,
0.6845076084136963,
1.1306508779525757,
0.5426815748214722,
-0.6376210451126099,
0.23612737655639648,
-0.7855127453804016,
0.24282671511173248,
-1.2693777084350586,
0.235947847366333,
-2.957523822784424,
0.6734901666641235,
-0.07264954596757889,
-0.13517020642757416,
-0.026170585304498672,
-1.2886818647384644,
1.2422668933868408,
2.662268877029419,
-1.235146164894104,
0.4603259563446045,
0.3407210409641266,
1.1668624877929688,
-1.6113425493240356,
0.3678848445415497,
-0.420372873544693,
2.167588949203491,
0.16891217231750488,
1.2988085746765137,
-0.5482929348945618,
-2.166210889816284,
0.6441482305526733,
-1.3282415866851807,
-1.137721061706543,
0.7604928016662598,
-1.0488812923431396,
0.09356483817100525,
-1.3445225954055786,
-0.06031213700771332,
-0.7452569007873535,
-1.2597211599349976,
0.8963385820388794,
0.20784959197044373,
0.39590463042259216,
-0.5842078328132629,
0.40640920400619507,
-2.024595022201538,
-1.3335044384002686,
-0.2953979969024658,
-0.9983136653900146,
0.48274344205856323,
-0.3273092210292816,
0.5879808664321899,
-0.22928676009178162,
0.09926153719425201,
0.3566286861896515,
1.323927879333496,
3.3630967140197754,
0.280619740486145,
0.4102826714515686,
-0.07394338399171829,
-0.9997539520263672,
1.495705485343933,
1.0830620527267456,
-0.13303148746490479,
-0.47370776534080505,
-0.9005182385444641,
1.1305888891220093,
1.9328656196594238,
0.9894729852676392,
0.07101059705018997,
-0.8605605959892273,
-0.6619325876235962,
0.043425023555755615,
0.22754666209220886,
0.5017781257629395,
0.8902827501296997,
-0.006263572722673416,
0.10377330332994461,
1.4599671363830566,
1.1308386325836182,
-0.5224753618240356,
0.42061847448349,
-0.852906346321106,
-0.5742905139923096,
0.43447133898735046,
0.29166120290756226,
-0.12197300046682358,
0.4639616012573242,
-0.894126832485199,
-0.1743144541978836,
-0.29977473616600037,
-0.9808353781700134,
-0.7355546355247498,
-0.531614363193512,
-0.3901062309741974,
1.6431822776794434,
0.10408028960227966,
-0.5325523018836975,
0.08970189839601517,
-0.8731569647789001,
-0.13811160624027252,
-1.0475291013717651,
0.17214204370975494,
-0.04277428984642029,
-0.15189611911773682,
-0.07844267040491104,
1.804286003112793,
-1.0583149194717407,
-2.1492230892181396,
0.29969632625579834,
0.20565257966518402,
-0.27174729108810425,
0.19037824869155884,
1.5625603199005127,
0.4549891948699951,
1.5294220447540283,
1.2735222578048706,
1.0339504480361938,
-0.7778788208961487,
-1.4173901081085205,
0.6941898465156555,
0.936928391456604,
-1.3372371196746826,
0.8521196842193604,
0.024105923250317574,
-0.45626139640808105,
0.6619793772697449,
1.1735173463821411,
0.3978946805000305,
-1.990472674369812,
0.9055184125900269,
-0.8918284177780151,
0.7444454431533813,
0.7304679751396179,
0.6670506000518799,
0.17447517812252045,
0.858923077583313,
-1.0882487297058105,
-1.159785509109497,
-0.8375236392021179,
-0.6597919464111328,
1.8015812635421753,
-0.19933460652828217,
0.7090619206428528,
0.01190536841750145,
-1.3228874206542969,
-0.07721830159425735,
0.7328740954399109,
0.4152193069458008,
-0.47171634435653687,
0.8122749328613281,
-0.7264458537101746,
-1.146342158317566,
-1.5765272378921509,
-0.4821487367153168,
-0.9595865607261658,
-0.987162172794342,
1.1272151470184326,
0.7806428074836731,
0.07956869900226593,
1.840956687927246,
0.5903108716011047,
0.2774238884449005,
-2.763439655303955,
0.910952627658844,
0.21749310195446014,
-0.03763347119092941,
0.822540283203125,
0.33849138021469116,
1.0907288789749146,
0.014114134013652802,
0.5045509338378906,
-2.2928755283355713,
2.1882522106170654,
-0.27835628390312195,
0.6492645740509033,
0.11881284415721893,
-0.26331567764282227,
1.1750484704971313,
0.5507892370223999,
0.6968709826469421,
-1.0888171195983887,
0.7639926671981812,
-0.5225828289985657,
1.2813971042633057,
1.0684287548065186,
-0.7430132031440735,
0.05136320739984512,
1.4047950506210327,
0.5287777185440063,
-0.4393918216228485,
-1.0088547468185425,
-0.971757173538208,
0.8932965397834778,
1.6583523750305176,
-0.11333112418651581,
-0.01747463457286358,
0.7772763967514038,
0.6903122067451477,
-1.3014005422592163,
0.013224216178059578,
-0.8597564101219177,
-0.7218883037567139,
1.5845348834991455,
2.013317108154297,
-0.12755241990089417,
-0.3329581320285797,
-0.8190106153488159,
-0.9606528282165527,
0.7268211841583252,
0.002927570603787899,
0.1286868155002594,
0.6937959790229797,
-0.6410657167434692,
1.1538715362548828,
0.8964626789093018,
0.7798030972480774,
0.22416827082633972,
0.316324383020401,
0.3067774772644043,
-0.16893762350082397,
-1.0847530364990234,
-0.18002532422542572,
-1.1445406675338745,
-2.5803897380828857,
0.40537771582603455,
-0.3383486568927765,
-1.3305176496505737,
-0.04530806839466095,
-1.1075935363769531,
0.8617476224899292,
-0.5418124198913574,
-1.0976574420928955,
-1.4978225231170654,
0.10037513077259064,
-0.13102808594703674,
0.8657069206237793,
-1.6155635118484497,
-0.02842898480594158,
1.2628676891326904,
0.9506495594978333,
-0.7456504702568054,
1.155600666999817,
0.22626256942749023,
1.0832850933074951,
0.8603395819664001,
-0.489543616771698,
0.5623595714569092,
0.07729307562112808,
-1.4520424604415894,
0.3984656035900116,
1.0823363065719604,
0.1824960559606552,
1.407903790473938,
-0.6325340867042542,
0.1100311279296875,
0.5084236264228821,
-0.578811764717102,
-0.4525914192199707,
-0.6123682260513306,
0.8382640480995178,
0.09508217871189117,
-0.8469312787055969,
0.15288692712783813,
-0.20843230187892914,
-0.2958967983722687,
0.27046069502830505,
-1.5715206861495972,
-0.319471150636673,
-0.2953763008117676,
-0.5393891334533691,
-1.172593355178833,
0.03758171945810318,
1.4202518463134766,
-0.73685622215271,
-0.2591196596622467,
0.3934135437011719,
0.46825650334358215,
0.5696024894714355,
0.5702565312385559,
-0.7592388391494751,
-0.3394657373428345,
-0.25348079204559326,
-0.2273481786251068,
0.39436009526252747,
1.3408315181732178,
-0.14795054495334625,
-1.0148837566375732,
0.8383963108062744,
-0.3020115792751312,
0.03233296424150467,
1.9619419574737549,
0.028896396979689598,
-0.7955068945884705,
0.2837161719799042,
-0.7695046663284302,
1.8931301832199097,
1.682410478591919,
1.286858081817627,
-0.17508821189403534,
-0.9319180250167847,
0.6055223941802979,
-0.24569380283355713,
-0.3261815905570984,
0.8356961607933044,
0.4629272222518921,
-0.05626695603132248,
-1.350430965423584,
0.5576867461204529,
1.2732383012771606,
-0.7802485823631287,
-0.7873221635818481,
0.03434302657842636,
-0.8214991688728333,
1.0517250299453735,
0.6860713958740234,
0.4331664443016052,
0.1006973385810852,
1.6443595886230469,
0.6316152215003967,
-0.4011051654815674,
0.5300270318984985,
0.5188553929328918,
-0.21611174941062927,
-2.1241111755371094,
-1.0758411884307861,
0.27307313680648804,
-0.28532207012176514,
-1.5896296501159668,
1.3301844596862793,
-1.2236385345458984,
-0.9073713421821594,
0.5610883235931396,
-0.005894015543162823,
1.566327452659607,
0.2850947976112366,
1.5429794788360596,
2.116854667663574,
0.9470005631446838,
0.2182600200176239,
1.3593740463256836,
-0.15046656131744385,
-0.4505344033241272,
1.786775827407837,
-0.42556264996528625,
0.4880855083465576,
1.0098437070846558,
-0.40733155608177185,
-1.0069056749343872,
-0.7605494260787964,
-1.1251598596572876,
-0.5682284832000732,
1.137914776802063,
0.2547757625579834,
-1.1474096775054932,
0.3561796247959137,
1.4975714683532715,
0.06630608439445496,
-0.4047146141529083,
0.5179327130317688,
0.4835340678691864,
-0.6599165797233582,
-0.0009304559789597988,
-0.9395894408226013,
0.4130762815475464,
-0.17637257277965546,
-0.329050213098526,
0.3158711791038513,
0.2926439940929413,
1.2012845277786255,
-0.021181181073188782,
0.30174651741981506,
1.1582835912704468,
-1.358407974243164,
1.3790559768676758,
-0.5544902682304382,
0.2631220519542694,
-2.405090808868408,
1.4795069694519043,
-0.8643162846565247,
1.9133220911026,
-2.6324362754821777,
0.3644121587276459,
-0.5807359218597412,
-0.4660744369029999,
0.3636028468608856,
-0.42907193303108215,
0.18253368139266968,
-0.14954383671283722,
-1.026970624923706,
-0.039605386555194855,
-0.74152010679245,
0.5209881663322449,
1.1132150888442993,
1.1226511001586914,
-1.081628441810608,
-0.38108396530151367,
-1.7273998260498047,
-0.1704867035150528,
-0.6822099685668945,
0.3620305061340332,
-2.096036911010742,
-0.2678304612636566,
-1.9557362794876099,
-2.3768372535705566,
-1.3160611391067505,
-0.7895835041999817,
1.0675055980682373,
0.3512308895587921,
-0.8395493626594543,
1.12809157371521,
-0.3551997244358063,
-1.7684462070465088,
1.1130634546279907,
-2.0559496879577637
] |
https://github.com/huggingface/datasets/issues/5337 | Support webdataset format | We haven't had the bandwidth to implement it so far, but if someone wants to give it a shot please don't hesitate ^^ | Webdataset is an efficient format for iterable datasets. It would be nice to support it in `datasets`, as discussed in https://github.com/rom1504/img2dataset/issues/234.
In particular it would be awesome to be able to load one using `load_dataset` in streaming mode (either from a local directory, or from a dataset on the Hugging Face Hub). Some datasets on the Hub are already in webdataset format.
It terms of implementation, we can have something similar to the Parquet loader.
I also think it's fine to have webdataset as an optional dependency. | 383 | 23 | Support webdataset format
Webdataset is an efficient format for iterable datasets. It would be nice to support it in `datasets`, as discussed in https://github.com/rom1504/img2dataset/issues/234.
In particular it would be awesome to be able to load one using `load_dataset` in streaming mode (either from a local directory, or from a dataset on the Hugging Face Hub). Some datasets on the Hub are already in webdataset format.
It terms of implementation, we can have something similar to the Parquet loader.
I also think it's fine to have webdataset as an optional dependency.
We haven't had the bandwidth to implement it so far, but if someone wants to give it a shot please don't hesitate ^^ | [
-1.1931383609771729,
-0.9310227632522583,
-0.9216461777687073,
1.5134222507476807,
-0.2293902337551117,
-1.3462190628051758,
0.0987570658326149,
-1.08004629611969,
1.7124196290969849,
-0.8611600399017334,
0.37386053800582886,
-1.7161235809326172,
0.1091696247458458,
-0.5106855630874634,
-0.7801607847213745,
-0.961236834526062,
-0.37087342143058777,
-0.8831650614738464,
1.049330472946167,
2.536808967590332,
1.120208501815796,
-1.4103059768676758,
2.6873252391815186,
0.6291101574897766,
-0.1517765372991562,
-1.0404235124588013,
0.45365482568740845,
0.09194403141736984,
-1.1350737810134888,
-0.6149193644523621,
-0.8871047496795654,
0.037020232528448105,
-0.4858458340167999,
-0.6181076169013977,
0.05086551234126091,
0.25430500507354736,
-0.3099654018878937,
-0.34312108159065247,
-0.514064610004425,
-0.7496877908706665,
0.515662670135498,
-0.38552579283714294,
1.0302324295043945,
-0.4158862233161926,
1.8700993061065674,
-0.3473682105541229,
0.356488972902298,
0.6363930106163025,
1.40670645236969,
0.24310451745986938,
0.015251313336193562,
0.2904680669307709,
0.30756238102912903,
-0.06731485575437546,
0.3950623571872711,
1.0804295539855957,
0.5629115104675293,
0.5034999847412109,
0.6664423942565918,
-2.210965394973755,
1.4364567995071411,
-1.0817192792892456,
0.30559223890304565,
1.2613142728805542,
-0.8977183699607849,
0.33836397528648376,
-1.6782084703445435,
-0.13666419684886932,
0.593313992023468,
-2.311582565307617,
0.27926909923553467,
-1.244795799255371,
-0.40652376413345337,
0.953804612159729,
0.1731407791376114,
-1.2398053407669067,
0.2721264362335205,
-0.4208603799343109,
0.974553644657135,
0.5542446970939636,
1.12236750125885,
-1.6557401418685913,
0.14313045144081116,
-0.26228341460227966,
0.1047516018152237,
-1.32425856590271,
-1.4162474870681763,
0.5035682916641235,
0.6050321459770203,
0.7379660606384277,
-0.10519050806760788,
0.8862410187721252,
-0.9280943870544434,
0.8154357671737671,
-0.9737794995307922,
-1.5412317514419556,
-1.3058439493179321,
-2.28695011138916,
-2.398482084274292,
0.892453134059906,
-0.5657424926757812,
-0.5829490423202515,
2.093533515930176,
-1.0020145177841187,
-1.713602066040039,
1.2317003011703491,
0.274254709482193,
0.045841772109270096,
2.4671239852905273,
0.07402894645929337,
-0.6817513704299927,
0.5137315988540649,
-0.6069187521934509,
0.9664083123207092,
-0.4295850992202759,
1.5078136920928955,
0.5952735543251038,
-0.9830383658409119,
1.583418846130371,
-0.4281693994998932,
0.46325793862342834,
-0.627656877040863,
-0.6361458897590637,
-0.9527900218963623,
0.36139339208602905,
1.822332501411438,
-0.2580023407936096,
1.574711561203003,
-0.39209556579589844,
-1.6314762830734253,
-1.5217763185501099,
0.9411767721176147,
0.5334100127220154,
-0.8058364391326904,
0.07999395579099655,
-0.39264944195747375,
0.05337395519018173,
0.09659051895141602,
1.1126099824905396,
1.2320048809051514,
0.6718825697898865,
-0.23940099775791168,
-0.9685047268867493,
0.253728985786438,
-0.10185908526182175,
-0.574259877204895,
-1.8695443868637085,
-0.39781805872917175,
0.1804054081439972,
0.6481702327728271,
-1.3120925426483154,
1.5944257974624634,
1.044296145439148,
1.9951450824737549,
1.0154818296432495,
-0.21862463653087616,
1.5356132984161377,
-0.06701254099607468,
1.8520824909210205,
-0.5289956331253052,
0.6495881676673889,
-0.33101046085357666,
-1.1477205753326416,
0.7715763449668884,
-0.3864223062992096,
-1.8968803882598877,
-1.0171047449111938,
-0.8192235827445984,
-0.20441678166389465,
-0.6450071334838867,
0.976951539516449,
-0.34278029203414917,
-1.3363852500915527,
0.25596415996551514,
-0.6410310864448547,
0.19244107604026794,
-1.1971153020858765,
0.33568674325942993,
0.7032521963119507,
-0.7643954157829285,
0.019242290407419205,
-0.23899851739406586,
-1.374547004699707,
-0.5171382427215576,
0.3334870934486389,
1.9572336673736572,
-0.7759078741073608,
0.8647885918617249,
1.0663142204284668,
-0.724984347820282,
-0.004756784066557884,
0.29956287145614624,
-0.2831711173057556,
0.6653120517730713,
-1.0400830507278442,
-0.39218801259994507,
1.2553486824035645,
-0.24540413916110992,
-0.6981355547904968,
1.463392734527588,
0.7954038381576538,
-0.9864634275436401,
-0.12357030063867569,
-0.18079546093940735,
-0.8320428133010864,
-0.029911302030086517,
-1.5160212516784668,
-0.15254434943199158,
0.2701913118362427,
-1.4666788578033447,
-0.4561285972595215,
-0.29814600944519043,
1.2231782674789429,
-0.21302735805511475,
1.436292052268982,
-0.36429479718208313,
-0.31998148560523987,
-0.36759480834007263,
-0.49115851521492004,
0.18908755481243134,
-0.18067890405654907,
-0.7456510066986084,
0.21476061642169952,
-0.7114405035972595,
0.44174516201019287,
1.4086730480194092,
0.4219883978366852,
-0.0017268634401261806,
0.4708362817764282,
1.171523094177246,
0.4745253026485443,
-0.03715122491121292,
-0.8552131652832031,
-1.525989055633545,
2.011977434158325,
-1.4627182483673096,
1.8918774127960205,
0.7863678336143494,
-0.02447180077433586,
-1.629424810409546,
-1.7370320558547974,
1.324615240097046,
1.3303217887878418,
2.329202651977539,
0.6573138236999512,
0.24690085649490356,
-0.8178266882896423,
-0.686482310295105,
0.3127005398273468,
-1.1950008869171143,
-0.79216468334198,
0.08942943066358566,
2.4123620986938477,
1.799919605255127,
-0.53351891040802,
-0.18286101520061493,
-0.9882961511611938,
1.3323280811309814,
-0.18768984079360962,
0.24365147948265076,
1.951582908630371,
-0.24794550240039825,
-1.1350394487380981,
1.1880401372909546,
-2.4141581058502197,
0.14860141277313232,
2.0096540451049805,
0.3634990155696869,
0.08078961819410324,
-1.5226527452468872,
-0.6078720688819885,
-0.24345234036445618,
-0.3724604547023773,
-1.2543319463729858,
0.662534236907959,
-0.3177942931652069,
-0.8664756417274475,
-1.4673482179641724,
0.2470608949661255,
-1.1135464906692505,
-1.65274178981781,
0.3837698996067047,
1.8550591468811035,
2.1088967323303223,
-0.6728744506835938,
1.5430943965911865,
-0.27469921112060547,
0.31433162093162537,
1.2346539497375488,
1.2884453535079956,
3.0923147201538086,
1.9225856065750122,
-1.1450945138931274,
0.5591028928756714,
-0.1649225652217865,
-0.707942545413971,
1.2315795421600342,
-1.0713542699813843,
1.2570888996124268,
-0.13432253897190094,
-1.181640625,
-1.2197891473770142,
0.9319586753845215,
0.4718340337276459,
0.0858975499868393,
-0.541405200958252,
1.1740726232528687,
0.05718493089079857,
1.2457648515701294,
0.37816181778907776,
-0.3732495903968811,
0.5954404473304749,
-0.47996702790260315,
-0.625649094581604,
1.5666117668151855,
0.15334083139896393,
-1.5707848072052002,
-2.271085262298584,
-0.3228842318058014,
-0.8216358423233032,
-0.10942031443119049,
-0.4968639016151428,
-0.9638791084289551,
1.5662140846252441,
0.3203640282154083,
-1.3430060148239136,
-0.32041868567466736,
-0.3424391746520996,
-0.6450613141059875,
2.6813912391662598,
-1.3827745914459229,
-0.23355421423912048,
-0.8551675081253052,
-0.6433935761451721,
1.7259025573730469,
-1.1681840419769287,
-0.182723730802536,
-1.0563145875930786,
-0.5559116005897522,
-1.444870948791504,
-0.6024799942970276,
-0.1095050573348999,
-0.935833215713501,
0.6889341473579407,
0.17974215745925903,
-1.1469534635543823,
-0.3100697994232178,
-0.827016294002533,
0.8459844589233398,
-0.025763798505067825,
0.28937894105911255,
1.814520001411438,
0.47540995478630066,
-0.39632025361061096,
0.6944022178649902,
1.1651798486709595,
0.5266462564468384,
-0.6273109316825867,
0.22524337470531464,
-0.7487218976020813,
0.26937928795814514,
-1.3109484910964966,
0.27320513129234314,
-2.965120553970337,
0.6824477314949036,
-0.014974728226661682,
-0.15187670290470123,
-0.029109954833984375,
-1.2863677740097046,
1.237190842628479,
2.6363751888275146,
-1.2579500675201416,
0.4779221713542938,
0.3534426689147949,
1.220495581626892,
-1.6412979364395142,
0.32564109563827515,
-0.38360103964805603,
2.176084041595459,
0.17229464650154114,
1.2480970621109009,
-0.5393784642219543,
-2.2667999267578125,
0.6426723003387451,
-1.324385404586792,
-1.1233986616134644,
0.7551543116569519,
-1.0611803531646729,
0.03964117914438248,
-1.3492838144302368,
-0.10111159831285477,
-0.7485260367393494,
-1.2466049194335938,
0.8628748059272766,
0.15680024027824402,
0.399035781621933,
-0.5858938694000244,
0.43099966645240784,
-2.025132894515991,
-1.3267923593521118,
-0.274478018283844,
-1.017594337463379,
0.5072808265686035,
-0.3543197810649872,
0.5742477774620056,
-0.19451533257961273,
0.12372767925262451,
0.3921075463294983,
1.3808059692382812,
3.38002610206604,
0.2831093966960907,
0.46814194321632385,
-0.06971266865730286,
-0.9252534508705139,
1.4493273496627808,
1.0901554822921753,
-0.1205798014998436,
-0.44956135749816895,
-0.8952158689498901,
1.1699796915054321,
1.9541471004486084,
0.9822874069213867,
0.053428247570991516,
-0.854644775390625,
-0.6627247929573059,
0.02615109086036682,
0.15623731911182404,
0.4700666666030884,
0.8933141231536865,
0.009432544000446796,
0.09535105526447296,
1.4029324054718018,
1.1521902084350586,
-0.5021785497665405,
0.41636139154434204,
-0.830237865447998,
-0.5249835848808289,
0.4549178183078766,
0.29002997279167175,
-0.11674567312002182,
0.5077648162841797,
-0.8475636839866638,
-0.16792693734169006,
-0.30581820011138916,
-0.9216089844703674,
-0.7324632406234741,
-0.5570921301841736,
-0.33300623297691345,
1.6524521112442017,
0.09878847748041153,
-0.5167155265808105,
0.10972242057323456,
-0.8348271250724792,
-0.11629914492368698,
-1.0774712562561035,
0.1530609428882599,
-0.038308724761009216,
-0.15282155573368073,
-0.05150441452860832,
1.7775617837905884,
-1.0509464740753174,
-2.114983081817627,
0.2110694795846939,
0.19116489589214325,
-0.2773304879665375,
0.19063864648342133,
1.6157795190811157,
0.3855593800544739,
1.5411791801452637,
1.2894046306610107,
1.0312122106552124,
-0.7292070984840393,
-1.3979374170303345,
0.7284002304077148,
0.9181187152862549,
-1.3409532308578491,
0.8659564852714539,
-0.0017835716716945171,
-0.46809348464012146,
0.6879319548606873,
1.1831729412078857,
0.434575617313385,
-1.9577133655548096,
0.9013807773590088,
-0.9242882132530212,
0.7980173826217651,
0.6872779726982117,
0.6251998543739319,
0.18336547911167145,
0.8883241415023804,
-1.0678080320358276,
-1.1731549501419067,
-0.8433531522750854,
-0.7272458672523499,
1.8427544832229614,
-0.24803364276885986,
0.6284006834030151,
0.02663576975464821,
-1.3299487829208374,
-0.12124508619308472,
0.7270231246948242,
0.44866684079170227,
-0.45196542143821716,
0.8057992458343506,
-0.7739832997322083,
-1.1875901222229004,
-1.6025315523147583,
-0.47950857877731323,
-0.9828541278839111,
-0.972084105014801,
1.1573385000228882,
0.7776321768760681,
0.0720173716545105,
1.851053237915039,
0.6647565364837646,
0.26372525095939636,
-2.7249515056610107,
0.9514411687850952,
0.2318982481956482,
-0.032079655677080154,
0.8176549673080444,
0.35667768120765686,
1.077999472618103,
0.01294474583119154,
0.5202981233596802,
-2.3082032203674316,
2.2356393337249756,
-0.319888710975647,
0.6656703948974609,
0.10780461132526398,
-0.24272361397743225,
1.1544057130813599,
0.5014406442642212,
0.6635554432868958,
-1.1569091081619263,
0.738091230392456,
-0.5026722550392151,
1.2674230337142944,
1.0354290008544922,
-0.7887548208236694,
0.06114720180630684,
1.3311264514923096,
0.4583207368850708,
-0.49754104018211365,
-1.0429201126098633,
-0.946504533290863,
0.9288129210472107,
1.6802325248718262,
-0.1293879747390747,
-0.025580912828445435,
0.8047886490821838,
0.6709961295127869,
-1.275887370109558,
0.020102910697460175,
-0.8168708086013794,
-0.8209302425384521,
1.5630080699920654,
2.0472240447998047,
-0.1316743940114975,
-0.3130626976490021,
-0.7728961110115051,
-1.0206936597824097,
0.712813675403595,
0.021424341946840286,
0.11275427788496017,
0.6390397548675537,
-0.618238627910614,
1.1408193111419678,
0.9265715479850769,
0.8250940442085266,
0.17369391024112701,
0.2979818880558014,
0.3982982635498047,
-0.2750821113586426,
-1.0411063432693481,
-0.2273797243833542,
-1.1407431364059448,
-2.615480422973633,
0.40867987275123596,
-0.30497029423713684,
-1.3482489585876465,
-0.01543832290917635,
-1.1062538623809814,
0.901063859462738,
-0.5498949885368347,
-1.099453330039978,
-1.4634281396865845,
0.08298487961292267,
-0.1544017493724823,
0.8848280906677246,
-1.605393648147583,
-0.07422847300767899,
1.2472753524780273,
0.9602285623550415,
-0.7628253102302551,
1.1278537511825562,
0.21063371002674103,
1.0817335844039917,
0.8786311745643616,
-0.5116528272628784,
0.5770124793052673,
0.14666929841041565,
-1.4092141389846802,
0.41785290837287903,
1.0945836305618286,
0.1739903837442398,
1.369347095489502,
-0.567276120185852,
0.08249615877866745,
0.4790983200073242,
-0.646588921546936,
-0.4664064943790436,
-0.6224627494812012,
0.8210950493812561,
0.061440061777830124,
-0.8805590867996216,
0.13646282255649567,
-0.1798744946718216,
-0.28178003430366516,
0.1984405219554901,
-1.5964902639389038,
-0.3206774592399597,
-0.2669055163860321,
-0.5421625375747681,
-1.1769598722457886,
0.004961805418133736,
1.4170206785202026,
-0.745894193649292,
-0.2258700430393219,
0.42669400572776794,
0.4779092073440552,
0.5399858951568604,
0.5927741527557373,
-0.8046138882637024,
-0.3469995856285095,
-0.19249524176120758,
-0.2658061981201172,
0.39345428347587585,
1.354188084602356,
-0.12213100492954254,
-1.0031355619430542,
0.7775440216064453,
-0.2609608769416809,
0.05699967220425606,
1.9002320766448975,
0.00752472598105669,
-0.7907012701034546,
0.3316004276275635,
-0.771806538105011,
1.9393035173416138,
1.6944817304611206,
1.3086204528808594,
-0.21424517035484314,
-0.8780902028083801,
0.6809573769569397,
-0.267368346452713,
-0.33172139525413513,
0.8709815740585327,
0.47935402393341064,
-0.08564425259828568,
-1.3835606575012207,
0.5375329256057739,
1.2575721740722656,
-0.7511545419692993,
-0.7788500785827637,
0.030259214341640472,
-0.8075042963027954,
1.0723408460617065,
0.6853048801422119,
0.4382677972316742,
0.1061926931142807,
1.6391761302947998,
0.6802055239677429,
-0.4912833273410797,
0.5086562037467957,
0.5289748907089233,
-0.2039429396390915,
-2.149954319000244,
-1.1443570852279663,
0.294365793466568,
-0.29358723759651184,
-1.5402051210403442,
1.3461321592330933,
-1.1515454053878784,
-0.8887296915054321,
0.5772465467453003,
-0.029543612152338028,
1.552183985710144,
0.2703891098499298,
1.5235590934753418,
2.1293444633483887,
0.9196155667304993,
0.22104224562644958,
1.3296241760253906,
-0.1720220148563385,
-0.5041338801383972,
1.8427484035491943,
-0.380435049533844,
0.43478190898895264,
1.0054378509521484,
-0.4059280753135681,
-1.0170527696609497,
-0.7500818371772766,
-1.1370686292648315,
-0.5885397791862488,
1.1161962747573853,
0.21983644366264343,
-1.1492725610733032,
0.3086793124675751,
1.5798940658569336,
0.05927859619259834,
-0.3660149872303009,
0.5302744507789612,
0.5223364233970642,
-0.6712328195571899,
0.0014670789241790771,
-0.9361417293548584,
0.4298775792121887,
-0.1783502697944641,
-0.3026178479194641,
0.30911195278167725,
0.31635716557502747,
1.2141908407211304,
0.032239481806755066,
0.2348238229751587,
1.1300245523452759,
-1.367623209953308,
1.3757104873657227,
-0.5619434714317322,
0.29839473962783813,
-2.364912509918213,
1.4228441715240479,
-0.8104463815689087,
1.9332040548324585,
-2.594064474105835,
0.35813185572624207,
-0.6844092607498169,
-0.49130678176879883,
0.3995620608329773,
-0.4135262668132782,
0.20307695865631104,
-0.12141493707895279,
-1.0076195001602173,
-0.058802783489227295,
-0.7212960124015808,
0.5543954372406006,
1.090917706489563,
1.1301294565200806,
-1.0361826419830322,
-0.3584769368171692,
-1.7292832136154175,
-0.1742914617061615,
-0.6854456663131714,
0.31047672033309937,
-2.0811009407043457,
-0.3071925640106201,
-1.962975263595581,
-2.2807884216308594,
-1.3303182125091553,
-0.7713984251022339,
1.0986554622650146,
0.3653979003429413,
-0.8233984708786011,
1.2185605764389038,
-0.3070623278617859,
-1.719401478767395,
1.1428741216659546,
-2.0486788749694824
] |
https://github.com/huggingface/datasets/issues/5332 | Passing numpy array to ClassLabel names causes ValueError | Should `datasets` allow `ClassLabel` input parameter to be an `np.array` even though internally we need to cast it to a Python list? @lhoestq @mariosasko | ### Describe the bug
If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error.
### Steps to reproduce the bug
https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX
TLDR:
If I define my classes as:
```
my_classes = np.array(['one', 'two', 'three'])
```
Then this errors:
```py
features = Features({'value': Value('string'), 'label': ClassLabel(names=my_classes)})
dataset = Dataset.from_list(my_data, features=features)
```
```
ValueError Traceback (most recent call last)
[<ipython-input-8-a8a9d53ec82f>](https://localhost:8080/#) in <module>
----> 1 dataset = Dataset.from_list(my_data, features=features)
11 frames
[/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _asdict_inner(obj)
183 for f in fields(obj):
184 value = _asdict_inner(getattr(obj, f.name))
--> 185 if not f.init or value != f.default or f.metadata.get("include_in_asdict_even_if_is_default", False):
186 result[f.name] = value
187 return result
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
```
But this works:
```
features2 = Features({'value': Value('string'), 'label': ClassLabel(names=list(my_classes))})
dataset2 = Dataset.from_list(my_data, features=features2)
```
### Expected behavior
If I provide a numpy array of class names, I would expect either an error that the names list is the wrong type, or for it to be cast internally.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.10
- Python version: 3.8.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
Additionally:
- Numpy version: 1.23.5
| 384 | 24 | Passing numpy array to ClassLabel names causes ValueError
### Describe the bug
If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error.
### Steps to reproduce the bug
https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX
TLDR:
If I define my classes as:
```
my_classes = np.array(['one', 'two', 'three'])
```
Then this errors:
```py
features = Features({'value': Value('string'), 'label': ClassLabel(names=my_classes)})
dataset = Dataset.from_list(my_data, features=features)
```
```
ValueError Traceback (most recent call last)
[<ipython-input-8-a8a9d53ec82f>](https://localhost:8080/#) in <module>
----> 1 dataset = Dataset.from_list(my_data, features=features)
11 frames
[/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _asdict_inner(obj)
183 for f in fields(obj):
184 value = _asdict_inner(getattr(obj, f.name))
--> 185 if not f.init or value != f.default or f.metadata.get("include_in_asdict_even_if_is_default", False):
186 result[f.name] = value
187 return result
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
```
But this works:
```
features2 = Features({'value': Value('string'), 'label': ClassLabel(names=list(my_classes))})
dataset2 = Dataset.from_list(my_data, features=features2)
```
### Expected behavior
If I provide a numpy array of class names, I would expect either an error that the names list is the wrong type, or for it to be cast internally.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.10
- Python version: 3.8.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
Additionally:
- Numpy version: 1.23.5
Should `datasets` allow `ClassLabel` input parameter to be an `np.array` even though internally we need to cast it to a Python list? @lhoestq @mariosasko | [
-1.2423409223556519,
-0.9427435398101807,
-0.6524389982223511,
1.6519964933395386,
-0.1358901411294937,
-1.1631975173950195,
0.15079466998577118,
-0.955312967300415,
1.5839974880218506,
-0.7523292303085327,
0.3405283987522125,
-1.6442815065383911,
0.02535400539636612,
-0.6284711360931396,
-0.7520215511322021,
-0.7438880205154419,
-0.4172194302082062,
-0.7320079803466797,
1.092803955078125,
2.4784209728240967,
1.3114590644836426,
-1.409680724143982,
2.7834060192108154,
0.7476816177368164,
-0.1974567472934723,
-1.0669994354248047,
0.48003408312797546,
-0.00983249582350254,
-1.2704404592514038,
-0.44545283913612366,
-0.966144323348999,
-0.10660050809383392,
-0.5245428085327148,
-0.5586154460906982,
0.020027857273817062,
0.4237571358680725,
-0.2473643273115158,
-0.45078974962234497,
-0.5478837490081787,
-0.7817754745483398,
0.49264857172966003,
-0.33927154541015625,
0.813991904258728,
-0.18166227638721466,
1.7974412441253662,
-0.5685902833938599,
0.40278196334838867,
0.665929913520813,
1.4332643747329712,
0.11091410368680954,
-0.10948530584573746,
0.517723798751831,
0.3392108380794525,
0.011353962123394012,
0.6060234308242798,
1.2811663150787354,
0.7079910039901733,
0.4177172780036926,
0.8432674407958984,
-2.2607429027557373,
1.2618032693862915,
-1.0596030950546265,
0.37163516879081726,
1.229445457458496,
-0.959327220916748,
0.44332602620124817,
-1.7191522121429443,
0.005598102696239948,
0.607593297958374,
-2.200437307357788,
0.3161800503730774,
-1.324334979057312,
-0.4770341217517853,
0.9981002807617188,
0.29962536692619324,
-1.2134941816329956,
0.1114359125494957,
-0.48011064529418945,
1.0717904567718506,
0.338672935962677,
1.1097537279129028,
-1.658800721168518,
0.007906375452876091,
-0.2569260001182556,
0.11346583813428879,
-1.254956603050232,
-1.5741609334945679,
0.5320984125137329,
0.6585030555725098,
0.5901563167572021,
-0.14985008537769318,
1.1069713830947876,
-0.9905811548233032,
0.6996533870697021,
-1.043304681777954,
-1.7214895486831665,
-1.4373338222503662,
-2.248084306716919,
-2.183537006378174,
0.6855040788650513,
-0.4918614327907562,
-0.4997255504131317,
2.067831516265869,
-0.9163702726364136,
-1.9164618253707886,
1.1439999341964722,
0.31825339794158936,
-0.015288702212274075,
2.3204338550567627,
0.1816650778055191,
-0.7736001014709473,
0.4280269742012024,
-0.7573051452636719,
0.7751230001449585,
-0.3353472352027893,
1.3804365396499634,
0.42695367336273193,
-0.9829123020172119,
1.652096152305603,
-0.36655476689338684,
0.5285691022872925,
-0.7026488780975342,
-0.4336143434047699,
-0.6875557899475098,
0.30362072587013245,
1.9336727857589722,
-0.35441040992736816,
1.4769034385681152,
-0.42952337861061096,
-1.4981189966201782,
-1.5546610355377197,
0.8201794624328613,
0.4548580050468445,
-0.8169004917144775,
0.1536450982093811,
-0.4852627217769623,
0.059235408902168274,
0.01159149780869484,
1.138845443725586,
1.298192024230957,
0.6335271596908569,
-0.35388198494911194,
-0.9045583009719849,
0.17558826506137848,
-0.029001547023653984,
-0.6271331310272217,
-1.863861083984375,
-0.3298631012439728,
0.16044175624847412,
0.6564968824386597,
-1.2083326578140259,
1.7290582656860352,
0.8914206027984619,
1.9257879257202148,
1.0443233251571655,
-0.3431646525859833,
1.5673822164535522,
0.04782283678650856,
1.8480314016342163,
-0.501829981803894,
0.614726185798645,
-0.4113299548625946,
-1.1930184364318848,
0.8364870548248291,
-0.31667134165763855,
-2.095669984817505,
-0.7068667411804199,
-0.7217901945114136,
-0.15157733857631683,
-0.8370662927627563,
0.9558285474777222,
-0.29011163115501404,
-1.4147469997406006,
0.21417048573493958,
-0.8086894750595093,
0.18650493025779724,
-1.184273600578308,
0.2865262031555176,
0.6875438690185547,
-0.629439115524292,
0.09468773752450943,
-0.32541242241859436,
-1.2886472940444946,
-0.5087627172470093,
0.3729977011680603,
1.7981160879135132,
-0.7464290857315063,
0.8553683757781982,
1.0900596380233765,
-0.6202950477600098,
0.06150347739458084,
0.22536316514015198,
-0.28570058941841125,
0.9052696228027344,
-1.0521055459976196,
-0.4999103844165802,
1.2106853723526,
-0.14925876259803772,
-0.6295249462127686,
1.4128155708312988,
0.7759305238723755,
-0.9737076759338379,
-0.2822009027004242,
-0.16867074370384216,
-0.8846203088760376,
-0.007628623396158218,
-1.5693691968917847,
-0.1562158167362213,
0.4153805673122406,
-1.5775392055511475,
-0.417273610830307,
-0.2046024352312088,
1.3741158246994019,
-0.1088871881365776,
1.5011045932769775,
-0.36224010586738586,
-0.16593487560749054,
-0.23431843519210815,
-0.3328516483306885,
0.18675869703292847,
-0.23417407274246216,
-0.6121821403503418,
0.1331556737422943,
-0.8360589742660522,
0.3874278664588928,
1.4438509941101074,
0.3615594506263733,
0.09471649676561356,
0.5558912754058838,
1.180932641029358,
0.42998453974723816,
-0.006894442718476057,
-0.8563947677612305,
-1.6158828735351562,
1.9247602224349976,
-1.470031499862671,
2.010071277618408,
0.7732588052749634,
0.036142703145742416,
-1.7650578022003174,
-1.8814706802368164,
1.3837262392044067,
1.164892554283142,
2.393906831741333,
0.540092945098877,
0.42262002825737,
-0.8607267141342163,
-0.6961708068847656,
0.2946164906024933,
-0.9975128173828125,
-0.7964314222335815,
0.1641141027212143,
2.4456772804260254,
1.8057303428649902,
-0.3922218978404999,
-0.1998213529586792,
-0.9482948780059814,
1.4382387399673462,
-0.2098597139120102,
0.2201022505760193,
1.9562610387802124,
-0.14101150631904602,
-1.0358281135559082,
1.2704075574874878,
-2.486844062805176,
0.2395392507314682,
2.0517544746398926,
0.244899183511734,
0.1291712075471878,
-1.368008017539978,
-0.6574440002441406,
-0.18889941275119781,
-0.45758387446403503,
-1.249733805656433,
0.4652944803237915,
-0.23738940060138702,
-0.799221396446228,
-1.4188021421432495,
0.1199544370174408,
-1.0814112424850464,
-1.6945587396621704,
0.28575849533081055,
1.9079097509384155,
2.0483345985412598,
-0.7542405128479004,
1.5728777647018433,
-0.3610900342464447,
0.25607767701148987,
1.3080945014953613,
1.3350989818572998,
3.0584909915924072,
1.9172366857528687,
-1.2928285598754883,
0.6306756734848022,
-0.09990715980529785,
-0.5328752994537354,
1.154585599899292,
-1.2456656694412231,
1.2248808145523071,
-0.16162191331386566,
-1.2262160778045654,
-1.2009917497634888,
0.9616413116455078,
0.49361667037010193,
0.0034456048160791397,
-0.4987260401248932,
1.1805775165557861,
0.04537240415811539,
1.2788950204849243,
0.6402091979980469,
-0.3889322578907013,
0.6215596199035645,
-0.29968082904815674,
-0.4396035969257355,
1.5530542135238647,
0.14071756601333618,
-1.3996094465255737,
-2.2272911071777344,
-0.13152766227722168,
-0.7986210584640503,
0.026519715785980225,
-0.6481859683990479,
-1.0710365772247314,
1.6043167114257812,
0.3052710294723511,
-1.1883493661880493,
-0.23111115396022797,
-0.35412847995758057,
-0.4615415632724762,
2.6192967891693115,
-1.3386542797088623,
-0.33594372868537903,
-1.053329348564148,
-0.554261326789856,
1.6078914403915405,
-1.0909749269485474,
-0.2264040857553482,
-0.9656652212142944,
-0.5818005800247192,
-1.2956491708755493,
-0.5406372547149658,
0.006923547014594078,
-0.859940767288208,
0.7733408212661743,
0.15414199233055115,
-1.2144320011138916,
-0.34714606404304504,
-0.8339836597442627,
0.9667613506317139,
-0.21490953862667084,
0.1893545687198639,
1.9389010667800903,
0.3362507224082947,
-0.36054205894470215,
0.8017598390579224,
1.1198159456253052,
0.6245609521865845,
-0.5006635189056396,
0.233423113822937,
-0.5737110376358032,
0.37330979108810425,
-1.4370838403701782,
0.3050546646118164,
-2.9042932987213135,
0.6643747091293335,
0.020522020757198334,
-0.025478623807430267,
-0.1033940240740776,
-1.4199481010437012,
1.0606218576431274,
2.5975239276885986,
-1.1645399332046509,
0.4857044219970703,
0.34832388162612915,
1.2141566276550293,
-1.6513721942901611,
0.21086344122886658,
-0.44241780042648315,
2.1377570629119873,
0.14101603627204895,
1.2599948644638062,
-0.4505363702774048,
-2.3683054447174072,
0.5638854503631592,
-1.2955840826034546,
-1.03440523147583,
0.7384140491485596,
-0.8655918836593628,
0.14810273051261902,
-1.4577062129974365,
-0.20981623232364655,
-0.9048161506652832,
-1.1090186834335327,
0.6478877067565918,
0.13545538485050201,
0.34532663226127625,
-0.5845023393630981,
0.3647633194923401,
-2.132439613342285,
-1.394961953163147,
-0.16713443398475647,
-0.9973654747009277,
0.5091322660446167,
-0.408832311630249,
0.665533185005188,
-0.10913483798503876,
-0.014550154097378254,
0.31502360105514526,
1.48846435546875,
3.3149871826171875,
0.21419695019721985,
0.29802119731903076,
-0.21540285646915436,
-0.9086016416549683,
1.5084277391433716,
0.8613252639770508,
-0.22681957483291626,
-0.5109645128250122,
-1.031192660331726,
1.3602944612503052,
1.9472192525863647,
0.9794269800186157,
0.027354147285223007,
-0.8173108100891113,
-0.8135669231414795,
-0.005282704718410969,
0.13762369751930237,
0.47270089387893677,
0.9514189958572388,
0.1212671548128128,
0.06039375811815262,
1.3097158670425415,
1.1456338167190552,
-0.4584287106990814,
0.4621877372264862,
-0.9134371280670166,
-0.49201223254203796,
0.3996565639972687,
0.1965574026107788,
-0.06762422621250153,
0.32071492075920105,
-1.0064818859100342,
-0.2846158444881439,
-0.4037453234195709,
-0.8057503700256348,
-0.7738116979598999,
-0.37638628482818604,
-0.4017585813999176,
1.6122955083847046,
0.14405494928359985,
-0.6174197196960449,
-0.10508009791374207,
-0.7296081781387329,
-0.1338733434677124,
-1.0486650466918945,
0.23105460405349731,
-0.1244211345911026,
-0.07523125410079956,
-0.10421089828014374,
1.613702654838562,
-0.856620192527771,
-2.0754709243774414,
0.14104267954826355,
0.2526891231536865,
-0.3314771056175232,
0.20551230013370514,
1.760172724723816,
0.5488609075546265,
1.4256623983383179,
1.3685588836669922,
1.0172797441482544,
-0.6235051155090332,
-1.2609736919403076,
0.7441670894622803,
1.0031609535217285,
-1.4004944562911987,
0.809333324432373,
-0.058591488748788834,
-0.55206298828125,
0.5833762884140015,
1.3413704633712769,
0.5308017730712891,
-2.0942635536193848,
0.8519158363342285,
-0.9951063394546509,
0.8296873569488525,
0.7312164306640625,
0.6883715391159058,
0.267935186624527,
0.8301479816436768,
-1.217166543006897,
-1.0913532972335815,
-0.7316745519638062,
-0.7233333587646484,
1.9739940166473389,
-0.3291276693344116,
0.5252249240875244,
-0.22780893743038177,
-1.3937067985534668,
-0.1445005238056183,
0.7614482641220093,
0.27833837270736694,
-0.6311485767364502,
0.8081730604171753,
-0.6591206789016724,
-1.0687764883041382,
-1.307973861694336,
-0.49571317434310913,
-0.9652588367462158,
-0.9812333583831787,
0.9585431814193726,
0.8137329816818237,
0.2764568626880646,
1.8672873973846436,
0.6257811784744263,
0.09995142370462418,
-2.6082191467285156,
0.903335690498352,
0.2965365946292877,
-0.11087912321090698,
0.7971441745758057,
0.2550848722457886,
0.9767782688140869,
0.027263496071100235,
0.5845216512680054,
-2.3821632862091064,
2.2828779220581055,
-0.13298076391220093,
0.7410342693328857,
0.0016086623072624207,
-0.15975552797317505,
1.0937602519989014,
0.4852282404899597,
0.6128199100494385,
-1.0114123821258545,
0.6737735271453857,
-0.5999735593795776,
1.2524503469467163,
0.8173010349273682,
-0.8677862882614136,
-0.04644787684082985,
1.4083921909332275,
0.38781899213790894,
-0.6301852464675903,
-0.9147719144821167,
-1.0311589241027832,
0.9605859518051147,
1.7220712900161743,
0.009428434073925018,
0.060813240706920624,
0.8247699737548828,
0.6346563100814819,
-1.238631010055542,
0.01254240795969963,
-0.6872116327285767,
-0.725792407989502,
1.735475778579712,
2.1064116954803467,
-0.301285058259964,
-0.21173876523971558,
-0.6832599639892578,
-1.329621434211731,
0.8070262670516968,
-0.10534699261188507,
0.08492929488420486,
0.7007683515548706,
-0.6665374040603638,
1.072672724723816,
0.7610393762588501,
0.8779568672180176,
0.1499665379524231,
0.2448653280735016,
0.32930392026901245,
-0.35997769236564636,
-1.1640499830245972,
-0.25501716136932373,
-1.1300685405731201,
-2.467280626296997,
0.40596964955329895,
-0.09356789290904999,
-1.3442338705062866,
0.07071597874164581,
-1.0393558740615845,
0.9403239488601685,
-0.590472936630249,
-1.0998820066452026,
-1.4397436380386353,
0.19524028897285461,
-0.09551741927862167,
0.8678427934646606,
-1.6167250871658325,
-0.044854626059532166,
1.2202068567276,
0.9107238054275513,
-0.6695826053619385,
0.9736385345458984,
0.2784213423728943,
1.056685209274292,
0.9169281721115112,
-0.3017351031303406,
0.5257651805877686,
0.03946836292743683,
-1.2502996921539307,
0.5264548063278198,
1.1756689548492432,
0.17246469855308533,
1.5054231882095337,
-0.4958087205886841,
-0.0736924335360527,
0.41815587878227234,
-0.6039550304412842,
-0.4807429909706116,
-0.4831898808479309,
0.5387905836105347,
-0.01319875568151474,
-0.9350556135177612,
-0.05842171609401703,
-0.01768416352570057,
-0.22731304168701172,
0.11195769160985947,
-1.5534255504608154,
-0.07633446902036667,
-0.33442530035972595,
-0.5926171541213989,
-1.2163928747177124,
-0.031129151582717896,
1.4159117937088013,
-0.7247802019119263,
-0.27950137853622437,
0.4517934024333954,
0.3382807970046997,
0.5108534097671509,
0.659122109413147,
-0.667243242263794,
-0.31206825375556946,
-0.18270578980445862,
-0.3322339355945587,
0.3583509922027588,
1.3159006834030151,
-0.08036138117313385,
-0.910429835319519,
0.6822344064712524,
-0.4144212007522583,
0.08609989285469055,
1.8212283849716187,
0.004034517332911491,
-0.740092396736145,
0.2508510649204254,
-0.736722469329834,
1.9470981359481812,
1.7596380710601807,
1.312733769416809,
-0.21492314338684082,
-0.945574164390564,
0.6832305192947388,
-0.3981388807296753,
-0.3751092255115509,
0.8527089357376099,
0.40444716811180115,
-0.20455819368362427,
-1.4522104263305664,
0.7268195152282715,
1.2907624244689941,
-0.8375058174133301,
-0.7540607452392578,
0.09986662119626999,
-0.7655256986618042,
1.1671844720840454,
0.6512556076049805,
0.295073926448822,
0.23292165994644165,
1.6101090908050537,
0.7634210586547852,
-0.3884849548339844,
0.5637342929840088,
0.5113857984542847,
-0.1413399577140808,
-2.1219778060913086,
-1.1811631917953491,
0.25877875089645386,
-0.4325489103794098,
-1.6367013454437256,
1.275604486465454,
-1.145717740058899,
-0.9215458631515503,
0.4903191924095154,
0.040871087461709976,
1.474700927734375,
0.3602566421031952,
1.5835380554199219,
2.0143303871154785,
0.8734496831893921,
0.4133540987968445,
1.2298612594604492,
-0.12312187999486923,
-0.4159151017665863,
1.705589771270752,
-0.46658676862716675,
0.49813541769981384,
1.043581247329712,
-0.3414957523345947,
-1.1928460597991943,
-0.7501034736633301,
-1.3875831365585327,
-0.7459189891815186,
1.14897620677948,
0.08018636703491211,
-1.1052287817001343,
0.3213416039943695,
1.5646642446517944,
0.1198417991399765,
-0.30509382486343384,
0.6517573595046997,
0.41748327016830444,
-0.8268929719924927,
-0.07446745783090591,
-0.8799945116043091,
0.46882086992263794,
-0.21457211673259735,
-0.3756924569606781,
0.4012053906917572,
0.4651327431201935,
1.2915574312210083,
0.061184413731098175,
0.07365982234477997,
1.0971254110336304,
-1.4931321144104004,
1.512147068977356,
-0.7023869752883911,
0.3899599313735962,
-2.3677334785461426,
1.458143711090088,
-0.8038574457168579,
2.00989031791687,
-2.722174882888794,
0.4659489691257477,
-0.618218183517456,
-0.495725154876709,
0.2895238995552063,
-0.29649674892425537,
0.10592237114906311,
-0.11080964654684067,
-1.1155500411987305,
-0.05552810803055763,
-0.6335407495498657,
0.5941407680511475,
1.195275068283081,
1.3294392824172974,
-1.158915400505066,
-0.24651147425174713,
-1.76710045337677,
-0.22111259400844574,
-0.7492126226425171,
0.2625686526298523,
-2.0190136432647705,
-0.23875685036182404,
-1.938817024230957,
-2.315598726272583,
-1.1488392353057861,
-0.7633364200592041,
1.0771756172180176,
0.12432949244976044,
-0.8946603536605835,
1.2486079931259155,
-0.3741345703601837,
-1.7932209968566895,
1.0909465551376343,
-2.139838218688965
] |
https://github.com/huggingface/datasets/issues/5332 | Passing numpy array to ClassLabel names causes ValueError | Hi! No, I don't think so. The `names` parameter is [annotated](https://github.com/huggingface/datasets/blob/582236640b9109988e5f7a16a8353696ffa09a16/src/datasets/features/features.py#L892) as `List[str]` (**NumPy arrays are not lists**), and considering that type checking is not a common practice in Python, I think we can leave the code as-is. | ### Describe the bug
If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error.
### Steps to reproduce the bug
https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX
TLDR:
If I define my classes as:
```
my_classes = np.array(['one', 'two', 'three'])
```
Then this errors:
```py
features = Features({'value': Value('string'), 'label': ClassLabel(names=my_classes)})
dataset = Dataset.from_list(my_data, features=features)
```
```
ValueError Traceback (most recent call last)
[<ipython-input-8-a8a9d53ec82f>](https://localhost:8080/#) in <module>
----> 1 dataset = Dataset.from_list(my_data, features=features)
11 frames
[/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _asdict_inner(obj)
183 for f in fields(obj):
184 value = _asdict_inner(getattr(obj, f.name))
--> 185 if not f.init or value != f.default or f.metadata.get("include_in_asdict_even_if_is_default", False):
186 result[f.name] = value
187 return result
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
```
But this works:
```
features2 = Features({'value': Value('string'), 'label': ClassLabel(names=list(my_classes))})
dataset2 = Dataset.from_list(my_data, features=features2)
```
### Expected behavior
If I provide a numpy array of class names, I would expect either an error that the names list is the wrong type, or for it to be cast internally.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.10
- Python version: 3.8.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
Additionally:
- Numpy version: 1.23.5
| 384 | 38 | Passing numpy array to ClassLabel names causes ValueError
### Describe the bug
If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error.
### Steps to reproduce the bug
https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX
TLDR:
If I define my classes as:
```
my_classes = np.array(['one', 'two', 'three'])
```
Then this errors:
```py
features = Features({'value': Value('string'), 'label': ClassLabel(names=my_classes)})
dataset = Dataset.from_list(my_data, features=features)
```
```
ValueError Traceback (most recent call last)
[<ipython-input-8-a8a9d53ec82f>](https://localhost:8080/#) in <module>
----> 1 dataset = Dataset.from_list(my_data, features=features)
11 frames
[/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _asdict_inner(obj)
183 for f in fields(obj):
184 value = _asdict_inner(getattr(obj, f.name))
--> 185 if not f.init or value != f.default or f.metadata.get("include_in_asdict_even_if_is_default", False):
186 result[f.name] = value
187 return result
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
```
But this works:
```
features2 = Features({'value': Value('string'), 'label': ClassLabel(names=list(my_classes))})
dataset2 = Dataset.from_list(my_data, features=features2)
```
### Expected behavior
If I provide a numpy array of class names, I would expect either an error that the names list is the wrong type, or for it to be cast internally.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.10
- Python version: 3.8.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
Additionally:
- Numpy version: 1.23.5
Hi! No, I don't think so. The `names` parameter is [annotated](https://github.com/huggingface/datasets/blob/582236640b9109988e5f7a16a8353696ffa09a16/src/datasets/features/features.py#L892) as `List[str]` (**NumPy arrays are not lists**), and considering that type checking is not a common practice in Python, I think we can leave the code as-is. | [
-1.2423409223556519,
-0.9427435398101807,
-0.6524389982223511,
1.6519964933395386,
-0.1358901411294937,
-1.1631975173950195,
0.15079466998577118,
-0.955312967300415,
1.5839974880218506,
-0.7523292303085327,
0.3405283987522125,
-1.6442815065383911,
0.02535400539636612,
-0.6284711360931396,
-0.7520215511322021,
-0.7438880205154419,
-0.4172194302082062,
-0.7320079803466797,
1.092803955078125,
2.4784209728240967,
1.3114590644836426,
-1.409680724143982,
2.7834060192108154,
0.7476816177368164,
-0.1974567472934723,
-1.0669994354248047,
0.48003408312797546,
-0.00983249582350254,
-1.2704404592514038,
-0.44545283913612366,
-0.966144323348999,
-0.10660050809383392,
-0.5245428085327148,
-0.5586154460906982,
0.020027857273817062,
0.4237571358680725,
-0.2473643273115158,
-0.45078974962234497,
-0.5478837490081787,
-0.7817754745483398,
0.49264857172966003,
-0.33927154541015625,
0.813991904258728,
-0.18166227638721466,
1.7974412441253662,
-0.5685902833938599,
0.40278196334838867,
0.665929913520813,
1.4332643747329712,
0.11091410368680954,
-0.10948530584573746,
0.517723798751831,
0.3392108380794525,
0.011353962123394012,
0.6060234308242798,
1.2811663150787354,
0.7079910039901733,
0.4177172780036926,
0.8432674407958984,
-2.2607429027557373,
1.2618032693862915,
-1.0596030950546265,
0.37163516879081726,
1.229445457458496,
-0.959327220916748,
0.44332602620124817,
-1.7191522121429443,
0.005598102696239948,
0.607593297958374,
-2.200437307357788,
0.3161800503730774,
-1.324334979057312,
-0.4770341217517853,
0.9981002807617188,
0.29962536692619324,
-1.2134941816329956,
0.1114359125494957,
-0.48011064529418945,
1.0717904567718506,
0.338672935962677,
1.1097537279129028,
-1.658800721168518,
0.007906375452876091,
-0.2569260001182556,
0.11346583813428879,
-1.254956603050232,
-1.5741609334945679,
0.5320984125137329,
0.6585030555725098,
0.5901563167572021,
-0.14985008537769318,
1.1069713830947876,
-0.9905811548233032,
0.6996533870697021,
-1.043304681777954,
-1.7214895486831665,
-1.4373338222503662,
-2.248084306716919,
-2.183537006378174,
0.6855040788650513,
-0.4918614327907562,
-0.4997255504131317,
2.067831516265869,
-0.9163702726364136,
-1.9164618253707886,
1.1439999341964722,
0.31825339794158936,
-0.015288702212274075,
2.3204338550567627,
0.1816650778055191,
-0.7736001014709473,
0.4280269742012024,
-0.7573051452636719,
0.7751230001449585,
-0.3353472352027893,
1.3804365396499634,
0.42695367336273193,
-0.9829123020172119,
1.652096152305603,
-0.36655476689338684,
0.5285691022872925,
-0.7026488780975342,
-0.4336143434047699,
-0.6875557899475098,
0.30362072587013245,
1.9336727857589722,
-0.35441040992736816,
1.4769034385681152,
-0.42952337861061096,
-1.4981189966201782,
-1.5546610355377197,
0.8201794624328613,
0.4548580050468445,
-0.8169004917144775,
0.1536450982093811,
-0.4852627217769623,
0.059235408902168274,
0.01159149780869484,
1.138845443725586,
1.298192024230957,
0.6335271596908569,
-0.35388198494911194,
-0.9045583009719849,
0.17558826506137848,
-0.029001547023653984,
-0.6271331310272217,
-1.863861083984375,
-0.3298631012439728,
0.16044175624847412,
0.6564968824386597,
-1.2083326578140259,
1.7290582656860352,
0.8914206027984619,
1.9257879257202148,
1.0443233251571655,
-0.3431646525859833,
1.5673822164535522,
0.04782283678650856,
1.8480314016342163,
-0.501829981803894,
0.614726185798645,
-0.4113299548625946,
-1.1930184364318848,
0.8364870548248291,
-0.31667134165763855,
-2.095669984817505,
-0.7068667411804199,
-0.7217901945114136,
-0.15157733857631683,
-0.8370662927627563,
0.9558285474777222,
-0.29011163115501404,
-1.4147469997406006,
0.21417048573493958,
-0.8086894750595093,
0.18650493025779724,
-1.184273600578308,
0.2865262031555176,
0.6875438690185547,
-0.629439115524292,
0.09468773752450943,
-0.32541242241859436,
-1.2886472940444946,
-0.5087627172470093,
0.3729977011680603,
1.7981160879135132,
-0.7464290857315063,
0.8553683757781982,
1.0900596380233765,
-0.6202950477600098,
0.06150347739458084,
0.22536316514015198,
-0.28570058941841125,
0.9052696228027344,
-1.0521055459976196,
-0.4999103844165802,
1.2106853723526,
-0.14925876259803772,
-0.6295249462127686,
1.4128155708312988,
0.7759305238723755,
-0.9737076759338379,
-0.2822009027004242,
-0.16867074370384216,
-0.8846203088760376,
-0.007628623396158218,
-1.5693691968917847,
-0.1562158167362213,
0.4153805673122406,
-1.5775392055511475,
-0.417273610830307,
-0.2046024352312088,
1.3741158246994019,
-0.1088871881365776,
1.5011045932769775,
-0.36224010586738586,
-0.16593487560749054,
-0.23431843519210815,
-0.3328516483306885,
0.18675869703292847,
-0.23417407274246216,
-0.6121821403503418,
0.1331556737422943,
-0.8360589742660522,
0.3874278664588928,
1.4438509941101074,
0.3615594506263733,
0.09471649676561356,
0.5558912754058838,
1.180932641029358,
0.42998453974723816,
-0.006894442718476057,
-0.8563947677612305,
-1.6158828735351562,
1.9247602224349976,
-1.470031499862671,
2.010071277618408,
0.7732588052749634,
0.036142703145742416,
-1.7650578022003174,
-1.8814706802368164,
1.3837262392044067,
1.164892554283142,
2.393906831741333,
0.540092945098877,
0.42262002825737,
-0.8607267141342163,
-0.6961708068847656,
0.2946164906024933,
-0.9975128173828125,
-0.7964314222335815,
0.1641141027212143,
2.4456772804260254,
1.8057303428649902,
-0.3922218978404999,
-0.1998213529586792,
-0.9482948780059814,
1.4382387399673462,
-0.2098597139120102,
0.2201022505760193,
1.9562610387802124,
-0.14101150631904602,
-1.0358281135559082,
1.2704075574874878,
-2.486844062805176,
0.2395392507314682,
2.0517544746398926,
0.244899183511734,
0.1291712075471878,
-1.368008017539978,
-0.6574440002441406,
-0.18889941275119781,
-0.45758387446403503,
-1.249733805656433,
0.4652944803237915,
-0.23738940060138702,
-0.799221396446228,
-1.4188021421432495,
0.1199544370174408,
-1.0814112424850464,
-1.6945587396621704,
0.28575849533081055,
1.9079097509384155,
2.0483345985412598,
-0.7542405128479004,
1.5728777647018433,
-0.3610900342464447,
0.25607767701148987,
1.3080945014953613,
1.3350989818572998,
3.0584909915924072,
1.9172366857528687,
-1.2928285598754883,
0.6306756734848022,
-0.09990715980529785,
-0.5328752994537354,
1.154585599899292,
-1.2456656694412231,
1.2248808145523071,
-0.16162191331386566,
-1.2262160778045654,
-1.2009917497634888,
0.9616413116455078,
0.49361667037010193,
0.0034456048160791397,
-0.4987260401248932,
1.1805775165557861,
0.04537240415811539,
1.2788950204849243,
0.6402091979980469,
-0.3889322578907013,
0.6215596199035645,
-0.29968082904815674,
-0.4396035969257355,
1.5530542135238647,
0.14071756601333618,
-1.3996094465255737,
-2.2272911071777344,
-0.13152766227722168,
-0.7986210584640503,
0.026519715785980225,
-0.6481859683990479,
-1.0710365772247314,
1.6043167114257812,
0.3052710294723511,
-1.1883493661880493,
-0.23111115396022797,
-0.35412847995758057,
-0.4615415632724762,
2.6192967891693115,
-1.3386542797088623,
-0.33594372868537903,
-1.053329348564148,
-0.554261326789856,
1.6078914403915405,
-1.0909749269485474,
-0.2264040857553482,
-0.9656652212142944,
-0.5818005800247192,
-1.2956491708755493,
-0.5406372547149658,
0.006923547014594078,
-0.859940767288208,
0.7733408212661743,
0.15414199233055115,
-1.2144320011138916,
-0.34714606404304504,
-0.8339836597442627,
0.9667613506317139,
-0.21490953862667084,
0.1893545687198639,
1.9389010667800903,
0.3362507224082947,
-0.36054205894470215,
0.8017598390579224,
1.1198159456253052,
0.6245609521865845,
-0.5006635189056396,
0.233423113822937,
-0.5737110376358032,
0.37330979108810425,
-1.4370838403701782,
0.3050546646118164,
-2.9042932987213135,
0.6643747091293335,
0.020522020757198334,
-0.025478623807430267,
-0.1033940240740776,
-1.4199481010437012,
1.0606218576431274,
2.5975239276885986,
-1.1645399332046509,
0.4857044219970703,
0.34832388162612915,
1.2141566276550293,
-1.6513721942901611,
0.21086344122886658,
-0.44241780042648315,
2.1377570629119873,
0.14101603627204895,
1.2599948644638062,
-0.4505363702774048,
-2.3683054447174072,
0.5638854503631592,
-1.2955840826034546,
-1.03440523147583,
0.7384140491485596,
-0.8655918836593628,
0.14810273051261902,
-1.4577062129974365,
-0.20981623232364655,
-0.9048161506652832,
-1.1090186834335327,
0.6478877067565918,
0.13545538485050201,
0.34532663226127625,
-0.5845023393630981,
0.3647633194923401,
-2.132439613342285,
-1.394961953163147,
-0.16713443398475647,
-0.9973654747009277,
0.5091322660446167,
-0.408832311630249,
0.665533185005188,
-0.10913483798503876,
-0.014550154097378254,
0.31502360105514526,
1.48846435546875,
3.3149871826171875,
0.21419695019721985,
0.29802119731903076,
-0.21540285646915436,
-0.9086016416549683,
1.5084277391433716,
0.8613252639770508,
-0.22681957483291626,
-0.5109645128250122,
-1.031192660331726,
1.3602944612503052,
1.9472192525863647,
0.9794269800186157,
0.027354147285223007,
-0.8173108100891113,
-0.8135669231414795,
-0.005282704718410969,
0.13762369751930237,
0.47270089387893677,
0.9514189958572388,
0.1212671548128128,
0.06039375811815262,
1.3097158670425415,
1.1456338167190552,
-0.4584287106990814,
0.4621877372264862,
-0.9134371280670166,
-0.49201223254203796,
0.3996565639972687,
0.1965574026107788,
-0.06762422621250153,
0.32071492075920105,
-1.0064818859100342,
-0.2846158444881439,
-0.4037453234195709,
-0.8057503700256348,
-0.7738116979598999,
-0.37638628482818604,
-0.4017585813999176,
1.6122955083847046,
0.14405494928359985,
-0.6174197196960449,
-0.10508009791374207,
-0.7296081781387329,
-0.1338733434677124,
-1.0486650466918945,
0.23105460405349731,
-0.1244211345911026,
-0.07523125410079956,
-0.10421089828014374,
1.613702654838562,
-0.856620192527771,
-2.0754709243774414,
0.14104267954826355,
0.2526891231536865,
-0.3314771056175232,
0.20551230013370514,
1.760172724723816,
0.5488609075546265,
1.4256623983383179,
1.3685588836669922,
1.0172797441482544,
-0.6235051155090332,
-1.2609736919403076,
0.7441670894622803,
1.0031609535217285,
-1.4004944562911987,
0.809333324432373,
-0.058591488748788834,
-0.55206298828125,
0.5833762884140015,
1.3413704633712769,
0.5308017730712891,
-2.0942635536193848,
0.8519158363342285,
-0.9951063394546509,
0.8296873569488525,
0.7312164306640625,
0.6883715391159058,
0.267935186624527,
0.8301479816436768,
-1.217166543006897,
-1.0913532972335815,
-0.7316745519638062,
-0.7233333587646484,
1.9739940166473389,
-0.3291276693344116,
0.5252249240875244,
-0.22780893743038177,
-1.3937067985534668,
-0.1445005238056183,
0.7614482641220093,
0.27833837270736694,
-0.6311485767364502,
0.8081730604171753,
-0.6591206789016724,
-1.0687764883041382,
-1.307973861694336,
-0.49571317434310913,
-0.9652588367462158,
-0.9812333583831787,
0.9585431814193726,
0.8137329816818237,
0.2764568626880646,
1.8672873973846436,
0.6257811784744263,
0.09995142370462418,
-2.6082191467285156,
0.903335690498352,
0.2965365946292877,
-0.11087912321090698,
0.7971441745758057,
0.2550848722457886,
0.9767782688140869,
0.027263496071100235,
0.5845216512680054,
-2.3821632862091064,
2.2828779220581055,
-0.13298076391220093,
0.7410342693328857,
0.0016086623072624207,
-0.15975552797317505,
1.0937602519989014,
0.4852282404899597,
0.6128199100494385,
-1.0114123821258545,
0.6737735271453857,
-0.5999735593795776,
1.2524503469467163,
0.8173010349273682,
-0.8677862882614136,
-0.04644787684082985,
1.4083921909332275,
0.38781899213790894,
-0.6301852464675903,
-0.9147719144821167,
-1.0311589241027832,
0.9605859518051147,
1.7220712900161743,
0.009428434073925018,
0.060813240706920624,
0.8247699737548828,
0.6346563100814819,
-1.238631010055542,
0.01254240795969963,
-0.6872116327285767,
-0.725792407989502,
1.735475778579712,
2.1064116954803467,
-0.301285058259964,
-0.21173876523971558,
-0.6832599639892578,
-1.329621434211731,
0.8070262670516968,
-0.10534699261188507,
0.08492929488420486,
0.7007683515548706,
-0.6665374040603638,
1.072672724723816,
0.7610393762588501,
0.8779568672180176,
0.1499665379524231,
0.2448653280735016,
0.32930392026901245,
-0.35997769236564636,
-1.1640499830245972,
-0.25501716136932373,
-1.1300685405731201,
-2.467280626296997,
0.40596964955329895,
-0.09356789290904999,
-1.3442338705062866,
0.07071597874164581,
-1.0393558740615845,
0.9403239488601685,
-0.590472936630249,
-1.0998820066452026,
-1.4397436380386353,
0.19524028897285461,
-0.09551741927862167,
0.8678427934646606,
-1.6167250871658325,
-0.044854626059532166,
1.2202068567276,
0.9107238054275513,
-0.6695826053619385,
0.9736385345458984,
0.2784213423728943,
1.056685209274292,
0.9169281721115112,
-0.3017351031303406,
0.5257651805877686,
0.03946836292743683,
-1.2502996921539307,
0.5264548063278198,
1.1756689548492432,
0.17246469855308533,
1.5054231882095337,
-0.4958087205886841,
-0.0736924335360527,
0.41815587878227234,
-0.6039550304412842,
-0.4807429909706116,
-0.4831898808479309,
0.5387905836105347,
-0.01319875568151474,
-0.9350556135177612,
-0.05842171609401703,
-0.01768416352570057,
-0.22731304168701172,
0.11195769160985947,
-1.5534255504608154,
-0.07633446902036667,
-0.33442530035972595,
-0.5926171541213989,
-1.2163928747177124,
-0.031129151582717896,
1.4159117937088013,
-0.7247802019119263,
-0.27950137853622437,
0.4517934024333954,
0.3382807970046997,
0.5108534097671509,
0.659122109413147,
-0.667243242263794,
-0.31206825375556946,
-0.18270578980445862,
-0.3322339355945587,
0.3583509922027588,
1.3159006834030151,
-0.08036138117313385,
-0.910429835319519,
0.6822344064712524,
-0.4144212007522583,
0.08609989285469055,
1.8212283849716187,
0.004034517332911491,
-0.740092396736145,
0.2508510649204254,
-0.736722469329834,
1.9470981359481812,
1.7596380710601807,
1.312733769416809,
-0.21492314338684082,
-0.945574164390564,
0.6832305192947388,
-0.3981388807296753,
-0.3751092255115509,
0.8527089357376099,
0.40444716811180115,
-0.20455819368362427,
-1.4522104263305664,
0.7268195152282715,
1.2907624244689941,
-0.8375058174133301,
-0.7540607452392578,
0.09986662119626999,
-0.7655256986618042,
1.1671844720840454,
0.6512556076049805,
0.295073926448822,
0.23292165994644165,
1.6101090908050537,
0.7634210586547852,
-0.3884849548339844,
0.5637342929840088,
0.5113857984542847,
-0.1413399577140808,
-2.1219778060913086,
-1.1811631917953491,
0.25877875089645386,
-0.4325489103794098,
-1.6367013454437256,
1.275604486465454,
-1.145717740058899,
-0.9215458631515503,
0.4903191924095154,
0.040871087461709976,
1.474700927734375,
0.3602566421031952,
1.5835380554199219,
2.0143303871154785,
0.8734496831893921,
0.4133540987968445,
1.2298612594604492,
-0.12312187999486923,
-0.4159151017665863,
1.705589771270752,
-0.46658676862716675,
0.49813541769981384,
1.043581247329712,
-0.3414957523345947,
-1.1928460597991943,
-0.7501034736633301,
-1.3875831365585327,
-0.7459189891815186,
1.14897620677948,
0.08018636703491211,
-1.1052287817001343,
0.3213416039943695,
1.5646642446517944,
0.1198417991399765,
-0.30509382486343384,
0.6517573595046997,
0.41748327016830444,
-0.8268929719924927,
-0.07446745783090591,
-0.8799945116043091,
0.46882086992263794,
-0.21457211673259735,
-0.3756924569606781,
0.4012053906917572,
0.4651327431201935,
1.2915574312210083,
0.061184413731098175,
0.07365982234477997,
1.0971254110336304,
-1.4931321144104004,
1.512147068977356,
-0.7023869752883911,
0.3899599313735962,
-2.3677334785461426,
1.458143711090088,
-0.8038574457168579,
2.00989031791687,
-2.722174882888794,
0.4659489691257477,
-0.618218183517456,
-0.495725154876709,
0.2895238995552063,
-0.29649674892425537,
0.10592237114906311,
-0.11080964654684067,
-1.1155500411987305,
-0.05552810803055763,
-0.6335407495498657,
0.5941407680511475,
1.195275068283081,
1.3294392824172974,
-1.158915400505066,
-0.24651147425174713,
-1.76710045337677,
-0.22111259400844574,
-0.7492126226425171,
0.2625686526298523,
-2.0190136432647705,
-0.23875685036182404,
-1.938817024230957,
-2.315598726272583,
-1.1488392353057861,
-0.7633364200592041,
1.0771756172180176,
0.12432949244976044,
-0.8946603536605835,
1.2486079931259155,
-0.3741345703601837,
-1.7932209968566895,
1.0909465551376343,
-2.139838218688965
] |
https://github.com/huggingface/datasets/issues/5332 | Passing numpy array to ClassLabel names causes ValueError | I appreciate it is the wrong type, and that type checking is not common, but I think there's a few circumstances that make it a good idea from a usability perspective.
It's quite a difficult error to debug because it comes from a utility function (so it's not immediately obvious which parameter caused it). What makes it even more difficult is the exception happens when the features instance is used to instantiate the dataset, **not** when when the wrong type is actually passed when the features is instantiated. When I was debugging the error, I didn't really consider it could be an issue with the features instance because it had instantiated fine. It's also not one of the more common exceptions caused by trying to use a non-list as a list.
It's also relatively easy to accidentally get a numpy array of class types (e.g. calling `unique()` on a pandas dataframe column). Additionally, passing in a `set` instead of the list (again, relatively easy because people may run `set(classes)` to generate uniques) causes an error when the features instance is used, albeit a slightly more obvious one.
The names list is already being processed and validated in the `__post_init__` method anyway, so it would not really be adding any complexity to check it is actually a list here too. I'm happy to contribute this change if you change your mind about whether it's worthwhile. | ### Describe the bug
If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error.
### Steps to reproduce the bug
https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX
TLDR:
If I define my classes as:
```
my_classes = np.array(['one', 'two', 'three'])
```
Then this errors:
```py
features = Features({'value': Value('string'), 'label': ClassLabel(names=my_classes)})
dataset = Dataset.from_list(my_data, features=features)
```
```
ValueError Traceback (most recent call last)
[<ipython-input-8-a8a9d53ec82f>](https://localhost:8080/#) in <module>
----> 1 dataset = Dataset.from_list(my_data, features=features)
11 frames
[/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _asdict_inner(obj)
183 for f in fields(obj):
184 value = _asdict_inner(getattr(obj, f.name))
--> 185 if not f.init or value != f.default or f.metadata.get("include_in_asdict_even_if_is_default", False):
186 result[f.name] = value
187 return result
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
```
But this works:
```
features2 = Features({'value': Value('string'), 'label': ClassLabel(names=list(my_classes))})
dataset2 = Dataset.from_list(my_data, features=features2)
```
### Expected behavior
If I provide a numpy array of class names, I would expect either an error that the names list is the wrong type, or for it to be cast internally.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.10
- Python version: 3.8.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
Additionally:
- Numpy version: 1.23.5
| 384 | 234 | Passing numpy array to ClassLabel names causes ValueError
### Describe the bug
If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error.
### Steps to reproduce the bug
https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX
TLDR:
If I define my classes as:
```
my_classes = np.array(['one', 'two', 'three'])
```
Then this errors:
```py
features = Features({'value': Value('string'), 'label': ClassLabel(names=my_classes)})
dataset = Dataset.from_list(my_data, features=features)
```
```
ValueError Traceback (most recent call last)
[<ipython-input-8-a8a9d53ec82f>](https://localhost:8080/#) in <module>
----> 1 dataset = Dataset.from_list(my_data, features=features)
11 frames
[/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _asdict_inner(obj)
183 for f in fields(obj):
184 value = _asdict_inner(getattr(obj, f.name))
--> 185 if not f.init or value != f.default or f.metadata.get("include_in_asdict_even_if_is_default", False):
186 result[f.name] = value
187 return result
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
```
But this works:
```
features2 = Features({'value': Value('string'), 'label': ClassLabel(names=list(my_classes))})
dataset2 = Dataset.from_list(my_data, features=features2)
```
### Expected behavior
If I provide a numpy array of class names, I would expect either an error that the names list is the wrong type, or for it to be cast internally.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.10
- Python version: 3.8.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
Additionally:
- Numpy version: 1.23.5
I appreciate it is the wrong type, and that type checking is not common, but I think there's a few circumstances that make it a good idea from a usability perspective.
It's quite a difficult error to debug because it comes from a utility function (so it's not immediately obvious which parameter caused it). What makes it even more difficult is the exception happens when the features instance is used to instantiate the dataset, **not** when when the wrong type is actually passed when the features is instantiated. When I was debugging the error, I didn't really consider it could be an issue with the features instance because it had instantiated fine. It's also not one of the more common exceptions caused by trying to use a non-list as a list.
It's also relatively easy to accidentally get a numpy array of class types (e.g. calling `unique()` on a pandas dataframe column). Additionally, passing in a `set` instead of the list (again, relatively easy because people may run `set(classes)` to generate uniques) causes an error when the features instance is used, albeit a slightly more obvious one.
The names list is already being processed and validated in the `__post_init__` method anyway, so it would not really be adding any complexity to check it is actually a list here too. I'm happy to contribute this change if you change your mind about whether it's worthwhile. | [
-1.2423409223556519,
-0.9427435398101807,
-0.6524389982223511,
1.6519964933395386,
-0.1358901411294937,
-1.1631975173950195,
0.15079466998577118,
-0.955312967300415,
1.5839974880218506,
-0.7523292303085327,
0.3405283987522125,
-1.6442815065383911,
0.02535400539636612,
-0.6284711360931396,
-0.7520215511322021,
-0.7438880205154419,
-0.4172194302082062,
-0.7320079803466797,
1.092803955078125,
2.4784209728240967,
1.3114590644836426,
-1.409680724143982,
2.7834060192108154,
0.7476816177368164,
-0.1974567472934723,
-1.0669994354248047,
0.48003408312797546,
-0.00983249582350254,
-1.2704404592514038,
-0.44545283913612366,
-0.966144323348999,
-0.10660050809383392,
-0.5245428085327148,
-0.5586154460906982,
0.020027857273817062,
0.4237571358680725,
-0.2473643273115158,
-0.45078974962234497,
-0.5478837490081787,
-0.7817754745483398,
0.49264857172966003,
-0.33927154541015625,
0.813991904258728,
-0.18166227638721466,
1.7974412441253662,
-0.5685902833938599,
0.40278196334838867,
0.665929913520813,
1.4332643747329712,
0.11091410368680954,
-0.10948530584573746,
0.517723798751831,
0.3392108380794525,
0.011353962123394012,
0.6060234308242798,
1.2811663150787354,
0.7079910039901733,
0.4177172780036926,
0.8432674407958984,
-2.2607429027557373,
1.2618032693862915,
-1.0596030950546265,
0.37163516879081726,
1.229445457458496,
-0.959327220916748,
0.44332602620124817,
-1.7191522121429443,
0.005598102696239948,
0.607593297958374,
-2.200437307357788,
0.3161800503730774,
-1.324334979057312,
-0.4770341217517853,
0.9981002807617188,
0.29962536692619324,
-1.2134941816329956,
0.1114359125494957,
-0.48011064529418945,
1.0717904567718506,
0.338672935962677,
1.1097537279129028,
-1.658800721168518,
0.007906375452876091,
-0.2569260001182556,
0.11346583813428879,
-1.254956603050232,
-1.5741609334945679,
0.5320984125137329,
0.6585030555725098,
0.5901563167572021,
-0.14985008537769318,
1.1069713830947876,
-0.9905811548233032,
0.6996533870697021,
-1.043304681777954,
-1.7214895486831665,
-1.4373338222503662,
-2.248084306716919,
-2.183537006378174,
0.6855040788650513,
-0.4918614327907562,
-0.4997255504131317,
2.067831516265869,
-0.9163702726364136,
-1.9164618253707886,
1.1439999341964722,
0.31825339794158936,
-0.015288702212274075,
2.3204338550567627,
0.1816650778055191,
-0.7736001014709473,
0.4280269742012024,
-0.7573051452636719,
0.7751230001449585,
-0.3353472352027893,
1.3804365396499634,
0.42695367336273193,
-0.9829123020172119,
1.652096152305603,
-0.36655476689338684,
0.5285691022872925,
-0.7026488780975342,
-0.4336143434047699,
-0.6875557899475098,
0.30362072587013245,
1.9336727857589722,
-0.35441040992736816,
1.4769034385681152,
-0.42952337861061096,
-1.4981189966201782,
-1.5546610355377197,
0.8201794624328613,
0.4548580050468445,
-0.8169004917144775,
0.1536450982093811,
-0.4852627217769623,
0.059235408902168274,
0.01159149780869484,
1.138845443725586,
1.298192024230957,
0.6335271596908569,
-0.35388198494911194,
-0.9045583009719849,
0.17558826506137848,
-0.029001547023653984,
-0.6271331310272217,
-1.863861083984375,
-0.3298631012439728,
0.16044175624847412,
0.6564968824386597,
-1.2083326578140259,
1.7290582656860352,
0.8914206027984619,
1.9257879257202148,
1.0443233251571655,
-0.3431646525859833,
1.5673822164535522,
0.04782283678650856,
1.8480314016342163,
-0.501829981803894,
0.614726185798645,
-0.4113299548625946,
-1.1930184364318848,
0.8364870548248291,
-0.31667134165763855,
-2.095669984817505,
-0.7068667411804199,
-0.7217901945114136,
-0.15157733857631683,
-0.8370662927627563,
0.9558285474777222,
-0.29011163115501404,
-1.4147469997406006,
0.21417048573493958,
-0.8086894750595093,
0.18650493025779724,
-1.184273600578308,
0.2865262031555176,
0.6875438690185547,
-0.629439115524292,
0.09468773752450943,
-0.32541242241859436,
-1.2886472940444946,
-0.5087627172470093,
0.3729977011680603,
1.7981160879135132,
-0.7464290857315063,
0.8553683757781982,
1.0900596380233765,
-0.6202950477600098,
0.06150347739458084,
0.22536316514015198,
-0.28570058941841125,
0.9052696228027344,
-1.0521055459976196,
-0.4999103844165802,
1.2106853723526,
-0.14925876259803772,
-0.6295249462127686,
1.4128155708312988,
0.7759305238723755,
-0.9737076759338379,
-0.2822009027004242,
-0.16867074370384216,
-0.8846203088760376,
-0.007628623396158218,
-1.5693691968917847,
-0.1562158167362213,
0.4153805673122406,
-1.5775392055511475,
-0.417273610830307,
-0.2046024352312088,
1.3741158246994019,
-0.1088871881365776,
1.5011045932769775,
-0.36224010586738586,
-0.16593487560749054,
-0.23431843519210815,
-0.3328516483306885,
0.18675869703292847,
-0.23417407274246216,
-0.6121821403503418,
0.1331556737422943,
-0.8360589742660522,
0.3874278664588928,
1.4438509941101074,
0.3615594506263733,
0.09471649676561356,
0.5558912754058838,
1.180932641029358,
0.42998453974723816,
-0.006894442718476057,
-0.8563947677612305,
-1.6158828735351562,
1.9247602224349976,
-1.470031499862671,
2.010071277618408,
0.7732588052749634,
0.036142703145742416,
-1.7650578022003174,
-1.8814706802368164,
1.3837262392044067,
1.164892554283142,
2.393906831741333,
0.540092945098877,
0.42262002825737,
-0.8607267141342163,
-0.6961708068847656,
0.2946164906024933,
-0.9975128173828125,
-0.7964314222335815,
0.1641141027212143,
2.4456772804260254,
1.8057303428649902,
-0.3922218978404999,
-0.1998213529586792,
-0.9482948780059814,
1.4382387399673462,
-0.2098597139120102,
0.2201022505760193,
1.9562610387802124,
-0.14101150631904602,
-1.0358281135559082,
1.2704075574874878,
-2.486844062805176,
0.2395392507314682,
2.0517544746398926,
0.244899183511734,
0.1291712075471878,
-1.368008017539978,
-0.6574440002441406,
-0.18889941275119781,
-0.45758387446403503,
-1.249733805656433,
0.4652944803237915,
-0.23738940060138702,
-0.799221396446228,
-1.4188021421432495,
0.1199544370174408,
-1.0814112424850464,
-1.6945587396621704,
0.28575849533081055,
1.9079097509384155,
2.0483345985412598,
-0.7542405128479004,
1.5728777647018433,
-0.3610900342464447,
0.25607767701148987,
1.3080945014953613,
1.3350989818572998,
3.0584909915924072,
1.9172366857528687,
-1.2928285598754883,
0.6306756734848022,
-0.09990715980529785,
-0.5328752994537354,
1.154585599899292,
-1.2456656694412231,
1.2248808145523071,
-0.16162191331386566,
-1.2262160778045654,
-1.2009917497634888,
0.9616413116455078,
0.49361667037010193,
0.0034456048160791397,
-0.4987260401248932,
1.1805775165557861,
0.04537240415811539,
1.2788950204849243,
0.6402091979980469,
-0.3889322578907013,
0.6215596199035645,
-0.29968082904815674,
-0.4396035969257355,
1.5530542135238647,
0.14071756601333618,
-1.3996094465255737,
-2.2272911071777344,
-0.13152766227722168,
-0.7986210584640503,
0.026519715785980225,
-0.6481859683990479,
-1.0710365772247314,
1.6043167114257812,
0.3052710294723511,
-1.1883493661880493,
-0.23111115396022797,
-0.35412847995758057,
-0.4615415632724762,
2.6192967891693115,
-1.3386542797088623,
-0.33594372868537903,
-1.053329348564148,
-0.554261326789856,
1.6078914403915405,
-1.0909749269485474,
-0.2264040857553482,
-0.9656652212142944,
-0.5818005800247192,
-1.2956491708755493,
-0.5406372547149658,
0.006923547014594078,
-0.859940767288208,
0.7733408212661743,
0.15414199233055115,
-1.2144320011138916,
-0.34714606404304504,
-0.8339836597442627,
0.9667613506317139,
-0.21490953862667084,
0.1893545687198639,
1.9389010667800903,
0.3362507224082947,
-0.36054205894470215,
0.8017598390579224,
1.1198159456253052,
0.6245609521865845,
-0.5006635189056396,
0.233423113822937,
-0.5737110376358032,
0.37330979108810425,
-1.4370838403701782,
0.3050546646118164,
-2.9042932987213135,
0.6643747091293335,
0.020522020757198334,
-0.025478623807430267,
-0.1033940240740776,
-1.4199481010437012,
1.0606218576431274,
2.5975239276885986,
-1.1645399332046509,
0.4857044219970703,
0.34832388162612915,
1.2141566276550293,
-1.6513721942901611,
0.21086344122886658,
-0.44241780042648315,
2.1377570629119873,
0.14101603627204895,
1.2599948644638062,
-0.4505363702774048,
-2.3683054447174072,
0.5638854503631592,
-1.2955840826034546,
-1.03440523147583,
0.7384140491485596,
-0.8655918836593628,
0.14810273051261902,
-1.4577062129974365,
-0.20981623232364655,
-0.9048161506652832,
-1.1090186834335327,
0.6478877067565918,
0.13545538485050201,
0.34532663226127625,
-0.5845023393630981,
0.3647633194923401,
-2.132439613342285,
-1.394961953163147,
-0.16713443398475647,
-0.9973654747009277,
0.5091322660446167,
-0.408832311630249,
0.665533185005188,
-0.10913483798503876,
-0.014550154097378254,
0.31502360105514526,
1.48846435546875,
3.3149871826171875,
0.21419695019721985,
0.29802119731903076,
-0.21540285646915436,
-0.9086016416549683,
1.5084277391433716,
0.8613252639770508,
-0.22681957483291626,
-0.5109645128250122,
-1.031192660331726,
1.3602944612503052,
1.9472192525863647,
0.9794269800186157,
0.027354147285223007,
-0.8173108100891113,
-0.8135669231414795,
-0.005282704718410969,
0.13762369751930237,
0.47270089387893677,
0.9514189958572388,
0.1212671548128128,
0.06039375811815262,
1.3097158670425415,
1.1456338167190552,
-0.4584287106990814,
0.4621877372264862,
-0.9134371280670166,
-0.49201223254203796,
0.3996565639972687,
0.1965574026107788,
-0.06762422621250153,
0.32071492075920105,
-1.0064818859100342,
-0.2846158444881439,
-0.4037453234195709,
-0.8057503700256348,
-0.7738116979598999,
-0.37638628482818604,
-0.4017585813999176,
1.6122955083847046,
0.14405494928359985,
-0.6174197196960449,
-0.10508009791374207,
-0.7296081781387329,
-0.1338733434677124,
-1.0486650466918945,
0.23105460405349731,
-0.1244211345911026,
-0.07523125410079956,
-0.10421089828014374,
1.613702654838562,
-0.856620192527771,
-2.0754709243774414,
0.14104267954826355,
0.2526891231536865,
-0.3314771056175232,
0.20551230013370514,
1.760172724723816,
0.5488609075546265,
1.4256623983383179,
1.3685588836669922,
1.0172797441482544,
-0.6235051155090332,
-1.2609736919403076,
0.7441670894622803,
1.0031609535217285,
-1.4004944562911987,
0.809333324432373,
-0.058591488748788834,
-0.55206298828125,
0.5833762884140015,
1.3413704633712769,
0.5308017730712891,
-2.0942635536193848,
0.8519158363342285,
-0.9951063394546509,
0.8296873569488525,
0.7312164306640625,
0.6883715391159058,
0.267935186624527,
0.8301479816436768,
-1.217166543006897,
-1.0913532972335815,
-0.7316745519638062,
-0.7233333587646484,
1.9739940166473389,
-0.3291276693344116,
0.5252249240875244,
-0.22780893743038177,
-1.3937067985534668,
-0.1445005238056183,
0.7614482641220093,
0.27833837270736694,
-0.6311485767364502,
0.8081730604171753,
-0.6591206789016724,
-1.0687764883041382,
-1.307973861694336,
-0.49571317434310913,
-0.9652588367462158,
-0.9812333583831787,
0.9585431814193726,
0.8137329816818237,
0.2764568626880646,
1.8672873973846436,
0.6257811784744263,
0.09995142370462418,
-2.6082191467285156,
0.903335690498352,
0.2965365946292877,
-0.11087912321090698,
0.7971441745758057,
0.2550848722457886,
0.9767782688140869,
0.027263496071100235,
0.5845216512680054,
-2.3821632862091064,
2.2828779220581055,
-0.13298076391220093,
0.7410342693328857,
0.0016086623072624207,
-0.15975552797317505,
1.0937602519989014,
0.4852282404899597,
0.6128199100494385,
-1.0114123821258545,
0.6737735271453857,
-0.5999735593795776,
1.2524503469467163,
0.8173010349273682,
-0.8677862882614136,
-0.04644787684082985,
1.4083921909332275,
0.38781899213790894,
-0.6301852464675903,
-0.9147719144821167,
-1.0311589241027832,
0.9605859518051147,
1.7220712900161743,
0.009428434073925018,
0.060813240706920624,
0.8247699737548828,
0.6346563100814819,
-1.238631010055542,
0.01254240795969963,
-0.6872116327285767,
-0.725792407989502,
1.735475778579712,
2.1064116954803467,
-0.301285058259964,
-0.21173876523971558,
-0.6832599639892578,
-1.329621434211731,
0.8070262670516968,
-0.10534699261188507,
0.08492929488420486,
0.7007683515548706,
-0.6665374040603638,
1.072672724723816,
0.7610393762588501,
0.8779568672180176,
0.1499665379524231,
0.2448653280735016,
0.32930392026901245,
-0.35997769236564636,
-1.1640499830245972,
-0.25501716136932373,
-1.1300685405731201,
-2.467280626296997,
0.40596964955329895,
-0.09356789290904999,
-1.3442338705062866,
0.07071597874164581,
-1.0393558740615845,
0.9403239488601685,
-0.590472936630249,
-1.0998820066452026,
-1.4397436380386353,
0.19524028897285461,
-0.09551741927862167,
0.8678427934646606,
-1.6167250871658325,
-0.044854626059532166,
1.2202068567276,
0.9107238054275513,
-0.6695826053619385,
0.9736385345458984,
0.2784213423728943,
1.056685209274292,
0.9169281721115112,
-0.3017351031303406,
0.5257651805877686,
0.03946836292743683,
-1.2502996921539307,
0.5264548063278198,
1.1756689548492432,
0.17246469855308533,
1.5054231882095337,
-0.4958087205886841,
-0.0736924335360527,
0.41815587878227234,
-0.6039550304412842,
-0.4807429909706116,
-0.4831898808479309,
0.5387905836105347,
-0.01319875568151474,
-0.9350556135177612,
-0.05842171609401703,
-0.01768416352570057,
-0.22731304168701172,
0.11195769160985947,
-1.5534255504608154,
-0.07633446902036667,
-0.33442530035972595,
-0.5926171541213989,
-1.2163928747177124,
-0.031129151582717896,
1.4159117937088013,
-0.7247802019119263,
-0.27950137853622437,
0.4517934024333954,
0.3382807970046997,
0.5108534097671509,
0.659122109413147,
-0.667243242263794,
-0.31206825375556946,
-0.18270578980445862,
-0.3322339355945587,
0.3583509922027588,
1.3159006834030151,
-0.08036138117313385,
-0.910429835319519,
0.6822344064712524,
-0.4144212007522583,
0.08609989285469055,
1.8212283849716187,
0.004034517332911491,
-0.740092396736145,
0.2508510649204254,
-0.736722469329834,
1.9470981359481812,
1.7596380710601807,
1.312733769416809,
-0.21492314338684082,
-0.945574164390564,
0.6832305192947388,
-0.3981388807296753,
-0.3751092255115509,
0.8527089357376099,
0.40444716811180115,
-0.20455819368362427,
-1.4522104263305664,
0.7268195152282715,
1.2907624244689941,
-0.8375058174133301,
-0.7540607452392578,
0.09986662119626999,
-0.7655256986618042,
1.1671844720840454,
0.6512556076049805,
0.295073926448822,
0.23292165994644165,
1.6101090908050537,
0.7634210586547852,
-0.3884849548339844,
0.5637342929840088,
0.5113857984542847,
-0.1413399577140808,
-2.1219778060913086,
-1.1811631917953491,
0.25877875089645386,
-0.4325489103794098,
-1.6367013454437256,
1.275604486465454,
-1.145717740058899,
-0.9215458631515503,
0.4903191924095154,
0.040871087461709976,
1.474700927734375,
0.3602566421031952,
1.5835380554199219,
2.0143303871154785,
0.8734496831893921,
0.4133540987968445,
1.2298612594604492,
-0.12312187999486923,
-0.4159151017665863,
1.705589771270752,
-0.46658676862716675,
0.49813541769981384,
1.043581247329712,
-0.3414957523345947,
-1.1928460597991943,
-0.7501034736633301,
-1.3875831365585327,
-0.7459189891815186,
1.14897620677948,
0.08018636703491211,
-1.1052287817001343,
0.3213416039943695,
1.5646642446517944,
0.1198417991399765,
-0.30509382486343384,
0.6517573595046997,
0.41748327016830444,
-0.8268929719924927,
-0.07446745783090591,
-0.8799945116043091,
0.46882086992263794,
-0.21457211673259735,
-0.3756924569606781,
0.4012053906917572,
0.4651327431201935,
1.2915574312210083,
0.061184413731098175,
0.07365982234477997,
1.0971254110336304,
-1.4931321144104004,
1.512147068977356,
-0.7023869752883911,
0.3899599313735962,
-2.3677334785461426,
1.458143711090088,
-0.8038574457168579,
2.00989031791687,
-2.722174882888794,
0.4659489691257477,
-0.618218183517456,
-0.495725154876709,
0.2895238995552063,
-0.29649674892425537,
0.10592237114906311,
-0.11080964654684067,
-1.1155500411987305,
-0.05552810803055763,
-0.6335407495498657,
0.5941407680511475,
1.195275068283081,
1.3294392824172974,
-1.158915400505066,
-0.24651147425174713,
-1.76710045337677,
-0.22111259400844574,
-0.7492126226425171,
0.2625686526298523,
-2.0190136432647705,
-0.23875685036182404,
-1.938817024230957,
-2.315598726272583,
-1.1488392353057861,
-0.7633364200592041,
1.0771756172180176,
0.12432949244976044,
-0.8946603536605835,
1.2486079931259155,
-0.3741345703601837,
-1.7932209968566895,
1.0909465551376343,
-2.139838218688965
] |
https://github.com/huggingface/datasets/issues/5332 | Passing numpy array to ClassLabel names causes ValueError | I agree that it's not easy to debug this issue, so perhaps we could add some basic type checking (e.g. `not isinstance(names, list)` -> error) to make debugging easier. Feel free to submit a PR.
> Additionally, passing in a set instead of the list (again, relatively easy because people may run set(classes) to generate uniques) causes an error when the features instance is used, albeit a slightly more obvious one.
`set` is an unordered structure (it's ordered in Python 3.6+, but this is CPython's implementation detail), and the order of ClassLabel `names` matters, so this doesn't require a fix. | ### Describe the bug
If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error.
### Steps to reproduce the bug
https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX
TLDR:
If I define my classes as:
```
my_classes = np.array(['one', 'two', 'three'])
```
Then this errors:
```py
features = Features({'value': Value('string'), 'label': ClassLabel(names=my_classes)})
dataset = Dataset.from_list(my_data, features=features)
```
```
ValueError Traceback (most recent call last)
[<ipython-input-8-a8a9d53ec82f>](https://localhost:8080/#) in <module>
----> 1 dataset = Dataset.from_list(my_data, features=features)
11 frames
[/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _asdict_inner(obj)
183 for f in fields(obj):
184 value = _asdict_inner(getattr(obj, f.name))
--> 185 if not f.init or value != f.default or f.metadata.get("include_in_asdict_even_if_is_default", False):
186 result[f.name] = value
187 return result
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
```
But this works:
```
features2 = Features({'value': Value('string'), 'label': ClassLabel(names=list(my_classes))})
dataset2 = Dataset.from_list(my_data, features=features2)
```
### Expected behavior
If I provide a numpy array of class names, I would expect either an error that the names list is the wrong type, or for it to be cast internally.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.10
- Python version: 3.8.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
Additionally:
- Numpy version: 1.23.5
| 384 | 100 | Passing numpy array to ClassLabel names causes ValueError
### Describe the bug
If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error.
### Steps to reproduce the bug
https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX
TLDR:
If I define my classes as:
```
my_classes = np.array(['one', 'two', 'three'])
```
Then this errors:
```py
features = Features({'value': Value('string'), 'label': ClassLabel(names=my_classes)})
dataset = Dataset.from_list(my_data, features=features)
```
```
ValueError Traceback (most recent call last)
[<ipython-input-8-a8a9d53ec82f>](https://localhost:8080/#) in <module>
----> 1 dataset = Dataset.from_list(my_data, features=features)
11 frames
[/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _asdict_inner(obj)
183 for f in fields(obj):
184 value = _asdict_inner(getattr(obj, f.name))
--> 185 if not f.init or value != f.default or f.metadata.get("include_in_asdict_even_if_is_default", False):
186 result[f.name] = value
187 return result
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
```
But this works:
```
features2 = Features({'value': Value('string'), 'label': ClassLabel(names=list(my_classes))})
dataset2 = Dataset.from_list(my_data, features=features2)
```
### Expected behavior
If I provide a numpy array of class names, I would expect either an error that the names list is the wrong type, or for it to be cast internally.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.10
- Python version: 3.8.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
Additionally:
- Numpy version: 1.23.5
I agree that it's not easy to debug this issue, so perhaps we could add some basic type checking (e.g. `not isinstance(names, list)` -> error) to make debugging easier. Feel free to submit a PR.
> Additionally, passing in a set instead of the list (again, relatively easy because people may run set(classes) to generate uniques) causes an error when the features instance is used, albeit a slightly more obvious one.
`set` is an unordered structure (it's ordered in Python 3.6+, but this is CPython's implementation detail), and the order of ClassLabel `names` matters, so this doesn't require a fix. | [
-1.2423409223556519,
-0.9427435398101807,
-0.6524389982223511,
1.6519964933395386,
-0.1358901411294937,
-1.1631975173950195,
0.15079466998577118,
-0.955312967300415,
1.5839974880218506,
-0.7523292303085327,
0.3405283987522125,
-1.6442815065383911,
0.02535400539636612,
-0.6284711360931396,
-0.7520215511322021,
-0.7438880205154419,
-0.4172194302082062,
-0.7320079803466797,
1.092803955078125,
2.4784209728240967,
1.3114590644836426,
-1.409680724143982,
2.7834060192108154,
0.7476816177368164,
-0.1974567472934723,
-1.0669994354248047,
0.48003408312797546,
-0.00983249582350254,
-1.2704404592514038,
-0.44545283913612366,
-0.966144323348999,
-0.10660050809383392,
-0.5245428085327148,
-0.5586154460906982,
0.020027857273817062,
0.4237571358680725,
-0.2473643273115158,
-0.45078974962234497,
-0.5478837490081787,
-0.7817754745483398,
0.49264857172966003,
-0.33927154541015625,
0.813991904258728,
-0.18166227638721466,
1.7974412441253662,
-0.5685902833938599,
0.40278196334838867,
0.665929913520813,
1.4332643747329712,
0.11091410368680954,
-0.10948530584573746,
0.517723798751831,
0.3392108380794525,
0.011353962123394012,
0.6060234308242798,
1.2811663150787354,
0.7079910039901733,
0.4177172780036926,
0.8432674407958984,
-2.2607429027557373,
1.2618032693862915,
-1.0596030950546265,
0.37163516879081726,
1.229445457458496,
-0.959327220916748,
0.44332602620124817,
-1.7191522121429443,
0.005598102696239948,
0.607593297958374,
-2.200437307357788,
0.3161800503730774,
-1.324334979057312,
-0.4770341217517853,
0.9981002807617188,
0.29962536692619324,
-1.2134941816329956,
0.1114359125494957,
-0.48011064529418945,
1.0717904567718506,
0.338672935962677,
1.1097537279129028,
-1.658800721168518,
0.007906375452876091,
-0.2569260001182556,
0.11346583813428879,
-1.254956603050232,
-1.5741609334945679,
0.5320984125137329,
0.6585030555725098,
0.5901563167572021,
-0.14985008537769318,
1.1069713830947876,
-0.9905811548233032,
0.6996533870697021,
-1.043304681777954,
-1.7214895486831665,
-1.4373338222503662,
-2.248084306716919,
-2.183537006378174,
0.6855040788650513,
-0.4918614327907562,
-0.4997255504131317,
2.067831516265869,
-0.9163702726364136,
-1.9164618253707886,
1.1439999341964722,
0.31825339794158936,
-0.015288702212274075,
2.3204338550567627,
0.1816650778055191,
-0.7736001014709473,
0.4280269742012024,
-0.7573051452636719,
0.7751230001449585,
-0.3353472352027893,
1.3804365396499634,
0.42695367336273193,
-0.9829123020172119,
1.652096152305603,
-0.36655476689338684,
0.5285691022872925,
-0.7026488780975342,
-0.4336143434047699,
-0.6875557899475098,
0.30362072587013245,
1.9336727857589722,
-0.35441040992736816,
1.4769034385681152,
-0.42952337861061096,
-1.4981189966201782,
-1.5546610355377197,
0.8201794624328613,
0.4548580050468445,
-0.8169004917144775,
0.1536450982093811,
-0.4852627217769623,
0.059235408902168274,
0.01159149780869484,
1.138845443725586,
1.298192024230957,
0.6335271596908569,
-0.35388198494911194,
-0.9045583009719849,
0.17558826506137848,
-0.029001547023653984,
-0.6271331310272217,
-1.863861083984375,
-0.3298631012439728,
0.16044175624847412,
0.6564968824386597,
-1.2083326578140259,
1.7290582656860352,
0.8914206027984619,
1.9257879257202148,
1.0443233251571655,
-0.3431646525859833,
1.5673822164535522,
0.04782283678650856,
1.8480314016342163,
-0.501829981803894,
0.614726185798645,
-0.4113299548625946,
-1.1930184364318848,
0.8364870548248291,
-0.31667134165763855,
-2.095669984817505,
-0.7068667411804199,
-0.7217901945114136,
-0.15157733857631683,
-0.8370662927627563,
0.9558285474777222,
-0.29011163115501404,
-1.4147469997406006,
0.21417048573493958,
-0.8086894750595093,
0.18650493025779724,
-1.184273600578308,
0.2865262031555176,
0.6875438690185547,
-0.629439115524292,
0.09468773752450943,
-0.32541242241859436,
-1.2886472940444946,
-0.5087627172470093,
0.3729977011680603,
1.7981160879135132,
-0.7464290857315063,
0.8553683757781982,
1.0900596380233765,
-0.6202950477600098,
0.06150347739458084,
0.22536316514015198,
-0.28570058941841125,
0.9052696228027344,
-1.0521055459976196,
-0.4999103844165802,
1.2106853723526,
-0.14925876259803772,
-0.6295249462127686,
1.4128155708312988,
0.7759305238723755,
-0.9737076759338379,
-0.2822009027004242,
-0.16867074370384216,
-0.8846203088760376,
-0.007628623396158218,
-1.5693691968917847,
-0.1562158167362213,
0.4153805673122406,
-1.5775392055511475,
-0.417273610830307,
-0.2046024352312088,
1.3741158246994019,
-0.1088871881365776,
1.5011045932769775,
-0.36224010586738586,
-0.16593487560749054,
-0.23431843519210815,
-0.3328516483306885,
0.18675869703292847,
-0.23417407274246216,
-0.6121821403503418,
0.1331556737422943,
-0.8360589742660522,
0.3874278664588928,
1.4438509941101074,
0.3615594506263733,
0.09471649676561356,
0.5558912754058838,
1.180932641029358,
0.42998453974723816,
-0.006894442718476057,
-0.8563947677612305,
-1.6158828735351562,
1.9247602224349976,
-1.470031499862671,
2.010071277618408,
0.7732588052749634,
0.036142703145742416,
-1.7650578022003174,
-1.8814706802368164,
1.3837262392044067,
1.164892554283142,
2.393906831741333,
0.540092945098877,
0.42262002825737,
-0.8607267141342163,
-0.6961708068847656,
0.2946164906024933,
-0.9975128173828125,
-0.7964314222335815,
0.1641141027212143,
2.4456772804260254,
1.8057303428649902,
-0.3922218978404999,
-0.1998213529586792,
-0.9482948780059814,
1.4382387399673462,
-0.2098597139120102,
0.2201022505760193,
1.9562610387802124,
-0.14101150631904602,
-1.0358281135559082,
1.2704075574874878,
-2.486844062805176,
0.2395392507314682,
2.0517544746398926,
0.244899183511734,
0.1291712075471878,
-1.368008017539978,
-0.6574440002441406,
-0.18889941275119781,
-0.45758387446403503,
-1.249733805656433,
0.4652944803237915,
-0.23738940060138702,
-0.799221396446228,
-1.4188021421432495,
0.1199544370174408,
-1.0814112424850464,
-1.6945587396621704,
0.28575849533081055,
1.9079097509384155,
2.0483345985412598,
-0.7542405128479004,
1.5728777647018433,
-0.3610900342464447,
0.25607767701148987,
1.3080945014953613,
1.3350989818572998,
3.0584909915924072,
1.9172366857528687,
-1.2928285598754883,
0.6306756734848022,
-0.09990715980529785,
-0.5328752994537354,
1.154585599899292,
-1.2456656694412231,
1.2248808145523071,
-0.16162191331386566,
-1.2262160778045654,
-1.2009917497634888,
0.9616413116455078,
0.49361667037010193,
0.0034456048160791397,
-0.4987260401248932,
1.1805775165557861,
0.04537240415811539,
1.2788950204849243,
0.6402091979980469,
-0.3889322578907013,
0.6215596199035645,
-0.29968082904815674,
-0.4396035969257355,
1.5530542135238647,
0.14071756601333618,
-1.3996094465255737,
-2.2272911071777344,
-0.13152766227722168,
-0.7986210584640503,
0.026519715785980225,
-0.6481859683990479,
-1.0710365772247314,
1.6043167114257812,
0.3052710294723511,
-1.1883493661880493,
-0.23111115396022797,
-0.35412847995758057,
-0.4615415632724762,
2.6192967891693115,
-1.3386542797088623,
-0.33594372868537903,
-1.053329348564148,
-0.554261326789856,
1.6078914403915405,
-1.0909749269485474,
-0.2264040857553482,
-0.9656652212142944,
-0.5818005800247192,
-1.2956491708755493,
-0.5406372547149658,
0.006923547014594078,
-0.859940767288208,
0.7733408212661743,
0.15414199233055115,
-1.2144320011138916,
-0.34714606404304504,
-0.8339836597442627,
0.9667613506317139,
-0.21490953862667084,
0.1893545687198639,
1.9389010667800903,
0.3362507224082947,
-0.36054205894470215,
0.8017598390579224,
1.1198159456253052,
0.6245609521865845,
-0.5006635189056396,
0.233423113822937,
-0.5737110376358032,
0.37330979108810425,
-1.4370838403701782,
0.3050546646118164,
-2.9042932987213135,
0.6643747091293335,
0.020522020757198334,
-0.025478623807430267,
-0.1033940240740776,
-1.4199481010437012,
1.0606218576431274,
2.5975239276885986,
-1.1645399332046509,
0.4857044219970703,
0.34832388162612915,
1.2141566276550293,
-1.6513721942901611,
0.21086344122886658,
-0.44241780042648315,
2.1377570629119873,
0.14101603627204895,
1.2599948644638062,
-0.4505363702774048,
-2.3683054447174072,
0.5638854503631592,
-1.2955840826034546,
-1.03440523147583,
0.7384140491485596,
-0.8655918836593628,
0.14810273051261902,
-1.4577062129974365,
-0.20981623232364655,
-0.9048161506652832,
-1.1090186834335327,
0.6478877067565918,
0.13545538485050201,
0.34532663226127625,
-0.5845023393630981,
0.3647633194923401,
-2.132439613342285,
-1.394961953163147,
-0.16713443398475647,
-0.9973654747009277,
0.5091322660446167,
-0.408832311630249,
0.665533185005188,
-0.10913483798503876,
-0.014550154097378254,
0.31502360105514526,
1.48846435546875,
3.3149871826171875,
0.21419695019721985,
0.29802119731903076,
-0.21540285646915436,
-0.9086016416549683,
1.5084277391433716,
0.8613252639770508,
-0.22681957483291626,
-0.5109645128250122,
-1.031192660331726,
1.3602944612503052,
1.9472192525863647,
0.9794269800186157,
0.027354147285223007,
-0.8173108100891113,
-0.8135669231414795,
-0.005282704718410969,
0.13762369751930237,
0.47270089387893677,
0.9514189958572388,
0.1212671548128128,
0.06039375811815262,
1.3097158670425415,
1.1456338167190552,
-0.4584287106990814,
0.4621877372264862,
-0.9134371280670166,
-0.49201223254203796,
0.3996565639972687,
0.1965574026107788,
-0.06762422621250153,
0.32071492075920105,
-1.0064818859100342,
-0.2846158444881439,
-0.4037453234195709,
-0.8057503700256348,
-0.7738116979598999,
-0.37638628482818604,
-0.4017585813999176,
1.6122955083847046,
0.14405494928359985,
-0.6174197196960449,
-0.10508009791374207,
-0.7296081781387329,
-0.1338733434677124,
-1.0486650466918945,
0.23105460405349731,
-0.1244211345911026,
-0.07523125410079956,
-0.10421089828014374,
1.613702654838562,
-0.856620192527771,
-2.0754709243774414,
0.14104267954826355,
0.2526891231536865,
-0.3314771056175232,
0.20551230013370514,
1.760172724723816,
0.5488609075546265,
1.4256623983383179,
1.3685588836669922,
1.0172797441482544,
-0.6235051155090332,
-1.2609736919403076,
0.7441670894622803,
1.0031609535217285,
-1.4004944562911987,
0.809333324432373,
-0.058591488748788834,
-0.55206298828125,
0.5833762884140015,
1.3413704633712769,
0.5308017730712891,
-2.0942635536193848,
0.8519158363342285,
-0.9951063394546509,
0.8296873569488525,
0.7312164306640625,
0.6883715391159058,
0.267935186624527,
0.8301479816436768,
-1.217166543006897,
-1.0913532972335815,
-0.7316745519638062,
-0.7233333587646484,
1.9739940166473389,
-0.3291276693344116,
0.5252249240875244,
-0.22780893743038177,
-1.3937067985534668,
-0.1445005238056183,
0.7614482641220093,
0.27833837270736694,
-0.6311485767364502,
0.8081730604171753,
-0.6591206789016724,
-1.0687764883041382,
-1.307973861694336,
-0.49571317434310913,
-0.9652588367462158,
-0.9812333583831787,
0.9585431814193726,
0.8137329816818237,
0.2764568626880646,
1.8672873973846436,
0.6257811784744263,
0.09995142370462418,
-2.6082191467285156,
0.903335690498352,
0.2965365946292877,
-0.11087912321090698,
0.7971441745758057,
0.2550848722457886,
0.9767782688140869,
0.027263496071100235,
0.5845216512680054,
-2.3821632862091064,
2.2828779220581055,
-0.13298076391220093,
0.7410342693328857,
0.0016086623072624207,
-0.15975552797317505,
1.0937602519989014,
0.4852282404899597,
0.6128199100494385,
-1.0114123821258545,
0.6737735271453857,
-0.5999735593795776,
1.2524503469467163,
0.8173010349273682,
-0.8677862882614136,
-0.04644787684082985,
1.4083921909332275,
0.38781899213790894,
-0.6301852464675903,
-0.9147719144821167,
-1.0311589241027832,
0.9605859518051147,
1.7220712900161743,
0.009428434073925018,
0.060813240706920624,
0.8247699737548828,
0.6346563100814819,
-1.238631010055542,
0.01254240795969963,
-0.6872116327285767,
-0.725792407989502,
1.735475778579712,
2.1064116954803467,
-0.301285058259964,
-0.21173876523971558,
-0.6832599639892578,
-1.329621434211731,
0.8070262670516968,
-0.10534699261188507,
0.08492929488420486,
0.7007683515548706,
-0.6665374040603638,
1.072672724723816,
0.7610393762588501,
0.8779568672180176,
0.1499665379524231,
0.2448653280735016,
0.32930392026901245,
-0.35997769236564636,
-1.1640499830245972,
-0.25501716136932373,
-1.1300685405731201,
-2.467280626296997,
0.40596964955329895,
-0.09356789290904999,
-1.3442338705062866,
0.07071597874164581,
-1.0393558740615845,
0.9403239488601685,
-0.590472936630249,
-1.0998820066452026,
-1.4397436380386353,
0.19524028897285461,
-0.09551741927862167,
0.8678427934646606,
-1.6167250871658325,
-0.044854626059532166,
1.2202068567276,
0.9107238054275513,
-0.6695826053619385,
0.9736385345458984,
0.2784213423728943,
1.056685209274292,
0.9169281721115112,
-0.3017351031303406,
0.5257651805877686,
0.03946836292743683,
-1.2502996921539307,
0.5264548063278198,
1.1756689548492432,
0.17246469855308533,
1.5054231882095337,
-0.4958087205886841,
-0.0736924335360527,
0.41815587878227234,
-0.6039550304412842,
-0.4807429909706116,
-0.4831898808479309,
0.5387905836105347,
-0.01319875568151474,
-0.9350556135177612,
-0.05842171609401703,
-0.01768416352570057,
-0.22731304168701172,
0.11195769160985947,
-1.5534255504608154,
-0.07633446902036667,
-0.33442530035972595,
-0.5926171541213989,
-1.2163928747177124,
-0.031129151582717896,
1.4159117937088013,
-0.7247802019119263,
-0.27950137853622437,
0.4517934024333954,
0.3382807970046997,
0.5108534097671509,
0.659122109413147,
-0.667243242263794,
-0.31206825375556946,
-0.18270578980445862,
-0.3322339355945587,
0.3583509922027588,
1.3159006834030151,
-0.08036138117313385,
-0.910429835319519,
0.6822344064712524,
-0.4144212007522583,
0.08609989285469055,
1.8212283849716187,
0.004034517332911491,
-0.740092396736145,
0.2508510649204254,
-0.736722469329834,
1.9470981359481812,
1.7596380710601807,
1.312733769416809,
-0.21492314338684082,
-0.945574164390564,
0.6832305192947388,
-0.3981388807296753,
-0.3751092255115509,
0.8527089357376099,
0.40444716811180115,
-0.20455819368362427,
-1.4522104263305664,
0.7268195152282715,
1.2907624244689941,
-0.8375058174133301,
-0.7540607452392578,
0.09986662119626999,
-0.7655256986618042,
1.1671844720840454,
0.6512556076049805,
0.295073926448822,
0.23292165994644165,
1.6101090908050537,
0.7634210586547852,
-0.3884849548339844,
0.5637342929840088,
0.5113857984542847,
-0.1413399577140808,
-2.1219778060913086,
-1.1811631917953491,
0.25877875089645386,
-0.4325489103794098,
-1.6367013454437256,
1.275604486465454,
-1.145717740058899,
-0.9215458631515503,
0.4903191924095154,
0.040871087461709976,
1.474700927734375,
0.3602566421031952,
1.5835380554199219,
2.0143303871154785,
0.8734496831893921,
0.4133540987968445,
1.2298612594604492,
-0.12312187999486923,
-0.4159151017665863,
1.705589771270752,
-0.46658676862716675,
0.49813541769981384,
1.043581247329712,
-0.3414957523345947,
-1.1928460597991943,
-0.7501034736633301,
-1.3875831365585327,
-0.7459189891815186,
1.14897620677948,
0.08018636703491211,
-1.1052287817001343,
0.3213416039943695,
1.5646642446517944,
0.1198417991399765,
-0.30509382486343384,
0.6517573595046997,
0.41748327016830444,
-0.8268929719924927,
-0.07446745783090591,
-0.8799945116043091,
0.46882086992263794,
-0.21457211673259735,
-0.3756924569606781,
0.4012053906917572,
0.4651327431201935,
1.2915574312210083,
0.061184413731098175,
0.07365982234477997,
1.0971254110336304,
-1.4931321144104004,
1.512147068977356,
-0.7023869752883911,
0.3899599313735962,
-2.3677334785461426,
1.458143711090088,
-0.8038574457168579,
2.00989031791687,
-2.722174882888794,
0.4659489691257477,
-0.618218183517456,
-0.495725154876709,
0.2895238995552063,
-0.29649674892425537,
0.10592237114906311,
-0.11080964654684067,
-1.1155500411987305,
-0.05552810803055763,
-0.6335407495498657,
0.5941407680511475,
1.195275068283081,
1.3294392824172974,
-1.158915400505066,
-0.24651147425174713,
-1.76710045337677,
-0.22111259400844574,
-0.7492126226425171,
0.2625686526298523,
-2.0190136432647705,
-0.23875685036182404,
-1.938817024230957,
-2.315598726272583,
-1.1488392353057861,
-0.7633364200592041,
1.0771756172180176,
0.12432949244976044,
-0.8946603536605835,
1.2486079931259155,
-0.3741345703601837,
-1.7932209968566895,
1.0909465551376343,
-2.139838218688965
] |
https://github.com/huggingface/datasets/issues/5332 | Passing numpy array to ClassLabel names causes ValueError | What about checking for `Sequence` instead? I think users can pass a list or a tuple as well. | ### Describe the bug
If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error.
### Steps to reproduce the bug
https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX
TLDR:
If I define my classes as:
```
my_classes = np.array(['one', 'two', 'three'])
```
Then this errors:
```py
features = Features({'value': Value('string'), 'label': ClassLabel(names=my_classes)})
dataset = Dataset.from_list(my_data, features=features)
```
```
ValueError Traceback (most recent call last)
[<ipython-input-8-a8a9d53ec82f>](https://localhost:8080/#) in <module>
----> 1 dataset = Dataset.from_list(my_data, features=features)
11 frames
[/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _asdict_inner(obj)
183 for f in fields(obj):
184 value = _asdict_inner(getattr(obj, f.name))
--> 185 if not f.init or value != f.default or f.metadata.get("include_in_asdict_even_if_is_default", False):
186 result[f.name] = value
187 return result
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
```
But this works:
```
features2 = Features({'value': Value('string'), 'label': ClassLabel(names=list(my_classes))})
dataset2 = Dataset.from_list(my_data, features=features2)
```
### Expected behavior
If I provide a numpy array of class names, I would expect either an error that the names list is the wrong type, or for it to be cast internally.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.10
- Python version: 3.8.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
Additionally:
- Numpy version: 1.23.5
| 384 | 18 | Passing numpy array to ClassLabel names causes ValueError
### Describe the bug
If a numpy array is passed to the names argument of ClassLabel, creating a dataset with those features causes an error.
### Steps to reproduce the bug
https://colab.research.google.com/drive/1cV_es1PWZiEuus17n-2C-w0KEoEZ68IX
TLDR:
If I define my classes as:
```
my_classes = np.array(['one', 'two', 'three'])
```
Then this errors:
```py
features = Features({'value': Value('string'), 'label': ClassLabel(names=my_classes)})
dataset = Dataset.from_list(my_data, features=features)
```
```
ValueError Traceback (most recent call last)
[<ipython-input-8-a8a9d53ec82f>](https://localhost:8080/#) in <module>
----> 1 dataset = Dataset.from_list(my_data, features=features)
11 frames
[/usr/local/lib/python3.8/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _asdict_inner(obj)
183 for f in fields(obj):
184 value = _asdict_inner(getattr(obj, f.name))
--> 185 if not f.init or value != f.default or f.metadata.get("include_in_asdict_even_if_is_default", False):
186 result[f.name] = value
187 return result
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
```
But this works:
```
features2 = Features({'value': Value('string'), 'label': ClassLabel(names=list(my_classes))})
dataset2 = Dataset.from_list(my_data, features=features2)
```
### Expected behavior
If I provide a numpy array of class names, I would expect either an error that the names list is the wrong type, or for it to be cast internally.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.10
- Python version: 3.8.15
- PyArrow version: 10.0.1
- Pandas version: 1.5.2
Additionally:
- Numpy version: 1.23.5
What about checking for `Sequence` instead? I think users can pass a list or a tuple as well. | [
-1.2423409223556519,
-0.9427435398101807,
-0.6524389982223511,
1.6519964933395386,
-0.1358901411294937,
-1.1631975173950195,
0.15079466998577118,
-0.955312967300415,
1.5839974880218506,
-0.7523292303085327,
0.3405283987522125,
-1.6442815065383911,
0.02535400539636612,
-0.6284711360931396,
-0.7520215511322021,
-0.7438880205154419,
-0.4172194302082062,
-0.7320079803466797,
1.092803955078125,
2.4784209728240967,
1.3114590644836426,
-1.409680724143982,
2.7834060192108154,
0.7476816177368164,
-0.1974567472934723,
-1.0669994354248047,
0.48003408312797546,
-0.00983249582350254,
-1.2704404592514038,
-0.44545283913612366,
-0.966144323348999,
-0.10660050809383392,
-0.5245428085327148,
-0.5586154460906982,
0.020027857273817062,
0.4237571358680725,
-0.2473643273115158,
-0.45078974962234497,
-0.5478837490081787,
-0.7817754745483398,
0.49264857172966003,
-0.33927154541015625,
0.813991904258728,
-0.18166227638721466,
1.7974412441253662,
-0.5685902833938599,
0.40278196334838867,
0.665929913520813,
1.4332643747329712,
0.11091410368680954,
-0.10948530584573746,
0.517723798751831,
0.3392108380794525,
0.011353962123394012,
0.6060234308242798,
1.2811663150787354,
0.7079910039901733,
0.4177172780036926,
0.8432674407958984,
-2.2607429027557373,
1.2618032693862915,
-1.0596030950546265,
0.37163516879081726,
1.229445457458496,
-0.959327220916748,
0.44332602620124817,
-1.7191522121429443,
0.005598102696239948,
0.607593297958374,
-2.200437307357788,
0.3161800503730774,
-1.324334979057312,
-0.4770341217517853,
0.9981002807617188,
0.29962536692619324,
-1.2134941816329956,
0.1114359125494957,
-0.48011064529418945,
1.0717904567718506,
0.338672935962677,
1.1097537279129028,
-1.658800721168518,
0.007906375452876091,
-0.2569260001182556,
0.11346583813428879,
-1.254956603050232,
-1.5741609334945679,
0.5320984125137329,
0.6585030555725098,
0.5901563167572021,
-0.14985008537769318,
1.1069713830947876,
-0.9905811548233032,
0.6996533870697021,
-1.043304681777954,
-1.7214895486831665,
-1.4373338222503662,
-2.248084306716919,
-2.183537006378174,
0.6855040788650513,
-0.4918614327907562,
-0.4997255504131317,
2.067831516265869,
-0.9163702726364136,
-1.9164618253707886,
1.1439999341964722,
0.31825339794158936,
-0.015288702212274075,
2.3204338550567627,
0.1816650778055191,
-0.7736001014709473,
0.4280269742012024,
-0.7573051452636719,
0.7751230001449585,
-0.3353472352027893,
1.3804365396499634,
0.42695367336273193,
-0.9829123020172119,
1.652096152305603,
-0.36655476689338684,
0.5285691022872925,
-0.7026488780975342,
-0.4336143434047699,
-0.6875557899475098,
0.30362072587013245,
1.9336727857589722,
-0.35441040992736816,
1.4769034385681152,
-0.42952337861061096,
-1.4981189966201782,
-1.5546610355377197,
0.8201794624328613,
0.4548580050468445,
-0.8169004917144775,
0.1536450982093811,
-0.4852627217769623,
0.059235408902168274,
0.01159149780869484,
1.138845443725586,
1.298192024230957,
0.6335271596908569,
-0.35388198494911194,
-0.9045583009719849,
0.17558826506137848,
-0.029001547023653984,
-0.6271331310272217,
-1.863861083984375,
-0.3298631012439728,
0.16044175624847412,
0.6564968824386597,
-1.2083326578140259,
1.7290582656860352,
0.8914206027984619,
1.9257879257202148,
1.0443233251571655,
-0.3431646525859833,
1.5673822164535522,
0.04782283678650856,
1.8480314016342163,
-0.501829981803894,
0.614726185798645,
-0.4113299548625946,
-1.1930184364318848,
0.8364870548248291,
-0.31667134165763855,
-2.095669984817505,
-0.7068667411804199,
-0.7217901945114136,
-0.15157733857631683,
-0.8370662927627563,
0.9558285474777222,
-0.29011163115501404,
-1.4147469997406006,
0.21417048573493958,
-0.8086894750595093,
0.18650493025779724,
-1.184273600578308,
0.2865262031555176,
0.6875438690185547,
-0.629439115524292,
0.09468773752450943,
-0.32541242241859436,
-1.2886472940444946,
-0.5087627172470093,
0.3729977011680603,
1.7981160879135132,
-0.7464290857315063,
0.8553683757781982,
1.0900596380233765,
-0.6202950477600098,
0.06150347739458084,
0.22536316514015198,
-0.28570058941841125,
0.9052696228027344,
-1.0521055459976196,
-0.4999103844165802,
1.2106853723526,
-0.14925876259803772,
-0.6295249462127686,
1.4128155708312988,
0.7759305238723755,
-0.9737076759338379,
-0.2822009027004242,
-0.16867074370384216,
-0.8846203088760376,
-0.007628623396158218,
-1.5693691968917847,
-0.1562158167362213,
0.4153805673122406,
-1.5775392055511475,
-0.417273610830307,
-0.2046024352312088,
1.3741158246994019,
-0.1088871881365776,
1.5011045932769775,
-0.36224010586738586,
-0.16593487560749054,
-0.23431843519210815,
-0.3328516483306885,
0.18675869703292847,
-0.23417407274246216,
-0.6121821403503418,
0.1331556737422943,
-0.8360589742660522,
0.3874278664588928,
1.4438509941101074,
0.3615594506263733,
0.09471649676561356,
0.5558912754058838,
1.180932641029358,
0.42998453974723816,
-0.006894442718476057,
-0.8563947677612305,
-1.6158828735351562,
1.9247602224349976,
-1.470031499862671,
2.010071277618408,
0.7732588052749634,
0.036142703145742416,
-1.7650578022003174,
-1.8814706802368164,
1.3837262392044067,
1.164892554283142,
2.393906831741333,
0.540092945098877,
0.42262002825737,
-0.8607267141342163,
-0.6961708068847656,
0.2946164906024933,
-0.9975128173828125,
-0.7964314222335815,
0.1641141027212143,
2.4456772804260254,
1.8057303428649902,
-0.3922218978404999,
-0.1998213529586792,
-0.9482948780059814,
1.4382387399673462,
-0.2098597139120102,
0.2201022505760193,
1.9562610387802124,
-0.14101150631904602,
-1.0358281135559082,
1.2704075574874878,
-2.486844062805176,
0.2395392507314682,
2.0517544746398926,
0.244899183511734,
0.1291712075471878,
-1.368008017539978,
-0.6574440002441406,
-0.18889941275119781,
-0.45758387446403503,
-1.249733805656433,
0.4652944803237915,
-0.23738940060138702,
-0.799221396446228,
-1.4188021421432495,
0.1199544370174408,
-1.0814112424850464,
-1.6945587396621704,
0.28575849533081055,
1.9079097509384155,
2.0483345985412598,
-0.7542405128479004,
1.5728777647018433,
-0.3610900342464447,
0.25607767701148987,
1.3080945014953613,
1.3350989818572998,
3.0584909915924072,
1.9172366857528687,
-1.2928285598754883,
0.6306756734848022,
-0.09990715980529785,
-0.5328752994537354,
1.154585599899292,
-1.2456656694412231,
1.2248808145523071,
-0.16162191331386566,
-1.2262160778045654,
-1.2009917497634888,
0.9616413116455078,
0.49361667037010193,
0.0034456048160791397,
-0.4987260401248932,
1.1805775165557861,
0.04537240415811539,
1.2788950204849243,
0.6402091979980469,
-0.3889322578907013,
0.6215596199035645,
-0.29968082904815674,
-0.4396035969257355,
1.5530542135238647,
0.14071756601333618,
-1.3996094465255737,
-2.2272911071777344,
-0.13152766227722168,
-0.7986210584640503,
0.026519715785980225,
-0.6481859683990479,
-1.0710365772247314,
1.6043167114257812,
0.3052710294723511,
-1.1883493661880493,
-0.23111115396022797,
-0.35412847995758057,
-0.4615415632724762,
2.6192967891693115,
-1.3386542797088623,
-0.33594372868537903,
-1.053329348564148,
-0.554261326789856,
1.6078914403915405,
-1.0909749269485474,
-0.2264040857553482,
-0.9656652212142944,
-0.5818005800247192,
-1.2956491708755493,
-0.5406372547149658,
0.006923547014594078,
-0.859940767288208,
0.7733408212661743,
0.15414199233055115,
-1.2144320011138916,
-0.34714606404304504,
-0.8339836597442627,
0.9667613506317139,
-0.21490953862667084,
0.1893545687198639,
1.9389010667800903,
0.3362507224082947,
-0.36054205894470215,
0.8017598390579224,
1.1198159456253052,
0.6245609521865845,
-0.5006635189056396,
0.233423113822937,
-0.5737110376358032,
0.37330979108810425,
-1.4370838403701782,
0.3050546646118164,
-2.9042932987213135,
0.6643747091293335,
0.020522020757198334,
-0.025478623807430267,
-0.1033940240740776,
-1.4199481010437012,
1.0606218576431274,
2.5975239276885986,
-1.1645399332046509,
0.4857044219970703,
0.34832388162612915,
1.2141566276550293,
-1.6513721942901611,
0.21086344122886658,
-0.44241780042648315,
2.1377570629119873,
0.14101603627204895,
1.2599948644638062,
-0.4505363702774048,
-2.3683054447174072,
0.5638854503631592,
-1.2955840826034546,
-1.03440523147583,
0.7384140491485596,
-0.8655918836593628,
0.14810273051261902,
-1.4577062129974365,
-0.20981623232364655,
-0.9048161506652832,
-1.1090186834335327,
0.6478877067565918,
0.13545538485050201,
0.34532663226127625,
-0.5845023393630981,
0.3647633194923401,
-2.132439613342285,
-1.394961953163147,
-0.16713443398475647,
-0.9973654747009277,
0.5091322660446167,
-0.408832311630249,
0.665533185005188,
-0.10913483798503876,
-0.014550154097378254,
0.31502360105514526,
1.48846435546875,
3.3149871826171875,
0.21419695019721985,
0.29802119731903076,
-0.21540285646915436,
-0.9086016416549683,
1.5084277391433716,
0.8613252639770508,
-0.22681957483291626,
-0.5109645128250122,
-1.031192660331726,
1.3602944612503052,
1.9472192525863647,
0.9794269800186157,
0.027354147285223007,
-0.8173108100891113,
-0.8135669231414795,
-0.005282704718410969,
0.13762369751930237,
0.47270089387893677,
0.9514189958572388,
0.1212671548128128,
0.06039375811815262,
1.3097158670425415,
1.1456338167190552,
-0.4584287106990814,
0.4621877372264862,
-0.9134371280670166,
-0.49201223254203796,
0.3996565639972687,
0.1965574026107788,
-0.06762422621250153,
0.32071492075920105,
-1.0064818859100342,
-0.2846158444881439,
-0.4037453234195709,
-0.8057503700256348,
-0.7738116979598999,
-0.37638628482818604,
-0.4017585813999176,
1.6122955083847046,
0.14405494928359985,
-0.6174197196960449,
-0.10508009791374207,
-0.7296081781387329,
-0.1338733434677124,
-1.0486650466918945,
0.23105460405349731,
-0.1244211345911026,
-0.07523125410079956,
-0.10421089828014374,
1.613702654838562,
-0.856620192527771,
-2.0754709243774414,
0.14104267954826355,
0.2526891231536865,
-0.3314771056175232,
0.20551230013370514,
1.760172724723816,
0.5488609075546265,
1.4256623983383179,
1.3685588836669922,
1.0172797441482544,
-0.6235051155090332,
-1.2609736919403076,
0.7441670894622803,
1.0031609535217285,
-1.4004944562911987,
0.809333324432373,
-0.058591488748788834,
-0.55206298828125,
0.5833762884140015,
1.3413704633712769,
0.5308017730712891,
-2.0942635536193848,
0.8519158363342285,
-0.9951063394546509,
0.8296873569488525,
0.7312164306640625,
0.6883715391159058,
0.267935186624527,
0.8301479816436768,
-1.217166543006897,
-1.0913532972335815,
-0.7316745519638062,
-0.7233333587646484,
1.9739940166473389,
-0.3291276693344116,
0.5252249240875244,
-0.22780893743038177,
-1.3937067985534668,
-0.1445005238056183,
0.7614482641220093,
0.27833837270736694,
-0.6311485767364502,
0.8081730604171753,
-0.6591206789016724,
-1.0687764883041382,
-1.307973861694336,
-0.49571317434310913,
-0.9652588367462158,
-0.9812333583831787,
0.9585431814193726,
0.8137329816818237,
0.2764568626880646,
1.8672873973846436,
0.6257811784744263,
0.09995142370462418,
-2.6082191467285156,
0.903335690498352,
0.2965365946292877,
-0.11087912321090698,
0.7971441745758057,
0.2550848722457886,
0.9767782688140869,
0.027263496071100235,
0.5845216512680054,
-2.3821632862091064,
2.2828779220581055,
-0.13298076391220093,
0.7410342693328857,
0.0016086623072624207,
-0.15975552797317505,
1.0937602519989014,
0.4852282404899597,
0.6128199100494385,
-1.0114123821258545,
0.6737735271453857,
-0.5999735593795776,
1.2524503469467163,
0.8173010349273682,
-0.8677862882614136,
-0.04644787684082985,
1.4083921909332275,
0.38781899213790894,
-0.6301852464675903,
-0.9147719144821167,
-1.0311589241027832,
0.9605859518051147,
1.7220712900161743,
0.009428434073925018,
0.060813240706920624,
0.8247699737548828,
0.6346563100814819,
-1.238631010055542,
0.01254240795969963,
-0.6872116327285767,
-0.725792407989502,
1.735475778579712,
2.1064116954803467,
-0.301285058259964,
-0.21173876523971558,
-0.6832599639892578,
-1.329621434211731,
0.8070262670516968,
-0.10534699261188507,
0.08492929488420486,
0.7007683515548706,
-0.6665374040603638,
1.072672724723816,
0.7610393762588501,
0.8779568672180176,
0.1499665379524231,
0.2448653280735016,
0.32930392026901245,
-0.35997769236564636,
-1.1640499830245972,
-0.25501716136932373,
-1.1300685405731201,
-2.467280626296997,
0.40596964955329895,
-0.09356789290904999,
-1.3442338705062866,
0.07071597874164581,
-1.0393558740615845,
0.9403239488601685,
-0.590472936630249,
-1.0998820066452026,
-1.4397436380386353,
0.19524028897285461,
-0.09551741927862167,
0.8678427934646606,
-1.6167250871658325,
-0.044854626059532166,
1.2202068567276,
0.9107238054275513,
-0.6695826053619385,
0.9736385345458984,
0.2784213423728943,
1.056685209274292,
0.9169281721115112,
-0.3017351031303406,
0.5257651805877686,
0.03946836292743683,
-1.2502996921539307,
0.5264548063278198,
1.1756689548492432,
0.17246469855308533,
1.5054231882095337,
-0.4958087205886841,
-0.0736924335360527,
0.41815587878227234,
-0.6039550304412842,
-0.4807429909706116,
-0.4831898808479309,
0.5387905836105347,
-0.01319875568151474,
-0.9350556135177612,
-0.05842171609401703,
-0.01768416352570057,
-0.22731304168701172,
0.11195769160985947,
-1.5534255504608154,
-0.07633446902036667,
-0.33442530035972595,
-0.5926171541213989,
-1.2163928747177124,
-0.031129151582717896,
1.4159117937088013,
-0.7247802019119263,
-0.27950137853622437,
0.4517934024333954,
0.3382807970046997,
0.5108534097671509,
0.659122109413147,
-0.667243242263794,
-0.31206825375556946,
-0.18270578980445862,
-0.3322339355945587,
0.3583509922027588,
1.3159006834030151,
-0.08036138117313385,
-0.910429835319519,
0.6822344064712524,
-0.4144212007522583,
0.08609989285469055,
1.8212283849716187,
0.004034517332911491,
-0.740092396736145,
0.2508510649204254,
-0.736722469329834,
1.9470981359481812,
1.7596380710601807,
1.312733769416809,
-0.21492314338684082,
-0.945574164390564,
0.6832305192947388,
-0.3981388807296753,
-0.3751092255115509,
0.8527089357376099,
0.40444716811180115,
-0.20455819368362427,
-1.4522104263305664,
0.7268195152282715,
1.2907624244689941,
-0.8375058174133301,
-0.7540607452392578,
0.09986662119626999,
-0.7655256986618042,
1.1671844720840454,
0.6512556076049805,
0.295073926448822,
0.23292165994644165,
1.6101090908050537,
0.7634210586547852,
-0.3884849548339844,
0.5637342929840088,
0.5113857984542847,
-0.1413399577140808,
-2.1219778060913086,
-1.1811631917953491,
0.25877875089645386,
-0.4325489103794098,
-1.6367013454437256,
1.275604486465454,
-1.145717740058899,
-0.9215458631515503,
0.4903191924095154,
0.040871087461709976,
1.474700927734375,
0.3602566421031952,
1.5835380554199219,
2.0143303871154785,
0.8734496831893921,
0.4133540987968445,
1.2298612594604492,
-0.12312187999486923,
-0.4159151017665863,
1.705589771270752,
-0.46658676862716675,
0.49813541769981384,
1.043581247329712,
-0.3414957523345947,
-1.1928460597991943,
-0.7501034736633301,
-1.3875831365585327,
-0.7459189891815186,
1.14897620677948,
0.08018636703491211,
-1.1052287817001343,
0.3213416039943695,
1.5646642446517944,
0.1198417991399765,
-0.30509382486343384,
0.6517573595046997,
0.41748327016830444,
-0.8268929719924927,
-0.07446745783090591,
-0.8799945116043091,
0.46882086992263794,
-0.21457211673259735,
-0.3756924569606781,
0.4012053906917572,
0.4651327431201935,
1.2915574312210083,
0.061184413731098175,
0.07365982234477997,
1.0971254110336304,
-1.4931321144104004,
1.512147068977356,
-0.7023869752883911,
0.3899599313735962,
-2.3677334785461426,
1.458143711090088,
-0.8038574457168579,
2.00989031791687,
-2.722174882888794,
0.4659489691257477,
-0.618218183517456,
-0.495725154876709,
0.2895238995552063,
-0.29649674892425537,
0.10592237114906311,
-0.11080964654684067,
-1.1155500411987305,
-0.05552810803055763,
-0.6335407495498657,
0.5941407680511475,
1.195275068283081,
1.3294392824172974,
-1.158915400505066,
-0.24651147425174713,
-1.76710045337677,
-0.22111259400844574,
-0.7492126226425171,
0.2625686526298523,
-2.0190136432647705,
-0.23875685036182404,
-1.938817024230957,
-2.315598726272583,
-1.1488392353057861,
-0.7633364200592041,
1.0771756172180176,
0.12432949244976044,
-0.8946603536605835,
1.2486079931259155,
-0.3741345703601837,
-1.7932209968566895,
1.0909465551376343,
-2.139838218688965
] |
https://github.com/huggingface/datasets/issues/5325 | map(...batch_size=None) for IterableDataset | Hi! I agree it makes sense for `IterableDataset.map` to support the `batch_size=None` case. This should be super easy to fix. | ### Feature request
Dataset.map(...) allows batch_size to be None. It would be nice if IterableDataset did too.
### Motivation
Although it may seem a bit of a spurious request given that `IterableDataset` is meant for larger than memory datasets, but there are a couple of reasons why this might be nice.
One is that load_dataset(...) can return either IterableDataset or Dataset. mypy will then complain if batch_size=None even if we know it is Dataset. Of course we can do:
assert isinstance(d, datasets.DatasetDict)
But it is a mild inconvenience. What's more annoying is that whenever we use something like e.g. `combine_datasets(...)`, we end up with the union again, and so have to do the assert again.
Another is that we could actually end up with an IterableDataset small enough for memory in normal/correct usage, e.g. by filtering a massive IterableDataset.
For practical usages, an alternative to this would be to convert from an iterable dataset to a map-style dataset, but it is not obvious how to do this.
### Your contribution
Not this time. | 385 | 20 | map(...batch_size=None) for IterableDataset
### Feature request
Dataset.map(...) allows batch_size to be None. It would be nice if IterableDataset did too.
### Motivation
Although it may seem a bit of a spurious request given that `IterableDataset` is meant for larger than memory datasets, but there are a couple of reasons why this might be nice.
One is that load_dataset(...) can return either IterableDataset or Dataset. mypy will then complain if batch_size=None even if we know it is Dataset. Of course we can do:
assert isinstance(d, datasets.DatasetDict)
But it is a mild inconvenience. What's more annoying is that whenever we use something like e.g. `combine_datasets(...)`, we end up with the union again, and so have to do the assert again.
Another is that we could actually end up with an IterableDataset small enough for memory in normal/correct usage, e.g. by filtering a massive IterableDataset.
For practical usages, an alternative to this would be to convert from an iterable dataset to a map-style dataset, but it is not obvious how to do this.
### Your contribution
Not this time.
Hi! I agree it makes sense for `IterableDataset.map` to support the `batch_size=None` case. This should be super easy to fix. | [
-1.2428652048110962,
-1.0249131917953491,
-0.705143392086029,
1.4132028818130493,
-0.15908421576023102,
-1.2323696613311768,
0.1825770139694214,
-1.0238515138626099,
1.763264536857605,
-0.8696856498718262,
0.3509354889392853,
-1.7236558198928833,
0.08649272471666336,
-0.44251522421836853,
-0.7467775344848633,
-0.8503011465072632,
-0.5311038494110107,
-0.8390733003616333,
0.9682596921920776,
2.60764217376709,
1.0795204639434814,
-1.399305820465088,
2.5876598358154297,
0.5395041704177856,
-0.05408213287591934,
-1.120836615562439,
0.4790275990962982,
0.000544907059520483,
-1.3854477405548096,
-0.48367762565612793,
-0.9223960638046265,
-0.08560723811388016,
-0.5310248732566833,
-0.5826660394668579,
0.013956816866993904,
0.3482635021209717,
-0.18477961421012878,
-0.46209120750427246,
-0.47884446382522583,
-0.7725370526313782,
0.4652060866355896,
-0.49079105257987976,
1.053687334060669,
-0.32736513018608093,
1.8158471584320068,
-0.47153422236442566,
0.6244816184043884,
0.6830511093139648,
1.358681321144104,
0.2576696276664734,
0.062124401330947876,
0.20199701189994812,
0.4885352849960327,
0.07165388762950897,
0.44751062989234924,
0.9736749529838562,
0.705479621887207,
0.4128062129020691,
0.6013562679290771,
-2.243211507797241,
1.3825629949569702,
-1.0659581422805786,
0.391014963388443,
1.4019967317581177,
-0.9254807233810425,
0.2585994303226471,
-1.7633594274520874,
-0.07723848521709442,
0.6200962662696838,
-2.1958999633789062,
0.16403843462467194,
-1.3489817380905151,
-0.3966251015663147,
1.1272759437561035,
0.3037552833557129,
-1.285878300666809,
0.1641075760126114,
-0.4334578812122345,
0.8891209959983826,
0.5102249383926392,
1.1714853048324585,
-1.6892021894454956,
-0.13661572337150574,
-0.3397195041179657,
0.18691980838775635,
-1.2743674516677856,
-1.4938513040542603,
0.5835168361663818,
0.6631290316581726,
0.5721921920776367,
-0.031549058854579926,
0.9702410101890564,
-0.9538655877113342,
0.7485772967338562,
-1.0408103466033936,
-1.7418396472930908,
-1.447960376739502,
-2.2702829837799072,
-2.461860179901123,
0.7523550987243652,
-0.3471857011318207,
-0.4613632261753082,
1.9861243963241577,
-1.0577443838119507,
-1.7027618885040283,
1.1863620281219482,
0.17925269901752472,
0.050111960619688034,
2.37518048286438,
0.12087848782539368,
-0.6604295372962952,
0.3702412545681,
-0.6982413530349731,
0.7558559775352478,
-0.40773218870162964,
1.396708607673645,
0.3763607442378998,
-1.0055890083312988,
1.5029300451278687,
-0.449526309967041,
0.4381396770477295,
-0.6328041553497314,
-0.4855770766735077,
-0.8626410961151123,
0.29794085025787354,
1.8604824542999268,
-0.27841830253601074,
1.6278778314590454,
-0.3568270206451416,
-1.5999056100845337,
-1.6420279741287231,
0.8746012449264526,
0.39890140295028687,
-0.7475586533546448,
-0.04960281774401665,
-0.40396711230278015,
0.11974190175533295,
-0.03215521201491356,
1.0299911499023438,
1.126036524772644,
0.776729941368103,
-0.41688022017478943,
-1.0099881887435913,
0.2337283194065094,
-0.13513806462287903,
-0.8414410352706909,
-1.7800592184066772,
-0.3755136728286743,
0.11908289790153503,
0.7053073048591614,
-1.2032147645950317,
1.6752338409423828,
0.9805397987365723,
1.9194597005844116,
1.0247128009796143,
-0.30037713050842285,
1.4883366823196411,
0.1166856661438942,
1.8685489892959595,
-0.5076150894165039,
0.710220217704773,
-0.3430212438106537,
-1.1317675113677979,
0.7607420682907104,
-0.2672064006328583,
-2.0745396614074707,
-0.8113938570022583,
-0.843903124332428,
-0.11944004148244858,
-0.7589560747146606,
0.9057590961456299,
-0.18721847236156464,
-1.4533023834228516,
0.2901000380516052,
-0.6943308115005493,
0.10379922389984131,
-1.2263376712799072,
0.3478499948978424,
0.7502255439758301,
-0.6614541411399841,
0.14690299332141876,
-0.2651814818382263,
-1.3557456731796265,
-0.39430445432662964,
0.20513413846492767,
1.79541015625,
-0.7438720464706421,
0.8895220160484314,
1.0576775074005127,
-0.5804055333137512,
-0.030051302164793015,
0.34235072135925293,
-0.21971449255943298,
0.7684379816055298,
-1.0338908433914185,
-0.3043968677520752,
1.3434699773788452,
-0.2036096602678299,
-0.6205845475196838,
1.5513042211532593,
0.6484103202819824,
-0.9454020261764526,
-0.16071827709674835,
-0.18329228460788727,
-0.7762203216552734,
0.029638992622494698,
-1.7028019428253174,
-0.025798901915550232,
0.3203846514225006,
-1.5216083526611328,
-0.3998853266239166,
-0.2182489037513733,
1.2287112474441528,
-0.053811073303222656,
1.466296911239624,
-0.37091174721717834,
-0.22181251645088196,
-0.3757002353668213,
-0.1997200846672058,
0.2001945674419403,
-0.23995406925678253,
-0.6450940370559692,
0.3322312831878662,
-0.846836507320404,
0.4144945740699768,
1.494585633277893,
0.4036121964454651,
0.05923338979482651,
0.4756692945957184,
0.9686017632484436,
0.2932373881340027,
0.010475357994437218,
-0.8149824142456055,
-1.577232003211975,
2.1903302669525146,
-1.3741003274917603,
1.940563678741455,
0.6981398463249207,
-0.13732558488845825,
-1.764746904373169,
-1.7289091348648071,
1.2876380681991577,
1.1098228693008423,
2.3458876609802246,
0.5765625238418579,
0.31728875637054443,
-0.8045169711112976,
-0.5027925968170166,
0.38485482335090637,
-0.9912173748016357,
-0.7919408679008484,
0.1941288858652115,
2.3950212001800537,
1.739060878753662,
-0.5102932453155518,
-0.09424103051424026,
-1.105955719947815,
1.4180787801742554,
-0.15527305006980896,
0.26338016986846924,
2.000847578048706,
-0.2676391899585724,
-1.1277894973754883,
1.3627687692642212,
-2.368680953979492,
0.2506980299949646,
1.9738086462020874,
0.31623950600624084,
0.056143373250961304,
-1.5289596319198608,
-0.5808150768280029,
-0.35762205719947815,
-0.22197206318378448,
-1.234339952468872,
0.5968421697616577,
-0.23272834718227386,
-0.8267305493354797,
-1.4844920635223389,
0.18754248321056366,
-1.1495819091796875,
-1.7040550708770752,
0.266853928565979,
1.7088276147842407,
1.9094021320343018,
-0.5964846611022949,
1.3927556276321411,
-0.2681353688240051,
0.2743237018585205,
1.2608839273452759,
1.165088176727295,
3.041355609893799,
2.0303032398223877,
-1.2797856330871582,
0.75049889087677,
-0.12184262275695801,
-0.45847880840301514,
1.0694621801376343,
-1.2350789308547974,
1.2969348430633545,
-0.10086660832166672,
-1.1960408687591553,
-1.2148215770721436,
1.070106863975525,
0.5191681981086731,
0.036222975701093674,
-0.5297608971595764,
1.2717368602752686,
0.07004095613956451,
1.3561378717422485,
0.4904078543186188,
-0.3857296407222748,
0.6889320015907288,
-0.5275796055793762,
-0.5212414860725403,
1.509367823600769,
0.3110525608062744,
-1.4484515190124512,
-2.2174103260040283,
-0.22550897300243378,
-0.846217691898346,
-0.09648749232292175,
-0.5459628105163574,
-0.9703842401504517,
1.7489819526672363,
0.3810342848300934,
-1.34059476852417,
-0.23445600271224976,
-0.28397464752197266,
-0.6424047350883484,
2.6827354431152344,
-1.3268057107925415,
-0.2592319846153259,
-1.0465911626815796,
-0.6881818771362305,
1.633905053138733,
-1.281471848487854,
-0.17395570874214172,
-1.026183843612671,
-0.6877363324165344,
-1.279303789138794,
-0.5736812949180603,
-0.0682496726512909,
-0.9164121150970459,
0.7732492089271545,
0.24577505886554718,
-1.1586103439331055,
-0.43089431524276733,
-0.8750447630882263,
0.820984959602356,
0.04194601625204086,
0.2636008858680725,
1.8201217651367188,
0.5204662084579468,
-0.3571518659591675,
0.6211581230163574,
1.1456608772277832,
0.6617383360862732,
-0.7175280451774597,
0.19110572338104248,
-0.7833650708198547,
0.28065380454063416,
-1.1908239126205444,
0.3199295401573181,
-2.8955819606781006,
0.5604671835899353,
-0.09028405696153641,
-0.051973357796669006,
-0.06881733983755112,
-1.2288663387298584,
1.1369905471801758,
2.61940336227417,
-1.1557682752609253,
0.5680444836616516,
0.34140148758888245,
1.0676393508911133,
-1.525189757347107,
0.4610617756843567,
-0.37324798107147217,
2.142024517059326,
0.29130613803863525,
1.2108333110809326,
-0.5522742867469788,
-2.2289133071899414,
0.6737334728240967,
-1.303047776222229,
-1.1724635362625122,
0.7367805242538452,
-0.979424238204956,
-0.05184369906783104,
-1.3018882274627686,
-0.19622771441936493,
-0.7214917540550232,
-1.3820081949234009,
0.8061083555221558,
0.11479358375072479,
0.4692889153957367,
-0.515886664390564,
0.3916696310043335,
-2.2466492652893066,
-1.3369170427322388,
-0.30017727613449097,
-1.002272605895996,
0.4464048445224762,
-0.31760114431381226,
0.6726881265640259,
-0.17042796313762665,
-0.041059721261262894,
0.4812043607234955,
1.2798545360565186,
3.4467055797576904,
0.3458118736743927,
0.4679887294769287,
-0.1319931298494339,
-0.9698752760887146,
1.4180947542190552,
0.8679154515266418,
-0.1755812019109726,
-0.49626976251602173,
-1.0192209482192993,
1.2463879585266113,
2.0030505657196045,
0.9852222204208374,
0.017296718433499336,
-0.73295658826828,
-0.7928851246833801,
0.011534808203577995,
0.10495033860206604,
0.42361482977867126,
0.9165494441986084,
0.0696818083524704,
0.1785769909620285,
1.504573941230774,
1.1982395648956299,
-0.400316447019577,
0.2910172641277313,
-0.703368067741394,
-0.46880146861076355,
0.6157677173614502,
0.31117454171180725,
0.004125614184886217,
0.4889599680900574,
-1.0902340412139893,
-0.18454891443252563,
-0.3926084339618683,
-0.9454473853111267,
-0.708569347858429,
-0.5487070679664612,
-0.2970643639564514,
1.648586392402649,
0.08952173590660095,
-0.503944993019104,
0.0468343123793602,
-0.7661082744598389,
-0.11173658818006516,
-1.0035839080810547,
0.26641902327537537,
-0.0686156153678894,
-0.11725446581840515,
-0.08683343231678009,
1.9002400636672974,
-0.9481420516967773,
-2.125271797180176,
0.2548303008079529,
0.1730862557888031,
-0.34302952885627747,
0.23455370962619781,
1.581819772720337,
0.48814597725868225,
1.4392013549804688,
1.3682892322540283,
0.9841290712356567,
-0.6909135580062866,
-1.4231302738189697,
0.7076834440231323,
0.9367972016334534,
-1.41426682472229,
0.8015415668487549,
0.045296259224414825,
-0.45373451709747314,
0.6911544799804688,
1.1587830781936646,
0.4245951771736145,
-1.9417997598648071,
0.7534394860267639,
-0.9257370829582214,
0.7298020720481873,
0.7258628606796265,
0.771928071975708,
0.08585720509290695,
0.7618831992149353,
-1.2698299884796143,
-1.055618405342102,
-0.7992770671844482,
-0.6640716195106506,
1.9706703424453735,
-0.15996310114860535,
0.6049368977546692,
-0.039516545832157135,
-1.4110838174819946,
-0.0491010807454586,
0.6623125076293945,
0.3334836959838867,
-0.5506716370582581,
0.7317903637886047,
-0.7105247974395752,
-1.190680980682373,
-1.460806965827942,
-0.5107628107070923,
-1.1172386407852173,
-0.9112944602966309,
1.1295099258422852,
0.8001086115837097,
0.19737668335437775,
1.8382223844528198,
0.6366068720817566,
0.20552735030651093,
-2.822068929672241,
0.8024432063102722,
0.31848135590553284,
0.06463830918073654,
0.8969293236732483,
0.2904953360557556,
0.9140565395355225,
-0.0022025899961590767,
0.5868883728981018,
-2.4703736305236816,
2.38015079498291,
-0.31432589888572693,
0.7641797065734863,
0.07574407756328583,
-0.17117364704608917,
1.0423001050949097,
0.6546952724456787,
0.6237891912460327,
-1.1282960176467896,
0.7476772665977478,
-0.5921600461006165,
1.2661653757095337,
0.8788875937461853,
-0.7813071012496948,
-0.07569804042577744,
1.260569453239441,
0.46963435411453247,
-0.44183552265167236,
-0.9366428256034851,
-1.0173044204711914,
0.9008827209472656,
1.7832179069519043,
-0.13356029987335205,
-0.09061799198389053,
0.9019186496734619,
0.623133659362793,
-1.2477531433105469,
-0.05969463661313057,
-0.8251937627792358,
-0.7821297645568848,
1.5589730739593506,
2.1755988597869873,
-0.05933212488889694,
-0.20856750011444092,
-0.6772007942199707,
-1.1472587585449219,
0.699263334274292,
0.030988043174147606,
0.03562011942267418,
0.6528828144073486,
-0.6434026956558228,
1.0306850671768188,
0.9226112365722656,
0.9342687129974365,
0.23798154294490814,
0.267867773771286,
0.22914661467075348,
-0.2501959204673767,
-1.0525811910629272,
-0.19346089661121368,
-1.1156595945358276,
-2.631181240081787,
0.5125137567520142,
-0.19711993634700775,
-1.5561949014663696,
0.06039677560329437,
-1.0056443214416504,
0.9101324081420898,
-0.5031728744506836,
-1.062234878540039,
-1.3872610330581665,
0.13530753552913666,
-0.11841095238924026,
0.9483171105384827,
-1.6995885372161865,
-0.04071934521198273,
1.2274222373962402,
0.9527257084846497,
-0.5812387466430664,
1.0830291509628296,
0.27496981620788574,
1.0430810451507568,
0.940782368183136,
-0.3513038158416748,
0.5021640062332153,
0.119864821434021,
-1.2967363595962524,
0.4191514849662781,
1.102637767791748,
0.24816657602787018,
1.4284898042678833,
-0.6080352663993835,
0.13712218403816223,
0.39652255177497864,
-0.5894162058830261,
-0.3063473701477051,
-0.5911931991577148,
0.8547156453132629,
0.12430746853351593,
-0.8606746196746826,
0.058945246040821075,
-0.21283113956451416,
-0.10053752362728119,
0.1201474666595459,
-1.4440668821334839,
-0.20525215566158295,
-0.32082951068878174,
-0.6212712526321411,
-1.1744415760040283,
-0.22641322016716003,
1.5186645984649658,
-0.9383615851402283,
-0.12222181260585785,
0.4655548334121704,
0.43372511863708496,
0.666327178478241,
0.7151026129722595,
-0.6656495928764343,
-0.4351191818714142,
-0.20638780295848846,
-0.20315657556056976,
0.36756178736686707,
1.4480953216552734,
-0.08246609568595886,
-1.020640254020691,
0.833644688129425,
-0.34586575627326965,
0.06564518064260483,
1.8688771724700928,
0.12988513708114624,
-0.7697209715843201,
0.3755265474319458,
-0.6998293995857239,
1.9265576601028442,
1.732879638671875,
1.2808654308319092,
-0.07261059433221817,
-1.0146042108535767,
0.5474598407745361,
-0.3290133774280548,
-0.45703890919685364,
0.8355875611305237,
0.5003859400749207,
-0.1920548528432846,
-1.3347585201263428,
0.5805150270462036,
1.1934878826141357,
-0.8222046494483948,
-0.8045847415924072,
0.1290617436170578,
-0.7780771255493164,
1.1400490999221802,
0.6163870692253113,
0.4396175444126129,
0.13603171706199646,
1.5862535238265991,
0.7372164726257324,
-0.5040676593780518,
0.5343301892280579,
0.49014192819595337,
-0.18493355810642242,
-2.0615761280059814,
-1.1072684526443481,
0.27514711022377014,
-0.4946422874927521,
-1.487209439277649,
1.1978801488876343,
-1.18477463722229,
-0.9010475277900696,
0.49617230892181396,
0.10153976082801819,
1.5057895183563232,
0.45211663842201233,
1.5743151903152466,
2.1448986530303955,
1.0107154846191406,
0.314633846282959,
1.3839465379714966,
-0.11297564208507538,
-0.4426436424255371,
1.8021745681762695,
-0.26958996057510376,
0.4577031433582306,
1.1241101026535034,
-0.36674341559410095,
-0.9492487907409668,
-0.7251941561698914,
-1.239472508430481,
-0.5486305952072144,
0.9837237000465393,
0.12051886320114136,
-1.180517315864563,
0.22606009244918823,
1.5298011302947998,
-0.027743684127926826,
-0.2865513861179352,
0.4996412992477417,
0.3975461423397064,
-0.7047236561775208,
-0.09042241424322128,
-0.9787520170211792,
0.43018579483032227,
-0.3459077775478363,
-0.37398433685302734,
0.2863527536392212,
0.4836631417274475,
1.2209398746490479,
0.006092757452279329,
0.12448219954967499,
1.2378778457641602,
-1.3691978454589844,
1.409346103668213,
-0.5403667092323303,
0.21951356530189514,
-2.3553361892700195,
1.299598217010498,
-0.7690582871437073,
1.8961222171783447,
-2.673895835876465,
0.41723814606666565,
-0.6525377631187439,
-0.5315138697624207,
0.3327717185020447,
-0.35944822430610657,
0.15982586145401,
-0.19007141888141632,
-1.203175663948059,
-0.1169213131070137,
-0.7201289534568787,
0.5564873814582825,
0.9689702391624451,
1.2874423265457153,
-1.1192798614501953,
-0.35096463561058044,
-1.7500660419464111,
-0.11158432811498642,
-0.7243918180465698,
0.34880906343460083,
-1.8646366596221924,
-0.16610144078731537,
-1.8954064846038818,
-2.315643548965454,
-1.4125049114227295,
-0.7720615863800049,
1.0659890174865723,
0.1710023581981659,
-0.7810178399085999,
1.0106618404388428,
-0.29889270663261414,
-1.9277613162994385,
0.9888635873794556,
-2.20542573928833
] |
https://github.com/huggingface/datasets/issues/5325 | map(...batch_size=None) for IterableDataset | @mariosasko as this is something simple maybe I can include it as part of https://github.com/huggingface/datasets/pull/5311? Let me know :+1: | ### Feature request
Dataset.map(...) allows batch_size to be None. It would be nice if IterableDataset did too.
### Motivation
Although it may seem a bit of a spurious request given that `IterableDataset` is meant for larger than memory datasets, but there are a couple of reasons why this might be nice.
One is that load_dataset(...) can return either IterableDataset or Dataset. mypy will then complain if batch_size=None even if we know it is Dataset. Of course we can do:
assert isinstance(d, datasets.DatasetDict)
But it is a mild inconvenience. What's more annoying is that whenever we use something like e.g. `combine_datasets(...)`, we end up with the union again, and so have to do the assert again.
Another is that we could actually end up with an IterableDataset small enough for memory in normal/correct usage, e.g. by filtering a massive IterableDataset.
For practical usages, an alternative to this would be to convert from an iterable dataset to a map-style dataset, but it is not obvious how to do this.
### Your contribution
Not this time. | 385 | 19 | map(...batch_size=None) for IterableDataset
### Feature request
Dataset.map(...) allows batch_size to be None. It would be nice if IterableDataset did too.
### Motivation
Although it may seem a bit of a spurious request given that `IterableDataset` is meant for larger than memory datasets, but there are a couple of reasons why this might be nice.
One is that load_dataset(...) can return either IterableDataset or Dataset. mypy will then complain if batch_size=None even if we know it is Dataset. Of course we can do:
assert isinstance(d, datasets.DatasetDict)
But it is a mild inconvenience. What's more annoying is that whenever we use something like e.g. `combine_datasets(...)`, we end up with the union again, and so have to do the assert again.
Another is that we could actually end up with an IterableDataset small enough for memory in normal/correct usage, e.g. by filtering a massive IterableDataset.
For practical usages, an alternative to this would be to convert from an iterable dataset to a map-style dataset, but it is not obvious how to do this.
### Your contribution
Not this time.
@mariosasko as this is something simple maybe I can include it as part of https://github.com/huggingface/datasets/pull/5311? Let me know :+1: | [
-1.2332842350006104,
-1.0495638847351074,
-0.7255744934082031,
1.4376425743103027,
-0.13801564276218414,
-1.2274912595748901,
0.12961739301681519,
-0.9991413354873657,
1.7146615982055664,
-0.8204090595245361,
0.3283476233482361,
-1.7594983577728271,
0.03388161212205887,
-0.4589964747428894,
-0.7306250929832458,
-0.8364509344100952,
-0.5128597021102905,
-0.8460692763328552,
0.9693869948387146,
2.614933490753174,
1.0979763269424438,
-1.4148503541946411,
2.618530750274658,
0.5615878105163574,
-0.0666954442858696,
-1.118074655532837,
0.5132244825363159,
0.005624588578939438,
-1.4053345918655396,
-0.44901591539382935,
-0.9393771886825562,
-0.045993655920028687,
-0.5245668888092041,
-0.5372379422187805,
0.03411169350147247,
0.3816181421279907,
-0.18388469517230988,
-0.4209383726119995,
-0.49574172496795654,
-0.7823681831359863,
0.4646543562412262,
-0.45174092054367065,
1.0215212106704712,
-0.28459322452545166,
1.8007129430770874,
-0.47624751925468445,
0.5593844652175903,
0.6881269216537476,
1.349204659461975,
0.24789610505104065,
0.09642449766397476,
0.21372179687023163,
0.47439682483673096,
0.05847926437854767,
0.4479922950267792,
1.0107449293136597,
0.6876663565635681,
0.4052925109863281,
0.5960228443145752,
-2.2491087913513184,
1.3969769477844238,
-1.0159356594085693,
0.3948395550251007,
1.405550241470337,
-0.9397379159927368,
0.274903804063797,
-1.7591320276260376,
-0.07056485116481781,
0.5940238237380981,
-2.1759276390075684,
0.18006056547164917,
-1.3528708219528198,
-0.3778705596923828,
1.0710192918777466,
0.28926610946655273,
-1.2668293714523315,
0.18389363586902618,
-0.4526258111000061,
0.9211662411689758,
0.5185332894325256,
1.1948851346969604,
-1.664541244506836,
-0.13838285207748413,
-0.28840237855911255,
0.16867521405220032,
-1.2922528982162476,
-1.5121486186981201,
0.5516122579574585,
0.6724347472190857,
0.6032329201698303,
-0.0457865446805954,
0.9482750296592712,
-0.9569474458694458,
0.7556930780410767,
-0.9849665760993958,
-1.7017879486083984,
-1.4889370203018188,
-2.2906737327575684,
-2.4578888416290283,
0.7689879536628723,
-0.39202389121055603,
-0.47228696942329407,
1.9555079936981201,
-1.0637537240982056,
-1.726097583770752,
1.1774742603302002,
0.21815431118011475,
0.05719408392906189,
2.39180326461792,
0.17798927426338196,
-0.6778993010520935,
0.3875124454498291,
-0.7051488757133484,
0.780791163444519,
-0.38696354627609253,
1.3961151838302612,
0.38192933797836304,
-0.9963473677635193,
1.5248351097106934,
-0.47663602232933044,
0.4258060157299042,
-0.6416159272193909,
-0.4702148139476776,
-0.8457728624343872,
0.27544453740119934,
1.844033122062683,
-0.28651466965675354,
1.6539442539215088,
-0.3995440602302551,
-1.5924961566925049,
-1.6191151142120361,
0.8435785174369812,
0.4128284752368927,
-0.7915235161781311,
-0.03992937505245209,
-0.43346691131591797,
0.09648097306489944,
-0.01456364057958126,
1.0048996210098267,
1.1564027070999146,
0.7249776721000671,
-0.4263578951358795,
-1.0092922449111938,
0.2343662530183792,
-0.13599544763565063,
-0.8028018474578857,
-1.7914526462554932,
-0.35572952032089233,
0.16702762246131897,
0.6969448328018188,
-1.217434048652649,
1.6785064935684204,
0.9709079265594482,
1.9407376050949097,
1.024644374847412,
-0.3229720890522003,
1.4753178358078003,
0.08319131284952164,
1.8666675090789795,
-0.5335701704025269,
0.6942054033279419,
-0.3320978581905365,
-1.14883553981781,
0.7641357183456421,
-0.2798280417919159,
-2.072932243347168,
-0.8181973099708557,
-0.8485932350158691,
-0.14486083388328552,
-0.7669117450714111,
0.8973817825317383,
-0.21577653288841248,
-1.454903244972229,
0.28286734223365784,
-0.6975789070129395,
0.1296134889125824,
-1.230153203010559,
0.305550754070282,
0.7563818097114563,
-0.676793098449707,
0.11838853359222412,
-0.23037974536418915,
-1.340442180633545,
-0.40626853704452515,
0.23970668017864227,
1.810927391052246,
-0.7492681741714478,
0.9114707112312317,
1.0549417734146118,
-0.5755801796913147,
0.028315285220742226,
0.31668365001678467,
-0.23860475420951843,
0.7847408652305603,
-1.018154263496399,
-0.31632938981056213,
1.3441778421401978,
-0.1956367790699005,
-0.6403195261955261,
1.5260032415390015,
0.6852210760116577,
-0.9461899399757385,
-0.2077450305223465,
-0.1577591896057129,
-0.7500834465026855,
-0.009576791897416115,
-1.6855617761611938,
-0.04081405699253082,
0.28722915053367615,
-1.4815362691879272,
-0.4158414304256439,
-0.22891037166118622,
1.276874303817749,
-0.06879682838916779,
1.4782565832138062,
-0.38935521245002747,
-0.19978514313697815,
-0.38635772466659546,
-0.2422959953546524,
0.19579164683818817,
-0.2716507017612457,
-0.6088808178901672,
0.34335845708847046,
-0.8799330592155457,
0.40257692337036133,
1.5017077922821045,
0.4516238272190094,
0.08121734857559204,
0.47962653636932373,
1.0126575231552124,
0.3318611681461334,
0.011721650138497353,
-0.7962336540222168,
-1.580885887145996,
2.1779849529266357,
-1.3758883476257324,
1.9405566453933716,
0.7325109839439392,
-0.1298731565475464,
-1.773335576057434,
-1.7535754442214966,
1.2626234292984009,
1.140151858329773,
2.3552181720733643,
0.5670427083969116,
0.3146454691886902,
-0.8074639439582825,
-0.5168653726577759,
0.3645360767841339,
-1.0067076683044434,
-0.7883756756782532,
0.2016851156949997,
2.4090306758880615,
1.747058629989624,
-0.5221452116966248,
-0.10971699655056,
-1.0877240896224976,
1.3823333978652954,
-0.15126000344753265,
0.260370135307312,
2.0206339359283447,
-0.25328531861305237,
-1.1087565422058105,
1.3569247722625732,
-2.3880186080932617,
0.26115739345550537,
1.98409104347229,
0.33232730627059937,
0.0672670379281044,
-1.5279840230941772,
-0.611937940120697,
-0.3473495841026306,
-0.251038134098053,
-1.2108128070831299,
0.6195535659790039,
-0.2495199292898178,
-0.843590497970581,
-1.4769436120986938,
0.14565828442573547,
-1.140299677848816,
-1.7324278354644775,
0.2869240641593933,
1.70406973361969,
1.9473826885223389,
-0.638305127620697,
1.3902628421783447,
-0.2516902685165405,
0.24459755420684814,
1.2818070650100708,
1.2100046873092651,
3.070208787918091,
2.0123043060302734,
-1.2819159030914307,
0.7639336585998535,
-0.11952918022871017,
-0.45296600461006165,
1.0761933326721191,
-1.2114895582199097,
1.262160301208496,
-0.14966897666454315,
-1.2379192113876343,
-1.2246949672698975,
1.088321566581726,
0.5206781625747681,
0.010914426296949387,
-0.5315163731575012,
1.2595324516296387,
0.07656356692314148,
1.3702470064163208,
0.5403063893318176,
-0.38143599033355713,
0.6652855277061462,
-0.49801525473594666,
-0.5374763011932373,
1.5099265575408936,
0.3001319169998169,
-1.49431312084198,
-2.2264909744262695,
-0.24890486896038055,
-0.8315739631652832,
-0.14903409779071808,
-0.5566346049308777,
-0.9772109389305115,
1.7159703969955444,
0.3929474651813507,
-1.347901701927185,
-0.24990125000476837,
-0.28355634212493896,
-0.6015956997871399,
2.640690326690674,
-1.3429533243179321,
-0.25519779324531555,
-1.0134655237197876,
-0.6597309708595276,
1.6341381072998047,
-1.2634246349334717,
-0.16424691677093506,
-1.0607424974441528,
-0.7260748744010925,
-1.278363823890686,
-0.5803229808807373,
-0.06514423340559006,
-0.9087835550308228,
0.7261552214622498,
0.19582904875278473,
-1.1261022090911865,
-0.38568463921546936,
-0.9013636708259583,
0.8631475567817688,
0.015889326110482216,
0.2719060778617859,
1.8427767753601074,
0.5192359685897827,
-0.3717521131038666,
0.6467070579528809,
1.158607840538025,
0.6453081965446472,
-0.7263439893722534,
0.18056029081344604,
-0.7556754350662231,
0.2918289303779602,
-1.2572836875915527,
0.28915929794311523,
-2.9063570499420166,
0.591183602809906,
-0.07276110351085663,
-0.07980340719223022,
-0.08531005680561066,
-1.262196660041809,
1.1625889539718628,
2.5800819396972656,
-1.1649117469787598,
0.5756568908691406,
0.36036327481269836,
1.0798896551132202,
-1.5700294971466064,
0.43615859746932983,
-0.37482813000679016,
2.142455816268921,
0.2739463150501251,
1.221203088760376,
-0.5370769500732422,
-2.1870527267456055,
0.6414965987205505,
-1.2929233312606812,
-1.1171094179153442,
0.7127962708473206,
-0.9896729588508606,
-0.011927084997296333,
-1.328932285308838,
-0.17001508176326752,
-0.7556883692741394,
-1.3706313371658325,
0.782248318195343,
0.0959216058254242,
0.4568932056427002,
-0.5147749185562134,
0.3958720862865448,
-2.252854108810425,
-1.3245141506195068,
-0.2853279411792755,
-0.9993209838867188,
0.45921412110328674,
-0.31414633989334106,
0.6582140922546387,
-0.14434179663658142,
-0.030488934367895126,
0.4545767605304718,
1.273471713066101,
3.447962760925293,
0.3376618027687073,
0.43546488881111145,
-0.09306314587593079,
-0.9571822285652161,
1.4306666851043701,
0.887398898601532,
-0.20483992993831635,
-0.49581652879714966,
-1.0022063255310059,
1.2921150922775269,
1.9912463426589966,
1.0206085443496704,
0.03630644083023071,
-0.7281273007392883,
-0.8194101452827454,
0.04715220630168915,
0.09809140115976334,
0.44199660420417786,
0.9067298173904419,
0.042565569281578064,
0.17861923575401306,
1.5171467065811157,
1.206403136253357,
-0.37267011404037476,
0.3420868217945099,
-0.7439247965812683,
-0.4663309156894684,
0.5592422485351562,
0.2742172181606293,
0.020924163982272148,
0.5153552293777466,
-1.0986708402633667,
-0.21380002796649933,
-0.36250102519989014,
-0.9498511552810669,
-0.7274705767631531,
-0.5539470911026001,
-0.31211769580841064,
1.6325088739395142,
0.10750868916511536,
-0.5013481974601746,
0.027408046647906303,
-0.7691954970359802,
-0.15953367948532104,
-1.0235944986343384,
0.2780691087245941,
-0.06543827801942825,
-0.08619803935289383,
-0.08745992183685303,
1.8571785688400269,
-0.9415140748023987,
-2.1700358390808105,
0.2764311730861664,
0.1982484757900238,
-0.3657970428466797,
0.19656513631343842,
1.6073318719863892,
0.4856009781360626,
1.3835691213607788,
1.3573020696640015,
0.9805356860160828,
-0.6849185228347778,
-1.3534468412399292,
0.7202972769737244,
0.9416056275367737,
-1.4097005128860474,
0.8511842489242554,
-0.04124514013528824,
-0.444561243057251,
0.6938415169715881,
1.200859546661377,
0.39806678891181946,
-1.9477295875549316,
0.7699733972549438,
-0.9086887240409851,
0.7318692207336426,
0.700120747089386,
0.8007524013519287,
0.0830693393945694,
0.7503873109817505,
-1.289575219154358,
-1.0508248805999756,
-0.7904864549636841,
-0.6711045503616333,
1.9741146564483643,
-0.15374881029129028,
0.5824645161628723,
-0.05716034024953842,
-1.386962652206421,
-0.06476462632417679,
0.6813784241676331,
0.29653245210647583,
-0.5616559982299805,
0.7792755961418152,
-0.6926331520080566,
-1.201811671257019,
-1.4551862478256226,
-0.4897608160972595,
-1.0800368785858154,
-0.9143477082252502,
1.096132755279541,
0.7776668071746826,
0.20393697917461395,
1.837825059890747,
0.6069420576095581,
0.22609135508537292,
-2.8112881183624268,
0.8405855894088745,
0.30205175280570984,
0.05653168261051178,
0.9077025055885315,
0.2547147274017334,
0.9206328392028809,
-0.0017735273577272892,
0.596948504447937,
-2.4779422283172607,
2.3548355102539062,
-0.2994995415210724,
0.7523537874221802,
0.07983024418354034,
-0.16353590786457062,
1.0456786155700684,
0.6360943913459778,
0.6313689351081848,
-1.1446869373321533,
0.7662642598152161,
-0.5635660290718079,
1.2120733261108398,
0.8829554915428162,
-0.790307879447937,
-0.057904280722141266,
1.268343448638916,
0.45367464423179626,
-0.4200116693973541,
-0.9358358383178711,
-0.9444888234138489,
0.9187546372413635,
1.7735410928726196,
-0.1210266500711441,
-0.056063368916511536,
0.9025599956512451,
0.6197246313095093,
-1.2590030431747437,
-0.039949364960193634,
-0.7928376793861389,
-0.7273363471031189,
1.5820541381835938,
2.1778316497802734,
-0.061913445591926575,
-0.20916828513145447,
-0.6394913196563721,
-1.1853009462356567,
0.6786006689071655,
-0.0023231622762978077,
0.08326748013496399,
0.6746808290481567,
-0.6508598327636719,
1.0479145050048828,
0.8435860276222229,
0.9442247748374939,
0.20173139870166779,
0.23836487531661987,
0.2400357723236084,
-0.24184858798980713,
-1.0445200204849243,
-0.23675674200057983,
-1.1284301280975342,
-2.5751700401306152,
0.5043100714683533,
-0.19660989940166473,
-1.526859998703003,
0.06917288899421692,
-1.009021282196045,
0.9175370335578918,
-0.5414245128631592,
-1.0635465383529663,
-1.38253653049469,
0.1641935408115387,
-0.15895310044288635,
0.9177784323692322,
-1.70547354221344,
-0.06117697060108185,
1.2396478652954102,
0.9211152791976929,
-0.6076684594154358,
1.077973484992981,
0.2647364139556885,
1.0464307069778442,
0.9348199367523193,
-0.3693065941333771,
0.49094024300575256,
0.14447517693042755,
-1.3072340488433838,
0.4104875326156616,
1.1264832019805908,
0.23094657063484192,
1.4661707878112793,
-0.5869256258010864,
0.12277698516845703,
0.4062991440296173,
-0.6201199293136597,
-0.34663623571395874,
-0.5420613288879395,
0.8420894742012024,
0.11463215202093124,
-0.8959993124008179,
0.02742920257151127,
-0.19942955672740936,
-0.10008864849805832,
0.11969123780727386,
-1.4524884223937988,
-0.21548785269260406,
-0.3091667890548706,
-0.5739510655403137,
-1.185777187347412,
-0.18201103806495667,
1.4973905086517334,
-0.9410989284515381,
-0.13773727416992188,
0.4601480960845947,
0.4136632978916168,
0.6548312306404114,
0.7227892875671387,
-0.6494430899620056,
-0.40909892320632935,
-0.21339848637580872,
-0.21938525140285492,
0.3595028221607208,
1.4004517793655396,
-0.06707698106765747,
-0.990951657295227,
0.8250768780708313,
-0.40062955021858215,
0.09052067995071411,
1.8864189386367798,
0.09965039044618607,
-0.7711188793182373,
0.3589250147342682,
-0.68721604347229,
1.9376254081726074,
1.7258964776992798,
1.3204435110092163,
-0.0650160014629364,
-0.9977794885635376,
0.5601453185081482,
-0.2784554958343506,
-0.4494507312774658,
0.8368068337440491,
0.5087131261825562,
-0.20139478147029877,
-1.352555513381958,
0.556298017501831,
1.1795802116394043,
-0.8366839289665222,
-0.7540788650512695,
0.12632420659065247,
-0.7948256731033325,
1.1482272148132324,
0.6219840049743652,
0.42634961009025574,
0.14714153110980988,
1.5834294557571411,
0.7131765484809875,
-0.506594717502594,
0.5224512815475464,
0.48992305994033813,
-0.18769796192646027,
-2.064527988433838,
-1.0807297229766846,
0.289887398481369,
-0.45552554726600647,
-1.4661146402359009,
1.190958857536316,
-1.1846840381622314,
-0.9275141954421997,
0.5051167607307434,
0.08262713998556137,
1.473421335220337,
0.43610554933547974,
1.6285700798034668,
2.1598970890045166,
1.0047389268875122,
0.3059176504611969,
1.362181305885315,
-0.08364170044660568,
-0.43923869729042053,
1.7877910137176514,
-0.2525044083595276,
0.48592814803123474,
1.091373085975647,
-0.38321688771247864,
-0.9751713871955872,
-0.7053318023681641,
-1.2102746963500977,
-0.5650450587272644,
1.0257359743118286,
0.14057466387748718,
-1.1597763299942017,
0.21210481226444244,
1.528136134147644,
-0.019729115068912506,
-0.2821753919124603,
0.5302212238311768,
0.4128377437591553,
-0.7031009197235107,
-0.056132636964321136,
-0.9629347920417786,
0.42186543345451355,
-0.3179643750190735,
-0.36347097158432007,
0.28479450941085815,
0.4792253077030182,
1.230103611946106,
0.01977895200252533,
0.10517288744449615,
1.24941885471344,
-1.362119197845459,
1.4450628757476807,
-0.5549570322036743,
0.22195900976657867,
-2.3681907653808594,
1.3191559314727783,
-0.7769267559051514,
1.8956668376922607,
-2.6574320793151855,
0.40960851311683655,
-0.6249086260795593,
-0.5637694597244263,
0.3280686140060425,
-0.3671848475933075,
0.15599043667316437,
-0.1824793964624405,
-1.1578236818313599,
-0.09756627678871155,
-0.7219703793525696,
0.5333885550498962,
1.0114344358444214,
1.26663076877594,
-1.1302680969238281,
-0.36124104261398315,
-1.7571477890014648,
-0.14907711744308472,
-0.73089998960495,
0.3285118043422699,
-1.8810172080993652,
-0.1758110374212265,
-1.8805369138717651,
-2.3009514808654785,
-1.4183167219161987,
-0.8127424120903015,
1.0490124225616455,
0.17724648118019104,
-0.8172183632850647,
1.007071852684021,
-0.3298499584197998,
-1.9074878692626953,
0.9959771633148193,
-2.2142791748046875
] |
https://github.com/huggingface/datasets/issues/5325 | map(...batch_size=None) for IterableDataset | Thanks again :)
> For practical usages, an alternative to this would be to convert from an iterable dataset to a map-style dataset, but it is not obvious how to do this.
This is interesting as well, if anyone wants to explore | ### Feature request
Dataset.map(...) allows batch_size to be None. It would be nice if IterableDataset did too.
### Motivation
Although it may seem a bit of a spurious request given that `IterableDataset` is meant for larger than memory datasets, but there are a couple of reasons why this might be nice.
One is that load_dataset(...) can return either IterableDataset or Dataset. mypy will then complain if batch_size=None even if we know it is Dataset. Of course we can do:
assert isinstance(d, datasets.DatasetDict)
But it is a mild inconvenience. What's more annoying is that whenever we use something like e.g. `combine_datasets(...)`, we end up with the union again, and so have to do the assert again.
Another is that we could actually end up with an IterableDataset small enough for memory in normal/correct usage, e.g. by filtering a massive IterableDataset.
For practical usages, an alternative to this would be to convert from an iterable dataset to a map-style dataset, but it is not obvious how to do this.
### Your contribution
Not this time. | 385 | 42 | map(...batch_size=None) for IterableDataset
### Feature request
Dataset.map(...) allows batch_size to be None. It would be nice if IterableDataset did too.
### Motivation
Although it may seem a bit of a spurious request given that `IterableDataset` is meant for larger than memory datasets, but there are a couple of reasons why this might be nice.
One is that load_dataset(...) can return either IterableDataset or Dataset. mypy will then complain if batch_size=None even if we know it is Dataset. Of course we can do:
assert isinstance(d, datasets.DatasetDict)
But it is a mild inconvenience. What's more annoying is that whenever we use something like e.g. `combine_datasets(...)`, we end up with the union again, and so have to do the assert again.
Another is that we could actually end up with an IterableDataset small enough for memory in normal/correct usage, e.g. by filtering a massive IterableDataset.
For practical usages, an alternative to this would be to convert from an iterable dataset to a map-style dataset, but it is not obvious how to do this.
### Your contribution
Not this time.
Thanks again :)
> For practical usages, an alternative to this would be to convert from an iterable dataset to a map-style dataset, but it is not obvious how to do this.
This is interesting as well, if anyone wants to explore | [
-1.2331047058105469,
-1.01775324344635,
-0.6940887570381165,
1.4135165214538574,
-0.16815601289272308,
-1.214682936668396,
0.1424940675497055,
-1.0177501440048218,
1.7147804498672485,
-0.8525761365890503,
0.329569548368454,
-1.7453944683074951,
0.08093299716711044,
-0.48796477913856506,
-0.7339791655540466,
-0.8498595952987671,
-0.5172661542892456,
-0.8328823447227478,
0.9619243144989014,
2.6422433853149414,
1.0938434600830078,
-1.4374597072601318,
2.583254337310791,
0.5536097884178162,
-0.053676310926675797,
-1.091318964958191,
0.4877650737762451,
-0.0010419925674796104,
-1.4007127285003662,
-0.47741493582725525,
-0.9322000741958618,
-0.07869847863912582,
-0.5286247730255127,
-0.5487538576126099,
0.021249333396553993,
0.3718303442001343,
-0.17323289811611176,
-0.4206589162349701,
-0.47220849990844727,
-0.7810425162315369,
0.44748666882514954,
-0.47532957792282104,
1.0548959970474243,
-0.2992909252643585,
1.7933605909347534,
-0.4763784110546112,
0.5829939246177673,
0.6602698564529419,
1.3576300144195557,
0.26631078124046326,
0.06118052452802658,
0.19192107021808624,
0.429900586605072,
0.0250317994505167,
0.44298964738845825,
0.9714944958686829,
0.7180042266845703,
0.4094591736793518,
0.6092756986618042,
-2.238663911819458,
1.4232772588729858,
-1.0651953220367432,
0.3944341838359833,
1.414552927017212,
-0.905232310295105,
0.2848258316516876,
-1.7718113660812378,
-0.10216526687145233,
0.5869316458702087,
-2.159580707550049,
0.16634543240070343,
-1.3356409072875977,
-0.40346604585647583,
1.0697232484817505,
0.30253976583480835,
-1.2705551385879517,
0.16749610006809235,
-0.434026300907135,
0.8938072323799133,
0.5127933621406555,
1.1886651515960693,
-1.6892966032028198,
-0.11008228361606598,
-0.32897451519966125,
0.21952490508556366,
-1.2981479167938232,
-1.512769103050232,
0.6061187386512756,
0.6724230051040649,
0.584537148475647,
-0.02046304941177368,
0.955596387386322,
-0.9728373885154724,
0.7361881732940674,
-1.0352649688720703,
-1.7198126316070557,
-1.4462571144104004,
-2.291121006011963,
-2.4880008697509766,
0.7587621212005615,
-0.3866831362247467,
-0.4857339859008789,
1.9826464653015137,
-1.056443214416504,
-1.7083667516708374,
1.186326026916504,
0.19590361416339874,
0.02965501882135868,
2.4325742721557617,
0.14838548004627228,
-0.6453455090522766,
0.39566871523857117,
-0.6989753246307373,
0.7900779843330383,
-0.3700996935367584,
1.408340573310852,
0.3617556393146515,
-1.022343397140503,
1.5210895538330078,
-0.4583897888660431,
0.42442718148231506,
-0.6277176737785339,
-0.5084319114685059,
-0.8226057291030884,
0.27834805846214294,
1.8254108428955078,
-0.25337857007980347,
1.6337120532989502,
-0.38201451301574707,
-1.6145411729812622,
-1.6366541385650635,
0.9013763070106506,
0.4222107529640198,
-0.7887579798698425,
-0.029622986912727356,
-0.4260576665401459,
0.08558546006679535,
-0.003782690968364477,
1.0020426511764526,
1.1669856309890747,
0.725670576095581,
-0.41264915466308594,
-1.0004358291625977,
0.20185883343219757,
-0.14140471816062927,
-0.8277980089187622,
-1.7913798093795776,
-0.3669309616088867,
0.10987280309200287,
0.6951977014541626,
-1.2081546783447266,
1.694383144378662,
0.9780073165893555,
1.9304404258728027,
1.0513818264007568,
-0.3194845914840698,
1.478718876838684,
0.10528173297643661,
1.8169790506362915,
-0.5391104221343994,
0.6892768740653992,
-0.3390970230102539,
-1.129213809967041,
0.7817714810371399,
-0.2931978702545166,
-2.070894241333008,
-0.8189859986305237,
-0.8078614473342896,
-0.15587903559207916,
-0.7620136737823486,
0.9044736623764038,
-0.16866785287857056,
-1.4388129711151123,
0.3085533678531647,
-0.6970993876457214,
0.12937039136886597,
-1.206712245941162,
0.34376150369644165,
0.751770555973053,
-0.6769252419471741,
0.14768438041210175,
-0.2789700925350189,
-1.3536556959152222,
-0.38904085755348206,
0.22671151161193848,
1.7844833135604858,
-0.7299227714538574,
0.8831207156181335,
1.0403516292572021,
-0.5506306290626526,
-0.029501140117645264,
0.3389119505882263,
-0.20825831592082977,
0.7533900737762451,
-1.007544755935669,
-0.33430543541908264,
1.3212215900421143,
-0.2057562917470932,
-0.6213361620903015,
1.518537998199463,
0.6304667592048645,
-0.9493916630744934,
-0.17444774508476257,
-0.19129467010498047,
-0.7977529764175415,
-0.0013041202910244465,
-1.7150003910064697,
-0.04356200993061066,
0.2976352572441101,
-1.5303850173950195,
-0.3799830377101898,
-0.20426416397094727,
1.222988486289978,
-0.0578654520213604,
1.4756141901016235,
-0.40155282616615295,
-0.23331385850906372,
-0.3605164885520935,
-0.23869404196739197,
0.17640641331672668,
-0.23425142467021942,
-0.5974046587944031,
0.33073925971984863,
-0.8842790722846985,
0.42949455976486206,
1.51023268699646,
0.4108605980873108,
0.0697593241930008,
0.449733167886734,
0.9628722071647644,
0.33657243847846985,
0.010442210361361504,
-0.776587188243866,
-1.5752453804016113,
2.185336112976074,
-1.3819953203201294,
1.9511430263519287,
0.7407299876213074,
-0.12851354479789734,
-1.7847861051559448,
-1.7158420085906982,
1.2977349758148193,
1.1312997341156006,
2.347069263458252,
0.5684646964073181,
0.29841113090515137,
-0.8090144395828247,
-0.5198047161102295,
0.41677671670913696,
-0.9887375235557556,
-0.8122016787528992,
0.19343534111976624,
2.4164187908172607,
1.7469526529312134,
-0.4888586103916168,
-0.09780478477478027,
-1.0780887603759766,
1.404534935951233,
-0.1627071350812912,
0.23521582782268524,
2.0294854640960693,
-0.2725331485271454,
-1.1407006978988647,
1.3730028867721558,
-2.378863573074341,
0.24265557527542114,
1.990283489227295,
0.3271825611591339,
0.07394851744174957,
-1.5135395526885986,
-0.5948460698127747,
-0.3406946659088135,
-0.2206520289182663,
-1.2163035869598389,
0.6149734854698181,
-0.2279093712568283,
-0.8056445717811584,
-1.5109248161315918,
0.17290019989013672,
-1.1799858808517456,
-1.6864399909973145,
0.28005915880203247,
1.6862001419067383,
1.985440969467163,
-0.6229202747344971,
1.3880443572998047,
-0.2542462944984436,
0.24823617935180664,
1.2494511604309082,
1.1639283895492554,
3.027669668197632,
1.9872370958328247,
-1.2863527536392212,
0.7297585010528564,
-0.10755541175603867,
-0.4793209731578827,
1.0805460214614868,
-1.2150574922561646,
1.260646104812622,
-0.1261858195066452,
-1.2241488695144653,
-1.2226835489273071,
1.0696284770965576,
0.4876255989074707,
0.020007194951176643,
-0.5420017838478088,
1.267344355583191,
0.06704642623662949,
1.335342526435852,
0.5131032466888428,
-0.3589676022529602,
0.6418094038963318,
-0.5386686325073242,
-0.5560667514801025,
1.524359941482544,
0.3302808403968811,
-1.4939987659454346,
-2.1989517211914062,
-0.2402494251728058,
-0.8264409899711609,
-0.0869254395365715,
-0.5604881644248962,
-0.9765773415565491,
1.7271908521652222,
0.3626173436641693,
-1.3386399745941162,
-0.22813689708709717,
-0.2644566595554352,
-0.6342312097549438,
2.651785135269165,
-1.3304438591003418,
-0.26465320587158203,
-0.9971930384635925,
-0.7140263319015503,
1.6052876710891724,
-1.2725719213485718,
-0.1385105401277542,
-1.0288457870483398,
-0.6901691555976868,
-1.2877449989318848,
-0.573265016078949,
-0.07215564697980881,
-0.9036970734596252,
0.7654885649681091,
0.22223518788814545,
-1.1328765153884888,
-0.40882086753845215,
-0.9052545428276062,
0.8492285013198853,
0.027930578216910362,
0.2855227589607239,
1.830249309539795,
0.5154423117637634,
-0.3702157437801361,
0.6462876200675964,
1.158233642578125,
0.6530407071113586,
-0.7221336960792542,
0.1638718694448471,
-0.7755584716796875,
0.3410892188549042,
-1.2077950239181519,
0.3296891152858734,
-2.9083657264709473,
0.5752054452896118,
-0.050837885588407516,
-0.07341869175434113,
-0.04800194129347801,
-1.2402887344360352,
1.1546099185943604,
2.6072309017181396,
-1.170544981956482,
0.576643168926239,
0.3693561255931854,
1.0766198635101318,
-1.5273127555847168,
0.454658567905426,
-0.37869516015052795,
2.162830352783203,
0.2923393249511719,
1.1901859045028687,
-0.5697845220565796,
-2.2554829120635986,
0.6592288017272949,
-1.3353173732757568,
-1.1454288959503174,
0.6995977163314819,
-0.977541983127594,
-0.0464869923889637,
-1.3337557315826416,
-0.15544617176055908,
-0.7417677044868469,
-1.3681628704071045,
0.7968974709510803,
0.11560084670782089,
0.45590290427207947,
-0.4935968816280365,
0.3898247182369232,
-2.243878126144409,
-1.342777132987976,
-0.2906133234500885,
-0.9964389204978943,
0.4514807164669037,
-0.32099592685699463,
0.686913013458252,
-0.18464918434619904,
-0.02874661609530449,
0.4690398573875427,
1.2547067403793335,
3.4471452236175537,
0.3229548931121826,
0.45359525084495544,
-0.14407718181610107,
-0.94845050573349,
1.4359198808670044,
0.8830938935279846,
-0.17835412919521332,
-0.49554747343063354,
-1.0131292343139648,
1.2589002847671509,
2.0170438289642334,
1.0088294744491577,
0.02551584132015705,
-0.7408362030982971,
-0.7966561913490295,
0.022155994549393654,
0.111714668571949,
0.42124810814857483,
0.9253711700439453,
0.04632210358977318,
0.19152632355690002,
1.5047582387924194,
1.213259220123291,
-0.3844357132911682,
0.30140116810798645,
-0.7060829997062683,
-0.4733305871486664,
0.5936839580535889,
0.2811320126056671,
-0.00993683747947216,
0.5211714506149292,
-1.064125657081604,
-0.20445673167705536,
-0.3992749750614166,
-0.9517433643341064,
-0.6932874321937561,
-0.5532480478286743,
-0.309292733669281,
1.6364599466323853,
0.11147446185350418,
-0.5231373310089111,
0.045415010303258896,
-0.7759373188018799,
-0.1292511373758316,
-1.0215693712234497,
0.2700265049934387,
-0.06207658350467682,
-0.11162087321281433,
-0.08399590104818344,
1.9139195680618286,
-0.9630958437919617,
-2.1341311931610107,
0.2515426576137543,
0.1844150871038437,
-0.33598655462265015,
0.19614587724208832,
1.5886971950531006,
0.4879536032676697,
1.4464881420135498,
1.3676562309265137,
0.9841272234916687,
-0.7163713574409485,
-1.3951417207717896,
0.7104016542434692,
0.9711041450500488,
-1.4068580865859985,
0.8281872272491455,
0.001721919048577547,
-0.4604255259037018,
0.6883184909820557,
1.1844323873519897,
0.4541361629962921,
-1.9336658716201782,
0.7606349587440491,
-0.9392828941345215,
0.7355232834815979,
0.720042884349823,
0.7677879333496094,
0.08942075818777084,
0.7391178607940674,
-1.280280590057373,
-1.036747932434082,
-0.7880531549453735,
-0.6545085310935974,
1.9827269315719604,
-0.18514522910118103,
0.6128102540969849,
-0.04914556071162224,
-1.426066517829895,
-0.05285775661468506,
0.6688985824584961,
0.32365626096725464,
-0.5629547834396362,
0.7395981550216675,
-0.687432587146759,
-1.2079087495803833,
-1.4503391981124878,
-0.5134857296943665,
-1.0782973766326904,
-0.8963814377784729,
1.1446874141693115,
0.7776640057563782,
0.19891907274723053,
1.8491456508636475,
0.6084314584732056,
0.1960754096508026,
-2.7880911827087402,
0.8060995936393738,
0.30529966950416565,
0.0772358775138855,
0.9037485122680664,
0.3066079616546631,
0.8948487639427185,
0.0013739378191530704,
0.6066902279853821,
-2.4444050788879395,
2.391724109649658,
-0.30429649353027344,
0.7816649079322815,
0.10355211794376373,
-0.14921046793460846,
1.0546386241912842,
0.6594848036766052,
0.6287509202957153,
-1.1145005226135254,
0.7414273023605347,
-0.5458632707595825,
1.2484686374664307,
0.8757467865943909,
-0.7653151750564575,
-0.07008366286754608,
1.2518517971038818,
0.4423651397228241,
-0.44358739256858826,
-0.9428492188453674,
-0.9352834224700928,
0.9270220994949341,
1.7944799661636353,
-0.1082802265882492,
-0.07253456860780716,
0.8935205936431885,
0.6089028120040894,
-1.2602940797805786,
-0.07299050688743591,
-0.7839952707290649,
-0.7678274512290955,
1.5401744842529297,
2.178013324737549,
-0.06427568197250366,
-0.17994123697280884,
-0.6344237327575684,
-1.176619529724121,
0.7112658023834229,
0.032771848142147064,
0.07180321961641312,
0.6547601222991943,
-0.633236289024353,
1.045311450958252,
0.8879212141036987,
0.9379250407218933,
0.24325376749038696,
0.25290238857269287,
0.2416452169418335,
-0.2595490515232086,
-1.0351594686508179,
-0.2112826555967331,
-1.1074658632278442,
-2.599391222000122,
0.503567636013031,
-0.2169952541589737,
-1.5349085330963135,
0.028563430532813072,
-0.9855402708053589,
0.9109792113304138,
-0.506592869758606,
-1.0571191310882568,
-1.4117032289505005,
0.16306516528129578,
-0.14914089441299438,
0.9656806588172913,
-1.7184895277023315,
-0.06861566752195358,
1.1968671083450317,
0.9565153121948242,
-0.5979953408241272,
1.0855435132980347,
0.26173749566078186,
1.037429690361023,
0.9226229190826416,
-0.34489309787750244,
0.4764670729637146,
0.1554165929555893,
-1.2908817529678345,
0.3666597604751587,
1.1185163259506226,
0.2074415385723114,
1.4263041019439697,
-0.6026796698570251,
0.11357205361127853,
0.3706645965576172,
-0.565742552280426,
-0.2884660065174103,
-0.5612951517105103,
0.8476513624191284,
0.14446097612380981,
-0.8530544638633728,
0.001702002715319395,
-0.18968631327152252,
-0.1130436435341835,
0.11791951209306717,
-1.4687131643295288,
-0.1966320425271988,
-0.3476402461528778,
-0.590813159942627,
-1.1897156238555908,
-0.2240859419107437,
1.5355610847473145,
-0.9356989860534668,
-0.1350608468055725,
0.4655030071735382,
0.43574294447898865,
0.6739804148674011,
0.7420079708099365,
-0.6752248406410217,
-0.4334004819393158,
-0.1868678629398346,
-0.22904613614082336,
0.39065641164779663,
1.4165644645690918,
-0.06666401028633118,
-1.0056082010269165,
0.8399229049682617,
-0.3474196195602417,
0.07914756238460541,
1.8975372314453125,
0.12109915167093277,
-0.7695550918579102,
0.373491108417511,
-0.6963463425636292,
1.915202260017395,
1.7427071332931519,
1.298091173171997,
-0.07062028348445892,
-1.019774079322815,
0.6044520735740662,
-0.2842710614204407,
-0.44733721017837524,
0.8231815695762634,
0.4801630973815918,
-0.18236258625984192,
-1.3505847454071045,
0.5613143444061279,
1.1615269184112549,
-0.8197038769721985,
-0.773855447769165,
0.11510232836008072,
-0.7948687672615051,
1.1400738954544067,
0.6012068390846252,
0.43115130066871643,
0.15461499989032745,
1.594299077987671,
0.7061938047409058,
-0.5329948663711548,
0.5446818470954895,
0.48738834261894226,
-0.192894846200943,
-2.0374419689178467,
-1.1191377639770508,
0.2575939893722534,
-0.48052680492401123,
-1.4912266731262207,
1.1882243156433105,
-1.2200465202331543,
-0.9068272709846497,
0.5131762027740479,
0.06392544507980347,
1.484597086906433,
0.405343234539032,
1.5890743732452393,
2.14497709274292,
1.020479679107666,
0.334624320268631,
1.3974448442459106,
-0.11772999912500381,
-0.4339929223060608,
1.8022884130477905,
-0.26511824131011963,
0.45697021484375,
1.1228712797164917,
-0.36094897985458374,
-0.9517226219177246,
-0.71357262134552,
-1.1919525861740112,
-0.5937017202377319,
1.0043612718582153,
0.11015346646308899,
-1.1683522462844849,
0.22355340421199799,
1.5497982501983643,
-0.030282963067293167,
-0.29615312814712524,
0.46721526980400085,
0.4446590542793274,
-0.7301242351531982,
-0.0893048569560051,
-0.9823004603385925,
0.4261392652988434,
-0.36273202300071716,
-0.36759087443351746,
0.26701223850250244,
0.4783124029636383,
1.231467366218567,
0.018611786887049675,
0.12907619774341583,
1.2429137229919434,
-1.3712005615234375,
1.3904852867126465,
-0.5137913227081299,
0.2132049947977066,
-2.3636252880096436,
1.3006726503372192,
-0.7360221147537231,
1.9310874938964844,
-2.688929557800293,
0.4073502719402313,
-0.6472642421722412,
-0.5591059327125549,
0.31951162219047546,
-0.3260418772697449,
0.1906125396490097,
-0.19003699719905853,
-1.151618480682373,
-0.11570943892002106,
-0.6865976452827454,
0.5351395606994629,
0.9815513491630554,
1.2781068086624146,
-1.1093363761901855,
-0.3664081394672394,
-1.752225637435913,
-0.16855013370513916,
-0.7276838421821594,
0.29463067650794983,
-1.863537311553955,
-0.1873360276222229,
-1.8955273628234863,
-2.320211887359619,
-1.443556547164917,
-0.806466281414032,
1.0705697536468506,
0.17786464095115662,
-0.8259362578392029,
1.0210225582122803,
-0.3067723512649536,
-1.922465443611145,
1.0173168182373047,
-2.181741952896118
] |
https://github.com/huggingface/datasets/issues/5324 | Fix docstrings and types in documentation that appears on the website | Ok, I believe we've cleaned up most of the old syntax we were using for the user-facing docs! There are still a couple of `:obj:`'s and `:class:` floating around in the docstrings we don't expose that I'll track down :) | While I was working on https://github.com/huggingface/datasets/pull/5313 I've noticed that we have a mess in how we annotate types and format args and return values in the code. And some of it is displayed in the [Reference section](https://huggingface.co/docs/datasets/package_reference/builder_classes) of the documentation on the website.
Would be nice someday, maybe before releasing datasets 3.0.0, to unify it...... | 386 | 40 | Fix docstrings and types in documentation that appears on the website
While I was working on https://github.com/huggingface/datasets/pull/5313 I've noticed that we have a mess in how we annotate types and format args and return values in the code. And some of it is displayed in the [Reference section](https://huggingface.co/docs/datasets/package_reference/builder_classes) of the documentation on the website.
Would be nice someday, maybe before releasing datasets 3.0.0, to unify it......
Ok, I believe we've cleaned up most of the old syntax we were using for the user-facing docs! There are still a couple of `:obj:`'s and `:class:` floating around in the docstrings we don't expose that I'll track down :) | [
-1.3390648365020752,
-0.9905195236206055,
-0.8267769813537598,
1.5412458181381226,
-0.1037326380610466,
-1.3935750722885132,
-0.0008664289489388466,
-1.07442045211792,
1.6979824304580688,
-0.8807410597801208,
0.293878436088562,
-1.7097569704055786,
0.009175123646855354,
-0.607541561126709,
-0.7028538584709167,
-0.8955367803573608,
-0.34462517499923706,
-0.8311529159545898,
1.0296308994293213,
2.5085268020629883,
1.2336206436157227,
-1.4660135507583618,
2.6924402713775635,
0.7011941075325012,
-0.24962450563907623,
-1.1108146905899048,
0.6007781028747559,
0.00578882172703743,
-1.3126517534255981,
-0.4626528024673462,
-0.9980373382568359,
0.04183334484696388,
-0.4406167268753052,
-0.4363137483596802,
0.014959383755922318,
0.31066781282424927,
-0.1737939715385437,
-0.37217479944229126,
-0.5011227130889893,
-0.7958508133888245,
0.4125685691833496,
-0.31460869312286377,
0.9196764230728149,
-0.40423446893692017,
1.8478093147277832,
-0.4460850954055786,
0.34350746870040894,
0.715960681438446,
1.459686517715454,
0.11428958922624588,
0.03379235789179802,
0.13921360671520233,
0.35975027084350586,
0.03177716210484505,
0.45169979333877563,
1.1023387908935547,
0.5621734857559204,
0.37817031145095825,
0.7342340350151062,
-2.2397472858428955,
1.370177149772644,
-1.0258543491363525,
0.2583295702934265,
1.42820143699646,
-0.9991936087608337,
0.28713977336883545,
-1.7727129459381104,
-0.013371475040912628,
0.5837100148200989,
-2.2952136993408203,
0.22780251502990723,
-1.2241469621658325,
-0.4891265630722046,
0.9160994291305542,
0.23713652789592743,
-1.1814225912094116,
0.2027311623096466,
-0.4720027446746826,
0.9735424518585205,
0.624828577041626,
1.1798300743103027,
-1.5702216625213623,
0.023412592709064484,
-0.2244277000427246,
0.02585192769765854,
-1.3613135814666748,
-1.4415093660354614,
0.47828489542007446,
0.6899287700653076,
0.657393217086792,
-0.1304914653301239,
0.9847360253334045,
-0.9107050895690918,
0.8042380809783936,
-0.777022659778595,
-1.704473614692688,
-1.3868783712387085,
-2.33182430267334,
-2.300065517425537,
0.7994005084037781,
-0.5208501815795898,
-0.4908788204193115,
2.02874755859375,
-1.0495458841323853,
-1.841375470161438,
1.168350338935852,
0.3609769940376282,
0.10553599894046783,
2.3623783588409424,
0.16129066050052643,
-0.6751049160957336,
0.4264373779296875,
-0.6598730087280273,
0.8787342309951782,
-0.4327091574668884,
1.3048183917999268,
0.5541034936904907,
-0.9149972796440125,
1.5460364818572998,
-0.3456144332885742,
0.4963299036026001,
-0.6753036975860596,
-0.41374319791793823,
-0.8995497226715088,
0.276807963848114,
1.801701545715332,
-0.3285978436470032,
1.5554828643798828,
-0.28793203830718994,
-1.5026129484176636,
-1.5523643493652344,
0.8647393584251404,
0.45210450887680054,
-0.7459258437156677,
0.09955382347106934,
-0.42159122228622437,
0.15095287561416626,
-0.060719434171915054,
1.0627763271331787,
1.2529863119125366,
0.7250146269798279,
-0.17909252643585205,
-0.8859092593193054,
0.28275907039642334,
-0.06789394468069077,
-0.6682004332542419,
-1.829766869544983,
-0.36678218841552734,
0.2699950933456421,
0.6339145302772522,
-1.2117911577224731,
1.6917051076889038,
0.930918276309967,
1.9319169521331787,
0.9508590698242188,
-0.3080725073814392,
1.595644235610962,
-0.028512679040431976,
1.8891627788543701,
-0.5092813968658447,
0.6490848064422607,
-0.28369367122650146,
-1.138669729232788,
0.8532476425170898,
-0.3881962299346924,
-1.9709421396255493,
-0.7865994572639465,
-0.909493625164032,
-0.1718343198299408,
-0.693590521812439,
1.019822597503662,
-0.41869980096817017,
-1.383769154548645,
0.23620523512363434,
-0.6368101239204407,
0.13723553717136383,
-1.1912214756011963,
0.2777640223503113,
0.7823208570480347,
-0.6013840436935425,
-0.010414272546768188,
-0.2571500241756439,
-1.3051222562789917,
-0.5781435966491699,
0.3952380418777466,
1.8444623947143555,
-0.7425902485847473,
0.9490599036216736,
1.035441279411316,
-0.7737698554992676,
0.14668036997318268,
0.32954633235931396,
-0.312294065952301,
0.8764961361885071,
-0.9787823557853699,
-0.44385629892349243,
1.2550503015518188,
-0.31102919578552246,
-0.7170426845550537,
1.5424141883850098,
0.8732758164405823,
-0.9341545104980469,
-0.15407976508140564,
-0.20386426150798798,
-0.7476320266723633,
-0.010405031964182854,
-1.5230567455291748,
-0.191518172621727,
0.30213648080825806,
-1.4219248294830322,
-0.48881328105926514,
-0.22118635475635529,
1.411669135093689,
-0.0910382866859436,
1.3941959142684937,
-0.3080194592475891,
-0.24702340364456177,
-0.3704943060874939,
-0.40813106298446655,
0.2395256608724594,
-0.2286870777606964,
-0.6536384224891663,
0.31702548265457153,
-0.8527013659477234,
0.3091265559196472,
1.3754334449768066,
0.4182162880897522,
0.09868763387203217,
0.5862042903900146,
1.0064477920532227,
0.4084860682487488,
-0.02076389268040657,
-0.9356648325920105,
-1.555780291557312,
2.156412363052368,
-1.4593976736068726,
1.9468698501586914,
0.7321255803108215,
-0.1090417206287384,
-1.718536138534546,
-1.87355637550354,
1.336037278175354,
1.2151415348052979,
2.2386114597320557,
0.5921592116355896,
0.3037536144256592,
-0.8464776277542114,
-0.6663780212402344,
0.34243160486221313,
-1.0600019693374634,
-0.74910968542099,
0.03716002777218819,
2.337613582611084,
1.8759126663208008,
-0.5067251324653625,
-0.26631563901901245,
-0.9837063550949097,
1.3419843912124634,
-0.15289190411567688,
0.1993972510099411,
1.9497363567352295,
-0.22806213796138763,
-1.0750598907470703,
1.2301357984542847,
-2.351008653640747,
0.11356382071971893,
2.0497093200683594,
0.32480913400650024,
0.021159768104553223,
-1.4866645336151123,
-0.7610887289047241,
-0.2038838118314743,
-0.4769916534423828,
-1.1662040948867798,
0.6635212898254395,
-0.3995596170425415,
-0.8878000378608704,
-1.4188328981399536,
0.19381718337535858,
-1.1551069021224976,
-1.7572832107543945,
0.38198626041412354,
1.814622402191162,
2.072490692138672,
-0.7094987630844116,
1.5996079444885254,
-0.22791145741939545,
0.2142888456583023,
1.2460721731185913,
1.3059413433074951,
3.148695945739746,
1.885933756828308,
-1.2371485233306885,
0.6315215826034546,
-0.08301851898431778,
-0.5113708972930908,
1.1426544189453125,
-1.0989716053009033,
1.3048717975616455,
-0.1370251625776291,
-1.1499361991882324,
-1.2499122619628906,
1.0433543920516968,
0.49483078718185425,
0.11436469852924347,
-0.62708580493927,
1.2038347721099854,
0.00982697308063507,
1.2037469148635864,
0.4881593585014343,
-0.3879866600036621,
0.5138840675354004,
-0.4236975908279419,
-0.49948543310165405,
1.6143598556518555,
0.08690406382083893,
-1.5112764835357666,
-2.250710964202881,
-0.26220428943634033,
-0.727604329586029,
-0.09078414738178253,
-0.5502256751060486,
-0.9645208120346069,
1.6678364276885986,
0.39427006244659424,
-1.3344990015029907,
-0.3247528672218323,
-0.3924553394317627,
-0.706125795841217,
2.565885543823242,
-1.2940778732299805,
-0.269353449344635,
-0.8945254683494568,
-0.5140050649642944,
1.6441282033920288,
-1.2444030046463013,
-0.18577264249324799,
-1.0175684690475464,
-0.6686384677886963,
-1.3642832040786743,
-0.5514978170394897,
-0.039720319211483,
-0.9331516027450562,
0.7101897597312927,
0.07250487804412842,
-1.0030148029327393,
-0.30804455280303955,
-0.8179618716239929,
0.9011043906211853,
-0.0934746041893959,
0.2660771608352661,
1.978960394859314,
0.5260955095291138,
-0.34826070070266724,
0.666477620601654,
1.0708844661712646,
0.6045675277709961,
-0.6643983125686646,
0.27757060527801514,
-0.6385637521743774,
0.26466095447540283,
-1.3188642263412476,
0.31824350357055664,
-2.994168519973755,
0.71119624376297,
-0.05945831909775734,
-0.13718700408935547,
-0.040228866040706635,
-1.1764568090438843,
1.2364954948425293,
2.615847587585449,
-1.1869398355484009,
0.46224427223205566,
0.29461807012557983,
1.2260302305221558,
-1.5702191591262817,
0.32160454988479614,
-0.3747454285621643,
2.16298508644104,
0.07858917117118835,
1.193010687828064,
-0.4699377417564392,
-2.244676113128662,
0.7059137225151062,
-1.298888087272644,
-1.1011601686477661,
0.7218754291534424,
-0.8646730184555054,
0.06912178546190262,
-1.4424971342086792,
-0.08095875382423401,
-0.7950839400291443,
-1.2361571788787842,
0.7522532939910889,
0.1754583865404129,
0.4534044861793518,
-0.6837580800056458,
0.28815531730651855,
-2.0446856021881104,
-1.3760343790054321,
-0.1655193418264389,
-0.9936196804046631,
0.492986261844635,
-0.39527297019958496,
0.6299706101417542,
-0.15847550332546234,
0.04274773970246315,
0.3585432767868042,
1.4301258325576782,
3.4198954105377197,
0.16441747546195984,
0.4390259385108948,
-0.027056604623794556,
-0.9067443013191223,
1.6136547327041626,
0.9827485084533691,
-0.10668016225099564,
-0.4831387996673584,
-1.051780104637146,
1.2702707052230835,
1.9853801727294922,
1.0928475856781006,
0.10847416520118713,
-0.7848026156425476,
-0.7756307125091553,
0.0053581418469548225,
0.12136159837245941,
0.5906254053115845,
0.8638828992843628,
-0.05779298022389412,
0.053106650710105896,
1.4544541835784912,
1.2376371622085571,
-0.41792500019073486,
0.34830689430236816,
-0.8249711990356445,
-0.4297076463699341,
0.5055349469184875,
0.39495688676834106,
-0.08685529232025146,
0.5605374574661255,
-0.9908995628356934,
-0.24872179329395294,
-0.32842373847961426,
-0.9411620497703552,
-0.5889618396759033,
-0.4586135745048523,
-0.40574371814727783,
1.5814446210861206,
0.12277619540691376,
-0.5008376240730286,
-0.0619245320558548,
-0.8410471677780151,
-0.061542123556137085,
-1.1245652437210083,
0.22888775169849396,
-0.23405815660953522,
0.02022961527109146,
-0.16689814627170563,
1.7487002611160278,
-0.9709283113479614,
-2.2238357067108154,
0.24788524210453033,
0.19832341372966766,
-0.420645534992218,
0.22913984954357147,
1.6223335266113281,
0.47298336029052734,
1.4078799486160278,
1.335071086883545,
1.040101170539856,
-0.6360308527946472,
-1.1596401929855347,
0.7721560597419739,
0.8457440733909607,
-1.4343698024749756,
0.9987185001373291,
-0.14021961390972137,
-0.5973720550537109,
0.7332002520561218,
1.28000009059906,
0.325833797454834,
-2.0286121368408203,
0.8856641054153442,
-0.8914945721626282,
0.8306434154510498,
0.6371756196022034,
0.7210106253623962,
0.18351775407791138,
0.8263267278671265,
-1.2472493648529053,
-1.1796519756317139,
-0.7971828579902649,
-0.7799792289733887,
1.9090394973754883,
-0.22482283413410187,
0.5184457898139954,
-0.18221287429332733,
-1.2922035455703735,
-0.17686158418655396,
0.5937368869781494,
0.23068806529045105,
-0.29573601484298706,
0.8279895186424255,
-0.8602867126464844,
-1.1363633871078491,
-1.4268221855163574,
-0.48445993661880493,
-0.9269957542419434,
-0.9250670075416565,
1.0871301889419556,
0.8269102573394775,
0.2594475746154785,
1.9074485301971436,
0.5716540217399597,
0.179524227976799,
-2.5823566913604736,
0.8341138958930969,
0.3173481225967407,
0.017305824905633926,
0.9115259051322937,
0.2140781134366989,
1.0847415924072266,
-0.011955447494983673,
0.422366201877594,
-2.280860185623169,
2.1924943923950195,
-0.27855104207992554,
0.6709400415420532,
-0.010489178821444511,
-0.16484960913658142,
1.1941497325897217,
0.47418832778930664,
0.7565383911132812,
-1.190361499786377,
0.7770410776138306,
-0.6045994162559509,
1.2092440128326416,
1.0184218883514404,
-0.7749010920524597,
-0.046631474047899246,
1.3616113662719727,
0.5577640533447266,
-0.5125396251678467,
-0.9036649465560913,
-0.9172671437263489,
0.8578413724899292,
1.6988608837127686,
-0.008513775654137135,
0.006309758871793747,
0.8237151503562927,
0.644858181476593,
-1.2768759727478027,
-0.0582897886633873,
-0.7737718820571899,
-0.6370112299919128,
1.699394941329956,
2.1193110942840576,
-0.08024785667657852,
-0.154735267162323,
-0.7681025266647339,
-1.1977826356887817,
0.6420251727104187,
-0.08875655382871628,
0.06135345995426178,
0.6452730894088745,
-0.6795268058776855,
1.0605610609054565,
0.8516038656234741,
0.8522343039512634,
0.049568675458431244,
0.2980523109436035,
0.38848811388015747,
-0.27463972568511963,
-1.2255322933197021,
-0.38942521810531616,
-1.1111427545547485,
-2.4820892810821533,
0.4788147211074829,
-0.26390689611434937,
-1.4379026889801025,
-0.02209657058119774,
-1.1199822425842285,
0.9294841289520264,
-0.6137155890464783,
-0.9771119952201843,
-1.30634605884552,
0.13990271091461182,
-0.21916992962360382,
0.8059043288230896,
-1.5925852060317993,
-0.012508811429142952,
1.41909921169281,
0.8336986899375916,
-0.678246259689331,
1.053013801574707,
0.19885684549808502,
1.0785109996795654,
0.8473519682884216,
-0.4564782977104187,
0.4262077808380127,
0.14624616503715515,
-1.3609670400619507,
0.40029090642929077,
1.0110398530960083,
0.1328699141740799,
1.3815432786941528,
-0.5179882049560547,
0.04158551245927811,
0.4689241051673889,
-0.5431066751480103,
-0.49529963731765747,
-0.6601302623748779,
0.7288655638694763,
0.01573907397687435,
-0.884240984916687,
0.13309495151042938,
-0.142154723405838,
-0.2963111996650696,
0.23167017102241516,
-1.6003400087356567,
-0.265128493309021,
-0.2981409430503845,
-0.44482171535491943,
-1.3162665367126465,
0.14908058941364288,
1.3740267753601074,
-0.74053955078125,
-0.14163409173488617,
0.4478938579559326,
0.32959651947021484,
0.504473865032196,
0.6748782396316528,
-0.6859498620033264,
-0.2745482325553894,
-0.37944817543029785,
-0.33733171224594116,
0.41118520498275757,
1.2927546501159668,
-0.24282337725162506,
-0.9180573225021362,
0.7366276979446411,
-0.2908373475074768,
0.021943027153611183,
2.046090841293335,
0.01356818713247776,
-0.7859678268432617,
0.2915220260620117,
-0.7528479695320129,
1.9334008693695068,
1.6327866315841675,
1.339812994003296,
-0.20665422081947327,
-0.9133040308952332,
0.5812338590621948,
-0.16840575635433197,
-0.4024660587310791,
0.8850428462028503,
0.48086118698120117,
-0.15304110944271088,
-1.4489643573760986,
0.5190438628196716,
1.1743208169937134,
-0.9608380198478699,
-0.8236628770828247,
0.1225791871547699,
-0.80866539478302,
1.0594841241836548,
0.8248992562294006,
0.47770148515701294,
0.22850346565246582,
1.6498446464538574,
0.7348411083221436,
-0.5196897983551025,
0.38592714071273804,
0.553467333316803,
-0.14066289365291595,
-2.0221264362335205,
-1.0284174680709839,
0.3029252886772156,
-0.3895948529243469,
-1.5880796909332275,
1.2500494718551636,
-1.162707805633545,
-0.9387117624282837,
0.5302757620811462,
0.05753424018621445,
1.4737458229064941,
0.3399984836578369,
1.5686919689178467,
2.092755079269409,
0.9097557067871094,
0.2848726511001587,
1.328843116760254,
-0.1750674843788147,
-0.5218559503555298,
1.8132189512252808,
-0.3484739661216736,
0.46908479928970337,
1.108324646949768,
-0.3570176959037781,
-0.9649750590324402,
-0.7594459056854248,
-1.1174075603485107,
-0.5301604270935059,
1.2676862478256226,
0.12188634276390076,
-1.199915885925293,
0.22422881424427032,
1.4308216571807861,
0.1897135227918625,
-0.2425338625907898,
0.627138078212738,
0.5052289962768555,
-0.763470470905304,
-0.04553541913628578,
-0.9264909625053406,
0.5411074161529541,
-0.1961919218301773,
-0.37721312046051025,
0.4405219554901123,
0.38359975814819336,
1.2287359237670898,
-0.0943218544125557,
0.1778896600008011,
1.1829392910003662,
-1.3372501134872437,
1.4798212051391602,
-0.6800330281257629,
0.24351902306079865,
-2.344619035720825,
1.4098899364471436,
-0.9088350534439087,
1.9867125749588013,
-2.6423487663269043,
0.3231387734413147,
-0.59241783618927,
-0.5283463001251221,
0.3335609436035156,
-0.4916282296180725,
0.02380210906267166,
-0.15184518694877625,
-1.0256320238113403,
-0.08883630484342575,
-0.7115840315818787,
0.5268375277519226,
1.2500717639923096,
1.3532094955444336,
-1.0443191528320312,
-0.3213713765144348,
-1.8627080917358398,
-0.23563042283058167,
-0.7701506018638611,
0.4364386200904846,
-2.0399835109710693,
-0.20312759280204773,
-1.940664529800415,
-2.365135669708252,
-1.4059330224990845,
-0.8314020037651062,
1.1214386224746704,
0.17965373396873474,
-0.8469011187553406,
1.0596187114715576,
-0.3191715478897095,
-1.7158043384552002,
0.9791873097419739,
-2.101461887359619
] |
https://github.com/huggingface/datasets/issues/5317 | `ImageFolder` performs poorly with large datasets | Hi ! ImageFolder is made for small scale datasets indeed. For large scale image datasets you better group your images in TAR archives or Arrow/Parquet files. This is true not just for ImageFolder loading performance, but also because having millions of files is not ideal for your filesystem or when moving the data around.
Option 1. use TAR archives
I'd suggest you to take a look at how we load [Imagenet](https://huggingface.co/datasets/imagenet-1k/tree/main) for example. The dataset is sharded in multiple TAR archives and there is a [script](https://huggingface.co/datasets/imagenet-1k/blob/main/imagenet-1k.py) that iterates over the archives to load the images.
Option 2. use Arrow/Parquet
You can load your images as an Arrow Dataset with
```python
from datasets import Dataset, Image, load_from_disk, load_dataset
ds = Dataset.from_dict({"image": list(glob.glob("path/to/dir/**/*.jpg"))})
def add_metadata(example):
...
ds = ds.map(add_metadata, num_proc=16) # num_proc for multiprocessing
ds = ds.cast_column("image", Image())
# save as Arrow locally
ds.save_to_disk("output_dir")
reloaded = load_from_disk("output_dir")
# OR save as Parquet on the HF Hub
ds.push_to_hub("username/dataset_name")
reloaded = load_dataset("username/dataset_name")
# reloaded = load_dataset("username/dataset_name", num_proc=16) # to use multiprocessing
```
PS: maybe we can actually have something similar to ImageFolder but for image archives at one point ? | ### Describe the bug
While testing image dataset creation, I'm seeing significant performance bottlenecks with imagefolders when scanning a directory structure with large number of images.
## Setup
* Nested directories (5 levels deep)
* 3M+ images
* 1 `metadata.jsonl` file
## Performance Degradation Point 1
Degradation occurs because [`get_data_files_patterns`](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L231-L243) runs the exact same scan for many different types of patterns, and there doesn't seem to be a way to easily limit this. It's controlled by the definition of [`ALL_DEFAULT_PATTERNS`](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L82-L85).
One scan with 3M+ files takes about 10-15 minutes to complete on my setup, so having those extra scans really slows things down – from 10 minutes to 60+. Most of the scans return no matches, but they still take a significant amount of time to complete – hence the poor performance.
As a side effect, when this scan is run on 3M+ image files, Python also consumes up to 12 GB of RAM, which is not ideal.
## Performance Degradation Point 2
The second performance bottleneck is in [`PackagedDatasetModuleFactory.get_module`](https://github.com/huggingface/datasets/blob/d7dfbc83d68e87ba002c5eb2555f7a932e59038a/src/datasets/load.py#L707-L711), which calls `DataFilesDict.from_local_or_remote`.
It runs for a long time (60min+), consuming significant amounts of RAM – even more than the point 1 above. Based on `iostat -d 2`, it performs **zero** disk operations, which to me suggests that there is a code based bottleneck there that could be sorted out.
### Steps to reproduce the bug
```python
from datasets import load_dataset
import os
import huggingface_hub
dataset = load_dataset(
'imagefolder',
data_dir='/some/path',
# just to spell it out:
split=None,
drop_labels=True,
keep_in_memory=False
)
dataset.push_to_hub('account/dataset', private=True)
```
### Expected behavior
While it's certainly possible to write a custom loader to replace `ImageFolder` with, it'd be great if the off-the-shelf `ImageFolder` would by default have a setup that can scale to large datasets.
Or perhaps there could be a dedicated loader just for large datasets that trades off flexibility for performance? As in, maybe you have to define explicitly how you want it to work rather than it trying to guess your data structure like `_get_data_files_patterns()` does?
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-4.14.296-222.539.amzn2.x86_64-x86_64-with-glibc2.2.5
- Python version: 3.7.10
- PyArrow version: 10.0.1
- Pandas version: 1.3.5
| 388 | 186 | `ImageFolder` performs poorly with large datasets
### Describe the bug
While testing image dataset creation, I'm seeing significant performance bottlenecks with imagefolders when scanning a directory structure with large number of images.
## Setup
* Nested directories (5 levels deep)
* 3M+ images
* 1 `metadata.jsonl` file
## Performance Degradation Point 1
Degradation occurs because [`get_data_files_patterns`](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L231-L243) runs the exact same scan for many different types of patterns, and there doesn't seem to be a way to easily limit this. It's controlled by the definition of [`ALL_DEFAULT_PATTERNS`](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L82-L85).
One scan with 3M+ files takes about 10-15 minutes to complete on my setup, so having those extra scans really slows things down – from 10 minutes to 60+. Most of the scans return no matches, but they still take a significant amount of time to complete – hence the poor performance.
As a side effect, when this scan is run on 3M+ image files, Python also consumes up to 12 GB of RAM, which is not ideal.
## Performance Degradation Point 2
The second performance bottleneck is in [`PackagedDatasetModuleFactory.get_module`](https://github.com/huggingface/datasets/blob/d7dfbc83d68e87ba002c5eb2555f7a932e59038a/src/datasets/load.py#L707-L711), which calls `DataFilesDict.from_local_or_remote`.
It runs for a long time (60min+), consuming significant amounts of RAM – even more than the point 1 above. Based on `iostat -d 2`, it performs **zero** disk operations, which to me suggests that there is a code based bottleneck there that could be sorted out.
### Steps to reproduce the bug
```python
from datasets import load_dataset
import os
import huggingface_hub
dataset = load_dataset(
'imagefolder',
data_dir='/some/path',
# just to spell it out:
split=None,
drop_labels=True,
keep_in_memory=False
)
dataset.push_to_hub('account/dataset', private=True)
```
### Expected behavior
While it's certainly possible to write a custom loader to replace `ImageFolder` with, it'd be great if the off-the-shelf `ImageFolder` would by default have a setup that can scale to large datasets.
Or perhaps there could be a dedicated loader just for large datasets that trades off flexibility for performance? As in, maybe you have to define explicitly how you want it to work rather than it trying to guess your data structure like `_get_data_files_patterns()` does?
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-4.14.296-222.539.amzn2.x86_64-x86_64-with-glibc2.2.5
- Python version: 3.7.10
- PyArrow version: 10.0.1
- Pandas version: 1.3.5
Hi ! ImageFolder is made for small scale datasets indeed. For large scale image datasets you better group your images in TAR archives or Arrow/Parquet files. This is true not just for ImageFolder loading performance, but also because having millions of files is not ideal for your filesystem or when moving the data around.
Option 1. use TAR archives
I'd suggest you to take a look at how we load [Imagenet](https://huggingface.co/datasets/imagenet-1k/tree/main) for example. The dataset is sharded in multiple TAR archives and there is a [script](https://huggingface.co/datasets/imagenet-1k/blob/main/imagenet-1k.py) that iterates over the archives to load the images.
Option 2. use Arrow/Parquet
You can load your images as an Arrow Dataset with
```python
from datasets import Dataset, Image, load_from_disk, load_dataset
ds = Dataset.from_dict({"image": list(glob.glob("path/to/dir/**/*.jpg"))})
def add_metadata(example):
...
ds = ds.map(add_metadata, num_proc=16) # num_proc for multiprocessing
ds = ds.cast_column("image", Image())
# save as Arrow locally
ds.save_to_disk("output_dir")
reloaded = load_from_disk("output_dir")
# OR save as Parquet on the HF Hub
ds.push_to_hub("username/dataset_name")
reloaded = load_dataset("username/dataset_name")
# reloaded = load_dataset("username/dataset_name", num_proc=16) # to use multiprocessing
```
PS: maybe we can actually have something similar to ImageFolder but for image archives at one point ? | [
-1.1987686157226562,
-0.9523312449455261,
-0.7291271686553955,
1.4155699014663696,
-0.10784557461738586,
-1.2535969018936157,
0.13453370332717896,
-1.0448516607284546,
1.6751487255096436,
-0.7176129817962646,
0.2097993642091751,
-1.6848515272140503,
-0.031679801642894745,
-0.5680491328239441,
-0.7604201436042786,
-0.8117397427558899,
-0.3632366955280304,
-0.8422197699546814,
1.0110578536987305,
2.56500244140625,
1.1565641164779663,
-1.3625580072402954,
2.762115240097046,
0.6857589483261108,
-0.28547489643096924,
-0.9744250178337097,
0.5024436712265015,
0.031058577820658684,
-1.2449452877044678,
-0.4820021688938141,
-0.908318817615509,
-0.013631565496325493,
-0.4945812523365021,
-0.48344847559928894,
0.07545427978038788,
0.3770267069339752,
-0.2733464539051056,
-0.43378809094429016,
-0.5833569169044495,
-0.7409098744392395,
0.4212545156478882,
-0.37142494320869446,
0.9763467311859131,
-0.2796773910522461,
1.8211437463760376,
-0.5394665598869324,
0.35357657074928284,
0.7005969882011414,
1.3957922458648682,
0.1378600299358368,
0.009137297049164772,
0.2830384075641632,
0.3798503577709198,
-0.017592255026102066,
0.4970163106918335,
1.2197613716125488,
0.6773305535316467,
0.5163363814353943,
0.7515886425971985,
-2.1851933002471924,
1.3849453926086426,
-0.961472749710083,
0.3455067574977875,
1.3625903129577637,
-0.903281569480896,
0.4457896649837494,
-1.7955392599105835,
-0.040033258497714996,
0.5694410800933838,
-2.2800331115722656,
0.20105114579200745,
-1.275713562965393,
-0.5347474217414856,
0.9266427159309387,
0.25470733642578125,
-1.1908729076385498,
0.19641852378845215,
-0.5661375522613525,
1.0900630950927734,
0.46153968572616577,
1.1798632144927979,
-1.6761443614959717,
-0.06584586203098297,
-0.23014141619205475,
0.14921459555625916,
-1.3209257125854492,
-1.595660924911499,
0.542289137840271,
0.6930586695671082,
0.6021496057510376,
-0.12311775237321854,
0.9912225604057312,
-0.9945627450942993,
0.776050865650177,
-0.9564720392227173,
-1.648686170578003,
-1.3900209665298462,
-2.3090877532958984,
-2.2908775806427,
0.8158976435661316,
-0.4335991144180298,
-0.4862958788871765,
2.013563394546509,
-0.9577487111091614,
-1.7878844738006592,
1.044012188911438,
0.30283936858177185,
-0.014443967491388321,
2.3965423107147217,
0.2578030824661255,
-0.7008383870124817,
0.37277236580848694,
-0.7118238210678101,
0.7990707755088806,
-0.48716267943382263,
1.361850619316101,
0.4245932698249817,
-1.0225874185562134,
1.5542793273925781,
-0.47280967235565186,
0.5633533000946045,
-0.6902318596839905,
-0.4827202260494232,
-0.7779025435447693,
0.39678293466567993,
1.9249732494354248,
-0.3628256618976593,
1.581390380859375,
-0.3924769163131714,
-1.5956002473831177,
-1.6088356971740723,
0.8234825134277344,
0.5111662149429321,
-0.755075991153717,
0.06967681646347046,
-0.45805996656417847,
0.09540189057588577,
-0.05247940123081207,
1.073496699333191,
1.2293879985809326,
0.6633211374282837,
-0.3070679008960724,
-0.8462377190589905,
0.25477126240730286,
-0.15695184469223022,
-0.6589681506156921,
-1.8211324214935303,
-0.3136248290538788,
0.19980530440807343,
0.6289001107215881,
-1.2294514179229736,
1.7238882780075073,
0.8582556843757629,
1.9889066219329834,
0.9748186469078064,
-0.40407201647758484,
1.535585880279541,
0.028765441849827766,
1.8477026224136353,
-0.5623294115066528,
0.6596143245697021,
-0.36008507013320923,
-1.1504650115966797,
0.8202729225158691,
-0.39001187682151794,
-2.0191054344177246,
-0.6806597113609314,
-0.8353055119514465,
-0.2081240713596344,
-0.738273561000824,
0.869735062122345,
-0.2671412527561188,
-1.3503459692001343,
0.20698077976703644,
-0.7053282260894775,
0.21287256479263306,
-1.2824362516403198,
0.25878942012786865,
0.7957356572151184,
-0.6332852840423584,
-0.01098377164453268,
-0.23923084139823914,
-1.2777934074401855,
-0.43878597021102905,
0.3124922513961792,
1.9040290117263794,
-0.6519291996955872,
0.9211835861206055,
1.0243719816207886,
-0.7239033579826355,
0.0862872302532196,
0.3245079219341278,
-0.33143866062164307,
0.8566965460777283,
-1.0828018188476562,
-0.34337466955184937,
1.1778498888015747,
-0.2193567007780075,
-0.5474371910095215,
1.4000358581542969,
0.7951518893241882,
-1.067435383796692,
-0.22408807277679443,
-0.13444872200489044,
-0.7985464334487915,
0.005551910027861595,
-1.571005940437317,
-0.13107232749462128,
0.3957907259464264,
-1.436417579650879,
-0.4487735331058502,
-0.2998729348182678,
1.3124709129333496,
-0.13134320080280304,
1.4575259685516357,
-0.294208288192749,
-0.18766184151172638,
-0.3246583938598633,
-0.3936536908149719,
0.13591518998146057,
-0.2633187770843506,
-0.6009794473648071,
0.23726773262023926,
-0.8297565579414368,
0.3533351719379425,
1.467668890953064,
0.36185404658317566,
0.03407946974039078,
0.5118630528450012,
1.0935924053192139,
0.3068910837173462,
-0.06715560704469681,
-0.8803109526634216,
-1.556384563446045,
2.0022692680358887,
-1.444763422012329,
1.9656391143798828,
0.8657965064048767,
0.01393870823085308,
-1.719530463218689,
-1.88312828540802,
1.3407732248306274,
1.1419835090637207,
2.3764290809631348,
0.5443154573440552,
0.3919289708137512,
-0.8384494185447693,
-0.7245517373085022,
0.24733686447143555,
-1.009238600730896,
-0.7090588212013245,
0.15267224609851837,
2.387683153152466,
1.7935256958007812,
-0.5129082798957825,
-0.22221556305885315,
-1.0071585178375244,
1.3634015321731567,
-0.20241615176200867,
0.21041987836360931,
2.019353151321411,
-0.29664286971092224,
-1.0397381782531738,
1.2397671937942505,
-2.3526697158813477,
0.23502527177333832,
1.9421800374984741,
0.2546750605106354,
0.11524029821157455,
-1.48969566822052,
-0.6155195832252502,
-0.3051900565624237,
-0.37842562794685364,
-1.2069272994995117,
0.5370818376541138,
-0.25465795397758484,
-0.8706797361373901,
-1.5430396795272827,
0.1276734322309494,
-1.150719165802002,
-1.6959316730499268,
0.30459412932395935,
1.8612086772918701,
2.0562474727630615,
-0.7599174976348877,
1.4781426191329956,
-0.2507694363594055,
0.09140486270189285,
1.2372806072235107,
1.2449817657470703,
3.1471006870269775,
1.860787034034729,
-1.22991943359375,
0.687173068523407,
-0.1361372023820877,
-0.48597586154937744,
1.0990809202194214,
-1.1129027605056763,
1.275093913078308,
-0.15610453486442566,
-1.2424616813659668,
-1.2831066846847534,
1.0074543952941895,
0.5681395530700684,
0.03768693655729294,
-0.5075231790542603,
1.2098411321640015,
0.053047508001327515,
1.3732295036315918,
0.6387536525726318,
-0.3985544741153717,
0.6323555111885071,
-0.3309745490550995,
-0.49158090353012085,
1.568381428718567,
0.17207801342010498,
-1.5000666379928589,
-2.330543041229248,
-0.26976847648620605,
-0.8564915060997009,
-0.027790026739239693,
-0.7047935128211975,
-1.0108139514923096,
1.655943512916565,
0.4288749694824219,
-1.2062866687774658,
-0.28575509786605835,
-0.3528767228126526,
-0.5817469954490662,
2.58876895904541,
-1.4435186386108398,
-0.20662525296211243,
-0.9700332283973694,
-0.5320665836334229,
1.5364242792129517,
-1.1732409000396729,
-0.19985631108283997,
-1.026075005531311,
-0.6209923624992371,
-1.2542965412139893,
-0.5507002472877502,
-0.031059201806783676,
-0.9175693988800049,
0.7926787734031677,
0.17498980462551117,
-1.0986353158950806,
-0.3021972179412842,
-0.9202560782432556,
0.9641920924186707,
-0.18614038825035095,
0.1502283811569214,
1.830946922302246,
0.4214562475681305,
-0.45066019892692566,
0.7638344764709473,
1.1908960342407227,
0.5593635439872742,
-0.7072097659111023,
0.1182214543223381,
-0.7302281856536865,
0.2793559432029724,
-1.3822661638259888,
0.3001367449760437,
-2.87145733833313,
0.6232625842094421,
-0.100739486515522,
-0.034678541123867035,
0.013942668214440346,
-1.3025621175765991,
1.090994954109192,
2.635128974914551,
-1.1550941467285156,
0.4688626229763031,
0.3310384452342987,
1.2065634727478027,
-1.622351050376892,
0.3092776834964752,
-0.4283754825592041,
2.1168978214263916,
0.14986911416053772,
1.2372300624847412,
-0.5505324006080627,
-2.2222490310668945,
0.5131162405014038,
-1.2574483156204224,
-1.0671212673187256,
0.7633329033851624,
-0.8304610252380371,
0.042857661843299866,
-1.473252534866333,
-0.1988133043050766,
-0.8736928701400757,
-1.3015496730804443,
0.7210741639137268,
0.07328521460294724,
0.4642467200756073,
-0.6033036708831787,
0.3533036410808563,
-2.1339268684387207,
-1.3669732809066772,
-0.2046959102153778,
-0.9593135118484497,
0.5418378114700317,
-0.3548514246940613,
0.6590990424156189,
-0.14504946768283844,
0.07292431592941284,
0.3060327470302582,
1.4361920356750488,
3.3609113693237305,
0.18282146751880646,
0.348190575838089,
-0.15910331904888153,
-0.9327791333198547,
1.358174204826355,
0.9440640807151794,
-0.10242068022489548,
-0.538489580154419,
-1.0341371297836304,
1.3012858629226685,
1.9831596612930298,
1.1219757795333862,
0.059305787086486816,
-0.8841082453727722,
-0.7804481983184814,
-0.028079770505428314,
0.23404917120933533,
0.44068804383277893,
0.8761116862297058,
0.03386159986257553,
0.1297653615474701,
1.3331537246704102,
1.3216453790664673,
-0.4761923551559448,
0.46974122524261475,
-0.9173282384872437,
-0.41551336646080017,
0.4303571283817291,
0.32647302746772766,
-0.015503738075494766,
0.3868653476238251,
-1.0455883741378784,
-0.2581411302089691,
-0.37708401679992676,
-0.8844358325004578,
-0.7279943823814392,
-0.3821914494037628,
-0.31380870938301086,
1.6055468320846558,
0.12434419244527817,
-0.5145646333694458,
0.01251404732465744,
-0.7223166823387146,
-0.1315268725156784,
-1.0219124555587769,
0.22663231194019318,
-0.14009563624858856,
-0.0903753861784935,
-0.09184659272432327,
1.6883702278137207,
-0.9002898931503296,
-2.1018075942993164,
0.2087586671113968,
0.27201879024505615,
-0.40023529529571533,
0.15910743176937103,
1.7097644805908203,
0.5712316632270813,
1.49466073513031,
1.3578393459320068,
1.0023983716964722,
-0.6663612127304077,
-1.272745132446289,
0.6915575861930847,
0.952318012714386,
-1.4219813346862793,
0.8057746291160583,
-0.09067151695489883,
-0.5361413955688477,
0.6955283880233765,
1.3494057655334473,
0.35806459188461304,
-2.0525450706481934,
0.8318776488304138,
-0.9195453524589539,
0.758571982383728,
0.7365211248397827,
0.8034914135932922,
0.24516984820365906,
0.8310949206352234,
-1.2646244764328003,
-1.1483012437820435,
-0.7981918454170227,
-0.588358461856842,
1.9654433727264404,
-0.212867870926857,
0.5824362635612488,
-0.206589937210083,
-1.3138644695281982,
-0.09060047566890717,
0.7354933619499207,
0.3775797486305237,
-0.4769895076751709,
0.8276432156562805,
-0.6946936845779419,
-1.0668020248413086,
-1.3386616706848145,
-0.4782826006412506,
-1.0228153467178345,
-0.963118851184845,
1.0309319496154785,
0.8356232047080994,
0.39528682827949524,
1.9009369611740112,
0.6155142188072205,
0.24595767259597778,
-2.632662057876587,
0.8890212774276733,
0.3589407801628113,
-0.12597283720970154,
0.8957858681678772,
0.2672434151172638,
1.076223373413086,
0.036214835941791534,
0.5367966890335083,
-2.38789701461792,
2.203787326812744,
-0.13490374386310577,
0.7010863423347473,
-0.00026546791195869446,
-0.1945294439792633,
1.1023155450820923,
0.5510324239730835,
0.5228984951972961,
-1.1850402355194092,
0.7340665459632874,
-0.5977135896682739,
1.182425856590271,
0.8790231943130493,
-0.8815410733222961,
0.029368186369538307,
1.393136739730835,
0.4826183319091797,
-0.4731540083885193,
-0.948982298374176,
-0.9257455468177795,
0.915944516658783,
1.69908607006073,
-0.08453334122896194,
0.046140238642692566,
0.8429842591285706,
0.6686022877693176,
-1.286196231842041,
0.11328315734863281,
-0.7085837125778198,
-0.7110505104064941,
1.6643579006195068,
2.0730438232421875,
-0.14107997715473175,
-0.18278491497039795,
-0.7467538714408875,
-1.2612186670303345,
0.7025742530822754,
0.02319212444126606,
0.12479203194379807,
0.6669862270355225,
-0.7119264602661133,
1.171057939529419,
0.7758481502532959,
0.9066086411476135,
0.12133190780878067,
0.3402024209499359,
0.4122304618358612,
-0.38852161169052124,
-1.1516860723495483,
-0.2973109185695648,
-1.128522515296936,
-2.5371594429016113,
0.4368942081928253,
-0.21023793518543243,
-1.520670771598816,
0.020883286371827126,
-1.0021615028381348,
0.9409992098808289,
-0.6279507875442505,
-1.0579146146774292,
-1.5342954397201538,
0.3128803074359894,
-0.12422335147857666,
0.9614083766937256,
-1.6460485458374023,
-0.1114950031042099,
1.1753162145614624,
0.8872116208076477,
-0.5440047383308411,
1.0027865171432495,
0.23868046700954437,
1.0030511617660522,
0.890252947807312,
-0.3393230438232422,
0.47810640931129456,
0.10798700898885727,
-1.3449971675872803,
0.44633054733276367,
1.1745468378067017,
0.23412880301475525,
1.4378511905670166,
-0.5226393938064575,
0.0474911630153656,
0.46224600076675415,
-0.479052871465683,
-0.47609174251556396,
-0.38913819193840027,
0.6715904474258423,
0.016085676848888397,
-0.945014238357544,
0.03523080796003342,
-0.11598924547433853,
-0.2303251028060913,
0.20909659564495087,
-1.497475504875183,
-0.22740764915943146,
-0.39955151081085205,
-0.5579249858856201,
-1.2534430027008057,
0.02511432208120823,
1.3365182876586914,
-0.7361197471618652,
-0.25126412510871887,
0.49576085805892944,
0.4198009669780731,
0.4999253749847412,
0.6372053027153015,
-0.6833252310752869,
-0.3462962508201599,
-0.25936055183410645,
-0.332622766494751,
0.2966495454311371,
1.242931604385376,
-0.1365988701581955,
-0.9591178894042969,
0.6862004399299622,
-0.4280390739440918,
0.06621113419532776,
1.945971131324768,
0.10536374896764755,
-0.8425187468528748,
0.3208896815776825,
-0.7253879904747009,
1.9084773063659668,
1.6898671388626099,
1.34648859500885,
-0.09727431833744049,
-0.9430113434791565,
0.6399434208869934,
-0.2458273023366928,
-0.323761522769928,
0.9632296562194824,
0.43877658247947693,
-0.20112743973731995,
-1.4482983350753784,
0.600851833820343,
1.2957431077957153,
-0.8550722002983093,
-0.7844461798667908,
0.07494184374809265,
-0.8186169266700745,
1.1075817346572876,
0.6615756154060364,
0.3196457028388977,
0.22050878405570984,
1.6390093564987183,
0.7171571850776672,
-0.46682700514793396,
0.5875597596168518,
0.44305530190467834,
-0.17173756659030914,
-2.1554479598999023,
-1.0991240739822388,
0.2555108070373535,
-0.3533197045326233,
-1.5326833724975586,
1.3100335597991943,
-1.1326279640197754,
-0.9601644277572632,
0.4929999113082886,
0.17415045201778412,
1.3937101364135742,
0.3371472656726837,
1.664671540260315,
2.1366782188415527,
0.8866225481033325,
0.29877153038978577,
1.2929203510284424,
-0.1067061722278595,
-0.4491184949874878,
1.8168152570724487,
-0.46066251397132874,
0.5536212921142578,
1.0664622783660889,
-0.443820595741272,
-1.1226438283920288,
-0.8096802234649658,
-1.1901723146438599,
-0.6268879771232605,
1.1852872371673584,
0.07742109149694443,
-1.0515846014022827,
0.27634862065315247,
1.6350401639938354,
0.11030136793851852,
-0.29876965284347534,
0.6475215554237366,
0.47834399342536926,
-0.7425108551979065,
-0.08719883114099503,
-0.9152817726135254,
0.46343791484832764,
-0.1557590365409851,
-0.3229202330112457,
0.32194212079048157,
0.5428934097290039,
1.2618337869644165,
-0.033326104283332825,
0.06967104971408844,
1.1577653884887695,
-1.4338163137435913,
1.4936647415161133,
-0.6593108177185059,
0.259798526763916,
-2.401299476623535,
1.447013258934021,
-0.7491825819015503,
1.8967461585998535,
-2.616204261779785,
0.40566208958625793,
-0.6234151124954224,
-0.45409777760505676,
0.29018738865852356,
-0.31948044896125793,
0.1634579449892044,
-0.11700745671987534,
-1.0727683305740356,
-0.09283940494060516,
-0.7879289388656616,
0.6209767460823059,
1.144593596458435,
1.3930552005767822,
-1.064274549484253,
-0.2367936372756958,
-1.7914565801620483,
-0.20156770944595337,
-0.7012277245521545,
0.3092815577983856,
-1.9803693294525146,
-0.2171744704246521,
-1.9199434518814087,
-2.3584508895874023,
-1.387844443321228,
-0.7863142490386963,
1.0351837873458862,
0.10001092404127121,
-0.885564923286438,
1.189740538597107,
-0.4171150326728821,
-1.860973596572876,
1.071312427520752,
-2.145212411880493
] |
https://github.com/huggingface/datasets/issues/5317 | `ImageFolder` performs poorly with large datasets | @lhoestq Thanks!
Perhaps it'd be worth adding a note on the documentation that `ImageFolder` is not intended for large datasets? This limitation is not intuitively obvious to someone who has not used it before, I think. | ### Describe the bug
While testing image dataset creation, I'm seeing significant performance bottlenecks with imagefolders when scanning a directory structure with large number of images.
## Setup
* Nested directories (5 levels deep)
* 3M+ images
* 1 `metadata.jsonl` file
## Performance Degradation Point 1
Degradation occurs because [`get_data_files_patterns`](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L231-L243) runs the exact same scan for many different types of patterns, and there doesn't seem to be a way to easily limit this. It's controlled by the definition of [`ALL_DEFAULT_PATTERNS`](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L82-L85).
One scan with 3M+ files takes about 10-15 minutes to complete on my setup, so having those extra scans really slows things down – from 10 minutes to 60+. Most of the scans return no matches, but they still take a significant amount of time to complete – hence the poor performance.
As a side effect, when this scan is run on 3M+ image files, Python also consumes up to 12 GB of RAM, which is not ideal.
## Performance Degradation Point 2
The second performance bottleneck is in [`PackagedDatasetModuleFactory.get_module`](https://github.com/huggingface/datasets/blob/d7dfbc83d68e87ba002c5eb2555f7a932e59038a/src/datasets/load.py#L707-L711), which calls `DataFilesDict.from_local_or_remote`.
It runs for a long time (60min+), consuming significant amounts of RAM – even more than the point 1 above. Based on `iostat -d 2`, it performs **zero** disk operations, which to me suggests that there is a code based bottleneck there that could be sorted out.
### Steps to reproduce the bug
```python
from datasets import load_dataset
import os
import huggingface_hub
dataset = load_dataset(
'imagefolder',
data_dir='/some/path',
# just to spell it out:
split=None,
drop_labels=True,
keep_in_memory=False
)
dataset.push_to_hub('account/dataset', private=True)
```
### Expected behavior
While it's certainly possible to write a custom loader to replace `ImageFolder` with, it'd be great if the off-the-shelf `ImageFolder` would by default have a setup that can scale to large datasets.
Or perhaps there could be a dedicated loader just for large datasets that trades off flexibility for performance? As in, maybe you have to define explicitly how you want it to work rather than it trying to guess your data structure like `_get_data_files_patterns()` does?
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-4.14.296-222.539.amzn2.x86_64-x86_64-with-glibc2.2.5
- Python version: 3.7.10
- PyArrow version: 10.0.1
- Pandas version: 1.3.5
| 388 | 36 | `ImageFolder` performs poorly with large datasets
### Describe the bug
While testing image dataset creation, I'm seeing significant performance bottlenecks with imagefolders when scanning a directory structure with large number of images.
## Setup
* Nested directories (5 levels deep)
* 3M+ images
* 1 `metadata.jsonl` file
## Performance Degradation Point 1
Degradation occurs because [`get_data_files_patterns`](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L231-L243) runs the exact same scan for many different types of patterns, and there doesn't seem to be a way to easily limit this. It's controlled by the definition of [`ALL_DEFAULT_PATTERNS`](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L82-L85).
One scan with 3M+ files takes about 10-15 minutes to complete on my setup, so having those extra scans really slows things down – from 10 minutes to 60+. Most of the scans return no matches, but they still take a significant amount of time to complete – hence the poor performance.
As a side effect, when this scan is run on 3M+ image files, Python also consumes up to 12 GB of RAM, which is not ideal.
## Performance Degradation Point 2
The second performance bottleneck is in [`PackagedDatasetModuleFactory.get_module`](https://github.com/huggingface/datasets/blob/d7dfbc83d68e87ba002c5eb2555f7a932e59038a/src/datasets/load.py#L707-L711), which calls `DataFilesDict.from_local_or_remote`.
It runs for a long time (60min+), consuming significant amounts of RAM – even more than the point 1 above. Based on `iostat -d 2`, it performs **zero** disk operations, which to me suggests that there is a code based bottleneck there that could be sorted out.
### Steps to reproduce the bug
```python
from datasets import load_dataset
import os
import huggingface_hub
dataset = load_dataset(
'imagefolder',
data_dir='/some/path',
# just to spell it out:
split=None,
drop_labels=True,
keep_in_memory=False
)
dataset.push_to_hub('account/dataset', private=True)
```
### Expected behavior
While it's certainly possible to write a custom loader to replace `ImageFolder` with, it'd be great if the off-the-shelf `ImageFolder` would by default have a setup that can scale to large datasets.
Or perhaps there could be a dedicated loader just for large datasets that trades off flexibility for performance? As in, maybe you have to define explicitly how you want it to work rather than it trying to guess your data structure like `_get_data_files_patterns()` does?
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-4.14.296-222.539.amzn2.x86_64-x86_64-with-glibc2.2.5
- Python version: 3.7.10
- PyArrow version: 10.0.1
- Pandas version: 1.3.5
@lhoestq Thanks!
Perhaps it'd be worth adding a note on the documentation that `ImageFolder` is not intended for large datasets? This limitation is not intuitively obvious to someone who has not used it before, I think. | [
-1.1987686157226562,
-0.9523312449455261,
-0.7291271686553955,
1.4155699014663696,
-0.10784557461738586,
-1.2535969018936157,
0.13453370332717896,
-1.0448516607284546,
1.6751487255096436,
-0.7176129817962646,
0.2097993642091751,
-1.6848515272140503,
-0.031679801642894745,
-0.5680491328239441,
-0.7604201436042786,
-0.8117397427558899,
-0.3632366955280304,
-0.8422197699546814,
1.0110578536987305,
2.56500244140625,
1.1565641164779663,
-1.3625580072402954,
2.762115240097046,
0.6857589483261108,
-0.28547489643096924,
-0.9744250178337097,
0.5024436712265015,
0.031058577820658684,
-1.2449452877044678,
-0.4820021688938141,
-0.908318817615509,
-0.013631565496325493,
-0.4945812523365021,
-0.48344847559928894,
0.07545427978038788,
0.3770267069339752,
-0.2733464539051056,
-0.43378809094429016,
-0.5833569169044495,
-0.7409098744392395,
0.4212545156478882,
-0.37142494320869446,
0.9763467311859131,
-0.2796773910522461,
1.8211437463760376,
-0.5394665598869324,
0.35357657074928284,
0.7005969882011414,
1.3957922458648682,
0.1378600299358368,
0.009137297049164772,
0.2830384075641632,
0.3798503577709198,
-0.017592255026102066,
0.4970163106918335,
1.2197613716125488,
0.6773305535316467,
0.5163363814353943,
0.7515886425971985,
-2.1851933002471924,
1.3849453926086426,
-0.961472749710083,
0.3455067574977875,
1.3625903129577637,
-0.903281569480896,
0.4457896649837494,
-1.7955392599105835,
-0.040033258497714996,
0.5694410800933838,
-2.2800331115722656,
0.20105114579200745,
-1.275713562965393,
-0.5347474217414856,
0.9266427159309387,
0.25470733642578125,
-1.1908729076385498,
0.19641852378845215,
-0.5661375522613525,
1.0900630950927734,
0.46153968572616577,
1.1798632144927979,
-1.6761443614959717,
-0.06584586203098297,
-0.23014141619205475,
0.14921459555625916,
-1.3209257125854492,
-1.595660924911499,
0.542289137840271,
0.6930586695671082,
0.6021496057510376,
-0.12311775237321854,
0.9912225604057312,
-0.9945627450942993,
0.776050865650177,
-0.9564720392227173,
-1.648686170578003,
-1.3900209665298462,
-2.3090877532958984,
-2.2908775806427,
0.8158976435661316,
-0.4335991144180298,
-0.4862958788871765,
2.013563394546509,
-0.9577487111091614,
-1.7878844738006592,
1.044012188911438,
0.30283936858177185,
-0.014443967491388321,
2.3965423107147217,
0.2578030824661255,
-0.7008383870124817,
0.37277236580848694,
-0.7118238210678101,
0.7990707755088806,
-0.48716267943382263,
1.361850619316101,
0.4245932698249817,
-1.0225874185562134,
1.5542793273925781,
-0.47280967235565186,
0.5633533000946045,
-0.6902318596839905,
-0.4827202260494232,
-0.7779025435447693,
0.39678293466567993,
1.9249732494354248,
-0.3628256618976593,
1.581390380859375,
-0.3924769163131714,
-1.5956002473831177,
-1.6088356971740723,
0.8234825134277344,
0.5111662149429321,
-0.755075991153717,
0.06967681646347046,
-0.45805996656417847,
0.09540189057588577,
-0.05247940123081207,
1.073496699333191,
1.2293879985809326,
0.6633211374282837,
-0.3070679008960724,
-0.8462377190589905,
0.25477126240730286,
-0.15695184469223022,
-0.6589681506156921,
-1.8211324214935303,
-0.3136248290538788,
0.19980530440807343,
0.6289001107215881,
-1.2294514179229736,
1.7238882780075073,
0.8582556843757629,
1.9889066219329834,
0.9748186469078064,
-0.40407201647758484,
1.535585880279541,
0.028765441849827766,
1.8477026224136353,
-0.5623294115066528,
0.6596143245697021,
-0.36008507013320923,
-1.1504650115966797,
0.8202729225158691,
-0.39001187682151794,
-2.0191054344177246,
-0.6806597113609314,
-0.8353055119514465,
-0.2081240713596344,
-0.738273561000824,
0.869735062122345,
-0.2671412527561188,
-1.3503459692001343,
0.20698077976703644,
-0.7053282260894775,
0.21287256479263306,
-1.2824362516403198,
0.25878942012786865,
0.7957356572151184,
-0.6332852840423584,
-0.01098377164453268,
-0.23923084139823914,
-1.2777934074401855,
-0.43878597021102905,
0.3124922513961792,
1.9040290117263794,
-0.6519291996955872,
0.9211835861206055,
1.0243719816207886,
-0.7239033579826355,
0.0862872302532196,
0.3245079219341278,
-0.33143866062164307,
0.8566965460777283,
-1.0828018188476562,
-0.34337466955184937,
1.1778498888015747,
-0.2193567007780075,
-0.5474371910095215,
1.4000358581542969,
0.7951518893241882,
-1.067435383796692,
-0.22408807277679443,
-0.13444872200489044,
-0.7985464334487915,
0.005551910027861595,
-1.571005940437317,
-0.13107232749462128,
0.3957907259464264,
-1.436417579650879,
-0.4487735331058502,
-0.2998729348182678,
1.3124709129333496,
-0.13134320080280304,
1.4575259685516357,
-0.294208288192749,
-0.18766184151172638,
-0.3246583938598633,
-0.3936536908149719,
0.13591518998146057,
-0.2633187770843506,
-0.6009794473648071,
0.23726773262023926,
-0.8297565579414368,
0.3533351719379425,
1.467668890953064,
0.36185404658317566,
0.03407946974039078,
0.5118630528450012,
1.0935924053192139,
0.3068910837173462,
-0.06715560704469681,
-0.8803109526634216,
-1.556384563446045,
2.0022692680358887,
-1.444763422012329,
1.9656391143798828,
0.8657965064048767,
0.01393870823085308,
-1.719530463218689,
-1.88312828540802,
1.3407732248306274,
1.1419835090637207,
2.3764290809631348,
0.5443154573440552,
0.3919289708137512,
-0.8384494185447693,
-0.7245517373085022,
0.24733686447143555,
-1.009238600730896,
-0.7090588212013245,
0.15267224609851837,
2.387683153152466,
1.7935256958007812,
-0.5129082798957825,
-0.22221556305885315,
-1.0071585178375244,
1.3634015321731567,
-0.20241615176200867,
0.21041987836360931,
2.019353151321411,
-0.29664286971092224,
-1.0397381782531738,
1.2397671937942505,
-2.3526697158813477,
0.23502527177333832,
1.9421800374984741,
0.2546750605106354,
0.11524029821157455,
-1.48969566822052,
-0.6155195832252502,
-0.3051900565624237,
-0.37842562794685364,
-1.2069272994995117,
0.5370818376541138,
-0.25465795397758484,
-0.8706797361373901,
-1.5430396795272827,
0.1276734322309494,
-1.150719165802002,
-1.6959316730499268,
0.30459412932395935,
1.8612086772918701,
2.0562474727630615,
-0.7599174976348877,
1.4781426191329956,
-0.2507694363594055,
0.09140486270189285,
1.2372806072235107,
1.2449817657470703,
3.1471006870269775,
1.860787034034729,
-1.22991943359375,
0.687173068523407,
-0.1361372023820877,
-0.48597586154937744,
1.0990809202194214,
-1.1129027605056763,
1.275093913078308,
-0.15610453486442566,
-1.2424616813659668,
-1.2831066846847534,
1.0074543952941895,
0.5681395530700684,
0.03768693655729294,
-0.5075231790542603,
1.2098411321640015,
0.053047508001327515,
1.3732295036315918,
0.6387536525726318,
-0.3985544741153717,
0.6323555111885071,
-0.3309745490550995,
-0.49158090353012085,
1.568381428718567,
0.17207801342010498,
-1.5000666379928589,
-2.330543041229248,
-0.26976847648620605,
-0.8564915060997009,
-0.027790026739239693,
-0.7047935128211975,
-1.0108139514923096,
1.655943512916565,
0.4288749694824219,
-1.2062866687774658,
-0.28575509786605835,
-0.3528767228126526,
-0.5817469954490662,
2.58876895904541,
-1.4435186386108398,
-0.20662525296211243,
-0.9700332283973694,
-0.5320665836334229,
1.5364242792129517,
-1.1732409000396729,
-0.19985631108283997,
-1.026075005531311,
-0.6209923624992371,
-1.2542965412139893,
-0.5507002472877502,
-0.031059201806783676,
-0.9175693988800049,
0.7926787734031677,
0.17498980462551117,
-1.0986353158950806,
-0.3021972179412842,
-0.9202560782432556,
0.9641920924186707,
-0.18614038825035095,
0.1502283811569214,
1.830946922302246,
0.4214562475681305,
-0.45066019892692566,
0.7638344764709473,
1.1908960342407227,
0.5593635439872742,
-0.7072097659111023,
0.1182214543223381,
-0.7302281856536865,
0.2793559432029724,
-1.3822661638259888,
0.3001367449760437,
-2.87145733833313,
0.6232625842094421,
-0.100739486515522,
-0.034678541123867035,
0.013942668214440346,
-1.3025621175765991,
1.090994954109192,
2.635128974914551,
-1.1550941467285156,
0.4688626229763031,
0.3310384452342987,
1.2065634727478027,
-1.622351050376892,
0.3092776834964752,
-0.4283754825592041,
2.1168978214263916,
0.14986911416053772,
1.2372300624847412,
-0.5505324006080627,
-2.2222490310668945,
0.5131162405014038,
-1.2574483156204224,
-1.0671212673187256,
0.7633329033851624,
-0.8304610252380371,
0.042857661843299866,
-1.473252534866333,
-0.1988133043050766,
-0.8736928701400757,
-1.3015496730804443,
0.7210741639137268,
0.07328521460294724,
0.4642467200756073,
-0.6033036708831787,
0.3533036410808563,
-2.1339268684387207,
-1.3669732809066772,
-0.2046959102153778,
-0.9593135118484497,
0.5418378114700317,
-0.3548514246940613,
0.6590990424156189,
-0.14504946768283844,
0.07292431592941284,
0.3060327470302582,
1.4361920356750488,
3.3609113693237305,
0.18282146751880646,
0.348190575838089,
-0.15910331904888153,
-0.9327791333198547,
1.358174204826355,
0.9440640807151794,
-0.10242068022489548,
-0.538489580154419,
-1.0341371297836304,
1.3012858629226685,
1.9831596612930298,
1.1219757795333862,
0.059305787086486816,
-0.8841082453727722,
-0.7804481983184814,
-0.028079770505428314,
0.23404917120933533,
0.44068804383277893,
0.8761116862297058,
0.03386159986257553,
0.1297653615474701,
1.3331537246704102,
1.3216453790664673,
-0.4761923551559448,
0.46974122524261475,
-0.9173282384872437,
-0.41551336646080017,
0.4303571283817291,
0.32647302746772766,
-0.015503738075494766,
0.3868653476238251,
-1.0455883741378784,
-0.2581411302089691,
-0.37708401679992676,
-0.8844358325004578,
-0.7279943823814392,
-0.3821914494037628,
-0.31380870938301086,
1.6055468320846558,
0.12434419244527817,
-0.5145646333694458,
0.01251404732465744,
-0.7223166823387146,
-0.1315268725156784,
-1.0219124555587769,
0.22663231194019318,
-0.14009563624858856,
-0.0903753861784935,
-0.09184659272432327,
1.6883702278137207,
-0.9002898931503296,
-2.1018075942993164,
0.2087586671113968,
0.27201879024505615,
-0.40023529529571533,
0.15910743176937103,
1.7097644805908203,
0.5712316632270813,
1.49466073513031,
1.3578393459320068,
1.0023983716964722,
-0.6663612127304077,
-1.272745132446289,
0.6915575861930847,
0.952318012714386,
-1.4219813346862793,
0.8057746291160583,
-0.09067151695489883,
-0.5361413955688477,
0.6955283880233765,
1.3494057655334473,
0.35806459188461304,
-2.0525450706481934,
0.8318776488304138,
-0.9195453524589539,
0.758571982383728,
0.7365211248397827,
0.8034914135932922,
0.24516984820365906,
0.8310949206352234,
-1.2646244764328003,
-1.1483012437820435,
-0.7981918454170227,
-0.588358461856842,
1.9654433727264404,
-0.212867870926857,
0.5824362635612488,
-0.206589937210083,
-1.3138644695281982,
-0.09060047566890717,
0.7354933619499207,
0.3775797486305237,
-0.4769895076751709,
0.8276432156562805,
-0.6946936845779419,
-1.0668020248413086,
-1.3386616706848145,
-0.4782826006412506,
-1.0228153467178345,
-0.963118851184845,
1.0309319496154785,
0.8356232047080994,
0.39528682827949524,
1.9009369611740112,
0.6155142188072205,
0.24595767259597778,
-2.632662057876587,
0.8890212774276733,
0.3589407801628113,
-0.12597283720970154,
0.8957858681678772,
0.2672434151172638,
1.076223373413086,
0.036214835941791534,
0.5367966890335083,
-2.38789701461792,
2.203787326812744,
-0.13490374386310577,
0.7010863423347473,
-0.00026546791195869446,
-0.1945294439792633,
1.1023155450820923,
0.5510324239730835,
0.5228984951972961,
-1.1850402355194092,
0.7340665459632874,
-0.5977135896682739,
1.182425856590271,
0.8790231943130493,
-0.8815410733222961,
0.029368186369538307,
1.393136739730835,
0.4826183319091797,
-0.4731540083885193,
-0.948982298374176,
-0.9257455468177795,
0.915944516658783,
1.69908607006073,
-0.08453334122896194,
0.046140238642692566,
0.8429842591285706,
0.6686022877693176,
-1.286196231842041,
0.11328315734863281,
-0.7085837125778198,
-0.7110505104064941,
1.6643579006195068,
2.0730438232421875,
-0.14107997715473175,
-0.18278491497039795,
-0.7467538714408875,
-1.2612186670303345,
0.7025742530822754,
0.02319212444126606,
0.12479203194379807,
0.6669862270355225,
-0.7119264602661133,
1.171057939529419,
0.7758481502532959,
0.9066086411476135,
0.12133190780878067,
0.3402024209499359,
0.4122304618358612,
-0.38852161169052124,
-1.1516860723495483,
-0.2973109185695648,
-1.128522515296936,
-2.5371594429016113,
0.4368942081928253,
-0.21023793518543243,
-1.520670771598816,
0.020883286371827126,
-1.0021615028381348,
0.9409992098808289,
-0.6279507875442505,
-1.0579146146774292,
-1.5342954397201538,
0.3128803074359894,
-0.12422335147857666,
0.9614083766937256,
-1.6460485458374023,
-0.1114950031042099,
1.1753162145614624,
0.8872116208076477,
-0.5440047383308411,
1.0027865171432495,
0.23868046700954437,
1.0030511617660522,
0.890252947807312,
-0.3393230438232422,
0.47810640931129456,
0.10798700898885727,
-1.3449971675872803,
0.44633054733276367,
1.1745468378067017,
0.23412880301475525,
1.4378511905670166,
-0.5226393938064575,
0.0474911630153656,
0.46224600076675415,
-0.479052871465683,
-0.47609174251556396,
-0.38913819193840027,
0.6715904474258423,
0.016085676848888397,
-0.945014238357544,
0.03523080796003342,
-0.11598924547433853,
-0.2303251028060913,
0.20909659564495087,
-1.497475504875183,
-0.22740764915943146,
-0.39955151081085205,
-0.5579249858856201,
-1.2534430027008057,
0.02511432208120823,
1.3365182876586914,
-0.7361197471618652,
-0.25126412510871887,
0.49576085805892944,
0.4198009669780731,
0.4999253749847412,
0.6372053027153015,
-0.6833252310752869,
-0.3462962508201599,
-0.25936055183410645,
-0.332622766494751,
0.2966495454311371,
1.242931604385376,
-0.1365988701581955,
-0.9591178894042969,
0.6862004399299622,
-0.4280390739440918,
0.06621113419532776,
1.945971131324768,
0.10536374896764755,
-0.8425187468528748,
0.3208896815776825,
-0.7253879904747009,
1.9084773063659668,
1.6898671388626099,
1.34648859500885,
-0.09727431833744049,
-0.9430113434791565,
0.6399434208869934,
-0.2458273023366928,
-0.323761522769928,
0.9632296562194824,
0.43877658247947693,
-0.20112743973731995,
-1.4482983350753784,
0.600851833820343,
1.2957431077957153,
-0.8550722002983093,
-0.7844461798667908,
0.07494184374809265,
-0.8186169266700745,
1.1075817346572876,
0.6615756154060364,
0.3196457028388977,
0.22050878405570984,
1.6390093564987183,
0.7171571850776672,
-0.46682700514793396,
0.5875597596168518,
0.44305530190467834,
-0.17173756659030914,
-2.1554479598999023,
-1.0991240739822388,
0.2555108070373535,
-0.3533197045326233,
-1.5326833724975586,
1.3100335597991943,
-1.1326279640197754,
-0.9601644277572632,
0.4929999113082886,
0.17415045201778412,
1.3937101364135742,
0.3371472656726837,
1.664671540260315,
2.1366782188415527,
0.8866225481033325,
0.29877153038978577,
1.2929203510284424,
-0.1067061722278595,
-0.4491184949874878,
1.8168152570724487,
-0.46066251397132874,
0.5536212921142578,
1.0664622783660889,
-0.443820595741272,
-1.1226438283920288,
-0.8096802234649658,
-1.1901723146438599,
-0.6268879771232605,
1.1852872371673584,
0.07742109149694443,
-1.0515846014022827,
0.27634862065315247,
1.6350401639938354,
0.11030136793851852,
-0.29876965284347534,
0.6475215554237366,
0.47834399342536926,
-0.7425108551979065,
-0.08719883114099503,
-0.9152817726135254,
0.46343791484832764,
-0.1557590365409851,
-0.3229202330112457,
0.32194212079048157,
0.5428934097290039,
1.2618337869644165,
-0.033326104283332825,
0.06967104971408844,
1.1577653884887695,
-1.4338163137435913,
1.4936647415161133,
-0.6593108177185059,
0.259798526763916,
-2.401299476623535,
1.447013258934021,
-0.7491825819015503,
1.8967461585998535,
-2.616204261779785,
0.40566208958625793,
-0.6234151124954224,
-0.45409777760505676,
0.29018738865852356,
-0.31948044896125793,
0.1634579449892044,
-0.11700745671987534,
-1.0727683305740356,
-0.09283940494060516,
-0.7879289388656616,
0.6209767460823059,
1.144593596458435,
1.3930552005767822,
-1.064274549484253,
-0.2367936372756958,
-1.7914565801620483,
-0.20156770944595337,
-0.7012277245521545,
0.3092815577983856,
-1.9803693294525146,
-0.2171744704246521,
-1.9199434518814087,
-2.3584508895874023,
-1.387844443321228,
-0.7863142490386963,
1.0351837873458862,
0.10001092404127121,
-0.885564923286438,
1.189740538597107,
-0.4171150326728821,
-1.860973596572876,
1.071312427520752,
-2.145212411880493
] |
https://github.com/huggingface/datasets/issues/5317 | `ImageFolder` performs poorly with large datasets | Thanks for the feedback @salieri! I opened #5329 to make it clear `ImageFolder` is not intended for large datasets. Please feel free to comment if you have any other feedback! 🙂 | ### Describe the bug
While testing image dataset creation, I'm seeing significant performance bottlenecks with imagefolders when scanning a directory structure with large number of images.
## Setup
* Nested directories (5 levels deep)
* 3M+ images
* 1 `metadata.jsonl` file
## Performance Degradation Point 1
Degradation occurs because [`get_data_files_patterns`](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L231-L243) runs the exact same scan for many different types of patterns, and there doesn't seem to be a way to easily limit this. It's controlled by the definition of [`ALL_DEFAULT_PATTERNS`](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L82-L85).
One scan with 3M+ files takes about 10-15 minutes to complete on my setup, so having those extra scans really slows things down – from 10 minutes to 60+. Most of the scans return no matches, but they still take a significant amount of time to complete – hence the poor performance.
As a side effect, when this scan is run on 3M+ image files, Python also consumes up to 12 GB of RAM, which is not ideal.
## Performance Degradation Point 2
The second performance bottleneck is in [`PackagedDatasetModuleFactory.get_module`](https://github.com/huggingface/datasets/blob/d7dfbc83d68e87ba002c5eb2555f7a932e59038a/src/datasets/load.py#L707-L711), which calls `DataFilesDict.from_local_or_remote`.
It runs for a long time (60min+), consuming significant amounts of RAM – even more than the point 1 above. Based on `iostat -d 2`, it performs **zero** disk operations, which to me suggests that there is a code based bottleneck there that could be sorted out.
### Steps to reproduce the bug
```python
from datasets import load_dataset
import os
import huggingface_hub
dataset = load_dataset(
'imagefolder',
data_dir='/some/path',
# just to spell it out:
split=None,
drop_labels=True,
keep_in_memory=False
)
dataset.push_to_hub('account/dataset', private=True)
```
### Expected behavior
While it's certainly possible to write a custom loader to replace `ImageFolder` with, it'd be great if the off-the-shelf `ImageFolder` would by default have a setup that can scale to large datasets.
Or perhaps there could be a dedicated loader just for large datasets that trades off flexibility for performance? As in, maybe you have to define explicitly how you want it to work rather than it trying to guess your data structure like `_get_data_files_patterns()` does?
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-4.14.296-222.539.amzn2.x86_64-x86_64-with-glibc2.2.5
- Python version: 3.7.10
- PyArrow version: 10.0.1
- Pandas version: 1.3.5
| 388 | 31 | `ImageFolder` performs poorly with large datasets
### Describe the bug
While testing image dataset creation, I'm seeing significant performance bottlenecks with imagefolders when scanning a directory structure with large number of images.
## Setup
* Nested directories (5 levels deep)
* 3M+ images
* 1 `metadata.jsonl` file
## Performance Degradation Point 1
Degradation occurs because [`get_data_files_patterns`](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L231-L243) runs the exact same scan for many different types of patterns, and there doesn't seem to be a way to easily limit this. It's controlled by the definition of [`ALL_DEFAULT_PATTERNS`](https://github.com/huggingface/datasets/blob/main/src/datasets/data_files.py#L82-L85).
One scan with 3M+ files takes about 10-15 minutes to complete on my setup, so having those extra scans really slows things down – from 10 minutes to 60+. Most of the scans return no matches, but they still take a significant amount of time to complete – hence the poor performance.
As a side effect, when this scan is run on 3M+ image files, Python also consumes up to 12 GB of RAM, which is not ideal.
## Performance Degradation Point 2
The second performance bottleneck is in [`PackagedDatasetModuleFactory.get_module`](https://github.com/huggingface/datasets/blob/d7dfbc83d68e87ba002c5eb2555f7a932e59038a/src/datasets/load.py#L707-L711), which calls `DataFilesDict.from_local_or_remote`.
It runs for a long time (60min+), consuming significant amounts of RAM – even more than the point 1 above. Based on `iostat -d 2`, it performs **zero** disk operations, which to me suggests that there is a code based bottleneck there that could be sorted out.
### Steps to reproduce the bug
```python
from datasets import load_dataset
import os
import huggingface_hub
dataset = load_dataset(
'imagefolder',
data_dir='/some/path',
# just to spell it out:
split=None,
drop_labels=True,
keep_in_memory=False
)
dataset.push_to_hub('account/dataset', private=True)
```
### Expected behavior
While it's certainly possible to write a custom loader to replace `ImageFolder` with, it'd be great if the off-the-shelf `ImageFolder` would by default have a setup that can scale to large datasets.
Or perhaps there could be a dedicated loader just for large datasets that trades off flexibility for performance? As in, maybe you have to define explicitly how you want it to work rather than it trying to guess your data structure like `_get_data_files_patterns()` does?
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-4.14.296-222.539.amzn2.x86_64-x86_64-with-glibc2.2.5
- Python version: 3.7.10
- PyArrow version: 10.0.1
- Pandas version: 1.3.5
Thanks for the feedback @salieri! I opened #5329 to make it clear `ImageFolder` is not intended for large datasets. Please feel free to comment if you have any other feedback! 🙂 | [
-1.1987686157226562,
-0.9523312449455261,
-0.7291271686553955,
1.4155699014663696,
-0.10784557461738586,
-1.2535969018936157,
0.13453370332717896,
-1.0448516607284546,
1.6751487255096436,
-0.7176129817962646,
0.2097993642091751,
-1.6848515272140503,
-0.031679801642894745,
-0.5680491328239441,
-0.7604201436042786,
-0.8117397427558899,
-0.3632366955280304,
-0.8422197699546814,
1.0110578536987305,
2.56500244140625,
1.1565641164779663,
-1.3625580072402954,
2.762115240097046,
0.6857589483261108,
-0.28547489643096924,
-0.9744250178337097,
0.5024436712265015,
0.031058577820658684,
-1.2449452877044678,
-0.4820021688938141,
-0.908318817615509,
-0.013631565496325493,
-0.4945812523365021,
-0.48344847559928894,
0.07545427978038788,
0.3770267069339752,
-0.2733464539051056,
-0.43378809094429016,
-0.5833569169044495,
-0.7409098744392395,
0.4212545156478882,
-0.37142494320869446,
0.9763467311859131,
-0.2796773910522461,
1.8211437463760376,
-0.5394665598869324,
0.35357657074928284,
0.7005969882011414,
1.3957922458648682,
0.1378600299358368,
0.009137297049164772,
0.2830384075641632,
0.3798503577709198,
-0.017592255026102066,
0.4970163106918335,
1.2197613716125488,
0.6773305535316467,
0.5163363814353943,
0.7515886425971985,
-2.1851933002471924,
1.3849453926086426,
-0.961472749710083,
0.3455067574977875,
1.3625903129577637,
-0.903281569480896,
0.4457896649837494,
-1.7955392599105835,
-0.040033258497714996,
0.5694410800933838,
-2.2800331115722656,
0.20105114579200745,
-1.275713562965393,
-0.5347474217414856,
0.9266427159309387,
0.25470733642578125,
-1.1908729076385498,
0.19641852378845215,
-0.5661375522613525,
1.0900630950927734,
0.46153968572616577,
1.1798632144927979,
-1.6761443614959717,
-0.06584586203098297,
-0.23014141619205475,
0.14921459555625916,
-1.3209257125854492,
-1.595660924911499,
0.542289137840271,
0.6930586695671082,
0.6021496057510376,
-0.12311775237321854,
0.9912225604057312,
-0.9945627450942993,
0.776050865650177,
-0.9564720392227173,
-1.648686170578003,
-1.3900209665298462,
-2.3090877532958984,
-2.2908775806427,
0.8158976435661316,
-0.4335991144180298,
-0.4862958788871765,
2.013563394546509,
-0.9577487111091614,
-1.7878844738006592,
1.044012188911438,
0.30283936858177185,
-0.014443967491388321,
2.3965423107147217,
0.2578030824661255,
-0.7008383870124817,
0.37277236580848694,
-0.7118238210678101,
0.7990707755088806,
-0.48716267943382263,
1.361850619316101,
0.4245932698249817,
-1.0225874185562134,
1.5542793273925781,
-0.47280967235565186,
0.5633533000946045,
-0.6902318596839905,
-0.4827202260494232,
-0.7779025435447693,
0.39678293466567993,
1.9249732494354248,
-0.3628256618976593,
1.581390380859375,
-0.3924769163131714,
-1.5956002473831177,
-1.6088356971740723,
0.8234825134277344,
0.5111662149429321,
-0.755075991153717,
0.06967681646347046,
-0.45805996656417847,
0.09540189057588577,
-0.05247940123081207,
1.073496699333191,
1.2293879985809326,
0.6633211374282837,
-0.3070679008960724,
-0.8462377190589905,
0.25477126240730286,
-0.15695184469223022,
-0.6589681506156921,
-1.8211324214935303,
-0.3136248290538788,
0.19980530440807343,
0.6289001107215881,
-1.2294514179229736,
1.7238882780075073,
0.8582556843757629,
1.9889066219329834,
0.9748186469078064,
-0.40407201647758484,
1.535585880279541,
0.028765441849827766,
1.8477026224136353,
-0.5623294115066528,
0.6596143245697021,
-0.36008507013320923,
-1.1504650115966797,
0.8202729225158691,
-0.39001187682151794,
-2.0191054344177246,
-0.6806597113609314,
-0.8353055119514465,
-0.2081240713596344,
-0.738273561000824,
0.869735062122345,
-0.2671412527561188,
-1.3503459692001343,
0.20698077976703644,
-0.7053282260894775,
0.21287256479263306,
-1.2824362516403198,
0.25878942012786865,
0.7957356572151184,
-0.6332852840423584,
-0.01098377164453268,
-0.23923084139823914,
-1.2777934074401855,
-0.43878597021102905,
0.3124922513961792,
1.9040290117263794,
-0.6519291996955872,
0.9211835861206055,
1.0243719816207886,
-0.7239033579826355,
0.0862872302532196,
0.3245079219341278,
-0.33143866062164307,
0.8566965460777283,
-1.0828018188476562,
-0.34337466955184937,
1.1778498888015747,
-0.2193567007780075,
-0.5474371910095215,
1.4000358581542969,
0.7951518893241882,
-1.067435383796692,
-0.22408807277679443,
-0.13444872200489044,
-0.7985464334487915,
0.005551910027861595,
-1.571005940437317,
-0.13107232749462128,
0.3957907259464264,
-1.436417579650879,
-0.4487735331058502,
-0.2998729348182678,
1.3124709129333496,
-0.13134320080280304,
1.4575259685516357,
-0.294208288192749,
-0.18766184151172638,
-0.3246583938598633,
-0.3936536908149719,
0.13591518998146057,
-0.2633187770843506,
-0.6009794473648071,
0.23726773262023926,
-0.8297565579414368,
0.3533351719379425,
1.467668890953064,
0.36185404658317566,
0.03407946974039078,
0.5118630528450012,
1.0935924053192139,
0.3068910837173462,
-0.06715560704469681,
-0.8803109526634216,
-1.556384563446045,
2.0022692680358887,
-1.444763422012329,
1.9656391143798828,
0.8657965064048767,
0.01393870823085308,
-1.719530463218689,
-1.88312828540802,
1.3407732248306274,
1.1419835090637207,
2.3764290809631348,
0.5443154573440552,
0.3919289708137512,
-0.8384494185447693,
-0.7245517373085022,
0.24733686447143555,
-1.009238600730896,
-0.7090588212013245,
0.15267224609851837,
2.387683153152466,
1.7935256958007812,
-0.5129082798957825,
-0.22221556305885315,
-1.0071585178375244,
1.3634015321731567,
-0.20241615176200867,
0.21041987836360931,
2.019353151321411,
-0.29664286971092224,
-1.0397381782531738,
1.2397671937942505,
-2.3526697158813477,
0.23502527177333832,
1.9421800374984741,
0.2546750605106354,
0.11524029821157455,
-1.48969566822052,
-0.6155195832252502,
-0.3051900565624237,
-0.37842562794685364,
-1.2069272994995117,
0.5370818376541138,
-0.25465795397758484,
-0.8706797361373901,
-1.5430396795272827,
0.1276734322309494,
-1.150719165802002,
-1.6959316730499268,
0.30459412932395935,
1.8612086772918701,
2.0562474727630615,
-0.7599174976348877,
1.4781426191329956,
-0.2507694363594055,
0.09140486270189285,
1.2372806072235107,
1.2449817657470703,
3.1471006870269775,
1.860787034034729,
-1.22991943359375,
0.687173068523407,
-0.1361372023820877,
-0.48597586154937744,
1.0990809202194214,
-1.1129027605056763,
1.275093913078308,
-0.15610453486442566,
-1.2424616813659668,
-1.2831066846847534,
1.0074543952941895,
0.5681395530700684,
0.03768693655729294,
-0.5075231790542603,
1.2098411321640015,
0.053047508001327515,
1.3732295036315918,
0.6387536525726318,
-0.3985544741153717,
0.6323555111885071,
-0.3309745490550995,
-0.49158090353012085,
1.568381428718567,
0.17207801342010498,
-1.5000666379928589,
-2.330543041229248,
-0.26976847648620605,
-0.8564915060997009,
-0.027790026739239693,
-0.7047935128211975,
-1.0108139514923096,
1.655943512916565,
0.4288749694824219,
-1.2062866687774658,
-0.28575509786605835,
-0.3528767228126526,
-0.5817469954490662,
2.58876895904541,
-1.4435186386108398,
-0.20662525296211243,
-0.9700332283973694,
-0.5320665836334229,
1.5364242792129517,
-1.1732409000396729,
-0.19985631108283997,
-1.026075005531311,
-0.6209923624992371,
-1.2542965412139893,
-0.5507002472877502,
-0.031059201806783676,
-0.9175693988800049,
0.7926787734031677,
0.17498980462551117,
-1.0986353158950806,
-0.3021972179412842,
-0.9202560782432556,
0.9641920924186707,
-0.18614038825035095,
0.1502283811569214,
1.830946922302246,
0.4214562475681305,
-0.45066019892692566,
0.7638344764709473,
1.1908960342407227,
0.5593635439872742,
-0.7072097659111023,
0.1182214543223381,
-0.7302281856536865,
0.2793559432029724,
-1.3822661638259888,
0.3001367449760437,
-2.87145733833313,
0.6232625842094421,
-0.100739486515522,
-0.034678541123867035,
0.013942668214440346,
-1.3025621175765991,
1.090994954109192,
2.635128974914551,
-1.1550941467285156,
0.4688626229763031,
0.3310384452342987,
1.2065634727478027,
-1.622351050376892,
0.3092776834964752,
-0.4283754825592041,
2.1168978214263916,
0.14986911416053772,
1.2372300624847412,
-0.5505324006080627,
-2.2222490310668945,
0.5131162405014038,
-1.2574483156204224,
-1.0671212673187256,
0.7633329033851624,
-0.8304610252380371,
0.042857661843299866,
-1.473252534866333,
-0.1988133043050766,
-0.8736928701400757,
-1.3015496730804443,
0.7210741639137268,
0.07328521460294724,
0.4642467200756073,
-0.6033036708831787,
0.3533036410808563,
-2.1339268684387207,
-1.3669732809066772,
-0.2046959102153778,
-0.9593135118484497,
0.5418378114700317,
-0.3548514246940613,
0.6590990424156189,
-0.14504946768283844,
0.07292431592941284,
0.3060327470302582,
1.4361920356750488,
3.3609113693237305,
0.18282146751880646,
0.348190575838089,
-0.15910331904888153,
-0.9327791333198547,
1.358174204826355,
0.9440640807151794,
-0.10242068022489548,
-0.538489580154419,
-1.0341371297836304,
1.3012858629226685,
1.9831596612930298,
1.1219757795333862,
0.059305787086486816,
-0.8841082453727722,
-0.7804481983184814,
-0.028079770505428314,
0.23404917120933533,
0.44068804383277893,
0.8761116862297058,
0.03386159986257553,
0.1297653615474701,
1.3331537246704102,
1.3216453790664673,
-0.4761923551559448,
0.46974122524261475,
-0.9173282384872437,
-0.41551336646080017,
0.4303571283817291,
0.32647302746772766,
-0.015503738075494766,
0.3868653476238251,
-1.0455883741378784,
-0.2581411302089691,
-0.37708401679992676,
-0.8844358325004578,
-0.7279943823814392,
-0.3821914494037628,
-0.31380870938301086,
1.6055468320846558,
0.12434419244527817,
-0.5145646333694458,
0.01251404732465744,
-0.7223166823387146,
-0.1315268725156784,
-1.0219124555587769,
0.22663231194019318,
-0.14009563624858856,
-0.0903753861784935,
-0.09184659272432327,
1.6883702278137207,
-0.9002898931503296,
-2.1018075942993164,
0.2087586671113968,
0.27201879024505615,
-0.40023529529571533,
0.15910743176937103,
1.7097644805908203,
0.5712316632270813,
1.49466073513031,
1.3578393459320068,
1.0023983716964722,
-0.6663612127304077,
-1.272745132446289,
0.6915575861930847,
0.952318012714386,
-1.4219813346862793,
0.8057746291160583,
-0.09067151695489883,
-0.5361413955688477,
0.6955283880233765,
1.3494057655334473,
0.35806459188461304,
-2.0525450706481934,
0.8318776488304138,
-0.9195453524589539,
0.758571982383728,
0.7365211248397827,
0.8034914135932922,
0.24516984820365906,
0.8310949206352234,
-1.2646244764328003,
-1.1483012437820435,
-0.7981918454170227,
-0.588358461856842,
1.9654433727264404,
-0.212867870926857,
0.5824362635612488,
-0.206589937210083,
-1.3138644695281982,
-0.09060047566890717,
0.7354933619499207,
0.3775797486305237,
-0.4769895076751709,
0.8276432156562805,
-0.6946936845779419,
-1.0668020248413086,
-1.3386616706848145,
-0.4782826006412506,
-1.0228153467178345,
-0.963118851184845,
1.0309319496154785,
0.8356232047080994,
0.39528682827949524,
1.9009369611740112,
0.6155142188072205,
0.24595767259597778,
-2.632662057876587,
0.8890212774276733,
0.3589407801628113,
-0.12597283720970154,
0.8957858681678772,
0.2672434151172638,
1.076223373413086,
0.036214835941791534,
0.5367966890335083,
-2.38789701461792,
2.203787326812744,
-0.13490374386310577,
0.7010863423347473,
-0.00026546791195869446,
-0.1945294439792633,
1.1023155450820923,
0.5510324239730835,
0.5228984951972961,
-1.1850402355194092,
0.7340665459632874,
-0.5977135896682739,
1.182425856590271,
0.8790231943130493,
-0.8815410733222961,
0.029368186369538307,
1.393136739730835,
0.4826183319091797,
-0.4731540083885193,
-0.948982298374176,
-0.9257455468177795,
0.915944516658783,
1.69908607006073,
-0.08453334122896194,
0.046140238642692566,
0.8429842591285706,
0.6686022877693176,
-1.286196231842041,
0.11328315734863281,
-0.7085837125778198,
-0.7110505104064941,
1.6643579006195068,
2.0730438232421875,
-0.14107997715473175,
-0.18278491497039795,
-0.7467538714408875,
-1.2612186670303345,
0.7025742530822754,
0.02319212444126606,
0.12479203194379807,
0.6669862270355225,
-0.7119264602661133,
1.171057939529419,
0.7758481502532959,
0.9066086411476135,
0.12133190780878067,
0.3402024209499359,
0.4122304618358612,
-0.38852161169052124,
-1.1516860723495483,
-0.2973109185695648,
-1.128522515296936,
-2.5371594429016113,
0.4368942081928253,
-0.21023793518543243,
-1.520670771598816,
0.020883286371827126,
-1.0021615028381348,
0.9409992098808289,
-0.6279507875442505,
-1.0579146146774292,
-1.5342954397201538,
0.3128803074359894,
-0.12422335147857666,
0.9614083766937256,
-1.6460485458374023,
-0.1114950031042099,
1.1753162145614624,
0.8872116208076477,
-0.5440047383308411,
1.0027865171432495,
0.23868046700954437,
1.0030511617660522,
0.890252947807312,
-0.3393230438232422,
0.47810640931129456,
0.10798700898885727,
-1.3449971675872803,
0.44633054733276367,
1.1745468378067017,
0.23412880301475525,
1.4378511905670166,
-0.5226393938064575,
0.0474911630153656,
0.46224600076675415,
-0.479052871465683,
-0.47609174251556396,
-0.38913819193840027,
0.6715904474258423,
0.016085676848888397,
-0.945014238357544,
0.03523080796003342,
-0.11598924547433853,
-0.2303251028060913,
0.20909659564495087,
-1.497475504875183,
-0.22740764915943146,
-0.39955151081085205,
-0.5579249858856201,
-1.2534430027008057,
0.02511432208120823,
1.3365182876586914,
-0.7361197471618652,
-0.25126412510871887,
0.49576085805892944,
0.4198009669780731,
0.4999253749847412,
0.6372053027153015,
-0.6833252310752869,
-0.3462962508201599,
-0.25936055183410645,
-0.332622766494751,
0.2966495454311371,
1.242931604385376,
-0.1365988701581955,
-0.9591178894042969,
0.6862004399299622,
-0.4280390739440918,
0.06621113419532776,
1.945971131324768,
0.10536374896764755,
-0.8425187468528748,
0.3208896815776825,
-0.7253879904747009,
1.9084773063659668,
1.6898671388626099,
1.34648859500885,
-0.09727431833744049,
-0.9430113434791565,
0.6399434208869934,
-0.2458273023366928,
-0.323761522769928,
0.9632296562194824,
0.43877658247947693,
-0.20112743973731995,
-1.4482983350753784,
0.600851833820343,
1.2957431077957153,
-0.8550722002983093,
-0.7844461798667908,
0.07494184374809265,
-0.8186169266700745,
1.1075817346572876,
0.6615756154060364,
0.3196457028388977,
0.22050878405570984,
1.6390093564987183,
0.7171571850776672,
-0.46682700514793396,
0.5875597596168518,
0.44305530190467834,
-0.17173756659030914,
-2.1554479598999023,
-1.0991240739822388,
0.2555108070373535,
-0.3533197045326233,
-1.5326833724975586,
1.3100335597991943,
-1.1326279640197754,
-0.9601644277572632,
0.4929999113082886,
0.17415045201778412,
1.3937101364135742,
0.3371472656726837,
1.664671540260315,
2.1366782188415527,
0.8866225481033325,
0.29877153038978577,
1.2929203510284424,
-0.1067061722278595,
-0.4491184949874878,
1.8168152570724487,
-0.46066251397132874,
0.5536212921142578,
1.0664622783660889,
-0.443820595741272,
-1.1226438283920288,
-0.8096802234649658,
-1.1901723146438599,
-0.6268879771232605,
1.1852872371673584,
0.07742109149694443,
-1.0515846014022827,
0.27634862065315247,
1.6350401639938354,
0.11030136793851852,
-0.29876965284347534,
0.6475215554237366,
0.47834399342536926,
-0.7425108551979065,
-0.08719883114099503,
-0.9152817726135254,
0.46343791484832764,
-0.1557590365409851,
-0.3229202330112457,
0.32194212079048157,
0.5428934097290039,
1.2618337869644165,
-0.033326104283332825,
0.06967104971408844,
1.1577653884887695,
-1.4338163137435913,
1.4936647415161133,
-0.6593108177185059,
0.259798526763916,
-2.401299476623535,
1.447013258934021,
-0.7491825819015503,
1.8967461585998535,
-2.616204261779785,
0.40566208958625793,
-0.6234151124954224,
-0.45409777760505676,
0.29018738865852356,
-0.31948044896125793,
0.1634579449892044,
-0.11700745671987534,
-1.0727683305740356,
-0.09283940494060516,
-0.7879289388656616,
0.6209767460823059,
1.144593596458435,
1.3930552005767822,
-1.064274549484253,
-0.2367936372756958,
-1.7914565801620483,
-0.20156770944595337,
-0.7012277245521545,
0.3092815577983856,
-1.9803693294525146,
-0.2171744704246521,
-1.9199434518814087,
-2.3584508895874023,
-1.387844443321228,
-0.7863142490386963,
1.0351837873458862,
0.10001092404127121,
-0.885564923286438,
1.189740538597107,
-0.4171150326728821,
-1.860973596572876,
1.071312427520752,
-2.145212411880493
] |
https://github.com/huggingface/datasets/issues/5315 | Adding new splits to a dataset script with existing old splits info in metadata's `dataset_info` fails | EDIT:
I think in this case, the metadata files (either README or JSON) should not be read (i.e. `self.info.splits` should be None).
One idea:
- I think ideally we should set this behavior when we pass `--save_info` to the CLI `test`
- However, currently, the builder is unaware of this: `save_info` arg is not passed to it | ### Describe the bug
If you first create a custom dataset with a specific set of splits, generate metadata with `datasets-cli test ... --save_info`, then change your script to include more splits, it fails.
That's what happened in https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/discussions/2#6385fd1269634850f8ddff48.
### Steps to reproduce the bug
1. create a dataset with a custom split that returns, for example, only `"train"` split in `_splits_generators'`. specifically, if really want to reproduce, copy `https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/blob/main/food_vision_199_classes.py
2. run `datasets-cli test dataset_script.py --save_info --all_configs` - this would generate metadata yaml in `README.md` that would contain info about splits, for example, like this:
```
splits:
- name: train
num_bytes: 2973286
num_examples: 19747
```
3. make changes to your script so that it returns another set of splits, for example, `"train"` and `"test"` (uncomment [these lines](https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/blob/main/food_vision_199_classes.py#L271))
4. run `load_dataset` and get the following error:
```python
Traceback (most recent call last):
File "/home/daniel/code/pytorch/env/bin/datasets-cli", line 8, in <module>
sys.exit(main())
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/commands/datasets_cli.py", line 39, in main
service.run()
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/commands/test.py", line 141, in run
builder.download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 913, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 1356, in _prepare_split
split_info = self.info.splits[split_generator.name]
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/splits.py", line 525, in __getitem__
instructions = make_file_instructions(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/arrow_reader.py", line 111, in make_file_instructions
name2filenames = {
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/arrow_reader.py", line 112, in <dictcomp>
info.name: filenames_for_dataset_split(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/naming.py", line 78, in filenames_for_dataset_split
prefix = filename_prefix_for_split(dataset_name, split)
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/naming.py", line 57, in filename_prefix_for_split
if os.path.basename(name) != name:
File "/home/daniel/code/pytorch/env/lib/python3.8/posixpath.py", line 143, in basename
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
5. bonus: try to regenerate metadata in `README.md` with `datasets-cli` as in step 2 and get the same error.
This is because `dataset.info.splits` contains only `"train"` split so when we are doing `self.info.splits[split_generator.name]` it tries to infer smth like `info.splits['train[50%]']` and that's not the case and it fails.
### Expected behavior
to be discussed?
This can be solved by removing splits information from metadata file first. But I wonder if there is a better way.
### Environment info
- Datasets version: 2.7.1
- Python version: 3.8.13 | 390 | 57 | Adding new splits to a dataset script with existing old splits info in metadata's `dataset_info` fails
### Describe the bug
If you first create a custom dataset with a specific set of splits, generate metadata with `datasets-cli test ... --save_info`, then change your script to include more splits, it fails.
That's what happened in https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/discussions/2#6385fd1269634850f8ddff48.
### Steps to reproduce the bug
1. create a dataset with a custom split that returns, for example, only `"train"` split in `_splits_generators'`. specifically, if really want to reproduce, copy `https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/blob/main/food_vision_199_classes.py
2. run `datasets-cli test dataset_script.py --save_info --all_configs` - this would generate metadata yaml in `README.md` that would contain info about splits, for example, like this:
```
splits:
- name: train
num_bytes: 2973286
num_examples: 19747
```
3. make changes to your script so that it returns another set of splits, for example, `"train"` and `"test"` (uncomment [these lines](https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/blob/main/food_vision_199_classes.py#L271))
4. run `load_dataset` and get the following error:
```python
Traceback (most recent call last):
File "/home/daniel/code/pytorch/env/bin/datasets-cli", line 8, in <module>
sys.exit(main())
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/commands/datasets_cli.py", line 39, in main
service.run()
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/commands/test.py", line 141, in run
builder.download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 913, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 1356, in _prepare_split
split_info = self.info.splits[split_generator.name]
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/splits.py", line 525, in __getitem__
instructions = make_file_instructions(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/arrow_reader.py", line 111, in make_file_instructions
name2filenames = {
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/arrow_reader.py", line 112, in <dictcomp>
info.name: filenames_for_dataset_split(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/naming.py", line 78, in filenames_for_dataset_split
prefix = filename_prefix_for_split(dataset_name, split)
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/naming.py", line 57, in filename_prefix_for_split
if os.path.basename(name) != name:
File "/home/daniel/code/pytorch/env/lib/python3.8/posixpath.py", line 143, in basename
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
5. bonus: try to regenerate metadata in `README.md` with `datasets-cli` as in step 2 and get the same error.
This is because `dataset.info.splits` contains only `"train"` split so when we are doing `self.info.splits[split_generator.name]` it tries to infer smth like `info.splits['train[50%]']` and that's not the case and it fails.
### Expected behavior
to be discussed?
This can be solved by removing splits information from metadata file first. But I wonder if there is a better way.
### Environment info
- Datasets version: 2.7.1
- Python version: 3.8.13
EDIT:
I think in this case, the metadata files (either README or JSON) should not be read (i.e. `self.info.splits` should be None).
One idea:
- I think ideally we should set this behavior when we pass `--save_info` to the CLI `test`
- However, currently, the builder is unaware of this: `save_info` arg is not passed to it | [
-1.113948941230774,
-0.9091671705245972,
-0.6788613200187683,
1.4712458848953247,
-0.11289050430059433,
-1.317491054534912,
0.1464281529188156,
-1.0284781455993652,
1.6395132541656494,
-0.7434434294700623,
0.2930738627910614,
-1.7083076238632202,
-0.017192382365465164,
-0.595932126045227,
-0.7094108462333679,
-0.8526076674461365,
-0.3684728741645813,
-0.8177121877670288,
0.9706290364265442,
2.537369966506958,
1.2658112049102783,
-1.355212926864624,
2.689457416534424,
0.6684607267379761,
-0.24446596205234528,
-0.9788898229598999,
0.5389712452888489,
-0.08282264322042465,
-1.2271537780761719,
-0.42428842186927795,
-0.8807189464569092,
-0.07822823524475098,
-0.6028165221214294,
-0.5115966200828552,
-0.008926651440560818,
0.47438785433769226,
-0.2664680778980255,
-0.3798014223575592,
-0.5777562260627747,
-0.7914740443229675,
0.4598577916622162,
-0.37076234817504883,
0.9268112182617188,
-0.34252625703811646,
1.734237551689148,
-0.6241556406021118,
0.4067089259624481,
0.6889788508415222,
1.296227216720581,
0.17432236671447754,
0.022462189197540283,
0.2096197009086609,
0.3940551280975342,
-0.022901766002178192,
0.5592489838600159,
1.2456820011138916,
0.6975221633911133,
0.5073437094688416,
0.6404529213905334,
-2.296975612640381,
1.2788006067276,
-0.8783553838729858,
0.31547555327415466,
1.3372268676757812,
-0.8417707085609436,
0.3103155195713043,
-1.7982522249221802,
-0.05013785511255264,
0.5802524089813232,
-2.2096476554870605,
0.211829274892807,
-1.2567148208618164,
-0.5280007123947144,
0.9567201733589172,
0.3299415111541748,
-1.1653625965118408,
0.19403722882270813,
-0.3984892666339874,
1.0771868228912354,
0.47243812680244446,
1.1244895458221436,
-1.6311196088790894,
-0.020975559949874878,
-0.24731971323490143,
0.10302722454071045,
-1.26192045211792,
-1.6045327186584473,
0.5528838038444519,
0.6286290884017944,
0.632468044757843,
-0.11628466099500656,
0.9543619751930237,
-1.0461945533752441,
0.7536852359771729,
-0.9992278814315796,
-1.6946934461593628,
-1.3824164867401123,
-2.2997238636016846,
-2.3438313007354736,
0.7508211731910706,
-0.45759323239326477,
-0.4424201250076294,
2.0022177696228027,
-0.9838593006134033,
-1.8008966445922852,
1.0623756647109985,
0.32396936416625977,
0.01105919573456049,
2.332998037338257,
0.2739660143852234,
-0.7834298610687256,
0.4718063473701477,
-0.7095721364021301,
0.7258256673812866,
-0.3632650673389435,
1.3212882280349731,
0.45402953028678894,
-1.020350456237793,
1.6042226552963257,
-0.5267251133918762,
0.6388921737670898,
-0.6963368654251099,
-0.4678749144077301,
-0.7057870030403137,
0.301478773355484,
1.8494471311569214,
-0.3382626175880432,
1.5231571197509766,
-0.30482885241508484,
-1.5738075971603394,
-1.5941107273101807,
0.8632226586341858,
0.4251706898212433,
-0.814560055732727,
0.07567541301250458,
-0.5063331127166748,
0.12114988267421722,
-0.07377059012651443,
1.1247332096099854,
1.2395260334014893,
0.7496079206466675,
-0.3487537205219269,
-0.7997887134552002,
0.2040269523859024,
-0.045860655605793,
-0.7160342335700989,
-1.787602186203003,
-0.2892953157424927,
0.22672538459300995,
0.5893193483352661,
-1.1420586109161377,
1.904377818107605,
0.8528521060943604,
2,
0.9810923933982849,
-0.3432380259037018,
1.4564815759658813,
0.004567592404782772,
1.9072309732437134,
-0.41845157742500305,
0.6230703592300415,
-0.36398178339004517,
-1.2191317081451416,
0.9149640202522278,
-0.3464527130126953,
-2.030447244644165,
-0.7742136120796204,
-0.8273129463195801,
-0.13265663385391235,
-0.7762287259101868,
0.8454888463020325,
-0.21842415630817413,
-1.4401150941848755,
0.0820954293012619,
-0.6681441068649292,
0.15270468592643738,
-1.2540192604064941,
0.24765415489673615,
0.7402269244194031,
-0.7277741432189941,
0.013875910080969334,
-0.24220828711986542,
-1.2925268411636353,
-0.5124236941337585,
0.3072555363178253,
1.9459625482559204,
-0.6925156712532043,
0.8933987617492676,
1.0736209154129028,
-0.702518105506897,
0.1119329184293747,
0.30100080370903015,
-0.3065430223941803,
0.8253740668296814,
-1.099326252937317,
-0.3712056577205658,
1.1871025562286377,
-0.16806764900684357,
-0.7094185948371887,
1.4825584888458252,
0.8146452903747559,
-1.0507681369781494,
-0.18266001343727112,
-0.1973298341035843,
-0.8206263780593872,
0.016869287937879562,
-1.5518832206726074,
-0.09425947815179825,
0.4434417486190796,
-1.472705364227295,
-0.41311994194984436,
-0.18376906216144562,
1.3088557720184326,
-0.17432191967964172,
1.3922051191329956,
-0.3116708993911743,
-0.1396428495645523,
-0.3332803547382355,
-0.44374337792396545,
0.1229284256696701,
-0.1838768571615219,
-0.6588330864906311,
0.2057964950799942,
-0.8347999453544617,
0.33401718735694885,
1.4788278341293335,
0.2144545167684555,
0.07494968175888062,
0.532925009727478,
1.1231690645217896,
0.3481293320655823,
-0.027858611196279526,
-0.8946638107299805,
-1.5138912200927734,
1.966314435005188,
-1.4178123474121094,
1.9403315782546997,
0.7733061909675598,
-0.06701803207397461,
-1.817326307296753,
-1.9175899028778076,
1.3359556198120117,
1.0984143018722534,
2.373720169067383,
0.5178199410438538,
0.44269922375679016,
-0.8334261775016785,
-0.709602952003479,
0.32733267545700073,
-0.9306362867355347,
-0.6916800141334534,
0.2081962525844574,
2.3974618911743164,
1.790934681892395,
-0.5212971568107605,
-0.24122834205627441,
-0.948392927646637,
1.3128454685211182,
-0.2581348717212677,
0.2508552372455597,
2.088996648788452,
-0.33455511927604675,
-1.0155614614486694,
1.3666273355484009,
-2.3832497596740723,
0.2653841972351074,
2.0936484336853027,
0.1911899298429489,
0.12185411155223846,
-1.4140503406524658,
-0.6053347587585449,
-0.2503507733345032,
-0.4422833025455475,
-1.2081135511398315,
0.5672512054443359,
-0.22289136052131653,
-0.8230440616607666,
-1.4137811660766602,
0.14770404994487762,
-1.097941517829895,
-1.7346781492233276,
0.2735934257507324,
1.8566434383392334,
2.0945322513580322,
-0.7805976867675781,
1.4513264894485474,
-0.3048383295536041,
0.08606855571269989,
1.2942724227905273,
1.2791833877563477,
3.158318042755127,
1.8736495971679688,
-1.2948853969573975,
0.7931357622146606,
-0.23718960583209991,
-0.4821226894855499,
1.150900959968567,
-1.1775720119476318,
1.1157710552215576,
-0.3002426326274872,
-1.2596935033798218,
-1.2953822612762451,
1.0071134567260742,
0.4960069954395294,
0.05883016437292099,
-0.5168313384056091,
1.2734832763671875,
0.14266709983348846,
1.353788137435913,
0.5837499499320984,
-0.3704174757003784,
0.5524489879608154,
-0.3682670295238495,
-0.5316305756568909,
1.5789061784744263,
0.22188717126846313,
-1.417212963104248,
-2.274916172027588,
-0.20085710287094116,
-0.9726083874702454,
-0.10399608314037323,
-0.6543123722076416,
-0.9660189151763916,
1.5797563791275024,
0.41349244117736816,
-1.2628380060195923,
-0.2559027671813965,
-0.2950667142868042,
-0.49139678478240967,
2.6892330646514893,
-1.3785922527313232,
-0.20020601153373718,
-1.0171185731887817,
-0.5656989812850952,
1.6734364032745361,
-1.188193678855896,
-0.2018449604511261,
-1.05503511428833,
-0.5652341842651367,
-1.2802871465682983,
-0.48907482624053955,
0.05754368007183075,
-0.9312760829925537,
0.880435049533844,
0.15740549564361572,
-1.1875849962234497,
-0.32492539286613464,
-0.9189079999923706,
1.0155065059661865,
-0.16358007490634918,
0.17190930247306824,
1.8225692510604858,
0.3316807746887207,
-0.436798095703125,
0.7321920990943909,
1.1581894159317017,
0.6089037656784058,
-0.6154471635818481,
0.1641245037317276,
-0.6476600766181946,
0.40193822979927063,
-1.4128867387771606,
0.22179606556892395,
-2.8863813877105713,
0.6867972016334534,
-0.11678127944469452,
-0.10824467241764069,
-0.08872766047716141,
-1.3939158916473389,
1.0025027990341187,
2.548323631286621,
-1.2197659015655518,
0.5085615515708923,
0.4032793939113617,
1.1539034843444824,
-1.5702329874038696,
0.21906664967536926,
-0.5002968311309814,
2.046992063522339,
0.05995994061231613,
1.2390369176864624,
-0.48245367407798767,
-2.1945395469665527,
0.6477867960929871,
-1.2811473608016968,
-1.0116994380950928,
0.866120457649231,
-0.8218156099319458,
0.15184466540813446,
-1.3675471544265747,
-0.1863020807504654,
-0.9444537162780762,
-1.2353343963623047,
0.7274283766746521,
0.10255832970142365,
0.44274380803108215,
-0.664058268070221,
0.37239718437194824,
-2.174703359603882,
-1.3979830741882324,
-0.21575799584388733,
-0.967475414276123,
0.4713669419288635,
-0.3533419966697693,
0.6510820388793945,
-0.13235490024089813,
0.04959270730614662,
0.3099118769168854,
1.442313551902771,
3.450355052947998,
0.16095185279846191,
0.24070806801319122,
-0.1476878970861435,
-0.9972562193870544,
1.4012349843978882,
0.8649115562438965,
-0.1289389729499817,
-0.5422443151473999,
-1.0005844831466675,
1.2632038593292236,
2.004117965698242,
1.1144587993621826,
0.06745418161153793,
-0.8705800175666809,
-0.7761991024017334,
-0.009664631448686123,
0.17973455786705017,
0.515289843082428,
0.9233182668685913,
-0.02101515233516693,
0.12882544100284576,
1.3391629457473755,
1.1740541458129883,
-0.298658549785614,
0.4268813133239746,
-0.9072842597961426,
-0.4195457100868225,
0.5039481520652771,
0.28576865792274475,
0.06505496054887772,
0.425435870885849,
-1.0815602540969849,
-0.2350696325302124,
-0.32327914237976074,
-0.8823674321174622,
-0.838369607925415,
-0.44707202911376953,
-0.3757894039154053,
1.5783016681671143,
0.02582545205950737,
-0.5081170201301575,
0.08231198787689209,
-0.763765811920166,
-0.16003482043743134,
-1.045320987701416,
0.15866081416606903,
-0.17857134342193604,
-0.09567499905824661,
-0.17298166453838348,
1.6335010528564453,
-0.9785197377204895,
-2.090766429901123,
0.2400916963815689,
0.24402286112308502,
-0.3618173897266388,
0.15177272260189056,
1.7147912979125977,
0.5094953775405884,
1.395127534866333,
1.3466289043426514,
1.0127160549163818,
-0.6387749910354614,
-1.2611931562423706,
0.7217236161231995,
0.9800177812576294,
-1.3625885248184204,
0.8640153408050537,
-0.0688098669052124,
-0.5206362009048462,
0.6629301905632019,
1.3195486068725586,
0.44044753909111023,
-2.00632905960083,
0.7621892094612122,
-0.9252059459686279,
0.7398068904876709,
0.739475429058075,
0.832608699798584,
0.25988340377807617,
0.8102158904075623,
-1.2088327407836914,
-1.1408690214157104,
-0.6503634452819824,
-0.687558114528656,
1.8879144191741943,
-0.19763396680355072,
0.596725583076477,
-0.1427803933620453,
-1.2773962020874023,
-0.09735942631959915,
0.8873419165611267,
0.4022994041442871,
-0.5364833474159241,
0.7879591584205627,
-0.63409024477005,
-0.9318905472755432,
-1.2426496744155884,
-0.4750945568084717,
-1.0542104244232178,
-0.8929034471511841,
1.0112121105194092,
0.7767508625984192,
0.4116840064525604,
1.9442505836486816,
0.6869797110557556,
0.3231986463069916,
-2.612781286239624,
0.852246880531311,
0.29321780800819397,
-0.04259498789906502,
0.8058704733848572,
0.342911034822464,
1.0771870613098145,
-0.03709162399172783,
0.6579252481460571,
-2.4039154052734375,
2.2781240940093994,
-0.17595221102237701,
0.6038881540298462,
-0.03389719873666763,
-0.1623021960258484,
1.0858473777770996,
0.5972007513046265,
0.5053228139877319,
-1.0848616361618042,
0.7084896564483643,
-0.622518002986908,
1.15998375415802,
0.8441503643989563,
-0.9481687545776367,
0.043546758592128754,
1.4048702716827393,
0.4400118887424469,
-0.5035818815231323,
-0.9027963876724243,
-0.9232628345489502,
0.9687721729278564,
1.7084769010543823,
-0.0659487321972847,
0.013677631504833698,
0.9423863291740417,
0.6599072217941284,
-1.213746428489685,
0.022567790001630783,
-0.7038558125495911,
-0.6882976293563843,
1.7437573671340942,
1.999729037284851,
-0.11843384802341461,
-0.08268006145954132,
-0.7842175960540771,
-1.247666358947754,
0.8080098628997803,
0.0010499805212020874,
-0.038613129407167435,
0.7125145196914673,
-0.6258074641227722,
1.1512812376022339,
0.68463534116745,
1.0154197216033936,
0.06147664785385132,
0.3056935966014862,
0.38376864790916443,
-0.4276481866836548,
-1.1793324947357178,
-0.340131014585495,
-1.1234956979751587,
-2.588510751724243,
0.4085598886013031,
-0.17271852493286133,
-1.483343482017517,
0.013159642927348614,
-0.9975482225418091,
0.8547295331954956,
-0.6291796565055847,
-1.1250109672546387,
-1.3752549886703491,
0.36146244406700134,
-0.10765020549297333,
0.9284862875938416,
-1.6615296602249146,
-0.11720486730337143,
1.1964116096496582,
0.8964913487434387,
-0.6709868311882019,
0.8894762992858887,
0.24234627187252045,
0.9716618061065674,
0.8272337913513184,
-0.3474612534046173,
0.5797885060310364,
0.04769929498434067,
-1.3103318214416504,
0.42338865995407104,
1.2174323797225952,
0.16602258384227753,
1.3575773239135742,
-0.5275878310203552,
0.06315521895885468,
0.4094226658344269,
-0.5683637261390686,
-0.47759443521499634,
-0.5051195621490479,
0.7452136874198914,
0.05881107598543167,
-0.9792395830154419,
-0.030524425208568573,
-0.08103127777576447,
-0.2246028184890747,
0.2045537829399109,
-1.436160922050476,
-0.1627257764339447,
-0.31304267048835754,
-0.529259979724884,
-1.3141453266143799,
0.008105386979877949,
1.3522318601608276,
-0.6996396780014038,
-0.23692728579044342,
0.528089702129364,
0.27764827013015747,
0.5147225260734558,
0.5527485013008118,
-0.744633674621582,
-0.32868027687072754,
-0.3323282301425934,
-0.31912484765052795,
0.2589016258716583,
1.3325142860412598,
-0.02514985203742981,
-1.0338584184646606,
0.76130211353302,
-0.4016991853713989,
0.11212678998708725,
1.9385480880737305,
0.07246487587690353,
-0.7546563148498535,
0.3199835419654846,
-0.7232829928398132,
1.81879723072052,
1.7859833240509033,
1.3198230266571045,
-0.04966743290424347,
-0.8915672898292542,
0.6113607287406921,
-0.37515902519226074,
-0.38854658603668213,
0.9238846898078918,
0.3225978910923004,
-0.2668369710445404,
-1.4252551794052124,
0.6492332220077515,
1.2795395851135254,
-0.7874571681022644,
-0.8261348009109497,
0.08526790142059326,
-0.8686121702194214,
1.2227169275283813,
0.6537937521934509,
0.38540858030319214,
0.2765800952911377,
1.601736068725586,
0.7477908134460449,
-0.39879894256591797,
0.5538686513900757,
0.5281771421432495,
-0.1995454877614975,
-2.120521068572998,
-1.0584336519241333,
0.31938785314559937,
-0.4726138710975647,
-1.600784420967102,
1.3879568576812744,
-1.2133225202560425,
-0.9803425669670105,
0.5187803506851196,
0.1288185864686966,
1.354120135307312,
0.35352975130081177,
1.645492434501648,
2.109436511993408,
0.8557237982749939,
0.38892436027526855,
1.249511480331421,
-0.14471352100372314,
-0.3913313150405884,
1.8472379446029663,
-0.4616539478302002,
0.5234229564666748,
1.065331220626831,
-0.3935883939266205,
-1.1000730991363525,
-0.8245139122009277,
-1.2076616287231445,
-0.714546263217926,
1.1870965957641602,
0.12754321098327637,
-1.0801279544830322,
0.2932710349559784,
1.6296435594558716,
0.07966794818639755,
-0.25167879462242126,
0.7288604378700256,
0.3820103406906128,
-0.8293293714523315,
-0.06977389007806778,
-0.8549509048461914,
0.5416139364242554,
-0.10944289714097977,
-0.31514671444892883,
0.37070775032043457,
0.55402010679245,
1.3470770120620728,
-0.023447129875421524,
0.06569644808769226,
1.128732442855835,
-1.422415018081665,
1.5214060544967651,
-0.6274311542510986,
0.29110652208328247,
-2.414792537689209,
1.340458869934082,
-0.7253807187080383,
1.8593140840530396,
-2.626842737197876,
0.4266064167022705,
-0.49101799726486206,
-0.5379229187965393,
0.26343420147895813,
-0.3870187997817993,
0.0556705966591835,
-0.12940452992916107,
-1.0842593908309937,
-0.03825831785798073,
-0.7109977006912231,
0.5802164673805237,
1.1553561687469482,
1.4336084127426147,
-1.162013292312622,
-0.2965523302555084,
-1.7783989906311035,
-0.1510736346244812,
-0.7221725583076477,
0.32395920157432556,
-1.947177767753601,
-0.20427203178405762,
-2.003234624862671,
-2.3327083587646484,
-1.3748255968093872,
-0.845696210861206,
1.0682587623596191,
0.1369209587574005,
-0.901214063167572,
1.152119517326355,
-0.399785578250885,
-1.8814594745635986,
1.1315796375274658,
-2.2326393127441406
] |
https://github.com/huggingface/datasets/issues/5315 | Adding new splits to a dataset script with existing old splits info in metadata's `dataset_info` fails | > I think in this case
@albertvillanova You mean in cases when the script was changed?
I suggest that we:
* add a check on the slice (like 'split_name[n%]) kind of format here: https://github.com/huggingface/datasets/blob/main/src/datasets/splits.py#L523 to catch things like this.
* Error here happens before splits verification, but in `_prepare_split`, and `_prepare_split` doesn't perform any verification and don't know about it. so we can pass this parameter and take splits from `split_generator`, not from `split.info` in case when `verify_infos` is False
* we can check if split **names** from split_generators and self.info.splits are the same **before** preparing splits (if `verify_info=True`) so that we don't spend time on generating unwanted data.
* provide some user-friendly warnings about `ignore_verifications` parameter so that users know that if something is not matching they can ignore it
I started it here: https://github.com/huggingface/datasets/pull/5327/files
What do you think @albertvillanova ? | ### Describe the bug
If you first create a custom dataset with a specific set of splits, generate metadata with `datasets-cli test ... --save_info`, then change your script to include more splits, it fails.
That's what happened in https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/discussions/2#6385fd1269634850f8ddff48.
### Steps to reproduce the bug
1. create a dataset with a custom split that returns, for example, only `"train"` split in `_splits_generators'`. specifically, if really want to reproduce, copy `https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/blob/main/food_vision_199_classes.py
2. run `datasets-cli test dataset_script.py --save_info --all_configs` - this would generate metadata yaml in `README.md` that would contain info about splits, for example, like this:
```
splits:
- name: train
num_bytes: 2973286
num_examples: 19747
```
3. make changes to your script so that it returns another set of splits, for example, `"train"` and `"test"` (uncomment [these lines](https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/blob/main/food_vision_199_classes.py#L271))
4. run `load_dataset` and get the following error:
```python
Traceback (most recent call last):
File "/home/daniel/code/pytorch/env/bin/datasets-cli", line 8, in <module>
sys.exit(main())
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/commands/datasets_cli.py", line 39, in main
service.run()
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/commands/test.py", line 141, in run
builder.download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 913, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 1356, in _prepare_split
split_info = self.info.splits[split_generator.name]
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/splits.py", line 525, in __getitem__
instructions = make_file_instructions(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/arrow_reader.py", line 111, in make_file_instructions
name2filenames = {
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/arrow_reader.py", line 112, in <dictcomp>
info.name: filenames_for_dataset_split(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/naming.py", line 78, in filenames_for_dataset_split
prefix = filename_prefix_for_split(dataset_name, split)
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/naming.py", line 57, in filename_prefix_for_split
if os.path.basename(name) != name:
File "/home/daniel/code/pytorch/env/lib/python3.8/posixpath.py", line 143, in basename
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
5. bonus: try to regenerate metadata in `README.md` with `datasets-cli` as in step 2 and get the same error.
This is because `dataset.info.splits` contains only `"train"` split so when we are doing `self.info.splits[split_generator.name]` it tries to infer smth like `info.splits['train[50%]']` and that's not the case and it fails.
### Expected behavior
to be discussed?
This can be solved by removing splits information from metadata file first. But I wonder if there is a better way.
### Environment info
- Datasets version: 2.7.1
- Python version: 3.8.13 | 390 | 142 | Adding new splits to a dataset script with existing old splits info in metadata's `dataset_info` fails
### Describe the bug
If you first create a custom dataset with a specific set of splits, generate metadata with `datasets-cli test ... --save_info`, then change your script to include more splits, it fails.
That's what happened in https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/discussions/2#6385fd1269634850f8ddff48.
### Steps to reproduce the bug
1. create a dataset with a custom split that returns, for example, only `"train"` split in `_splits_generators'`. specifically, if really want to reproduce, copy `https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/blob/main/food_vision_199_classes.py
2. run `datasets-cli test dataset_script.py --save_info --all_configs` - this would generate metadata yaml in `README.md` that would contain info about splits, for example, like this:
```
splits:
- name: train
num_bytes: 2973286
num_examples: 19747
```
3. make changes to your script so that it returns another set of splits, for example, `"train"` and `"test"` (uncomment [these lines](https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/blob/main/food_vision_199_classes.py#L271))
4. run `load_dataset` and get the following error:
```python
Traceback (most recent call last):
File "/home/daniel/code/pytorch/env/bin/datasets-cli", line 8, in <module>
sys.exit(main())
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/commands/datasets_cli.py", line 39, in main
service.run()
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/commands/test.py", line 141, in run
builder.download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 913, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 1356, in _prepare_split
split_info = self.info.splits[split_generator.name]
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/splits.py", line 525, in __getitem__
instructions = make_file_instructions(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/arrow_reader.py", line 111, in make_file_instructions
name2filenames = {
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/arrow_reader.py", line 112, in <dictcomp>
info.name: filenames_for_dataset_split(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/naming.py", line 78, in filenames_for_dataset_split
prefix = filename_prefix_for_split(dataset_name, split)
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/naming.py", line 57, in filename_prefix_for_split
if os.path.basename(name) != name:
File "/home/daniel/code/pytorch/env/lib/python3.8/posixpath.py", line 143, in basename
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
5. bonus: try to regenerate metadata in `README.md` with `datasets-cli` as in step 2 and get the same error.
This is because `dataset.info.splits` contains only `"train"` split so when we are doing `self.info.splits[split_generator.name]` it tries to infer smth like `info.splits['train[50%]']` and that's not the case and it fails.
### Expected behavior
to be discussed?
This can be solved by removing splits information from metadata file first. But I wonder if there is a better way.
### Environment info
- Datasets version: 2.7.1
- Python version: 3.8.13
> I think in this case
@albertvillanova You mean in cases when the script was changed?
I suggest that we:
* add a check on the slice (like 'split_name[n%]) kind of format here: https://github.com/huggingface/datasets/blob/main/src/datasets/splits.py#L523 to catch things like this.
* Error here happens before splits verification, but in `_prepare_split`, and `_prepare_split` doesn't perform any verification and don't know about it. so we can pass this parameter and take splits from `split_generator`, not from `split.info` in case when `verify_infos` is False
* we can check if split **names** from split_generators and self.info.splits are the same **before** preparing splits (if `verify_info=True`) so that we don't spend time on generating unwanted data.
* provide some user-friendly warnings about `ignore_verifications` parameter so that users know that if something is not matching they can ignore it
I started it here: https://github.com/huggingface/datasets/pull/5327/files
What do you think @albertvillanova ? | [
-1.113948941230774,
-0.9091671705245972,
-0.6788613200187683,
1.4712458848953247,
-0.11289050430059433,
-1.317491054534912,
0.1464281529188156,
-1.0284781455993652,
1.6395132541656494,
-0.7434434294700623,
0.2930738627910614,
-1.7083076238632202,
-0.017192382365465164,
-0.595932126045227,
-0.7094108462333679,
-0.8526076674461365,
-0.3684728741645813,
-0.8177121877670288,
0.9706290364265442,
2.537369966506958,
1.2658112049102783,
-1.355212926864624,
2.689457416534424,
0.6684607267379761,
-0.24446596205234528,
-0.9788898229598999,
0.5389712452888489,
-0.08282264322042465,
-1.2271537780761719,
-0.42428842186927795,
-0.8807189464569092,
-0.07822823524475098,
-0.6028165221214294,
-0.5115966200828552,
-0.008926651440560818,
0.47438785433769226,
-0.2664680778980255,
-0.3798014223575592,
-0.5777562260627747,
-0.7914740443229675,
0.4598577916622162,
-0.37076234817504883,
0.9268112182617188,
-0.34252625703811646,
1.734237551689148,
-0.6241556406021118,
0.4067089259624481,
0.6889788508415222,
1.296227216720581,
0.17432236671447754,
0.022462189197540283,
0.2096197009086609,
0.3940551280975342,
-0.022901766002178192,
0.5592489838600159,
1.2456820011138916,
0.6975221633911133,
0.5073437094688416,
0.6404529213905334,
-2.296975612640381,
1.2788006067276,
-0.8783553838729858,
0.31547555327415466,
1.3372268676757812,
-0.8417707085609436,
0.3103155195713043,
-1.7982522249221802,
-0.05013785511255264,
0.5802524089813232,
-2.2096476554870605,
0.211829274892807,
-1.2567148208618164,
-0.5280007123947144,
0.9567201733589172,
0.3299415111541748,
-1.1653625965118408,
0.19403722882270813,
-0.3984892666339874,
1.0771868228912354,
0.47243812680244446,
1.1244895458221436,
-1.6311196088790894,
-0.020975559949874878,
-0.24731971323490143,
0.10302722454071045,
-1.26192045211792,
-1.6045327186584473,
0.5528838038444519,
0.6286290884017944,
0.632468044757843,
-0.11628466099500656,
0.9543619751930237,
-1.0461945533752441,
0.7536852359771729,
-0.9992278814315796,
-1.6946934461593628,
-1.3824164867401123,
-2.2997238636016846,
-2.3438313007354736,
0.7508211731910706,
-0.45759323239326477,
-0.4424201250076294,
2.0022177696228027,
-0.9838593006134033,
-1.8008966445922852,
1.0623756647109985,
0.32396936416625977,
0.01105919573456049,
2.332998037338257,
0.2739660143852234,
-0.7834298610687256,
0.4718063473701477,
-0.7095721364021301,
0.7258256673812866,
-0.3632650673389435,
1.3212882280349731,
0.45402953028678894,
-1.020350456237793,
1.6042226552963257,
-0.5267251133918762,
0.6388921737670898,
-0.6963368654251099,
-0.4678749144077301,
-0.7057870030403137,
0.301478773355484,
1.8494471311569214,
-0.3382626175880432,
1.5231571197509766,
-0.30482885241508484,
-1.5738075971603394,
-1.5941107273101807,
0.8632226586341858,
0.4251706898212433,
-0.814560055732727,
0.07567541301250458,
-0.5063331127166748,
0.12114988267421722,
-0.07377059012651443,
1.1247332096099854,
1.2395260334014893,
0.7496079206466675,
-0.3487537205219269,
-0.7997887134552002,
0.2040269523859024,
-0.045860655605793,
-0.7160342335700989,
-1.787602186203003,
-0.2892953157424927,
0.22672538459300995,
0.5893193483352661,
-1.1420586109161377,
1.904377818107605,
0.8528521060943604,
2,
0.9810923933982849,
-0.3432380259037018,
1.4564815759658813,
0.004567592404782772,
1.9072309732437134,
-0.41845157742500305,
0.6230703592300415,
-0.36398178339004517,
-1.2191317081451416,
0.9149640202522278,
-0.3464527130126953,
-2.030447244644165,
-0.7742136120796204,
-0.8273129463195801,
-0.13265663385391235,
-0.7762287259101868,
0.8454888463020325,
-0.21842415630817413,
-1.4401150941848755,
0.0820954293012619,
-0.6681441068649292,
0.15270468592643738,
-1.2540192604064941,
0.24765415489673615,
0.7402269244194031,
-0.7277741432189941,
0.013875910080969334,
-0.24220828711986542,
-1.2925268411636353,
-0.5124236941337585,
0.3072555363178253,
1.9459625482559204,
-0.6925156712532043,
0.8933987617492676,
1.0736209154129028,
-0.702518105506897,
0.1119329184293747,
0.30100080370903015,
-0.3065430223941803,
0.8253740668296814,
-1.099326252937317,
-0.3712056577205658,
1.1871025562286377,
-0.16806764900684357,
-0.7094185948371887,
1.4825584888458252,
0.8146452903747559,
-1.0507681369781494,
-0.18266001343727112,
-0.1973298341035843,
-0.8206263780593872,
0.016869287937879562,
-1.5518832206726074,
-0.09425947815179825,
0.4434417486190796,
-1.472705364227295,
-0.41311994194984436,
-0.18376906216144562,
1.3088557720184326,
-0.17432191967964172,
1.3922051191329956,
-0.3116708993911743,
-0.1396428495645523,
-0.3332803547382355,
-0.44374337792396545,
0.1229284256696701,
-0.1838768571615219,
-0.6588330864906311,
0.2057964950799942,
-0.8347999453544617,
0.33401718735694885,
1.4788278341293335,
0.2144545167684555,
0.07494968175888062,
0.532925009727478,
1.1231690645217896,
0.3481293320655823,
-0.027858611196279526,
-0.8946638107299805,
-1.5138912200927734,
1.966314435005188,
-1.4178123474121094,
1.9403315782546997,
0.7733061909675598,
-0.06701803207397461,
-1.817326307296753,
-1.9175899028778076,
1.3359556198120117,
1.0984143018722534,
2.373720169067383,
0.5178199410438538,
0.44269922375679016,
-0.8334261775016785,
-0.709602952003479,
0.32733267545700073,
-0.9306362867355347,
-0.6916800141334534,
0.2081962525844574,
2.3974618911743164,
1.790934681892395,
-0.5212971568107605,
-0.24122834205627441,
-0.948392927646637,
1.3128454685211182,
-0.2581348717212677,
0.2508552372455597,
2.088996648788452,
-0.33455511927604675,
-1.0155614614486694,
1.3666273355484009,
-2.3832497596740723,
0.2653841972351074,
2.0936484336853027,
0.1911899298429489,
0.12185411155223846,
-1.4140503406524658,
-0.6053347587585449,
-0.2503507733345032,
-0.4422833025455475,
-1.2081135511398315,
0.5672512054443359,
-0.22289136052131653,
-0.8230440616607666,
-1.4137811660766602,
0.14770404994487762,
-1.097941517829895,
-1.7346781492233276,
0.2735934257507324,
1.8566434383392334,
2.0945322513580322,
-0.7805976867675781,
1.4513264894485474,
-0.3048383295536041,
0.08606855571269989,
1.2942724227905273,
1.2791833877563477,
3.158318042755127,
1.8736495971679688,
-1.2948853969573975,
0.7931357622146606,
-0.23718960583209991,
-0.4821226894855499,
1.150900959968567,
-1.1775720119476318,
1.1157710552215576,
-0.3002426326274872,
-1.2596935033798218,
-1.2953822612762451,
1.0071134567260742,
0.4960069954395294,
0.05883016437292099,
-0.5168313384056091,
1.2734832763671875,
0.14266709983348846,
1.353788137435913,
0.5837499499320984,
-0.3704174757003784,
0.5524489879608154,
-0.3682670295238495,
-0.5316305756568909,
1.5789061784744263,
0.22188717126846313,
-1.417212963104248,
-2.274916172027588,
-0.20085710287094116,
-0.9726083874702454,
-0.10399608314037323,
-0.6543123722076416,
-0.9660189151763916,
1.5797563791275024,
0.41349244117736816,
-1.2628380060195923,
-0.2559027671813965,
-0.2950667142868042,
-0.49139678478240967,
2.6892330646514893,
-1.3785922527313232,
-0.20020601153373718,
-1.0171185731887817,
-0.5656989812850952,
1.6734364032745361,
-1.188193678855896,
-0.2018449604511261,
-1.05503511428833,
-0.5652341842651367,
-1.2802871465682983,
-0.48907482624053955,
0.05754368007183075,
-0.9312760829925537,
0.880435049533844,
0.15740549564361572,
-1.1875849962234497,
-0.32492539286613464,
-0.9189079999923706,
1.0155065059661865,
-0.16358007490634918,
0.17190930247306824,
1.8225692510604858,
0.3316807746887207,
-0.436798095703125,
0.7321920990943909,
1.1581894159317017,
0.6089037656784058,
-0.6154471635818481,
0.1641245037317276,
-0.6476600766181946,
0.40193822979927063,
-1.4128867387771606,
0.22179606556892395,
-2.8863813877105713,
0.6867972016334534,
-0.11678127944469452,
-0.10824467241764069,
-0.08872766047716141,
-1.3939158916473389,
1.0025027990341187,
2.548323631286621,
-1.2197659015655518,
0.5085615515708923,
0.4032793939113617,
1.1539034843444824,
-1.5702329874038696,
0.21906664967536926,
-0.5002968311309814,
2.046992063522339,
0.05995994061231613,
1.2390369176864624,
-0.48245367407798767,
-2.1945395469665527,
0.6477867960929871,
-1.2811473608016968,
-1.0116994380950928,
0.866120457649231,
-0.8218156099319458,
0.15184466540813446,
-1.3675471544265747,
-0.1863020807504654,
-0.9444537162780762,
-1.2353343963623047,
0.7274283766746521,
0.10255832970142365,
0.44274380803108215,
-0.664058268070221,
0.37239718437194824,
-2.174703359603882,
-1.3979830741882324,
-0.21575799584388733,
-0.967475414276123,
0.4713669419288635,
-0.3533419966697693,
0.6510820388793945,
-0.13235490024089813,
0.04959270730614662,
0.3099118769168854,
1.442313551902771,
3.450355052947998,
0.16095185279846191,
0.24070806801319122,
-0.1476878970861435,
-0.9972562193870544,
1.4012349843978882,
0.8649115562438965,
-0.1289389729499817,
-0.5422443151473999,
-1.0005844831466675,
1.2632038593292236,
2.004117965698242,
1.1144587993621826,
0.06745418161153793,
-0.8705800175666809,
-0.7761991024017334,
-0.009664631448686123,
0.17973455786705017,
0.515289843082428,
0.9233182668685913,
-0.02101515233516693,
0.12882544100284576,
1.3391629457473755,
1.1740541458129883,
-0.298658549785614,
0.4268813133239746,
-0.9072842597961426,
-0.4195457100868225,
0.5039481520652771,
0.28576865792274475,
0.06505496054887772,
0.425435870885849,
-1.0815602540969849,
-0.2350696325302124,
-0.32327914237976074,
-0.8823674321174622,
-0.838369607925415,
-0.44707202911376953,
-0.3757894039154053,
1.5783016681671143,
0.02582545205950737,
-0.5081170201301575,
0.08231198787689209,
-0.763765811920166,
-0.16003482043743134,
-1.045320987701416,
0.15866081416606903,
-0.17857134342193604,
-0.09567499905824661,
-0.17298166453838348,
1.6335010528564453,
-0.9785197377204895,
-2.090766429901123,
0.2400916963815689,
0.24402286112308502,
-0.3618173897266388,
0.15177272260189056,
1.7147912979125977,
0.5094953775405884,
1.395127534866333,
1.3466289043426514,
1.0127160549163818,
-0.6387749910354614,
-1.2611931562423706,
0.7217236161231995,
0.9800177812576294,
-1.3625885248184204,
0.8640153408050537,
-0.0688098669052124,
-0.5206362009048462,
0.6629301905632019,
1.3195486068725586,
0.44044753909111023,
-2.00632905960083,
0.7621892094612122,
-0.9252059459686279,
0.7398068904876709,
0.739475429058075,
0.832608699798584,
0.25988340377807617,
0.8102158904075623,
-1.2088327407836914,
-1.1408690214157104,
-0.6503634452819824,
-0.687558114528656,
1.8879144191741943,
-0.19763396680355072,
0.596725583076477,
-0.1427803933620453,
-1.2773962020874023,
-0.09735942631959915,
0.8873419165611267,
0.4022994041442871,
-0.5364833474159241,
0.7879591584205627,
-0.63409024477005,
-0.9318905472755432,
-1.2426496744155884,
-0.4750945568084717,
-1.0542104244232178,
-0.8929034471511841,
1.0112121105194092,
0.7767508625984192,
0.4116840064525604,
1.9442505836486816,
0.6869797110557556,
0.3231986463069916,
-2.612781286239624,
0.852246880531311,
0.29321780800819397,
-0.04259498789906502,
0.8058704733848572,
0.342911034822464,
1.0771870613098145,
-0.03709162399172783,
0.6579252481460571,
-2.4039154052734375,
2.2781240940093994,
-0.17595221102237701,
0.6038881540298462,
-0.03389719873666763,
-0.1623021960258484,
1.0858473777770996,
0.5972007513046265,
0.5053228139877319,
-1.0848616361618042,
0.7084896564483643,
-0.622518002986908,
1.15998375415802,
0.8441503643989563,
-0.9481687545776367,
0.043546758592128754,
1.4048702716827393,
0.4400118887424469,
-0.5035818815231323,
-0.9027963876724243,
-0.9232628345489502,
0.9687721729278564,
1.7084769010543823,
-0.0659487321972847,
0.013677631504833698,
0.9423863291740417,
0.6599072217941284,
-1.213746428489685,
0.022567790001630783,
-0.7038558125495911,
-0.6882976293563843,
1.7437573671340942,
1.999729037284851,
-0.11843384802341461,
-0.08268006145954132,
-0.7842175960540771,
-1.247666358947754,
0.8080098628997803,
0.0010499805212020874,
-0.038613129407167435,
0.7125145196914673,
-0.6258074641227722,
1.1512812376022339,
0.68463534116745,
1.0154197216033936,
0.06147664785385132,
0.3056935966014862,
0.38376864790916443,
-0.4276481866836548,
-1.1793324947357178,
-0.340131014585495,
-1.1234956979751587,
-2.588510751724243,
0.4085598886013031,
-0.17271852493286133,
-1.483343482017517,
0.013159642927348614,
-0.9975482225418091,
0.8547295331954956,
-0.6291796565055847,
-1.1250109672546387,
-1.3752549886703491,
0.36146244406700134,
-0.10765020549297333,
0.9284862875938416,
-1.6615296602249146,
-0.11720486730337143,
1.1964116096496582,
0.8964913487434387,
-0.6709868311882019,
0.8894762992858887,
0.24234627187252045,
0.9716618061065674,
0.8272337913513184,
-0.3474612534046173,
0.5797885060310364,
0.04769929498434067,
-1.3103318214416504,
0.42338865995407104,
1.2174323797225952,
0.16602258384227753,
1.3575773239135742,
-0.5275878310203552,
0.06315521895885468,
0.4094226658344269,
-0.5683637261390686,
-0.47759443521499634,
-0.5051195621490479,
0.7452136874198914,
0.05881107598543167,
-0.9792395830154419,
-0.030524425208568573,
-0.08103127777576447,
-0.2246028184890747,
0.2045537829399109,
-1.436160922050476,
-0.1627257764339447,
-0.31304267048835754,
-0.529259979724884,
-1.3141453266143799,
0.008105386979877949,
1.3522318601608276,
-0.6996396780014038,
-0.23692728579044342,
0.528089702129364,
0.27764827013015747,
0.5147225260734558,
0.5527485013008118,
-0.744633674621582,
-0.32868027687072754,
-0.3323282301425934,
-0.31912484765052795,
0.2589016258716583,
1.3325142860412598,
-0.02514985203742981,
-1.0338584184646606,
0.76130211353302,
-0.4016991853713989,
0.11212678998708725,
1.9385480880737305,
0.07246487587690353,
-0.7546563148498535,
0.3199835419654846,
-0.7232829928398132,
1.81879723072052,
1.7859833240509033,
1.3198230266571045,
-0.04966743290424347,
-0.8915672898292542,
0.6113607287406921,
-0.37515902519226074,
-0.38854658603668213,
0.9238846898078918,
0.3225978910923004,
-0.2668369710445404,
-1.4252551794052124,
0.6492332220077515,
1.2795395851135254,
-0.7874571681022644,
-0.8261348009109497,
0.08526790142059326,
-0.8686121702194214,
1.2227169275283813,
0.6537937521934509,
0.38540858030319214,
0.2765800952911377,
1.601736068725586,
0.7477908134460449,
-0.39879894256591797,
0.5538686513900757,
0.5281771421432495,
-0.1995454877614975,
-2.120521068572998,
-1.0584336519241333,
0.31938785314559937,
-0.4726138710975647,
-1.600784420967102,
1.3879568576812744,
-1.2133225202560425,
-0.9803425669670105,
0.5187803506851196,
0.1288185864686966,
1.354120135307312,
0.35352975130081177,
1.645492434501648,
2.109436511993408,
0.8557237982749939,
0.38892436027526855,
1.249511480331421,
-0.14471352100372314,
-0.3913313150405884,
1.8472379446029663,
-0.4616539478302002,
0.5234229564666748,
1.065331220626831,
-0.3935883939266205,
-1.1000730991363525,
-0.8245139122009277,
-1.2076616287231445,
-0.714546263217926,
1.1870965957641602,
0.12754321098327637,
-1.0801279544830322,
0.2932710349559784,
1.6296435594558716,
0.07966794818639755,
-0.25167879462242126,
0.7288604378700256,
0.3820103406906128,
-0.8293293714523315,
-0.06977389007806778,
-0.8549509048461914,
0.5416139364242554,
-0.10944289714097977,
-0.31514671444892883,
0.37070775032043457,
0.55402010679245,
1.3470770120620728,
-0.023447129875421524,
0.06569644808769226,
1.128732442855835,
-1.422415018081665,
1.5214060544967651,
-0.6274311542510986,
0.29110652208328247,
-2.414792537689209,
1.340458869934082,
-0.7253807187080383,
1.8593140840530396,
-2.626842737197876,
0.4266064167022705,
-0.49101799726486206,
-0.5379229187965393,
0.26343420147895813,
-0.3870187997817993,
0.0556705966591835,
-0.12940452992916107,
-1.0842593908309937,
-0.03825831785798073,
-0.7109977006912231,
0.5802164673805237,
1.1553561687469482,
1.4336084127426147,
-1.162013292312622,
-0.2965523302555084,
-1.7783989906311035,
-0.1510736346244812,
-0.7221725583076477,
0.32395920157432556,
-1.947177767753601,
-0.20427203178405762,
-2.003234624862671,
-2.3327083587646484,
-1.3748255968093872,
-0.845696210861206,
1.0682587623596191,
0.1369209587574005,
-0.901214063167572,
1.152119517326355,
-0.399785578250885,
-1.8814594745635986,
1.1315796375274658,
-2.2326393127441406
] |
https://github.com/huggingface/datasets/issues/5315 | Adding new splits to a dataset script with existing old splits info in metadata's `dataset_info` fails | I edited my previous comment:
- First I proposed setting `self.info.splits` to None when `ignore_verifications=True`
- I thought it was the easiest implementation because `ignore_verifications` is passed to `DatasetBuilder.download_and_prepare`
- However, afterwards, I realized this might not be a good idea for this use case:
- A user wants to optimize the loading of the dataset, and passes `ignore_verifications=False` to avoid all the verifications
- In this case, we want `self.info.splits` to be read from metadata file
- Then, I thought that it might be better to set `self.info.splits` to None when we pass `--save_info` to the CLI test: if we are going to save the info to the metadata file, it makes no sense to read the info from the metadata file
- This implementation is not so easy because the Builder knows nothing about `--save_info`
I agree with you there are 2 things to be addressed here:
- One is what I have just commented: `self.info.splits` should be None in this case
- The other, a validation should be implemented when calling `make_file_instructions` and/or `SplitDict.__getitem__`, so that when passing "training" to it, we get a more descriptive error other than `TypeError: expected str, bytes or os.PathLike object, not NoneType` | ### Describe the bug
If you first create a custom dataset with a specific set of splits, generate metadata with `datasets-cli test ... --save_info`, then change your script to include more splits, it fails.
That's what happened in https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/discussions/2#6385fd1269634850f8ddff48.
### Steps to reproduce the bug
1. create a dataset with a custom split that returns, for example, only `"train"` split in `_splits_generators'`. specifically, if really want to reproduce, copy `https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/blob/main/food_vision_199_classes.py
2. run `datasets-cli test dataset_script.py --save_info --all_configs` - this would generate metadata yaml in `README.md` that would contain info about splits, for example, like this:
```
splits:
- name: train
num_bytes: 2973286
num_examples: 19747
```
3. make changes to your script so that it returns another set of splits, for example, `"train"` and `"test"` (uncomment [these lines](https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/blob/main/food_vision_199_classes.py#L271))
4. run `load_dataset` and get the following error:
```python
Traceback (most recent call last):
File "/home/daniel/code/pytorch/env/bin/datasets-cli", line 8, in <module>
sys.exit(main())
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/commands/datasets_cli.py", line 39, in main
service.run()
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/commands/test.py", line 141, in run
builder.download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 913, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 1356, in _prepare_split
split_info = self.info.splits[split_generator.name]
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/splits.py", line 525, in __getitem__
instructions = make_file_instructions(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/arrow_reader.py", line 111, in make_file_instructions
name2filenames = {
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/arrow_reader.py", line 112, in <dictcomp>
info.name: filenames_for_dataset_split(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/naming.py", line 78, in filenames_for_dataset_split
prefix = filename_prefix_for_split(dataset_name, split)
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/naming.py", line 57, in filename_prefix_for_split
if os.path.basename(name) != name:
File "/home/daniel/code/pytorch/env/lib/python3.8/posixpath.py", line 143, in basename
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
5. bonus: try to regenerate metadata in `README.md` with `datasets-cli` as in step 2 and get the same error.
This is because `dataset.info.splits` contains only `"train"` split so when we are doing `self.info.splits[split_generator.name]` it tries to infer smth like `info.splits['train[50%]']` and that's not the case and it fails.
### Expected behavior
to be discussed?
This can be solved by removing splits information from metadata file first. But I wonder if there is a better way.
### Environment info
- Datasets version: 2.7.1
- Python version: 3.8.13 | 390 | 201 | Adding new splits to a dataset script with existing old splits info in metadata's `dataset_info` fails
### Describe the bug
If you first create a custom dataset with a specific set of splits, generate metadata with `datasets-cli test ... --save_info`, then change your script to include more splits, it fails.
That's what happened in https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/discussions/2#6385fd1269634850f8ddff48.
### Steps to reproduce the bug
1. create a dataset with a custom split that returns, for example, only `"train"` split in `_splits_generators'`. specifically, if really want to reproduce, copy `https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/blob/main/food_vision_199_classes.py
2. run `datasets-cli test dataset_script.py --save_info --all_configs` - this would generate metadata yaml in `README.md` that would contain info about splits, for example, like this:
```
splits:
- name: train
num_bytes: 2973286
num_examples: 19747
```
3. make changes to your script so that it returns another set of splits, for example, `"train"` and `"test"` (uncomment [these lines](https://huggingface.co/datasets/mrdbourke/food_vision_199_classes/blob/main/food_vision_199_classes.py#L271))
4. run `load_dataset` and get the following error:
```python
Traceback (most recent call last):
File "/home/daniel/code/pytorch/env/bin/datasets-cli", line 8, in <module>
sys.exit(main())
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/commands/datasets_cli.py", line 39, in main
service.run()
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/commands/test.py", line 141, in run
builder.download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 913, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/builder.py", line 1356, in _prepare_split
split_info = self.info.splits[split_generator.name]
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/splits.py", line 525, in __getitem__
instructions = make_file_instructions(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/arrow_reader.py", line 111, in make_file_instructions
name2filenames = {
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/arrow_reader.py", line 112, in <dictcomp>
info.name: filenames_for_dataset_split(
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/naming.py", line 78, in filenames_for_dataset_split
prefix = filename_prefix_for_split(dataset_name, split)
File "/home/daniel/code/pytorch/env/lib/python3.8/site-packages/datasets/naming.py", line 57, in filename_prefix_for_split
if os.path.basename(name) != name:
File "/home/daniel/code/pytorch/env/lib/python3.8/posixpath.py", line 143, in basename
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
5. bonus: try to regenerate metadata in `README.md` with `datasets-cli` as in step 2 and get the same error.
This is because `dataset.info.splits` contains only `"train"` split so when we are doing `self.info.splits[split_generator.name]` it tries to infer smth like `info.splits['train[50%]']` and that's not the case and it fails.
### Expected behavior
to be discussed?
This can be solved by removing splits information from metadata file first. But I wonder if there is a better way.
### Environment info
- Datasets version: 2.7.1
- Python version: 3.8.13
I edited my previous comment:
- First I proposed setting `self.info.splits` to None when `ignore_verifications=True`
- I thought it was the easiest implementation because `ignore_verifications` is passed to `DatasetBuilder.download_and_prepare`
- However, afterwards, I realized this might not be a good idea for this use case:
- A user wants to optimize the loading of the dataset, and passes `ignore_verifications=False` to avoid all the verifications
- In this case, we want `self.info.splits` to be read from metadata file
- Then, I thought that it might be better to set `self.info.splits` to None when we pass `--save_info` to the CLI test: if we are going to save the info to the metadata file, it makes no sense to read the info from the metadata file
- This implementation is not so easy because the Builder knows nothing about `--save_info`
I agree with you there are 2 things to be addressed here:
- One is what I have just commented: `self.info.splits` should be None in this case
- The other, a validation should be implemented when calling `make_file_instructions` and/or `SplitDict.__getitem__`, so that when passing "training" to it, we get a more descriptive error other than `TypeError: expected str, bytes or os.PathLike object, not NoneType` | [
-1.113948941230774,
-0.9091671705245972,
-0.6788613200187683,
1.4712458848953247,
-0.11289050430059433,
-1.317491054534912,
0.1464281529188156,
-1.0284781455993652,
1.6395132541656494,
-0.7434434294700623,
0.2930738627910614,
-1.7083076238632202,
-0.017192382365465164,
-0.595932126045227,
-0.7094108462333679,
-0.8526076674461365,
-0.3684728741645813,
-0.8177121877670288,
0.9706290364265442,
2.537369966506958,
1.2658112049102783,
-1.355212926864624,
2.689457416534424,
0.6684607267379761,
-0.24446596205234528,
-0.9788898229598999,
0.5389712452888489,
-0.08282264322042465,
-1.2271537780761719,
-0.42428842186927795,
-0.8807189464569092,
-0.07822823524475098,
-0.6028165221214294,
-0.5115966200828552,
-0.008926651440560818,
0.47438785433769226,
-0.2664680778980255,
-0.3798014223575592,
-0.5777562260627747,
-0.7914740443229675,
0.4598577916622162,
-0.37076234817504883,
0.9268112182617188,
-0.34252625703811646,
1.734237551689148,
-0.6241556406021118,
0.4067089259624481,
0.6889788508415222,
1.296227216720581,
0.17432236671447754,
0.022462189197540283,
0.2096197009086609,
0.3940551280975342,
-0.022901766002178192,
0.5592489838600159,
1.2456820011138916,
0.6975221633911133,
0.5073437094688416,
0.6404529213905334,
-2.296975612640381,
1.2788006067276,
-0.8783553838729858,
0.31547555327415466,
1.3372268676757812,
-0.8417707085609436,
0.3103155195713043,
-1.7982522249221802,
-0.05013785511255264,
0.5802524089813232,
-2.2096476554870605,
0.211829274892807,
-1.2567148208618164,
-0.5280007123947144,
0.9567201733589172,
0.3299415111541748,
-1.1653625965118408,
0.19403722882270813,
-0.3984892666339874,
1.0771868228912354,
0.47243812680244446,
1.1244895458221436,
-1.6311196088790894,
-0.020975559949874878,
-0.24731971323490143,
0.10302722454071045,
-1.26192045211792,
-1.6045327186584473,
0.5528838038444519,
0.6286290884017944,
0.632468044757843,
-0.11628466099500656,
0.9543619751930237,
-1.0461945533752441,
0.7536852359771729,
-0.9992278814315796,
-1.6946934461593628,
-1.3824164867401123,
-2.2997238636016846,
-2.3438313007354736,
0.7508211731910706,
-0.45759323239326477,
-0.4424201250076294,
2.0022177696228027,
-0.9838593006134033,
-1.8008966445922852,
1.0623756647109985,
0.32396936416625977,
0.01105919573456049,
2.332998037338257,
0.2739660143852234,
-0.7834298610687256,
0.4718063473701477,
-0.7095721364021301,
0.7258256673812866,
-0.3632650673389435,
1.3212882280349731,
0.45402953028678894,
-1.020350456237793,
1.6042226552963257,
-0.5267251133918762,
0.6388921737670898,
-0.6963368654251099,
-0.4678749144077301,
-0.7057870030403137,
0.301478773355484,
1.8494471311569214,
-0.3382626175880432,
1.5231571197509766,
-0.30482885241508484,
-1.5738075971603394,
-1.5941107273101807,
0.8632226586341858,
0.4251706898212433,
-0.814560055732727,
0.07567541301250458,
-0.5063331127166748,
0.12114988267421722,
-0.07377059012651443,
1.1247332096099854,
1.2395260334014893,
0.7496079206466675,
-0.3487537205219269,
-0.7997887134552002,
0.2040269523859024,
-0.045860655605793,
-0.7160342335700989,
-1.787602186203003,
-0.2892953157424927,
0.22672538459300995,
0.5893193483352661,
-1.1420586109161377,
1.904377818107605,
0.8528521060943604,
2,
0.9810923933982849,
-0.3432380259037018,
1.4564815759658813,
0.004567592404782772,
1.9072309732437134,
-0.41845157742500305,
0.6230703592300415,
-0.36398178339004517,
-1.2191317081451416,
0.9149640202522278,
-0.3464527130126953,
-2.030447244644165,
-0.7742136120796204,
-0.8273129463195801,
-0.13265663385391235,
-0.7762287259101868,
0.8454888463020325,
-0.21842415630817413,
-1.4401150941848755,
0.0820954293012619,
-0.6681441068649292,
0.15270468592643738,
-1.2540192604064941,
0.24765415489673615,
0.7402269244194031,
-0.7277741432189941,
0.013875910080969334,
-0.24220828711986542,
-1.2925268411636353,
-0.5124236941337585,
0.3072555363178253,
1.9459625482559204,
-0.6925156712532043,
0.8933987617492676,
1.0736209154129028,
-0.702518105506897,
0.1119329184293747,
0.30100080370903015,
-0.3065430223941803,
0.8253740668296814,
-1.099326252937317,
-0.3712056577205658,
1.1871025562286377,
-0.16806764900684357,
-0.7094185948371887,
1.4825584888458252,
0.8146452903747559,
-1.0507681369781494,
-0.18266001343727112,
-0.1973298341035843,
-0.8206263780593872,
0.016869287937879562,
-1.5518832206726074,
-0.09425947815179825,
0.4434417486190796,
-1.472705364227295,
-0.41311994194984436,
-0.18376906216144562,
1.3088557720184326,
-0.17432191967964172,
1.3922051191329956,
-0.3116708993911743,
-0.1396428495645523,
-0.3332803547382355,
-0.44374337792396545,
0.1229284256696701,
-0.1838768571615219,
-0.6588330864906311,
0.2057964950799942,
-0.8347999453544617,
0.33401718735694885,
1.4788278341293335,
0.2144545167684555,
0.07494968175888062,
0.532925009727478,
1.1231690645217896,
0.3481293320655823,
-0.027858611196279526,
-0.8946638107299805,
-1.5138912200927734,
1.966314435005188,
-1.4178123474121094,
1.9403315782546997,
0.7733061909675598,
-0.06701803207397461,
-1.817326307296753,
-1.9175899028778076,
1.3359556198120117,
1.0984143018722534,
2.373720169067383,
0.5178199410438538,
0.44269922375679016,
-0.8334261775016785,
-0.709602952003479,
0.32733267545700073,
-0.9306362867355347,
-0.6916800141334534,
0.2081962525844574,
2.3974618911743164,
1.790934681892395,
-0.5212971568107605,
-0.24122834205627441,
-0.948392927646637,
1.3128454685211182,
-0.2581348717212677,
0.2508552372455597,
2.088996648788452,
-0.33455511927604675,
-1.0155614614486694,
1.3666273355484009,
-2.3832497596740723,
0.2653841972351074,
2.0936484336853027,
0.1911899298429489,
0.12185411155223846,
-1.4140503406524658,
-0.6053347587585449,
-0.2503507733345032,
-0.4422833025455475,
-1.2081135511398315,
0.5672512054443359,
-0.22289136052131653,
-0.8230440616607666,
-1.4137811660766602,
0.14770404994487762,
-1.097941517829895,
-1.7346781492233276,
0.2735934257507324,
1.8566434383392334,
2.0945322513580322,
-0.7805976867675781,
1.4513264894485474,
-0.3048383295536041,
0.08606855571269989,
1.2942724227905273,
1.2791833877563477,
3.158318042755127,
1.8736495971679688,
-1.2948853969573975,
0.7931357622146606,
-0.23718960583209991,
-0.4821226894855499,
1.150900959968567,
-1.1775720119476318,
1.1157710552215576,
-0.3002426326274872,
-1.2596935033798218,
-1.2953822612762451,
1.0071134567260742,
0.4960069954395294,
0.05883016437292099,
-0.5168313384056091,
1.2734832763671875,
0.14266709983348846,
1.353788137435913,
0.5837499499320984,
-0.3704174757003784,
0.5524489879608154,
-0.3682670295238495,
-0.5316305756568909,
1.5789061784744263,
0.22188717126846313,
-1.417212963104248,
-2.274916172027588,
-0.20085710287094116,
-0.9726083874702454,
-0.10399608314037323,
-0.6543123722076416,
-0.9660189151763916,
1.5797563791275024,
0.41349244117736816,
-1.2628380060195923,
-0.2559027671813965,
-0.2950667142868042,
-0.49139678478240967,
2.6892330646514893,
-1.3785922527313232,
-0.20020601153373718,
-1.0171185731887817,
-0.5656989812850952,
1.6734364032745361,
-1.188193678855896,
-0.2018449604511261,
-1.05503511428833,
-0.5652341842651367,
-1.2802871465682983,
-0.48907482624053955,
0.05754368007183075,
-0.9312760829925537,
0.880435049533844,
0.15740549564361572,
-1.1875849962234497,
-0.32492539286613464,
-0.9189079999923706,
1.0155065059661865,
-0.16358007490634918,
0.17190930247306824,
1.8225692510604858,
0.3316807746887207,
-0.436798095703125,
0.7321920990943909,
1.1581894159317017,
0.6089037656784058,
-0.6154471635818481,
0.1641245037317276,
-0.6476600766181946,
0.40193822979927063,
-1.4128867387771606,
0.22179606556892395,
-2.8863813877105713,
0.6867972016334534,
-0.11678127944469452,
-0.10824467241764069,
-0.08872766047716141,
-1.3939158916473389,
1.0025027990341187,
2.548323631286621,
-1.2197659015655518,
0.5085615515708923,
0.4032793939113617,
1.1539034843444824,
-1.5702329874038696,
0.21906664967536926,
-0.5002968311309814,
2.046992063522339,
0.05995994061231613,
1.2390369176864624,
-0.48245367407798767,
-2.1945395469665527,
0.6477867960929871,
-1.2811473608016968,
-1.0116994380950928,
0.866120457649231,
-0.8218156099319458,
0.15184466540813446,
-1.3675471544265747,
-0.1863020807504654,
-0.9444537162780762,
-1.2353343963623047,
0.7274283766746521,
0.10255832970142365,
0.44274380803108215,
-0.664058268070221,
0.37239718437194824,
-2.174703359603882,
-1.3979830741882324,
-0.21575799584388733,
-0.967475414276123,
0.4713669419288635,
-0.3533419966697693,
0.6510820388793945,
-0.13235490024089813,
0.04959270730614662,
0.3099118769168854,
1.442313551902771,
3.450355052947998,
0.16095185279846191,
0.24070806801319122,
-0.1476878970861435,
-0.9972562193870544,
1.4012349843978882,
0.8649115562438965,
-0.1289389729499817,
-0.5422443151473999,
-1.0005844831466675,
1.2632038593292236,
2.004117965698242,
1.1144587993621826,
0.06745418161153793,
-0.8705800175666809,
-0.7761991024017334,
-0.009664631448686123,
0.17973455786705017,
0.515289843082428,
0.9233182668685913,
-0.02101515233516693,
0.12882544100284576,
1.3391629457473755,
1.1740541458129883,
-0.298658549785614,
0.4268813133239746,
-0.9072842597961426,
-0.4195457100868225,
0.5039481520652771,
0.28576865792274475,
0.06505496054887772,
0.425435870885849,
-1.0815602540969849,
-0.2350696325302124,
-0.32327914237976074,
-0.8823674321174622,
-0.838369607925415,
-0.44707202911376953,
-0.3757894039154053,
1.5783016681671143,
0.02582545205950737,
-0.5081170201301575,
0.08231198787689209,
-0.763765811920166,
-0.16003482043743134,
-1.045320987701416,
0.15866081416606903,
-0.17857134342193604,
-0.09567499905824661,
-0.17298166453838348,
1.6335010528564453,
-0.9785197377204895,
-2.090766429901123,
0.2400916963815689,
0.24402286112308502,
-0.3618173897266388,
0.15177272260189056,
1.7147912979125977,
0.5094953775405884,
1.395127534866333,
1.3466289043426514,
1.0127160549163818,
-0.6387749910354614,
-1.2611931562423706,
0.7217236161231995,
0.9800177812576294,
-1.3625885248184204,
0.8640153408050537,
-0.0688098669052124,
-0.5206362009048462,
0.6629301905632019,
1.3195486068725586,
0.44044753909111023,
-2.00632905960083,
0.7621892094612122,
-0.9252059459686279,
0.7398068904876709,
0.739475429058075,
0.832608699798584,
0.25988340377807617,
0.8102158904075623,
-1.2088327407836914,
-1.1408690214157104,
-0.6503634452819824,
-0.687558114528656,
1.8879144191741943,
-0.19763396680355072,
0.596725583076477,
-0.1427803933620453,
-1.2773962020874023,
-0.09735942631959915,
0.8873419165611267,
0.4022994041442871,
-0.5364833474159241,
0.7879591584205627,
-0.63409024477005,
-0.9318905472755432,
-1.2426496744155884,
-0.4750945568084717,
-1.0542104244232178,
-0.8929034471511841,
1.0112121105194092,
0.7767508625984192,
0.4116840064525604,
1.9442505836486816,
0.6869797110557556,
0.3231986463069916,
-2.612781286239624,
0.852246880531311,
0.29321780800819397,
-0.04259498789906502,
0.8058704733848572,
0.342911034822464,
1.0771870613098145,
-0.03709162399172783,
0.6579252481460571,
-2.4039154052734375,
2.2781240940093994,
-0.17595221102237701,
0.6038881540298462,
-0.03389719873666763,
-0.1623021960258484,
1.0858473777770996,
0.5972007513046265,
0.5053228139877319,
-1.0848616361618042,
0.7084896564483643,
-0.622518002986908,
1.15998375415802,
0.8441503643989563,
-0.9481687545776367,
0.043546758592128754,
1.4048702716827393,
0.4400118887424469,
-0.5035818815231323,
-0.9027963876724243,
-0.9232628345489502,
0.9687721729278564,
1.7084769010543823,
-0.0659487321972847,
0.013677631504833698,
0.9423863291740417,
0.6599072217941284,
-1.213746428489685,
0.022567790001630783,
-0.7038558125495911,
-0.6882976293563843,
1.7437573671340942,
1.999729037284851,
-0.11843384802341461,
-0.08268006145954132,
-0.7842175960540771,
-1.247666358947754,
0.8080098628997803,
0.0010499805212020874,
-0.038613129407167435,
0.7125145196914673,
-0.6258074641227722,
1.1512812376022339,
0.68463534116745,
1.0154197216033936,
0.06147664785385132,
0.3056935966014862,
0.38376864790916443,
-0.4276481866836548,
-1.1793324947357178,
-0.340131014585495,
-1.1234956979751587,
-2.588510751724243,
0.4085598886013031,
-0.17271852493286133,
-1.483343482017517,
0.013159642927348614,
-0.9975482225418091,
0.8547295331954956,
-0.6291796565055847,
-1.1250109672546387,
-1.3752549886703491,
0.36146244406700134,
-0.10765020549297333,
0.9284862875938416,
-1.6615296602249146,
-0.11720486730337143,
1.1964116096496582,
0.8964913487434387,
-0.6709868311882019,
0.8894762992858887,
0.24234627187252045,
0.9716618061065674,
0.8272337913513184,
-0.3474612534046173,
0.5797885060310364,
0.04769929498434067,
-1.3103318214416504,
0.42338865995407104,
1.2174323797225952,
0.16602258384227753,
1.3575773239135742,
-0.5275878310203552,
0.06315521895885468,
0.4094226658344269,
-0.5683637261390686,
-0.47759443521499634,
-0.5051195621490479,
0.7452136874198914,
0.05881107598543167,
-0.9792395830154419,
-0.030524425208568573,
-0.08103127777576447,
-0.2246028184890747,
0.2045537829399109,
-1.436160922050476,
-0.1627257764339447,
-0.31304267048835754,
-0.529259979724884,
-1.3141453266143799,
0.008105386979877949,
1.3522318601608276,
-0.6996396780014038,
-0.23692728579044342,
0.528089702129364,
0.27764827013015747,
0.5147225260734558,
0.5527485013008118,
-0.744633674621582,
-0.32868027687072754,
-0.3323282301425934,
-0.31912484765052795,
0.2589016258716583,
1.3325142860412598,
-0.02514985203742981,
-1.0338584184646606,
0.76130211353302,
-0.4016991853713989,
0.11212678998708725,
1.9385480880737305,
0.07246487587690353,
-0.7546563148498535,
0.3199835419654846,
-0.7232829928398132,
1.81879723072052,
1.7859833240509033,
1.3198230266571045,
-0.04966743290424347,
-0.8915672898292542,
0.6113607287406921,
-0.37515902519226074,
-0.38854658603668213,
0.9238846898078918,
0.3225978910923004,
-0.2668369710445404,
-1.4252551794052124,
0.6492332220077515,
1.2795395851135254,
-0.7874571681022644,
-0.8261348009109497,
0.08526790142059326,
-0.8686121702194214,
1.2227169275283813,
0.6537937521934509,
0.38540858030319214,
0.2765800952911377,
1.601736068725586,
0.7477908134460449,
-0.39879894256591797,
0.5538686513900757,
0.5281771421432495,
-0.1995454877614975,
-2.120521068572998,
-1.0584336519241333,
0.31938785314559937,
-0.4726138710975647,
-1.600784420967102,
1.3879568576812744,
-1.2133225202560425,
-0.9803425669670105,
0.5187803506851196,
0.1288185864686966,
1.354120135307312,
0.35352975130081177,
1.645492434501648,
2.109436511993408,
0.8557237982749939,
0.38892436027526855,
1.249511480331421,
-0.14471352100372314,
-0.3913313150405884,
1.8472379446029663,
-0.4616539478302002,
0.5234229564666748,
1.065331220626831,
-0.3935883939266205,
-1.1000730991363525,
-0.8245139122009277,
-1.2076616287231445,
-0.714546263217926,
1.1870965957641602,
0.12754321098327637,
-1.0801279544830322,
0.2932710349559784,
1.6296435594558716,
0.07966794818639755,
-0.25167879462242126,
0.7288604378700256,
0.3820103406906128,
-0.8293293714523315,
-0.06977389007806778,
-0.8549509048461914,
0.5416139364242554,
-0.10944289714097977,
-0.31514671444892883,
0.37070775032043457,
0.55402010679245,
1.3470770120620728,
-0.023447129875421524,
0.06569644808769226,
1.128732442855835,
-1.422415018081665,
1.5214060544967651,
-0.6274311542510986,
0.29110652208328247,
-2.414792537689209,
1.340458869934082,
-0.7253807187080383,
1.8593140840530396,
-2.626842737197876,
0.4266064167022705,
-0.49101799726486206,
-0.5379229187965393,
0.26343420147895813,
-0.3870187997817993,
0.0556705966591835,
-0.12940452992916107,
-1.0842593908309937,
-0.03825831785798073,
-0.7109977006912231,
0.5802164673805237,
1.1553561687469482,
1.4336084127426147,
-1.162013292312622,
-0.2965523302555084,
-1.7783989906311035,
-0.1510736346244812,
-0.7221725583076477,
0.32395920157432556,
-1.947177767753601,
-0.20427203178405762,
-2.003234624862671,
-2.3327083587646484,
-1.3748255968093872,
-0.845696210861206,
1.0682587623596191,
0.1369209587574005,
-0.901214063167572,
1.152119517326355,
-0.399785578250885,
-1.8814594745635986,
1.1315796375274658,
-2.2326393127441406
] |
https://github.com/huggingface/datasets/issues/5314 | Datasets: classification_report() got an unexpected keyword argument 'suffix' | @JonathanAlis also note that the metrics are deprecated in our `datasets` library.
Please, use the new library 🤗 Evaluate instead: https://huggingface.co/docs/evaluate | https://github.com/huggingface/datasets/blob/main/metrics/seqeval/seqeval.py
> import datasets
predictions = [['O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']]
references = [['O', 'O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']]
seqeval = datasets.load_metric("seqeval")
results = seqeval.compute(predictions=predictions, references=references)
print(list(results.keys()))
print(results["overall_f1"])
print(results["PER"]["f1"])
It raises the error:
> TypeError: classification_report() got an unexpected keyword argument 'suffix'
For context, versions on my pip list -v
> datasets 1.12.1
seqeval 1.2.2 | 391 | 21 | Datasets: classification_report() got an unexpected keyword argument 'suffix'
https://github.com/huggingface/datasets/blob/main/metrics/seqeval/seqeval.py
> import datasets
predictions = [['O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']]
references = [['O', 'O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']]
seqeval = datasets.load_metric("seqeval")
results = seqeval.compute(predictions=predictions, references=references)
print(list(results.keys()))
print(results["overall_f1"])
print(results["PER"]["f1"])
It raises the error:
> TypeError: classification_report() got an unexpected keyword argument 'suffix'
For context, versions on my pip list -v
> datasets 1.12.1
seqeval 1.2.2
@JonathanAlis also note that the metrics are deprecated in our `datasets` library.
Please, use the new library 🤗 Evaluate instead: https://huggingface.co/docs/evaluate | [
-1.3552393913269043,
-0.9346601963043213,
-0.8406415581703186,
1.6598427295684814,
-0.20891276001930237,
-1.05767822265625,
-0.007367828860878944,
-0.9546255469322205,
1.5658034086227417,
-0.7757533192634583,
0.22902336716651917,
-1.7130876779556274,
-0.0316036082804203,
-0.6408032178878784,
-0.63969486951828,
-0.8062171936035156,
-0.21406538784503937,
-0.8141576647758484,
1.2184710502624512,
2.415494203567505,
1.0416392087936401,
-1.4750477075576782,
2.8458845615386963,
0.7388051748275757,
-0.047305114567279816,
-1.1047898530960083,
0.5348538160324097,
-0.13650697469711304,
-1.1503844261169434,
-0.44250768423080444,
-1.019405484199524,
-0.058746661990880966,
-0.6900231242179871,
-0.3866472840309143,
0.01809648796916008,
0.39229872822761536,
-0.2053966522216797,
-0.34079402685165405,
-0.4305036962032318,
-0.6608447432518005,
0.3626320958137512,
-0.40721285343170166,
0.8259365558624268,
-0.2579086422920227,
1.7379311323165894,
-0.43740588426589966,
0.24460025131702423,
0.5631320476531982,
1.3957442045211792,
0.3114715814590454,
0.16282358765602112,
0.42992767691612244,
0.3505958020687103,
-0.005352984648197889,
0.6856281757354736,
1.2443013191223145,
0.6550211906433105,
0.345444917678833,
0.7931024432182312,
-2.2887775897979736,
1.2405844926834106,
-1.1294629573822021,
0.27562665939331055,
1.402296543121338,
-0.8124728202819824,
0.5555787682533264,
-1.7911409139633179,
0.03505444526672363,
0.6326876878738403,
-2.2052078247070312,
0.2279094010591507,
-1.2905827760696411,
-0.3703811466693878,
0.8914369940757751,
0.43279919028282166,
-1.3941620588302612,
0.14607752859592438,
-0.3651566803455353,
1.0664653778076172,
0.3603259027004242,
1.011199951171875,
-1.7176326513290405,
0.1286914348602295,
-0.28631532192230225,
0.1767178624868393,
-1.2772786617279053,
-1.5597195625305176,
0.4908975660800934,
0.5495670437812805,
0.7853876948356628,
-0.100840263068676,
0.9557350277900696,
-1.26834237575531,
0.6381165385246277,
-1.0095280408859253,
-1.7104278802871704,
-1.4003796577453613,
-2.3955743312835693,
-2.2599809169769287,
0.8087164759635925,
-0.46967005729675293,
-0.5035361647605896,
1.9744142293930054,
-0.9155880212783813,
-1.8005508184432983,
1.226879596710205,
0.5034811496734619,
0.1121511310338974,
2.5557808876037598,
0.14657486975193024,
-0.8557559251785278,
0.5223340392112732,
-0.9095296263694763,
0.7646175622940063,
-0.28568726778030396,
1.462998867034912,
0.5198371410369873,
-0.8621923923492432,
1.6943968534469604,
-0.45928773283958435,
0.4933057129383087,
-0.5447737574577332,
-0.4461471140384674,
-0.7918371558189392,
0.28371813893318176,
1.906103253364563,
-0.10123300552368164,
1.5027098655700684,
-0.4689641296863556,
-1.5135035514831543,
-1.47803795337677,
0.8617676496505737,
0.3495279550552368,
-0.976766049861908,
0.1675107628107071,
-0.40034621953964233,
0.1453496366739273,
-0.05426137149333954,
1.2665987014770508,
1.3023546934127808,
0.5650293231010437,
-0.2608724534511566,
-0.943686306476593,
0.15253588557243347,
-0.22934174537658691,
-0.6782553195953369,
-1.8576300144195557,
-0.27833157777786255,
0.14117099344730377,
0.7468444108963013,
-1.3022525310516357,
1.6325799226760864,
0.8488690257072449,
1.767153263092041,
1.0943313837051392,
-0.4317719340324402,
1.517093539237976,
0.08607043325901031,
1.8123043775558472,
-0.6411564946174622,
0.6181262731552124,
-0.4623122215270996,
-1.1692650318145752,
0.8876688480377197,
-0.3650779724121094,
-1.938851237297058,
-0.7821007370948792,
-0.932182252407074,
-0.32058876752853394,
-0.8295208811759949,
0.7915036082267761,
-0.43248093128204346,
-1.5033936500549316,
0.32662293314933777,
-0.7889202237129211,
0.2111840844154358,
-1.1510947942733765,
0.316631019115448,
0.7863801717758179,
-0.5852899551391602,
0.12627817690372467,
-0.28169310092926025,
-1.351645827293396,
-0.5096876621246338,
0.4861094355583191,
1.8952264785766602,
-0.7217873334884644,
0.7994102239608765,
1.0421372652053833,
-0.7233580350875854,
-0.06151377782225609,
0.27825453877449036,
-0.1855112910270691,
0.7539576888084412,
-0.9052827954292297,
-0.7095462083816528,
1.1648834943771362,
-0.21235895156860352,
-0.582848310470581,
1.2881439924240112,
0.9240610003471375,
-1.0017893314361572,
-0.2973337769508362,
-0.2348172813653946,
-0.799497127532959,
0.1006014421582222,
-1.5660667419433594,
-0.3574669361114502,
0.4438268542289734,
-1.5767910480499268,
-0.5166391134262085,
-0.2600991129875183,
1.2866781949996948,
-0.13748012483119965,
1.356467604637146,
-0.35605061054229736,
-0.10264042764902115,
-0.2195400446653366,
-0.6068517565727234,
0.3510850965976715,
-0.33534950017929077,
-0.6625893115997314,
0.11743881553411484,
-0.8119039535522461,
0.3655496835708618,
1.3818663358688354,
0.4815113842487335,
0.06738821417093277,
0.5187578797340393,
1.1317685842514038,
0.4690488874912262,
0.18774570524692535,
-0.902523398399353,
-1.520190715789795,
2.0109102725982666,
-1.5516008138656616,
2.019723415374756,
0.5948613882064819,
-0.04381256178021431,
-1.728371262550354,
-1.7673438787460327,
1.4392178058624268,
1.247328519821167,
2.2548861503601074,
0.6099052429199219,
0.3562868535518646,
-0.881514847278595,
-0.7411602139472961,
0.1707059144973755,
-0.8500648736953735,
-0.8368627429008484,
0.14567020535469055,
2.4655909538269043,
1.7500263452529907,
-0.49056729674339294,
-0.12822076678276062,
-0.8899545669555664,
1.470549464225769,
-0.3714736998081207,
0.4169922471046448,
2.048708915710449,
-0.23918315768241882,
-1.1124552488327026,
1.3273240327835083,
-2.474942684173584,
0.27934494614601135,
2.0633668899536133,
0.3606702387332916,
0.1379760205745697,
-1.3798503875732422,
-0.8380361199378967,
-0.2750294506549835,
-0.4526248574256897,
-1.2920154333114624,
0.5343080163002014,
-0.2749776542186737,
-0.777347207069397,
-1.503466010093689,
0.06780888885259628,
-1.1977866888046265,
-1.5423744916915894,
0.23113276064395905,
1.9509227275848389,
2.1892077922821045,
-0.7987694144248962,
1.5363914966583252,
-0.1034298911690712,
0.33004963397979736,
1.3088586330413818,
1.1895644664764404,
3.0032873153686523,
1.7531569004058838,
-1.0528407096862793,
0.5601330399513245,
-0.25170597434043884,
-0.5230545997619629,
1.175950288772583,
-1.0243632793426514,
1.1411956548690796,
-0.04747765138745308,
-1.1593817472457886,
-1.1792328357696533,
0.934487521648407,
0.44069111347198486,
-0.16640038788318634,
-0.477107971906662,
1.0917667150497437,
-0.0695922002196312,
1.207579493522644,
0.655742347240448,
-0.23290400207042694,
0.3298252820968628,
-0.3985011577606201,
-0.5994514226913452,
1.5772662162780762,
-0.03944874554872513,
-1.6232479810714722,
-2.1710596084594727,
-0.16882166266441345,
-0.7889158129692078,
-0.05518359690904617,
-0.5713574886322021,
-1.0836480855941772,
1.506377100944519,
0.3141595125198364,
-1.0449343919754028,
-0.09867929667234421,
-0.47753384709358215,
-0.5206478834152222,
2.684063196182251,
-1.3499348163604736,
-0.36371365189552307,
-0.9558554887771606,
-0.6341223120689392,
1.6238926649093628,
-1.0064154863357544,
0.009379700757563114,
-0.969735324382782,
-0.5928974747657776,
-1.4493497610092163,
-0.41048988699913025,
-0.04626884311437607,
-0.9224758744239807,
0.793220579624176,
0.2894134223461151,
-1.0571081638336182,
-0.34127482771873474,
-0.9939911961555481,
0.8839235305786133,
-0.1766836792230606,
0.25893521308898926,
1.990833044052124,
0.26922252774238586,
-0.2712537944316864,
0.8989993333816528,
1.211576223373413,
0.7113384008407593,
-0.5094022154808044,
0.17627087235450745,
-0.46062853932380676,
0.45822674036026,
-1.3656901121139526,
0.19971182942390442,
-2.953970432281494,
0.7014326453208923,
0.04920622706413269,
-0.20988234877586365,
0.008103610016405582,
-1.3473083972930908,
1.222316861152649,
2.371716260910034,
-1.2428321838378906,
0.5158379673957825,
0.2573416829109192,
1.3230681419372559,
-1.690337061882019,
0.1354915052652359,
-0.4049583375453949,
2.1558690071105957,
0.15461750328540802,
1.1825721263885498,
-0.519040048122406,
-2.5339667797088623,
0.6263500452041626,
-1.2499865293502808,
-0.8671098947525024,
0.6643950939178467,
-0.9384053945541382,
0.36020082235336304,
-1.5954408645629883,
-0.185133695602417,
-0.9818965196609497,
-1.0754384994506836,
0.69910728931427,
0.14829164743423462,
0.31877604126930237,
-0.5715429186820984,
0.3986128866672516,
-2.171881914138794,
-1.5057613849639893,
-0.05416642874479294,
-0.9148760437965393,
0.6656848788261414,
-0.2971229553222656,
0.6382673382759094,
-0.024864226579666138,
-0.06484953314065933,
0.19231504201889038,
1.5709385871887207,
3.37257981300354,
0.1085837334394455,
0.46980008482933044,
-0.12879247963428497,
-1.0102810859680176,
1.4543908834457397,
0.9550984501838684,
-0.17740149796009064,
-0.4644089341163635,
-1.0849372148513794,
1.4906753301620483,
1.9601274728775024,
0.9432394504547119,
0.03502186760306358,
-0.7040054798126221,
-0.6211294531822205,
0.008424163796007633,
0.28720271587371826,
0.5239546298980713,
0.8724026083946228,
-0.05472332984209061,
0.08104868233203888,
1.4364358186721802,
1.16073477268219,
-0.5047944188117981,
0.348137229681015,
-0.9680548906326294,
-0.42501217126846313,
0.5162291526794434,
0.09058018773794174,
-0.18964099884033203,
0.5008060336112976,
-1.043611764907837,
-0.2696971595287323,
-0.22567714750766754,
-0.8632916212081909,
-0.694004237651825,
-0.3719908893108368,
-0.34333276748657227,
1.5242043733596802,
0.27594971656799316,
-0.6033675670623779,
0.02548728510737419,
-0.7538574934005737,
-0.1407724916934967,
-1.0283472537994385,
-0.0075293043628335,
-0.2004673182964325,
-0.11964716017246246,
-0.29046982526779175,
1.7104564905166626,
-0.9128870368003845,
-2.0167386531829834,
-0.028154518455266953,
0.5503208637237549,
-0.16092492640018463,
0.16061514616012573,
1.6956281661987305,
0.40226882696151733,
1.5232932567596436,
1.3784172534942627,
0.9449149370193481,
-0.5188652873039246,
-1.3923139572143555,
0.6483229994773865,
1.0810240507125854,
-1.187412977218628,
0.948566198348999,
-0.17697446048259735,
-0.6015871167182922,
0.6134732961654663,
1.4741815328598022,
0.38511472940444946,
-1.9813334941864014,
0.8411262035369873,
-1.0514830350875854,
0.875447154045105,
0.702785074710846,
0.8252142071723938,
0.32907065749168396,
0.8440520167350769,
-1.3055758476257324,
-1.1421765089035034,
-0.7903686761856079,
-0.6464844346046448,
1.9050906896591187,
-0.18756993114948273,
0.5437212586402893,
-0.1120094507932663,
-1.219443440437317,
-0.13046322762966156,
0.548298716545105,
0.4342765212059021,
-0.37037190794944763,
0.8810337781906128,
-0.8292868137359619,
-1.29079008102417,
-1.549552083015442,
-0.5019192695617676,
-0.8887960314750671,
-1.0257922410964966,
0.9502933621406555,
0.8716745376586914,
0.3338835835456848,
1.8471486568450928,
0.5506810545921326,
0.14261426031589508,
-2.533329725265503,
0.9434141516685486,
0.19027453660964966,
-0.15903368592262268,
0.7782711982727051,
0.2655913233757019,
1.2341487407684326,
-0.06428961455821991,
0.5824744701385498,
-2.1819708347320557,
2.153001308441162,
-0.1830621212720871,
0.8252846598625183,
-0.17106685042381287,
0.04373931884765625,
0.9960013628005981,
0.5355468988418579,
0.6389146447181702,
-1.000452995300293,
0.7089232206344604,
-0.550348699092865,
1.3050953149795532,
1.088293194770813,
-0.7399051785469055,
-0.012319466099143028,
1.382136344909668,
0.30755800008773804,
-0.72629714012146,
-0.9833680987358093,
-0.7729817628860474,
0.9227126240730286,
1.6512978076934814,
-0.06880240142345428,
-0.07129561901092529,
0.7420521974563599,
0.5345560312271118,
-1.3591996431350708,
-0.02084680274128914,
-0.5362101793289185,
-0.5708943009376526,
1.8168092966079712,
2.0949273109436035,
-0.33356496691703796,
-0.15469886362552643,
-0.6252745985984802,
-1.298075556755066,
0.5538952946662903,
0.025516852736473083,
0.07979419827461243,
0.7662813663482666,
-0.6413429975509644,
1.0038516521453857,
0.7212055325508118,
0.8453428149223328,
0.15182703733444214,
0.3497268855571747,
0.3063250780105591,
-0.3931695818901062,
-1.1357262134552002,
-0.3860829472541809,
-1.1990282535552979,
-2.5515971183776855,
0.2958715856075287,
-0.23954477906227112,
-1.3666850328445435,
0.1399628221988678,
-0.9206070899963379,
0.9588489532470703,
-0.5655490159988403,
-1.1556345224380493,
-1.2966423034667969,
0.33231836557388306,
0.01836535707116127,
0.7690305113792419,
-1.7782407999038696,
-0.0031748744659125805,
1.2910712957382202,
1.0630509853363037,
-0.5834025144577026,
1.0912445783615112,
0.435168594121933,
1.1150461435317993,
0.7684347033500671,
-0.47049015760421753,
0.5295183658599854,
-0.06309014558792114,
-1.2831429243087769,
0.5190246105194092,
1.2033193111419678,
0.13991926610469818,
1.3293260335922241,
-0.4652714729309082,
-0.06858853250741959,
0.41508257389068604,
-0.6265128254890442,
-0.41634246706962585,
-0.4753786027431488,
0.56763756275177,
0.0685742124915123,
-0.8797979950904846,
-0.022130440920591354,
-0.005638273898512125,
-0.2870010733604431,
0.24735619127750397,
-1.4841666221618652,
-0.2376210242509842,
-0.4421079456806183,
-0.47609367966651917,
-1.3347258567810059,
-0.022498497739434242,
1.361283302307129,
-0.7658814191818237,
-0.29631441831588745,
0.5429613590240479,
0.33540835976600647,
0.443402498960495,
0.6604326367378235,
-0.6786848306655884,
-0.3787747323513031,
-0.19805702567100525,
-0.2608222961425781,
0.21374090015888214,
1.1993017196655273,
-0.21342794597148895,
-1.0499851703643799,
0.6538012623786926,
-0.31355705857276917,
0.03207792714238167,
1.708310604095459,
-0.16632218658924103,
-0.8913793563842773,
0.19972069561481476,
-0.7450422644615173,
2.0586531162261963,
1.5678508281707764,
1.2208292484283447,
-0.2600898742675781,
-0.780017077922821,
0.7141997218132019,
-0.3097749948501587,
-0.40172284841537476,
0.696098268032074,
0.3982684314250946,
-0.2557533383369446,
-1.4048056602478027,
0.6627418994903564,
1.3205070495605469,
-0.8707403540611267,
-0.7621407508850098,
0.177029088139534,
-0.8400591015815735,
1.1280438899993896,
0.6796818971633911,
0.3081161081790924,
0.26022109389305115,
1.8280271291732788,
0.8162600994110107,
-0.6101457476615906,
0.5255034565925598,
0.5924842357635498,
-0.20571239292621613,
-2.05944561958313,
-1.1218690872192383,
0.08392106741666794,
-0.43594688177108765,
-1.6340950727462769,
1.3272560834884644,
-1.038095235824585,
-0.7851102352142334,
0.5993094444274902,
0.12252949923276901,
1.251204490661621,
0.35301539301872253,
1.4507629871368408,
1.902238368988037,
0.7312601208686829,
0.45284250378608704,
1.170100212097168,
-0.17640186846256256,
-0.42582282423973083,
1.815060019493103,
-0.3236547112464905,
0.6081428527832031,
1.070467472076416,
-0.30806294083595276,
-1.1039924621582031,
-0.7324705719947815,
-1.2806977033615112,
-0.661824643611908,
1.1423348188400269,
0.17908994853496552,
-1.1502076387405396,
0.19766412675380707,
1.5660145282745361,
-0.0217813178896904,
-0.4302132725715637,
0.7215045094490051,
0.5632904171943665,
-0.745419979095459,
-0.03773130476474762,
-1.0320631265640259,
0.5296924710273743,
-0.22315864264965057,
-0.20871591567993164,
0.30291035771369934,
0.3623262345790863,
1.4013298749923706,
0.0628792867064476,
0.18678787350654602,
1.130218267440796,
-1.3292571306228638,
1.5593351125717163,
-0.831893801689148,
0.3793831467628479,
-2.380577564239502,
1.2667808532714844,
-0.8166154623031616,
2.1832058429718018,
-2.625425100326538,
0.4883216321468353,
-0.6153338551521301,
-0.4698992371559143,
0.2608865797519684,
-0.3576226532459259,
0.07185922563076019,
0.03807861730456352,
-1.0394220352172852,
-0.054095398634672165,
-0.7805488705635071,
0.32378098368644714,
1.2228775024414062,
1.3270883560180664,
-1.0806185007095337,
-0.22475920617580414,
-1.6843745708465576,
-0.1864638477563858,
-0.8078315258026123,
0.3135104477405548,
-2.030515432357788,
-0.2566409707069397,
-1.8679203987121582,
-2.351346254348755,
-1.248315453529358,
-0.797103226184845,
1.2507325410842896,
0.028624851256608963,
-0.9319829344749451,
1.4369839429855347,
-0.1800760179758072,
-1.7094923257827759,
1.0363032817840576,
-1.9651652574539185
] |
https://github.com/huggingface/datasets/issues/5305 | Dataset joelito/mc4_legal does not work with multiple files | Thanks for reporting @JoelNiklaus.
Please note that since we moved all dataset loading scripts to the Hub, the issues and pull requests relative to specific datasets are directly handled on the Hub, in their Community tab. I'm transferring this issue there: https://huggingface.co/datasets/joelito/mc4_legal/discussions
I am also having a look at the bug in your script. | ### Describe the bug
The dataset https://huggingface.co/datasets/joelito/mc4_legal works for languages like bg with a single data file, but not for languages with multiple files like de. It shows zero rows for the de dataset.
joelniklaus@Joels-MacBook-Pro ~/N/P/C/L/p/m/mc4_legal (main) [1]> python test_mc4_legal.py (debug)
Found cached dataset mc4_legal (/Users/joelniklaus/.cache/huggingface/datasets/mc4_legal/de/0.0.0/fb6952a097180f8c936e2a7605525ff670354a344fc1a2c70107684d3f7cb02f)
Dataset({
features: ['index', 'url', 'timestamp', 'matches', 'text'],
num_rows: 0
})
joelniklaus@Joels-MacBook-Pro ~/N/P/C/L/p/m/mc4_legal (main)> python test_mc4_legal.py (debug)
Downloading and preparing dataset mc4_legal/bg to /Users/joelniklaus/.cache/huggingface/datasets/mc4_legal/bg/0.0.0/fb6952a097180f8c936e2a7605525ff670354a344fc1a2c70107684d3f7cb02f...
Downloading data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1240.55it/s]
Dataset mc4_legal downloaded and prepared to /Users/joelniklaus/.cache/huggingface/datasets/mc4_legal/bg/0.0.0/fb6952a097180f8c936e2a7605525ff670354a344fc1a2c70107684d3f7cb02f. Subsequent calls will reuse this data.
Dataset({
features: ['index', 'url', 'timestamp', 'matches', 'text'],
num_rows: 204
})
### Steps to reproduce the bug
import datasets
from datasets import load_dataset, get_dataset_config_names
language = "bg"
test = load_dataset("joelito/mc4_legal", language, split='train')
### Expected behavior
It should display the correct number of rows for the de dataset which should be a large number (thousands or more).
### Environment info
Package Version
------------------------ --------------
absl-py 1.3.0
aiohttp 3.8.1
aiosignal 1.2.0
astunparse 1.6.3
async-timeout 4.0.2
attrs 22.1.0
beautifulsoup4 4.11.1
blinker 1.4
blis 0.7.8
Bottleneck 1.3.4
brotlipy 0.7.0
cachetools 5.2.0
catalogue 2.0.7
certifi 2022.5.18.1
cffi 1.15.1
chardet 4.0.0
charset-normalizer 2.1.0
click 8.0.4
conllu 4.5.2
cryptography 38.0.1
cymem 2.0.6
datasets 2.6.1
dill 0.3.5.1
docker-pycreds 0.4.0
fasttext 0.9.2
fasttext-langdetect 1.0.3
filelock 3.0.12
flatbuffers 20210226132247
frozenlist 1.3.0
fsspec 2022.5.0
gast 0.4.0
gcloud 0.18.3
gitdb 4.0.9
GitPython 3.1.27
google-auth 2.9.0
google-auth-oauthlib 0.4.6
google-pasta 0.2.0
googleapis-common-protos 1.57.0
grpcio 1.47.0
h5py 3.7.0
httplib2 0.21.0
huggingface-hub 0.8.1
idna 3.4
importlib-metadata 4.12.0
Jinja2 3.1.2
joblib 1.0.1
keras 2.9.0
Keras-Preprocessing 1.1.2
langcodes 3.3.0
lxml 4.9.1
Markdown 3.3.7
MarkupSafe 2.1.1
mkl-fft 1.3.1
mkl-random 1.2.2
mkl-service 2.4.0
multidict 6.0.2
multiprocess 0.70.13
murmurhash 1.0.7
numexpr 2.8.1
numpy 1.22.3
oauth2client 4.1.3
oauthlib 3.2.1
opt-einsum 3.3.0
packaging 21.3
pandas 1.4.2
pathtools 0.1.2
pathy 0.6.1
pip 21.1.2
preshed 3.0.6
promise 2.3
protobuf 4.21.9
psutil 5.9.1
pyarrow 8.0.0
pyasn1 0.4.8
pyasn1-modules 0.2.8
pybind11 2.9.2
pycountry 22.3.5
pycparser 2.21
pydantic 1.8.2
PyJWT 2.4.0
pylzma 0.5.0
pyOpenSSL 22.0.0
pyparsing 3.0.4
PySocks 1.7.1
python-dateutil 2.8.2
pytz 2021.3
PyYAML 6.0
regex 2021.4.4
requests 2.28.1
requests-oauthlib 1.3.1
responses 0.18.0
rsa 4.8
sacremoses 0.0.45
scikit-learn 1.1.1
scipy 1.8.1
sentencepiece 0.1.96
sentry-sdk 1.6.0
setproctitle 1.2.3
setuptools 65.5.0
shortuuid 1.0.9
six 1.16.0
smart-open 5.2.1
smmap 5.0.0
soupsieve 2.3.2.post1
spacy 3.3.1
spacy-legacy 3.0.9
spacy-loggers 1.0.2
srsly 2.4.3
tabulate 0.8.9
tensorboard 2.9.1
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.1
tensorflow 2.9.1
tensorflow-estimator 2.9.0
termcolor 2.1.0
thinc 8.0.17
threadpoolctl 3.1.0
tokenizers 0.12.1
torch 1.13.0
tqdm 4.64.0
transformers 4.20.1
typer 0.4.1
typing-extensions 4.3.0
Unidecode 1.3.6
urllib3 1.26.12
wandb 0.12.20
wasabi 0.9.1
web-anno-tsv 0.0.1
Werkzeug 2.1.2
wget 3.2
wheel 0.35.1
wrapt 1.14.1
xxhash 3.0.0
yarl 1.8.1
zipp 3.8.0
Python 3.8.10
| 393 | 54 | Dataset joelito/mc4_legal does not work with multiple files
### Describe the bug
The dataset https://huggingface.co/datasets/joelito/mc4_legal works for languages like bg with a single data file, but not for languages with multiple files like de. It shows zero rows for the de dataset.
joelniklaus@Joels-MacBook-Pro ~/N/P/C/L/p/m/mc4_legal (main) [1]> python test_mc4_legal.py (debug)
Found cached dataset mc4_legal (/Users/joelniklaus/.cache/huggingface/datasets/mc4_legal/de/0.0.0/fb6952a097180f8c936e2a7605525ff670354a344fc1a2c70107684d3f7cb02f)
Dataset({
features: ['index', 'url', 'timestamp', 'matches', 'text'],
num_rows: 0
})
joelniklaus@Joels-MacBook-Pro ~/N/P/C/L/p/m/mc4_legal (main)> python test_mc4_legal.py (debug)
Downloading and preparing dataset mc4_legal/bg to /Users/joelniklaus/.cache/huggingface/datasets/mc4_legal/bg/0.0.0/fb6952a097180f8c936e2a7605525ff670354a344fc1a2c70107684d3f7cb02f...
Downloading data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1240.55it/s]
Dataset mc4_legal downloaded and prepared to /Users/joelniklaus/.cache/huggingface/datasets/mc4_legal/bg/0.0.0/fb6952a097180f8c936e2a7605525ff670354a344fc1a2c70107684d3f7cb02f. Subsequent calls will reuse this data.
Dataset({
features: ['index', 'url', 'timestamp', 'matches', 'text'],
num_rows: 204
})
### Steps to reproduce the bug
import datasets
from datasets import load_dataset, get_dataset_config_names
language = "bg"
test = load_dataset("joelito/mc4_legal", language, split='train')
### Expected behavior
It should display the correct number of rows for the de dataset which should be a large number (thousands or more).
### Environment info
Package Version
------------------------ --------------
absl-py 1.3.0
aiohttp 3.8.1
aiosignal 1.2.0
astunparse 1.6.3
async-timeout 4.0.2
attrs 22.1.0
beautifulsoup4 4.11.1
blinker 1.4
blis 0.7.8
Bottleneck 1.3.4
brotlipy 0.7.0
cachetools 5.2.0
catalogue 2.0.7
certifi 2022.5.18.1
cffi 1.15.1
chardet 4.0.0
charset-normalizer 2.1.0
click 8.0.4
conllu 4.5.2
cryptography 38.0.1
cymem 2.0.6
datasets 2.6.1
dill 0.3.5.1
docker-pycreds 0.4.0
fasttext 0.9.2
fasttext-langdetect 1.0.3
filelock 3.0.12
flatbuffers 20210226132247
frozenlist 1.3.0
fsspec 2022.5.0
gast 0.4.0
gcloud 0.18.3
gitdb 4.0.9
GitPython 3.1.27
google-auth 2.9.0
google-auth-oauthlib 0.4.6
google-pasta 0.2.0
googleapis-common-protos 1.57.0
grpcio 1.47.0
h5py 3.7.0
httplib2 0.21.0
huggingface-hub 0.8.1
idna 3.4
importlib-metadata 4.12.0
Jinja2 3.1.2
joblib 1.0.1
keras 2.9.0
Keras-Preprocessing 1.1.2
langcodes 3.3.0
lxml 4.9.1
Markdown 3.3.7
MarkupSafe 2.1.1
mkl-fft 1.3.1
mkl-random 1.2.2
mkl-service 2.4.0
multidict 6.0.2
multiprocess 0.70.13
murmurhash 1.0.7
numexpr 2.8.1
numpy 1.22.3
oauth2client 4.1.3
oauthlib 3.2.1
opt-einsum 3.3.0
packaging 21.3
pandas 1.4.2
pathtools 0.1.2
pathy 0.6.1
pip 21.1.2
preshed 3.0.6
promise 2.3
protobuf 4.21.9
psutil 5.9.1
pyarrow 8.0.0
pyasn1 0.4.8
pyasn1-modules 0.2.8
pybind11 2.9.2
pycountry 22.3.5
pycparser 2.21
pydantic 1.8.2
PyJWT 2.4.0
pylzma 0.5.0
pyOpenSSL 22.0.0
pyparsing 3.0.4
PySocks 1.7.1
python-dateutil 2.8.2
pytz 2021.3
PyYAML 6.0
regex 2021.4.4
requests 2.28.1
requests-oauthlib 1.3.1
responses 0.18.0
rsa 4.8
sacremoses 0.0.45
scikit-learn 1.1.1
scipy 1.8.1
sentencepiece 0.1.96
sentry-sdk 1.6.0
setproctitle 1.2.3
setuptools 65.5.0
shortuuid 1.0.9
six 1.16.0
smart-open 5.2.1
smmap 5.0.0
soupsieve 2.3.2.post1
spacy 3.3.1
spacy-legacy 3.0.9
spacy-loggers 1.0.2
srsly 2.4.3
tabulate 0.8.9
tensorboard 2.9.1
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.1
tensorflow 2.9.1
tensorflow-estimator 2.9.0
termcolor 2.1.0
thinc 8.0.17
threadpoolctl 3.1.0
tokenizers 0.12.1
torch 1.13.0
tqdm 4.64.0
transformers 4.20.1
typer 0.4.1
typing-extensions 4.3.0
Unidecode 1.3.6
urllib3 1.26.12
wandb 0.12.20
wasabi 0.9.1
web-anno-tsv 0.0.1
Werkzeug 2.1.2
wget 3.2
wheel 0.35.1
wrapt 1.14.1
xxhash 3.0.0
yarl 1.8.1
zipp 3.8.0
Python 3.8.10
Thanks for reporting @JoelNiklaus.
Please note that since we moved all dataset loading scripts to the Hub, the issues and pull requests relative to specific datasets are directly handled on the Hub, in their Community tab. I'm transferring this issue there: https://huggingface.co/datasets/joelito/mc4_legal/discussions
I am also having a look at the bug in your script. | [
-1.258362054824829,
-0.9908857345581055,
-0.795711100101471,
1.4838215112686157,
-0.033149782568216324,
-1.2504149675369263,
0.1168370246887207,
-0.9932911396026611,
1.5552551746368408,
-0.6639343500137329,
0.20511026680469513,
-1.775362253189087,
-0.1270586997270584,
-0.5651912689208984,
-0.7093469500541687,
-0.8294677734375,
-0.3358045518398285,
-0.9118172526359558,
0.968538761138916,
2.601585626602173,
1.2277052402496338,
-1.3006278276443481,
2.7981760501861572,
0.6591476798057556,
-0.2859863340854645,
-1.0320669412612915,
0.4819028973579407,
-0.07962283492088318,
-1.2033882141113281,
-0.4719395935535431,
-0.9170932173728943,
0.07489806413650513,
-0.5770570039749146,
-0.4180503487586975,
0.11346150934696198,
0.39551395177841187,
-0.2496645301580429,
-0.22813096642494202,
-0.5919730067253113,
-0.6788232326507568,
0.4544098377227783,
-0.3719106614589691,
0.8809360861778259,
-0.244095578789711,
1.770296573638916,
-0.6030793786048889,
0.31217676401138306,
0.6479865908622742,
1.3645201921463013,
0.1910383403301239,
0.02948206104338169,
0.2498863935470581,
0.3312080204486847,
-0.0021941470913589,
0.4768032729625702,
1.3014092445373535,
0.5594213604927063,
0.4217023253440857,
0.6544064879417419,
-2.3300940990448,
1.3361667394638062,
-0.8778918385505676,
0.23016515374183655,
1.3057855367660522,
-0.8772323131561279,
0.3385069966316223,
-1.8856360912322998,
-0.13487185537815094,
0.5550776124000549,
-2.2893471717834473,
0.2275252491235733,
-1.365862488746643,
-0.47514036297798157,
0.9053005576133728,
0.1664956510066986,
-1.250826358795166,
0.16282257437705994,
-0.5101903676986694,
1.1508697271347046,
0.492084801197052,
1.120714545249939,
-1.7323708534240723,
-0.05391403287649155,
-0.22102978825569153,
0.12119024991989136,
-1.3922193050384521,
-1.692929983139038,
0.5231744050979614,
0.6010162234306335,
0.7511631846427917,
-0.03711562231183052,
0.9840685129165649,
-1.0915968418121338,
0.7459840178489685,
-0.930432915687561,
-1.605430245399475,
-1.3905946016311646,
-2.414546251296997,
-2.253889560699463,
0.7703518867492676,
-0.4757165014743805,
-0.5186164379119873,
1.867675542831421,
-1.0498274564743042,
-1.787346363067627,
1.067247986793518,
0.4001196026802063,
0.007208356633782387,
2.426506519317627,
0.23424847424030304,
-0.6999408006668091,
0.46895602345466614,
-0.7374008893966675,
0.8742985725402832,
-0.23235948383808136,
1.3539422750473022,
0.5103793144226074,
-0.9237759113311768,
1.5897966623306274,
-0.4810079336166382,
0.4605715870857239,
-0.7228439450263977,
-0.4979439079761505,
-0.8800159096717834,
0.288859099149704,
1.9104527235031128,
-0.41865473985671997,
1.6335070133209229,
-0.32014426589012146,
-1.5552564859390259,
-1.531874179840088,
0.7876771092414856,
0.5116630792617798,
-0.9413219690322876,
0.017874065786600113,
-0.527694046497345,
0.20259369909763336,
0.0316619873046875,
1.0731359720230103,
1.2087987661361694,
0.5860019326210022,
-0.3697059452533722,
-0.9160740971565247,
0.22049222886562347,
-0.1041877493262291,
-0.6113215088844299,
-1.8413711786270142,
-0.24029748141765594,
0.3144106864929199,
0.6570649147033691,
-1.2372686862945557,
1.6735975742340088,
0.8438323140144348,
2.023020029067993,
0.97352534532547,
-0.3799561560153961,
1.5438698530197144,
0.06634628772735596,
1.8505159616470337,
-0.5384864211082458,
0.6312664151191711,
-0.36269304156303406,
-1.1366891860961914,
0.871371328830719,
-0.3364325761795044,
-1.989059567451477,
-0.7833199501037598,
-0.7621266841888428,
-0.21972419321537018,
-0.8184796571731567,
0.8450113534927368,
-0.3602391481399536,
-1.5250062942504883,
0.2131623923778534,
-0.6750485301017761,
0.21182933449745178,
-1.237375259399414,
0.1728905737400055,
0.7119866609573364,
-0.6251929402351379,
-0.04778246581554413,
-0.20273050665855408,
-1.357641339302063,
-0.4078555405139923,
0.28078263998031616,
1.9393616914749146,
-0.44527965784072876,
0.8250692486763,
1.084133505821228,
-0.6318142414093018,
0.18017050623893738,
0.27386724948883057,
-0.29222843050956726,
0.7747982144355774,
-1.0789071321487427,
-0.3320946991443634,
1.1494519710540771,
-0.1181197389960289,
-0.7238723635673523,
1.453676700592041,
0.848572313785553,
-1.1165415048599243,
-0.3249742090702057,
-0.13329125940799713,
-0.8086647391319275,
-0.07947767525911331,
-1.5100191831588745,
-0.2186206728219986,
0.31606030464172363,
-1.4377689361572266,
-0.47143620252609253,
-0.3209178149700165,
1.3965173959732056,
-0.27206704020500183,
1.3720901012420654,
-0.31933847069740295,
-0.10498645156621933,
-0.3338559567928314,
-0.5125572085380554,
0.21464329957962036,
-0.13336297869682312,
-0.5691957473754883,
0.29147908091545105,
-0.8690831065177917,
0.3412909507751465,
1.5133826732635498,
0.40021154284477234,
0.11618402600288391,
0.4073004722595215,
1.1010184288024902,
0.3320331573486328,
-0.046287618577480316,
-0.8954713344573975,
-1.6890857219696045,
2.0156984329223633,
-1.501303791999817,
1.878230333328247,
0.8022722601890564,
-0.0405605211853981,
-1.7636293172836304,
-1.8113346099853516,
1.266601324081421,
1.1007599830627441,
2.417219400405884,
0.5365768074989319,
0.4473082423210144,
-0.76871258020401,
-0.7938807606697083,
0.37403029203414917,
-0.9566897749900818,
-0.6766908168792725,
0.17401696741580963,
2.397603988647461,
1.7410688400268555,
-0.5227813720703125,
-0.23559221625328064,
-0.8601193428039551,
1.2080669403076172,
-0.14623326063156128,
0.2834447920322418,
1.986087679862976,
-0.26046425104141235,
-1.0128806829452515,
1.29220712184906,
-2.3725409507751465,
0.17469677329063416,
2.0493690967559814,
0.24969908595085144,
0.09058881551027298,
-1.39691162109375,
-0.6642796397209167,
-0.30244868993759155,
-0.4559687077999115,
-1.2978595495224,
0.5995200276374817,
-0.3594166934490204,
-1.0530015230178833,
-1.5267930030822754,
0.04791634529829025,
-1.1554481983184814,
-1.676026463508606,
0.44903236627578735,
1.8925354480743408,
2.0956103801727295,
-0.8068776726722717,
1.3942267894744873,
-0.2590717375278473,
0.1344985067844391,
1.1534092426300049,
1.3587608337402344,
3.0992352962493896,
1.7467257976531982,
-1.3014214038848877,
0.791949987411499,
-0.1842079758644104,
-0.5013956427574158,
1.1947410106658936,
-1.133468747138977,
1.1161545515060425,
-0.2655514180660248,
-1.2888877391815186,
-1.2686434984207153,
1.0992547273635864,
0.4678460657596588,
0.038150474429130554,
-0.4326983392238617,
1.266098141670227,
0.11020489037036896,
1.3389239311218262,
0.6222696900367737,
-0.3540031611919403,
0.5508228540420532,
-0.35394930839538574,
-0.6427976489067078,
1.5910545587539673,
0.11025349795818329,
-1.5703612565994263,
-2.362205982208252,
-0.3046227991580963,
-0.809285581111908,
-0.015072870999574661,
-0.5236583948135376,
-1.1742019653320312,
1.6010266542434692,
0.3587183356285095,
-1.25234055519104,
-0.313427209854126,
-0.35037216544151306,
-0.5386556386947632,
2.584275722503662,
-1.3196510076522827,
-0.13622717559337616,
-0.9731711745262146,
-0.4730225205421448,
1.5264173746109009,
-1.1425427198410034,
-0.1387292593717575,
-1.0180332660675049,
-0.6344119310379028,
-1.363290786743164,
-0.5068222880363464,
-0.029252493754029274,
-0.9046562910079956,
0.6930766105651855,
0.1624939888715744,
-1.0527902841567993,
-0.28056129813194275,
-0.9083699584007263,
1.037194013595581,
-0.0844535082578659,
0.22275209426879883,
1.8104771375656128,
0.3540147840976715,
-0.4817570745944977,
0.6860265135765076,
1.2159777879714966,
0.5570054650306702,
-0.6255468726158142,
0.04398113489151001,
-0.6394027471542358,
0.2624366581439972,
-1.3773415088653564,
0.24197641015052795,
-2.9223670959472656,
0.753216564655304,
-0.0912538692355156,
-0.12542790174484253,
-0.013622008264064789,
-1.3531529903411865,
1.1626981496810913,
2.5595436096191406,
-1.1790889501571655,
0.4719828963279724,
0.3736119270324707,
1.2132630348205566,
-1.607965350151062,
0.2747723162174225,
-0.4945286214351654,
2.0653982162475586,
0.18499945104122162,
1.2314183712005615,
-0.5547478199005127,
-2.216359853744507,
0.5920951962471008,
-1.1570008993148804,
-1.0536680221557617,
0.870139479637146,
-0.9794631004333496,
0.2818859815597534,
-1.4404562711715698,
-0.23105861246585846,
-1.0340955257415771,
-1.2429298162460327,
0.7449098229408264,
0.12042130529880524,
0.4919368624687195,
-0.6304240822792053,
0.3191884160041809,
-2.2036654949188232,
-1.356298565864563,
-0.1604001671075821,
-1.0222101211547852,
0.5414122939109802,
-0.34352341294288635,
0.6191762089729309,
-0.04816948622465134,
0.07113826274871826,
0.370120644569397,
1.3992881774902344,
3.404341697692871,
0.24937504529953003,
0.38902997970581055,
-0.021083548665046692,
-1.0004366636276245,
1.407004475593567,
0.9530006647109985,
-0.14245468378067017,
-0.6226943135261536,
-0.9418487548828125,
1.344538688659668,
2.0441291332244873,
1.1251428127288818,
0.021172011271119118,
-0.8516427278518677,
-0.7760362029075623,
0.016569221392273903,
0.2739981412887573,
0.46772173047065735,
0.924760103225708,
0.0012524044141173363,
0.0985729992389679,
1.4266903400421143,
1.2135282754898071,
-0.4650137424468994,
0.41720980405807495,
-0.9411725401878357,
-0.4042566120624542,
0.36162474751472473,
0.22199782729148865,
0.04819943755865097,
0.5478840470314026,
-1.1196181774139404,
-0.3309195637702942,
-0.313898503780365,
-0.9203555583953857,
-0.7928212285041809,
-0.37224677205085754,
-0.34587186574935913,
1.5344208478927612,
0.10813622176647186,
-0.44634881615638733,
0.07560855895280838,
-0.7655594348907471,
-0.25283071398735046,
-1.1967144012451172,
0.17562395334243774,
-0.19267423450946808,
-0.05129726231098175,
-0.16932404041290283,
1.6675249338150024,
-0.967602014541626,
-2.106599807739258,
0.14237500727176666,
0.3335048258304596,
-0.39622771739959717,
0.20136091113090515,
1.7520232200622559,
0.5043194890022278,
1.3556954860687256,
1.2640753984451294,
0.9661311507225037,
-0.6715861558914185,
-1.2088267803192139,
0.7453110814094543,
0.9119586944580078,
-1.3408868312835693,
0.9551399350166321,
-0.22068795561790466,
-0.5003214478492737,
0.7636526226997375,
1.2795754671096802,
0.3560578525066376,
-2.0308117866516113,
0.8827714920043945,
-0.9579022526741028,
0.6448803544044495,
0.6810703873634338,
0.8094336986541748,
0.27836325764656067,
0.8721300959587097,
-1.315968632698059,
-1.1379534006118774,
-0.7867196798324585,
-0.5929041504859924,
1.948935866355896,
-0.17355017364025116,
0.5260957479476929,
-0.0285904910415411,
-1.1417571306228638,
-0.08038630336523056,
0.7345815896987915,
0.32930251955986023,
-0.45164868235588074,
0.8708573579788208,
-0.5801951289176941,
-0.9480351209640503,
-1.2168360948562622,
-0.4962201416492462,
-1.0391722917556763,
-0.9493128657341003,
0.9353290796279907,
0.7530561685562134,
0.43897899985313416,
1.9763728380203247,
0.5998458862304688,
0.32999369502067566,
-2.6089131832122803,
0.8821544051170349,
0.24145999550819397,
0.012248843908309937,
1.0283318758010864,
0.17083784937858582,
1.17537260055542,
0.02920389734208584,
0.6111094355583191,
-2.242269515991211,
2.1600944995880127,
-0.2210230529308319,
0.7382069230079651,
-0.06344742327928543,
-0.2488255798816681,
1.1132235527038574,
0.5191596746444702,
0.6262319684028625,
-1.12281334400177,
0.8317756652832031,
-0.5610030293464661,
1.1097469329833984,
1.0426199436187744,
-0.9402236342430115,
0.15018175542354584,
1.3437471389770508,
0.3614271879196167,
-0.3662121891975403,
-0.9347021579742432,
-0.8136945366859436,
0.9036328196525574,
1.7390542030334473,
-0.009435221552848816,
0.03411516547203064,
0.8701733946800232,
0.6483370661735535,
-1.2599986791610718,
0.05735747516155243,
-0.6678365468978882,
-0.6756117343902588,
1.7810485363006592,
2.0517961978912354,
-0.09293805807828903,
-0.1154886782169342,
-0.7215656042098999,
-1.1717175245285034,
0.7106311321258545,
-0.1304333508014679,
0.17907045781612396,
0.6579614281654358,
-0.7591245174407959,
1.1382218599319458,
0.6069240570068359,
0.9295224547386169,
0.04821141064167023,
0.37513935565948486,
0.47348999977111816,
-0.2865619957447052,
-1.0906379222869873,
-0.4011918902397156,
-1.2089701890945435,
-2.4586069583892822,
0.5203039646148682,
-0.2042989879846573,
-1.476141095161438,
0.12238557636737823,
-0.9908878207206726,
0.9012438654899597,
-0.6134200096130371,
-1.1190459728240967,
-1.4160268306732178,
0.39108791947364807,
-0.16126228868961334,
0.8893707394599915,
-1.6009312868118286,
-0.0578007772564888,
1.159414529800415,
0.986236572265625,
-0.4323045313358307,
1.0412492752075195,
0.2651248276233673,
0.9671369194984436,
0.8172280192375183,
-0.34725263714790344,
0.5820827484130859,
0.12424536049365997,
-1.2908341884613037,
0.4099023938179016,
1.3153948783874512,
0.16033661365509033,
1.4073731899261475,
-0.4552531838417053,
0.08197931945323944,
0.4540364444255829,
-0.6256663799285889,
-0.414379745721817,
-0.44007179141044617,
0.7639726400375366,
0.10115480422973633,
-0.9640485644340515,
-0.059109240770339966,
-0.13272510468959808,
-0.2521604895591736,
0.27650853991508484,
-1.5105711221694946,
-0.3113919198513031,
-0.4424293041229248,
-0.5945016741752625,
-1.353765606880188,
0.03466071933507919,
1.3626936674118042,
-0.8468828201293945,
-0.23647305369377136,
0.4548534154891968,
0.39776748418807983,
0.5693258047103882,
0.5688399076461792,
-0.6343328952789307,
-0.30132678151130676,
-0.3291347920894623,
-0.2976295053958893,
0.32276082038879395,
1.1957619190216064,
-0.030255865305662155,
-1.0349197387695312,
0.7433983683586121,
-0.4903765618801117,
0.11963903903961182,
1.962986707687378,
0.03752122074365616,
-0.7434611916542053,
0.34067484736442566,
-0.6274130940437317,
1.8371620178222656,
1.7651982307434082,
1.271462082862854,
-0.14922977983951569,
-0.8040538430213928,
0.670225203037262,
-0.1896369904279709,
-0.2680663466453552,
0.958337664604187,
0.417807400226593,
-0.18758389353752136,
-1.4391287565231323,
0.5203415155410767,
1.2966101169586182,
-0.8921934962272644,
-0.7516937851905823,
0.05186242610216141,
-0.8987974524497986,
1.2539222240447998,
0.6566417813301086,
0.31175732612609863,
0.20412053167819977,
1.6270310878753662,
0.6362943649291992,
-0.4743586480617523,
0.5184221267700195,
0.5062039494514465,
-0.16213136911392212,
-2.2281901836395264,
-0.96915602684021,
0.24458396434783936,
-0.1727048009634018,
-1.5171031951904297,
1.2902584075927734,
-1.1611329317092896,
-0.937575101852417,
0.5130906701087952,
0.0708155483007431,
1.3511550426483154,
0.29510298371315,
1.7605096101760864,
2.1920430660247803,
0.8726887106895447,
0.30822160840034485,
1.2891758680343628,
-0.08212056756019592,
-0.4410896599292755,
1.7926011085510254,
-0.414238840341568,
0.5788007378578186,
0.9726662039756775,
-0.44283929467201233,
-1.0757427215576172,
-0.7504303455352783,
-1.1251496076583862,
-0.5947075486183167,
1.2197705507278442,
0.09217026829719543,
-1.1059213876724243,
0.18109159171581268,
1.675400733947754,
0.09796180576086044,
-0.2409241646528244,
0.6486859917640686,
0.5632796287536621,
-0.715364396572113,
-0.08539347350597382,
-0.8519048690795898,
0.4995548129081726,
-0.21263551712036133,
-0.2852591276168823,
0.24188610911369324,
0.5124719142913818,
1.1660205125808716,
-0.024867568165063858,
0.02315826527774334,
1.2513656616210938,
-1.3783868551254272,
1.5401476621627808,
-0.5490320920944214,
0.257933109998703,
-2.4669132232666016,
1.3486264944076538,
-0.7581024765968323,
1.8629475831985474,
-2.5765697956085205,
0.41835081577301025,
-0.5955603718757629,
-0.5290107131004333,
0.2564358115196228,
-0.37437257170677185,
0.05993971228599548,
-0.16771246492862701,
-0.8894453644752502,
-0.005631608888506889,
-0.8093992471694946,
0.5352888703346252,
1.1715184450149536,
1.3853453397750854,
-1.0589994192123413,
-0.20226232707500458,
-1.7005423307418823,
-0.17814601957798004,
-0.8209422826766968,
0.26405462622642517,
-2.018413782119751,
-0.1833794116973877,
-2.075874090194702,
-2.3227832317352295,
-1.4275933504104614,
-0.8545665740966797,
1.045992136001587,
0.20808105170726776,
-0.9287768602371216,
1.0985651016235352,
-0.42009782791137695,
-1.748967170715332,
1.1002062559127808,
-2.076050043106079
] |
https://github.com/huggingface/datasets/issues/5304 | timit_asr doesn't load the test split. | The [timit_asr.py](https://huggingface.co/datasets/timit_asr/blob/main/timit_asr.py) script iterates over the WAV files per split directory using this:
```python
wav_paths = sorted(Path(data_dir).glob(f"**/{split}/**/*.wav"))
wav_paths = wav_paths if wav_paths else sorted(Path(data_dir).glob(f"**/{split.upper()}/**/*.WAV"))
```
Can you check that there is a directory named "test" somewhere in your timit data directory ? | ### Describe the bug
When I use the function ```timit = load_dataset('timit_asr', data_dir=data_dir)```, it only loads train split, not test split.
I tried to change the directory and filename to lower case to upper case for the test split, but it does not work at all.
```python
DatasetDict({
train: Dataset({
features: ['file', 'audio', 'text', 'phonetic_detail', 'word_detail', 'dialect_region', 'sentence_type', 'speaker_id', 'id'],
num_rows: 4620
})
test: Dataset({
features: ['file', 'audio', 'text', 'phonetic_detail', 'word_detail', 'dialect_region', 'sentence_type', 'speaker_id', 'id'],
num_rows: 0
})
})
```
The directory structure of both splits are same. (DIALECT_REGION / SPEAKER_CODE / DATA_FILES)
### Steps to reproduce the bug
1. just use ```timit = load_dataset('timit_asr', data_dir=data_dir)```
### Expected behavior
```python
DatasetDict({
train: Dataset({
features: ['file', 'audio', 'text', 'phonetic_detail', 'word_detail', 'dialect_region', 'sentence_type', 'speaker_id', 'id'],
num_rows: 4620
})
test: Dataset({
features: ['file', 'audio', 'text', 'phonetic_detail', 'word_detail', 'dialect_region', 'sentence_type', 'speaker_id', 'id'],
num_rows: 1680
})
})
```
### Environment info
- ubuntu 20.04
- python 3.9.13
- datasets 2.7.1 | 394 | 42 | timit_asr doesn't load the test split.
### Describe the bug
When I use the function ```timit = load_dataset('timit_asr', data_dir=data_dir)```, it only loads train split, not test split.
I tried to change the directory and filename to lower case to upper case for the test split, but it does not work at all.
```python
DatasetDict({
train: Dataset({
features: ['file', 'audio', 'text', 'phonetic_detail', 'word_detail', 'dialect_region', 'sentence_type', 'speaker_id', 'id'],
num_rows: 4620
})
test: Dataset({
features: ['file', 'audio', 'text', 'phonetic_detail', 'word_detail', 'dialect_region', 'sentence_type', 'speaker_id', 'id'],
num_rows: 0
})
})
```
The directory structure of both splits are same. (DIALECT_REGION / SPEAKER_CODE / DATA_FILES)
### Steps to reproduce the bug
1. just use ```timit = load_dataset('timit_asr', data_dir=data_dir)```
### Expected behavior
```python
DatasetDict({
train: Dataset({
features: ['file', 'audio', 'text', 'phonetic_detail', 'word_detail', 'dialect_region', 'sentence_type', 'speaker_id', 'id'],
num_rows: 4620
})
test: Dataset({
features: ['file', 'audio', 'text', 'phonetic_detail', 'word_detail', 'dialect_region', 'sentence_type', 'speaker_id', 'id'],
num_rows: 1680
})
})
```
### Environment info
- ubuntu 20.04
- python 3.9.13
- datasets 2.7.1
The [timit_asr.py](https://huggingface.co/datasets/timit_asr/blob/main/timit_asr.py) script iterates over the WAV files per split directory using this:
```python
wav_paths = sorted(Path(data_dir).glob(f"**/{split}/**/*.wav"))
wav_paths = wav_paths if wav_paths else sorted(Path(data_dir).glob(f"**/{split.upper()}/**/*.WAV"))
```
Can you check that there is a directory named "test" somewhere in your timit data directory ? | [
-1.1882445812225342,
-1.1478807926177979,
-0.7531515955924988,
1.6818410158157349,
-0.19282428920269012,
-1.1733320951461792,
0.07968270778656006,
-0.9431273937225342,
1.548446536064148,
-0.7097229361534119,
0.1579272747039795,
-1.7373665571212769,
-0.1452927589416504,
-0.7916383147239685,
-0.6359350085258484,
-0.8510721921920776,
-0.24666427075862885,
-0.7717961072921753,
1.0993579626083374,
2.3206241130828857,
1.0124536752700806,
-1.5300862789154053,
2.749647378921509,
0.6900628805160522,
-0.060905203223228455,
-1.1416711807250977,
0.5866692066192627,
-0.18202795088291168,
-1.0730199813842773,
-0.4814148247241974,
-0.9591074585914612,
0.0338742733001709,
-0.6895521879196167,
-0.3303072452545166,
-0.00042977090924978256,
0.6403228044509888,
-0.2798789143562317,
-0.5022798776626587,
-0.42640143632888794,
-0.7719572186470032,
0.4746116101741791,
-0.49914202094078064,
0.9405090808868408,
-0.16274316608905792,
1.6621981859207153,
-0.3648037016391754,
0.34076860547065735,
0.5828341245651245,
1.4371424913406372,
0.1922246515750885,
0.09171857684850693,
0.3723713755607605,
0.32453733682632446,
-0.00449399184435606,
0.5919775366783142,
1.1399189233779907,
0.6151820421218872,
0.37271007895469666,
0.7923272252082825,
-2.4593665599823,
1.218336820602417,
-1.1106432676315308,
0.40306034684181213,
1.369760274887085,
-0.8008888959884644,
0.5400469899177551,
-1.6936464309692383,
0.12737812101840973,
0.7163294553756714,
-2.0178213119506836,
0.41700664162635803,
-1.228377342224121,
-0.2661401331424713,
0.855739176273346,
0.47764191031455994,
-1.2653712034225464,
0.20840920507907867,
-0.3510116636753082,
1.1498281955718994,
0.3104192912578583,
0.8250278830528259,
-1.753214716911316,
0.10397684574127197,
-0.16855257749557495,
0.11251591891050339,
-1.2721216678619385,
-1.6241035461425781,
0.4679545760154724,
0.5999289751052856,
0.780492901802063,
-0.2185831516981125,
1.0581601858139038,
-1.199832797050476,
0.5465002655982971,
-1.12611722946167,
-1.7255889177322388,
-1.2754911184310913,
-2.2957675457000732,
-2.242271900177002,
0.6404970288276672,
-0.4198780357837677,
-0.44341957569122314,
2.043907403945923,
-0.7885800004005432,
-1.7154756784439087,
1.2506693601608276,
0.388149231672287,
0.15226708352565765,
2.4203670024871826,
0.1830928772687912,
-0.7601302266120911,
0.5017618536949158,
-0.8978755474090576,
0.7854143977165222,
-0.388196736574173,
1.4148181676864624,
0.32277020812034607,
-0.833788275718689,
1.6880123615264893,
-0.4143194854259491,
0.5805352926254272,
-0.7070657014846802,
-0.49388694763183594,
-0.8202241063117981,
0.3117384612560272,
1.8995851278305054,
-0.16757212579250336,
1.3680062294006348,
-0.4834192395210266,
-1.497971534729004,
-1.5856454372406006,
0.9494221210479736,
0.31204161047935486,
-1.012694001197815,
0.04798036068677902,
-0.44328829646110535,
0.3434155583381653,
-0.22797800600528717,
1.2529990673065186,
1.2463291883468628,
0.5281103849411011,
-0.3645741939544678,
-0.933864414691925,
0.21008390188217163,
-0.19389671087265015,
-0.6311254501342773,
-1.8348380327224731,
-0.2166813164949417,
0.19600166380405426,
0.7287241816520691,
-1.2006076574325562,
1.594874620437622,
0.8384672403335571,
1.956389307975769,
0.9265170693397522,
-0.47658205032348633,
1.4605311155319214,
0.09148950129747391,
1.8290382623672485,
-0.694355309009552,
0.5766922831535339,
-0.42272642254829407,
-1.0770001411437988,
0.9708207845687866,
-0.2433406114578247,
-1.860633134841919,
-0.7520357966423035,
-0.9035441875457764,
-0.3046937584877014,
-0.7457322478294373,
0.7541775703430176,
-0.5119017362594604,
-1.5751897096633911,
0.24959971010684967,
-0.777137041091919,
0.39005157351493835,
-1.0753718614578247,
0.18758352100849152,
0.7462078928947449,
-0.5636942386627197,
0.10383082926273346,
-0.29130518436431885,
-1.370096206665039,
-0.4921039044857025,
0.6731296181678772,
1.9039928913116455,
-0.7035912871360779,
0.7254626154899597,
1.051634669303894,
-0.616373598575592,
0.022412700578570366,
0.11143724620342255,
-0.14094854891300201,
0.7346134781837463,
-1.0499740839004517,
-0.7372422218322754,
1.251185417175293,
-0.3494357764720917,
-0.7532863616943359,
1.4333189725875854,
0.8582549691200256,
-1.1464661359786987,
-0.27685537934303284,
-0.20572741329669952,
-0.7812783718109131,
0.04233879595994949,
-1.6426838636398315,
-0.1928398311138153,
0.6653250455856323,
-1.5729267597198486,
-0.3926748037338257,
-0.3124583959579468,
1.2330876588821411,
-0.10985779017210007,
1.3959895372390747,
-0.38044485449790955,
-0.1365918517112732,
-0.10228681564331055,
-0.6442709565162659,
0.28206345438957214,
-0.3296738862991333,
-0.5166042447090149,
-0.035090379416942596,
-0.8760077953338623,
0.43378642201423645,
1.4506033658981323,
0.2423800677061081,
0.04333936423063278,
0.48472246527671814,
1.2220358848571777,
0.49473652243614197,
0.22218604385852814,
-0.9034220576286316,
-1.4945762157440186,
1.979175090789795,
-1.531926155090332,
1.9636656045913696,
0.5077655911445618,
0.03361723572015762,
-1.7487900257110596,
-1.7704014778137207,
1.351338267326355,
1.074999451637268,
2.177483320236206,
0.5965614914894104,
0.3671082556247711,
-0.9861162900924683,
-0.6749639511108398,
0.14198552072048187,
-0.8485469818115234,
-0.6247805953025818,
0.18899580836296082,
2.4693820476531982,
1.8473505973815918,
-0.40550556778907776,
-0.29859796166419983,
-0.9259393215179443,
1.5996813774108887,
-0.3837997615337372,
0.4875999391078949,
2.0462570190429688,
-0.2466287612915039,
-0.9922919273376465,
1.3262755870819092,
-2.6033554077148438,
0.253724068403244,
2.0747506618499756,
0.19859573245048523,
0.28205806016921997,
-1.383018970489502,
-0.7135940790176392,
-0.21676598489284515,
-0.3096282184123993,
-1.3834245204925537,
0.5216101408004761,
-0.30253663659095764,
-0.7437207102775574,
-1.4432252645492554,
0.24523110687732697,
-1.1162210702896118,
-1.5487170219421387,
0.19032232463359833,
2.0606954097747803,
2.232149839401245,
-0.7787086963653564,
1.7454395294189453,
-0.1268230527639389,
0.38573628664016724,
1.279059648513794,
1.2327404022216797,
2.8826284408569336,
1.781279444694519,
-1.1548535823822021,
0.6056979894638062,
-0.192857027053833,
-0.48276665806770325,
1.138310432434082,
-1.08162260055542,
1.1130802631378174,
-0.14171841740608215,
-1.194824457168579,
-1.2112646102905273,
0.957714319229126,
0.4764416515827179,
-0.024320222437381744,
-0.46069419384002686,
1.265054702758789,
-0.09745483100414276,
1.221239447593689,
0.7210469841957092,
-0.433378130197525,
0.4246419370174408,
-0.3659976124763489,
-0.6739556789398193,
1.4676556587219238,
0.10169302672147751,
-1.4714621305465698,
-2.1452982425689697,
-0.2758010923862457,
-0.7525368928909302,
0.016942093148827553,
-0.5701905488967896,
-1.0191802978515625,
1.4546186923980713,
0.2308385968208313,
-1.1419484615325928,
-0.18298840522766113,
-0.29009172320365906,
-0.3810310363769531,
2.6858737468719482,
-1.2022472620010376,
-0.4067154824733734,
-1.0019466876983643,
-0.6023691296577454,
1.7222200632095337,
-1.1220762729644775,
-0.1954476535320282,
-1.0551602840423584,
-0.6174609065055847,
-1.359049916267395,
-0.45421111583709717,
0.05245038866996765,
-0.9618685841560364,
0.9595916867256165,
0.3680766522884369,
-1.2216219902038574,
-0.29369544982910156,
-0.9497263431549072,
1.0125079154968262,
-0.28067275881767273,
0.22127200663089752,
1.8814775943756104,
0.23204587399959564,
-0.3367392420768738,
0.9775556921958923,
1.0605841875076294,
0.6840478777885437,
-0.594285786151886,
0.04526433348655701,
-0.44194018840789795,
0.43297746777534485,
-1.3026180267333984,
0.20338600873947144,
-2.9383208751678467,
0.6350371837615967,
-0.05954775959253311,
-0.16202427446842194,
-0.02078554406762123,
-1.4285086393356323,
1.084934949874878,
2.465409517288208,
-1.372277855873108,
0.5971669554710388,
0.34785038232803345,
1.4276535511016846,
-1.7073742151260376,
0.21671535074710846,
-0.3697631359100342,
2.084906578063965,
0.04854937642812729,
1.249582290649414,
-0.42098483443260193,
-2.483877658843994,
0.502515971660614,
-1.3013793230056763,
-1.038448691368103,
0.5586562156677246,
-0.9549623727798462,
0.29480063915252686,
-1.6338711977005005,
-0.2849489152431488,
-1.0234192609786987,
-1.2628508806228638,
0.7080816030502319,
0.18410319089889526,
0.23112471401691437,
-0.5616596937179565,
0.3856498599052429,
-2.124654769897461,
-1.5058478116989136,
-0.19096556305885315,
-0.9451474547386169,
0.6152167320251465,
-0.4553821086883545,
0.640467643737793,
-0.1353461891412735,
0.005393192172050476,
0.16286009550094604,
1.5579215288162231,
3.432252883911133,
0.19847866892814636,
0.2990134060382843,
-0.2042456865310669,
-0.9069597125053406,
1.4319356679916382,
0.9393064379692078,
-0.13793323934078217,
-0.4321568012237549,
-1.1054517030715942,
1.5194835662841797,
2.1352195739746094,
0.8542035818099976,
0.0037258900701999664,
-0.6680671572685242,
-0.6395031809806824,
-0.02042762003839016,
0.225716695189476,
0.6028763055801392,
0.7911827564239502,
0.04141473025083542,
-0.014088569208979607,
1.3059709072113037,
1.0813685655593872,
-0.3829943537712097,
0.24300725758075714,
-0.9998313188552856,
-0.3854633569717407,
0.4726279377937317,
0.05468730628490448,
-0.1657007485628128,
0.3577657639980316,
-1.0284497737884521,
-0.21240438520908356,
-0.38800790905952454,
-0.7720500826835632,
-0.7034074068069458,
-0.3471430838108063,
-0.35825154185295105,
1.4853378534317017,
0.4353814721107483,
-0.7311006784439087,
0.006711432710289955,
-0.5345974564552307,
-0.14000672101974487,
-1.0102280378341675,
0.06526929140090942,
-0.23019525408744812,
-0.2008361667394638,
-0.2543517053127289,
1.6572949886322021,
-0.9181134104728699,
-2.061788558959961,
-0.04080301523208618,
0.37898382544517517,
-0.0649019107222557,
0.22504016757011414,
1.7405332326889038,
0.4664691090583801,
1.4874658584594727,
1.3829023838043213,
0.965190052986145,
-0.6508644223213196,
-1.300381064414978,
0.642103374004364,
0.9757128357887268,
-1.2888381481170654,
0.8759874105453491,
-0.053602613508701324,
-0.48797619342803955,
0.6729773283004761,
1.4337377548217773,
0.461829274892807,
-2.0663533210754395,
0.7681928873062134,
-1.220876932144165,
0.9352225661277771,
0.8938014507293701,
0.8460006713867188,
0.3841277062892914,
0.7495731711387634,
-1.1731981039047241,
-1.1123651266098022,
-0.8655089735984802,
-0.7749454379081726,
1.9629415273666382,
-0.3733322024345398,
0.6381937861442566,
-0.0010746754705905914,
-1.244646430015564,
-0.1275225430727005,
0.7670829892158508,
0.47553831338882446,
-0.45062255859375,
0.8341956734657288,
-0.726291835308075,
-1.105765700340271,
-1.2533056735992432,
-0.5492067337036133,
-1.0672557353973389,
-1.1408199071884155,
0.9141756296157837,
0.8294708132743835,
0.3564050793647766,
1.7976957559585571,
0.682248055934906,
0.18251879513263702,
-2.368779182434082,
0.9839646816253662,
0.3415899872779846,
-0.23839515447616577,
0.699438750743866,
0.38300013542175293,
1.1325209140777588,
0.027331726625561714,
0.6360694766044617,
-2.271205425262451,
2.1954612731933594,
-0.1274094581604004,
0.757728636264801,
-0.24328531324863434,
-0.08287099748849869,
1.0424965620040894,
0.36283713579177856,
0.542503833770752,
-0.9650455117225647,
0.6803141236305237,
-0.5778859853744507,
1.2562246322631836,
0.9976080656051636,
-0.8032969236373901,
0.0003247978165745735,
1.5181875228881836,
0.3328258693218231,
-0.8400751948356628,
-1.085553765296936,
-0.857765257358551,
0.8730275630950928,
1.588700771331787,
-0.21521110832691193,
-0.187772735953331,
0.8671709895133972,
0.5564284920692444,
-1.1918447017669678,
-0.06385155022144318,
-0.5022547841072083,
-0.48805922269821167,
1.8238484859466553,
1.9755288362503052,
-0.4658585786819458,
0.0014052391052246094,
-0.7066584825515747,
-1.3146946430206299,
0.5300782918930054,
0.03575611114501953,
-0.14398178458213806,
0.6711775064468384,
-0.6151354312896729,
0.9643353223800659,
0.5645034313201904,
0.8126933574676514,
0.054164111614227295,
0.33071887493133545,
0.5230714678764343,
-0.5441827774047852,
-1.1047310829162598,
-0.4074362814426422,
-1.198644995689392,
-2.4485793113708496,
0.2899414002895355,
-0.10432884097099304,
-1.349477767944336,
0.16084767878055573,
-0.9514366388320923,
1.2236716747283936,
-0.6184166669845581,
-1.2759915590286255,
-1.3106943368911743,
0.36638522148132324,
0.0295849796384573,
0.8096194267272949,
-1.7502557039260864,
-0.03904421254992485,
1.2111871242523193,
0.9529724717140198,
-0.7935038208961487,
1.021048903465271,
0.2626136839389801,
1.1088005304336548,
0.6011725664138794,
-0.34136006236076355,
0.6568318605422974,
-0.14291012287139893,
-1.2723820209503174,
0.6366863250732422,
1.152679681777954,
0.0958399772644043,
1.30402410030365,
-0.34165388345718384,
-0.16588535904884338,
0.39821675419807434,
-0.7083145976066589,
-0.3839085102081299,
-0.29259181022644043,
0.5476799607276917,
0.046487852931022644,
-0.7076817750930786,
-0.0010373909026384354,
0.12216078490018845,
-0.3311108648777008,
0.19144359230995178,
-1.5532020330429077,
-0.2790037989616394,
-0.32899540662765503,
-0.4150444567203522,
-1.2800774574279785,
-0.05272816866636276,
1.3690544366836548,
-0.49434924125671387,
-0.3845328688621521,
0.6072086095809937,
0.39603284001350403,
0.43622133135795593,
0.617430567741394,
-0.7012454271316528,
-0.23950693011283875,
-0.2276235967874527,
-0.3092973232269287,
0.2741951644420624,
1.320277452468872,
-0.1545598953962326,
-1.0862486362457275,
0.7527160048484802,
-0.45661410689353943,
0.034595951437950134,
1.664622187614441,
-0.04164682328701019,
-0.8674558401107788,
0.22334925830364227,
-0.8589178919792175,
1.987028956413269,
1.7516452074050903,
1.233469009399414,
-0.2306738793849945,
-0.8254209160804749,
0.7663910388946533,
-0.3841387629508972,
-0.36398231983184814,
0.7784280776977539,
0.36143049597740173,
-0.28572821617126465,
-1.3310989141464233,
0.8795769214630127,
1.1065661907196045,
-0.7376316785812378,
-0.8801857829093933,
0.28017234802246094,
-0.7629745602607727,
1.2317719459533691,
0.5596044659614563,
0.3758654296398163,
0.18837906420230865,
1.7730880975723267,
0.8004201054573059,
-0.4012725353240967,
0.6043473482131958,
0.6388351321220398,
-0.30462411046028137,
-2.101306438446045,
-1.2884447574615479,
0.14821432530879974,
-0.485924631357193,
-1.7658312320709229,
1.323470115661621,
-1.0574263334274292,
-0.9383720755577087,
0.5899841785430908,
0.12064474076032639,
1.3003065586090088,
0.5030803680419922,
1.3485727310180664,
1.9863065481185913,
0.7109443545341492,
0.665537416934967,
1.2437620162963867,
-0.23934189975261688,
-0.5130998492240906,
1.837399959564209,
-0.41161853075027466,
0.5763029456138611,
1.1543018817901611,
-0.2429952323436737,
-1.1445181369781494,
-0.6297106146812439,
-1.2554594278335571,
-0.5686219930648804,
1.1339805126190186,
0.12797993421554565,
-1.153174638748169,
0.3626207411289215,
1.5366734266281128,
0.0895048975944519,
-0.41057977080345154,
0.7867313027381897,
0.40355342626571655,
-0.7876275777816772,
0.008940983563661575,
-0.845941424369812,
0.5451669096946716,
-0.361957311630249,
-0.11814108490943909,
0.50078946352005,
0.4243278503417969,
1.4124890565872192,
0.01528010331094265,
0.2740912437438965,
0.9574432969093323,
-1.4272023439407349,
1.502791404724121,
-0.7056097388267517,
0.4092499613761902,
-2.4471700191497803,
1.1215786933898926,
-0.6887086629867554,
2.1198785305023193,
-2.7109220027923584,
0.4135514199733734,
-0.6293866634368896,
-0.5507493019104004,
0.3095063269138336,
-0.34851980209350586,
-0.06462328881025314,
0.011785337701439857,
-1.1056029796600342,
0.18823637068271637,
-0.6074091196060181,
0.4646349847316742,
1.2101612091064453,
1.3214638233184814,
-1.041800856590271,
-0.16958653926849365,
-1.745965838432312,
-0.1603463590145111,
-0.8435168266296387,
0.4179719388484955,
-2.157996416091919,
-0.2006538361310959,
-1.838897943496704,
-2.2663161754608154,
-1.167974829673767,
-0.7539137005805969,
1.161918044090271,
0.06451154500246048,
-0.8801908493041992,
1.6232903003692627,
-0.13609819114208221,
-1.7745592594146729,
0.9926925897598267,
-2.042515754699707
] |
https://github.com/huggingface/datasets/issues/5295 | Extractions failed when .zip file located on read-only path (e.g., SageMaker FastFile mode) | Hi ! Thanks for reporting. Indeed the lock file should be placed in a directory with write permission (e.g. in the directory where the archive is extracted). | ### Describe the bug
Hi,
`load_dataset()` does not work .zip files located on a read-only directory. Looks like it's because Dataset creates a lock file in the [same directory](https://github.com/huggingface/datasets/blob/df4bdd365f2abb695f113cbf8856a925bc70901b/src/datasets/utils/extract.py) as the .zip file.
Encountered this when attempting `load_dataset()` on a datadir with SageMaker FastFile mode.
### Steps to reproduce the bug
```python
# Showing relevant lines only.
hyperparameters = {
"dataset_name": "ydshieh/coco_dataset_script",
"dataset_config_name": 2017,
"data_dir": "/opt/ml/input/data/coco",
"cache_dir": "/tmp/huggingface-cache", # Fix dataset complains out-of-space.
...
}
estimator = PyTorch(
base_job_name="clip",
source_dir="../src/sm-entrypoint",
entry_point="run_clip.py", # Transformers/src/examples/pytorch/contrastive-image-text/run_clip.py
framework_version="1.12",
py_version="py38",
hyperparameters=hyperparameters,
instance_count=1,
instance_type="ml.p3.16xlarge",
volume_size=100,
distribution={"smdistributed": {"dataparallel": {"enabled": True}}},
)
fast_file = lambda x: TrainingInput(x, input_mode='FastFile')
estimator.fit(
{
"pre-trained": fast_file("s3://vm-sagemakerr-us-east-1/clip/pre-trained-checkpoint/"),
"coco": fast_file("s3://vm-sagemakerr-us-east-1/clip/coco-zip-files/"),
}
)
```
Error message:
```text
ErrorMessage "OSError: [Errno 30] Read-only file system: '/opt/ml/input/data/coco/image_info_test2017.zip.lock'
"""
The above exception was the direct cause of the following exception
Traceback (most recent call last)
File "/opt/conda/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/conda/lib/python3.8/site-packages/mpi4py/__main__.py", line 7, in <module>
main()
File "/opt/conda/lib/python3.8/site-packages/mpi4py/run.py", line 198, in main
run_command_line(args)
File "/opt/conda/lib/python3.8/site-packages/mpi4py/run.py", line 47, in run_command_line
run_path(sys.argv[0], run_name='__main__')
File "/opt/conda/lib/python3.8/runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "/opt/conda/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "run_clip_smddp.py", line 594, in <module>
File "run_clip_smddp.py", line 327, in main
dataset = load_dataset(
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1741, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 891, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/ydshieh--coco_dataset_script/e033205c0266a54c10be132f9264f2a39dcf893e798f6756d224b1ff5078998f/coco_dataset_script.py", line 123, in _split_generators
archive_path = dl_manager.download_and_extract(_DL_URLS)
File "/opt/conda/lib/python3.8/site-packages/datasets/download/download_manager.py", line 447, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/download/download_manager.py", line 419, in extract
extracted_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 472, in map_nested
mapped = pool.map(_single_map_nested, split_kwds)
File "/opt/conda/lib/python3.8/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/opt/conda/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
OSError: [Errno 30] Read-only file system: '/opt/ml/input/data/coco/image_info_test2017.zip.lock'"
```
### Expected behavior
`load_dataset()` to succeed, just like when .zip file is passed in SageMaker File mode.
### Environment info
* datasets-2.7.1
* transformers-4.24.0
* python-3.8
* torch-1.12
* SageMaker PyTorch DLC | 395 | 27 | Extractions failed when .zip file located on read-only path (e.g., SageMaker FastFile mode)
### Describe the bug
Hi,
`load_dataset()` does not work .zip files located on a read-only directory. Looks like it's because Dataset creates a lock file in the [same directory](https://github.com/huggingface/datasets/blob/df4bdd365f2abb695f113cbf8856a925bc70901b/src/datasets/utils/extract.py) as the .zip file.
Encountered this when attempting `load_dataset()` on a datadir with SageMaker FastFile mode.
### Steps to reproduce the bug
```python
# Showing relevant lines only.
hyperparameters = {
"dataset_name": "ydshieh/coco_dataset_script",
"dataset_config_name": 2017,
"data_dir": "/opt/ml/input/data/coco",
"cache_dir": "/tmp/huggingface-cache", # Fix dataset complains out-of-space.
...
}
estimator = PyTorch(
base_job_name="clip",
source_dir="../src/sm-entrypoint",
entry_point="run_clip.py", # Transformers/src/examples/pytorch/contrastive-image-text/run_clip.py
framework_version="1.12",
py_version="py38",
hyperparameters=hyperparameters,
instance_count=1,
instance_type="ml.p3.16xlarge",
volume_size=100,
distribution={"smdistributed": {"dataparallel": {"enabled": True}}},
)
fast_file = lambda x: TrainingInput(x, input_mode='FastFile')
estimator.fit(
{
"pre-trained": fast_file("s3://vm-sagemakerr-us-east-1/clip/pre-trained-checkpoint/"),
"coco": fast_file("s3://vm-sagemakerr-us-east-1/clip/coco-zip-files/"),
}
)
```
Error message:
```text
ErrorMessage "OSError: [Errno 30] Read-only file system: '/opt/ml/input/data/coco/image_info_test2017.zip.lock'
"""
The above exception was the direct cause of the following exception
Traceback (most recent call last)
File "/opt/conda/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/conda/lib/python3.8/site-packages/mpi4py/__main__.py", line 7, in <module>
main()
File "/opt/conda/lib/python3.8/site-packages/mpi4py/run.py", line 198, in main
run_command_line(args)
File "/opt/conda/lib/python3.8/site-packages/mpi4py/run.py", line 47, in run_command_line
run_path(sys.argv[0], run_name='__main__')
File "/opt/conda/lib/python3.8/runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "/opt/conda/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "run_clip_smddp.py", line 594, in <module>
File "run_clip_smddp.py", line 327, in main
dataset = load_dataset(
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1741, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 891, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/ydshieh--coco_dataset_script/e033205c0266a54c10be132f9264f2a39dcf893e798f6756d224b1ff5078998f/coco_dataset_script.py", line 123, in _split_generators
archive_path = dl_manager.download_and_extract(_DL_URLS)
File "/opt/conda/lib/python3.8/site-packages/datasets/download/download_manager.py", line 447, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/download/download_manager.py", line 419, in extract
extracted_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 472, in map_nested
mapped = pool.map(_single_map_nested, split_kwds)
File "/opt/conda/lib/python3.8/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/opt/conda/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
OSError: [Errno 30] Read-only file system: '/opt/ml/input/data/coco/image_info_test2017.zip.lock'"
```
### Expected behavior
`load_dataset()` to succeed, just like when .zip file is passed in SageMaker File mode.
### Environment info
* datasets-2.7.1
* transformers-4.24.0
* python-3.8
* torch-1.12
* SageMaker PyTorch DLC
Hi ! Thanks for reporting. Indeed the lock file should be placed in a directory with write permission (e.g. in the directory where the archive is extracted). | [
-1.2134716510772705,
-0.9405736923217773,
-0.6529114842414856,
1.45478355884552,
-0.1730504184961319,
-1.1634786128997803,
0.13532023131847382,
-0.9901857972145081,
1.531798243522644,
-0.7498309016227722,
0.31072452664375305,
-1.6880139112472534,
-0.04647236317396164,
-0.52350252866745,
-0.6112444400787354,
-0.9122766256332397,
-0.37899091839790344,
-0.759257435798645,
1.072325587272644,
2.4788765907287598,
1.2819546461105347,
-1.3328653573989868,
2.7005693912506104,
0.7438622713088989,
-0.21005848050117493,
-0.953904926776886,
0.5692700743675232,
0.07374165952205658,
-1.2921382188796997,
-0.4428253471851349,
-1.009218692779541,
-0.06534913927316666,
-0.5123981237411499,
-0.44111695885658264,
0.0064564114436507225,
0.45953240990638733,
-0.345039039850235,
-0.3661109507083893,
-0.683280885219574,
-0.7951052188873291,
0.5326743125915527,
-0.4278097450733185,
0.9257277846336365,
-0.3776741921901703,
1.7836506366729736,
-0.5983012318611145,
0.4921365976333618,
0.7408229112625122,
1.261484980583191,
0.2725594937801361,
0.07088255137205124,
0.3127424716949463,
0.37925517559051514,
-0.07223685085773468,
0.5291855335235596,
1.2049684524536133,
0.5912941694259644,
0.46053624153137207,
0.7335528135299683,
-2.1945128440856934,
1.249962568283081,
-0.9272834062576294,
0.22615742683410645,
1.3686782121658325,
-0.8469122052192688,
0.4213237762451172,
-1.8218193054199219,
-0.06775486469268799,
0.546800971031189,
-2.260629177093506,
0.32093262672424316,
-1.3583003282546997,
-0.5855464935302734,
0.9632275104522705,
0.406503826379776,
-1.2079766988754272,
0.0692884549498558,
-0.45958995819091797,
1.0194616317749023,
0.3952033519744873,
1.0520670413970947,
-1.6968907117843628,
-0.10064777731895447,
-0.22700771689414978,
0.11097636073827744,
-1.308455228805542,
-1.5909559726715088,
0.5345289707183838,
0.5658200979232788,
0.6501299738883972,
-0.05118993669748306,
1.0100575685501099,
-1.0998326539993286,
0.811521589756012,
-1.009488821029663,
-1.6250896453857422,
-1.43849778175354,
-2.360372304916382,
-2.2577643394470215,
0.7793595790863037,
-0.480689138174057,
-0.5270089507102966,
2.0155398845672607,
-0.9956094026565552,
-1.6826926469802856,
1.1206655502319336,
0.26817578077316284,
-0.026592962443828583,
2.4223530292510986,
0.24795615673065186,
-0.7633088827133179,
0.5121752023696899,
-0.7810459733009338,
0.7891675233840942,
-0.338919073343277,
1.2876641750335693,
0.45768094062805176,
-0.9894440770149231,
1.5982917547225952,
-0.43562719225883484,
0.5937992930412292,
-0.6490605473518372,
-0.5270991325378418,
-0.7065004706382751,
0.22959351539611816,
1.8676730394363403,
-0.3276214897632599,
1.507381558418274,
-0.24546784162521362,
-1.5374369621276855,
-1.610121726989746,
0.8960789442062378,
0.4932177662849426,
-0.761206328868866,
0.07792346924543381,
-0.3720659613609314,
0.18727871775627136,
-0.08633534610271454,
1.0812593698501587,
1.3029178380966187,
0.7705803513526917,
-0.3809969127178192,
-0.8949894905090332,
0.11666034162044525,
-0.12189292907714844,
-0.7051581144332886,
-1.7416796684265137,
-0.3101206123828888,
0.2288985699415207,
0.5813076496124268,
-1.315233826637268,
1.8340919017791748,
0.9016460180282593,
1.980144739151001,
0.9689728617668152,
-0.41060659289360046,
1.487104058265686,
0.05666917935013771,
1.8190956115722656,
-0.5167100429534912,
0.6288936138153076,
-0.32411518692970276,
-1.1677753925323486,
0.8465333580970764,
-0.2838430404663086,
-2.037949323654175,
-0.7775698900222778,
-0.7498093843460083,
-0.1966649293899536,
-0.779434859752655,
0.9459251165390015,
-0.3356000781059265,
-1.402777075767517,
0.12221711874008179,
-0.7138919234275818,
0.07947740703821182,
-1.2674685716629028,
0.21480049192905426,
0.640531599521637,
-0.6662387251853943,
0.0599912591278553,
-0.18883880972862244,
-1.2538132667541504,
-0.4395442306995392,
0.3127294182777405,
1.8969861268997192,
-0.6307690739631653,
0.9718177914619446,
1.0930227041244507,
-0.8021903038024902,
0.08730609714984894,
0.2823707163333893,
-0.3214053809642792,
0.7992876768112183,
-1.0909944772720337,
-0.4638408422470093,
1.2424795627593994,
-0.21218253672122955,
-0.68003249168396,
1.402045488357544,
0.7753849625587463,
-1.0605378150939941,
-0.27498745918273926,
-0.1488826721906662,
-0.7855224013328552,
0.11196877807378769,
-1.5643354654312134,
-0.10557791590690613,
0.4092898964881897,
-1.4389728307724,
-0.4312640428543091,
-0.2260187268257141,
1.3028373718261719,
-0.21187858283519745,
1.3559857606887817,
-0.3653179407119751,
-0.21507613360881805,
-0.3566117286682129,
-0.4419797360897064,
0.04325530678033829,
-0.19979436695575714,
-0.5687436461448669,
0.1798495650291443,
-0.8447858691215515,
0.24808430671691895,
1.5122286081314087,
0.3580971360206604,
0.0052643101662397385,
0.5006474256515503,
1.058471918106079,
0.4252554476261139,
-0.09295406192541122,
-0.9280157685279846,
-1.4551990032196045,
1.9233301877975464,
-1.4644125699996948,
2.0387279987335205,
0.807978093624115,
-0.10447194427251816,
-1.824181318283081,
-1.9373043775558472,
1.2022919654846191,
1.1649965047836304,
2.3863890171051025,
0.45830947160720825,
0.44934114813804626,
-0.7931934595108032,
-0.7819871306419373,
0.3585655689239502,
-1.0508153438568115,
-0.6552847623825073,
0.23680728673934937,
2.3627545833587646,
1.7731091976165771,
-0.43016013503074646,
-0.1637609899044037,
-0.9699822068214417,
1.3243721723556519,
-0.216620534658432,
0.217095285654068,
2.019453287124634,
-0.2608030140399933,
-1.0597954988479614,
1.300510287284851,
-2.3098204135894775,
0.21789997816085815,
1.9835097789764404,
0.3152157664299011,
0.1535770297050476,
-1.3463400602340698,
-0.7675002813339233,
-0.3583261966705322,
-0.5048114657402039,
-1.2158077955245972,
0.5367023348808289,
-0.2727181315422058,
-0.8273887634277344,
-1.354381799697876,
0.07824023067951202,
-1.130394697189331,
-1.726501703262329,
0.288074254989624,
1.9201934337615967,
2.073011636734009,
-0.8483577966690063,
1.416495680809021,
-0.2835056185722351,
0.015793994069099426,
1.2149327993392944,
1.3325514793395996,
3.069634437561035,
1.8697965145111084,
-1.2935805320739746,
0.6908971667289734,
-0.14699514210224152,
-0.3554098308086395,
1.089447259902954,
-1.218807339668274,
1.217305064201355,
-0.13102206587791443,
-1.195701241493225,
-1.1405354738235474,
1.0058774948120117,
0.44000059366226196,
-0.02408544346690178,
-0.48792779445648193,
1.12568998336792,
0.19545996189117432,
1.4158235788345337,
0.6399369835853577,
-0.3482763171195984,
0.6075373291969299,
-0.33203792572021484,
-0.5462575554847717,
1.581869125366211,
0.14638401567935944,
-1.528723120689392,
-2.2624359130859375,
-0.25329041481018066,
-0.9141146540641785,
0.019650105386972427,
-0.6062403917312622,
-1.0512406826019287,
1.7007349729537964,
0.3701958656311035,
-1.201796054840088,
-0.2765209674835205,
-0.3732425570487976,
-0.5395084619522095,
2.7673118114471436,
-1.3374385833740234,
-0.14990626275539398,
-0.9671286344528198,
-0.6378295421600342,
1.6352561712265015,
-1.1629338264465332,
-0.2575831711292267,
-1.0481778383255005,
-0.5245077610015869,
-1.284703016281128,
-0.5039780735969543,
0.049960214644670486,
-0.9465488791465759,
0.7850383520126343,
0.23691971600055695,
-1.136587381362915,
-0.3719139099121094,
-0.8902149796485901,
0.9870011806488037,
-0.13039235770702362,
0.11534032225608826,
1.878908634185791,
0.3341623842716217,
-0.2946189045906067,
0.757286012172699,
1.203172206878662,
0.5806766152381897,
-0.6231625080108643,
0.13290195167064667,
-0.6573396921157837,
0.39291641116142273,
-1.298622488975525,
0.22938692569732666,
-2.867572546005249,
0.7339335680007935,
-0.19865545630455017,
-0.13350380957126617,
0.00884122122079134,
-1.2757083177566528,
1.1489285230636597,
2.591824531555176,
-1.1878139972686768,
0.49024859070777893,
0.3937154710292816,
1.1098954677581787,
-1.63104248046875,
0.3256129324436188,
-0.4696316421031952,
1.9910732507705688,
0.15976355969905853,
1.184609055519104,
-0.6036748886108398,
-2.288721799850464,
0.6541792750358582,
-1.2179566621780396,
-1.1260430812835693,
0.8200269937515259,
-0.8818818926811218,
0.26510435342788696,
-1.427944540977478,
-0.1975541114807129,
-0.8755331039428711,
-1.20432710647583,
0.5910764336585999,
0.09674719721078873,
0.44154053926467896,
-0.540608823299408,
0.3648388981819153,
-2.309612989425659,
-1.4267621040344238,
-0.2658614218235016,
-0.9214755892753601,
0.5886949300765991,
-0.38674888014793396,
0.7287289500236511,
-0.1776941418647766,
0.020129628479480743,
0.35216906666755676,
1.5257999897003174,
3.373584747314453,
0.1775689572095871,
0.2202782928943634,
-0.08863515406847,
-0.9934809803962708,
1.401968240737915,
0.9256317019462585,
-0.10205993801355362,
-0.6276688575744629,
-1.042368769645691,
1.2667235136032104,
1.9842933416366577,
1.0926326513290405,
0.0500156432390213,
-0.8513950109481812,
-0.7402943968772888,
-0.036004405468702316,
0.17448033392429352,
0.48659083247184753,
1.0242130756378174,
-0.008659806102514267,
0.05579319968819618,
1.5253559350967407,
1.1942726373672485,
-0.33255523443222046,
0.2368842214345932,
-0.8653910160064697,
-0.4718821346759796,
0.5018123984336853,
0.23250584304332733,
0.02768745645880699,
0.40919631719589233,
-1.0975183248519897,
-0.2984505593776703,
-0.3476274311542511,
-0.9101256728172302,
-0.712633490562439,
-0.4199095368385315,
-0.384243369102478,
1.6502145528793335,
0.11653637886047363,
-0.46109792590141296,
0.0256304033100605,
-0.7750322222709656,
-0.14185689389705658,
-1.169477939605713,
0.2614964544773102,
-0.12505832314491272,
-0.09661540389060974,
-0.15262530744075775,
1.7218220233917236,
-0.9136618375778198,
-2.1019036769866943,
0.1354479193687439,
0.2583250403404236,
-0.22596073150634766,
0.1991790533065796,
1.6802126169204712,
0.5542166233062744,
1.44800865650177,
1.2443342208862305,
0.8950269818305969,
-0.667198121547699,
-1.2778124809265137,
0.6733171939849854,
1.0162690877914429,
-1.3473362922668457,
0.8557595610618591,
-0.15401674807071686,
-0.5162737965583801,
0.5821065306663513,
1.3145833015441895,
0.49539458751678467,
-1.9667922258377075,
0.8227936029434204,
-0.9539268016815186,
0.8048833012580872,
0.7366577982902527,
0.7885884046554565,
0.1656089574098587,
0.8371051549911499,
-1.2597492933273315,
-1.077205777168274,
-0.6853866577148438,
-0.6440324783325195,
1.9299595355987549,
-0.2689090669155121,
0.6169260740280151,
-0.2864942252635956,
-1.2272390127182007,
0.02225760743021965,
0.7277098894119263,
0.33985838294029236,
-0.43628576397895813,
0.8548623323440552,
-0.6234774589538574,
-1.0275694131851196,
-1.3514978885650635,
-0.3856114447116852,
-1.0403481721878052,
-0.908390462398529,
1.0360546112060547,
0.7226170301437378,
0.35609036684036255,
1.895111083984375,
0.7548478841781616,
0.3438374996185303,
-2.612581729888916,
0.9543135166168213,
0.3137492835521698,
-0.045663703233003616,
0.8983415365219116,
0.30414265394210815,
0.9843260645866394,
-0.07591789960861206,
0.6070162653923035,
-2.4229214191436768,
2.2838919162750244,
-0.2281181812286377,
0.6560735106468201,
0.017356283962726593,
-0.13689562678337097,
1.100623607635498,
0.6344135403633118,
0.5101463794708252,
-1.0356234312057495,
0.6444839835166931,
-0.49901556968688965,
1.1598336696624756,
0.8403066992759705,
-0.8178607821464539,
0.08269503712654114,
1.3622972965240479,
0.4806032180786133,
-0.4523845613002777,
-0.9554105401039124,
-0.8351085186004639,
0.9623804688453674,
1.7579675912857056,
-0.051339291036129,
0.017802231013774872,
0.8452690243721008,
0.6004683971405029,
-1.3250579833984375,
-0.03509678691625595,
-0.703216552734375,
-0.6833999752998352,
1.720618486404419,
2.102954864501953,
-0.12455817312002182,
-0.2645703852176666,
-0.6926789879798889,
-1.3220417499542236,
0.8560799360275269,
-0.08532722294330597,
0.18411006033420563,
0.6551916599273682,
-0.6465908288955688,
1.110163927078247,
0.7391705513000488,
1.0067282915115356,
0.15959158539772034,
0.2694951891899109,
0.3974588215351105,
-0.3937586843967438,
-1.212844729423523,
-0.2523811161518097,
-1.1125013828277588,
-2.6202995777130127,
0.4165704846382141,
-0.19232408702373505,
-1.4822818040847778,
0.005413694307208061,
-0.9980385303497314,
0.9191252589225769,
-0.546022355556488,
-1.0839262008666992,
-1.4413403272628784,
0.21904748678207397,
-0.1379900872707367,
0.9632136225700378,
-1.63351309299469,
-0.28569522500038147,
1.2464426755905151,
0.9787365198135376,
-0.6447182297706604,
0.8959455490112305,
0.1422152817249298,
1.0259977579116821,
0.7337056398391724,
-0.38882943987846375,
0.5648438930511475,
-0.023149892687797546,
-1.358718991279602,
0.421871542930603,
1.2602459192276,
0.18655139207839966,
1.4666136503219604,
-0.4788525700569153,
0.0697704404592514,
0.3874952495098114,
-0.563039243221283,
-0.5407081246376038,
-0.4226906895637512,
0.6642941832542419,
0.04661579802632332,
-1.0479222536087036,
-0.14108915627002716,
-0.06168976426124573,
-0.249750018119812,
0.15652026236057281,
-1.404120683670044,
-0.24417346715927124,
-0.43438097834587097,
-0.5541079044342041,
-1.257070541381836,
-0.022605858743190765,
1.2990257740020752,
-0.8248748183250427,
-0.16200456023216248,
0.4614008069038391,
0.2688010632991791,
0.5763399600982666,
0.6262054443359375,
-0.8060716390609741,
-0.35057729482650757,
-0.22577032446861267,
-0.3267512917518616,
0.3333177864551544,
1.2898226976394653,
-0.06278610229492188,
-0.9774407744407654,
0.7068027853965759,
-0.29975202679634094,
0.20370930433273315,
1.9734315872192383,
-0.011900757439434528,
-0.7393845915794373,
0.2948746979236603,
-0.7205904126167297,
1.8213427066802979,
1.6792891025543213,
1.2803902626037598,
-0.18284715712070465,
-0.7633645534515381,
0.6174279451370239,
-0.2919216752052307,
-0.4014519155025482,
0.8539299368858337,
0.36818262934684753,
-0.2341955304145813,
-1.452575445175171,
0.7227158546447754,
1.2434464693069458,
-0.8413018584251404,
-0.7953660488128662,
0.16331255435943604,
-0.8576561808586121,
1.1588811874389648,
0.581508219242096,
0.32940053939819336,
0.3514637053012848,
1.6590396165847778,
0.7965962290763855,
-0.4741230905056,
0.4913390874862671,
0.5424817800521851,
-0.15397900342941284,
-2.125887155532837,
-1.123287320137024,
0.32244953513145447,
-0.5617947578430176,
-1.5695114135742188,
1.4240553379058838,
-1.1160427331924438,
-1.080810308456421,
0.589073896408081,
0.12158156931400299,
1.3754315376281738,
0.3786338269710541,
1.5839823484420776,
2.097245693206787,
0.9182154536247253,
0.3827168941497803,
1.2478363513946533,
-0.08370305597782135,
-0.4259597063064575,
1.8294881582260132,
-0.44392532110214233,
0.4817405045032501,
0.9844290614128113,
-0.34091150760650635,
-1.1157811880111694,
-0.7675786018371582,
-1.2617591619491577,
-0.733629047870636,
1.2425298690795898,
0.09234234690666199,
-1.044960856437683,
0.22665302455425262,
1.613359808921814,
0.15973138809204102,
-0.34972676634788513,
0.7063739895820618,
0.3998918831348419,
-0.789312481880188,
-0.05889134481549263,
-0.8694131970405579,
0.5361680388450623,
-0.10494764149188995,
-0.3325228989124298,
0.2091340571641922,
0.5475936532020569,
1.4339547157287598,
-0.09295310825109482,
0.12092506885528564,
1.0964579582214355,
-1.4273062944412231,
1.5623067617416382,
-0.6949551701545715,
0.2587094008922577,
-2.414015054702759,
1.3604389429092407,
-0.7797395586967468,
1.9360884428024292,
-2.583719491958618,
0.5096665024757385,
-0.44711926579475403,
-0.49102434515953064,
0.17693404853343964,
-0.449989914894104,
0.14521969854831696,
-0.09492091834545135,
-1.0294694900512695,
-0.05308983474969864,
-0.6381174325942993,
0.6562898755073547,
1.160366415977478,
1.4386001825332642,
-1.1288495063781738,
-0.2263871431350708,
-1.7506682872772217,
-0.1516866385936737,
-0.7615907192230225,
0.2755627930164337,
-1.9852516651153564,
-0.1744922697544098,
-1.8804682493209839,
-2.296219825744629,
-1.3046587705612183,
-0.8488702774047852,
1.1554018259048462,
0.1575525999069214,
-0.9411287307739258,
1.2292201519012451,
-0.34430110454559326,
-1.8650656938552856,
1.1898819208145142,
-2.2323246002197266
] |
https://github.com/huggingface/datasets/issues/5295 | Extractions failed when .zip file located on read-only path (e.g., SageMaker FastFile mode) | I opened https://github.com/huggingface/datasets/pull/5320 to fix this - it places the lock file in the cache directory instead of trying to put in next to the ZIP where it's read-only | ### Describe the bug
Hi,
`load_dataset()` does not work .zip files located on a read-only directory. Looks like it's because Dataset creates a lock file in the [same directory](https://github.com/huggingface/datasets/blob/df4bdd365f2abb695f113cbf8856a925bc70901b/src/datasets/utils/extract.py) as the .zip file.
Encountered this when attempting `load_dataset()` on a datadir with SageMaker FastFile mode.
### Steps to reproduce the bug
```python
# Showing relevant lines only.
hyperparameters = {
"dataset_name": "ydshieh/coco_dataset_script",
"dataset_config_name": 2017,
"data_dir": "/opt/ml/input/data/coco",
"cache_dir": "/tmp/huggingface-cache", # Fix dataset complains out-of-space.
...
}
estimator = PyTorch(
base_job_name="clip",
source_dir="../src/sm-entrypoint",
entry_point="run_clip.py", # Transformers/src/examples/pytorch/contrastive-image-text/run_clip.py
framework_version="1.12",
py_version="py38",
hyperparameters=hyperparameters,
instance_count=1,
instance_type="ml.p3.16xlarge",
volume_size=100,
distribution={"smdistributed": {"dataparallel": {"enabled": True}}},
)
fast_file = lambda x: TrainingInput(x, input_mode='FastFile')
estimator.fit(
{
"pre-trained": fast_file("s3://vm-sagemakerr-us-east-1/clip/pre-trained-checkpoint/"),
"coco": fast_file("s3://vm-sagemakerr-us-east-1/clip/coco-zip-files/"),
}
)
```
Error message:
```text
ErrorMessage "OSError: [Errno 30] Read-only file system: '/opt/ml/input/data/coco/image_info_test2017.zip.lock'
"""
The above exception was the direct cause of the following exception
Traceback (most recent call last)
File "/opt/conda/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/conda/lib/python3.8/site-packages/mpi4py/__main__.py", line 7, in <module>
main()
File "/opt/conda/lib/python3.8/site-packages/mpi4py/run.py", line 198, in main
run_command_line(args)
File "/opt/conda/lib/python3.8/site-packages/mpi4py/run.py", line 47, in run_command_line
run_path(sys.argv[0], run_name='__main__')
File "/opt/conda/lib/python3.8/runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "/opt/conda/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "run_clip_smddp.py", line 594, in <module>
File "run_clip_smddp.py", line 327, in main
dataset = load_dataset(
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1741, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 891, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/ydshieh--coco_dataset_script/e033205c0266a54c10be132f9264f2a39dcf893e798f6756d224b1ff5078998f/coco_dataset_script.py", line 123, in _split_generators
archive_path = dl_manager.download_and_extract(_DL_URLS)
File "/opt/conda/lib/python3.8/site-packages/datasets/download/download_manager.py", line 447, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/download/download_manager.py", line 419, in extract
extracted_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 472, in map_nested
mapped = pool.map(_single_map_nested, split_kwds)
File "/opt/conda/lib/python3.8/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/opt/conda/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
OSError: [Errno 30] Read-only file system: '/opt/ml/input/data/coco/image_info_test2017.zip.lock'"
```
### Expected behavior
`load_dataset()` to succeed, just like when .zip file is passed in SageMaker File mode.
### Environment info
* datasets-2.7.1
* transformers-4.24.0
* python-3.8
* torch-1.12
* SageMaker PyTorch DLC | 395 | 29 | Extractions failed when .zip file located on read-only path (e.g., SageMaker FastFile mode)
### Describe the bug
Hi,
`load_dataset()` does not work .zip files located on a read-only directory. Looks like it's because Dataset creates a lock file in the [same directory](https://github.com/huggingface/datasets/blob/df4bdd365f2abb695f113cbf8856a925bc70901b/src/datasets/utils/extract.py) as the .zip file.
Encountered this when attempting `load_dataset()` on a datadir with SageMaker FastFile mode.
### Steps to reproduce the bug
```python
# Showing relevant lines only.
hyperparameters = {
"dataset_name": "ydshieh/coco_dataset_script",
"dataset_config_name": 2017,
"data_dir": "/opt/ml/input/data/coco",
"cache_dir": "/tmp/huggingface-cache", # Fix dataset complains out-of-space.
...
}
estimator = PyTorch(
base_job_name="clip",
source_dir="../src/sm-entrypoint",
entry_point="run_clip.py", # Transformers/src/examples/pytorch/contrastive-image-text/run_clip.py
framework_version="1.12",
py_version="py38",
hyperparameters=hyperparameters,
instance_count=1,
instance_type="ml.p3.16xlarge",
volume_size=100,
distribution={"smdistributed": {"dataparallel": {"enabled": True}}},
)
fast_file = lambda x: TrainingInput(x, input_mode='FastFile')
estimator.fit(
{
"pre-trained": fast_file("s3://vm-sagemakerr-us-east-1/clip/pre-trained-checkpoint/"),
"coco": fast_file("s3://vm-sagemakerr-us-east-1/clip/coco-zip-files/"),
}
)
```
Error message:
```text
ErrorMessage "OSError: [Errno 30] Read-only file system: '/opt/ml/input/data/coco/image_info_test2017.zip.lock'
"""
The above exception was the direct cause of the following exception
Traceback (most recent call last)
File "/opt/conda/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/conda/lib/python3.8/site-packages/mpi4py/__main__.py", line 7, in <module>
main()
File "/opt/conda/lib/python3.8/site-packages/mpi4py/run.py", line 198, in main
run_command_line(args)
File "/opt/conda/lib/python3.8/site-packages/mpi4py/run.py", line 47, in run_command_line
run_path(sys.argv[0], run_name='__main__')
File "/opt/conda/lib/python3.8/runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "/opt/conda/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "run_clip_smddp.py", line 594, in <module>
File "run_clip_smddp.py", line 327, in main
dataset = load_dataset(
File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1741, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 891, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/ydshieh--coco_dataset_script/e033205c0266a54c10be132f9264f2a39dcf893e798f6756d224b1ff5078998f/coco_dataset_script.py", line 123, in _split_generators
archive_path = dl_manager.download_and_extract(_DL_URLS)
File "/opt/conda/lib/python3.8/site-packages/datasets/download/download_manager.py", line 447, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/opt/conda/lib/python3.8/site-packages/datasets/download/download_manager.py", line 419, in extract
extracted_paths = map_nested(
File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 472, in map_nested
mapped = pool.map(_single_map_nested, split_kwds)
File "/opt/conda/lib/python3.8/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/opt/conda/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
OSError: [Errno 30] Read-only file system: '/opt/ml/input/data/coco/image_info_test2017.zip.lock'"
```
### Expected behavior
`load_dataset()` to succeed, just like when .zip file is passed in SageMaker File mode.
### Environment info
* datasets-2.7.1
* transformers-4.24.0
* python-3.8
* torch-1.12
* SageMaker PyTorch DLC
I opened https://github.com/huggingface/datasets/pull/5320 to fix this - it places the lock file in the cache directory instead of trying to put in next to the ZIP where it's read-only | [
-1.2134716510772705,
-0.9405736923217773,
-0.6529114842414856,
1.45478355884552,
-0.1730504184961319,
-1.1634786128997803,
0.13532023131847382,
-0.9901857972145081,
1.531798243522644,
-0.7498309016227722,
0.31072452664375305,
-1.6880139112472534,
-0.04647236317396164,
-0.52350252866745,
-0.6112444400787354,
-0.9122766256332397,
-0.37899091839790344,
-0.759257435798645,
1.072325587272644,
2.4788765907287598,
1.2819546461105347,
-1.3328653573989868,
2.7005693912506104,
0.7438622713088989,
-0.21005848050117493,
-0.953904926776886,
0.5692700743675232,
0.07374165952205658,
-1.2921382188796997,
-0.4428253471851349,
-1.009218692779541,
-0.06534913927316666,
-0.5123981237411499,
-0.44111695885658264,
0.0064564114436507225,
0.45953240990638733,
-0.345039039850235,
-0.3661109507083893,
-0.683280885219574,
-0.7951052188873291,
0.5326743125915527,
-0.4278097450733185,
0.9257277846336365,
-0.3776741921901703,
1.7836506366729736,
-0.5983012318611145,
0.4921365976333618,
0.7408229112625122,
1.261484980583191,
0.2725594937801361,
0.07088255137205124,
0.3127424716949463,
0.37925517559051514,
-0.07223685085773468,
0.5291855335235596,
1.2049684524536133,
0.5912941694259644,
0.46053624153137207,
0.7335528135299683,
-2.1945128440856934,
1.249962568283081,
-0.9272834062576294,
0.22615742683410645,
1.3686782121658325,
-0.8469122052192688,
0.4213237762451172,
-1.8218193054199219,
-0.06775486469268799,
0.546800971031189,
-2.260629177093506,
0.32093262672424316,
-1.3583003282546997,
-0.5855464935302734,
0.9632275104522705,
0.406503826379776,
-1.2079766988754272,
0.0692884549498558,
-0.45958995819091797,
1.0194616317749023,
0.3952033519744873,
1.0520670413970947,
-1.6968907117843628,
-0.10064777731895447,
-0.22700771689414978,
0.11097636073827744,
-1.308455228805542,
-1.5909559726715088,
0.5345289707183838,
0.5658200979232788,
0.6501299738883972,
-0.05118993669748306,
1.0100575685501099,
-1.0998326539993286,
0.811521589756012,
-1.009488821029663,
-1.6250896453857422,
-1.43849778175354,
-2.360372304916382,
-2.2577643394470215,
0.7793595790863037,
-0.480689138174057,
-0.5270089507102966,
2.0155398845672607,
-0.9956094026565552,
-1.6826926469802856,
1.1206655502319336,
0.26817578077316284,
-0.026592962443828583,
2.4223530292510986,
0.24795615673065186,
-0.7633088827133179,
0.5121752023696899,
-0.7810459733009338,
0.7891675233840942,
-0.338919073343277,
1.2876641750335693,
0.45768094062805176,
-0.9894440770149231,
1.5982917547225952,
-0.43562719225883484,
0.5937992930412292,
-0.6490605473518372,
-0.5270991325378418,
-0.7065004706382751,
0.22959351539611816,
1.8676730394363403,
-0.3276214897632599,
1.507381558418274,
-0.24546784162521362,
-1.5374369621276855,
-1.610121726989746,
0.8960789442062378,
0.4932177662849426,
-0.761206328868866,
0.07792346924543381,
-0.3720659613609314,
0.18727871775627136,
-0.08633534610271454,
1.0812593698501587,
1.3029178380966187,
0.7705803513526917,
-0.3809969127178192,
-0.8949894905090332,
0.11666034162044525,
-0.12189292907714844,
-0.7051581144332886,
-1.7416796684265137,
-0.3101206123828888,
0.2288985699415207,
0.5813076496124268,
-1.315233826637268,
1.8340919017791748,
0.9016460180282593,
1.980144739151001,
0.9689728617668152,
-0.41060659289360046,
1.487104058265686,
0.05666917935013771,
1.8190956115722656,
-0.5167100429534912,
0.6288936138153076,
-0.32411518692970276,
-1.1677753925323486,
0.8465333580970764,
-0.2838430404663086,
-2.037949323654175,
-0.7775698900222778,
-0.7498093843460083,
-0.1966649293899536,
-0.779434859752655,
0.9459251165390015,
-0.3356000781059265,
-1.402777075767517,
0.12221711874008179,
-0.7138919234275818,
0.07947740703821182,
-1.2674685716629028,
0.21480049192905426,
0.640531599521637,
-0.6662387251853943,
0.0599912591278553,
-0.18883880972862244,
-1.2538132667541504,
-0.4395442306995392,
0.3127294182777405,
1.8969861268997192,
-0.6307690739631653,
0.9718177914619446,
1.0930227041244507,
-0.8021903038024902,
0.08730609714984894,
0.2823707163333893,
-0.3214053809642792,
0.7992876768112183,
-1.0909944772720337,
-0.4638408422470093,
1.2424795627593994,
-0.21218253672122955,
-0.68003249168396,
1.402045488357544,
0.7753849625587463,
-1.0605378150939941,
-0.27498745918273926,
-0.1488826721906662,
-0.7855224013328552,
0.11196877807378769,
-1.5643354654312134,
-0.10557791590690613,
0.4092898964881897,
-1.4389728307724,
-0.4312640428543091,
-0.2260187268257141,
1.3028373718261719,
-0.21187858283519745,
1.3559857606887817,
-0.3653179407119751,
-0.21507613360881805,
-0.3566117286682129,
-0.4419797360897064,
0.04325530678033829,
-0.19979436695575714,
-0.5687436461448669,
0.1798495650291443,
-0.8447858691215515,
0.24808430671691895,
1.5122286081314087,
0.3580971360206604,
0.0052643101662397385,
0.5006474256515503,
1.058471918106079,
0.4252554476261139,
-0.09295406192541122,
-0.9280157685279846,
-1.4551990032196045,
1.9233301877975464,
-1.4644125699996948,
2.0387279987335205,
0.807978093624115,
-0.10447194427251816,
-1.824181318283081,
-1.9373043775558472,
1.2022919654846191,
1.1649965047836304,
2.3863890171051025,
0.45830947160720825,
0.44934114813804626,
-0.7931934595108032,
-0.7819871306419373,
0.3585655689239502,
-1.0508153438568115,
-0.6552847623825073,
0.23680728673934937,
2.3627545833587646,
1.7731091976165771,
-0.43016013503074646,
-0.1637609899044037,
-0.9699822068214417,
1.3243721723556519,
-0.216620534658432,
0.217095285654068,
2.019453287124634,
-0.2608030140399933,
-1.0597954988479614,
1.300510287284851,
-2.3098204135894775,
0.21789997816085815,
1.9835097789764404,
0.3152157664299011,
0.1535770297050476,
-1.3463400602340698,
-0.7675002813339233,
-0.3583261966705322,
-0.5048114657402039,
-1.2158077955245972,
0.5367023348808289,
-0.2727181315422058,
-0.8273887634277344,
-1.354381799697876,
0.07824023067951202,
-1.130394697189331,
-1.726501703262329,
0.288074254989624,
1.9201934337615967,
2.073011636734009,
-0.8483577966690063,
1.416495680809021,
-0.2835056185722351,
0.015793994069099426,
1.2149327993392944,
1.3325514793395996,
3.069634437561035,
1.8697965145111084,
-1.2935805320739746,
0.6908971667289734,
-0.14699514210224152,
-0.3554098308086395,
1.089447259902954,
-1.218807339668274,
1.217305064201355,
-0.13102206587791443,
-1.195701241493225,
-1.1405354738235474,
1.0058774948120117,
0.44000059366226196,
-0.02408544346690178,
-0.48792779445648193,
1.12568998336792,
0.19545996189117432,
1.4158235788345337,
0.6399369835853577,
-0.3482763171195984,
0.6075373291969299,
-0.33203792572021484,
-0.5462575554847717,
1.581869125366211,
0.14638401567935944,
-1.528723120689392,
-2.2624359130859375,
-0.25329041481018066,
-0.9141146540641785,
0.019650105386972427,
-0.6062403917312622,
-1.0512406826019287,
1.7007349729537964,
0.3701958656311035,
-1.201796054840088,
-0.2765209674835205,
-0.3732425570487976,
-0.5395084619522095,
2.7673118114471436,
-1.3374385833740234,
-0.14990626275539398,
-0.9671286344528198,
-0.6378295421600342,
1.6352561712265015,
-1.1629338264465332,
-0.2575831711292267,
-1.0481778383255005,
-0.5245077610015869,
-1.284703016281128,
-0.5039780735969543,
0.049960214644670486,
-0.9465488791465759,
0.7850383520126343,
0.23691971600055695,
-1.136587381362915,
-0.3719139099121094,
-0.8902149796485901,
0.9870011806488037,
-0.13039235770702362,
0.11534032225608826,
1.878908634185791,
0.3341623842716217,
-0.2946189045906067,
0.757286012172699,
1.203172206878662,
0.5806766152381897,
-0.6231625080108643,
0.13290195167064667,
-0.6573396921157837,
0.39291641116142273,
-1.298622488975525,
0.22938692569732666,
-2.867572546005249,
0.7339335680007935,
-0.19865545630455017,
-0.13350380957126617,
0.00884122122079134,
-1.2757083177566528,
1.1489285230636597,
2.591824531555176,
-1.1878139972686768,
0.49024859070777893,
0.3937154710292816,
1.1098954677581787,
-1.63104248046875,
0.3256129324436188,
-0.4696316421031952,
1.9910732507705688,
0.15976355969905853,
1.184609055519104,
-0.6036748886108398,
-2.288721799850464,
0.6541792750358582,
-1.2179566621780396,
-1.1260430812835693,
0.8200269937515259,
-0.8818818926811218,
0.26510435342788696,
-1.427944540977478,
-0.1975541114807129,
-0.8755331039428711,
-1.20432710647583,
0.5910764336585999,
0.09674719721078873,
0.44154053926467896,
-0.540608823299408,
0.3648388981819153,
-2.309612989425659,
-1.4267621040344238,
-0.2658614218235016,
-0.9214755892753601,
0.5886949300765991,
-0.38674888014793396,
0.7287289500236511,
-0.1776941418647766,
0.020129628479480743,
0.35216906666755676,
1.5257999897003174,
3.373584747314453,
0.1775689572095871,
0.2202782928943634,
-0.08863515406847,
-0.9934809803962708,
1.401968240737915,
0.9256317019462585,
-0.10205993801355362,
-0.6276688575744629,
-1.042368769645691,
1.2667235136032104,
1.9842933416366577,
1.0926326513290405,
0.0500156432390213,
-0.8513950109481812,
-0.7402943968772888,
-0.036004405468702316,
0.17448033392429352,
0.48659083247184753,
1.0242130756378174,
-0.008659806102514267,
0.05579319968819618,
1.5253559350967407,
1.1942726373672485,
-0.33255523443222046,
0.2368842214345932,
-0.8653910160064697,
-0.4718821346759796,
0.5018123984336853,
0.23250584304332733,
0.02768745645880699,
0.40919631719589233,
-1.0975183248519897,
-0.2984505593776703,
-0.3476274311542511,
-0.9101256728172302,
-0.712633490562439,
-0.4199095368385315,
-0.384243369102478,
1.6502145528793335,
0.11653637886047363,
-0.46109792590141296,
0.0256304033100605,
-0.7750322222709656,
-0.14185689389705658,
-1.169477939605713,
0.2614964544773102,
-0.12505832314491272,
-0.09661540389060974,
-0.15262530744075775,
1.7218220233917236,
-0.9136618375778198,
-2.1019036769866943,
0.1354479193687439,
0.2583250403404236,
-0.22596073150634766,
0.1991790533065796,
1.6802126169204712,
0.5542166233062744,
1.44800865650177,
1.2443342208862305,
0.8950269818305969,
-0.667198121547699,
-1.2778124809265137,
0.6733171939849854,
1.0162690877914429,
-1.3473362922668457,
0.8557595610618591,
-0.15401674807071686,
-0.5162737965583801,
0.5821065306663513,
1.3145833015441895,
0.49539458751678467,
-1.9667922258377075,
0.8227936029434204,
-0.9539268016815186,
0.8048833012580872,
0.7366577982902527,
0.7885884046554565,
0.1656089574098587,
0.8371051549911499,
-1.2597492933273315,
-1.077205777168274,
-0.6853866577148438,
-0.6440324783325195,
1.9299595355987549,
-0.2689090669155121,
0.6169260740280151,
-0.2864942252635956,
-1.2272390127182007,
0.02225760743021965,
0.7277098894119263,
0.33985838294029236,
-0.43628576397895813,
0.8548623323440552,
-0.6234774589538574,
-1.0275694131851196,
-1.3514978885650635,
-0.3856114447116852,
-1.0403481721878052,
-0.908390462398529,
1.0360546112060547,
0.7226170301437378,
0.35609036684036255,
1.895111083984375,
0.7548478841781616,
0.3438374996185303,
-2.612581729888916,
0.9543135166168213,
0.3137492835521698,
-0.045663703233003616,
0.8983415365219116,
0.30414265394210815,
0.9843260645866394,
-0.07591789960861206,
0.6070162653923035,
-2.4229214191436768,
2.2838919162750244,
-0.2281181812286377,
0.6560735106468201,
0.017356283962726593,
-0.13689562678337097,
1.100623607635498,
0.6344135403633118,
0.5101463794708252,
-1.0356234312057495,
0.6444839835166931,
-0.49901556968688965,
1.1598336696624756,
0.8403066992759705,
-0.8178607821464539,
0.08269503712654114,
1.3622972965240479,
0.4806032180786133,
-0.4523845613002777,
-0.9554105401039124,
-0.8351085186004639,
0.9623804688453674,
1.7579675912857056,
-0.051339291036129,
0.017802231013774872,
0.8452690243721008,
0.6004683971405029,
-1.3250579833984375,
-0.03509678691625595,
-0.703216552734375,
-0.6833999752998352,
1.720618486404419,
2.102954864501953,
-0.12455817312002182,
-0.2645703852176666,
-0.6926789879798889,
-1.3220417499542236,
0.8560799360275269,
-0.08532722294330597,
0.18411006033420563,
0.6551916599273682,
-0.6465908288955688,
1.110163927078247,
0.7391705513000488,
1.0067282915115356,
0.15959158539772034,
0.2694951891899109,
0.3974588215351105,
-0.3937586843967438,
-1.212844729423523,
-0.2523811161518097,
-1.1125013828277588,
-2.6202995777130127,
0.4165704846382141,
-0.19232408702373505,
-1.4822818040847778,
0.005413694307208061,
-0.9980385303497314,
0.9191252589225769,
-0.546022355556488,
-1.0839262008666992,
-1.4413403272628784,
0.21904748678207397,
-0.1379900872707367,
0.9632136225700378,
-1.63351309299469,
-0.28569522500038147,
1.2464426755905151,
0.9787365198135376,
-0.6447182297706604,
0.8959455490112305,
0.1422152817249298,
1.0259977579116821,
0.7337056398391724,
-0.38882943987846375,
0.5648438930511475,
-0.023149892687797546,
-1.358718991279602,
0.421871542930603,
1.2602459192276,
0.18655139207839966,
1.4666136503219604,
-0.4788525700569153,
0.0697704404592514,
0.3874952495098114,
-0.563039243221283,
-0.5407081246376038,
-0.4226906895637512,
0.6642941832542419,
0.04661579802632332,
-1.0479222536087036,
-0.14108915627002716,
-0.06168976426124573,
-0.249750018119812,
0.15652026236057281,
-1.404120683670044,
-0.24417346715927124,
-0.43438097834587097,
-0.5541079044342041,
-1.257070541381836,
-0.022605858743190765,
1.2990257740020752,
-0.8248748183250427,
-0.16200456023216248,
0.4614008069038391,
0.2688010632991791,
0.5763399600982666,
0.6262054443359375,
-0.8060716390609741,
-0.35057729482650757,
-0.22577032446861267,
-0.3267512917518616,
0.3333177864551544,
1.2898226976394653,
-0.06278610229492188,
-0.9774407744407654,
0.7068027853965759,
-0.29975202679634094,
0.20370930433273315,
1.9734315872192383,
-0.011900757439434528,
-0.7393845915794373,
0.2948746979236603,
-0.7205904126167297,
1.8213427066802979,
1.6792891025543213,
1.2803902626037598,
-0.18284715712070465,
-0.7633645534515381,
0.6174279451370239,
-0.2919216752052307,
-0.4014519155025482,
0.8539299368858337,
0.36818262934684753,
-0.2341955304145813,
-1.452575445175171,
0.7227158546447754,
1.2434464693069458,
-0.8413018584251404,
-0.7953660488128662,
0.16331255435943604,
-0.8576561808586121,
1.1588811874389648,
0.581508219242096,
0.32940053939819336,
0.3514637053012848,
1.6590396165847778,
0.7965962290763855,
-0.4741230905056,
0.4913390874862671,
0.5424817800521851,
-0.15397900342941284,
-2.125887155532837,
-1.123287320137024,
0.32244953513145447,
-0.5617947578430176,
-1.5695114135742188,
1.4240553379058838,
-1.1160427331924438,
-1.080810308456421,
0.589073896408081,
0.12158156931400299,
1.3754315376281738,
0.3786338269710541,
1.5839823484420776,
2.097245693206787,
0.9182154536247253,
0.3827168941497803,
1.2478363513946533,
-0.08370305597782135,
-0.4259597063064575,
1.8294881582260132,
-0.44392532110214233,
0.4817405045032501,
0.9844290614128113,
-0.34091150760650635,
-1.1157811880111694,
-0.7675786018371582,
-1.2617591619491577,
-0.733629047870636,
1.2425298690795898,
0.09234234690666199,
-1.044960856437683,
0.22665302455425262,
1.613359808921814,
0.15973138809204102,
-0.34972676634788513,
0.7063739895820618,
0.3998918831348419,
-0.789312481880188,
-0.05889134481549263,
-0.8694131970405579,
0.5361680388450623,
-0.10494764149188995,
-0.3325228989124298,
0.2091340571641922,
0.5475936532020569,
1.4339547157287598,
-0.09295310825109482,
0.12092506885528564,
1.0964579582214355,
-1.4273062944412231,
1.5623067617416382,
-0.6949551701545715,
0.2587094008922577,
-2.414015054702759,
1.3604389429092407,
-0.7797395586967468,
1.9360884428024292,
-2.583719491958618,
0.5096665024757385,
-0.44711926579475403,
-0.49102434515953064,
0.17693404853343964,
-0.449989914894104,
0.14521969854831696,
-0.09492091834545135,
-1.0294694900512695,
-0.05308983474969864,
-0.6381174325942993,
0.6562898755073547,
1.160366415977478,
1.4386001825332642,
-1.1288495063781738,
-0.2263871431350708,
-1.7506682872772217,
-0.1516866385936737,
-0.7615907192230225,
0.2755627930164337,
-1.9852516651153564,
-0.1744922697544098,
-1.8804682493209839,
-2.296219825744629,
-1.3046587705612183,
-0.8488702774047852,
1.1554018259048462,
0.1575525999069214,
-0.9411287307739258,
1.2292201519012451,
-0.34430110454559326,
-1.8650656938552856,
1.1898819208145142,
-2.2323246002197266
] |
https://github.com/huggingface/datasets/issues/5292 | Missing documentation build for versions 2.7.1 and 2.6.2 | - Build docs for 2.6.2:
- Commit: a6a5a1cf4cdf1e0be65168aed5a327f543001fe8
- Build docs GH Action: https://github.com/huggingface/datasets/actions/runs/3539470622/jobs/5941404044
- Build docs for 2.7.1:
- Commit: 5ef1ab1cc06c2b7a574bf2df454cd9fcb071ccb2
- Build docs GH Action: https://github.com/huggingface/datasets/actions/runs/3539574442/jobs/5941636792 | After the patch releases [2.7.1](https://github.com/huggingface/datasets/releases/tag/2.7.1) and [2.6.2](https://github.com/huggingface/datasets/releases/tag/2.6.2), the online docs were not properly built (the build_documentation workflow was not triggered).
There was a fix by:
- #5291
However, both documentations were built from main branch, instead of their corresponding version branch.
We are rebuilding them. | 396 | 28 | Missing documentation build for versions 2.7.1 and 2.6.2
After the patch releases [2.7.1](https://github.com/huggingface/datasets/releases/tag/2.7.1) and [2.6.2](https://github.com/huggingface/datasets/releases/tag/2.6.2), the online docs were not properly built (the build_documentation workflow was not triggered).
There was a fix by:
- #5291
However, both documentations were built from main branch, instead of their corresponding version branch.
We are rebuilding them.
- Build docs for 2.6.2:
- Commit: a6a5a1cf4cdf1e0be65168aed5a327f543001fe8
- Build docs GH Action: https://github.com/huggingface/datasets/actions/runs/3539470622/jobs/5941404044
- Build docs for 2.7.1:
- Commit: 5ef1ab1cc06c2b7a574bf2df454cd9fcb071ccb2
- Build docs GH Action: https://github.com/huggingface/datasets/actions/runs/3539574442/jobs/5941636792 | [
-1.233512282371521,
-0.8936444520950317,
-0.8072652220726013,
1.3956623077392578,
-0.07910232990980148,
-1.240429162979126,
0.026858747005462646,
-1.0523921251296997,
1.5705183744430542,
-0.635078489780426,
0.31448063254356384,
-1.733963131904602,
-0.09406106919050217,
-0.4470330476760864,
-0.7336091995239258,
-0.8617213368415833,
-0.3653242290019989,
-0.8318127393722534,
0.9935866594314575,
2.5679240226745605,
1.2174615859985352,
-1.4220296144485474,
2.7435977458953857,
0.6987504363059998,
-0.20887669920921326,
-1.1264474391937256,
0.567609429359436,
0.062345992773771286,
-1.2675323486328125,
-0.45855003595352173,
-0.9889039397239685,
0.012550601735711098,
-0.4578167796134949,
-0.4382898211479187,
0.17487460374832153,
0.31056973338127136,
-0.213615283370018,
-0.2947119176387787,
-0.5756646394729614,
-0.7132168412208557,
0.3755165636539459,
-0.3210831582546234,
0.8676794767379761,
-0.3707435727119446,
1.7885695695877075,
-0.5498430728912354,
0.3533729016780853,
0.6043068170547485,
1.3367048501968384,
0.12496969103813171,
0.09589022397994995,
0.20577988028526306,
0.3388316035270691,
0.014903649687767029,
0.4347841143608093,
1.250978946685791,
0.6548570394515991,
0.3303416967391968,
0.5808305740356445,
-2.1382076740264893,
1.249998927116394,
-0.8824865818023682,
0.17434191703796387,
1.4640337228775024,
-0.9645483493804932,
0.3788280785083771,
-1.8072632551193237,
-0.06299717724323273,
0.5576984286308289,
-2.3468761444091797,
0.07824574410915375,
-1.312775731086731,
-0.5366011261940002,
1.074866533279419,
0.22216090559959412,
-1.2938511371612549,
0.2696777284145355,
-0.5509047508239746,
1.0777828693389893,
0.5483590364456177,
1.2225396633148193,
-1.6429154872894287,
-0.06370683014392853,
-0.1696603149175644,
0.11525830626487732,
-1.3920159339904785,
-1.5447452068328857,
0.5056478381156921,
0.6401645541191101,
0.6946680545806885,
-0.0737839862704277,
0.9264602065086365,
-0.9958386421203613,
0.8281553983688354,
-0.837602436542511,
-1.6631196737289429,
-1.4590027332305908,
-2.3736650943756104,
-2.3051679134368896,
0.8529447317123413,
-0.4811397194862366,
-0.4153244197368622,
1.9504541158676147,
-1.009345531463623,
-1.7817902565002441,
1.0175586938858032,
0.3564523756504059,
0.02876334637403488,
2.4336094856262207,
0.29569879174232483,
-0.8128904700279236,
0.43268269300460815,
-0.7391961216926575,
0.6796302795410156,
-0.34926068782806396,
1.4600963592529297,
0.6524489521980286,
-0.988527238368988,
1.593080997467041,
-0.5155385136604309,
0.43246763944625854,
-0.6664806604385376,
-0.4365619719028473,
-0.7885746955871582,
0.23242956399917603,
1.8976763486862183,
-0.3575671315193176,
1.602545142173767,
-0.3350312411785126,
-1.4971877336502075,
-1.5284940004348755,
0.747712254524231,
0.548250675201416,
-0.7671909332275391,
0.0710754543542862,
-0.410646915435791,
0.060090530663728714,
-0.026257969439029694,
0.9639818668365479,
1.2160059213638306,
0.6997475624084473,
-0.21628788113594055,
-0.9122288823127747,
0.26403504610061646,
-0.0050769951194524765,
-0.6673775315284729,
-1.8327869176864624,
-0.2891622483730316,
0.2921947240829468,
0.6658965349197388,
-1.3671737909317017,
1.6687102317810059,
0.7935569286346436,
1.9966975450515747,
0.9541153907775879,
-0.446991890668869,
1.582394003868103,
0.005434609483927488,
1.8546926975250244,
-0.5349597930908203,
0.6686704754829407,
-0.20799845457077026,
-1.1661521196365356,
0.7775527238845825,
-0.38363298773765564,
-2.050175666809082,
-0.6827515959739685,
-0.8653144240379333,
-0.11457488685846329,
-0.7960888147354126,
0.9277098774909973,
-0.17916858196258545,
-1.4518054723739624,
0.24237029254436493,
-0.7411240339279175,
0.11294113099575043,
-1.2555766105651855,
0.2161920964717865,
0.8498255610466003,
-0.6056309938430786,
-0.11374340951442719,
-0.2061479687690735,
-1.3088927268981934,
-0.4383145868778229,
0.2933571934700012,
1.9014501571655273,
-0.6648569703102112,
0.907734215259552,
1.0058375597000122,
-0.7116029262542725,
0.1924976259469986,
0.36343449354171753,
-0.37085720896720886,
0.8683046698570251,
-1.0769462585449219,
-0.3517003655433655,
1.1390138864517212,
-0.13817520439624786,
-0.5917375087738037,
1.408545970916748,
0.8836998343467712,
-0.9497597217559814,
-0.25229036808013916,
-0.1821771115064621,
-0.7536946535110474,
-0.04006114602088928,
-1.6161683797836304,
-0.1752912402153015,
0.22620168328285217,
-1.386374831199646,
-0.36584633588790894,
-0.1776711791753769,
1.498902440071106,
-0.22691577672958374,
1.4440735578536987,
-0.288896381855011,
-0.16727200150489807,
-0.46699655055999756,
-0.47070544958114624,
0.14966538548469543,
-0.24937282502651215,
-0.6650139093399048,
0.35016220808029175,
-0.8783188462257385,
0.327387273311615,
1.394160509109497,
0.5193460583686829,
0.08315987884998322,
0.5414813160896301,
1.1298238039016724,
0.36152929067611694,
-0.12630648910999298,
-0.9417653679847717,
-1.6720926761627197,
2.1644184589385986,
-1.3292782306671143,
2.033787488937378,
0.8539895415306091,
-0.09308497607707977,
-1.730843424797058,
-1.8968889713287354,
1.308026671409607,
1.1063060760498047,
2.473069190979004,
0.5348844528198242,
0.4618200361728668,
-0.7618858814239502,
-0.7259809970855713,
0.28607553243637085,
-0.9214379787445068,
-0.8194031119346619,
0.09892118722200394,
2.4008824825286865,
1.7249597311019897,
-0.5793584585189819,
-0.2629604935646057,
-1.005142331123352,
1.317038655281067,
-0.21570631861686707,
0.15047648549079895,
2.0369250774383545,
-0.17365865409374237,
-1.0639382600784302,
1.3329097032546997,
-2.3525826930999756,
0.2578326165676117,
2.0827925205230713,
0.3679598569869995,
0.011109091341495514,
-1.5057655572891235,
-0.6735777258872986,
-0.33768391609191895,
-0.5455990433692932,
-1.1108546257019043,
0.6130122542381287,
-0.35106346011161804,
-1.0284215211868286,
-1.5463346242904663,
-0.025674356147646904,
-1.2374660968780518,
-1.776978611946106,
0.4275858402252197,
1.7798526287078857,
1.94369637966156,
-0.928867757320404,
1.2939218282699585,
-0.16202476620674133,
0.07556405663490295,
1.2739146947860718,
1.3361927270889282,
3.070765495300293,
1.8554130792617798,
-1.2833538055419922,
0.8432069420814514,
-0.2403125911951065,
-0.3850058615207672,
1.0971366167068481,
-1.163802146911621,
1.1597508192062378,
-0.18590609729290009,
-1.2883626222610474,
-1.2340861558914185,
1.03827702999115,
0.5566151142120361,
0.0574815534055233,
-0.5481958389282227,
1.2664281129837036,
0.09996180236339569,
1.4034603834152222,
0.5513865947723389,
-0.24716433882713318,
0.48097023367881775,
-0.36814478039741516,
-0.5263141989707947,
1.6054826974868774,
0.09858689457178116,
-1.630597472190857,
-2.3638956546783447,
-0.28339168429374695,
-0.8455215096473694,
-0.1245187371969223,
-0.6134262681007385,
-1.014626383781433,
1.6355808973312378,
0.488254576921463,
-1.2256371974945068,
-0.27124208211898804,
-0.33599287271499634,
-0.5518730878829956,
2.6333694458007812,
-1.4560377597808838,
-0.1046556606888771,
-1.0527511835098267,
-0.37298744916915894,
1.5212022066116333,
-1.1243318319320679,
-0.06665707379579544,
-0.9600873589515686,
-0.6930814385414124,
-1.343868613243103,
-0.6023033857345581,
0.015933828428387642,
-0.8551166653633118,
0.5693717002868652,
0.1324107050895691,
-1.0371540784835815,
-0.3404117822647095,
-0.9016397595405579,
0.9077461957931519,
-0.010098215192556381,
0.25774431228637695,
1.9018971920013428,
0.43936994671821594,
-0.3854919672012329,
0.5952733755111694,
1.155267596244812,
0.589490532875061,
-0.6128417253494263,
0.12374095618724823,
-0.7235480546951294,
0.30539441108703613,
-1.4470710754394531,
0.23571965098381042,
-2.93638277053833,
0.7486647963523865,
-0.03425987437367439,
-0.0680534765124321,
-0.07546000927686691,
-1.1919960975646973,
1.1963671445846558,
2.6298983097076416,
-1.215384602546692,
0.5513017773628235,
0.41674715280532837,
1.070649266242981,
-1.569361686706543,
0.29370182752609253,
-0.41471678018569946,
2.0859203338623047,
0.13871510326862335,
1.2711784839630127,
-0.4678327739238739,
-2.130072832107544,
0.611363410949707,
-1.1808404922485352,
-0.9705497026443481,
0.8032410740852356,
-0.8590763807296753,
0.18137907981872559,
-1.3783477544784546,
-0.07666363567113876,
-0.9558523297309875,
-1.2183290719985962,
0.7094513177871704,
0.07204660028219223,
0.48901715874671936,
-0.6096425652503967,
0.4903739392757416,
-2.13927960395813,
-1.3344908952713013,
-0.0803319439291954,
-1.0458930730819702,
0.5810976624488831,
-0.2683202028274536,
0.6667795777320862,
0.01787969470024109,
0.03342527896165848,
0.32324913144111633,
1.3838582038879395,
3.344939947128296,
0.19975163042545319,
0.33653339743614197,
-0.026511143893003464,
-1.0484386682510376,
1.4739922285079956,
0.895093560218811,
-0.1507161557674408,
-0.5856958031654358,
-0.9733037352561951,
1.3298733234405518,
1.9743585586547852,
1.238135576248169,
0.10547363758087158,
-0.9724105000495911,
-0.9134730696678162,
0.12453345954418182,
0.2477145940065384,
0.5293604135513306,
1.0370349884033203,
-0.07940903306007385,
0.08839721977710724,
1.4498844146728516,
1.3592780828475952,
-0.43887805938720703,
0.4400479793548584,
-1.0032142400741577,
-0.3889917731285095,
0.4539310932159424,
0.2615400552749634,
0.17298145592212677,
0.6141401529312134,
-1.0828410387039185,
-0.2502821385860443,
-0.2172236293554306,
-0.9822447299957275,
-0.7453027367591858,
-0.4876048266887665,
-0.37011101841926575,
1.5642186403274536,
0.1148090660572052,
-0.4374230206012726,
0.055965352803468704,
-0.8402764201164246,
-0.14444470405578613,
-1.0091758966445923,
0.2723686099052429,
-0.0942951887845993,
0.07268765568733215,
-0.1562558114528656,
1.6717504262924194,
-0.9709851741790771,
-2.1662042140960693,
0.22474540770053864,
0.28482362627983093,
-0.5231223106384277,
0.18838845193386078,
1.662400484085083,
0.503021240234375,
1.3963366746902466,
1.207934856414795,
0.9870054125785828,
-0.6670995354652405,
-1.2301406860351562,
0.7059794068336487,
0.9995548725128174,
-1.4261260032653809,
0.8363396525382996,
-0.17667995393276215,
-0.46814388036727905,
0.6570375561714172,
1.417249083518982,
0.30939164757728577,
-1.8738352060317993,
0.7934319972991943,
-0.755733847618103,
0.7251510620117188,
0.5583489537239075,
0.744130551815033,
0.19778035581111908,
0.8258162140846252,
-1.403830647468567,
-1.0151108503341675,
-0.6945579648017883,
-0.5576444864273071,
1.858253002166748,
-0.15241385996341705,
0.49923771619796753,
-0.15231649577617645,
-1.1665304899215698,
-0.16630502045154572,
0.692823588848114,
0.2994025647640228,
-0.3438502252101898,
0.9115762114524841,
-0.6681264042854309,
-1.1443321704864502,
-1.346705675125122,
-0.4772723615169525,
-0.8567253351211548,
-0.9102429747581482,
0.9981200695037842,
0.8351408839225769,
0.3500415086746216,
1.9121040105819702,
0.45404571294784546,
0.17502029240131378,
-2.730994701385498,
0.8903331160545349,
0.21701954305171967,
0.00999804399907589,
1.0210025310516357,
0.09419862180948257,
1.1495683193206787,
-0.08219514787197113,
0.633964478969574,
-2.2527565956115723,
2.212116241455078,
-0.18826748430728912,
0.5999309420585632,
-0.008201275952160358,
-0.17419637739658356,
1.0938992500305176,
0.5598762631416321,
0.6789830327033997,
-1.2660466432571411,
0.7506799697875977,
-0.6214459538459778,
1.0824145078659058,
0.9583659172058105,
-0.8936089873313904,
0.01633063144981861,
1.213455080986023,
0.4768461287021637,
-0.3753887414932251,
-0.9710159301757812,
-0.8464391231536865,
0.8720014691352844,
1.7747174501419067,
-0.0015310565941035748,
0.04415680468082428,
0.9078225493431091,
0.6460517048835754,
-1.456446647644043,
0.012317558750510216,
-0.6734445691108704,
-0.6271157264709473,
1.7368789911270142,
2.162644147872925,
0.027309637516736984,
-0.21981646120548248,
-0.630060613155365,
-1.2143044471740723,
0.720335066318512,
-0.026657674461603165,
0.24097061157226562,
0.6758219003677368,
-0.7178465723991394,
1.1995558738708496,
0.6457366943359375,
0.9788573980331421,
0.02798941358923912,
0.30672600865364075,
0.30956897139549255,
-0.3369142413139343,
-1.2649493217468262,
-0.4238792955875397,
-1.124696135520935,
-2.4747166633605957,
0.39431169629096985,
-0.26401016116142273,
-1.4044324159622192,
0.06998050957918167,
-1.0240497589111328,
0.7661614418029785,
-0.6151913404464722,
-1.095363974571228,
-1.2811893224716187,
0.3015995919704437,
-0.20076659321784973,
0.8680265545845032,
-1.703072428703308,
-0.03609310835599899,
1.3666871786117554,
1.0258780717849731,
-0.4228590428829193,
1.0092077255249023,
0.2683257460594177,
1.0662946701049805,
0.8123344779014587,
-0.2952781319618225,
0.5160395503044128,
0.2532908320426941,
-1.3763718605041504,
0.4183000922203064,
1.1449337005615234,
0.25824904441833496,
1.4226216077804565,
-0.5001451969146729,
0.22094041109085083,
0.5418444275856018,
-0.5424247980117798,
-0.5125685930252075,
-0.47210025787353516,
0.7094864249229431,
0.1926390677690506,
-1.1138904094696045,
0.03205623850226402,
-0.13436700403690338,
-0.14392536878585815,
0.2473195344209671,
-1.5076091289520264,
-0.2800935208797455,
-0.27569320797920227,
-0.428788959980011,
-1.1934351921081543,
0.03459613770246506,
1.292340874671936,
-0.902158260345459,
-0.14006942510604858,
0.45699837803840637,
0.3686942458152771,
0.598029613494873,
0.6759775876998901,
-0.6668106913566589,
-0.41724175214767456,
-0.343123197555542,
-0.27100396156311035,
0.23936912417411804,
1.0966848134994507,
-0.15607142448425293,
-1.0766507387161255,
0.6920261383056641,
-0.48418867588043213,
0.08963961899280548,
1.9256885051727295,
0.010464182123541832,
-0.7715705633163452,
0.3574259579181671,
-0.60982346534729,
1.8660866022109985,
1.5966976881027222,
1.3449379205703735,
-0.12973237037658691,
-0.8421786427497864,
0.5527673959732056,
-0.23263271152973175,
-0.3456316888332367,
0.8956730961799622,
0.42477962374687195,
-0.19455313682556152,
-1.4546175003051758,
0.359095960855484,
1.3543342351913452,
-1.037496566772461,
-0.6743646264076233,
-0.007009658496826887,
-0.9688250422477722,
1.1290785074234009,
0.7737147808074951,
0.3073102533817291,
0.30874595046043396,
1.541421890258789,
0.7000902891159058,
-0.47729843854904175,
0.44941774010658264,
0.45142191648483276,
-0.3016423285007477,
-2.075991630554199,
-0.8832415342330933,
0.1811235398054123,
-0.3633953332901001,
-1.445537805557251,
1.243172526359558,
-1.2889939546585083,
-0.8748144507408142,
0.48767563700675964,
0.07669716328382492,
1.3576501607894897,
0.2678016722202301,
1.7391347885131836,
2.0636661052703857,
0.9051893949508667,
0.14071586728096008,
1.292599081993103,
-0.019897732883691788,
-0.40328502655029297,
1.7346107959747314,
-0.398075133562088,
0.6193804740905762,
0.9780882596969604,
-0.4146290421485901,
-1.0307899713516235,
-0.9195226430892944,
-1.1517373323440552,
-0.5821745991706848,
1.2146658897399902,
0.20353996753692627,
-1.1841447353363037,
0.16562817990779877,
1.6001574993133545,
0.03937600925564766,
-0.19392280280590057,
0.6600093841552734,
0.5343194603919983,
-0.6636855602264404,
-0.08090003579854965,
-0.8454318046569824,
0.4819861650466919,
-0.1502486765384674,
-0.3746705651283264,
0.1971379667520523,
0.49024781584739685,
1.1570754051208496,
0.029771242290735245,
0.12684635818004608,
1.3549928665161133,
-1.3043218851089478,
1.577394962310791,
-0.5703056454658508,
0.26412126421928406,
-2.468759298324585,
1.3876093626022339,
-0.8600711226463318,
1.9219701290130615,
-2.535114288330078,
0.5114424228668213,
-0.5691924691200256,
-0.4646831750869751,
0.2535855770111084,
-0.5509920120239258,
0.14752954244613647,
-0.10941772162914276,
-0.98262619972229,
-0.2950676381587982,
-0.7986608743667603,
0.4432555139064789,
1.1140412092208862,
1.3328278064727783,
-1.0111230611801147,
-0.25740039348602295,
-1.8301726579666138,
-0.21722273528575897,
-0.7207516431808472,
0.3909611701965332,
-1.9467538595199585,
-0.22314713895320892,
-2.037309408187866,
-2.4170937538146973,
-1.5043246746063232,
-0.8784835338592529,
1.0380131006240845,
0.06433534622192383,
-0.9060280323028564,
1.0370408296585083,
-0.39478906989097595,
-1.7616233825683594,
0.9826706051826477,
-2.188483238220215
] |
https://github.com/huggingface/datasets/issues/5288 | Lossy json serialization - deserialization of dataset info | Hi ! JSON is a lossy format indeed. If you want to keep the feature types or other metadata I'd encourage you to store them as well. For example you can use `dataset.info.write_to_directory` and `DatasetInfo.from_directory` to store the feature types, split info, description, license etc. | ### Describe the bug
Saving a dataset to disk as json (using `to_json`) and then loading it again (using `load_dataset`) results in features whose labels are not type-cast correctly. In the code snippet below, `features.label` should have a label of type `ClassLabel` but has type `Value` instead.
### Steps to reproduce the bug
```
from datasets import load_dataset
def test_serdes_from_json(d):
dataset = load_dataset(d, split="train")
dataset.to_json('_test')
dataset_loaded = load_dataset("json", data_files='_test', split='train')
try:
assert dataset_loaded.info.features == dataset.info.features, "features unequal!"
except Exception as ex:
print(f'{ex}')
print(f'expected {dataset.info.features}, \nactual { dataset_loaded.info.features }')
test_serdes_from_json('rotten_tomatoes')
```
Output
```
features unequal!
expected {'text': Value(dtype='string', id=None), 'label': ClassLabel(names=['neg', 'pos'], id=None)},
actual {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}
```
### Expected behavior
The deserialized `features.label` should have type `ClassLabel`.
### Environment info
- `datasets` version: 2.6.1
- Platform: Linux-5.10.144-127.601.amzn2.x86_64-x86_64-with-glibc2.17
- Python version: 3.7.13
- PyArrow version: 7.0.0
- Pandas version: 1.2.3 | 397 | 45 | Lossy json serialization - deserialization of dataset info
### Describe the bug
Saving a dataset to disk as json (using `to_json`) and then loading it again (using `load_dataset`) results in features whose labels are not type-cast correctly. In the code snippet below, `features.label` should have a label of type `ClassLabel` but has type `Value` instead.
### Steps to reproduce the bug
```
from datasets import load_dataset
def test_serdes_from_json(d):
dataset = load_dataset(d, split="train")
dataset.to_json('_test')
dataset_loaded = load_dataset("json", data_files='_test', split='train')
try:
assert dataset_loaded.info.features == dataset.info.features, "features unequal!"
except Exception as ex:
print(f'{ex}')
print(f'expected {dataset.info.features}, \nactual { dataset_loaded.info.features }')
test_serdes_from_json('rotten_tomatoes')
```
Output
```
features unequal!
expected {'text': Value(dtype='string', id=None), 'label': ClassLabel(names=['neg', 'pos'], id=None)},
actual {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}
```
### Expected behavior
The deserialized `features.label` should have type `ClassLabel`.
### Environment info
- `datasets` version: 2.6.1
- Platform: Linux-5.10.144-127.601.amzn2.x86_64-x86_64-with-glibc2.17
- Python version: 3.7.13
- PyArrow version: 7.0.0
- Pandas version: 1.2.3
Hi ! JSON is a lossy format indeed. If you want to keep the feature types or other metadata I'd encourage you to store them as well. For example you can use `dataset.info.write_to_directory` and `DatasetInfo.from_directory` to store the feature types, split info, description, license etc. | [
-1.1897344589233398,
-0.9814062714576721,
-0.6852878928184509,
1.635185718536377,
-0.21063145995140076,
-1.1490113735198975,
0.1617978811264038,
-1.009643316268921,
1.7089990377426147,
-0.745701789855957,
0.26563555002212524,
-1.6730543375015259,
0.027536578476428986,
-0.6985669732093811,
-0.7147949934005737,
-0.8331109881401062,
-0.3796041011810303,
-0.6662377715110779,
1.1058496236801147,
2.4390316009521484,
1.186232328414917,
-1.384412169456482,
2.69535493850708,
0.7308775782585144,
-0.16016778349876404,
-1.0230588912963867,
0.4992172122001648,
-0.036490581929683685,
-1.248173713684082,
-0.4046950042247772,
-0.8998287320137024,
-0.14954876899719238,
-0.5838186740875244,
-0.5728679895401001,
0.011666972190141678,
0.4687289297580719,
-0.3455936908721924,
-0.5402042269706726,
-0.5245900750160217,
-0.7452112436294556,
0.4660641849040985,
-0.3918188810348511,
0.8674840927124023,
-0.32634079456329346,
1.7678086757659912,
-0.4809931218624115,
0.4257815480232239,
0.7150152325630188,
1.358610987663269,
0.19354620575904846,
0.03971400111913681,
0.45171138644218445,
0.37522754073143005,
0.052918657660484314,
0.5539905428886414,
1.149357557296753,
0.6958918571472168,
0.4496789872646332,
0.8150085806846619,
-2.2688400745391846,
1.2761322259902954,
-1.1196441650390625,
0.37679675221443176,
1.3480372428894043,
-0.9378207921981812,
0.43563953042030334,
-1.7230607271194458,
0.04672471806406975,
0.5908151268959045,
-2.1712844371795654,
0.3100578188896179,
-1.288109540939331,
-0.42209210991859436,
1.0025957822799683,
0.41848182678222656,
-1.1875118017196655,
0.08005160093307495,
-0.3922702372074127,
1.0665422677993774,
0.41105470061302185,
1.03727126121521,
-1.669889211654663,
0.001619919203221798,
-0.29531559348106384,
0.17993095517158508,
-1.228678584098816,
-1.5365734100341797,
0.5161182880401611,
0.6852948069572449,
0.6274480223655701,
-0.18843036890029907,
1.0696098804473877,
-1.0470887422561646,
0.6367348432540894,
-1.0388157367706299,
-1.7958743572235107,
-1.3775382041931152,
-2.2598345279693604,
-2.2566699981689453,
0.684336245059967,
-0.38856977224349976,
-0.4929327964782715,
2.067767858505249,
-0.914400041103363,
-1.8239588737487793,
1.1844637393951416,
0.30040374398231506,
-0.026473393663764,
2.367319345474243,
0.21073365211486816,
-0.7647201418876648,
0.5084298253059387,
-0.7987790107727051,
0.6775787472724915,
-0.35261160135269165,
1.3350778818130493,
0.43204155564308167,
-0.9578952789306641,
1.6150575876235962,
-0.32266584038734436,
0.6473952531814575,
-0.6345019936561584,
-0.4592522084712982,
-0.7502796053886414,
0.2384902834892273,
1.9847835302352905,
-0.23985224962234497,
1.419482946395874,
-0.3431851863861084,
-1.5838078260421753,
-1.6510792970657349,
0.9191967248916626,
0.3869064152240753,
-0.7414973378181458,
0.17004942893981934,
-0.41509443521499634,
0.17406442761421204,
-0.07067929208278656,
1.153941035270691,
1.3094710111618042,
0.7417620420455933,
-0.36704161763191223,
-0.842648983001709,
0.21703818440437317,
-0.017231019213795662,
-0.6692543625831604,
-1.8037278652191162,
-0.2766592800617218,
0.07741736620664597,
0.685340404510498,
-1.1361192464828491,
1.6740976572036743,
0.8473348617553711,
1.8897333145141602,
1.0410364866256714,
-0.37691280245780945,
1.593009352684021,
0.09144055098295212,
1.8294000625610352,
-0.5315003991127014,
0.6399320363998413,
-0.3686959445476532,
-1.148443579673767,
0.8653900027275085,
-0.27934524416923523,
-2.104431629180908,
-0.7180383801460266,
-0.8237448334693909,
-0.1806759536266327,
-0.7642304301261902,
0.8490273356437683,
-0.3412482738494873,
-1.48763108253479,
0.25555530190467834,
-0.7722862362861633,
0.21279379725456238,
-1.1865675449371338,
0.3518882691860199,
0.7133758664131165,
-0.623942494392395,
0.09165658056735992,
-0.2762529253959656,
-1.256657361984253,
-0.47439372539520264,
0.44352853298187256,
1.8322254419326782,
-0.8134366869926453,
0.8187597393989563,
1.0869989395141602,
-0.7166211605072021,
0.022113382816314697,
0.24502798914909363,
-0.1614111363887787,
0.8278868198394775,
-1.0635223388671875,
-0.5486233234405518,
1.1792317628860474,
-0.21025684475898743,
-0.6613433361053467,
1.4441041946411133,
0.7410427927970886,
-1.0163891315460205,
-0.17866292595863342,
-0.1762704849243164,
-0.8233373761177063,
0.013219758868217468,
-1.5652589797973633,
-0.11970110982656479,
0.5087987780570984,
-1.6106483936309814,
-0.49023300409317017,
-0.26798152923583984,
1.3200781345367432,
-0.07127396762371063,
1.4046262502670288,
-0.29510265588760376,
-0.16742169857025146,
-0.2624801695346832,
-0.3888229727745056,
0.23359477519989014,
-0.3113369643688202,
-0.6029973030090332,
0.09654974192380905,
-0.8259232640266418,
0.3860887289047241,
1.3968247175216675,
0.2922287881374359,
0.04738781228661537,
0.5903726816177368,
1.1747838258743286,
0.43218478560447693,
-0.04432627186179161,
-0.8953551650047302,
-1.5359841585159302,
1.958661675453186,
-1.4561550617218018,
1.971757411956787,
0.561041533946991,
-0.019903514534235,
-1.766343116760254,
-1.921283483505249,
1.4307552576065063,
1.1203346252441406,
2.2729198932647705,
0.5764051079750061,
0.42814546823501587,
-0.8933118581771851,
-0.6949456930160522,
0.19963061809539795,
-0.9560371041297913,
-0.7699083089828491,
0.1588945984840393,
2.4288864135742188,
1.766008973121643,
-0.3924655020236969,
-0.20934507250785828,
-0.9901215434074402,
1.5448721647262573,
-0.21017783880233765,
0.2148173749446869,
2.0933895111083984,
-0.19452494382858276,
-1.015000343322754,
1.3386151790618896,
-2.4266045093536377,
0.21624594926834106,
1.9959349632263184,
0.24180743098258972,
0.14421185851097107,
-1.3948875665664673,
-0.6933372616767883,
-0.2398388683795929,
-0.449156790971756,
-1.3172961473464966,
0.4857812523841858,
-0.27089425921440125,
-0.7394536733627319,
-1.4715803861618042,
0.23906710743904114,
-1.059045672416687,
-1.6573292016983032,
0.15043190121650696,
1.9395054578781128,
2.0513460636138916,
-0.7280195951461792,
1.6315091848373413,
-0.27269548177719116,
0.2460775077342987,
1.3111701011657715,
1.207594633102417,
3.074671745300293,
1.9202296733856201,
-1.249605655670166,
0.6384333372116089,
-0.12659353017807007,
-0.4644782543182373,
1.089099407196045,
-1.2944668531417847,
1.280726432800293,
-0.1992698311805725,
-1.1915141344070435,
-1.1932623386383057,
0.9291673302650452,
0.5244961380958557,
0.03982441499829292,
-0.475614994764328,
1.1873329877853394,
-0.048893384635448456,
1.3640093803405762,
0.5912024974822998,
-0.3659899830818176,
0.6111141443252563,
-0.4062950313091278,
-0.49422451853752136,
1.5506848096847534,
0.17251110076904297,
-1.3986475467681885,
-2.213831663131714,
-0.24651318788528442,
-0.8020144104957581,
0.04400819540023804,
-0.5407346487045288,
-0.9319755434989929,
1.615376353263855,
0.32946687936782837,
-1.171286940574646,
-0.22173252701759338,
-0.2784382402896881,
-0.500257134437561,
2.789431095123291,
-1.3588100671768188,
-0.3141433298587799,
-1.0334707498550415,
-0.6567712426185608,
1.6703842878341675,
-1.1364970207214355,
-0.23340871930122375,
-1.032808542251587,
-0.5880776643753052,
-1.3426682949066162,
-0.550900399684906,
-0.012247704900801182,
-0.9045151472091675,
0.9285808205604553,
0.2153831124305725,
-1.2812138795852661,
-0.3378201127052307,
-0.922825813293457,
0.9325227737426758,
-0.18470248579978943,
0.21917718648910522,
1.858790636062622,
0.34423601627349854,
-0.3325537145137787,
0.7763146162033081,
1.091458797454834,
0.6581942439079285,
-0.6372244358062744,
0.2712255120277405,
-0.6080896258354187,
0.38148602843284607,
-1.2848566770553589,
0.28565746545791626,
-2.864299774169922,
0.6411462426185608,
-0.01212485320866108,
-0.04882267862558365,
-0.09332822263240814,
-1.3767141103744507,
1.0310485363006592,
2.5727040767669678,
-1.2529311180114746,
0.5270769000053406,
0.30860090255737305,
1.2861536741256714,
-1.5769261121749878,
0.21636229753494263,
-0.4315418601036072,
2.1349356174468994,
0.1647421419620514,
1.2507266998291016,
-0.3899468779563904,
-2.4017486572265625,
0.5714508295059204,
-1.3212887048721313,
-1.1225826740264893,
0.7147878408432007,
-0.8731839060783386,
0.1439855992794037,
-1.4272409677505493,
-0.23573392629623413,
-0.8706303834915161,
-1.1505275964736938,
0.6744956374168396,
0.18303272128105164,
0.3868345320224762,
-0.5960748791694641,
0.39816272258758545,
-2.175421953201294,
-1.396665334701538,
-0.22121751308441162,
-0.9674184322357178,
0.49312514066696167,
-0.40077725052833557,
0.6708308458328247,
-0.1573435664176941,
-0.05775007978081703,
0.37723758816719055,
1.48673415184021,
3.2907660007476807,
0.09623925387859344,
0.29601559042930603,
-0.19421398639678955,
-1.0018601417541504,
1.4786678552627563,
0.9059001803398132,
-0.16133081912994385,
-0.4617903530597687,
-1.1325844526290894,
1.3054720163345337,
1.9687496423721313,
1.0476713180541992,
-0.032083071768283844,
-0.7776201367378235,
-0.7586281895637512,
0.038031887263059616,
0.22416359186172485,
0.5060244202613831,
0.8146800398826599,
0.10239426046609879,
0.06022840738296509,
1.3892384767532349,
1.1438963413238525,
-0.3786154091358185,
0.34787482023239136,
-0.8426299095153809,
-0.493661105632782,
0.5001340508460999,
0.2372090220451355,
-0.06521259248256683,
0.24335592985153198,
-1.0721025466918945,
-0.20086044073104858,
-0.3785005509853363,
-0.8379594087600708,
-0.750829815864563,
-0.40265733003616333,
-0.40709352493286133,
1.587753176689148,
0.2224019467830658,
-0.6220226883888245,
-0.13707318902015686,
-0.7636445760726929,
-0.06781795620918274,
-0.9901660084724426,
0.31347817182540894,
-0.22070911526679993,
-0.17704400420188904,
-0.13058748841285706,
1.700764775276184,
-0.936312735080719,
-2.082655191421509,
0.2240627408027649,
0.2541821002960205,
-0.2266833782196045,
0.26678580045700073,
1.644767165184021,
0.5913248062133789,
1.4210916757583618,
1.3660016059875488,
0.9590469002723694,
-0.6512952446937561,
-1.3687342405319214,
0.653967022895813,
1.0280264616012573,
-1.396479606628418,
0.7018752694129944,
-0.02164383791387081,
-0.5244684815406799,
0.5696988701820374,
1.3087974786758423,
0.4691961109638214,
-2.0381534099578857,
0.7912396192550659,
-1.0563302040100098,
0.8068325519561768,
0.7829897403717041,
0.682862401008606,
0.21208959817886353,
0.7789110541343689,
-1.249254584312439,
-1.0868474245071411,
-0.7547309398651123,
-0.7551902532577515,
1.9444587230682373,
-0.34981492161750793,
0.595992386341095,
-0.1532992124557495,
-1.369157075881958,
-0.10332675278186798,
0.6795300841331482,
0.34856072068214417,
-0.5788999795913696,
0.782764732837677,
-0.6718742847442627,
-1.1615080833435059,
-1.2922812700271606,
-0.5094175934791565,
-1.0687443017959595,
-1.01201331615448,
0.9968535900115967,
0.8242245316505432,
0.26429760456085205,
1.7819117307662964,
0.6668156981468201,
0.24910813570022583,
-2.6038620471954346,
0.867002546787262,
0.28308039903640747,
-0.1209150180220604,
0.720513641834259,
0.3690487742424011,
0.9599653482437134,
-0.010534730739891529,
0.6239213347434998,
-2.385535717010498,
2.350708484649658,
-0.14212122559547424,
0.739221453666687,
-0.02413846179842949,
-0.11650408059358597,
1.0094878673553467,
0.5113890767097473,
0.5368502736091614,
-0.9554082155227661,
0.6751218438148499,
-0.6248205900192261,
1.3171066045761108,
0.8525009751319885,
-0.7892478108406067,
-0.07123500108718872,
1.3245887756347656,
0.4170645773410797,
-0.6518349647521973,
-0.9817554950714111,
-1.0211119651794434,
0.927822470664978,
1.7333298921585083,
-0.1219361200928688,
-0.016738275066018105,
0.8403563499450684,
0.6258475184440613,
-1.2994426488876343,
0.04240957275032997,
-0.677204430103302,
-0.6403418183326721,
1.7103006839752197,
2.0500800609588623,
-0.3299401104450226,
-0.1277742087841034,
-0.7851082682609558,
-1.2603319883346558,
0.7083374857902527,
0.03738969564437866,
0.005513066425919533,
0.6886416673660278,
-0.6349079608917236,
0.9795548915863037,
0.833482563495636,
0.9204515814781189,
0.17933043837547302,
0.304245263338089,
0.33979254961013794,
-0.44596707820892334,
-1.241199254989624,
-0.2599898874759674,
-1.03828763961792,
-2.491382360458374,
0.37259653210639954,
-0.1717870831489563,
-1.287680745124817,
0.08453355729579926,
-1.0348138809204102,
0.9961696863174438,
-0.5711379051208496,
-1.0865445137023926,
-1.3971829414367676,
0.2244337797164917,
-0.031070653349161148,
0.8987926840782166,
-1.6040239334106445,
-0.05608499422669411,
1.2539600133895874,
0.9901189804077148,
-0.7241066098213196,
0.9555309414863586,
0.24944105744361877,
1.0611834526062012,
0.8615033030509949,
-0.3383648991584778,
0.5921297669410706,
0.02106454223394394,
-1.2839137315750122,
0.5239471793174744,
1.166335105895996,
0.20823976397514343,
1.5046203136444092,
-0.5935181975364685,
-0.13280564546585083,
0.4097845256328583,
-0.6355017423629761,
-0.3810589611530304,
-0.5278818011283875,
0.5889544486999512,
-0.028734100982546806,
-0.8921641111373901,
0.05332888662815094,
0.014239570125937462,
-0.16512975096702576,
0.15156453847885132,
-1.522433876991272,
-0.11260861903429031,
-0.329947292804718,
-0.6469647288322449,
-1.1747424602508545,
-0.1101972833275795,
1.3570374250411987,
-0.7257546186447144,
-0.2979941666126251,
0.47931644320487976,
0.3067702353000641,
0.5099307298660278,
0.6414040923118591,
-0.7204874157905579,
-0.28472280502319336,
-0.20830649137496948,
-0.33905425667762756,
0.3122771978378296,
1.4035402536392212,
-0.11965318769216537,
-1.0061777830123901,
0.7495552897453308,
-0.41048315167427063,
0.07023604959249496,
1.8202946186065674,
0.04764832556247711,
-0.8534395098686218,
0.2442992627620697,
-0.7949734926223755,
1.989964485168457,
1.768060326576233,
1.3497967720031738,
-0.2526687979698181,
-0.9473817348480225,
0.6552039980888367,
-0.4727335274219513,
-0.38723722100257874,
0.8821339011192322,
0.4434199929237366,
-0.2625553607940674,
-1.3447928428649902,
0.8641075491905212,
1.2605427503585815,
-0.848767101764679,
-0.8790060877799988,
0.24054265022277832,
-0.7312614917755127,
1.1202536821365356,
0.7247726917266846,
0.37119296193122864,
0.24632033705711365,
1.624394416809082,
0.8249456882476807,
-0.42977267503738403,
0.5270658731460571,
0.49029916524887085,
-0.21921706199645996,
-2.09211802482605,
-1.1889230012893677,
0.31824180483818054,
-0.6359691619873047,
-1.6800905466079712,
1.35442054271698,
-1.1369212865829468,
-0.9035319685935974,
0.5307380557060242,
0.09853760153055191,
1.4152228832244873,
0.3834441602230072,
1.4505952596664429,
1.972182035446167,
0.837559700012207,
0.5014206171035767,
1.262671709060669,
-0.180132657289505,
-0.43989577889442444,
1.7135589122772217,
-0.45553213357925415,
0.4945827126502991,
1.193725347518921,
-0.2928242087364197,
-1.0640830993652344,
-0.7581914663314819,
-1.3092483282089233,
-0.7171617746353149,
1.120233416557312,
0.1278424859046936,
-1.1165205240249634,
0.27916544675827026,
1.5443649291992188,
0.10258954018354416,
-0.35814374685287476,
0.7233354449272156,
0.33240625262260437,
-0.8215684294700623,
-0.061620719730854034,
-0.9368732571601868,
0.502061128616333,
-0.33393919467926025,
-0.3487156629562378,
0.39749160408973694,
0.3529053032398224,
1.363787055015564,
0.07683423906564713,
0.15382227301597595,
1.0907716751098633,
-1.3568867444992065,
1.4977198839187622,
-0.7645738124847412,
0.32833331823349,
-2.388936996459961,
1.3424850702285767,
-0.7775606513023376,
2.0269317626953125,
-2.6696653366088867,
0.4684627056121826,
-0.5969102382659912,
-0.4060068726539612,
0.27059808373451233,
-0.31335991621017456,
0.06255184859037399,
-0.07793807983398438,
-1.2131633758544922,
-0.014578161761164665,
-0.6938085556030273,
0.5535468459129333,
1.134156346321106,
1.4131430387496948,
-1.07951819896698,
-0.23876214027404785,
-1.763439655303955,
-0.18642449378967285,
-0.7631068825721741,
0.35542938113212585,
-1.9502780437469482,
-0.24129515886306763,
-1.8565175533294678,
-2.3629140853881836,
-1.0948344469070435,
-0.7806352972984314,
1.201002597808838,
0.04824914038181305,
-0.8502225279808044,
1.3666495084762573,
-0.32256409525871277,
-1.8463793992996216,
1.0827808380126953,
-2.1632933616638184
] |
https://github.com/huggingface/datasets/issues/5286 | FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/enwiki/20220301/dumpstatus.json | I found a solution
If you specifically install datasets==1.18 and then run
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.en')
then this should work (it worked for me.) | ### Describe the bug
I follow the steps provided on the website [https://huggingface.co/datasets/wikipedia](https://huggingface.co/datasets/wikipedia)
$ pip install apache_beam mwparserfromhell
>>> from datasets import load_dataset
>>> load_dataset("wikipedia", "20220301.en")
however this results in the following error:
raise MissingBeamOptions(
datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20220301.en', beam_runner='DirectRunner')`
If I then prompt the system with:
>>> load_dataset('wikipedia', '20220301.en', beam_runner='DirectRunner')
the following error occurs:
raise FileNotFoundError(f"Couldn't find file at {url}")
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/enwiki/20220301/dumpstatus.json
Here is the exact code:
Python 3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
>>> load_dataset('wikipedia', '20220301.en')
Downloading and preparing dataset wikipedia/20220301.en to /home/[EDITED]/.cache/huggingface/datasets/wikipedia/20220301.en/2.0.0/aa542ed919df55cc5d3347f42dd4521d05ca68751f50dbc32bae2a7f1e167559...
Downloading: 100%|████████████████████████████████████████████████████████████████████████████| 15.3k/15.3k [00:00<00:00, 22.2MB/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line 1741, in load_dataset
builder_instance.download_and_prepare(
File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 1879, in _download_and_prepare
raise MissingBeamOptions(
datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20220301.en', beam_runner='DirectRunner')`
>>> load_dataset('wikipedia', '20220301.en', beam_runner='DirectRunner')
Downloading and preparing dataset wikipedia/20220301.en to /home/[EDITED]/.cache/huggingface/datasets/wikipedia/20220301.en/2.0.0/aa542ed919df55cc5d3347f42dd4521d05ca68751f50dbc32bae2a7f1e167559...
Downloading: 100%|████████████████████████████████████████████████████████████████████████████| 15.3k/15.3k [00:00<00:00, 18.8MB/s]
Downloading data files: 0%| | 0/1 [00:00<?, ?it/s]Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line 1741, in load_dataset
builder_instance.download_and_prepare(
File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 1909, in _download_and_prepare
super()._download_and_prepare(
File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 891, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/rorytol/.cache/huggingface/modules/datasets_modules/datasets/wikipedia/aa542ed919df55cc5d3347f42dd4521d05ca68751f50dbc32bae2a7f1e167559/wikipedia.py", line 945, in _split_generators
downloaded_files = dl_manager.download_and_extract({"info": info_url})
File "/usr/local/lib/python3.10/dist-packages/datasets/download/download_manager.py", line 447, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/usr/local/lib/python3.10/dist-packages/datasets/download/download_manager.py", line 311, in download
downloaded_path_or_paths = map_nested(
File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 444, in map_nested
mapped = [
File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 445, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 346, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.10/dist-packages/datasets/download/download_manager.py", line 338, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/local/lib/python3.10/dist-packages/datasets/utils/file_utils.py", line 183, in cached_path
output_path = get_from_cache(
File "/usr/local/lib/python3.10/dist-packages/datasets/utils/file_utils.py", line 530, in get_from_cache
raise FileNotFoundError(f"Couldn't find file at {url}")
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/enwiki/20220301/dumpstatus.json
### Steps to reproduce the bug
$ pip install apache_beam mwparserfromhell
>>> from datasets import load_dataset
>>> load_dataset("wikipedia", "20220301.en")
>>> load_dataset('wikipedia', '20220301.en', beam_runner='DirectRunner')
### Expected behavior
Download the dataset
### Environment info
Running linux on a remote workstation operated through a macbook terminal
Python 3.10.6
| 398 | 26 | FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/enwiki/20220301/dumpstatus.json
### Describe the bug
I follow the steps provided on the website [https://huggingface.co/datasets/wikipedia](https://huggingface.co/datasets/wikipedia)
$ pip install apache_beam mwparserfromhell
>>> from datasets import load_dataset
>>> load_dataset("wikipedia", "20220301.en")
however this results in the following error:
raise MissingBeamOptions(
datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20220301.en', beam_runner='DirectRunner')`
If I then prompt the system with:
>>> load_dataset('wikipedia', '20220301.en', beam_runner='DirectRunner')
the following error occurs:
raise FileNotFoundError(f"Couldn't find file at {url}")
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/enwiki/20220301/dumpstatus.json
Here is the exact code:
Python 3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
>>> load_dataset('wikipedia', '20220301.en')
Downloading and preparing dataset wikipedia/20220301.en to /home/[EDITED]/.cache/huggingface/datasets/wikipedia/20220301.en/2.0.0/aa542ed919df55cc5d3347f42dd4521d05ca68751f50dbc32bae2a7f1e167559...
Downloading: 100%|████████████████████████████████████████████████████████████████████████████| 15.3k/15.3k [00:00<00:00, 22.2MB/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line 1741, in load_dataset
builder_instance.download_and_prepare(
File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 1879, in _download_and_prepare
raise MissingBeamOptions(
datasets.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20220301.en', beam_runner='DirectRunner')`
>>> load_dataset('wikipedia', '20220301.en', beam_runner='DirectRunner')
Downloading and preparing dataset wikipedia/20220301.en to /home/[EDITED]/.cache/huggingface/datasets/wikipedia/20220301.en/2.0.0/aa542ed919df55cc5d3347f42dd4521d05ca68751f50dbc32bae2a7f1e167559...
Downloading: 100%|████████████████████████████████████████████████████████████████████████████| 15.3k/15.3k [00:00<00:00, 18.8MB/s]
Downloading data files: 0%| | 0/1 [00:00<?, ?it/s]Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line 1741, in load_dataset
builder_instance.download_and_prepare(
File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 1909, in _download_and_prepare
super()._download_and_prepare(
File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 891, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/rorytol/.cache/huggingface/modules/datasets_modules/datasets/wikipedia/aa542ed919df55cc5d3347f42dd4521d05ca68751f50dbc32bae2a7f1e167559/wikipedia.py", line 945, in _split_generators
downloaded_files = dl_manager.download_and_extract({"info": info_url})
File "/usr/local/lib/python3.10/dist-packages/datasets/download/download_manager.py", line 447, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/usr/local/lib/python3.10/dist-packages/datasets/download/download_manager.py", line 311, in download
downloaded_path_or_paths = map_nested(
File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 444, in map_nested
mapped = [
File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 445, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 346, in _single_map_nested
return function(data_struct)
File "/usr/local/lib/python3.10/dist-packages/datasets/download/download_manager.py", line 338, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/local/lib/python3.10/dist-packages/datasets/utils/file_utils.py", line 183, in cached_path
output_path = get_from_cache(
File "/usr/local/lib/python3.10/dist-packages/datasets/utils/file_utils.py", line 530, in get_from_cache
raise FileNotFoundError(f"Couldn't find file at {url}")
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/enwiki/20220301/dumpstatus.json
### Steps to reproduce the bug
$ pip install apache_beam mwparserfromhell
>>> from datasets import load_dataset
>>> load_dataset("wikipedia", "20220301.en")
>>> load_dataset('wikipedia', '20220301.en', beam_runner='DirectRunner')
### Expected behavior
Download the dataset
### Environment info
Running linux on a remote workstation operated through a macbook terminal
Python 3.10.6
I found a solution
If you specifically install datasets==1.18 and then run
import datasets
wiki = datasets.load_dataset('wikipedia', '20200501.en')
then this should work (it worked for me.) | [
-1.2083998918533325,
-0.9795846939086914,
-0.7561137080192566,
1.441972255706787,
-0.188189297914505,
-1.1714004278182983,
0.05929543077945709,
-0.9904125332832336,
1.6878396272659302,
-0.6838863492012024,
0.20123139023780823,
-1.6519056558609009,
-0.08784256130456924,
-0.5095714330673218,
-0.7409930229187012,
-0.875947892665863,
-0.3625180125236511,
-0.820212185382843,
1.0455013513565063,
2.531432867050171,
1.1116446256637573,
-1.4800902605056763,
2.7362778186798096,
0.6243969798088074,
-0.1293506622314453,
-1.0292222499847412,
0.5932758450508118,
0.025293663144111633,
-1.2749528884887695,
-0.47751450538635254,
-0.935270369052887,
0.005960834212601185,
-0.5602297186851501,
-0.4345029592514038,
0.07112810760736465,
0.3621954917907715,
-0.22867128252983093,
-0.387457013130188,
-0.6053194999694824,
-0.7134981751441956,
0.4365968108177185,
-0.40416866540908813,
0.9595214128494263,
-0.30390530824661255,
1.7359592914581299,
-0.5555795431137085,
0.4147929549217224,
0.7679722309112549,
1.2477452754974365,
0.26485955715179443,
0.03839578479528427,
0.3819325566291809,
0.4070902466773987,
0.019813545048236847,
0.5412417054176331,
1.1727676391601562,
0.6444301009178162,
0.4030895233154297,
0.744719922542572,
-2.2669284343719482,
1.2925769090652466,
-1.0756609439849854,
0.31245023012161255,
1.3267593383789062,
-0.8387091159820557,
0.38600802421569824,
-1.8256723880767822,
0.003131032921373844,
0.6319615840911865,
-2.277165412902832,
0.27864861488342285,
-1.3243460655212402,
-0.46947115659713745,
0.9991438388824463,
0.31482255458831787,
-1.1974050998687744,
0.1848601996898651,
-0.4407804608345032,
1.0628300905227661,
0.4586511254310608,
1.1602628231048584,
-1.7214628458023071,
-0.004138123709708452,
-0.22070899605751038,
0.18144698441028595,
-1.1845437288284302,
-1.6187846660614014,
0.5853651165962219,
0.5553808212280273,
0.6399864554405212,
-0.14603282511234283,
0.9461020231246948,
-1.012249231338501,
0.7303214073181152,
-0.9503856301307678,
-1.6988105773925781,
-1.392683506011963,
-2.2558953762054443,
-2.2859256267547607,
0.7801091074943542,
-0.547951340675354,
-0.41576218605041504,
2.0761961936950684,
-0.9034720659255981,
-1.8089011907577515,
1.150122046470642,
0.2931707501411438,
0.038832854479551315,
2.3638665676116943,
0.2284812033176422,
-0.7467926740646362,
0.48146605491638184,
-0.7862209677696228,
0.8264471292495728,
-0.29519379138946533,
1.3774038553237915,
0.4168245792388916,
-0.9200498461723328,
1.5983805656433105,
-0.4678758978843689,
0.5752782225608826,
-0.6643426418304443,
-0.5643726587295532,
-0.7636933326721191,
0.31652212142944336,
1.9150162935256958,
-0.2636493444442749,
1.5330485105514526,
-0.38945066928863525,
-1.6259090900421143,
-1.5683817863464355,
0.9150087237358093,
0.5034109354019165,
-0.8872102499008179,
0.10355748236179352,
-0.38666749000549316,
0.14595235884189606,
-0.06715208292007446,
1.1287235021591187,
1.246685266494751,
0.7477368712425232,
-0.3527598977088928,
-0.8650940656661987,
0.11888033151626587,
-0.10583927482366562,
-0.6432599425315857,
-1.8402732610702515,
-0.3456026315689087,
0.14219483733177185,
0.6320577263832092,
-1.3197104930877686,
1.6173415184020996,
0.8677187561988831,
1.9669873714447021,
0.9668113589286804,
-0.42112839221954346,
1.4912220239639282,
0.12260408699512482,
1.8829193115234375,
-0.5831934213638306,
0.5772258639335632,
-0.39697927236557007,
-1.1367698907852173,
0.8476859331130981,
-0.3291449546813965,
-2.004295825958252,
-0.831337034702301,
-0.8510428667068481,
-0.2208067625761032,
-0.8352038264274597,
0.8618993759155273,
-0.2904103398323059,
-1.412218451499939,
0.253184974193573,
-0.7661919593811035,
0.10479803383350372,
-1.2242685556411743,
0.2743138074874878,
0.7413692474365234,
-0.6602125763893127,
0.07757681608200073,
-0.23159973323345184,
-1.3356423377990723,
-0.46967947483062744,
0.34012240171432495,
1.9063572883605957,
-0.6533148884773254,
0.8873217701911926,
1.0094859600067139,
-0.7503862977027893,
0.11601492762565613,
0.27490705251693726,
-0.26035594940185547,
0.7996102571487427,
-1.063675880432129,
-0.4551883935928345,
1.194512128829956,
-0.19864876568317413,
-0.6005696058273315,
1.4000658988952637,
0.6588174104690552,
-1.0727754831314087,
-0.22378118336200714,
-0.15825042128562927,
-0.8621844053268433,
-0.03553221374750137,
-1.5943634510040283,
-0.16771501302719116,
0.3170955181121826,
-1.5589489936828613,
-0.4540354013442993,
-0.2781484127044678,
1.236818790435791,
-0.1337464302778244,
1.3630510568618774,
-0.36615657806396484,
-0.09279854595661163,
-0.322842538356781,
-0.48439300060272217,
0.1694760024547577,
-0.3468518853187561,
-0.5991114974021912,
0.19548024237155914,
-0.8961984515190125,
0.27321523427963257,
1.5126054286956787,
0.3616666793823242,
-0.07611750811338425,
0.4402284026145935,
1.0475050210952759,
0.4250691533088684,
-0.016554705798625946,
-0.9577046036720276,
-1.513658881187439,
2.0249557495117188,
-1.4706202745437622,
1.8965840339660645,
0.6786760091781616,
-0.06339806318283081,
-1.7929046154022217,
-1.972104549407959,
1.333890438079834,
1.0836222171783447,
2.4290671348571777,
0.5706337690353394,
0.4692469835281372,
-0.7576240301132202,
-0.6685758829116821,
0.26708894968032837,
-0.9821416735649109,
-0.7734987735748291,
0.16824641823768616,
2.4950649738311768,
1.7266653776168823,
-0.4577059745788574,
-0.18421562016010284,
-0.9547004103660583,
1.3786048889160156,
-0.19515001773834229,
0.2192840427160263,
2.055147647857666,
-0.2270900011062622,
-1.0662219524383545,
1.2943317890167236,
-2.367192506790161,
0.19645629823207855,
2.029038906097412,
0.2559904456138611,
0.19660434126853943,
-1.4198566675186157,
-0.7027119994163513,
-0.2288958728313446,
-0.43523263931274414,
-1.1831486225128174,
0.6312721967697144,
-0.23182521760463715,
-0.8328088521957397,
-1.4824035167694092,
0.1432102769613266,
-1.1185778379440308,
-1.683966040611267,
0.2135145366191864,
1.9231325387954712,
2.1097161769866943,
-0.8362910151481628,
1.4960848093032837,
-0.37008601427078247,
0.08057788759469986,
1.2799714803695679,
1.1799694299697876,
3.099935293197632,
1.8984146118164062,
-1.2572836875915527,
0.6785021424293518,
-0.1655183583498001,
-0.4629037380218506,
1.177011489868164,
-1.161277413368225,
1.1469367742538452,
-0.22907207906246185,
-1.1676188707351685,
-1.219147801399231,
0.9635238647460938,
0.46325546503067017,
0.01271691732108593,
-0.5255496501922607,
1.2113070487976074,
-0.001481630839407444,
1.3780460357666016,
0.576405942440033,
-0.3955082297325134,
0.577959418296814,
-0.41754889488220215,
-0.5394926071166992,
1.622469425201416,
0.216363787651062,
-1.4727153778076172,
-2.3249497413635254,
-0.27526921033859253,
-0.8740883469581604,
0.03520869463682175,
-0.48840248584747314,
-1.0575826168060303,
1.6438336372375488,
0.40921759605407715,
-1.2322649955749512,
-0.3444225788116455,
-0.35004734992980957,
-0.5187210440635681,
2.672919988632202,
-1.3447730541229248,
-0.24918736517429352,
-0.9864612221717834,
-0.5597701072692871,
1.6586508750915527,
-1.1316306591033936,
-0.2172331064939499,
-1.0032955408096313,
-0.6522195935249329,
-1.401914358139038,
-0.5633689761161804,
0.0677279606461525,
-0.938434362411499,
0.8482259511947632,
0.261512815952301,
-1.1344088315963745,
-0.23251549899578094,
-0.8937726616859436,
0.965785801410675,
-0.08894678205251694,
0.2912527322769165,
1.9551615715026855,
0.3499720096588135,
-0.3243188261985779,
0.7211355566978455,
1.1710151433944702,
0.6357601284980774,
-0.6621848940849304,
0.0771385058760643,
-0.6890367269515991,
0.3523519039154053,
-1.4827083349227905,
0.15321099758148193,
-2.8981614112854004,
0.6090238094329834,
-0.046021848917007446,
-0.03165460377931595,
-0.002262115478515625,
-1.2554575204849243,
1.146531343460083,
2.532719135284424,
-1.2138688564300537,
0.49267953634262085,
0.43541425466537476,
1.2202668190002441,
-1.5404372215270996,
0.3071765899658203,
-0.382948100566864,
2.177372455596924,
0.15367066860198975,
1.2475483417510986,
-0.42616456747055054,
-2.3368544578552246,
0.62538743019104,
-1.3032363653182983,
-1.1079027652740479,
0.7075790166854858,
-0.8707373142242432,
0.16039340198040009,
-1.5450000762939453,
-0.19630369544029236,
-0.8481343984603882,
-1.2751184701919556,
0.7686536312103271,
0.10533646494150162,
0.3533664345741272,
-0.5598921775817871,
0.38606691360473633,
-2.173095941543579,
-1.3721423149108887,
-0.2062927931547165,
-0.9783635139465332,
0.5427314043045044,
-0.35505038499832153,
0.7248008251190186,
-0.1778438240289688,
0.030186016112565994,
0.27452731132507324,
1.4210519790649414,
3.446089267730713,
0.19059722125530243,
0.2585347294807434,
-0.15434758365154266,
-0.9620912671089172,
1.4442033767700195,
1.0107791423797607,
-0.2144969254732132,
-0.546635091304779,
-1.1254634857177734,
1.3091360330581665,
2.0447957515716553,
1.0175336599349976,
0.11827793717384338,
-0.7981023788452148,
-0.7060679793357849,
0.005604788661003113,
0.16822347044944763,
0.527953565120697,
0.8423537611961365,
-0.0059700021520257,
0.06617515534162521,
1.4569318294525146,
1.1807106733322144,
-0.2559608817100525,
0.41949254274368286,
-0.8875901103019714,
-0.4636211395263672,
0.5660352110862732,
0.23444399237632751,
0.019219065085053444,
0.4512752890586853,
-1.012496829032898,
-0.28864091634750366,
-0.3546404242515564,
-0.8549551367759705,
-0.6579484343528748,
-0.37786078453063965,
-0.30410587787628174,
1.5229196548461914,
0.19570313394069672,
-0.5142297148704529,
-0.02244998887181282,
-0.7191933989524841,
-0.133802130818367,
-1.0596601963043213,
0.24637268483638763,
-0.18496252596378326,
-0.07708673924207687,
-0.2062128335237503,
1.711902141571045,
-0.9093557596206665,
-2.0019173622131348,
0.16688011586666107,
0.4043272137641907,
-0.3043941855430603,
0.19871138036251068,
1.6480963230133057,
0.5500786900520325,
1.409329891204834,
1.253823161125183,
0.942867636680603,
-0.6070870757102966,
-1.2606086730957031,
0.6041490435600281,
0.9879831671714783,
-1.3489481210708618,
0.8054714798927307,
-0.1298212707042694,
-0.5388416647911072,
0.6350345611572266,
1.3943415880203247,
0.49949145317077637,
-1.9479750394821167,
0.8508594632148743,
-0.8674004077911377,
0.8293394446372986,
0.6560593843460083,
0.8262441158294678,
0.2136666625738144,
0.7896227240562439,
-1.3051174879074097,
-1.0743077993392944,
-0.8118385672569275,
-0.6493776440620422,
1.984161615371704,
-0.2259141355752945,
0.5020726919174194,
-0.14293082058429718,
-1.2644778490066528,
-0.17591871321201324,
0.665974497795105,
0.3828046917915344,
-0.5103704333305359,
0.8036257028579712,
-0.564437747001648,
-1.126542091369629,
-1.310967206954956,
-0.4303150177001953,
-0.9992997050285339,
-0.9487760663032532,
1.0494049787521362,
0.8206502199172974,
0.353624165058136,
1.8694514036178589,
0.53940349817276,
0.25968050956726074,
-2.636876106262207,
0.9504855275154114,
0.35710734128952026,
-0.036526158452034,
0.915422797203064,
0.3453223705291748,
1.0656505823135376,
-0.04884291812777519,
0.6306660771369934,
-2.2502708435058594,
2.213667631149292,
-0.15325668454170227,
0.690925121307373,
0.0366903617978096,
-0.13933905959129333,
0.9883301854133606,
0.5199745893478394,
0.5837713479995728,
-1.121870517730713,
0.6560102701187134,
-0.5723605751991272,
1.1355348825454712,
0.9167495369911194,
-0.8327438831329346,
-0.02290351316332817,
1.3664116859436035,
0.47343748807907104,
-0.5019126534461975,
-0.9338454008102417,
-0.8243590593338013,
1.02267587184906,
1.748009443283081,
-0.1060359999537468,
0.0145510733127594,
0.8238317370414734,
0.5894572734832764,
-1.2919822931289673,
-0.011856544762849808,
-0.736417829990387,
-0.7051875591278076,
1.6658269166946411,
2.03751277923584,
-0.10073090344667435,
-0.2632058262825012,
-0.7058847546577454,
-1.2927429676055908,
0.7246449589729309,
-0.058488257229328156,
0.13617902994155884,
0.6907557249069214,
-0.6527338027954102,
1.0855371952056885,
0.6738521456718445,
0.9621965289115906,
0.09405416250228882,
0.3746199607849121,
0.4042416214942932,
-0.33160245418548584,
-1.1095775365829468,
-0.31016337871551514,
-1.1270874738693237,
-2.4875080585479736,
0.4741741418838501,
-0.19466103613376617,
-1.383535385131836,
-0.009324301034212112,
-1.0082730054855347,
1.0262757539749146,
-0.5788483023643494,
-1.0966888666152954,
-1.406747817993164,
0.284573495388031,
-0.12822571396827698,
0.9399873614311218,
-1.6568597555160522,
-0.1450795978307724,
1.2244031429290771,
0.9696964025497437,
-0.708042323589325,
1.0613049268722534,
0.3042280673980713,
1.0400346517562866,
0.7981809973716736,
-0.36926406621932983,
0.5170456171035767,
0.07874299585819244,
-1.2961541414260864,
0.44495218992233276,
1.1601539850234985,
0.18831729888916016,
1.4061574935913086,
-0.5889047384262085,
-0.03931862860918045,
0.43459808826446533,
-0.5096887946128845,
-0.463179349899292,
-0.43364012241363525,
0.6253166794776917,
0.037319254130125046,
-1.011316180229187,
-0.0531650073826313,
-0.032115139067173004,
-0.2044527679681778,
0.19120332598686218,
-1.4701645374298096,
-0.2448081523180008,
-0.38282662630081177,
-0.5305163860321045,
-1.2513823509216309,
-0.1183631643652916,
1.349063515663147,
-0.8015906810760498,
-0.18000337481498718,
0.5580532550811768,
0.31237685680389404,
0.46304774284362793,
0.608734130859375,
-0.6512849926948547,
-0.3843942880630493,
-0.29319024085998535,
-0.35684967041015625,
0.26775455474853516,
1.309653401374817,
-0.03940390795469284,
-1.0317100286483765,
0.7127461433410645,
-0.3570065498352051,
0.09474632889032364,
1.9317988157272339,
0.03483549505472183,
-0.8493431806564331,
0.2896943688392639,
-0.6889458894729614,
1.921591877937317,
1.7274508476257324,
1.3216300010681152,
-0.14251597225666046,
-0.91880863904953,
0.6244439482688904,
-0.29823005199432373,
-0.432378351688385,
0.8530210256576538,
0.41544193029403687,
-0.14772076904773712,
-1.4417192935943604,
0.6415456533432007,
1.2806692123413086,
-0.9342003464698792,
-0.7768235206604004,
0.16237084567546844,
-0.828522801399231,
1.0798979997634888,
0.6599924564361572,
0.3622931241989136,
0.1575036495923996,
1.6172024011611938,
0.8043345212936401,
-0.4821711778640747,
0.5672298669815063,
0.522302508354187,
-0.1340494453907013,
-2.0824460983276367,
-1.1373287439346313,
0.27890801429748535,
-0.40749591588974,
-1.569840669631958,
1.4245777130126953,
-1.0434927940368652,
-0.8745070695877075,
0.6068163514137268,
0.0748782828450203,
1.3530274629592896,
0.3587270975112915,
1.5825560092926025,
2.1364336013793945,
0.8024718761444092,
0.35114216804504395,
1.2782635688781738,
-0.12026102095842361,
-0.4686127305030823,
1.8507004976272583,
-0.3981475830078125,
0.5504612326622009,
1.0562721490859985,
-0.4043917655944824,
-1.0454182624816895,
-0.7938123345375061,
-1.2865216732025146,
-0.7303975224494934,
1.0674103498458862,
0.07641177624464035,
-1.1361156702041626,
0.20961004495620728,
1.6737769842147827,
0.12761342525482178,
-0.34865373373031616,
0.7164327502250671,
0.47126126289367676,
-0.8178617358207703,
-0.09328335523605347,
-0.9296836853027344,
0.557142972946167,
-0.17490829527378082,
-0.3144184947013855,
0.23876412212848663,
0.39156776666641235,
1.315792202949524,
0.029111672192811966,
0.12225256860256195,
1.1565543413162231,
-1.368651270866394,
1.5945682525634766,
-0.6113314032554626,
0.33697736263275146,
-2.4002742767333984,
1.3537545204162598,
-0.7944853901863098,
1.916340947151184,
-2.601475238800049,
0.44517821073532104,
-0.5916401147842407,
-0.43359076976776123,
0.18562819063663483,
-0.38453197479248047,
0.15999090671539307,
-0.09856971353292465,
-1.0752254724502563,
-0.08746977895498276,
-0.6161140203475952,
0.5624503493309021,
1.174442172050476,
1.4323455095291138,
-1.1064411401748657,
-0.3140610456466675,
-1.7444645166397095,
-0.20296384394168854,
-0.7722058296203613,
0.34912562370300293,
-1.9806221723556519,
-0.18486960232257843,
-1.863997220993042,
-2.33130145072937,
-1.3491610288619995,
-0.7946600317955017,
1.0870633125305176,
0.03375312685966492,
-1.0206118822097778,
1.2530454397201538,
-0.3259815573692322,
-1.7628077268600464,
1.1236850023269653,
-2.1950857639312744
] |
https://github.com/huggingface/datasets/issues/5284 | Features of IterableDataset set to None by remove column | Thanks @lhoestq and @alvarobartt!
This would be extremely helpful to have working for the Whisper fine-tuning event - we're **only** training using streaming mode, so it'll be quite important to have this feature working to make training as easy as possible!
_c.f._ https://twitter.com/sanchitgandhi99/status/1592188332171493377 | ### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq | 399 | 43 | Features of IterableDataset set to None by remove column
### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq
Thanks @lhoestq and @alvarobartt!
This would be extremely helpful to have working for the Whisper fine-tuning event - we're **only** training using streaming mode, so it'll be quite important to have this feature working to make training as easy as possible!
_c.f._ https://twitter.com/sanchitgandhi99/status/1592188332171493377 | [
-1.1740634441375732,
-0.986666202545166,
-0.724602222442627,
1.5060685873031616,
-0.16580796241760254,
-1.1591317653656006,
0.15898366272449493,
-0.9965685606002808,
1.6621525287628174,
-0.7151062488555908,
0.23000434041023254,
-1.7126665115356445,
-0.02927146479487419,
-0.7022446990013123,
-0.7006533741950989,
-0.7825727462768555,
-0.44418010115623474,
-0.6750337481498718,
1.0712870359420776,
2.4491422176361084,
1.126986026763916,
-1.3972970247268677,
2.685581922531128,
0.7613965272903442,
-0.12701305747032166,
-1.0008825063705444,
0.5279032588005066,
-0.020517751574516296,
-1.3073084354400635,
-0.42334243655204773,
-0.9414310455322266,
-0.07282167673110962,
-0.5671327710151672,
-0.5041792392730713,
-0.025721069425344467,
0.4836001694202423,
-0.2883168160915375,
-0.5188636779785156,
-0.5447405576705933,
-0.7822561860084534,
0.42035073041915894,
-0.4502526521682739,
0.9208778738975525,
-0.29555532336235046,
1.740590214729309,
-0.4802614450454712,
0.45731407403945923,
0.6671180725097656,
1.34443998336792,
0.20132403075695038,
0.030259549617767334,
0.41033735871315,
0.39441317319869995,
-0.0029080482199788094,
0.5537984371185303,
1.1025899648666382,
0.6618925333023071,
0.36606088280677795,
0.7998780012130737,
-2.3302223682403564,
1.2639623880386353,
-1.031832218170166,
0.34414738416671753,
1.4194467067718506,
-0.8958433866500854,
0.4459843039512634,
-1.7529118061065674,
-0.007573788054287434,
0.5610712170600891,
-2.1671433448791504,
0.3541838228702545,
-1.2952206134796143,
-0.47434526681900024,
0.9894115328788757,
0.4395764470100403,
-1.2181364297866821,
0.07624826580286026,
-0.40268027782440186,
0.9985519051551819,
0.3970577120780945,
1.0239136219024658,
-1.6703805923461914,
-0.04444468393921852,
-0.2624271512031555,
0.09642571955919266,
-1.1816489696502686,
-1.5338526964187622,
0.5620894432067871,
0.6283164024353027,
0.6010218262672424,
-0.15023596584796906,
0.9470357298851013,
-1.0917648077011108,
0.7073898911476135,
-1.0668425559997559,
-1.7771267890930176,
-1.3901079893112183,
-2.2986836433410645,
-2.224368095397949,
0.7559497356414795,
-0.3860224187374115,
-0.49577969312667847,
2.041194438934326,
-0.9477006196975708,
-1.703643798828125,
1.2458834648132324,
0.3050755560398102,
-0.009852706454694271,
2.3928639888763428,
0.20134879648685455,
-0.7178375124931335,
0.5246604681015015,
-0.8768110275268555,
0.7294706702232361,
-0.41770586371421814,
1.361526370048523,
0.3342323899269104,
-0.961638867855072,
1.6295228004455566,
-0.40626806020736694,
0.575508177280426,
-0.6553776860237122,
-0.4834022521972656,
-0.7370169758796692,
0.3387547433376312,
1.8843703269958496,
-0.20112334191799164,
1.4273878335952759,
-0.2915476858615875,
-1.5425004959106445,
-1.5800426006317139,
0.8945232033729553,
0.4263899028301239,
-0.7969486117362976,
0.041500240564346313,
-0.3811860978603363,
0.17679442465305328,
-0.11817335337400436,
1.1077804565429688,
1.302406907081604,
0.6923899054527283,
-0.3055030107498169,
-0.9190441370010376,
0.18349774181842804,
-0.0732884332537651,
-0.7539286017417908,
-1.766400694847107,
-0.3068983256816864,
0.09623584151268005,
0.6425536274909973,
-1.2173820734024048,
1.6314822435379028,
0.888975203037262,
1.9507960081100464,
1.0327134132385254,
-0.4389415681362152,
1.5339652299880981,
0.18591564893722534,
1.864121437072754,
-0.5879107713699341,
0.6467631459236145,
-0.36720311641693115,
-1.1390960216522217,
0.8660203218460083,
-0.2920052707195282,
-2.054614305496216,
-0.6985463500022888,
-0.8338853120803833,
-0.27518439292907715,
-0.7877715229988098,
0.9064380526542664,
-0.3264041244983673,
-1.4582703113555908,
0.22949132323265076,
-0.8331968784332275,
0.25477561354637146,
-1.216995358467102,
0.35080358386039734,
0.7394037842750549,
-0.5631515979766846,
0.11184360831975937,
-0.25755876302719116,
-1.3025919198989868,
-0.4285743236541748,
0.4408356249332428,
1.798865556716919,
-0.7781767845153809,
0.8737159967422485,
1.0752553939819336,
-0.6607528328895569,
-0.030051197856664658,
0.25174376368522644,
-0.2575992941856384,
0.8487302660942078,
-1.0488066673278809,
-0.6335503458976746,
1.1974314451217651,
-0.2621570825576782,
-0.5677669644355774,
1.4236652851104736,
0.7370242476463318,
-1.020390510559082,
-0.23789538443088531,
-0.12291788309812546,
-0.8111027479171753,
0.03446507826447487,
-1.6387282609939575,
-0.13712634146213531,
0.45346108078956604,
-1.5445802211761475,
-0.511365532875061,
-0.22956083714962006,
1.2745977640151978,
-0.08931765705347061,
1.3814016580581665,
-0.34371238946914673,
-0.1811835616827011,
-0.3242795467376709,
-0.43145430088043213,
0.17091530561447144,
-0.27696147561073303,
-0.5547698736190796,
0.16688266396522522,
-0.7897278070449829,
0.3840920627117157,
1.4557623863220215,
0.34986594319343567,
0.03164688125252724,
0.5524382591247559,
1.0789194107055664,
0.4136938154697418,
0.01859385520219803,
-0.8538756966590881,
-1.5574651956558228,
2.004110336303711,
-1.5403445959091187,
1.9855172634124756,
0.6471446752548218,
0.004418067634105682,
-1.762105941772461,
-1.9000847339630127,
1.3794058561325073,
1.0739269256591797,
2.281036138534546,
0.5556668043136597,
0.4193519949913025,
-0.8817763328552246,
-0.7039327025413513,
0.2391435205936432,
-0.9229901432991028,
-0.6900538206100464,
0.14477819204330444,
2.4524648189544678,
1.7735214233398438,
-0.391728013753891,
-0.1463700383901596,
-1.0272901058197021,
1.472538709640503,
-0.22413264214992523,
0.296032577753067,
1.9633708000183105,
-0.19710709154605865,
-1.0477186441421509,
1.3101067543029785,
-2.430807590484619,
0.21800540387630463,
1.9894654750823975,
0.25136351585388184,
0.12834864854812622,
-1.3406041860580444,
-0.6989707946777344,
-0.2523651719093323,
-0.3618276119232178,
-1.2168259620666504,
0.5204461216926575,
-0.19417671859264374,
-0.7570129036903381,
-1.4673807621002197,
0.2007729858160019,
-1.1301296949386597,
-1.6235263347625732,
0.19802169501781464,
1.9439700841903687,
2.0469813346862793,
-0.7388483881950378,
1.5983428955078125,
-0.20277033746242523,
0.2316572219133377,
1.25314462184906,
1.2497632503509521,
3.0391342639923096,
1.9332236051559448,
-1.2589603662490845,
0.5884714722633362,
-0.10421610623598099,
-0.4660125970840454,
1.128513216972351,
-1.22151780128479,
1.261224389076233,
-0.1223948746919632,
-1.1922967433929443,
-1.1751385927200317,
0.8911329507827759,
0.4807963967323303,
0.018271759152412415,
-0.4794355034828186,
1.0946100950241089,
-0.017145587131381035,
1.300018072128296,
0.6534950733184814,
-0.3251863121986389,
0.5727750062942505,
-0.3684099316596985,
-0.4896842837333679,
1.5210942029953003,
0.16602595150470734,
-1.4960638284683228,
-2.252255439758301,
-0.23709633946418762,
-0.8344295024871826,
0.02612973004579544,
-0.6469669342041016,
-1.0421806573867798,
1.6097761392593384,
0.3150186836719513,
-1.106411337852478,
-0.25407296419143677,
-0.28113439679145813,
-0.4653162360191345,
2.7521893978118896,
-1.3727673292160034,
-0.369506299495697,
-0.9822364449501038,
-0.6867644190788269,
1.6629829406738281,
-1.140742540359497,
-0.1680440604686737,
-1.047851324081421,
-0.5585007667541504,
-1.2625632286071777,
-0.5022638440132141,
-0.01261946652084589,
-0.9607892036437988,
0.9490216374397278,
0.24997656047344208,
-1.273635745048523,
-0.30040493607521057,
-1.010167121887207,
0.9102311730384827,
-0.20412032306194305,
0.13574881851673126,
1.8789029121398926,
0.3868274986743927,
-0.30071595311164856,
0.8381085395812988,
1.1608433723449707,
0.6595677733421326,
-0.6416675448417664,
0.20485641062259674,
-0.622679591178894,
0.4078461229801178,
-1.2567288875579834,
0.3002992570400238,
-2.8814287185668945,
0.5772916078567505,
-0.04750595986843109,
-0.07260485738515854,
-0.014310870319604874,
-1.3685790300369263,
1.1411206722259521,
2.5246238708496094,
-1.2405511140823364,
0.540179431438446,
0.31308960914611816,
1.3201801776885986,
-1.6488773822784424,
0.30366477370262146,
-0.43925151228904724,
2.146209716796875,
0.11532788723707199,
1.1828489303588867,
-0.4796656668186188,
-2.405769109725952,
0.5725910663604736,
-1.285487413406372,
-1.0892844200134277,
0.5760021805763245,
-0.8826748132705688,
0.17135070264339447,
-1.4390827417373657,
-0.25266918540000916,
-0.8373715281486511,
-1.212345838546753,
0.6514226794242859,
0.14764532446861267,
0.37637996673583984,
-0.5833077430725098,
0.37175679206848145,
-2.2661848068237305,
-1.437279462814331,
-0.2414645552635193,
-0.881189227104187,
0.5709286332130432,
-0.40921708941459656,
0.7099315524101257,
-0.19441565871238708,
-0.0830283835530281,
0.2884077727794647,
1.490281105041504,
3.430873394012451,
0.1405719816684723,
0.3486906588077545,
-0.191218763589859,
-0.962834358215332,
1.4740816354751587,
0.9456469416618347,
-0.09642041474580765,
-0.5491443872451782,
-1.0648458003997803,
1.339535117149353,
2.0104949474334717,
1.0104788541793823,
0.014308185316622257,
-0.7778764963150024,
-0.7166679501533508,
-0.0013722144067287445,
0.21560192108154297,
0.4618178606033325,
0.8817300200462341,
0.11114297062158585,
0.038151782006025314,
1.4403002262115479,
1.1349486112594604,
-0.36639270186424255,
0.31349900364875793,
-0.8439265489578247,
-0.4549533426761627,
0.5096615552902222,
0.22128351032733917,
-0.09854587912559509,
0.32620906829833984,
-1.0784913301467896,
-0.1932654231786728,
-0.38969483971595764,
-0.7888396382331848,
-0.7237638235092163,
-0.30670294165611267,
-0.405322790145874,
1.6498875617980957,
0.24833251535892487,
-0.6347332000732422,
-0.04334746301174164,
-0.682330846786499,
-0.07347244769334793,
-1.0291318893432617,
0.26515859365463257,
-0.1682129204273224,
-0.0963517352938652,
-0.1580209732055664,
1.7363427877426147,
-0.926306426525116,
-2.108243227005005,
0.08693306893110275,
0.2563703656196594,
-0.24405871331691742,
0.1650504767894745,
1.6397802829742432,
0.555199146270752,
1.4672791957855225,
1.3989925384521484,
0.9704632759094238,
-0.6554832458496094,
-1.369896411895752,
0.6247709393501282,
1.0219173431396484,
-1.3660075664520264,
0.7574595808982849,
0.002986043691635132,
-0.5812757015228271,
0.6140861511230469,
1.387833595275879,
0.45213639736175537,
-2.051330804824829,
0.8066007494926453,
-1.0934420824050903,
0.8830718398094177,
0.7621008157730103,
0.7252550721168518,
0.26766717433929443,
0.7512490749359131,
-1.3064016103744507,
-1.0745222568511963,
-0.7645248770713806,
-0.7171022891998291,
2.0211024284362793,
-0.31213074922561646,
0.566371500492096,
-0.13526730239391327,
-1.3239555358886719,
-0.030996102839708328,
0.6026800870895386,
0.3995935022830963,
-0.5054895281791687,
0.743327796459198,
-0.6708906888961792,
-1.1373894214630127,
-1.3377716541290283,
-0.5344031453132629,
-1.0233769416809082,
-0.9924033284187317,
0.9817649126052856,
0.8214259147644043,
0.367506742477417,
1.807085394859314,
0.682091236114502,
0.1905786097049713,
-2.5962562561035156,
0.8878418207168579,
0.339345782995224,
-0.15858958661556244,
0.747962236404419,
0.38450056314468384,
1.112421989440918,
-0.05916773900389671,
0.6365931034088135,
-2.456975221633911,
2.2702832221984863,
-0.21865874528884888,
0.7594698667526245,
-0.051954109221696854,
-0.013750312849879265,
1.040590524673462,
0.5211355090141296,
0.5294734239578247,
-0.9792267084121704,
0.6967198848724365,
-0.5824718475341797,
1.267713189125061,
0.9366497993469238,
-0.7415249347686768,
-0.0008157938718795776,
1.3940365314483643,
0.43769571185112,
-0.6509130597114563,
-0.983001708984375,
-0.9074679613113403,
0.9208577275276184,
1.7006614208221436,
-0.1653354912996292,
-0.002173737622797489,
0.8512538075447083,
0.6234742403030396,
-1.268680453300476,
-0.004062732215970755,
-0.6441185474395752,
-0.6026046872138977,
1.6840944290161133,
2.1201398372650146,
-0.25677773356437683,
-0.16135530173778534,
-0.6934025287628174,
-1.3219597339630127,
0.7064563035964966,
-0.008150614798069,
0.061984408646821976,
0.6571457386016846,
-0.6217408180236816,
1.0545248985290527,
0.7852839231491089,
0.8895999193191528,
0.17373211681842804,
0.24436058104038239,
0.3819495737552643,
-0.42601558566093445,
-1.092199444770813,
-0.26906782388687134,
-1.0757273435592651,
-2.5266270637512207,
0.37727272510528564,
-0.18500027060508728,
-1.4026498794555664,
0.07881521433591843,
-1.0611692667007446,
1.0458030700683594,
-0.5773220062255859,
-1.1405603885650635,
-1.4439078569412231,
0.21610723435878754,
-0.0035534691996872425,
0.8791910409927368,
-1.6585475206375122,
-0.1971995085477829,
1.2269518375396729,
0.9060130715370178,
-0.7073821425437927,
0.9742433428764343,
0.22939425706863403,
1.0474903583526611,
0.7783599495887756,
-0.3462286591529846,
0.5166594982147217,
-0.023816997185349464,
-1.3114570379257202,
0.5055352449417114,
1.2744219303131104,
0.1810510903596878,
1.464521884918213,
-0.5142164826393127,
-0.0740513727068901,
0.4136642813682556,
-0.5035879611968994,
-0.4333741068840027,
-0.48563313484191895,
0.577750563621521,
0.0037860963493585587,
-0.8908194303512573,
-0.006730595137923956,
0.06933529675006866,
-0.24579617381095886,
0.15225788950920105,
-1.513261318206787,
-0.1730610728263855,
-0.3317522406578064,
-0.5933164358139038,
-1.1877479553222656,
-0.15910027921199799,
1.344093680381775,
-0.6787469983100891,
-0.23009413480758667,
0.5877452492713928,
0.34264659881591797,
0.5027912855148315,
0.6106637716293335,
-0.7018746733665466,
-0.32449817657470703,
-0.16287794709205627,
-0.38122275471687317,
0.29338425397872925,
1.4310283660888672,
-0.09995400160551071,
-1.0302542448043823,
0.6759065985679626,
-0.3696446120738983,
0.11928727477788925,
1.8796970844268799,
0.0032298648729920387,
-0.8382757306098938,
0.2579130232334137,
-0.731110692024231,
1.9820353984832764,
1.6909674406051636,
1.3109478950500488,
-0.2079307585954666,
-0.9382466077804565,
0.6484934687614441,
-0.36321312189102173,
-0.3855263590812683,
0.7931091785430908,
0.434207022190094,
-0.21879246830940247,
-1.4250761270523071,
0.7810091972351074,
1.2220083475112915,
-0.8701730966567993,
-0.8362335562705994,
0.2040329873561859,
-0.7865044474601746,
1.2100863456726074,
0.5704458951950073,
0.3885285556316376,
0.26488766074180603,
1.6749430894851685,
0.7839793562889099,
-0.4830368757247925,
0.5305950045585632,
0.5899040699005127,
-0.2549073398113251,
-2.117297649383545,
-1.2228984832763672,
0.2386598438024521,
-0.5105786919593811,
-1.6498724222183228,
1.3856914043426514,
-1.1283546686172485,
-0.9055264592170715,
0.5615368485450745,
0.19742968678474426,
1.441979169845581,
0.47002822160720825,
1.498322606086731,
1.998225212097168,
0.8818400502204895,
0.5101339817047119,
1.26248300075531,
-0.1928892582654953,
-0.4471021890640259,
1.703553318977356,
-0.40576809644699097,
0.49370303750038147,
1.1481244564056396,
-0.34237027168273926,
-1.1551082134246826,
-0.7309965491294861,
-1.2617107629776,
-0.638624906539917,
1.1259101629257202,
0.08125753700733185,
-1.114267110824585,
0.2880176603794098,
1.5262247323989868,
0.02963348478078842,
-0.4066013991832733,
0.6983596086502075,
0.3855864703655243,
-0.8493353724479675,
-0.09340010583400726,
-0.9615633487701416,
0.5154450535774231,
-0.2743864357471466,
-0.3399408161640167,
0.386542946100235,
0.47912752628326416,
1.3820343017578125,
0.00368392001837492,
0.17814098298549652,
1.106298804283142,
-1.4593685865402222,
1.4869871139526367,
-0.7667415738105774,
0.3007473647594452,
-2.322366237640381,
1.3242570161819458,
-0.7571386694908142,
1.9956679344177246,
-2.651571750640869,
0.4268435835838318,
-0.5761978626251221,
-0.4257076680660248,
0.28473302721977234,
-0.30411839485168457,
0.09652189165353775,
-0.056351952254772186,
-1.1823700666427612,
-0.030381660908460617,
-0.67929607629776,
0.48431849479675293,
1.2265324592590332,
1.3401774168014526,
-1.0505659580230713,
-0.24285544455051422,
-1.713810682296753,
-0.14679966866970062,
-0.7274350523948669,
0.2961518168449402,
-1.9785172939300537,
-0.19305777549743652,
-1.7888380289077759,
-2.335594415664673,
-1.2202625274658203,
-0.8405134677886963,
1.1834405660629272,
0.09546074271202087,
-0.9177148938179016,
1.3848637342453003,
-0.32166236639022827,
-1.8208314180374146,
1.144755482673645,
-2.1944212913513184
] |
https://github.com/huggingface/datasets/issues/5284 | Features of IterableDataset set to None by remove column | > Thanks @lhoestq and @alvarobartt!
>
>
>
> This would be extremely helpful to have working for the Whisper fine-tuning event - we're **only** training using streaming mode, so it'll be quite important to have this feature working to make training as easy as possible!
>
>
>
> _c.f._ https://twitter.com/sanchitgandhi99/status/1592188332171493377
I'm almost done with at least a temporary fix to `rename_column`, `rename_columns`, and `remove_columns`, just trying to figure out how to extend it to the `map` function itself!
I'll probably open the PR for review either tomorrow or Sunday hopefully! Glad I can help you and HuggingFace 🤗 | ### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq | 399 | 100 | Features of IterableDataset set to None by remove column
### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq
> Thanks @lhoestq and @alvarobartt!
>
>
>
> This would be extremely helpful to have working for the Whisper fine-tuning event - we're **only** training using streaming mode, so it'll be quite important to have this feature working to make training as easy as possible!
>
>
>
> _c.f._ https://twitter.com/sanchitgandhi99/status/1592188332171493377
I'm almost done with at least a temporary fix to `rename_column`, `rename_columns`, and `remove_columns`, just trying to figure out how to extend it to the `map` function itself!
I'll probably open the PR for review either tomorrow or Sunday hopefully! Glad I can help you and HuggingFace 🤗 | [
-1.1740634441375732,
-0.986666202545166,
-0.724602222442627,
1.5060685873031616,
-0.16580796241760254,
-1.1591317653656006,
0.15898366272449493,
-0.9965685606002808,
1.6621525287628174,
-0.7151062488555908,
0.23000434041023254,
-1.7126665115356445,
-0.02927146479487419,
-0.7022446990013123,
-0.7006533741950989,
-0.7825727462768555,
-0.44418010115623474,
-0.6750337481498718,
1.0712870359420776,
2.4491422176361084,
1.126986026763916,
-1.3972970247268677,
2.685581922531128,
0.7613965272903442,
-0.12701305747032166,
-1.0008825063705444,
0.5279032588005066,
-0.020517751574516296,
-1.3073084354400635,
-0.42334243655204773,
-0.9414310455322266,
-0.07282167673110962,
-0.5671327710151672,
-0.5041792392730713,
-0.025721069425344467,
0.4836001694202423,
-0.2883168160915375,
-0.5188636779785156,
-0.5447405576705933,
-0.7822561860084534,
0.42035073041915894,
-0.4502526521682739,
0.9208778738975525,
-0.29555532336235046,
1.740590214729309,
-0.4802614450454712,
0.45731407403945923,
0.6671180725097656,
1.34443998336792,
0.20132403075695038,
0.030259549617767334,
0.41033735871315,
0.39441317319869995,
-0.0029080482199788094,
0.5537984371185303,
1.1025899648666382,
0.6618925333023071,
0.36606088280677795,
0.7998780012130737,
-2.3302223682403564,
1.2639623880386353,
-1.031832218170166,
0.34414738416671753,
1.4194467067718506,
-0.8958433866500854,
0.4459843039512634,
-1.7529118061065674,
-0.007573788054287434,
0.5610712170600891,
-2.1671433448791504,
0.3541838228702545,
-1.2952206134796143,
-0.47434526681900024,
0.9894115328788757,
0.4395764470100403,
-1.2181364297866821,
0.07624826580286026,
-0.40268027782440186,
0.9985519051551819,
0.3970577120780945,
1.0239136219024658,
-1.6703805923461914,
-0.04444468393921852,
-0.2624271512031555,
0.09642571955919266,
-1.1816489696502686,
-1.5338526964187622,
0.5620894432067871,
0.6283164024353027,
0.6010218262672424,
-0.15023596584796906,
0.9470357298851013,
-1.0917648077011108,
0.7073898911476135,
-1.0668425559997559,
-1.7771267890930176,
-1.3901079893112183,
-2.2986836433410645,
-2.224368095397949,
0.7559497356414795,
-0.3860224187374115,
-0.49577969312667847,
2.041194438934326,
-0.9477006196975708,
-1.703643798828125,
1.2458834648132324,
0.3050755560398102,
-0.009852706454694271,
2.3928639888763428,
0.20134879648685455,
-0.7178375124931335,
0.5246604681015015,
-0.8768110275268555,
0.7294706702232361,
-0.41770586371421814,
1.361526370048523,
0.3342323899269104,
-0.961638867855072,
1.6295228004455566,
-0.40626806020736694,
0.575508177280426,
-0.6553776860237122,
-0.4834022521972656,
-0.7370169758796692,
0.3387547433376312,
1.8843703269958496,
-0.20112334191799164,
1.4273878335952759,
-0.2915476858615875,
-1.5425004959106445,
-1.5800426006317139,
0.8945232033729553,
0.4263899028301239,
-0.7969486117362976,
0.041500240564346313,
-0.3811860978603363,
0.17679442465305328,
-0.11817335337400436,
1.1077804565429688,
1.302406907081604,
0.6923899054527283,
-0.3055030107498169,
-0.9190441370010376,
0.18349774181842804,
-0.0732884332537651,
-0.7539286017417908,
-1.766400694847107,
-0.3068983256816864,
0.09623584151268005,
0.6425536274909973,
-1.2173820734024048,
1.6314822435379028,
0.888975203037262,
1.9507960081100464,
1.0327134132385254,
-0.4389415681362152,
1.5339652299880981,
0.18591564893722534,
1.864121437072754,
-0.5879107713699341,
0.6467631459236145,
-0.36720311641693115,
-1.1390960216522217,
0.8660203218460083,
-0.2920052707195282,
-2.054614305496216,
-0.6985463500022888,
-0.8338853120803833,
-0.27518439292907715,
-0.7877715229988098,
0.9064380526542664,
-0.3264041244983673,
-1.4582703113555908,
0.22949132323265076,
-0.8331968784332275,
0.25477561354637146,
-1.216995358467102,
0.35080358386039734,
0.7394037842750549,
-0.5631515979766846,
0.11184360831975937,
-0.25755876302719116,
-1.3025919198989868,
-0.4285743236541748,
0.4408356249332428,
1.798865556716919,
-0.7781767845153809,
0.8737159967422485,
1.0752553939819336,
-0.6607528328895569,
-0.030051197856664658,
0.25174376368522644,
-0.2575992941856384,
0.8487302660942078,
-1.0488066673278809,
-0.6335503458976746,
1.1974314451217651,
-0.2621570825576782,
-0.5677669644355774,
1.4236652851104736,
0.7370242476463318,
-1.020390510559082,
-0.23789538443088531,
-0.12291788309812546,
-0.8111027479171753,
0.03446507826447487,
-1.6387282609939575,
-0.13712634146213531,
0.45346108078956604,
-1.5445802211761475,
-0.511365532875061,
-0.22956083714962006,
1.2745977640151978,
-0.08931765705347061,
1.3814016580581665,
-0.34371238946914673,
-0.1811835616827011,
-0.3242795467376709,
-0.43145430088043213,
0.17091530561447144,
-0.27696147561073303,
-0.5547698736190796,
0.16688266396522522,
-0.7897278070449829,
0.3840920627117157,
1.4557623863220215,
0.34986594319343567,
0.03164688125252724,
0.5524382591247559,
1.0789194107055664,
0.4136938154697418,
0.01859385520219803,
-0.8538756966590881,
-1.5574651956558228,
2.004110336303711,
-1.5403445959091187,
1.9855172634124756,
0.6471446752548218,
0.004418067634105682,
-1.762105941772461,
-1.9000847339630127,
1.3794058561325073,
1.0739269256591797,
2.281036138534546,
0.5556668043136597,
0.4193519949913025,
-0.8817763328552246,
-0.7039327025413513,
0.2391435205936432,
-0.9229901432991028,
-0.6900538206100464,
0.14477819204330444,
2.4524648189544678,
1.7735214233398438,
-0.391728013753891,
-0.1463700383901596,
-1.0272901058197021,
1.472538709640503,
-0.22413264214992523,
0.296032577753067,
1.9633708000183105,
-0.19710709154605865,
-1.0477186441421509,
1.3101067543029785,
-2.430807590484619,
0.21800540387630463,
1.9894654750823975,
0.25136351585388184,
0.12834864854812622,
-1.3406041860580444,
-0.6989707946777344,
-0.2523651719093323,
-0.3618276119232178,
-1.2168259620666504,
0.5204461216926575,
-0.19417671859264374,
-0.7570129036903381,
-1.4673807621002197,
0.2007729858160019,
-1.1301296949386597,
-1.6235263347625732,
0.19802169501781464,
1.9439700841903687,
2.0469813346862793,
-0.7388483881950378,
1.5983428955078125,
-0.20277033746242523,
0.2316572219133377,
1.25314462184906,
1.2497632503509521,
3.0391342639923096,
1.9332236051559448,
-1.2589603662490845,
0.5884714722633362,
-0.10421610623598099,
-0.4660125970840454,
1.128513216972351,
-1.22151780128479,
1.261224389076233,
-0.1223948746919632,
-1.1922967433929443,
-1.1751385927200317,
0.8911329507827759,
0.4807963967323303,
0.018271759152412415,
-0.4794355034828186,
1.0946100950241089,
-0.017145587131381035,
1.300018072128296,
0.6534950733184814,
-0.3251863121986389,
0.5727750062942505,
-0.3684099316596985,
-0.4896842837333679,
1.5210942029953003,
0.16602595150470734,
-1.4960638284683228,
-2.252255439758301,
-0.23709633946418762,
-0.8344295024871826,
0.02612973004579544,
-0.6469669342041016,
-1.0421806573867798,
1.6097761392593384,
0.3150186836719513,
-1.106411337852478,
-0.25407296419143677,
-0.28113439679145813,
-0.4653162360191345,
2.7521893978118896,
-1.3727673292160034,
-0.369506299495697,
-0.9822364449501038,
-0.6867644190788269,
1.6629829406738281,
-1.140742540359497,
-0.1680440604686737,
-1.047851324081421,
-0.5585007667541504,
-1.2625632286071777,
-0.5022638440132141,
-0.01261946652084589,
-0.9607892036437988,
0.9490216374397278,
0.24997656047344208,
-1.273635745048523,
-0.30040493607521057,
-1.010167121887207,
0.9102311730384827,
-0.20412032306194305,
0.13574881851673126,
1.8789029121398926,
0.3868274986743927,
-0.30071595311164856,
0.8381085395812988,
1.1608433723449707,
0.6595677733421326,
-0.6416675448417664,
0.20485641062259674,
-0.622679591178894,
0.4078461229801178,
-1.2567288875579834,
0.3002992570400238,
-2.8814287185668945,
0.5772916078567505,
-0.04750595986843109,
-0.07260485738515854,
-0.014310870319604874,
-1.3685790300369263,
1.1411206722259521,
2.5246238708496094,
-1.2405511140823364,
0.540179431438446,
0.31308960914611816,
1.3201801776885986,
-1.6488773822784424,
0.30366477370262146,
-0.43925151228904724,
2.146209716796875,
0.11532788723707199,
1.1828489303588867,
-0.4796656668186188,
-2.405769109725952,
0.5725910663604736,
-1.285487413406372,
-1.0892844200134277,
0.5760021805763245,
-0.8826748132705688,
0.17135070264339447,
-1.4390827417373657,
-0.25266918540000916,
-0.8373715281486511,
-1.212345838546753,
0.6514226794242859,
0.14764532446861267,
0.37637996673583984,
-0.5833077430725098,
0.37175679206848145,
-2.2661848068237305,
-1.437279462814331,
-0.2414645552635193,
-0.881189227104187,
0.5709286332130432,
-0.40921708941459656,
0.7099315524101257,
-0.19441565871238708,
-0.0830283835530281,
0.2884077727794647,
1.490281105041504,
3.430873394012451,
0.1405719816684723,
0.3486906588077545,
-0.191218763589859,
-0.962834358215332,
1.4740816354751587,
0.9456469416618347,
-0.09642041474580765,
-0.5491443872451782,
-1.0648458003997803,
1.339535117149353,
2.0104949474334717,
1.0104788541793823,
0.014308185316622257,
-0.7778764963150024,
-0.7166679501533508,
-0.0013722144067287445,
0.21560192108154297,
0.4618178606033325,
0.8817300200462341,
0.11114297062158585,
0.038151782006025314,
1.4403002262115479,
1.1349486112594604,
-0.36639270186424255,
0.31349900364875793,
-0.8439265489578247,
-0.4549533426761627,
0.5096615552902222,
0.22128351032733917,
-0.09854587912559509,
0.32620906829833984,
-1.0784913301467896,
-0.1932654231786728,
-0.38969483971595764,
-0.7888396382331848,
-0.7237638235092163,
-0.30670294165611267,
-0.405322790145874,
1.6498875617980957,
0.24833251535892487,
-0.6347332000732422,
-0.04334746301174164,
-0.682330846786499,
-0.07347244769334793,
-1.0291318893432617,
0.26515859365463257,
-0.1682129204273224,
-0.0963517352938652,
-0.1580209732055664,
1.7363427877426147,
-0.926306426525116,
-2.108243227005005,
0.08693306893110275,
0.2563703656196594,
-0.24405871331691742,
0.1650504767894745,
1.6397802829742432,
0.555199146270752,
1.4672791957855225,
1.3989925384521484,
0.9704632759094238,
-0.6554832458496094,
-1.369896411895752,
0.6247709393501282,
1.0219173431396484,
-1.3660075664520264,
0.7574595808982849,
0.002986043691635132,
-0.5812757015228271,
0.6140861511230469,
1.387833595275879,
0.45213639736175537,
-2.051330804824829,
0.8066007494926453,
-1.0934420824050903,
0.8830718398094177,
0.7621008157730103,
0.7252550721168518,
0.26766717433929443,
0.7512490749359131,
-1.3064016103744507,
-1.0745222568511963,
-0.7645248770713806,
-0.7171022891998291,
2.0211024284362793,
-0.31213074922561646,
0.566371500492096,
-0.13526730239391327,
-1.3239555358886719,
-0.030996102839708328,
0.6026800870895386,
0.3995935022830963,
-0.5054895281791687,
0.743327796459198,
-0.6708906888961792,
-1.1373894214630127,
-1.3377716541290283,
-0.5344031453132629,
-1.0233769416809082,
-0.9924033284187317,
0.9817649126052856,
0.8214259147644043,
0.367506742477417,
1.807085394859314,
0.682091236114502,
0.1905786097049713,
-2.5962562561035156,
0.8878418207168579,
0.339345782995224,
-0.15858958661556244,
0.747962236404419,
0.38450056314468384,
1.112421989440918,
-0.05916773900389671,
0.6365931034088135,
-2.456975221633911,
2.2702832221984863,
-0.21865874528884888,
0.7594698667526245,
-0.051954109221696854,
-0.013750312849879265,
1.040590524673462,
0.5211355090141296,
0.5294734239578247,
-0.9792267084121704,
0.6967198848724365,
-0.5824718475341797,
1.267713189125061,
0.9366497993469238,
-0.7415249347686768,
-0.0008157938718795776,
1.3940365314483643,
0.43769571185112,
-0.6509130597114563,
-0.983001708984375,
-0.9074679613113403,
0.9208577275276184,
1.7006614208221436,
-0.1653354912996292,
-0.002173737622797489,
0.8512538075447083,
0.6234742403030396,
-1.268680453300476,
-0.004062732215970755,
-0.6441185474395752,
-0.6026046872138977,
1.6840944290161133,
2.1201398372650146,
-0.25677773356437683,
-0.16135530173778534,
-0.6934025287628174,
-1.3219597339630127,
0.7064563035964966,
-0.008150614798069,
0.061984408646821976,
0.6571457386016846,
-0.6217408180236816,
1.0545248985290527,
0.7852839231491089,
0.8895999193191528,
0.17373211681842804,
0.24436058104038239,
0.3819495737552643,
-0.42601558566093445,
-1.092199444770813,
-0.26906782388687134,
-1.0757273435592651,
-2.5266270637512207,
0.37727272510528564,
-0.18500027060508728,
-1.4026498794555664,
0.07881521433591843,
-1.0611692667007446,
1.0458030700683594,
-0.5773220062255859,
-1.1405603885650635,
-1.4439078569412231,
0.21610723435878754,
-0.0035534691996872425,
0.8791910409927368,
-1.6585475206375122,
-0.1971995085477829,
1.2269518375396729,
0.9060130715370178,
-0.7073821425437927,
0.9742433428764343,
0.22939425706863403,
1.0474903583526611,
0.7783599495887756,
-0.3462286591529846,
0.5166594982147217,
-0.023816997185349464,
-1.3114570379257202,
0.5055352449417114,
1.2744219303131104,
0.1810510903596878,
1.464521884918213,
-0.5142164826393127,
-0.0740513727068901,
0.4136642813682556,
-0.5035879611968994,
-0.4333741068840027,
-0.48563313484191895,
0.577750563621521,
0.0037860963493585587,
-0.8908194303512573,
-0.006730595137923956,
0.06933529675006866,
-0.24579617381095886,
0.15225788950920105,
-1.513261318206787,
-0.1730610728263855,
-0.3317522406578064,
-0.5933164358139038,
-1.1877479553222656,
-0.15910027921199799,
1.344093680381775,
-0.6787469983100891,
-0.23009413480758667,
0.5877452492713928,
0.34264659881591797,
0.5027912855148315,
0.6106637716293335,
-0.7018746733665466,
-0.32449817657470703,
-0.16287794709205627,
-0.38122275471687317,
0.29338425397872925,
1.4310283660888672,
-0.09995400160551071,
-1.0302542448043823,
0.6759065985679626,
-0.3696446120738983,
0.11928727477788925,
1.8796970844268799,
0.0032298648729920387,
-0.8382757306098938,
0.2579130232334137,
-0.731110692024231,
1.9820353984832764,
1.6909674406051636,
1.3109478950500488,
-0.2079307585954666,
-0.9382466077804565,
0.6484934687614441,
-0.36321312189102173,
-0.3855263590812683,
0.7931091785430908,
0.434207022190094,
-0.21879246830940247,
-1.4250761270523071,
0.7810091972351074,
1.2220083475112915,
-0.8701730966567993,
-0.8362335562705994,
0.2040329873561859,
-0.7865044474601746,
1.2100863456726074,
0.5704458951950073,
0.3885285556316376,
0.26488766074180603,
1.6749430894851685,
0.7839793562889099,
-0.4830368757247925,
0.5305950045585632,
0.5899040699005127,
-0.2549073398113251,
-2.117297649383545,
-1.2228984832763672,
0.2386598438024521,
-0.5105786919593811,
-1.6498724222183228,
1.3856914043426514,
-1.1283546686172485,
-0.9055264592170715,
0.5615368485450745,
0.19742968678474426,
1.441979169845581,
0.47002822160720825,
1.498322606086731,
1.998225212097168,
0.8818400502204895,
0.5101339817047119,
1.26248300075531,
-0.1928892582654953,
-0.4471021890640259,
1.703553318977356,
-0.40576809644699097,
0.49370303750038147,
1.1481244564056396,
-0.34237027168273926,
-1.1551082134246826,
-0.7309965491294861,
-1.2617107629776,
-0.638624906539917,
1.1259101629257202,
0.08125753700733185,
-1.114267110824585,
0.2880176603794098,
1.5262247323989868,
0.02963348478078842,
-0.4066013991832733,
0.6983596086502075,
0.3855864703655243,
-0.8493353724479675,
-0.09340010583400726,
-0.9615633487701416,
0.5154450535774231,
-0.2743864357471466,
-0.3399408161640167,
0.386542946100235,
0.47912752628326416,
1.3820343017578125,
0.00368392001837492,
0.17814098298549652,
1.106298804283142,
-1.4593685865402222,
1.4869871139526367,
-0.7667415738105774,
0.3007473647594452,
-2.322366237640381,
1.3242570161819458,
-0.7571386694908142,
1.9956679344177246,
-2.651571750640869,
0.4268435835838318,
-0.5761978626251221,
-0.4257076680660248,
0.28473302721977234,
-0.30411839485168457,
0.09652189165353775,
-0.056351952254772186,
-1.1823700666427612,
-0.030381660908460617,
-0.67929607629776,
0.48431849479675293,
1.2265324592590332,
1.3401774168014526,
-1.0505659580230713,
-0.24285544455051422,
-1.713810682296753,
-0.14679966866970062,
-0.7274350523948669,
0.2961518168449402,
-1.9785172939300537,
-0.19305777549743652,
-1.7888380289077759,
-2.335594415664673,
-1.2202625274658203,
-0.8405134677886963,
1.1834405660629272,
0.09546074271202087,
-0.9177148938179016,
1.3848637342453003,
-0.32166236639022827,
-1.8208314180374146,
1.144755482673645,
-2.1944212913513184
] |
https://github.com/huggingface/datasets/issues/5284 | Features of IterableDataset set to None by remove column | @sanchit-gandhi PR is ready and open for review at #5287, but there's still one issue I may need @lhoestq's input :hugs: | ### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq | 399 | 21 | Features of IterableDataset set to None by remove column
### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq
@sanchit-gandhi PR is ready and open for review at #5287, but there's still one issue I may need @lhoestq's input :hugs: | [
-1.1740634441375732,
-0.986666202545166,
-0.724602222442627,
1.5060685873031616,
-0.16580796241760254,
-1.1591317653656006,
0.15898366272449493,
-0.9965685606002808,
1.6621525287628174,
-0.7151062488555908,
0.23000434041023254,
-1.7126665115356445,
-0.02927146479487419,
-0.7022446990013123,
-0.7006533741950989,
-0.7825727462768555,
-0.44418010115623474,
-0.6750337481498718,
1.0712870359420776,
2.4491422176361084,
1.126986026763916,
-1.3972970247268677,
2.685581922531128,
0.7613965272903442,
-0.12701305747032166,
-1.0008825063705444,
0.5279032588005066,
-0.020517751574516296,
-1.3073084354400635,
-0.42334243655204773,
-0.9414310455322266,
-0.07282167673110962,
-0.5671327710151672,
-0.5041792392730713,
-0.025721069425344467,
0.4836001694202423,
-0.2883168160915375,
-0.5188636779785156,
-0.5447405576705933,
-0.7822561860084534,
0.42035073041915894,
-0.4502526521682739,
0.9208778738975525,
-0.29555532336235046,
1.740590214729309,
-0.4802614450454712,
0.45731407403945923,
0.6671180725097656,
1.34443998336792,
0.20132403075695038,
0.030259549617767334,
0.41033735871315,
0.39441317319869995,
-0.0029080482199788094,
0.5537984371185303,
1.1025899648666382,
0.6618925333023071,
0.36606088280677795,
0.7998780012130737,
-2.3302223682403564,
1.2639623880386353,
-1.031832218170166,
0.34414738416671753,
1.4194467067718506,
-0.8958433866500854,
0.4459843039512634,
-1.7529118061065674,
-0.007573788054287434,
0.5610712170600891,
-2.1671433448791504,
0.3541838228702545,
-1.2952206134796143,
-0.47434526681900024,
0.9894115328788757,
0.4395764470100403,
-1.2181364297866821,
0.07624826580286026,
-0.40268027782440186,
0.9985519051551819,
0.3970577120780945,
1.0239136219024658,
-1.6703805923461914,
-0.04444468393921852,
-0.2624271512031555,
0.09642571955919266,
-1.1816489696502686,
-1.5338526964187622,
0.5620894432067871,
0.6283164024353027,
0.6010218262672424,
-0.15023596584796906,
0.9470357298851013,
-1.0917648077011108,
0.7073898911476135,
-1.0668425559997559,
-1.7771267890930176,
-1.3901079893112183,
-2.2986836433410645,
-2.224368095397949,
0.7559497356414795,
-0.3860224187374115,
-0.49577969312667847,
2.041194438934326,
-0.9477006196975708,
-1.703643798828125,
1.2458834648132324,
0.3050755560398102,
-0.009852706454694271,
2.3928639888763428,
0.20134879648685455,
-0.7178375124931335,
0.5246604681015015,
-0.8768110275268555,
0.7294706702232361,
-0.41770586371421814,
1.361526370048523,
0.3342323899269104,
-0.961638867855072,
1.6295228004455566,
-0.40626806020736694,
0.575508177280426,
-0.6553776860237122,
-0.4834022521972656,
-0.7370169758796692,
0.3387547433376312,
1.8843703269958496,
-0.20112334191799164,
1.4273878335952759,
-0.2915476858615875,
-1.5425004959106445,
-1.5800426006317139,
0.8945232033729553,
0.4263899028301239,
-0.7969486117362976,
0.041500240564346313,
-0.3811860978603363,
0.17679442465305328,
-0.11817335337400436,
1.1077804565429688,
1.302406907081604,
0.6923899054527283,
-0.3055030107498169,
-0.9190441370010376,
0.18349774181842804,
-0.0732884332537651,
-0.7539286017417908,
-1.766400694847107,
-0.3068983256816864,
0.09623584151268005,
0.6425536274909973,
-1.2173820734024048,
1.6314822435379028,
0.888975203037262,
1.9507960081100464,
1.0327134132385254,
-0.4389415681362152,
1.5339652299880981,
0.18591564893722534,
1.864121437072754,
-0.5879107713699341,
0.6467631459236145,
-0.36720311641693115,
-1.1390960216522217,
0.8660203218460083,
-0.2920052707195282,
-2.054614305496216,
-0.6985463500022888,
-0.8338853120803833,
-0.27518439292907715,
-0.7877715229988098,
0.9064380526542664,
-0.3264041244983673,
-1.4582703113555908,
0.22949132323265076,
-0.8331968784332275,
0.25477561354637146,
-1.216995358467102,
0.35080358386039734,
0.7394037842750549,
-0.5631515979766846,
0.11184360831975937,
-0.25755876302719116,
-1.3025919198989868,
-0.4285743236541748,
0.4408356249332428,
1.798865556716919,
-0.7781767845153809,
0.8737159967422485,
1.0752553939819336,
-0.6607528328895569,
-0.030051197856664658,
0.25174376368522644,
-0.2575992941856384,
0.8487302660942078,
-1.0488066673278809,
-0.6335503458976746,
1.1974314451217651,
-0.2621570825576782,
-0.5677669644355774,
1.4236652851104736,
0.7370242476463318,
-1.020390510559082,
-0.23789538443088531,
-0.12291788309812546,
-0.8111027479171753,
0.03446507826447487,
-1.6387282609939575,
-0.13712634146213531,
0.45346108078956604,
-1.5445802211761475,
-0.511365532875061,
-0.22956083714962006,
1.2745977640151978,
-0.08931765705347061,
1.3814016580581665,
-0.34371238946914673,
-0.1811835616827011,
-0.3242795467376709,
-0.43145430088043213,
0.17091530561447144,
-0.27696147561073303,
-0.5547698736190796,
0.16688266396522522,
-0.7897278070449829,
0.3840920627117157,
1.4557623863220215,
0.34986594319343567,
0.03164688125252724,
0.5524382591247559,
1.0789194107055664,
0.4136938154697418,
0.01859385520219803,
-0.8538756966590881,
-1.5574651956558228,
2.004110336303711,
-1.5403445959091187,
1.9855172634124756,
0.6471446752548218,
0.004418067634105682,
-1.762105941772461,
-1.9000847339630127,
1.3794058561325073,
1.0739269256591797,
2.281036138534546,
0.5556668043136597,
0.4193519949913025,
-0.8817763328552246,
-0.7039327025413513,
0.2391435205936432,
-0.9229901432991028,
-0.6900538206100464,
0.14477819204330444,
2.4524648189544678,
1.7735214233398438,
-0.391728013753891,
-0.1463700383901596,
-1.0272901058197021,
1.472538709640503,
-0.22413264214992523,
0.296032577753067,
1.9633708000183105,
-0.19710709154605865,
-1.0477186441421509,
1.3101067543029785,
-2.430807590484619,
0.21800540387630463,
1.9894654750823975,
0.25136351585388184,
0.12834864854812622,
-1.3406041860580444,
-0.6989707946777344,
-0.2523651719093323,
-0.3618276119232178,
-1.2168259620666504,
0.5204461216926575,
-0.19417671859264374,
-0.7570129036903381,
-1.4673807621002197,
0.2007729858160019,
-1.1301296949386597,
-1.6235263347625732,
0.19802169501781464,
1.9439700841903687,
2.0469813346862793,
-0.7388483881950378,
1.5983428955078125,
-0.20277033746242523,
0.2316572219133377,
1.25314462184906,
1.2497632503509521,
3.0391342639923096,
1.9332236051559448,
-1.2589603662490845,
0.5884714722633362,
-0.10421610623598099,
-0.4660125970840454,
1.128513216972351,
-1.22151780128479,
1.261224389076233,
-0.1223948746919632,
-1.1922967433929443,
-1.1751385927200317,
0.8911329507827759,
0.4807963967323303,
0.018271759152412415,
-0.4794355034828186,
1.0946100950241089,
-0.017145587131381035,
1.300018072128296,
0.6534950733184814,
-0.3251863121986389,
0.5727750062942505,
-0.3684099316596985,
-0.4896842837333679,
1.5210942029953003,
0.16602595150470734,
-1.4960638284683228,
-2.252255439758301,
-0.23709633946418762,
-0.8344295024871826,
0.02612973004579544,
-0.6469669342041016,
-1.0421806573867798,
1.6097761392593384,
0.3150186836719513,
-1.106411337852478,
-0.25407296419143677,
-0.28113439679145813,
-0.4653162360191345,
2.7521893978118896,
-1.3727673292160034,
-0.369506299495697,
-0.9822364449501038,
-0.6867644190788269,
1.6629829406738281,
-1.140742540359497,
-0.1680440604686737,
-1.047851324081421,
-0.5585007667541504,
-1.2625632286071777,
-0.5022638440132141,
-0.01261946652084589,
-0.9607892036437988,
0.9490216374397278,
0.24997656047344208,
-1.273635745048523,
-0.30040493607521057,
-1.010167121887207,
0.9102311730384827,
-0.20412032306194305,
0.13574881851673126,
1.8789029121398926,
0.3868274986743927,
-0.30071595311164856,
0.8381085395812988,
1.1608433723449707,
0.6595677733421326,
-0.6416675448417664,
0.20485641062259674,
-0.622679591178894,
0.4078461229801178,
-1.2567288875579834,
0.3002992570400238,
-2.8814287185668945,
0.5772916078567505,
-0.04750595986843109,
-0.07260485738515854,
-0.014310870319604874,
-1.3685790300369263,
1.1411206722259521,
2.5246238708496094,
-1.2405511140823364,
0.540179431438446,
0.31308960914611816,
1.3201801776885986,
-1.6488773822784424,
0.30366477370262146,
-0.43925151228904724,
2.146209716796875,
0.11532788723707199,
1.1828489303588867,
-0.4796656668186188,
-2.405769109725952,
0.5725910663604736,
-1.285487413406372,
-1.0892844200134277,
0.5760021805763245,
-0.8826748132705688,
0.17135070264339447,
-1.4390827417373657,
-0.25266918540000916,
-0.8373715281486511,
-1.212345838546753,
0.6514226794242859,
0.14764532446861267,
0.37637996673583984,
-0.5833077430725098,
0.37175679206848145,
-2.2661848068237305,
-1.437279462814331,
-0.2414645552635193,
-0.881189227104187,
0.5709286332130432,
-0.40921708941459656,
0.7099315524101257,
-0.19441565871238708,
-0.0830283835530281,
0.2884077727794647,
1.490281105041504,
3.430873394012451,
0.1405719816684723,
0.3486906588077545,
-0.191218763589859,
-0.962834358215332,
1.4740816354751587,
0.9456469416618347,
-0.09642041474580765,
-0.5491443872451782,
-1.0648458003997803,
1.339535117149353,
2.0104949474334717,
1.0104788541793823,
0.014308185316622257,
-0.7778764963150024,
-0.7166679501533508,
-0.0013722144067287445,
0.21560192108154297,
0.4618178606033325,
0.8817300200462341,
0.11114297062158585,
0.038151782006025314,
1.4403002262115479,
1.1349486112594604,
-0.36639270186424255,
0.31349900364875793,
-0.8439265489578247,
-0.4549533426761627,
0.5096615552902222,
0.22128351032733917,
-0.09854587912559509,
0.32620906829833984,
-1.0784913301467896,
-0.1932654231786728,
-0.38969483971595764,
-0.7888396382331848,
-0.7237638235092163,
-0.30670294165611267,
-0.405322790145874,
1.6498875617980957,
0.24833251535892487,
-0.6347332000732422,
-0.04334746301174164,
-0.682330846786499,
-0.07347244769334793,
-1.0291318893432617,
0.26515859365463257,
-0.1682129204273224,
-0.0963517352938652,
-0.1580209732055664,
1.7363427877426147,
-0.926306426525116,
-2.108243227005005,
0.08693306893110275,
0.2563703656196594,
-0.24405871331691742,
0.1650504767894745,
1.6397802829742432,
0.555199146270752,
1.4672791957855225,
1.3989925384521484,
0.9704632759094238,
-0.6554832458496094,
-1.369896411895752,
0.6247709393501282,
1.0219173431396484,
-1.3660075664520264,
0.7574595808982849,
0.002986043691635132,
-0.5812757015228271,
0.6140861511230469,
1.387833595275879,
0.45213639736175537,
-2.051330804824829,
0.8066007494926453,
-1.0934420824050903,
0.8830718398094177,
0.7621008157730103,
0.7252550721168518,
0.26766717433929443,
0.7512490749359131,
-1.3064016103744507,
-1.0745222568511963,
-0.7645248770713806,
-0.7171022891998291,
2.0211024284362793,
-0.31213074922561646,
0.566371500492096,
-0.13526730239391327,
-1.3239555358886719,
-0.030996102839708328,
0.6026800870895386,
0.3995935022830963,
-0.5054895281791687,
0.743327796459198,
-0.6708906888961792,
-1.1373894214630127,
-1.3377716541290283,
-0.5344031453132629,
-1.0233769416809082,
-0.9924033284187317,
0.9817649126052856,
0.8214259147644043,
0.367506742477417,
1.807085394859314,
0.682091236114502,
0.1905786097049713,
-2.5962562561035156,
0.8878418207168579,
0.339345782995224,
-0.15858958661556244,
0.747962236404419,
0.38450056314468384,
1.112421989440918,
-0.05916773900389671,
0.6365931034088135,
-2.456975221633911,
2.2702832221984863,
-0.21865874528884888,
0.7594698667526245,
-0.051954109221696854,
-0.013750312849879265,
1.040590524673462,
0.5211355090141296,
0.5294734239578247,
-0.9792267084121704,
0.6967198848724365,
-0.5824718475341797,
1.267713189125061,
0.9366497993469238,
-0.7415249347686768,
-0.0008157938718795776,
1.3940365314483643,
0.43769571185112,
-0.6509130597114563,
-0.983001708984375,
-0.9074679613113403,
0.9208577275276184,
1.7006614208221436,
-0.1653354912996292,
-0.002173737622797489,
0.8512538075447083,
0.6234742403030396,
-1.268680453300476,
-0.004062732215970755,
-0.6441185474395752,
-0.6026046872138977,
1.6840944290161133,
2.1201398372650146,
-0.25677773356437683,
-0.16135530173778534,
-0.6934025287628174,
-1.3219597339630127,
0.7064563035964966,
-0.008150614798069,
0.061984408646821976,
0.6571457386016846,
-0.6217408180236816,
1.0545248985290527,
0.7852839231491089,
0.8895999193191528,
0.17373211681842804,
0.24436058104038239,
0.3819495737552643,
-0.42601558566093445,
-1.092199444770813,
-0.26906782388687134,
-1.0757273435592651,
-2.5266270637512207,
0.37727272510528564,
-0.18500027060508728,
-1.4026498794555664,
0.07881521433591843,
-1.0611692667007446,
1.0458030700683594,
-0.5773220062255859,
-1.1405603885650635,
-1.4439078569412231,
0.21610723435878754,
-0.0035534691996872425,
0.8791910409927368,
-1.6585475206375122,
-0.1971995085477829,
1.2269518375396729,
0.9060130715370178,
-0.7073821425437927,
0.9742433428764343,
0.22939425706863403,
1.0474903583526611,
0.7783599495887756,
-0.3462286591529846,
0.5166594982147217,
-0.023816997185349464,
-1.3114570379257202,
0.5055352449417114,
1.2744219303131104,
0.1810510903596878,
1.464521884918213,
-0.5142164826393127,
-0.0740513727068901,
0.4136642813682556,
-0.5035879611968994,
-0.4333741068840027,
-0.48563313484191895,
0.577750563621521,
0.0037860963493585587,
-0.8908194303512573,
-0.006730595137923956,
0.06933529675006866,
-0.24579617381095886,
0.15225788950920105,
-1.513261318206787,
-0.1730610728263855,
-0.3317522406578064,
-0.5933164358139038,
-1.1877479553222656,
-0.15910027921199799,
1.344093680381775,
-0.6787469983100891,
-0.23009413480758667,
0.5877452492713928,
0.34264659881591797,
0.5027912855148315,
0.6106637716293335,
-0.7018746733665466,
-0.32449817657470703,
-0.16287794709205627,
-0.38122275471687317,
0.29338425397872925,
1.4310283660888672,
-0.09995400160551071,
-1.0302542448043823,
0.6759065985679626,
-0.3696446120738983,
0.11928727477788925,
1.8796970844268799,
0.0032298648729920387,
-0.8382757306098938,
0.2579130232334137,
-0.731110692024231,
1.9820353984832764,
1.6909674406051636,
1.3109478950500488,
-0.2079307585954666,
-0.9382466077804565,
0.6484934687614441,
-0.36321312189102173,
-0.3855263590812683,
0.7931091785430908,
0.434207022190094,
-0.21879246830940247,
-1.4250761270523071,
0.7810091972351074,
1.2220083475112915,
-0.8701730966567993,
-0.8362335562705994,
0.2040329873561859,
-0.7865044474601746,
1.2100863456726074,
0.5704458951950073,
0.3885285556316376,
0.26488766074180603,
1.6749430894851685,
0.7839793562889099,
-0.4830368757247925,
0.5305950045585632,
0.5899040699005127,
-0.2549073398113251,
-2.117297649383545,
-1.2228984832763672,
0.2386598438024521,
-0.5105786919593811,
-1.6498724222183228,
1.3856914043426514,
-1.1283546686172485,
-0.9055264592170715,
0.5615368485450745,
0.19742968678474426,
1.441979169845581,
0.47002822160720825,
1.498322606086731,
1.998225212097168,
0.8818400502204895,
0.5101339817047119,
1.26248300075531,
-0.1928892582654953,
-0.4471021890640259,
1.703553318977356,
-0.40576809644699097,
0.49370303750038147,
1.1481244564056396,
-0.34237027168273926,
-1.1551082134246826,
-0.7309965491294861,
-1.2617107629776,
-0.638624906539917,
1.1259101629257202,
0.08125753700733185,
-1.114267110824585,
0.2880176603794098,
1.5262247323989868,
0.02963348478078842,
-0.4066013991832733,
0.6983596086502075,
0.3855864703655243,
-0.8493353724479675,
-0.09340010583400726,
-0.9615633487701416,
0.5154450535774231,
-0.2743864357471466,
-0.3399408161640167,
0.386542946100235,
0.47912752628326416,
1.3820343017578125,
0.00368392001837492,
0.17814098298549652,
1.106298804283142,
-1.4593685865402222,
1.4869871139526367,
-0.7667415738105774,
0.3007473647594452,
-2.322366237640381,
1.3242570161819458,
-0.7571386694908142,
1.9956679344177246,
-2.651571750640869,
0.4268435835838318,
-0.5761978626251221,
-0.4257076680660248,
0.28473302721977234,
-0.30411839485168457,
0.09652189165353775,
-0.056351952254772186,
-1.1823700666427612,
-0.030381660908460617,
-0.67929607629776,
0.48431849479675293,
1.2265324592590332,
1.3401774168014526,
-1.0505659580230713,
-0.24285544455051422,
-1.713810682296753,
-0.14679966866970062,
-0.7274350523948669,
0.2961518168449402,
-1.9785172939300537,
-0.19305777549743652,
-1.7888380289077759,
-2.335594415664673,
-1.2202625274658203,
-0.8405134677886963,
1.1834405660629272,
0.09546074271202087,
-0.9177148938179016,
1.3848637342453003,
-0.32166236639022827,
-1.8208314180374146,
1.144755482673645,
-2.1944212913513184
] |
https://github.com/huggingface/datasets/issues/5284 | Features of IterableDataset set to None by remove column | Let us know @sanchit-gandhi if you need a new release of `datasets` soon with this fix included :) | ### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq | 399 | 18 | Features of IterableDataset set to None by remove column
### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq
Let us know @sanchit-gandhi if you need a new release of `datasets` soon with this fix included :) | [
-1.1740634441375732,
-0.986666202545166,
-0.724602222442627,
1.5060685873031616,
-0.16580796241760254,
-1.1591317653656006,
0.15898366272449493,
-0.9965685606002808,
1.6621525287628174,
-0.7151062488555908,
0.23000434041023254,
-1.7126665115356445,
-0.02927146479487419,
-0.7022446990013123,
-0.7006533741950989,
-0.7825727462768555,
-0.44418010115623474,
-0.6750337481498718,
1.0712870359420776,
2.4491422176361084,
1.126986026763916,
-1.3972970247268677,
2.685581922531128,
0.7613965272903442,
-0.12701305747032166,
-1.0008825063705444,
0.5279032588005066,
-0.020517751574516296,
-1.3073084354400635,
-0.42334243655204773,
-0.9414310455322266,
-0.07282167673110962,
-0.5671327710151672,
-0.5041792392730713,
-0.025721069425344467,
0.4836001694202423,
-0.2883168160915375,
-0.5188636779785156,
-0.5447405576705933,
-0.7822561860084534,
0.42035073041915894,
-0.4502526521682739,
0.9208778738975525,
-0.29555532336235046,
1.740590214729309,
-0.4802614450454712,
0.45731407403945923,
0.6671180725097656,
1.34443998336792,
0.20132403075695038,
0.030259549617767334,
0.41033735871315,
0.39441317319869995,
-0.0029080482199788094,
0.5537984371185303,
1.1025899648666382,
0.6618925333023071,
0.36606088280677795,
0.7998780012130737,
-2.3302223682403564,
1.2639623880386353,
-1.031832218170166,
0.34414738416671753,
1.4194467067718506,
-0.8958433866500854,
0.4459843039512634,
-1.7529118061065674,
-0.007573788054287434,
0.5610712170600891,
-2.1671433448791504,
0.3541838228702545,
-1.2952206134796143,
-0.47434526681900024,
0.9894115328788757,
0.4395764470100403,
-1.2181364297866821,
0.07624826580286026,
-0.40268027782440186,
0.9985519051551819,
0.3970577120780945,
1.0239136219024658,
-1.6703805923461914,
-0.04444468393921852,
-0.2624271512031555,
0.09642571955919266,
-1.1816489696502686,
-1.5338526964187622,
0.5620894432067871,
0.6283164024353027,
0.6010218262672424,
-0.15023596584796906,
0.9470357298851013,
-1.0917648077011108,
0.7073898911476135,
-1.0668425559997559,
-1.7771267890930176,
-1.3901079893112183,
-2.2986836433410645,
-2.224368095397949,
0.7559497356414795,
-0.3860224187374115,
-0.49577969312667847,
2.041194438934326,
-0.9477006196975708,
-1.703643798828125,
1.2458834648132324,
0.3050755560398102,
-0.009852706454694271,
2.3928639888763428,
0.20134879648685455,
-0.7178375124931335,
0.5246604681015015,
-0.8768110275268555,
0.7294706702232361,
-0.41770586371421814,
1.361526370048523,
0.3342323899269104,
-0.961638867855072,
1.6295228004455566,
-0.40626806020736694,
0.575508177280426,
-0.6553776860237122,
-0.4834022521972656,
-0.7370169758796692,
0.3387547433376312,
1.8843703269958496,
-0.20112334191799164,
1.4273878335952759,
-0.2915476858615875,
-1.5425004959106445,
-1.5800426006317139,
0.8945232033729553,
0.4263899028301239,
-0.7969486117362976,
0.041500240564346313,
-0.3811860978603363,
0.17679442465305328,
-0.11817335337400436,
1.1077804565429688,
1.302406907081604,
0.6923899054527283,
-0.3055030107498169,
-0.9190441370010376,
0.18349774181842804,
-0.0732884332537651,
-0.7539286017417908,
-1.766400694847107,
-0.3068983256816864,
0.09623584151268005,
0.6425536274909973,
-1.2173820734024048,
1.6314822435379028,
0.888975203037262,
1.9507960081100464,
1.0327134132385254,
-0.4389415681362152,
1.5339652299880981,
0.18591564893722534,
1.864121437072754,
-0.5879107713699341,
0.6467631459236145,
-0.36720311641693115,
-1.1390960216522217,
0.8660203218460083,
-0.2920052707195282,
-2.054614305496216,
-0.6985463500022888,
-0.8338853120803833,
-0.27518439292907715,
-0.7877715229988098,
0.9064380526542664,
-0.3264041244983673,
-1.4582703113555908,
0.22949132323265076,
-0.8331968784332275,
0.25477561354637146,
-1.216995358467102,
0.35080358386039734,
0.7394037842750549,
-0.5631515979766846,
0.11184360831975937,
-0.25755876302719116,
-1.3025919198989868,
-0.4285743236541748,
0.4408356249332428,
1.798865556716919,
-0.7781767845153809,
0.8737159967422485,
1.0752553939819336,
-0.6607528328895569,
-0.030051197856664658,
0.25174376368522644,
-0.2575992941856384,
0.8487302660942078,
-1.0488066673278809,
-0.6335503458976746,
1.1974314451217651,
-0.2621570825576782,
-0.5677669644355774,
1.4236652851104736,
0.7370242476463318,
-1.020390510559082,
-0.23789538443088531,
-0.12291788309812546,
-0.8111027479171753,
0.03446507826447487,
-1.6387282609939575,
-0.13712634146213531,
0.45346108078956604,
-1.5445802211761475,
-0.511365532875061,
-0.22956083714962006,
1.2745977640151978,
-0.08931765705347061,
1.3814016580581665,
-0.34371238946914673,
-0.1811835616827011,
-0.3242795467376709,
-0.43145430088043213,
0.17091530561447144,
-0.27696147561073303,
-0.5547698736190796,
0.16688266396522522,
-0.7897278070449829,
0.3840920627117157,
1.4557623863220215,
0.34986594319343567,
0.03164688125252724,
0.5524382591247559,
1.0789194107055664,
0.4136938154697418,
0.01859385520219803,
-0.8538756966590881,
-1.5574651956558228,
2.004110336303711,
-1.5403445959091187,
1.9855172634124756,
0.6471446752548218,
0.004418067634105682,
-1.762105941772461,
-1.9000847339630127,
1.3794058561325073,
1.0739269256591797,
2.281036138534546,
0.5556668043136597,
0.4193519949913025,
-0.8817763328552246,
-0.7039327025413513,
0.2391435205936432,
-0.9229901432991028,
-0.6900538206100464,
0.14477819204330444,
2.4524648189544678,
1.7735214233398438,
-0.391728013753891,
-0.1463700383901596,
-1.0272901058197021,
1.472538709640503,
-0.22413264214992523,
0.296032577753067,
1.9633708000183105,
-0.19710709154605865,
-1.0477186441421509,
1.3101067543029785,
-2.430807590484619,
0.21800540387630463,
1.9894654750823975,
0.25136351585388184,
0.12834864854812622,
-1.3406041860580444,
-0.6989707946777344,
-0.2523651719093323,
-0.3618276119232178,
-1.2168259620666504,
0.5204461216926575,
-0.19417671859264374,
-0.7570129036903381,
-1.4673807621002197,
0.2007729858160019,
-1.1301296949386597,
-1.6235263347625732,
0.19802169501781464,
1.9439700841903687,
2.0469813346862793,
-0.7388483881950378,
1.5983428955078125,
-0.20277033746242523,
0.2316572219133377,
1.25314462184906,
1.2497632503509521,
3.0391342639923096,
1.9332236051559448,
-1.2589603662490845,
0.5884714722633362,
-0.10421610623598099,
-0.4660125970840454,
1.128513216972351,
-1.22151780128479,
1.261224389076233,
-0.1223948746919632,
-1.1922967433929443,
-1.1751385927200317,
0.8911329507827759,
0.4807963967323303,
0.018271759152412415,
-0.4794355034828186,
1.0946100950241089,
-0.017145587131381035,
1.300018072128296,
0.6534950733184814,
-0.3251863121986389,
0.5727750062942505,
-0.3684099316596985,
-0.4896842837333679,
1.5210942029953003,
0.16602595150470734,
-1.4960638284683228,
-2.252255439758301,
-0.23709633946418762,
-0.8344295024871826,
0.02612973004579544,
-0.6469669342041016,
-1.0421806573867798,
1.6097761392593384,
0.3150186836719513,
-1.106411337852478,
-0.25407296419143677,
-0.28113439679145813,
-0.4653162360191345,
2.7521893978118896,
-1.3727673292160034,
-0.369506299495697,
-0.9822364449501038,
-0.6867644190788269,
1.6629829406738281,
-1.140742540359497,
-0.1680440604686737,
-1.047851324081421,
-0.5585007667541504,
-1.2625632286071777,
-0.5022638440132141,
-0.01261946652084589,
-0.9607892036437988,
0.9490216374397278,
0.24997656047344208,
-1.273635745048523,
-0.30040493607521057,
-1.010167121887207,
0.9102311730384827,
-0.20412032306194305,
0.13574881851673126,
1.8789029121398926,
0.3868274986743927,
-0.30071595311164856,
0.8381085395812988,
1.1608433723449707,
0.6595677733421326,
-0.6416675448417664,
0.20485641062259674,
-0.622679591178894,
0.4078461229801178,
-1.2567288875579834,
0.3002992570400238,
-2.8814287185668945,
0.5772916078567505,
-0.04750595986843109,
-0.07260485738515854,
-0.014310870319604874,
-1.3685790300369263,
1.1411206722259521,
2.5246238708496094,
-1.2405511140823364,
0.540179431438446,
0.31308960914611816,
1.3201801776885986,
-1.6488773822784424,
0.30366477370262146,
-0.43925151228904724,
2.146209716796875,
0.11532788723707199,
1.1828489303588867,
-0.4796656668186188,
-2.405769109725952,
0.5725910663604736,
-1.285487413406372,
-1.0892844200134277,
0.5760021805763245,
-0.8826748132705688,
0.17135070264339447,
-1.4390827417373657,
-0.25266918540000916,
-0.8373715281486511,
-1.212345838546753,
0.6514226794242859,
0.14764532446861267,
0.37637996673583984,
-0.5833077430725098,
0.37175679206848145,
-2.2661848068237305,
-1.437279462814331,
-0.2414645552635193,
-0.881189227104187,
0.5709286332130432,
-0.40921708941459656,
0.7099315524101257,
-0.19441565871238708,
-0.0830283835530281,
0.2884077727794647,
1.490281105041504,
3.430873394012451,
0.1405719816684723,
0.3486906588077545,
-0.191218763589859,
-0.962834358215332,
1.4740816354751587,
0.9456469416618347,
-0.09642041474580765,
-0.5491443872451782,
-1.0648458003997803,
1.339535117149353,
2.0104949474334717,
1.0104788541793823,
0.014308185316622257,
-0.7778764963150024,
-0.7166679501533508,
-0.0013722144067287445,
0.21560192108154297,
0.4618178606033325,
0.8817300200462341,
0.11114297062158585,
0.038151782006025314,
1.4403002262115479,
1.1349486112594604,
-0.36639270186424255,
0.31349900364875793,
-0.8439265489578247,
-0.4549533426761627,
0.5096615552902222,
0.22128351032733917,
-0.09854587912559509,
0.32620906829833984,
-1.0784913301467896,
-0.1932654231786728,
-0.38969483971595764,
-0.7888396382331848,
-0.7237638235092163,
-0.30670294165611267,
-0.405322790145874,
1.6498875617980957,
0.24833251535892487,
-0.6347332000732422,
-0.04334746301174164,
-0.682330846786499,
-0.07347244769334793,
-1.0291318893432617,
0.26515859365463257,
-0.1682129204273224,
-0.0963517352938652,
-0.1580209732055664,
1.7363427877426147,
-0.926306426525116,
-2.108243227005005,
0.08693306893110275,
0.2563703656196594,
-0.24405871331691742,
0.1650504767894745,
1.6397802829742432,
0.555199146270752,
1.4672791957855225,
1.3989925384521484,
0.9704632759094238,
-0.6554832458496094,
-1.369896411895752,
0.6247709393501282,
1.0219173431396484,
-1.3660075664520264,
0.7574595808982849,
0.002986043691635132,
-0.5812757015228271,
0.6140861511230469,
1.387833595275879,
0.45213639736175537,
-2.051330804824829,
0.8066007494926453,
-1.0934420824050903,
0.8830718398094177,
0.7621008157730103,
0.7252550721168518,
0.26766717433929443,
0.7512490749359131,
-1.3064016103744507,
-1.0745222568511963,
-0.7645248770713806,
-0.7171022891998291,
2.0211024284362793,
-0.31213074922561646,
0.566371500492096,
-0.13526730239391327,
-1.3239555358886719,
-0.030996102839708328,
0.6026800870895386,
0.3995935022830963,
-0.5054895281791687,
0.743327796459198,
-0.6708906888961792,
-1.1373894214630127,
-1.3377716541290283,
-0.5344031453132629,
-1.0233769416809082,
-0.9924033284187317,
0.9817649126052856,
0.8214259147644043,
0.367506742477417,
1.807085394859314,
0.682091236114502,
0.1905786097049713,
-2.5962562561035156,
0.8878418207168579,
0.339345782995224,
-0.15858958661556244,
0.747962236404419,
0.38450056314468384,
1.112421989440918,
-0.05916773900389671,
0.6365931034088135,
-2.456975221633911,
2.2702832221984863,
-0.21865874528884888,
0.7594698667526245,
-0.051954109221696854,
-0.013750312849879265,
1.040590524673462,
0.5211355090141296,
0.5294734239578247,
-0.9792267084121704,
0.6967198848724365,
-0.5824718475341797,
1.267713189125061,
0.9366497993469238,
-0.7415249347686768,
-0.0008157938718795776,
1.3940365314483643,
0.43769571185112,
-0.6509130597114563,
-0.983001708984375,
-0.9074679613113403,
0.9208577275276184,
1.7006614208221436,
-0.1653354912996292,
-0.002173737622797489,
0.8512538075447083,
0.6234742403030396,
-1.268680453300476,
-0.004062732215970755,
-0.6441185474395752,
-0.6026046872138977,
1.6840944290161133,
2.1201398372650146,
-0.25677773356437683,
-0.16135530173778534,
-0.6934025287628174,
-1.3219597339630127,
0.7064563035964966,
-0.008150614798069,
0.061984408646821976,
0.6571457386016846,
-0.6217408180236816,
1.0545248985290527,
0.7852839231491089,
0.8895999193191528,
0.17373211681842804,
0.24436058104038239,
0.3819495737552643,
-0.42601558566093445,
-1.092199444770813,
-0.26906782388687134,
-1.0757273435592651,
-2.5266270637512207,
0.37727272510528564,
-0.18500027060508728,
-1.4026498794555664,
0.07881521433591843,
-1.0611692667007446,
1.0458030700683594,
-0.5773220062255859,
-1.1405603885650635,
-1.4439078569412231,
0.21610723435878754,
-0.0035534691996872425,
0.8791910409927368,
-1.6585475206375122,
-0.1971995085477829,
1.2269518375396729,
0.9060130715370178,
-0.7073821425437927,
0.9742433428764343,
0.22939425706863403,
1.0474903583526611,
0.7783599495887756,
-0.3462286591529846,
0.5166594982147217,
-0.023816997185349464,
-1.3114570379257202,
0.5055352449417114,
1.2744219303131104,
0.1810510903596878,
1.464521884918213,
-0.5142164826393127,
-0.0740513727068901,
0.4136642813682556,
-0.5035879611968994,
-0.4333741068840027,
-0.48563313484191895,
0.577750563621521,
0.0037860963493585587,
-0.8908194303512573,
-0.006730595137923956,
0.06933529675006866,
-0.24579617381095886,
0.15225788950920105,
-1.513261318206787,
-0.1730610728263855,
-0.3317522406578064,
-0.5933164358139038,
-1.1877479553222656,
-0.15910027921199799,
1.344093680381775,
-0.6787469983100891,
-0.23009413480758667,
0.5877452492713928,
0.34264659881591797,
0.5027912855148315,
0.6106637716293335,
-0.7018746733665466,
-0.32449817657470703,
-0.16287794709205627,
-0.38122275471687317,
0.29338425397872925,
1.4310283660888672,
-0.09995400160551071,
-1.0302542448043823,
0.6759065985679626,
-0.3696446120738983,
0.11928727477788925,
1.8796970844268799,
0.0032298648729920387,
-0.8382757306098938,
0.2579130232334137,
-0.731110692024231,
1.9820353984832764,
1.6909674406051636,
1.3109478950500488,
-0.2079307585954666,
-0.9382466077804565,
0.6484934687614441,
-0.36321312189102173,
-0.3855263590812683,
0.7931091785430908,
0.434207022190094,
-0.21879246830940247,
-1.4250761270523071,
0.7810091972351074,
1.2220083475112915,
-0.8701730966567993,
-0.8362335562705994,
0.2040329873561859,
-0.7865044474601746,
1.2100863456726074,
0.5704458951950073,
0.3885285556316376,
0.26488766074180603,
1.6749430894851685,
0.7839793562889099,
-0.4830368757247925,
0.5305950045585632,
0.5899040699005127,
-0.2549073398113251,
-2.117297649383545,
-1.2228984832763672,
0.2386598438024521,
-0.5105786919593811,
-1.6498724222183228,
1.3856914043426514,
-1.1283546686172485,
-0.9055264592170715,
0.5615368485450745,
0.19742968678474426,
1.441979169845581,
0.47002822160720825,
1.498322606086731,
1.998225212097168,
0.8818400502204895,
0.5101339817047119,
1.26248300075531,
-0.1928892582654953,
-0.4471021890640259,
1.703553318977356,
-0.40576809644699097,
0.49370303750038147,
1.1481244564056396,
-0.34237027168273926,
-1.1551082134246826,
-0.7309965491294861,
-1.2617107629776,
-0.638624906539917,
1.1259101629257202,
0.08125753700733185,
-1.114267110824585,
0.2880176603794098,
1.5262247323989868,
0.02963348478078842,
-0.4066013991832733,
0.6983596086502075,
0.3855864703655243,
-0.8493353724479675,
-0.09340010583400726,
-0.9615633487701416,
0.5154450535774231,
-0.2743864357471466,
-0.3399408161640167,
0.386542946100235,
0.47912752628326416,
1.3820343017578125,
0.00368392001837492,
0.17814098298549652,
1.106298804283142,
-1.4593685865402222,
1.4869871139526367,
-0.7667415738105774,
0.3007473647594452,
-2.322366237640381,
1.3242570161819458,
-0.7571386694908142,
1.9956679344177246,
-2.651571750640869,
0.4268435835838318,
-0.5761978626251221,
-0.4257076680660248,
0.28473302721977234,
-0.30411839485168457,
0.09652189165353775,
-0.056351952254772186,
-1.1823700666427612,
-0.030381660908460617,
-0.67929607629776,
0.48431849479675293,
1.2265324592590332,
1.3401774168014526,
-1.0505659580230713,
-0.24285544455051422,
-1.713810682296753,
-0.14679966866970062,
-0.7274350523948669,
0.2961518168449402,
-1.9785172939300537,
-0.19305777549743652,
-1.7888380289077759,
-2.335594415664673,
-1.2202625274658203,
-0.8405134677886963,
1.1834405660629272,
0.09546074271202087,
-0.9177148938179016,
1.3848637342453003,
-0.32166236639022827,
-1.8208314180374146,
1.144755482673645,
-2.1944212913513184
] |
https://github.com/huggingface/datasets/issues/5284 | Features of IterableDataset set to None by remove column | Thanks for the fix guys! We can direct people to install `datasets` from main if that's easier! | ### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq | 399 | 17 | Features of IterableDataset set to None by remove column
### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq
Thanks for the fix guys! We can direct people to install `datasets` from main if that's easier! | [
-1.1740634441375732,
-0.986666202545166,
-0.724602222442627,
1.5060685873031616,
-0.16580796241760254,
-1.1591317653656006,
0.15898366272449493,
-0.9965685606002808,
1.6621525287628174,
-0.7151062488555908,
0.23000434041023254,
-1.7126665115356445,
-0.02927146479487419,
-0.7022446990013123,
-0.7006533741950989,
-0.7825727462768555,
-0.44418010115623474,
-0.6750337481498718,
1.0712870359420776,
2.4491422176361084,
1.126986026763916,
-1.3972970247268677,
2.685581922531128,
0.7613965272903442,
-0.12701305747032166,
-1.0008825063705444,
0.5279032588005066,
-0.020517751574516296,
-1.3073084354400635,
-0.42334243655204773,
-0.9414310455322266,
-0.07282167673110962,
-0.5671327710151672,
-0.5041792392730713,
-0.025721069425344467,
0.4836001694202423,
-0.2883168160915375,
-0.5188636779785156,
-0.5447405576705933,
-0.7822561860084534,
0.42035073041915894,
-0.4502526521682739,
0.9208778738975525,
-0.29555532336235046,
1.740590214729309,
-0.4802614450454712,
0.45731407403945923,
0.6671180725097656,
1.34443998336792,
0.20132403075695038,
0.030259549617767334,
0.41033735871315,
0.39441317319869995,
-0.0029080482199788094,
0.5537984371185303,
1.1025899648666382,
0.6618925333023071,
0.36606088280677795,
0.7998780012130737,
-2.3302223682403564,
1.2639623880386353,
-1.031832218170166,
0.34414738416671753,
1.4194467067718506,
-0.8958433866500854,
0.4459843039512634,
-1.7529118061065674,
-0.007573788054287434,
0.5610712170600891,
-2.1671433448791504,
0.3541838228702545,
-1.2952206134796143,
-0.47434526681900024,
0.9894115328788757,
0.4395764470100403,
-1.2181364297866821,
0.07624826580286026,
-0.40268027782440186,
0.9985519051551819,
0.3970577120780945,
1.0239136219024658,
-1.6703805923461914,
-0.04444468393921852,
-0.2624271512031555,
0.09642571955919266,
-1.1816489696502686,
-1.5338526964187622,
0.5620894432067871,
0.6283164024353027,
0.6010218262672424,
-0.15023596584796906,
0.9470357298851013,
-1.0917648077011108,
0.7073898911476135,
-1.0668425559997559,
-1.7771267890930176,
-1.3901079893112183,
-2.2986836433410645,
-2.224368095397949,
0.7559497356414795,
-0.3860224187374115,
-0.49577969312667847,
2.041194438934326,
-0.9477006196975708,
-1.703643798828125,
1.2458834648132324,
0.3050755560398102,
-0.009852706454694271,
2.3928639888763428,
0.20134879648685455,
-0.7178375124931335,
0.5246604681015015,
-0.8768110275268555,
0.7294706702232361,
-0.41770586371421814,
1.361526370048523,
0.3342323899269104,
-0.961638867855072,
1.6295228004455566,
-0.40626806020736694,
0.575508177280426,
-0.6553776860237122,
-0.4834022521972656,
-0.7370169758796692,
0.3387547433376312,
1.8843703269958496,
-0.20112334191799164,
1.4273878335952759,
-0.2915476858615875,
-1.5425004959106445,
-1.5800426006317139,
0.8945232033729553,
0.4263899028301239,
-0.7969486117362976,
0.041500240564346313,
-0.3811860978603363,
0.17679442465305328,
-0.11817335337400436,
1.1077804565429688,
1.302406907081604,
0.6923899054527283,
-0.3055030107498169,
-0.9190441370010376,
0.18349774181842804,
-0.0732884332537651,
-0.7539286017417908,
-1.766400694847107,
-0.3068983256816864,
0.09623584151268005,
0.6425536274909973,
-1.2173820734024048,
1.6314822435379028,
0.888975203037262,
1.9507960081100464,
1.0327134132385254,
-0.4389415681362152,
1.5339652299880981,
0.18591564893722534,
1.864121437072754,
-0.5879107713699341,
0.6467631459236145,
-0.36720311641693115,
-1.1390960216522217,
0.8660203218460083,
-0.2920052707195282,
-2.054614305496216,
-0.6985463500022888,
-0.8338853120803833,
-0.27518439292907715,
-0.7877715229988098,
0.9064380526542664,
-0.3264041244983673,
-1.4582703113555908,
0.22949132323265076,
-0.8331968784332275,
0.25477561354637146,
-1.216995358467102,
0.35080358386039734,
0.7394037842750549,
-0.5631515979766846,
0.11184360831975937,
-0.25755876302719116,
-1.3025919198989868,
-0.4285743236541748,
0.4408356249332428,
1.798865556716919,
-0.7781767845153809,
0.8737159967422485,
1.0752553939819336,
-0.6607528328895569,
-0.030051197856664658,
0.25174376368522644,
-0.2575992941856384,
0.8487302660942078,
-1.0488066673278809,
-0.6335503458976746,
1.1974314451217651,
-0.2621570825576782,
-0.5677669644355774,
1.4236652851104736,
0.7370242476463318,
-1.020390510559082,
-0.23789538443088531,
-0.12291788309812546,
-0.8111027479171753,
0.03446507826447487,
-1.6387282609939575,
-0.13712634146213531,
0.45346108078956604,
-1.5445802211761475,
-0.511365532875061,
-0.22956083714962006,
1.2745977640151978,
-0.08931765705347061,
1.3814016580581665,
-0.34371238946914673,
-0.1811835616827011,
-0.3242795467376709,
-0.43145430088043213,
0.17091530561447144,
-0.27696147561073303,
-0.5547698736190796,
0.16688266396522522,
-0.7897278070449829,
0.3840920627117157,
1.4557623863220215,
0.34986594319343567,
0.03164688125252724,
0.5524382591247559,
1.0789194107055664,
0.4136938154697418,
0.01859385520219803,
-0.8538756966590881,
-1.5574651956558228,
2.004110336303711,
-1.5403445959091187,
1.9855172634124756,
0.6471446752548218,
0.004418067634105682,
-1.762105941772461,
-1.9000847339630127,
1.3794058561325073,
1.0739269256591797,
2.281036138534546,
0.5556668043136597,
0.4193519949913025,
-0.8817763328552246,
-0.7039327025413513,
0.2391435205936432,
-0.9229901432991028,
-0.6900538206100464,
0.14477819204330444,
2.4524648189544678,
1.7735214233398438,
-0.391728013753891,
-0.1463700383901596,
-1.0272901058197021,
1.472538709640503,
-0.22413264214992523,
0.296032577753067,
1.9633708000183105,
-0.19710709154605865,
-1.0477186441421509,
1.3101067543029785,
-2.430807590484619,
0.21800540387630463,
1.9894654750823975,
0.25136351585388184,
0.12834864854812622,
-1.3406041860580444,
-0.6989707946777344,
-0.2523651719093323,
-0.3618276119232178,
-1.2168259620666504,
0.5204461216926575,
-0.19417671859264374,
-0.7570129036903381,
-1.4673807621002197,
0.2007729858160019,
-1.1301296949386597,
-1.6235263347625732,
0.19802169501781464,
1.9439700841903687,
2.0469813346862793,
-0.7388483881950378,
1.5983428955078125,
-0.20277033746242523,
0.2316572219133377,
1.25314462184906,
1.2497632503509521,
3.0391342639923096,
1.9332236051559448,
-1.2589603662490845,
0.5884714722633362,
-0.10421610623598099,
-0.4660125970840454,
1.128513216972351,
-1.22151780128479,
1.261224389076233,
-0.1223948746919632,
-1.1922967433929443,
-1.1751385927200317,
0.8911329507827759,
0.4807963967323303,
0.018271759152412415,
-0.4794355034828186,
1.0946100950241089,
-0.017145587131381035,
1.300018072128296,
0.6534950733184814,
-0.3251863121986389,
0.5727750062942505,
-0.3684099316596985,
-0.4896842837333679,
1.5210942029953003,
0.16602595150470734,
-1.4960638284683228,
-2.252255439758301,
-0.23709633946418762,
-0.8344295024871826,
0.02612973004579544,
-0.6469669342041016,
-1.0421806573867798,
1.6097761392593384,
0.3150186836719513,
-1.106411337852478,
-0.25407296419143677,
-0.28113439679145813,
-0.4653162360191345,
2.7521893978118896,
-1.3727673292160034,
-0.369506299495697,
-0.9822364449501038,
-0.6867644190788269,
1.6629829406738281,
-1.140742540359497,
-0.1680440604686737,
-1.047851324081421,
-0.5585007667541504,
-1.2625632286071777,
-0.5022638440132141,
-0.01261946652084589,
-0.9607892036437988,
0.9490216374397278,
0.24997656047344208,
-1.273635745048523,
-0.30040493607521057,
-1.010167121887207,
0.9102311730384827,
-0.20412032306194305,
0.13574881851673126,
1.8789029121398926,
0.3868274986743927,
-0.30071595311164856,
0.8381085395812988,
1.1608433723449707,
0.6595677733421326,
-0.6416675448417664,
0.20485641062259674,
-0.622679591178894,
0.4078461229801178,
-1.2567288875579834,
0.3002992570400238,
-2.8814287185668945,
0.5772916078567505,
-0.04750595986843109,
-0.07260485738515854,
-0.014310870319604874,
-1.3685790300369263,
1.1411206722259521,
2.5246238708496094,
-1.2405511140823364,
0.540179431438446,
0.31308960914611816,
1.3201801776885986,
-1.6488773822784424,
0.30366477370262146,
-0.43925151228904724,
2.146209716796875,
0.11532788723707199,
1.1828489303588867,
-0.4796656668186188,
-2.405769109725952,
0.5725910663604736,
-1.285487413406372,
-1.0892844200134277,
0.5760021805763245,
-0.8826748132705688,
0.17135070264339447,
-1.4390827417373657,
-0.25266918540000916,
-0.8373715281486511,
-1.212345838546753,
0.6514226794242859,
0.14764532446861267,
0.37637996673583984,
-0.5833077430725098,
0.37175679206848145,
-2.2661848068237305,
-1.437279462814331,
-0.2414645552635193,
-0.881189227104187,
0.5709286332130432,
-0.40921708941459656,
0.7099315524101257,
-0.19441565871238708,
-0.0830283835530281,
0.2884077727794647,
1.490281105041504,
3.430873394012451,
0.1405719816684723,
0.3486906588077545,
-0.191218763589859,
-0.962834358215332,
1.4740816354751587,
0.9456469416618347,
-0.09642041474580765,
-0.5491443872451782,
-1.0648458003997803,
1.339535117149353,
2.0104949474334717,
1.0104788541793823,
0.014308185316622257,
-0.7778764963150024,
-0.7166679501533508,
-0.0013722144067287445,
0.21560192108154297,
0.4618178606033325,
0.8817300200462341,
0.11114297062158585,
0.038151782006025314,
1.4403002262115479,
1.1349486112594604,
-0.36639270186424255,
0.31349900364875793,
-0.8439265489578247,
-0.4549533426761627,
0.5096615552902222,
0.22128351032733917,
-0.09854587912559509,
0.32620906829833984,
-1.0784913301467896,
-0.1932654231786728,
-0.38969483971595764,
-0.7888396382331848,
-0.7237638235092163,
-0.30670294165611267,
-0.405322790145874,
1.6498875617980957,
0.24833251535892487,
-0.6347332000732422,
-0.04334746301174164,
-0.682330846786499,
-0.07347244769334793,
-1.0291318893432617,
0.26515859365463257,
-0.1682129204273224,
-0.0963517352938652,
-0.1580209732055664,
1.7363427877426147,
-0.926306426525116,
-2.108243227005005,
0.08693306893110275,
0.2563703656196594,
-0.24405871331691742,
0.1650504767894745,
1.6397802829742432,
0.555199146270752,
1.4672791957855225,
1.3989925384521484,
0.9704632759094238,
-0.6554832458496094,
-1.369896411895752,
0.6247709393501282,
1.0219173431396484,
-1.3660075664520264,
0.7574595808982849,
0.002986043691635132,
-0.5812757015228271,
0.6140861511230469,
1.387833595275879,
0.45213639736175537,
-2.051330804824829,
0.8066007494926453,
-1.0934420824050903,
0.8830718398094177,
0.7621008157730103,
0.7252550721168518,
0.26766717433929443,
0.7512490749359131,
-1.3064016103744507,
-1.0745222568511963,
-0.7645248770713806,
-0.7171022891998291,
2.0211024284362793,
-0.31213074922561646,
0.566371500492096,
-0.13526730239391327,
-1.3239555358886719,
-0.030996102839708328,
0.6026800870895386,
0.3995935022830963,
-0.5054895281791687,
0.743327796459198,
-0.6708906888961792,
-1.1373894214630127,
-1.3377716541290283,
-0.5344031453132629,
-1.0233769416809082,
-0.9924033284187317,
0.9817649126052856,
0.8214259147644043,
0.367506742477417,
1.807085394859314,
0.682091236114502,
0.1905786097049713,
-2.5962562561035156,
0.8878418207168579,
0.339345782995224,
-0.15858958661556244,
0.747962236404419,
0.38450056314468384,
1.112421989440918,
-0.05916773900389671,
0.6365931034088135,
-2.456975221633911,
2.2702832221984863,
-0.21865874528884888,
0.7594698667526245,
-0.051954109221696854,
-0.013750312849879265,
1.040590524673462,
0.5211355090141296,
0.5294734239578247,
-0.9792267084121704,
0.6967198848724365,
-0.5824718475341797,
1.267713189125061,
0.9366497993469238,
-0.7415249347686768,
-0.0008157938718795776,
1.3940365314483643,
0.43769571185112,
-0.6509130597114563,
-0.983001708984375,
-0.9074679613113403,
0.9208577275276184,
1.7006614208221436,
-0.1653354912996292,
-0.002173737622797489,
0.8512538075447083,
0.6234742403030396,
-1.268680453300476,
-0.004062732215970755,
-0.6441185474395752,
-0.6026046872138977,
1.6840944290161133,
2.1201398372650146,
-0.25677773356437683,
-0.16135530173778534,
-0.6934025287628174,
-1.3219597339630127,
0.7064563035964966,
-0.008150614798069,
0.061984408646821976,
0.6571457386016846,
-0.6217408180236816,
1.0545248985290527,
0.7852839231491089,
0.8895999193191528,
0.17373211681842804,
0.24436058104038239,
0.3819495737552643,
-0.42601558566093445,
-1.092199444770813,
-0.26906782388687134,
-1.0757273435592651,
-2.5266270637512207,
0.37727272510528564,
-0.18500027060508728,
-1.4026498794555664,
0.07881521433591843,
-1.0611692667007446,
1.0458030700683594,
-0.5773220062255859,
-1.1405603885650635,
-1.4439078569412231,
0.21610723435878754,
-0.0035534691996872425,
0.8791910409927368,
-1.6585475206375122,
-0.1971995085477829,
1.2269518375396729,
0.9060130715370178,
-0.7073821425437927,
0.9742433428764343,
0.22939425706863403,
1.0474903583526611,
0.7783599495887756,
-0.3462286591529846,
0.5166594982147217,
-0.023816997185349464,
-1.3114570379257202,
0.5055352449417114,
1.2744219303131104,
0.1810510903596878,
1.464521884918213,
-0.5142164826393127,
-0.0740513727068901,
0.4136642813682556,
-0.5035879611968994,
-0.4333741068840027,
-0.48563313484191895,
0.577750563621521,
0.0037860963493585587,
-0.8908194303512573,
-0.006730595137923956,
0.06933529675006866,
-0.24579617381095886,
0.15225788950920105,
-1.513261318206787,
-0.1730610728263855,
-0.3317522406578064,
-0.5933164358139038,
-1.1877479553222656,
-0.15910027921199799,
1.344093680381775,
-0.6787469983100891,
-0.23009413480758667,
0.5877452492713928,
0.34264659881591797,
0.5027912855148315,
0.6106637716293335,
-0.7018746733665466,
-0.32449817657470703,
-0.16287794709205627,
-0.38122275471687317,
0.29338425397872925,
1.4310283660888672,
-0.09995400160551071,
-1.0302542448043823,
0.6759065985679626,
-0.3696446120738983,
0.11928727477788925,
1.8796970844268799,
0.0032298648729920387,
-0.8382757306098938,
0.2579130232334137,
-0.731110692024231,
1.9820353984832764,
1.6909674406051636,
1.3109478950500488,
-0.2079307585954666,
-0.9382466077804565,
0.6484934687614441,
-0.36321312189102173,
-0.3855263590812683,
0.7931091785430908,
0.434207022190094,
-0.21879246830940247,
-1.4250761270523071,
0.7810091972351074,
1.2220083475112915,
-0.8701730966567993,
-0.8362335562705994,
0.2040329873561859,
-0.7865044474601746,
1.2100863456726074,
0.5704458951950073,
0.3885285556316376,
0.26488766074180603,
1.6749430894851685,
0.7839793562889099,
-0.4830368757247925,
0.5305950045585632,
0.5899040699005127,
-0.2549073398113251,
-2.117297649383545,
-1.2228984832763672,
0.2386598438024521,
-0.5105786919593811,
-1.6498724222183228,
1.3856914043426514,
-1.1283546686172485,
-0.9055264592170715,
0.5615368485450745,
0.19742968678474426,
1.441979169845581,
0.47002822160720825,
1.498322606086731,
1.998225212097168,
0.8818400502204895,
0.5101339817047119,
1.26248300075531,
-0.1928892582654953,
-0.4471021890640259,
1.703553318977356,
-0.40576809644699097,
0.49370303750038147,
1.1481244564056396,
-0.34237027168273926,
-1.1551082134246826,
-0.7309965491294861,
-1.2617107629776,
-0.638624906539917,
1.1259101629257202,
0.08125753700733185,
-1.114267110824585,
0.2880176603794098,
1.5262247323989868,
0.02963348478078842,
-0.4066013991832733,
0.6983596086502075,
0.3855864703655243,
-0.8493353724479675,
-0.09340010583400726,
-0.9615633487701416,
0.5154450535774231,
-0.2743864357471466,
-0.3399408161640167,
0.386542946100235,
0.47912752628326416,
1.3820343017578125,
0.00368392001837492,
0.17814098298549652,
1.106298804283142,
-1.4593685865402222,
1.4869871139526367,
-0.7667415738105774,
0.3007473647594452,
-2.322366237640381,
1.3242570161819458,
-0.7571386694908142,
1.9956679344177246,
-2.651571750640869,
0.4268435835838318,
-0.5761978626251221,
-0.4257076680660248,
0.28473302721977234,
-0.30411839485168457,
0.09652189165353775,
-0.056351952254772186,
-1.1823700666427612,
-0.030381660908460617,
-0.67929607629776,
0.48431849479675293,
1.2265324592590332,
1.3401774168014526,
-1.0505659580230713,
-0.24285544455051422,
-1.713810682296753,
-0.14679966866970062,
-0.7274350523948669,
0.2961518168449402,
-1.9785172939300537,
-0.19305777549743652,
-1.7888380289077759,
-2.335594415664673,
-1.2202625274658203,
-0.8405134677886963,
1.1834405660629272,
0.09546074271202087,
-0.9177148938179016,
1.3848637342453003,
-0.32166236639022827,
-1.8208314180374146,
1.144755482673645,
-2.1944212913513184
] |
https://github.com/huggingface/datasets/issues/5284 | Features of IterableDataset set to None by remove column | Hi @asennoussi so this was already fixed and released as part of https://github.com/huggingface/datasets/releases/tag/2.8.0, so you should be able to install it as `pip install datasets==2.8.0` or just to use `pip install datasets --upgrade` to get the latest version, as of now, the https://github.com/huggingface/datasets/releases/tag/2.9.0 released last week! 🤗 | ### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq | 399 | 47 | Features of IterableDataset set to None by remove column
### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq
Hi @asennoussi so this was already fixed and released as part of https://github.com/huggingface/datasets/releases/tag/2.8.0, so you should be able to install it as `pip install datasets==2.8.0` or just to use `pip install datasets --upgrade` to get the latest version, as of now, the https://github.com/huggingface/datasets/releases/tag/2.9.0 released last week! 🤗 | [
-1.1740634441375732,
-0.986666202545166,
-0.724602222442627,
1.5060685873031616,
-0.16580796241760254,
-1.1591317653656006,
0.15898366272449493,
-0.9965685606002808,
1.6621525287628174,
-0.7151062488555908,
0.23000434041023254,
-1.7126665115356445,
-0.02927146479487419,
-0.7022446990013123,
-0.7006533741950989,
-0.7825727462768555,
-0.44418010115623474,
-0.6750337481498718,
1.0712870359420776,
2.4491422176361084,
1.126986026763916,
-1.3972970247268677,
2.685581922531128,
0.7613965272903442,
-0.12701305747032166,
-1.0008825063705444,
0.5279032588005066,
-0.020517751574516296,
-1.3073084354400635,
-0.42334243655204773,
-0.9414310455322266,
-0.07282167673110962,
-0.5671327710151672,
-0.5041792392730713,
-0.025721069425344467,
0.4836001694202423,
-0.2883168160915375,
-0.5188636779785156,
-0.5447405576705933,
-0.7822561860084534,
0.42035073041915894,
-0.4502526521682739,
0.9208778738975525,
-0.29555532336235046,
1.740590214729309,
-0.4802614450454712,
0.45731407403945923,
0.6671180725097656,
1.34443998336792,
0.20132403075695038,
0.030259549617767334,
0.41033735871315,
0.39441317319869995,
-0.0029080482199788094,
0.5537984371185303,
1.1025899648666382,
0.6618925333023071,
0.36606088280677795,
0.7998780012130737,
-2.3302223682403564,
1.2639623880386353,
-1.031832218170166,
0.34414738416671753,
1.4194467067718506,
-0.8958433866500854,
0.4459843039512634,
-1.7529118061065674,
-0.007573788054287434,
0.5610712170600891,
-2.1671433448791504,
0.3541838228702545,
-1.2952206134796143,
-0.47434526681900024,
0.9894115328788757,
0.4395764470100403,
-1.2181364297866821,
0.07624826580286026,
-0.40268027782440186,
0.9985519051551819,
0.3970577120780945,
1.0239136219024658,
-1.6703805923461914,
-0.04444468393921852,
-0.2624271512031555,
0.09642571955919266,
-1.1816489696502686,
-1.5338526964187622,
0.5620894432067871,
0.6283164024353027,
0.6010218262672424,
-0.15023596584796906,
0.9470357298851013,
-1.0917648077011108,
0.7073898911476135,
-1.0668425559997559,
-1.7771267890930176,
-1.3901079893112183,
-2.2986836433410645,
-2.224368095397949,
0.7559497356414795,
-0.3860224187374115,
-0.49577969312667847,
2.041194438934326,
-0.9477006196975708,
-1.703643798828125,
1.2458834648132324,
0.3050755560398102,
-0.009852706454694271,
2.3928639888763428,
0.20134879648685455,
-0.7178375124931335,
0.5246604681015015,
-0.8768110275268555,
0.7294706702232361,
-0.41770586371421814,
1.361526370048523,
0.3342323899269104,
-0.961638867855072,
1.6295228004455566,
-0.40626806020736694,
0.575508177280426,
-0.6553776860237122,
-0.4834022521972656,
-0.7370169758796692,
0.3387547433376312,
1.8843703269958496,
-0.20112334191799164,
1.4273878335952759,
-0.2915476858615875,
-1.5425004959106445,
-1.5800426006317139,
0.8945232033729553,
0.4263899028301239,
-0.7969486117362976,
0.041500240564346313,
-0.3811860978603363,
0.17679442465305328,
-0.11817335337400436,
1.1077804565429688,
1.302406907081604,
0.6923899054527283,
-0.3055030107498169,
-0.9190441370010376,
0.18349774181842804,
-0.0732884332537651,
-0.7539286017417908,
-1.766400694847107,
-0.3068983256816864,
0.09623584151268005,
0.6425536274909973,
-1.2173820734024048,
1.6314822435379028,
0.888975203037262,
1.9507960081100464,
1.0327134132385254,
-0.4389415681362152,
1.5339652299880981,
0.18591564893722534,
1.864121437072754,
-0.5879107713699341,
0.6467631459236145,
-0.36720311641693115,
-1.1390960216522217,
0.8660203218460083,
-0.2920052707195282,
-2.054614305496216,
-0.6985463500022888,
-0.8338853120803833,
-0.27518439292907715,
-0.7877715229988098,
0.9064380526542664,
-0.3264041244983673,
-1.4582703113555908,
0.22949132323265076,
-0.8331968784332275,
0.25477561354637146,
-1.216995358467102,
0.35080358386039734,
0.7394037842750549,
-0.5631515979766846,
0.11184360831975937,
-0.25755876302719116,
-1.3025919198989868,
-0.4285743236541748,
0.4408356249332428,
1.798865556716919,
-0.7781767845153809,
0.8737159967422485,
1.0752553939819336,
-0.6607528328895569,
-0.030051197856664658,
0.25174376368522644,
-0.2575992941856384,
0.8487302660942078,
-1.0488066673278809,
-0.6335503458976746,
1.1974314451217651,
-0.2621570825576782,
-0.5677669644355774,
1.4236652851104736,
0.7370242476463318,
-1.020390510559082,
-0.23789538443088531,
-0.12291788309812546,
-0.8111027479171753,
0.03446507826447487,
-1.6387282609939575,
-0.13712634146213531,
0.45346108078956604,
-1.5445802211761475,
-0.511365532875061,
-0.22956083714962006,
1.2745977640151978,
-0.08931765705347061,
1.3814016580581665,
-0.34371238946914673,
-0.1811835616827011,
-0.3242795467376709,
-0.43145430088043213,
0.17091530561447144,
-0.27696147561073303,
-0.5547698736190796,
0.16688266396522522,
-0.7897278070449829,
0.3840920627117157,
1.4557623863220215,
0.34986594319343567,
0.03164688125252724,
0.5524382591247559,
1.0789194107055664,
0.4136938154697418,
0.01859385520219803,
-0.8538756966590881,
-1.5574651956558228,
2.004110336303711,
-1.5403445959091187,
1.9855172634124756,
0.6471446752548218,
0.004418067634105682,
-1.762105941772461,
-1.9000847339630127,
1.3794058561325073,
1.0739269256591797,
2.281036138534546,
0.5556668043136597,
0.4193519949913025,
-0.8817763328552246,
-0.7039327025413513,
0.2391435205936432,
-0.9229901432991028,
-0.6900538206100464,
0.14477819204330444,
2.4524648189544678,
1.7735214233398438,
-0.391728013753891,
-0.1463700383901596,
-1.0272901058197021,
1.472538709640503,
-0.22413264214992523,
0.296032577753067,
1.9633708000183105,
-0.19710709154605865,
-1.0477186441421509,
1.3101067543029785,
-2.430807590484619,
0.21800540387630463,
1.9894654750823975,
0.25136351585388184,
0.12834864854812622,
-1.3406041860580444,
-0.6989707946777344,
-0.2523651719093323,
-0.3618276119232178,
-1.2168259620666504,
0.5204461216926575,
-0.19417671859264374,
-0.7570129036903381,
-1.4673807621002197,
0.2007729858160019,
-1.1301296949386597,
-1.6235263347625732,
0.19802169501781464,
1.9439700841903687,
2.0469813346862793,
-0.7388483881950378,
1.5983428955078125,
-0.20277033746242523,
0.2316572219133377,
1.25314462184906,
1.2497632503509521,
3.0391342639923096,
1.9332236051559448,
-1.2589603662490845,
0.5884714722633362,
-0.10421610623598099,
-0.4660125970840454,
1.128513216972351,
-1.22151780128479,
1.261224389076233,
-0.1223948746919632,
-1.1922967433929443,
-1.1751385927200317,
0.8911329507827759,
0.4807963967323303,
0.018271759152412415,
-0.4794355034828186,
1.0946100950241089,
-0.017145587131381035,
1.300018072128296,
0.6534950733184814,
-0.3251863121986389,
0.5727750062942505,
-0.3684099316596985,
-0.4896842837333679,
1.5210942029953003,
0.16602595150470734,
-1.4960638284683228,
-2.252255439758301,
-0.23709633946418762,
-0.8344295024871826,
0.02612973004579544,
-0.6469669342041016,
-1.0421806573867798,
1.6097761392593384,
0.3150186836719513,
-1.106411337852478,
-0.25407296419143677,
-0.28113439679145813,
-0.4653162360191345,
2.7521893978118896,
-1.3727673292160034,
-0.369506299495697,
-0.9822364449501038,
-0.6867644190788269,
1.6629829406738281,
-1.140742540359497,
-0.1680440604686737,
-1.047851324081421,
-0.5585007667541504,
-1.2625632286071777,
-0.5022638440132141,
-0.01261946652084589,
-0.9607892036437988,
0.9490216374397278,
0.24997656047344208,
-1.273635745048523,
-0.30040493607521057,
-1.010167121887207,
0.9102311730384827,
-0.20412032306194305,
0.13574881851673126,
1.8789029121398926,
0.3868274986743927,
-0.30071595311164856,
0.8381085395812988,
1.1608433723449707,
0.6595677733421326,
-0.6416675448417664,
0.20485641062259674,
-0.622679591178894,
0.4078461229801178,
-1.2567288875579834,
0.3002992570400238,
-2.8814287185668945,
0.5772916078567505,
-0.04750595986843109,
-0.07260485738515854,
-0.014310870319604874,
-1.3685790300369263,
1.1411206722259521,
2.5246238708496094,
-1.2405511140823364,
0.540179431438446,
0.31308960914611816,
1.3201801776885986,
-1.6488773822784424,
0.30366477370262146,
-0.43925151228904724,
2.146209716796875,
0.11532788723707199,
1.1828489303588867,
-0.4796656668186188,
-2.405769109725952,
0.5725910663604736,
-1.285487413406372,
-1.0892844200134277,
0.5760021805763245,
-0.8826748132705688,
0.17135070264339447,
-1.4390827417373657,
-0.25266918540000916,
-0.8373715281486511,
-1.212345838546753,
0.6514226794242859,
0.14764532446861267,
0.37637996673583984,
-0.5833077430725098,
0.37175679206848145,
-2.2661848068237305,
-1.437279462814331,
-0.2414645552635193,
-0.881189227104187,
0.5709286332130432,
-0.40921708941459656,
0.7099315524101257,
-0.19441565871238708,
-0.0830283835530281,
0.2884077727794647,
1.490281105041504,
3.430873394012451,
0.1405719816684723,
0.3486906588077545,
-0.191218763589859,
-0.962834358215332,
1.4740816354751587,
0.9456469416618347,
-0.09642041474580765,
-0.5491443872451782,
-1.0648458003997803,
1.339535117149353,
2.0104949474334717,
1.0104788541793823,
0.014308185316622257,
-0.7778764963150024,
-0.7166679501533508,
-0.0013722144067287445,
0.21560192108154297,
0.4618178606033325,
0.8817300200462341,
0.11114297062158585,
0.038151782006025314,
1.4403002262115479,
1.1349486112594604,
-0.36639270186424255,
0.31349900364875793,
-0.8439265489578247,
-0.4549533426761627,
0.5096615552902222,
0.22128351032733917,
-0.09854587912559509,
0.32620906829833984,
-1.0784913301467896,
-0.1932654231786728,
-0.38969483971595764,
-0.7888396382331848,
-0.7237638235092163,
-0.30670294165611267,
-0.405322790145874,
1.6498875617980957,
0.24833251535892487,
-0.6347332000732422,
-0.04334746301174164,
-0.682330846786499,
-0.07347244769334793,
-1.0291318893432617,
0.26515859365463257,
-0.1682129204273224,
-0.0963517352938652,
-0.1580209732055664,
1.7363427877426147,
-0.926306426525116,
-2.108243227005005,
0.08693306893110275,
0.2563703656196594,
-0.24405871331691742,
0.1650504767894745,
1.6397802829742432,
0.555199146270752,
1.4672791957855225,
1.3989925384521484,
0.9704632759094238,
-0.6554832458496094,
-1.369896411895752,
0.6247709393501282,
1.0219173431396484,
-1.3660075664520264,
0.7574595808982849,
0.002986043691635132,
-0.5812757015228271,
0.6140861511230469,
1.387833595275879,
0.45213639736175537,
-2.051330804824829,
0.8066007494926453,
-1.0934420824050903,
0.8830718398094177,
0.7621008157730103,
0.7252550721168518,
0.26766717433929443,
0.7512490749359131,
-1.3064016103744507,
-1.0745222568511963,
-0.7645248770713806,
-0.7171022891998291,
2.0211024284362793,
-0.31213074922561646,
0.566371500492096,
-0.13526730239391327,
-1.3239555358886719,
-0.030996102839708328,
0.6026800870895386,
0.3995935022830963,
-0.5054895281791687,
0.743327796459198,
-0.6708906888961792,
-1.1373894214630127,
-1.3377716541290283,
-0.5344031453132629,
-1.0233769416809082,
-0.9924033284187317,
0.9817649126052856,
0.8214259147644043,
0.367506742477417,
1.807085394859314,
0.682091236114502,
0.1905786097049713,
-2.5962562561035156,
0.8878418207168579,
0.339345782995224,
-0.15858958661556244,
0.747962236404419,
0.38450056314468384,
1.112421989440918,
-0.05916773900389671,
0.6365931034088135,
-2.456975221633911,
2.2702832221984863,
-0.21865874528884888,
0.7594698667526245,
-0.051954109221696854,
-0.013750312849879265,
1.040590524673462,
0.5211355090141296,
0.5294734239578247,
-0.9792267084121704,
0.6967198848724365,
-0.5824718475341797,
1.267713189125061,
0.9366497993469238,
-0.7415249347686768,
-0.0008157938718795776,
1.3940365314483643,
0.43769571185112,
-0.6509130597114563,
-0.983001708984375,
-0.9074679613113403,
0.9208577275276184,
1.7006614208221436,
-0.1653354912996292,
-0.002173737622797489,
0.8512538075447083,
0.6234742403030396,
-1.268680453300476,
-0.004062732215970755,
-0.6441185474395752,
-0.6026046872138977,
1.6840944290161133,
2.1201398372650146,
-0.25677773356437683,
-0.16135530173778534,
-0.6934025287628174,
-1.3219597339630127,
0.7064563035964966,
-0.008150614798069,
0.061984408646821976,
0.6571457386016846,
-0.6217408180236816,
1.0545248985290527,
0.7852839231491089,
0.8895999193191528,
0.17373211681842804,
0.24436058104038239,
0.3819495737552643,
-0.42601558566093445,
-1.092199444770813,
-0.26906782388687134,
-1.0757273435592651,
-2.5266270637512207,
0.37727272510528564,
-0.18500027060508728,
-1.4026498794555664,
0.07881521433591843,
-1.0611692667007446,
1.0458030700683594,
-0.5773220062255859,
-1.1405603885650635,
-1.4439078569412231,
0.21610723435878754,
-0.0035534691996872425,
0.8791910409927368,
-1.6585475206375122,
-0.1971995085477829,
1.2269518375396729,
0.9060130715370178,
-0.7073821425437927,
0.9742433428764343,
0.22939425706863403,
1.0474903583526611,
0.7783599495887756,
-0.3462286591529846,
0.5166594982147217,
-0.023816997185349464,
-1.3114570379257202,
0.5055352449417114,
1.2744219303131104,
0.1810510903596878,
1.464521884918213,
-0.5142164826393127,
-0.0740513727068901,
0.4136642813682556,
-0.5035879611968994,
-0.4333741068840027,
-0.48563313484191895,
0.577750563621521,
0.0037860963493585587,
-0.8908194303512573,
-0.006730595137923956,
0.06933529675006866,
-0.24579617381095886,
0.15225788950920105,
-1.513261318206787,
-0.1730610728263855,
-0.3317522406578064,
-0.5933164358139038,
-1.1877479553222656,
-0.15910027921199799,
1.344093680381775,
-0.6787469983100891,
-0.23009413480758667,
0.5877452492713928,
0.34264659881591797,
0.5027912855148315,
0.6106637716293335,
-0.7018746733665466,
-0.32449817657470703,
-0.16287794709205627,
-0.38122275471687317,
0.29338425397872925,
1.4310283660888672,
-0.09995400160551071,
-1.0302542448043823,
0.6759065985679626,
-0.3696446120738983,
0.11928727477788925,
1.8796970844268799,
0.0032298648729920387,
-0.8382757306098938,
0.2579130232334137,
-0.731110692024231,
1.9820353984832764,
1.6909674406051636,
1.3109478950500488,
-0.2079307585954666,
-0.9382466077804565,
0.6484934687614441,
-0.36321312189102173,
-0.3855263590812683,
0.7931091785430908,
0.434207022190094,
-0.21879246830940247,
-1.4250761270523071,
0.7810091972351074,
1.2220083475112915,
-0.8701730966567993,
-0.8362335562705994,
0.2040329873561859,
-0.7865044474601746,
1.2100863456726074,
0.5704458951950073,
0.3885285556316376,
0.26488766074180603,
1.6749430894851685,
0.7839793562889099,
-0.4830368757247925,
0.5305950045585632,
0.5899040699005127,
-0.2549073398113251,
-2.117297649383545,
-1.2228984832763672,
0.2386598438024521,
-0.5105786919593811,
-1.6498724222183228,
1.3856914043426514,
-1.1283546686172485,
-0.9055264592170715,
0.5615368485450745,
0.19742968678474426,
1.441979169845581,
0.47002822160720825,
1.498322606086731,
1.998225212097168,
0.8818400502204895,
0.5101339817047119,
1.26248300075531,
-0.1928892582654953,
-0.4471021890640259,
1.703553318977356,
-0.40576809644699097,
0.49370303750038147,
1.1481244564056396,
-0.34237027168273926,
-1.1551082134246826,
-0.7309965491294861,
-1.2617107629776,
-0.638624906539917,
1.1259101629257202,
0.08125753700733185,
-1.114267110824585,
0.2880176603794098,
1.5262247323989868,
0.02963348478078842,
-0.4066013991832733,
0.6983596086502075,
0.3855864703655243,
-0.8493353724479675,
-0.09340010583400726,
-0.9615633487701416,
0.5154450535774231,
-0.2743864357471466,
-0.3399408161640167,
0.386542946100235,
0.47912752628326416,
1.3820343017578125,
0.00368392001837492,
0.17814098298549652,
1.106298804283142,
-1.4593685865402222,
1.4869871139526367,
-0.7667415738105774,
0.3007473647594452,
-2.322366237640381,
1.3242570161819458,
-0.7571386694908142,
1.9956679344177246,
-2.651571750640869,
0.4268435835838318,
-0.5761978626251221,
-0.4257076680660248,
0.28473302721977234,
-0.30411839485168457,
0.09652189165353775,
-0.056351952254772186,
-1.1823700666427612,
-0.030381660908460617,
-0.67929607629776,
0.48431849479675293,
1.2265324592590332,
1.3401774168014526,
-1.0505659580230713,
-0.24285544455051422,
-1.713810682296753,
-0.14679966866970062,
-0.7274350523948669,
0.2961518168449402,
-1.9785172939300537,
-0.19305777549743652,
-1.7888380289077759,
-2.335594415664673,
-1.2202625274658203,
-0.8405134677886963,
1.1834405660629272,
0.09546074271202087,
-0.9177148938179016,
1.3848637342453003,
-0.32166236639022827,
-1.8208314180374146,
1.144755482673645,
-2.1944212913513184
] |
https://github.com/huggingface/datasets/issues/5284 | Features of IterableDataset set to None by remove column | Still facing the same issue though:
```
from datasets import IterableDatasetDict, load_dataset
raw_datasets = vectorized_datasets = IterableDatasetDict()
raw_datasets["train"] = load_dataset("asennoussi/private", split="train", use_auth_token=True, streaming=True)
raw_datasets["test"] = load_dataset("asennoussi/private", split="test", use_auth_token=True, streaming=True)
print("Original features: ", raw_datasets['train'].features.keys())
...
def prepare_dataset(batch):
# load and (possibly) resample audio datato 16kHz
audio = batch["audio"]
# compute log-Mel input features from input audio array
batch["input_features"] = processor.feature_extractor(audio["array"], sampling_rate=audio["sampling_rate"]).input_features[0]
# compute input length of audio sample in seconds
batch["input_length"] = len(audio["array"]) / audio["sampling_rate"]
# optional pre-processing steps
transcription = batch["sentence"]
# encode target text to label ids
batch["labels"] = processor.tokenizer(transcription).input_ids
batch["labels_length"] = len(batch["labels"])
return batch
...
vectorized_datasets = vectorized_datasets.remove_columns(['input_length', 'labels_length']+list(next(iter(raw_datasets.values())).features))
print("Processed features: ", vectorized_datasets['train'].features)
print("First sample:", next(iter(vectorized_datasets['train'])))
```
Output:
```
Original features: dict_keys(['path', 'audio', 'sentence'])
Processed features: None
``` | ### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq | 399 | 120 | Features of IterableDataset set to None by remove column
### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq
Still facing the same issue though:
```
from datasets import IterableDatasetDict, load_dataset
raw_datasets = vectorized_datasets = IterableDatasetDict()
raw_datasets["train"] = load_dataset("asennoussi/private", split="train", use_auth_token=True, streaming=True)
raw_datasets["test"] = load_dataset("asennoussi/private", split="test", use_auth_token=True, streaming=True)
print("Original features: ", raw_datasets['train'].features.keys())
...
def prepare_dataset(batch):
# load and (possibly) resample audio datato 16kHz
audio = batch["audio"]
# compute log-Mel input features from input audio array
batch["input_features"] = processor.feature_extractor(audio["array"], sampling_rate=audio["sampling_rate"]).input_features[0]
# compute input length of audio sample in seconds
batch["input_length"] = len(audio["array"]) / audio["sampling_rate"]
# optional pre-processing steps
transcription = batch["sentence"]
# encode target text to label ids
batch["labels"] = processor.tokenizer(transcription).input_ids
batch["labels_length"] = len(batch["labels"])
return batch
...
vectorized_datasets = vectorized_datasets.remove_columns(['input_length', 'labels_length']+list(next(iter(raw_datasets.values())).features))
print("Processed features: ", vectorized_datasets['train'].features)
print("First sample:", next(iter(vectorized_datasets['train'])))
```
Output:
```
Original features: dict_keys(['path', 'audio', 'sentence'])
Processed features: None
``` | [
-1.1740634441375732,
-0.986666202545166,
-0.724602222442627,
1.5060685873031616,
-0.16580796241760254,
-1.1591317653656006,
0.15898366272449493,
-0.9965685606002808,
1.6621525287628174,
-0.7151062488555908,
0.23000434041023254,
-1.7126665115356445,
-0.02927146479487419,
-0.7022446990013123,
-0.7006533741950989,
-0.7825727462768555,
-0.44418010115623474,
-0.6750337481498718,
1.0712870359420776,
2.4491422176361084,
1.126986026763916,
-1.3972970247268677,
2.685581922531128,
0.7613965272903442,
-0.12701305747032166,
-1.0008825063705444,
0.5279032588005066,
-0.020517751574516296,
-1.3073084354400635,
-0.42334243655204773,
-0.9414310455322266,
-0.07282167673110962,
-0.5671327710151672,
-0.5041792392730713,
-0.025721069425344467,
0.4836001694202423,
-0.2883168160915375,
-0.5188636779785156,
-0.5447405576705933,
-0.7822561860084534,
0.42035073041915894,
-0.4502526521682739,
0.9208778738975525,
-0.29555532336235046,
1.740590214729309,
-0.4802614450454712,
0.45731407403945923,
0.6671180725097656,
1.34443998336792,
0.20132403075695038,
0.030259549617767334,
0.41033735871315,
0.39441317319869995,
-0.0029080482199788094,
0.5537984371185303,
1.1025899648666382,
0.6618925333023071,
0.36606088280677795,
0.7998780012130737,
-2.3302223682403564,
1.2639623880386353,
-1.031832218170166,
0.34414738416671753,
1.4194467067718506,
-0.8958433866500854,
0.4459843039512634,
-1.7529118061065674,
-0.007573788054287434,
0.5610712170600891,
-2.1671433448791504,
0.3541838228702545,
-1.2952206134796143,
-0.47434526681900024,
0.9894115328788757,
0.4395764470100403,
-1.2181364297866821,
0.07624826580286026,
-0.40268027782440186,
0.9985519051551819,
0.3970577120780945,
1.0239136219024658,
-1.6703805923461914,
-0.04444468393921852,
-0.2624271512031555,
0.09642571955919266,
-1.1816489696502686,
-1.5338526964187622,
0.5620894432067871,
0.6283164024353027,
0.6010218262672424,
-0.15023596584796906,
0.9470357298851013,
-1.0917648077011108,
0.7073898911476135,
-1.0668425559997559,
-1.7771267890930176,
-1.3901079893112183,
-2.2986836433410645,
-2.224368095397949,
0.7559497356414795,
-0.3860224187374115,
-0.49577969312667847,
2.041194438934326,
-0.9477006196975708,
-1.703643798828125,
1.2458834648132324,
0.3050755560398102,
-0.009852706454694271,
2.3928639888763428,
0.20134879648685455,
-0.7178375124931335,
0.5246604681015015,
-0.8768110275268555,
0.7294706702232361,
-0.41770586371421814,
1.361526370048523,
0.3342323899269104,
-0.961638867855072,
1.6295228004455566,
-0.40626806020736694,
0.575508177280426,
-0.6553776860237122,
-0.4834022521972656,
-0.7370169758796692,
0.3387547433376312,
1.8843703269958496,
-0.20112334191799164,
1.4273878335952759,
-0.2915476858615875,
-1.5425004959106445,
-1.5800426006317139,
0.8945232033729553,
0.4263899028301239,
-0.7969486117362976,
0.041500240564346313,
-0.3811860978603363,
0.17679442465305328,
-0.11817335337400436,
1.1077804565429688,
1.302406907081604,
0.6923899054527283,
-0.3055030107498169,
-0.9190441370010376,
0.18349774181842804,
-0.0732884332537651,
-0.7539286017417908,
-1.766400694847107,
-0.3068983256816864,
0.09623584151268005,
0.6425536274909973,
-1.2173820734024048,
1.6314822435379028,
0.888975203037262,
1.9507960081100464,
1.0327134132385254,
-0.4389415681362152,
1.5339652299880981,
0.18591564893722534,
1.864121437072754,
-0.5879107713699341,
0.6467631459236145,
-0.36720311641693115,
-1.1390960216522217,
0.8660203218460083,
-0.2920052707195282,
-2.054614305496216,
-0.6985463500022888,
-0.8338853120803833,
-0.27518439292907715,
-0.7877715229988098,
0.9064380526542664,
-0.3264041244983673,
-1.4582703113555908,
0.22949132323265076,
-0.8331968784332275,
0.25477561354637146,
-1.216995358467102,
0.35080358386039734,
0.7394037842750549,
-0.5631515979766846,
0.11184360831975937,
-0.25755876302719116,
-1.3025919198989868,
-0.4285743236541748,
0.4408356249332428,
1.798865556716919,
-0.7781767845153809,
0.8737159967422485,
1.0752553939819336,
-0.6607528328895569,
-0.030051197856664658,
0.25174376368522644,
-0.2575992941856384,
0.8487302660942078,
-1.0488066673278809,
-0.6335503458976746,
1.1974314451217651,
-0.2621570825576782,
-0.5677669644355774,
1.4236652851104736,
0.7370242476463318,
-1.020390510559082,
-0.23789538443088531,
-0.12291788309812546,
-0.8111027479171753,
0.03446507826447487,
-1.6387282609939575,
-0.13712634146213531,
0.45346108078956604,
-1.5445802211761475,
-0.511365532875061,
-0.22956083714962006,
1.2745977640151978,
-0.08931765705347061,
1.3814016580581665,
-0.34371238946914673,
-0.1811835616827011,
-0.3242795467376709,
-0.43145430088043213,
0.17091530561447144,
-0.27696147561073303,
-0.5547698736190796,
0.16688266396522522,
-0.7897278070449829,
0.3840920627117157,
1.4557623863220215,
0.34986594319343567,
0.03164688125252724,
0.5524382591247559,
1.0789194107055664,
0.4136938154697418,
0.01859385520219803,
-0.8538756966590881,
-1.5574651956558228,
2.004110336303711,
-1.5403445959091187,
1.9855172634124756,
0.6471446752548218,
0.004418067634105682,
-1.762105941772461,
-1.9000847339630127,
1.3794058561325073,
1.0739269256591797,
2.281036138534546,
0.5556668043136597,
0.4193519949913025,
-0.8817763328552246,
-0.7039327025413513,
0.2391435205936432,
-0.9229901432991028,
-0.6900538206100464,
0.14477819204330444,
2.4524648189544678,
1.7735214233398438,
-0.391728013753891,
-0.1463700383901596,
-1.0272901058197021,
1.472538709640503,
-0.22413264214992523,
0.296032577753067,
1.9633708000183105,
-0.19710709154605865,
-1.0477186441421509,
1.3101067543029785,
-2.430807590484619,
0.21800540387630463,
1.9894654750823975,
0.25136351585388184,
0.12834864854812622,
-1.3406041860580444,
-0.6989707946777344,
-0.2523651719093323,
-0.3618276119232178,
-1.2168259620666504,
0.5204461216926575,
-0.19417671859264374,
-0.7570129036903381,
-1.4673807621002197,
0.2007729858160019,
-1.1301296949386597,
-1.6235263347625732,
0.19802169501781464,
1.9439700841903687,
2.0469813346862793,
-0.7388483881950378,
1.5983428955078125,
-0.20277033746242523,
0.2316572219133377,
1.25314462184906,
1.2497632503509521,
3.0391342639923096,
1.9332236051559448,
-1.2589603662490845,
0.5884714722633362,
-0.10421610623598099,
-0.4660125970840454,
1.128513216972351,
-1.22151780128479,
1.261224389076233,
-0.1223948746919632,
-1.1922967433929443,
-1.1751385927200317,
0.8911329507827759,
0.4807963967323303,
0.018271759152412415,
-0.4794355034828186,
1.0946100950241089,
-0.017145587131381035,
1.300018072128296,
0.6534950733184814,
-0.3251863121986389,
0.5727750062942505,
-0.3684099316596985,
-0.4896842837333679,
1.5210942029953003,
0.16602595150470734,
-1.4960638284683228,
-2.252255439758301,
-0.23709633946418762,
-0.8344295024871826,
0.02612973004579544,
-0.6469669342041016,
-1.0421806573867798,
1.6097761392593384,
0.3150186836719513,
-1.106411337852478,
-0.25407296419143677,
-0.28113439679145813,
-0.4653162360191345,
2.7521893978118896,
-1.3727673292160034,
-0.369506299495697,
-0.9822364449501038,
-0.6867644190788269,
1.6629829406738281,
-1.140742540359497,
-0.1680440604686737,
-1.047851324081421,
-0.5585007667541504,
-1.2625632286071777,
-0.5022638440132141,
-0.01261946652084589,
-0.9607892036437988,
0.9490216374397278,
0.24997656047344208,
-1.273635745048523,
-0.30040493607521057,
-1.010167121887207,
0.9102311730384827,
-0.20412032306194305,
0.13574881851673126,
1.8789029121398926,
0.3868274986743927,
-0.30071595311164856,
0.8381085395812988,
1.1608433723449707,
0.6595677733421326,
-0.6416675448417664,
0.20485641062259674,
-0.622679591178894,
0.4078461229801178,
-1.2567288875579834,
0.3002992570400238,
-2.8814287185668945,
0.5772916078567505,
-0.04750595986843109,
-0.07260485738515854,
-0.014310870319604874,
-1.3685790300369263,
1.1411206722259521,
2.5246238708496094,
-1.2405511140823364,
0.540179431438446,
0.31308960914611816,
1.3201801776885986,
-1.6488773822784424,
0.30366477370262146,
-0.43925151228904724,
2.146209716796875,
0.11532788723707199,
1.1828489303588867,
-0.4796656668186188,
-2.405769109725952,
0.5725910663604736,
-1.285487413406372,
-1.0892844200134277,
0.5760021805763245,
-0.8826748132705688,
0.17135070264339447,
-1.4390827417373657,
-0.25266918540000916,
-0.8373715281486511,
-1.212345838546753,
0.6514226794242859,
0.14764532446861267,
0.37637996673583984,
-0.5833077430725098,
0.37175679206848145,
-2.2661848068237305,
-1.437279462814331,
-0.2414645552635193,
-0.881189227104187,
0.5709286332130432,
-0.40921708941459656,
0.7099315524101257,
-0.19441565871238708,
-0.0830283835530281,
0.2884077727794647,
1.490281105041504,
3.430873394012451,
0.1405719816684723,
0.3486906588077545,
-0.191218763589859,
-0.962834358215332,
1.4740816354751587,
0.9456469416618347,
-0.09642041474580765,
-0.5491443872451782,
-1.0648458003997803,
1.339535117149353,
2.0104949474334717,
1.0104788541793823,
0.014308185316622257,
-0.7778764963150024,
-0.7166679501533508,
-0.0013722144067287445,
0.21560192108154297,
0.4618178606033325,
0.8817300200462341,
0.11114297062158585,
0.038151782006025314,
1.4403002262115479,
1.1349486112594604,
-0.36639270186424255,
0.31349900364875793,
-0.8439265489578247,
-0.4549533426761627,
0.5096615552902222,
0.22128351032733917,
-0.09854587912559509,
0.32620906829833984,
-1.0784913301467896,
-0.1932654231786728,
-0.38969483971595764,
-0.7888396382331848,
-0.7237638235092163,
-0.30670294165611267,
-0.405322790145874,
1.6498875617980957,
0.24833251535892487,
-0.6347332000732422,
-0.04334746301174164,
-0.682330846786499,
-0.07347244769334793,
-1.0291318893432617,
0.26515859365463257,
-0.1682129204273224,
-0.0963517352938652,
-0.1580209732055664,
1.7363427877426147,
-0.926306426525116,
-2.108243227005005,
0.08693306893110275,
0.2563703656196594,
-0.24405871331691742,
0.1650504767894745,
1.6397802829742432,
0.555199146270752,
1.4672791957855225,
1.3989925384521484,
0.9704632759094238,
-0.6554832458496094,
-1.369896411895752,
0.6247709393501282,
1.0219173431396484,
-1.3660075664520264,
0.7574595808982849,
0.002986043691635132,
-0.5812757015228271,
0.6140861511230469,
1.387833595275879,
0.45213639736175537,
-2.051330804824829,
0.8066007494926453,
-1.0934420824050903,
0.8830718398094177,
0.7621008157730103,
0.7252550721168518,
0.26766717433929443,
0.7512490749359131,
-1.3064016103744507,
-1.0745222568511963,
-0.7645248770713806,
-0.7171022891998291,
2.0211024284362793,
-0.31213074922561646,
0.566371500492096,
-0.13526730239391327,
-1.3239555358886719,
-0.030996102839708328,
0.6026800870895386,
0.3995935022830963,
-0.5054895281791687,
0.743327796459198,
-0.6708906888961792,
-1.1373894214630127,
-1.3377716541290283,
-0.5344031453132629,
-1.0233769416809082,
-0.9924033284187317,
0.9817649126052856,
0.8214259147644043,
0.367506742477417,
1.807085394859314,
0.682091236114502,
0.1905786097049713,
-2.5962562561035156,
0.8878418207168579,
0.339345782995224,
-0.15858958661556244,
0.747962236404419,
0.38450056314468384,
1.112421989440918,
-0.05916773900389671,
0.6365931034088135,
-2.456975221633911,
2.2702832221984863,
-0.21865874528884888,
0.7594698667526245,
-0.051954109221696854,
-0.013750312849879265,
1.040590524673462,
0.5211355090141296,
0.5294734239578247,
-0.9792267084121704,
0.6967198848724365,
-0.5824718475341797,
1.267713189125061,
0.9366497993469238,
-0.7415249347686768,
-0.0008157938718795776,
1.3940365314483643,
0.43769571185112,
-0.6509130597114563,
-0.983001708984375,
-0.9074679613113403,
0.9208577275276184,
1.7006614208221436,
-0.1653354912996292,
-0.002173737622797489,
0.8512538075447083,
0.6234742403030396,
-1.268680453300476,
-0.004062732215970755,
-0.6441185474395752,
-0.6026046872138977,
1.6840944290161133,
2.1201398372650146,
-0.25677773356437683,
-0.16135530173778534,
-0.6934025287628174,
-1.3219597339630127,
0.7064563035964966,
-0.008150614798069,
0.061984408646821976,
0.6571457386016846,
-0.6217408180236816,
1.0545248985290527,
0.7852839231491089,
0.8895999193191528,
0.17373211681842804,
0.24436058104038239,
0.3819495737552643,
-0.42601558566093445,
-1.092199444770813,
-0.26906782388687134,
-1.0757273435592651,
-2.5266270637512207,
0.37727272510528564,
-0.18500027060508728,
-1.4026498794555664,
0.07881521433591843,
-1.0611692667007446,
1.0458030700683594,
-0.5773220062255859,
-1.1405603885650635,
-1.4439078569412231,
0.21610723435878754,
-0.0035534691996872425,
0.8791910409927368,
-1.6585475206375122,
-0.1971995085477829,
1.2269518375396729,
0.9060130715370178,
-0.7073821425437927,
0.9742433428764343,
0.22939425706863403,
1.0474903583526611,
0.7783599495887756,
-0.3462286591529846,
0.5166594982147217,
-0.023816997185349464,
-1.3114570379257202,
0.5055352449417114,
1.2744219303131104,
0.1810510903596878,
1.464521884918213,
-0.5142164826393127,
-0.0740513727068901,
0.4136642813682556,
-0.5035879611968994,
-0.4333741068840027,
-0.48563313484191895,
0.577750563621521,
0.0037860963493585587,
-0.8908194303512573,
-0.006730595137923956,
0.06933529675006866,
-0.24579617381095886,
0.15225788950920105,
-1.513261318206787,
-0.1730610728263855,
-0.3317522406578064,
-0.5933164358139038,
-1.1877479553222656,
-0.15910027921199799,
1.344093680381775,
-0.6787469983100891,
-0.23009413480758667,
0.5877452492713928,
0.34264659881591797,
0.5027912855148315,
0.6106637716293335,
-0.7018746733665466,
-0.32449817657470703,
-0.16287794709205627,
-0.38122275471687317,
0.29338425397872925,
1.4310283660888672,
-0.09995400160551071,
-1.0302542448043823,
0.6759065985679626,
-0.3696446120738983,
0.11928727477788925,
1.8796970844268799,
0.0032298648729920387,
-0.8382757306098938,
0.2579130232334137,
-0.731110692024231,
1.9820353984832764,
1.6909674406051636,
1.3109478950500488,
-0.2079307585954666,
-0.9382466077804565,
0.6484934687614441,
-0.36321312189102173,
-0.3855263590812683,
0.7931091785430908,
0.434207022190094,
-0.21879246830940247,
-1.4250761270523071,
0.7810091972351074,
1.2220083475112915,
-0.8701730966567993,
-0.8362335562705994,
0.2040329873561859,
-0.7865044474601746,
1.2100863456726074,
0.5704458951950073,
0.3885285556316376,
0.26488766074180603,
1.6749430894851685,
0.7839793562889099,
-0.4830368757247925,
0.5305950045585632,
0.5899040699005127,
-0.2549073398113251,
-2.117297649383545,
-1.2228984832763672,
0.2386598438024521,
-0.5105786919593811,
-1.6498724222183228,
1.3856914043426514,
-1.1283546686172485,
-0.9055264592170715,
0.5615368485450745,
0.19742968678474426,
1.441979169845581,
0.47002822160720825,
1.498322606086731,
1.998225212097168,
0.8818400502204895,
0.5101339817047119,
1.26248300075531,
-0.1928892582654953,
-0.4471021890640259,
1.703553318977356,
-0.40576809644699097,
0.49370303750038147,
1.1481244564056396,
-0.34237027168273926,
-1.1551082134246826,
-0.7309965491294861,
-1.2617107629776,
-0.638624906539917,
1.1259101629257202,
0.08125753700733185,
-1.114267110824585,
0.2880176603794098,
1.5262247323989868,
0.02963348478078842,
-0.4066013991832733,
0.6983596086502075,
0.3855864703655243,
-0.8493353724479675,
-0.09340010583400726,
-0.9615633487701416,
0.5154450535774231,
-0.2743864357471466,
-0.3399408161640167,
0.386542946100235,
0.47912752628326416,
1.3820343017578125,
0.00368392001837492,
0.17814098298549652,
1.106298804283142,
-1.4593685865402222,
1.4869871139526367,
-0.7667415738105774,
0.3007473647594452,
-2.322366237640381,
1.3242570161819458,
-0.7571386694908142,
1.9956679344177246,
-2.651571750640869,
0.4268435835838318,
-0.5761978626251221,
-0.4257076680660248,
0.28473302721977234,
-0.30411839485168457,
0.09652189165353775,
-0.056351952254772186,
-1.1823700666427612,
-0.030381660908460617,
-0.67929607629776,
0.48431849479675293,
1.2265324592590332,
1.3401774168014526,
-1.0505659580230713,
-0.24285544455051422,
-1.713810682296753,
-0.14679966866970062,
-0.7274350523948669,
0.2961518168449402,
-1.9785172939300537,
-0.19305777549743652,
-1.7888380289077759,
-2.335594415664673,
-1.2202625274658203,
-0.8405134677886963,
1.1834405660629272,
0.09546074271202087,
-0.9177148938179016,
1.3848637342453003,
-0.32166236639022827,
-1.8208314180374146,
1.144755482673645,
-2.1944212913513184
] |
https://github.com/huggingface/datasets/issues/5284 | Features of IterableDataset set to None by remove column | Hmm weird, could you try to print
```python
print("Processed features: ", vectorized_datasets['train'].features)
```
again after iterating over the `vectorized_datasets`? In the code above, should be last line :) | ### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq | 399 | 28 | Features of IterableDataset set to None by remove column
### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq
Hmm weird, could you try to print
```python
print("Processed features: ", vectorized_datasets['train'].features)
```
again after iterating over the `vectorized_datasets`? In the code above, should be last line :) | [
-1.1740634441375732,
-0.986666202545166,
-0.724602222442627,
1.5060685873031616,
-0.16580796241760254,
-1.1591317653656006,
0.15898366272449493,
-0.9965685606002808,
1.6621525287628174,
-0.7151062488555908,
0.23000434041023254,
-1.7126665115356445,
-0.02927146479487419,
-0.7022446990013123,
-0.7006533741950989,
-0.7825727462768555,
-0.44418010115623474,
-0.6750337481498718,
1.0712870359420776,
2.4491422176361084,
1.126986026763916,
-1.3972970247268677,
2.685581922531128,
0.7613965272903442,
-0.12701305747032166,
-1.0008825063705444,
0.5279032588005066,
-0.020517751574516296,
-1.3073084354400635,
-0.42334243655204773,
-0.9414310455322266,
-0.07282167673110962,
-0.5671327710151672,
-0.5041792392730713,
-0.025721069425344467,
0.4836001694202423,
-0.2883168160915375,
-0.5188636779785156,
-0.5447405576705933,
-0.7822561860084534,
0.42035073041915894,
-0.4502526521682739,
0.9208778738975525,
-0.29555532336235046,
1.740590214729309,
-0.4802614450454712,
0.45731407403945923,
0.6671180725097656,
1.34443998336792,
0.20132403075695038,
0.030259549617767334,
0.41033735871315,
0.39441317319869995,
-0.0029080482199788094,
0.5537984371185303,
1.1025899648666382,
0.6618925333023071,
0.36606088280677795,
0.7998780012130737,
-2.3302223682403564,
1.2639623880386353,
-1.031832218170166,
0.34414738416671753,
1.4194467067718506,
-0.8958433866500854,
0.4459843039512634,
-1.7529118061065674,
-0.007573788054287434,
0.5610712170600891,
-2.1671433448791504,
0.3541838228702545,
-1.2952206134796143,
-0.47434526681900024,
0.9894115328788757,
0.4395764470100403,
-1.2181364297866821,
0.07624826580286026,
-0.40268027782440186,
0.9985519051551819,
0.3970577120780945,
1.0239136219024658,
-1.6703805923461914,
-0.04444468393921852,
-0.2624271512031555,
0.09642571955919266,
-1.1816489696502686,
-1.5338526964187622,
0.5620894432067871,
0.6283164024353027,
0.6010218262672424,
-0.15023596584796906,
0.9470357298851013,
-1.0917648077011108,
0.7073898911476135,
-1.0668425559997559,
-1.7771267890930176,
-1.3901079893112183,
-2.2986836433410645,
-2.224368095397949,
0.7559497356414795,
-0.3860224187374115,
-0.49577969312667847,
2.041194438934326,
-0.9477006196975708,
-1.703643798828125,
1.2458834648132324,
0.3050755560398102,
-0.009852706454694271,
2.3928639888763428,
0.20134879648685455,
-0.7178375124931335,
0.5246604681015015,
-0.8768110275268555,
0.7294706702232361,
-0.41770586371421814,
1.361526370048523,
0.3342323899269104,
-0.961638867855072,
1.6295228004455566,
-0.40626806020736694,
0.575508177280426,
-0.6553776860237122,
-0.4834022521972656,
-0.7370169758796692,
0.3387547433376312,
1.8843703269958496,
-0.20112334191799164,
1.4273878335952759,
-0.2915476858615875,
-1.5425004959106445,
-1.5800426006317139,
0.8945232033729553,
0.4263899028301239,
-0.7969486117362976,
0.041500240564346313,
-0.3811860978603363,
0.17679442465305328,
-0.11817335337400436,
1.1077804565429688,
1.302406907081604,
0.6923899054527283,
-0.3055030107498169,
-0.9190441370010376,
0.18349774181842804,
-0.0732884332537651,
-0.7539286017417908,
-1.766400694847107,
-0.3068983256816864,
0.09623584151268005,
0.6425536274909973,
-1.2173820734024048,
1.6314822435379028,
0.888975203037262,
1.9507960081100464,
1.0327134132385254,
-0.4389415681362152,
1.5339652299880981,
0.18591564893722534,
1.864121437072754,
-0.5879107713699341,
0.6467631459236145,
-0.36720311641693115,
-1.1390960216522217,
0.8660203218460083,
-0.2920052707195282,
-2.054614305496216,
-0.6985463500022888,
-0.8338853120803833,
-0.27518439292907715,
-0.7877715229988098,
0.9064380526542664,
-0.3264041244983673,
-1.4582703113555908,
0.22949132323265076,
-0.8331968784332275,
0.25477561354637146,
-1.216995358467102,
0.35080358386039734,
0.7394037842750549,
-0.5631515979766846,
0.11184360831975937,
-0.25755876302719116,
-1.3025919198989868,
-0.4285743236541748,
0.4408356249332428,
1.798865556716919,
-0.7781767845153809,
0.8737159967422485,
1.0752553939819336,
-0.6607528328895569,
-0.030051197856664658,
0.25174376368522644,
-0.2575992941856384,
0.8487302660942078,
-1.0488066673278809,
-0.6335503458976746,
1.1974314451217651,
-0.2621570825576782,
-0.5677669644355774,
1.4236652851104736,
0.7370242476463318,
-1.020390510559082,
-0.23789538443088531,
-0.12291788309812546,
-0.8111027479171753,
0.03446507826447487,
-1.6387282609939575,
-0.13712634146213531,
0.45346108078956604,
-1.5445802211761475,
-0.511365532875061,
-0.22956083714962006,
1.2745977640151978,
-0.08931765705347061,
1.3814016580581665,
-0.34371238946914673,
-0.1811835616827011,
-0.3242795467376709,
-0.43145430088043213,
0.17091530561447144,
-0.27696147561073303,
-0.5547698736190796,
0.16688266396522522,
-0.7897278070449829,
0.3840920627117157,
1.4557623863220215,
0.34986594319343567,
0.03164688125252724,
0.5524382591247559,
1.0789194107055664,
0.4136938154697418,
0.01859385520219803,
-0.8538756966590881,
-1.5574651956558228,
2.004110336303711,
-1.5403445959091187,
1.9855172634124756,
0.6471446752548218,
0.004418067634105682,
-1.762105941772461,
-1.9000847339630127,
1.3794058561325073,
1.0739269256591797,
2.281036138534546,
0.5556668043136597,
0.4193519949913025,
-0.8817763328552246,
-0.7039327025413513,
0.2391435205936432,
-0.9229901432991028,
-0.6900538206100464,
0.14477819204330444,
2.4524648189544678,
1.7735214233398438,
-0.391728013753891,
-0.1463700383901596,
-1.0272901058197021,
1.472538709640503,
-0.22413264214992523,
0.296032577753067,
1.9633708000183105,
-0.19710709154605865,
-1.0477186441421509,
1.3101067543029785,
-2.430807590484619,
0.21800540387630463,
1.9894654750823975,
0.25136351585388184,
0.12834864854812622,
-1.3406041860580444,
-0.6989707946777344,
-0.2523651719093323,
-0.3618276119232178,
-1.2168259620666504,
0.5204461216926575,
-0.19417671859264374,
-0.7570129036903381,
-1.4673807621002197,
0.2007729858160019,
-1.1301296949386597,
-1.6235263347625732,
0.19802169501781464,
1.9439700841903687,
2.0469813346862793,
-0.7388483881950378,
1.5983428955078125,
-0.20277033746242523,
0.2316572219133377,
1.25314462184906,
1.2497632503509521,
3.0391342639923096,
1.9332236051559448,
-1.2589603662490845,
0.5884714722633362,
-0.10421610623598099,
-0.4660125970840454,
1.128513216972351,
-1.22151780128479,
1.261224389076233,
-0.1223948746919632,
-1.1922967433929443,
-1.1751385927200317,
0.8911329507827759,
0.4807963967323303,
0.018271759152412415,
-0.4794355034828186,
1.0946100950241089,
-0.017145587131381035,
1.300018072128296,
0.6534950733184814,
-0.3251863121986389,
0.5727750062942505,
-0.3684099316596985,
-0.4896842837333679,
1.5210942029953003,
0.16602595150470734,
-1.4960638284683228,
-2.252255439758301,
-0.23709633946418762,
-0.8344295024871826,
0.02612973004579544,
-0.6469669342041016,
-1.0421806573867798,
1.6097761392593384,
0.3150186836719513,
-1.106411337852478,
-0.25407296419143677,
-0.28113439679145813,
-0.4653162360191345,
2.7521893978118896,
-1.3727673292160034,
-0.369506299495697,
-0.9822364449501038,
-0.6867644190788269,
1.6629829406738281,
-1.140742540359497,
-0.1680440604686737,
-1.047851324081421,
-0.5585007667541504,
-1.2625632286071777,
-0.5022638440132141,
-0.01261946652084589,
-0.9607892036437988,
0.9490216374397278,
0.24997656047344208,
-1.273635745048523,
-0.30040493607521057,
-1.010167121887207,
0.9102311730384827,
-0.20412032306194305,
0.13574881851673126,
1.8789029121398926,
0.3868274986743927,
-0.30071595311164856,
0.8381085395812988,
1.1608433723449707,
0.6595677733421326,
-0.6416675448417664,
0.20485641062259674,
-0.622679591178894,
0.4078461229801178,
-1.2567288875579834,
0.3002992570400238,
-2.8814287185668945,
0.5772916078567505,
-0.04750595986843109,
-0.07260485738515854,
-0.014310870319604874,
-1.3685790300369263,
1.1411206722259521,
2.5246238708496094,
-1.2405511140823364,
0.540179431438446,
0.31308960914611816,
1.3201801776885986,
-1.6488773822784424,
0.30366477370262146,
-0.43925151228904724,
2.146209716796875,
0.11532788723707199,
1.1828489303588867,
-0.4796656668186188,
-2.405769109725952,
0.5725910663604736,
-1.285487413406372,
-1.0892844200134277,
0.5760021805763245,
-0.8826748132705688,
0.17135070264339447,
-1.4390827417373657,
-0.25266918540000916,
-0.8373715281486511,
-1.212345838546753,
0.6514226794242859,
0.14764532446861267,
0.37637996673583984,
-0.5833077430725098,
0.37175679206848145,
-2.2661848068237305,
-1.437279462814331,
-0.2414645552635193,
-0.881189227104187,
0.5709286332130432,
-0.40921708941459656,
0.7099315524101257,
-0.19441565871238708,
-0.0830283835530281,
0.2884077727794647,
1.490281105041504,
3.430873394012451,
0.1405719816684723,
0.3486906588077545,
-0.191218763589859,
-0.962834358215332,
1.4740816354751587,
0.9456469416618347,
-0.09642041474580765,
-0.5491443872451782,
-1.0648458003997803,
1.339535117149353,
2.0104949474334717,
1.0104788541793823,
0.014308185316622257,
-0.7778764963150024,
-0.7166679501533508,
-0.0013722144067287445,
0.21560192108154297,
0.4618178606033325,
0.8817300200462341,
0.11114297062158585,
0.038151782006025314,
1.4403002262115479,
1.1349486112594604,
-0.36639270186424255,
0.31349900364875793,
-0.8439265489578247,
-0.4549533426761627,
0.5096615552902222,
0.22128351032733917,
-0.09854587912559509,
0.32620906829833984,
-1.0784913301467896,
-0.1932654231786728,
-0.38969483971595764,
-0.7888396382331848,
-0.7237638235092163,
-0.30670294165611267,
-0.405322790145874,
1.6498875617980957,
0.24833251535892487,
-0.6347332000732422,
-0.04334746301174164,
-0.682330846786499,
-0.07347244769334793,
-1.0291318893432617,
0.26515859365463257,
-0.1682129204273224,
-0.0963517352938652,
-0.1580209732055664,
1.7363427877426147,
-0.926306426525116,
-2.108243227005005,
0.08693306893110275,
0.2563703656196594,
-0.24405871331691742,
0.1650504767894745,
1.6397802829742432,
0.555199146270752,
1.4672791957855225,
1.3989925384521484,
0.9704632759094238,
-0.6554832458496094,
-1.369896411895752,
0.6247709393501282,
1.0219173431396484,
-1.3660075664520264,
0.7574595808982849,
0.002986043691635132,
-0.5812757015228271,
0.6140861511230469,
1.387833595275879,
0.45213639736175537,
-2.051330804824829,
0.8066007494926453,
-1.0934420824050903,
0.8830718398094177,
0.7621008157730103,
0.7252550721168518,
0.26766717433929443,
0.7512490749359131,
-1.3064016103744507,
-1.0745222568511963,
-0.7645248770713806,
-0.7171022891998291,
2.0211024284362793,
-0.31213074922561646,
0.566371500492096,
-0.13526730239391327,
-1.3239555358886719,
-0.030996102839708328,
0.6026800870895386,
0.3995935022830963,
-0.5054895281791687,
0.743327796459198,
-0.6708906888961792,
-1.1373894214630127,
-1.3377716541290283,
-0.5344031453132629,
-1.0233769416809082,
-0.9924033284187317,
0.9817649126052856,
0.8214259147644043,
0.367506742477417,
1.807085394859314,
0.682091236114502,
0.1905786097049713,
-2.5962562561035156,
0.8878418207168579,
0.339345782995224,
-0.15858958661556244,
0.747962236404419,
0.38450056314468384,
1.112421989440918,
-0.05916773900389671,
0.6365931034088135,
-2.456975221633911,
2.2702832221984863,
-0.21865874528884888,
0.7594698667526245,
-0.051954109221696854,
-0.013750312849879265,
1.040590524673462,
0.5211355090141296,
0.5294734239578247,
-0.9792267084121704,
0.6967198848724365,
-0.5824718475341797,
1.267713189125061,
0.9366497993469238,
-0.7415249347686768,
-0.0008157938718795776,
1.3940365314483643,
0.43769571185112,
-0.6509130597114563,
-0.983001708984375,
-0.9074679613113403,
0.9208577275276184,
1.7006614208221436,
-0.1653354912996292,
-0.002173737622797489,
0.8512538075447083,
0.6234742403030396,
-1.268680453300476,
-0.004062732215970755,
-0.6441185474395752,
-0.6026046872138977,
1.6840944290161133,
2.1201398372650146,
-0.25677773356437683,
-0.16135530173778534,
-0.6934025287628174,
-1.3219597339630127,
0.7064563035964966,
-0.008150614798069,
0.061984408646821976,
0.6571457386016846,
-0.6217408180236816,
1.0545248985290527,
0.7852839231491089,
0.8895999193191528,
0.17373211681842804,
0.24436058104038239,
0.3819495737552643,
-0.42601558566093445,
-1.092199444770813,
-0.26906782388687134,
-1.0757273435592651,
-2.5266270637512207,
0.37727272510528564,
-0.18500027060508728,
-1.4026498794555664,
0.07881521433591843,
-1.0611692667007446,
1.0458030700683594,
-0.5773220062255859,
-1.1405603885650635,
-1.4439078569412231,
0.21610723435878754,
-0.0035534691996872425,
0.8791910409927368,
-1.6585475206375122,
-0.1971995085477829,
1.2269518375396729,
0.9060130715370178,
-0.7073821425437927,
0.9742433428764343,
0.22939425706863403,
1.0474903583526611,
0.7783599495887756,
-0.3462286591529846,
0.5166594982147217,
-0.023816997185349464,
-1.3114570379257202,
0.5055352449417114,
1.2744219303131104,
0.1810510903596878,
1.464521884918213,
-0.5142164826393127,
-0.0740513727068901,
0.4136642813682556,
-0.5035879611968994,
-0.4333741068840027,
-0.48563313484191895,
0.577750563621521,
0.0037860963493585587,
-0.8908194303512573,
-0.006730595137923956,
0.06933529675006866,
-0.24579617381095886,
0.15225788950920105,
-1.513261318206787,
-0.1730610728263855,
-0.3317522406578064,
-0.5933164358139038,
-1.1877479553222656,
-0.15910027921199799,
1.344093680381775,
-0.6787469983100891,
-0.23009413480758667,
0.5877452492713928,
0.34264659881591797,
0.5027912855148315,
0.6106637716293335,
-0.7018746733665466,
-0.32449817657470703,
-0.16287794709205627,
-0.38122275471687317,
0.29338425397872925,
1.4310283660888672,
-0.09995400160551071,
-1.0302542448043823,
0.6759065985679626,
-0.3696446120738983,
0.11928727477788925,
1.8796970844268799,
0.0032298648729920387,
-0.8382757306098938,
0.2579130232334137,
-0.731110692024231,
1.9820353984832764,
1.6909674406051636,
1.3109478950500488,
-0.2079307585954666,
-0.9382466077804565,
0.6484934687614441,
-0.36321312189102173,
-0.3855263590812683,
0.7931091785430908,
0.434207022190094,
-0.21879246830940247,
-1.4250761270523071,
0.7810091972351074,
1.2220083475112915,
-0.8701730966567993,
-0.8362335562705994,
0.2040329873561859,
-0.7865044474601746,
1.2100863456726074,
0.5704458951950073,
0.3885285556316376,
0.26488766074180603,
1.6749430894851685,
0.7839793562889099,
-0.4830368757247925,
0.5305950045585632,
0.5899040699005127,
-0.2549073398113251,
-2.117297649383545,
-1.2228984832763672,
0.2386598438024521,
-0.5105786919593811,
-1.6498724222183228,
1.3856914043426514,
-1.1283546686172485,
-0.9055264592170715,
0.5615368485450745,
0.19742968678474426,
1.441979169845581,
0.47002822160720825,
1.498322606086731,
1.998225212097168,
0.8818400502204895,
0.5101339817047119,
1.26248300075531,
-0.1928892582654953,
-0.4471021890640259,
1.703553318977356,
-0.40576809644699097,
0.49370303750038147,
1.1481244564056396,
-0.34237027168273926,
-1.1551082134246826,
-0.7309965491294861,
-1.2617107629776,
-0.638624906539917,
1.1259101629257202,
0.08125753700733185,
-1.114267110824585,
0.2880176603794098,
1.5262247323989868,
0.02963348478078842,
-0.4066013991832733,
0.6983596086502075,
0.3855864703655243,
-0.8493353724479675,
-0.09340010583400726,
-0.9615633487701416,
0.5154450535774231,
-0.2743864357471466,
-0.3399408161640167,
0.386542946100235,
0.47912752628326416,
1.3820343017578125,
0.00368392001837492,
0.17814098298549652,
1.106298804283142,
-1.4593685865402222,
1.4869871139526367,
-0.7667415738105774,
0.3007473647594452,
-2.322366237640381,
1.3242570161819458,
-0.7571386694908142,
1.9956679344177246,
-2.651571750640869,
0.4268435835838318,
-0.5761978626251221,
-0.4257076680660248,
0.28473302721977234,
-0.30411839485168457,
0.09652189165353775,
-0.056351952254772186,
-1.1823700666427612,
-0.030381660908460617,
-0.67929607629776,
0.48431849479675293,
1.2265324592590332,
1.3401774168014526,
-1.0505659580230713,
-0.24285544455051422,
-1.713810682296753,
-0.14679966866970062,
-0.7274350523948669,
0.2961518168449402,
-1.9785172939300537,
-0.19305777549743652,
-1.7888380289077759,
-2.335594415664673,
-1.2202625274658203,
-0.8405134677886963,
1.1834405660629272,
0.09546074271202087,
-0.9177148938179016,
1.3848637342453003,
-0.32166236639022827,
-1.8208314180374146,
1.144755482673645,
-2.1944212913513184
] |
https://github.com/huggingface/datasets/issues/5284 | Features of IterableDataset set to None by remove column | Didn't seem to fix it:
```
Original features: dict_keys(['path', 'audio', 'sentence'])
Processed features: None
Processed features: None
``` | ### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq | 399 | 18 | Features of IterableDataset set to None by remove column
### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq
Didn't seem to fix it:
```
Original features: dict_keys(['path', 'audio', 'sentence'])
Processed features: None
Processed features: None
``` | [
-1.1740634441375732,
-0.986666202545166,
-0.724602222442627,
1.5060685873031616,
-0.16580796241760254,
-1.1591317653656006,
0.15898366272449493,
-0.9965685606002808,
1.6621525287628174,
-0.7151062488555908,
0.23000434041023254,
-1.7126665115356445,
-0.02927146479487419,
-0.7022446990013123,
-0.7006533741950989,
-0.7825727462768555,
-0.44418010115623474,
-0.6750337481498718,
1.0712870359420776,
2.4491422176361084,
1.126986026763916,
-1.3972970247268677,
2.685581922531128,
0.7613965272903442,
-0.12701305747032166,
-1.0008825063705444,
0.5279032588005066,
-0.020517751574516296,
-1.3073084354400635,
-0.42334243655204773,
-0.9414310455322266,
-0.07282167673110962,
-0.5671327710151672,
-0.5041792392730713,
-0.025721069425344467,
0.4836001694202423,
-0.2883168160915375,
-0.5188636779785156,
-0.5447405576705933,
-0.7822561860084534,
0.42035073041915894,
-0.4502526521682739,
0.9208778738975525,
-0.29555532336235046,
1.740590214729309,
-0.4802614450454712,
0.45731407403945923,
0.6671180725097656,
1.34443998336792,
0.20132403075695038,
0.030259549617767334,
0.41033735871315,
0.39441317319869995,
-0.0029080482199788094,
0.5537984371185303,
1.1025899648666382,
0.6618925333023071,
0.36606088280677795,
0.7998780012130737,
-2.3302223682403564,
1.2639623880386353,
-1.031832218170166,
0.34414738416671753,
1.4194467067718506,
-0.8958433866500854,
0.4459843039512634,
-1.7529118061065674,
-0.007573788054287434,
0.5610712170600891,
-2.1671433448791504,
0.3541838228702545,
-1.2952206134796143,
-0.47434526681900024,
0.9894115328788757,
0.4395764470100403,
-1.2181364297866821,
0.07624826580286026,
-0.40268027782440186,
0.9985519051551819,
0.3970577120780945,
1.0239136219024658,
-1.6703805923461914,
-0.04444468393921852,
-0.2624271512031555,
0.09642571955919266,
-1.1816489696502686,
-1.5338526964187622,
0.5620894432067871,
0.6283164024353027,
0.6010218262672424,
-0.15023596584796906,
0.9470357298851013,
-1.0917648077011108,
0.7073898911476135,
-1.0668425559997559,
-1.7771267890930176,
-1.3901079893112183,
-2.2986836433410645,
-2.224368095397949,
0.7559497356414795,
-0.3860224187374115,
-0.49577969312667847,
2.041194438934326,
-0.9477006196975708,
-1.703643798828125,
1.2458834648132324,
0.3050755560398102,
-0.009852706454694271,
2.3928639888763428,
0.20134879648685455,
-0.7178375124931335,
0.5246604681015015,
-0.8768110275268555,
0.7294706702232361,
-0.41770586371421814,
1.361526370048523,
0.3342323899269104,
-0.961638867855072,
1.6295228004455566,
-0.40626806020736694,
0.575508177280426,
-0.6553776860237122,
-0.4834022521972656,
-0.7370169758796692,
0.3387547433376312,
1.8843703269958496,
-0.20112334191799164,
1.4273878335952759,
-0.2915476858615875,
-1.5425004959106445,
-1.5800426006317139,
0.8945232033729553,
0.4263899028301239,
-0.7969486117362976,
0.041500240564346313,
-0.3811860978603363,
0.17679442465305328,
-0.11817335337400436,
1.1077804565429688,
1.302406907081604,
0.6923899054527283,
-0.3055030107498169,
-0.9190441370010376,
0.18349774181842804,
-0.0732884332537651,
-0.7539286017417908,
-1.766400694847107,
-0.3068983256816864,
0.09623584151268005,
0.6425536274909973,
-1.2173820734024048,
1.6314822435379028,
0.888975203037262,
1.9507960081100464,
1.0327134132385254,
-0.4389415681362152,
1.5339652299880981,
0.18591564893722534,
1.864121437072754,
-0.5879107713699341,
0.6467631459236145,
-0.36720311641693115,
-1.1390960216522217,
0.8660203218460083,
-0.2920052707195282,
-2.054614305496216,
-0.6985463500022888,
-0.8338853120803833,
-0.27518439292907715,
-0.7877715229988098,
0.9064380526542664,
-0.3264041244983673,
-1.4582703113555908,
0.22949132323265076,
-0.8331968784332275,
0.25477561354637146,
-1.216995358467102,
0.35080358386039734,
0.7394037842750549,
-0.5631515979766846,
0.11184360831975937,
-0.25755876302719116,
-1.3025919198989868,
-0.4285743236541748,
0.4408356249332428,
1.798865556716919,
-0.7781767845153809,
0.8737159967422485,
1.0752553939819336,
-0.6607528328895569,
-0.030051197856664658,
0.25174376368522644,
-0.2575992941856384,
0.8487302660942078,
-1.0488066673278809,
-0.6335503458976746,
1.1974314451217651,
-0.2621570825576782,
-0.5677669644355774,
1.4236652851104736,
0.7370242476463318,
-1.020390510559082,
-0.23789538443088531,
-0.12291788309812546,
-0.8111027479171753,
0.03446507826447487,
-1.6387282609939575,
-0.13712634146213531,
0.45346108078956604,
-1.5445802211761475,
-0.511365532875061,
-0.22956083714962006,
1.2745977640151978,
-0.08931765705347061,
1.3814016580581665,
-0.34371238946914673,
-0.1811835616827011,
-0.3242795467376709,
-0.43145430088043213,
0.17091530561447144,
-0.27696147561073303,
-0.5547698736190796,
0.16688266396522522,
-0.7897278070449829,
0.3840920627117157,
1.4557623863220215,
0.34986594319343567,
0.03164688125252724,
0.5524382591247559,
1.0789194107055664,
0.4136938154697418,
0.01859385520219803,
-0.8538756966590881,
-1.5574651956558228,
2.004110336303711,
-1.5403445959091187,
1.9855172634124756,
0.6471446752548218,
0.004418067634105682,
-1.762105941772461,
-1.9000847339630127,
1.3794058561325073,
1.0739269256591797,
2.281036138534546,
0.5556668043136597,
0.4193519949913025,
-0.8817763328552246,
-0.7039327025413513,
0.2391435205936432,
-0.9229901432991028,
-0.6900538206100464,
0.14477819204330444,
2.4524648189544678,
1.7735214233398438,
-0.391728013753891,
-0.1463700383901596,
-1.0272901058197021,
1.472538709640503,
-0.22413264214992523,
0.296032577753067,
1.9633708000183105,
-0.19710709154605865,
-1.0477186441421509,
1.3101067543029785,
-2.430807590484619,
0.21800540387630463,
1.9894654750823975,
0.25136351585388184,
0.12834864854812622,
-1.3406041860580444,
-0.6989707946777344,
-0.2523651719093323,
-0.3618276119232178,
-1.2168259620666504,
0.5204461216926575,
-0.19417671859264374,
-0.7570129036903381,
-1.4673807621002197,
0.2007729858160019,
-1.1301296949386597,
-1.6235263347625732,
0.19802169501781464,
1.9439700841903687,
2.0469813346862793,
-0.7388483881950378,
1.5983428955078125,
-0.20277033746242523,
0.2316572219133377,
1.25314462184906,
1.2497632503509521,
3.0391342639923096,
1.9332236051559448,
-1.2589603662490845,
0.5884714722633362,
-0.10421610623598099,
-0.4660125970840454,
1.128513216972351,
-1.22151780128479,
1.261224389076233,
-0.1223948746919632,
-1.1922967433929443,
-1.1751385927200317,
0.8911329507827759,
0.4807963967323303,
0.018271759152412415,
-0.4794355034828186,
1.0946100950241089,
-0.017145587131381035,
1.300018072128296,
0.6534950733184814,
-0.3251863121986389,
0.5727750062942505,
-0.3684099316596985,
-0.4896842837333679,
1.5210942029953003,
0.16602595150470734,
-1.4960638284683228,
-2.252255439758301,
-0.23709633946418762,
-0.8344295024871826,
0.02612973004579544,
-0.6469669342041016,
-1.0421806573867798,
1.6097761392593384,
0.3150186836719513,
-1.106411337852478,
-0.25407296419143677,
-0.28113439679145813,
-0.4653162360191345,
2.7521893978118896,
-1.3727673292160034,
-0.369506299495697,
-0.9822364449501038,
-0.6867644190788269,
1.6629829406738281,
-1.140742540359497,
-0.1680440604686737,
-1.047851324081421,
-0.5585007667541504,
-1.2625632286071777,
-0.5022638440132141,
-0.01261946652084589,
-0.9607892036437988,
0.9490216374397278,
0.24997656047344208,
-1.273635745048523,
-0.30040493607521057,
-1.010167121887207,
0.9102311730384827,
-0.20412032306194305,
0.13574881851673126,
1.8789029121398926,
0.3868274986743927,
-0.30071595311164856,
0.8381085395812988,
1.1608433723449707,
0.6595677733421326,
-0.6416675448417664,
0.20485641062259674,
-0.622679591178894,
0.4078461229801178,
-1.2567288875579834,
0.3002992570400238,
-2.8814287185668945,
0.5772916078567505,
-0.04750595986843109,
-0.07260485738515854,
-0.014310870319604874,
-1.3685790300369263,
1.1411206722259521,
2.5246238708496094,
-1.2405511140823364,
0.540179431438446,
0.31308960914611816,
1.3201801776885986,
-1.6488773822784424,
0.30366477370262146,
-0.43925151228904724,
2.146209716796875,
0.11532788723707199,
1.1828489303588867,
-0.4796656668186188,
-2.405769109725952,
0.5725910663604736,
-1.285487413406372,
-1.0892844200134277,
0.5760021805763245,
-0.8826748132705688,
0.17135070264339447,
-1.4390827417373657,
-0.25266918540000916,
-0.8373715281486511,
-1.212345838546753,
0.6514226794242859,
0.14764532446861267,
0.37637996673583984,
-0.5833077430725098,
0.37175679206848145,
-2.2661848068237305,
-1.437279462814331,
-0.2414645552635193,
-0.881189227104187,
0.5709286332130432,
-0.40921708941459656,
0.7099315524101257,
-0.19441565871238708,
-0.0830283835530281,
0.2884077727794647,
1.490281105041504,
3.430873394012451,
0.1405719816684723,
0.3486906588077545,
-0.191218763589859,
-0.962834358215332,
1.4740816354751587,
0.9456469416618347,
-0.09642041474580765,
-0.5491443872451782,
-1.0648458003997803,
1.339535117149353,
2.0104949474334717,
1.0104788541793823,
0.014308185316622257,
-0.7778764963150024,
-0.7166679501533508,
-0.0013722144067287445,
0.21560192108154297,
0.4618178606033325,
0.8817300200462341,
0.11114297062158585,
0.038151782006025314,
1.4403002262115479,
1.1349486112594604,
-0.36639270186424255,
0.31349900364875793,
-0.8439265489578247,
-0.4549533426761627,
0.5096615552902222,
0.22128351032733917,
-0.09854587912559509,
0.32620906829833984,
-1.0784913301467896,
-0.1932654231786728,
-0.38969483971595764,
-0.7888396382331848,
-0.7237638235092163,
-0.30670294165611267,
-0.405322790145874,
1.6498875617980957,
0.24833251535892487,
-0.6347332000732422,
-0.04334746301174164,
-0.682330846786499,
-0.07347244769334793,
-1.0291318893432617,
0.26515859365463257,
-0.1682129204273224,
-0.0963517352938652,
-0.1580209732055664,
1.7363427877426147,
-0.926306426525116,
-2.108243227005005,
0.08693306893110275,
0.2563703656196594,
-0.24405871331691742,
0.1650504767894745,
1.6397802829742432,
0.555199146270752,
1.4672791957855225,
1.3989925384521484,
0.9704632759094238,
-0.6554832458496094,
-1.369896411895752,
0.6247709393501282,
1.0219173431396484,
-1.3660075664520264,
0.7574595808982849,
0.002986043691635132,
-0.5812757015228271,
0.6140861511230469,
1.387833595275879,
0.45213639736175537,
-2.051330804824829,
0.8066007494926453,
-1.0934420824050903,
0.8830718398094177,
0.7621008157730103,
0.7252550721168518,
0.26766717433929443,
0.7512490749359131,
-1.3064016103744507,
-1.0745222568511963,
-0.7645248770713806,
-0.7171022891998291,
2.0211024284362793,
-0.31213074922561646,
0.566371500492096,
-0.13526730239391327,
-1.3239555358886719,
-0.030996102839708328,
0.6026800870895386,
0.3995935022830963,
-0.5054895281791687,
0.743327796459198,
-0.6708906888961792,
-1.1373894214630127,
-1.3377716541290283,
-0.5344031453132629,
-1.0233769416809082,
-0.9924033284187317,
0.9817649126052856,
0.8214259147644043,
0.367506742477417,
1.807085394859314,
0.682091236114502,
0.1905786097049713,
-2.5962562561035156,
0.8878418207168579,
0.339345782995224,
-0.15858958661556244,
0.747962236404419,
0.38450056314468384,
1.112421989440918,
-0.05916773900389671,
0.6365931034088135,
-2.456975221633911,
2.2702832221984863,
-0.21865874528884888,
0.7594698667526245,
-0.051954109221696854,
-0.013750312849879265,
1.040590524673462,
0.5211355090141296,
0.5294734239578247,
-0.9792267084121704,
0.6967198848724365,
-0.5824718475341797,
1.267713189125061,
0.9366497993469238,
-0.7415249347686768,
-0.0008157938718795776,
1.3940365314483643,
0.43769571185112,
-0.6509130597114563,
-0.983001708984375,
-0.9074679613113403,
0.9208577275276184,
1.7006614208221436,
-0.1653354912996292,
-0.002173737622797489,
0.8512538075447083,
0.6234742403030396,
-1.268680453300476,
-0.004062732215970755,
-0.6441185474395752,
-0.6026046872138977,
1.6840944290161133,
2.1201398372650146,
-0.25677773356437683,
-0.16135530173778534,
-0.6934025287628174,
-1.3219597339630127,
0.7064563035964966,
-0.008150614798069,
0.061984408646821976,
0.6571457386016846,
-0.6217408180236816,
1.0545248985290527,
0.7852839231491089,
0.8895999193191528,
0.17373211681842804,
0.24436058104038239,
0.3819495737552643,
-0.42601558566093445,
-1.092199444770813,
-0.26906782388687134,
-1.0757273435592651,
-2.5266270637512207,
0.37727272510528564,
-0.18500027060508728,
-1.4026498794555664,
0.07881521433591843,
-1.0611692667007446,
1.0458030700683594,
-0.5773220062255859,
-1.1405603885650635,
-1.4439078569412231,
0.21610723435878754,
-0.0035534691996872425,
0.8791910409927368,
-1.6585475206375122,
-0.1971995085477829,
1.2269518375396729,
0.9060130715370178,
-0.7073821425437927,
0.9742433428764343,
0.22939425706863403,
1.0474903583526611,
0.7783599495887756,
-0.3462286591529846,
0.5166594982147217,
-0.023816997185349464,
-1.3114570379257202,
0.5055352449417114,
1.2744219303131104,
0.1810510903596878,
1.464521884918213,
-0.5142164826393127,
-0.0740513727068901,
0.4136642813682556,
-0.5035879611968994,
-0.4333741068840027,
-0.48563313484191895,
0.577750563621521,
0.0037860963493585587,
-0.8908194303512573,
-0.006730595137923956,
0.06933529675006866,
-0.24579617381095886,
0.15225788950920105,
-1.513261318206787,
-0.1730610728263855,
-0.3317522406578064,
-0.5933164358139038,
-1.1877479553222656,
-0.15910027921199799,
1.344093680381775,
-0.6787469983100891,
-0.23009413480758667,
0.5877452492713928,
0.34264659881591797,
0.5027912855148315,
0.6106637716293335,
-0.7018746733665466,
-0.32449817657470703,
-0.16287794709205627,
-0.38122275471687317,
0.29338425397872925,
1.4310283660888672,
-0.09995400160551071,
-1.0302542448043823,
0.6759065985679626,
-0.3696446120738983,
0.11928727477788925,
1.8796970844268799,
0.0032298648729920387,
-0.8382757306098938,
0.2579130232334137,
-0.731110692024231,
1.9820353984832764,
1.6909674406051636,
1.3109478950500488,
-0.2079307585954666,
-0.9382466077804565,
0.6484934687614441,
-0.36321312189102173,
-0.3855263590812683,
0.7931091785430908,
0.434207022190094,
-0.21879246830940247,
-1.4250761270523071,
0.7810091972351074,
1.2220083475112915,
-0.8701730966567993,
-0.8362335562705994,
0.2040329873561859,
-0.7865044474601746,
1.2100863456726074,
0.5704458951950073,
0.3885285556316376,
0.26488766074180603,
1.6749430894851685,
0.7839793562889099,
-0.4830368757247925,
0.5305950045585632,
0.5899040699005127,
-0.2549073398113251,
-2.117297649383545,
-1.2228984832763672,
0.2386598438024521,
-0.5105786919593811,
-1.6498724222183228,
1.3856914043426514,
-1.1283546686172485,
-0.9055264592170715,
0.5615368485450745,
0.19742968678474426,
1.441979169845581,
0.47002822160720825,
1.498322606086731,
1.998225212097168,
0.8818400502204895,
0.5101339817047119,
1.26248300075531,
-0.1928892582654953,
-0.4471021890640259,
1.703553318977356,
-0.40576809644699097,
0.49370303750038147,
1.1481244564056396,
-0.34237027168273926,
-1.1551082134246826,
-0.7309965491294861,
-1.2617107629776,
-0.638624906539917,
1.1259101629257202,
0.08125753700733185,
-1.114267110824585,
0.2880176603794098,
1.5262247323989868,
0.02963348478078842,
-0.4066013991832733,
0.6983596086502075,
0.3855864703655243,
-0.8493353724479675,
-0.09340010583400726,
-0.9615633487701416,
0.5154450535774231,
-0.2743864357471466,
-0.3399408161640167,
0.386542946100235,
0.47912752628326416,
1.3820343017578125,
0.00368392001837492,
0.17814098298549652,
1.106298804283142,
-1.4593685865402222,
1.4869871139526367,
-0.7667415738105774,
0.3007473647594452,
-2.322366237640381,
1.3242570161819458,
-0.7571386694908142,
1.9956679344177246,
-2.651571750640869,
0.4268435835838318,
-0.5761978626251221,
-0.4257076680660248,
0.28473302721977234,
-0.30411839485168457,
0.09652189165353775,
-0.056351952254772186,
-1.1823700666427612,
-0.030381660908460617,
-0.67929607629776,
0.48431849479675293,
1.2265324592590332,
1.3401774168014526,
-1.0505659580230713,
-0.24285544455051422,
-1.713810682296753,
-0.14679966866970062,
-0.7274350523948669,
0.2961518168449402,
-1.9785172939300537,
-0.19305777549743652,
-1.7888380289077759,
-2.335594415664673,
-1.2202625274658203,
-0.8405134677886963,
1.1834405660629272,
0.09546074271202087,
-0.9177148938179016,
1.3848637342453003,
-0.32166236639022827,
-1.8208314180374146,
1.144755482673645,
-2.1944212913513184
] |
https://github.com/huggingface/datasets/issues/5284 | Features of IterableDataset set to None by remove column | Actually the culprit looks to be this one:
`vectorized_datasets = raw_datasets.map(prepare_dataset).with_format("torch")`
When I remove this line: `vectorized_datasets = vectorized_datasets.remove_columns(['input_length', 'labels_length']+list(next(iter(raw_datasets.values())).features))`
I still get
```
Processed features: None
``` | ### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq | 399 | 28 | Features of IterableDataset set to None by remove column
### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq
Actually the culprit looks to be this one:
`vectorized_datasets = raw_datasets.map(prepare_dataset).with_format("torch")`
When I remove this line: `vectorized_datasets = vectorized_datasets.remove_columns(['input_length', 'labels_length']+list(next(iter(raw_datasets.values())).features))`
I still get
```
Processed features: None
``` | [
-1.1740634441375732,
-0.986666202545166,
-0.724602222442627,
1.5060685873031616,
-0.16580796241760254,
-1.1591317653656006,
0.15898366272449493,
-0.9965685606002808,
1.6621525287628174,
-0.7151062488555908,
0.23000434041023254,
-1.7126665115356445,
-0.02927146479487419,
-0.7022446990013123,
-0.7006533741950989,
-0.7825727462768555,
-0.44418010115623474,
-0.6750337481498718,
1.0712870359420776,
2.4491422176361084,
1.126986026763916,
-1.3972970247268677,
2.685581922531128,
0.7613965272903442,
-0.12701305747032166,
-1.0008825063705444,
0.5279032588005066,
-0.020517751574516296,
-1.3073084354400635,
-0.42334243655204773,
-0.9414310455322266,
-0.07282167673110962,
-0.5671327710151672,
-0.5041792392730713,
-0.025721069425344467,
0.4836001694202423,
-0.2883168160915375,
-0.5188636779785156,
-0.5447405576705933,
-0.7822561860084534,
0.42035073041915894,
-0.4502526521682739,
0.9208778738975525,
-0.29555532336235046,
1.740590214729309,
-0.4802614450454712,
0.45731407403945923,
0.6671180725097656,
1.34443998336792,
0.20132403075695038,
0.030259549617767334,
0.41033735871315,
0.39441317319869995,
-0.0029080482199788094,
0.5537984371185303,
1.1025899648666382,
0.6618925333023071,
0.36606088280677795,
0.7998780012130737,
-2.3302223682403564,
1.2639623880386353,
-1.031832218170166,
0.34414738416671753,
1.4194467067718506,
-0.8958433866500854,
0.4459843039512634,
-1.7529118061065674,
-0.007573788054287434,
0.5610712170600891,
-2.1671433448791504,
0.3541838228702545,
-1.2952206134796143,
-0.47434526681900024,
0.9894115328788757,
0.4395764470100403,
-1.2181364297866821,
0.07624826580286026,
-0.40268027782440186,
0.9985519051551819,
0.3970577120780945,
1.0239136219024658,
-1.6703805923461914,
-0.04444468393921852,
-0.2624271512031555,
0.09642571955919266,
-1.1816489696502686,
-1.5338526964187622,
0.5620894432067871,
0.6283164024353027,
0.6010218262672424,
-0.15023596584796906,
0.9470357298851013,
-1.0917648077011108,
0.7073898911476135,
-1.0668425559997559,
-1.7771267890930176,
-1.3901079893112183,
-2.2986836433410645,
-2.224368095397949,
0.7559497356414795,
-0.3860224187374115,
-0.49577969312667847,
2.041194438934326,
-0.9477006196975708,
-1.703643798828125,
1.2458834648132324,
0.3050755560398102,
-0.009852706454694271,
2.3928639888763428,
0.20134879648685455,
-0.7178375124931335,
0.5246604681015015,
-0.8768110275268555,
0.7294706702232361,
-0.41770586371421814,
1.361526370048523,
0.3342323899269104,
-0.961638867855072,
1.6295228004455566,
-0.40626806020736694,
0.575508177280426,
-0.6553776860237122,
-0.4834022521972656,
-0.7370169758796692,
0.3387547433376312,
1.8843703269958496,
-0.20112334191799164,
1.4273878335952759,
-0.2915476858615875,
-1.5425004959106445,
-1.5800426006317139,
0.8945232033729553,
0.4263899028301239,
-0.7969486117362976,
0.041500240564346313,
-0.3811860978603363,
0.17679442465305328,
-0.11817335337400436,
1.1077804565429688,
1.302406907081604,
0.6923899054527283,
-0.3055030107498169,
-0.9190441370010376,
0.18349774181842804,
-0.0732884332537651,
-0.7539286017417908,
-1.766400694847107,
-0.3068983256816864,
0.09623584151268005,
0.6425536274909973,
-1.2173820734024048,
1.6314822435379028,
0.888975203037262,
1.9507960081100464,
1.0327134132385254,
-0.4389415681362152,
1.5339652299880981,
0.18591564893722534,
1.864121437072754,
-0.5879107713699341,
0.6467631459236145,
-0.36720311641693115,
-1.1390960216522217,
0.8660203218460083,
-0.2920052707195282,
-2.054614305496216,
-0.6985463500022888,
-0.8338853120803833,
-0.27518439292907715,
-0.7877715229988098,
0.9064380526542664,
-0.3264041244983673,
-1.4582703113555908,
0.22949132323265076,
-0.8331968784332275,
0.25477561354637146,
-1.216995358467102,
0.35080358386039734,
0.7394037842750549,
-0.5631515979766846,
0.11184360831975937,
-0.25755876302719116,
-1.3025919198989868,
-0.4285743236541748,
0.4408356249332428,
1.798865556716919,
-0.7781767845153809,
0.8737159967422485,
1.0752553939819336,
-0.6607528328895569,
-0.030051197856664658,
0.25174376368522644,
-0.2575992941856384,
0.8487302660942078,
-1.0488066673278809,
-0.6335503458976746,
1.1974314451217651,
-0.2621570825576782,
-0.5677669644355774,
1.4236652851104736,
0.7370242476463318,
-1.020390510559082,
-0.23789538443088531,
-0.12291788309812546,
-0.8111027479171753,
0.03446507826447487,
-1.6387282609939575,
-0.13712634146213531,
0.45346108078956604,
-1.5445802211761475,
-0.511365532875061,
-0.22956083714962006,
1.2745977640151978,
-0.08931765705347061,
1.3814016580581665,
-0.34371238946914673,
-0.1811835616827011,
-0.3242795467376709,
-0.43145430088043213,
0.17091530561447144,
-0.27696147561073303,
-0.5547698736190796,
0.16688266396522522,
-0.7897278070449829,
0.3840920627117157,
1.4557623863220215,
0.34986594319343567,
0.03164688125252724,
0.5524382591247559,
1.0789194107055664,
0.4136938154697418,
0.01859385520219803,
-0.8538756966590881,
-1.5574651956558228,
2.004110336303711,
-1.5403445959091187,
1.9855172634124756,
0.6471446752548218,
0.004418067634105682,
-1.762105941772461,
-1.9000847339630127,
1.3794058561325073,
1.0739269256591797,
2.281036138534546,
0.5556668043136597,
0.4193519949913025,
-0.8817763328552246,
-0.7039327025413513,
0.2391435205936432,
-0.9229901432991028,
-0.6900538206100464,
0.14477819204330444,
2.4524648189544678,
1.7735214233398438,
-0.391728013753891,
-0.1463700383901596,
-1.0272901058197021,
1.472538709640503,
-0.22413264214992523,
0.296032577753067,
1.9633708000183105,
-0.19710709154605865,
-1.0477186441421509,
1.3101067543029785,
-2.430807590484619,
0.21800540387630463,
1.9894654750823975,
0.25136351585388184,
0.12834864854812622,
-1.3406041860580444,
-0.6989707946777344,
-0.2523651719093323,
-0.3618276119232178,
-1.2168259620666504,
0.5204461216926575,
-0.19417671859264374,
-0.7570129036903381,
-1.4673807621002197,
0.2007729858160019,
-1.1301296949386597,
-1.6235263347625732,
0.19802169501781464,
1.9439700841903687,
2.0469813346862793,
-0.7388483881950378,
1.5983428955078125,
-0.20277033746242523,
0.2316572219133377,
1.25314462184906,
1.2497632503509521,
3.0391342639923096,
1.9332236051559448,
-1.2589603662490845,
0.5884714722633362,
-0.10421610623598099,
-0.4660125970840454,
1.128513216972351,
-1.22151780128479,
1.261224389076233,
-0.1223948746919632,
-1.1922967433929443,
-1.1751385927200317,
0.8911329507827759,
0.4807963967323303,
0.018271759152412415,
-0.4794355034828186,
1.0946100950241089,
-0.017145587131381035,
1.300018072128296,
0.6534950733184814,
-0.3251863121986389,
0.5727750062942505,
-0.3684099316596985,
-0.4896842837333679,
1.5210942029953003,
0.16602595150470734,
-1.4960638284683228,
-2.252255439758301,
-0.23709633946418762,
-0.8344295024871826,
0.02612973004579544,
-0.6469669342041016,
-1.0421806573867798,
1.6097761392593384,
0.3150186836719513,
-1.106411337852478,
-0.25407296419143677,
-0.28113439679145813,
-0.4653162360191345,
2.7521893978118896,
-1.3727673292160034,
-0.369506299495697,
-0.9822364449501038,
-0.6867644190788269,
1.6629829406738281,
-1.140742540359497,
-0.1680440604686737,
-1.047851324081421,
-0.5585007667541504,
-1.2625632286071777,
-0.5022638440132141,
-0.01261946652084589,
-0.9607892036437988,
0.9490216374397278,
0.24997656047344208,
-1.273635745048523,
-0.30040493607521057,
-1.010167121887207,
0.9102311730384827,
-0.20412032306194305,
0.13574881851673126,
1.8789029121398926,
0.3868274986743927,
-0.30071595311164856,
0.8381085395812988,
1.1608433723449707,
0.6595677733421326,
-0.6416675448417664,
0.20485641062259674,
-0.622679591178894,
0.4078461229801178,
-1.2567288875579834,
0.3002992570400238,
-2.8814287185668945,
0.5772916078567505,
-0.04750595986843109,
-0.07260485738515854,
-0.014310870319604874,
-1.3685790300369263,
1.1411206722259521,
2.5246238708496094,
-1.2405511140823364,
0.540179431438446,
0.31308960914611816,
1.3201801776885986,
-1.6488773822784424,
0.30366477370262146,
-0.43925151228904724,
2.146209716796875,
0.11532788723707199,
1.1828489303588867,
-0.4796656668186188,
-2.405769109725952,
0.5725910663604736,
-1.285487413406372,
-1.0892844200134277,
0.5760021805763245,
-0.8826748132705688,
0.17135070264339447,
-1.4390827417373657,
-0.25266918540000916,
-0.8373715281486511,
-1.212345838546753,
0.6514226794242859,
0.14764532446861267,
0.37637996673583984,
-0.5833077430725098,
0.37175679206848145,
-2.2661848068237305,
-1.437279462814331,
-0.2414645552635193,
-0.881189227104187,
0.5709286332130432,
-0.40921708941459656,
0.7099315524101257,
-0.19441565871238708,
-0.0830283835530281,
0.2884077727794647,
1.490281105041504,
3.430873394012451,
0.1405719816684723,
0.3486906588077545,
-0.191218763589859,
-0.962834358215332,
1.4740816354751587,
0.9456469416618347,
-0.09642041474580765,
-0.5491443872451782,
-1.0648458003997803,
1.339535117149353,
2.0104949474334717,
1.0104788541793823,
0.014308185316622257,
-0.7778764963150024,
-0.7166679501533508,
-0.0013722144067287445,
0.21560192108154297,
0.4618178606033325,
0.8817300200462341,
0.11114297062158585,
0.038151782006025314,
1.4403002262115479,
1.1349486112594604,
-0.36639270186424255,
0.31349900364875793,
-0.8439265489578247,
-0.4549533426761627,
0.5096615552902222,
0.22128351032733917,
-0.09854587912559509,
0.32620906829833984,
-1.0784913301467896,
-0.1932654231786728,
-0.38969483971595764,
-0.7888396382331848,
-0.7237638235092163,
-0.30670294165611267,
-0.405322790145874,
1.6498875617980957,
0.24833251535892487,
-0.6347332000732422,
-0.04334746301174164,
-0.682330846786499,
-0.07347244769334793,
-1.0291318893432617,
0.26515859365463257,
-0.1682129204273224,
-0.0963517352938652,
-0.1580209732055664,
1.7363427877426147,
-0.926306426525116,
-2.108243227005005,
0.08693306893110275,
0.2563703656196594,
-0.24405871331691742,
0.1650504767894745,
1.6397802829742432,
0.555199146270752,
1.4672791957855225,
1.3989925384521484,
0.9704632759094238,
-0.6554832458496094,
-1.369896411895752,
0.6247709393501282,
1.0219173431396484,
-1.3660075664520264,
0.7574595808982849,
0.002986043691635132,
-0.5812757015228271,
0.6140861511230469,
1.387833595275879,
0.45213639736175537,
-2.051330804824829,
0.8066007494926453,
-1.0934420824050903,
0.8830718398094177,
0.7621008157730103,
0.7252550721168518,
0.26766717433929443,
0.7512490749359131,
-1.3064016103744507,
-1.0745222568511963,
-0.7645248770713806,
-0.7171022891998291,
2.0211024284362793,
-0.31213074922561646,
0.566371500492096,
-0.13526730239391327,
-1.3239555358886719,
-0.030996102839708328,
0.6026800870895386,
0.3995935022830963,
-0.5054895281791687,
0.743327796459198,
-0.6708906888961792,
-1.1373894214630127,
-1.3377716541290283,
-0.5344031453132629,
-1.0233769416809082,
-0.9924033284187317,
0.9817649126052856,
0.8214259147644043,
0.367506742477417,
1.807085394859314,
0.682091236114502,
0.1905786097049713,
-2.5962562561035156,
0.8878418207168579,
0.339345782995224,
-0.15858958661556244,
0.747962236404419,
0.38450056314468384,
1.112421989440918,
-0.05916773900389671,
0.6365931034088135,
-2.456975221633911,
2.2702832221984863,
-0.21865874528884888,
0.7594698667526245,
-0.051954109221696854,
-0.013750312849879265,
1.040590524673462,
0.5211355090141296,
0.5294734239578247,
-0.9792267084121704,
0.6967198848724365,
-0.5824718475341797,
1.267713189125061,
0.9366497993469238,
-0.7415249347686768,
-0.0008157938718795776,
1.3940365314483643,
0.43769571185112,
-0.6509130597114563,
-0.983001708984375,
-0.9074679613113403,
0.9208577275276184,
1.7006614208221436,
-0.1653354912996292,
-0.002173737622797489,
0.8512538075447083,
0.6234742403030396,
-1.268680453300476,
-0.004062732215970755,
-0.6441185474395752,
-0.6026046872138977,
1.6840944290161133,
2.1201398372650146,
-0.25677773356437683,
-0.16135530173778534,
-0.6934025287628174,
-1.3219597339630127,
0.7064563035964966,
-0.008150614798069,
0.061984408646821976,
0.6571457386016846,
-0.6217408180236816,
1.0545248985290527,
0.7852839231491089,
0.8895999193191528,
0.17373211681842804,
0.24436058104038239,
0.3819495737552643,
-0.42601558566093445,
-1.092199444770813,
-0.26906782388687134,
-1.0757273435592651,
-2.5266270637512207,
0.37727272510528564,
-0.18500027060508728,
-1.4026498794555664,
0.07881521433591843,
-1.0611692667007446,
1.0458030700683594,
-0.5773220062255859,
-1.1405603885650635,
-1.4439078569412231,
0.21610723435878754,
-0.0035534691996872425,
0.8791910409927368,
-1.6585475206375122,
-0.1971995085477829,
1.2269518375396729,
0.9060130715370178,
-0.7073821425437927,
0.9742433428764343,
0.22939425706863403,
1.0474903583526611,
0.7783599495887756,
-0.3462286591529846,
0.5166594982147217,
-0.023816997185349464,
-1.3114570379257202,
0.5055352449417114,
1.2744219303131104,
0.1810510903596878,
1.464521884918213,
-0.5142164826393127,
-0.0740513727068901,
0.4136642813682556,
-0.5035879611968994,
-0.4333741068840027,
-0.48563313484191895,
0.577750563621521,
0.0037860963493585587,
-0.8908194303512573,
-0.006730595137923956,
0.06933529675006866,
-0.24579617381095886,
0.15225788950920105,
-1.513261318206787,
-0.1730610728263855,
-0.3317522406578064,
-0.5933164358139038,
-1.1877479553222656,
-0.15910027921199799,
1.344093680381775,
-0.6787469983100891,
-0.23009413480758667,
0.5877452492713928,
0.34264659881591797,
0.5027912855148315,
0.6106637716293335,
-0.7018746733665466,
-0.32449817657470703,
-0.16287794709205627,
-0.38122275471687317,
0.29338425397872925,
1.4310283660888672,
-0.09995400160551071,
-1.0302542448043823,
0.6759065985679626,
-0.3696446120738983,
0.11928727477788925,
1.8796970844268799,
0.0032298648729920387,
-0.8382757306098938,
0.2579130232334137,
-0.731110692024231,
1.9820353984832764,
1.6909674406051636,
1.3109478950500488,
-0.2079307585954666,
-0.9382466077804565,
0.6484934687614441,
-0.36321312189102173,
-0.3855263590812683,
0.7931091785430908,
0.434207022190094,
-0.21879246830940247,
-1.4250761270523071,
0.7810091972351074,
1.2220083475112915,
-0.8701730966567993,
-0.8362335562705994,
0.2040329873561859,
-0.7865044474601746,
1.2100863456726074,
0.5704458951950073,
0.3885285556316376,
0.26488766074180603,
1.6749430894851685,
0.7839793562889099,
-0.4830368757247925,
0.5305950045585632,
0.5899040699005127,
-0.2549073398113251,
-2.117297649383545,
-1.2228984832763672,
0.2386598438024521,
-0.5105786919593811,
-1.6498724222183228,
1.3856914043426514,
-1.1283546686172485,
-0.9055264592170715,
0.5615368485450745,
0.19742968678474426,
1.441979169845581,
0.47002822160720825,
1.498322606086731,
1.998225212097168,
0.8818400502204895,
0.5101339817047119,
1.26248300075531,
-0.1928892582654953,
-0.4471021890640259,
1.703553318977356,
-0.40576809644699097,
0.49370303750038147,
1.1481244564056396,
-0.34237027168273926,
-1.1551082134246826,
-0.7309965491294861,
-1.2617107629776,
-0.638624906539917,
1.1259101629257202,
0.08125753700733185,
-1.114267110824585,
0.2880176603794098,
1.5262247323989868,
0.02963348478078842,
-0.4066013991832733,
0.6983596086502075,
0.3855864703655243,
-0.8493353724479675,
-0.09340010583400726,
-0.9615633487701416,
0.5154450535774231,
-0.2743864357471466,
-0.3399408161640167,
0.386542946100235,
0.47912752628326416,
1.3820343017578125,
0.00368392001837492,
0.17814098298549652,
1.106298804283142,
-1.4593685865402222,
1.4869871139526367,
-0.7667415738105774,
0.3007473647594452,
-2.322366237640381,
1.3242570161819458,
-0.7571386694908142,
1.9956679344177246,
-2.651571750640869,
0.4268435835838318,
-0.5761978626251221,
-0.4257076680660248,
0.28473302721977234,
-0.30411839485168457,
0.09652189165353775,
-0.056351952254772186,
-1.1823700666427612,
-0.030381660908460617,
-0.67929607629776,
0.48431849479675293,
1.2265324592590332,
1.3401774168014526,
-1.0505659580230713,
-0.24285544455051422,
-1.713810682296753,
-0.14679966866970062,
-0.7274350523948669,
0.2961518168449402,
-1.9785172939300537,
-0.19305777549743652,
-1.7888380289077759,
-2.335594415664673,
-1.2202625274658203,
-0.8405134677886963,
1.1834405660629272,
0.09546074271202087,
-0.9177148938179016,
1.3848637342453003,
-0.32166236639022827,
-1.8208314180374146,
1.144755482673645,
-2.1944212913513184
] |
https://github.com/huggingface/datasets/issues/5284 | Features of IterableDataset set to None by remove column | > The culprit is definitely `.map` Just validated it. Any idea please?
Yes, indeed `.map` losses the features, because AFAIK pre-fetching the data to infer the features is expensive and not ideal, that's part of this issue https://github.com/huggingface/datasets/issues/3888
Anyway, now you can pass the `features` as a param to `.map` as follows:
```python
from datasets import Features
vectorized_datasets = raw_datasets.map(
prepare_dataset,
features=Features(
{"path": raw_datasets["train"].info.features["path"], "audio": raw_datasets["train"].info.features["audio"], "sentence": raw_datasets["train"].info.features["sentence"]}
),
).with_format("torch")
```
Also, to let you know, when calling `.remove_columns` over an `IterableDataset`, the `features` are not lost, as well as `.rename_column` and `rename_columns` :)
More information about the latter at https://github.com/huggingface/datasets/pull/5287 | ### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq | 399 | 101 | Features of IterableDataset set to None by remove column
### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq
> The culprit is definitely `.map` Just validated it. Any idea please?
Yes, indeed `.map` losses the features, because AFAIK pre-fetching the data to infer the features is expensive and not ideal, that's part of this issue https://github.com/huggingface/datasets/issues/3888
Anyway, now you can pass the `features` as a param to `.map` as follows:
```python
from datasets import Features
vectorized_datasets = raw_datasets.map(
prepare_dataset,
features=Features(
{"path": raw_datasets["train"].info.features["path"], "audio": raw_datasets["train"].info.features["audio"], "sentence": raw_datasets["train"].info.features["sentence"]}
),
).with_format("torch")
```
Also, to let you know, when calling `.remove_columns` over an `IterableDataset`, the `features` are not lost, as well as `.rename_column` and `rename_columns` :)
More information about the latter at https://github.com/huggingface/datasets/pull/5287 | [
-1.1740634441375732,
-0.986666202545166,
-0.724602222442627,
1.5060685873031616,
-0.16580796241760254,
-1.1591317653656006,
0.15898366272449493,
-0.9965685606002808,
1.6621525287628174,
-0.7151062488555908,
0.23000434041023254,
-1.7126665115356445,
-0.02927146479487419,
-0.7022446990013123,
-0.7006533741950989,
-0.7825727462768555,
-0.44418010115623474,
-0.6750337481498718,
1.0712870359420776,
2.4491422176361084,
1.126986026763916,
-1.3972970247268677,
2.685581922531128,
0.7613965272903442,
-0.12701305747032166,
-1.0008825063705444,
0.5279032588005066,
-0.020517751574516296,
-1.3073084354400635,
-0.42334243655204773,
-0.9414310455322266,
-0.07282167673110962,
-0.5671327710151672,
-0.5041792392730713,
-0.025721069425344467,
0.4836001694202423,
-0.2883168160915375,
-0.5188636779785156,
-0.5447405576705933,
-0.7822561860084534,
0.42035073041915894,
-0.4502526521682739,
0.9208778738975525,
-0.29555532336235046,
1.740590214729309,
-0.4802614450454712,
0.45731407403945923,
0.6671180725097656,
1.34443998336792,
0.20132403075695038,
0.030259549617767334,
0.41033735871315,
0.39441317319869995,
-0.0029080482199788094,
0.5537984371185303,
1.1025899648666382,
0.6618925333023071,
0.36606088280677795,
0.7998780012130737,
-2.3302223682403564,
1.2639623880386353,
-1.031832218170166,
0.34414738416671753,
1.4194467067718506,
-0.8958433866500854,
0.4459843039512634,
-1.7529118061065674,
-0.007573788054287434,
0.5610712170600891,
-2.1671433448791504,
0.3541838228702545,
-1.2952206134796143,
-0.47434526681900024,
0.9894115328788757,
0.4395764470100403,
-1.2181364297866821,
0.07624826580286026,
-0.40268027782440186,
0.9985519051551819,
0.3970577120780945,
1.0239136219024658,
-1.6703805923461914,
-0.04444468393921852,
-0.2624271512031555,
0.09642571955919266,
-1.1816489696502686,
-1.5338526964187622,
0.5620894432067871,
0.6283164024353027,
0.6010218262672424,
-0.15023596584796906,
0.9470357298851013,
-1.0917648077011108,
0.7073898911476135,
-1.0668425559997559,
-1.7771267890930176,
-1.3901079893112183,
-2.2986836433410645,
-2.224368095397949,
0.7559497356414795,
-0.3860224187374115,
-0.49577969312667847,
2.041194438934326,
-0.9477006196975708,
-1.703643798828125,
1.2458834648132324,
0.3050755560398102,
-0.009852706454694271,
2.3928639888763428,
0.20134879648685455,
-0.7178375124931335,
0.5246604681015015,
-0.8768110275268555,
0.7294706702232361,
-0.41770586371421814,
1.361526370048523,
0.3342323899269104,
-0.961638867855072,
1.6295228004455566,
-0.40626806020736694,
0.575508177280426,
-0.6553776860237122,
-0.4834022521972656,
-0.7370169758796692,
0.3387547433376312,
1.8843703269958496,
-0.20112334191799164,
1.4273878335952759,
-0.2915476858615875,
-1.5425004959106445,
-1.5800426006317139,
0.8945232033729553,
0.4263899028301239,
-0.7969486117362976,
0.041500240564346313,
-0.3811860978603363,
0.17679442465305328,
-0.11817335337400436,
1.1077804565429688,
1.302406907081604,
0.6923899054527283,
-0.3055030107498169,
-0.9190441370010376,
0.18349774181842804,
-0.0732884332537651,
-0.7539286017417908,
-1.766400694847107,
-0.3068983256816864,
0.09623584151268005,
0.6425536274909973,
-1.2173820734024048,
1.6314822435379028,
0.888975203037262,
1.9507960081100464,
1.0327134132385254,
-0.4389415681362152,
1.5339652299880981,
0.18591564893722534,
1.864121437072754,
-0.5879107713699341,
0.6467631459236145,
-0.36720311641693115,
-1.1390960216522217,
0.8660203218460083,
-0.2920052707195282,
-2.054614305496216,
-0.6985463500022888,
-0.8338853120803833,
-0.27518439292907715,
-0.7877715229988098,
0.9064380526542664,
-0.3264041244983673,
-1.4582703113555908,
0.22949132323265076,
-0.8331968784332275,
0.25477561354637146,
-1.216995358467102,
0.35080358386039734,
0.7394037842750549,
-0.5631515979766846,
0.11184360831975937,
-0.25755876302719116,
-1.3025919198989868,
-0.4285743236541748,
0.4408356249332428,
1.798865556716919,
-0.7781767845153809,
0.8737159967422485,
1.0752553939819336,
-0.6607528328895569,
-0.030051197856664658,
0.25174376368522644,
-0.2575992941856384,
0.8487302660942078,
-1.0488066673278809,
-0.6335503458976746,
1.1974314451217651,
-0.2621570825576782,
-0.5677669644355774,
1.4236652851104736,
0.7370242476463318,
-1.020390510559082,
-0.23789538443088531,
-0.12291788309812546,
-0.8111027479171753,
0.03446507826447487,
-1.6387282609939575,
-0.13712634146213531,
0.45346108078956604,
-1.5445802211761475,
-0.511365532875061,
-0.22956083714962006,
1.2745977640151978,
-0.08931765705347061,
1.3814016580581665,
-0.34371238946914673,
-0.1811835616827011,
-0.3242795467376709,
-0.43145430088043213,
0.17091530561447144,
-0.27696147561073303,
-0.5547698736190796,
0.16688266396522522,
-0.7897278070449829,
0.3840920627117157,
1.4557623863220215,
0.34986594319343567,
0.03164688125252724,
0.5524382591247559,
1.0789194107055664,
0.4136938154697418,
0.01859385520219803,
-0.8538756966590881,
-1.5574651956558228,
2.004110336303711,
-1.5403445959091187,
1.9855172634124756,
0.6471446752548218,
0.004418067634105682,
-1.762105941772461,
-1.9000847339630127,
1.3794058561325073,
1.0739269256591797,
2.281036138534546,
0.5556668043136597,
0.4193519949913025,
-0.8817763328552246,
-0.7039327025413513,
0.2391435205936432,
-0.9229901432991028,
-0.6900538206100464,
0.14477819204330444,
2.4524648189544678,
1.7735214233398438,
-0.391728013753891,
-0.1463700383901596,
-1.0272901058197021,
1.472538709640503,
-0.22413264214992523,
0.296032577753067,
1.9633708000183105,
-0.19710709154605865,
-1.0477186441421509,
1.3101067543029785,
-2.430807590484619,
0.21800540387630463,
1.9894654750823975,
0.25136351585388184,
0.12834864854812622,
-1.3406041860580444,
-0.6989707946777344,
-0.2523651719093323,
-0.3618276119232178,
-1.2168259620666504,
0.5204461216926575,
-0.19417671859264374,
-0.7570129036903381,
-1.4673807621002197,
0.2007729858160019,
-1.1301296949386597,
-1.6235263347625732,
0.19802169501781464,
1.9439700841903687,
2.0469813346862793,
-0.7388483881950378,
1.5983428955078125,
-0.20277033746242523,
0.2316572219133377,
1.25314462184906,
1.2497632503509521,
3.0391342639923096,
1.9332236051559448,
-1.2589603662490845,
0.5884714722633362,
-0.10421610623598099,
-0.4660125970840454,
1.128513216972351,
-1.22151780128479,
1.261224389076233,
-0.1223948746919632,
-1.1922967433929443,
-1.1751385927200317,
0.8911329507827759,
0.4807963967323303,
0.018271759152412415,
-0.4794355034828186,
1.0946100950241089,
-0.017145587131381035,
1.300018072128296,
0.6534950733184814,
-0.3251863121986389,
0.5727750062942505,
-0.3684099316596985,
-0.4896842837333679,
1.5210942029953003,
0.16602595150470734,
-1.4960638284683228,
-2.252255439758301,
-0.23709633946418762,
-0.8344295024871826,
0.02612973004579544,
-0.6469669342041016,
-1.0421806573867798,
1.6097761392593384,
0.3150186836719513,
-1.106411337852478,
-0.25407296419143677,
-0.28113439679145813,
-0.4653162360191345,
2.7521893978118896,
-1.3727673292160034,
-0.369506299495697,
-0.9822364449501038,
-0.6867644190788269,
1.6629829406738281,
-1.140742540359497,
-0.1680440604686737,
-1.047851324081421,
-0.5585007667541504,
-1.2625632286071777,
-0.5022638440132141,
-0.01261946652084589,
-0.9607892036437988,
0.9490216374397278,
0.24997656047344208,
-1.273635745048523,
-0.30040493607521057,
-1.010167121887207,
0.9102311730384827,
-0.20412032306194305,
0.13574881851673126,
1.8789029121398926,
0.3868274986743927,
-0.30071595311164856,
0.8381085395812988,
1.1608433723449707,
0.6595677733421326,
-0.6416675448417664,
0.20485641062259674,
-0.622679591178894,
0.4078461229801178,
-1.2567288875579834,
0.3002992570400238,
-2.8814287185668945,
0.5772916078567505,
-0.04750595986843109,
-0.07260485738515854,
-0.014310870319604874,
-1.3685790300369263,
1.1411206722259521,
2.5246238708496094,
-1.2405511140823364,
0.540179431438446,
0.31308960914611816,
1.3201801776885986,
-1.6488773822784424,
0.30366477370262146,
-0.43925151228904724,
2.146209716796875,
0.11532788723707199,
1.1828489303588867,
-0.4796656668186188,
-2.405769109725952,
0.5725910663604736,
-1.285487413406372,
-1.0892844200134277,
0.5760021805763245,
-0.8826748132705688,
0.17135070264339447,
-1.4390827417373657,
-0.25266918540000916,
-0.8373715281486511,
-1.212345838546753,
0.6514226794242859,
0.14764532446861267,
0.37637996673583984,
-0.5833077430725098,
0.37175679206848145,
-2.2661848068237305,
-1.437279462814331,
-0.2414645552635193,
-0.881189227104187,
0.5709286332130432,
-0.40921708941459656,
0.7099315524101257,
-0.19441565871238708,
-0.0830283835530281,
0.2884077727794647,
1.490281105041504,
3.430873394012451,
0.1405719816684723,
0.3486906588077545,
-0.191218763589859,
-0.962834358215332,
1.4740816354751587,
0.9456469416618347,
-0.09642041474580765,
-0.5491443872451782,
-1.0648458003997803,
1.339535117149353,
2.0104949474334717,
1.0104788541793823,
0.014308185316622257,
-0.7778764963150024,
-0.7166679501533508,
-0.0013722144067287445,
0.21560192108154297,
0.4618178606033325,
0.8817300200462341,
0.11114297062158585,
0.038151782006025314,
1.4403002262115479,
1.1349486112594604,
-0.36639270186424255,
0.31349900364875793,
-0.8439265489578247,
-0.4549533426761627,
0.5096615552902222,
0.22128351032733917,
-0.09854587912559509,
0.32620906829833984,
-1.0784913301467896,
-0.1932654231786728,
-0.38969483971595764,
-0.7888396382331848,
-0.7237638235092163,
-0.30670294165611267,
-0.405322790145874,
1.6498875617980957,
0.24833251535892487,
-0.6347332000732422,
-0.04334746301174164,
-0.682330846786499,
-0.07347244769334793,
-1.0291318893432617,
0.26515859365463257,
-0.1682129204273224,
-0.0963517352938652,
-0.1580209732055664,
1.7363427877426147,
-0.926306426525116,
-2.108243227005005,
0.08693306893110275,
0.2563703656196594,
-0.24405871331691742,
0.1650504767894745,
1.6397802829742432,
0.555199146270752,
1.4672791957855225,
1.3989925384521484,
0.9704632759094238,
-0.6554832458496094,
-1.369896411895752,
0.6247709393501282,
1.0219173431396484,
-1.3660075664520264,
0.7574595808982849,
0.002986043691635132,
-0.5812757015228271,
0.6140861511230469,
1.387833595275879,
0.45213639736175537,
-2.051330804824829,
0.8066007494926453,
-1.0934420824050903,
0.8830718398094177,
0.7621008157730103,
0.7252550721168518,
0.26766717433929443,
0.7512490749359131,
-1.3064016103744507,
-1.0745222568511963,
-0.7645248770713806,
-0.7171022891998291,
2.0211024284362793,
-0.31213074922561646,
0.566371500492096,
-0.13526730239391327,
-1.3239555358886719,
-0.030996102839708328,
0.6026800870895386,
0.3995935022830963,
-0.5054895281791687,
0.743327796459198,
-0.6708906888961792,
-1.1373894214630127,
-1.3377716541290283,
-0.5344031453132629,
-1.0233769416809082,
-0.9924033284187317,
0.9817649126052856,
0.8214259147644043,
0.367506742477417,
1.807085394859314,
0.682091236114502,
0.1905786097049713,
-2.5962562561035156,
0.8878418207168579,
0.339345782995224,
-0.15858958661556244,
0.747962236404419,
0.38450056314468384,
1.112421989440918,
-0.05916773900389671,
0.6365931034088135,
-2.456975221633911,
2.2702832221984863,
-0.21865874528884888,
0.7594698667526245,
-0.051954109221696854,
-0.013750312849879265,
1.040590524673462,
0.5211355090141296,
0.5294734239578247,
-0.9792267084121704,
0.6967198848724365,
-0.5824718475341797,
1.267713189125061,
0.9366497993469238,
-0.7415249347686768,
-0.0008157938718795776,
1.3940365314483643,
0.43769571185112,
-0.6509130597114563,
-0.983001708984375,
-0.9074679613113403,
0.9208577275276184,
1.7006614208221436,
-0.1653354912996292,
-0.002173737622797489,
0.8512538075447083,
0.6234742403030396,
-1.268680453300476,
-0.004062732215970755,
-0.6441185474395752,
-0.6026046872138977,
1.6840944290161133,
2.1201398372650146,
-0.25677773356437683,
-0.16135530173778534,
-0.6934025287628174,
-1.3219597339630127,
0.7064563035964966,
-0.008150614798069,
0.061984408646821976,
0.6571457386016846,
-0.6217408180236816,
1.0545248985290527,
0.7852839231491089,
0.8895999193191528,
0.17373211681842804,
0.24436058104038239,
0.3819495737552643,
-0.42601558566093445,
-1.092199444770813,
-0.26906782388687134,
-1.0757273435592651,
-2.5266270637512207,
0.37727272510528564,
-0.18500027060508728,
-1.4026498794555664,
0.07881521433591843,
-1.0611692667007446,
1.0458030700683594,
-0.5773220062255859,
-1.1405603885650635,
-1.4439078569412231,
0.21610723435878754,
-0.0035534691996872425,
0.8791910409927368,
-1.6585475206375122,
-0.1971995085477829,
1.2269518375396729,
0.9060130715370178,
-0.7073821425437927,
0.9742433428764343,
0.22939425706863403,
1.0474903583526611,
0.7783599495887756,
-0.3462286591529846,
0.5166594982147217,
-0.023816997185349464,
-1.3114570379257202,
0.5055352449417114,
1.2744219303131104,
0.1810510903596878,
1.464521884918213,
-0.5142164826393127,
-0.0740513727068901,
0.4136642813682556,
-0.5035879611968994,
-0.4333741068840027,
-0.48563313484191895,
0.577750563621521,
0.0037860963493585587,
-0.8908194303512573,
-0.006730595137923956,
0.06933529675006866,
-0.24579617381095886,
0.15225788950920105,
-1.513261318206787,
-0.1730610728263855,
-0.3317522406578064,
-0.5933164358139038,
-1.1877479553222656,
-0.15910027921199799,
1.344093680381775,
-0.6787469983100891,
-0.23009413480758667,
0.5877452492713928,
0.34264659881591797,
0.5027912855148315,
0.6106637716293335,
-0.7018746733665466,
-0.32449817657470703,
-0.16287794709205627,
-0.38122275471687317,
0.29338425397872925,
1.4310283660888672,
-0.09995400160551071,
-1.0302542448043823,
0.6759065985679626,
-0.3696446120738983,
0.11928727477788925,
1.8796970844268799,
0.0032298648729920387,
-0.8382757306098938,
0.2579130232334137,
-0.731110692024231,
1.9820353984832764,
1.6909674406051636,
1.3109478950500488,
-0.2079307585954666,
-0.9382466077804565,
0.6484934687614441,
-0.36321312189102173,
-0.3855263590812683,
0.7931091785430908,
0.434207022190094,
-0.21879246830940247,
-1.4250761270523071,
0.7810091972351074,
1.2220083475112915,
-0.8701730966567993,
-0.8362335562705994,
0.2040329873561859,
-0.7865044474601746,
1.2100863456726074,
0.5704458951950073,
0.3885285556316376,
0.26488766074180603,
1.6749430894851685,
0.7839793562889099,
-0.4830368757247925,
0.5305950045585632,
0.5899040699005127,
-0.2549073398113251,
-2.117297649383545,
-1.2228984832763672,
0.2386598438024521,
-0.5105786919593811,
-1.6498724222183228,
1.3856914043426514,
-1.1283546686172485,
-0.9055264592170715,
0.5615368485450745,
0.19742968678474426,
1.441979169845581,
0.47002822160720825,
1.498322606086731,
1.998225212097168,
0.8818400502204895,
0.5101339817047119,
1.26248300075531,
-0.1928892582654953,
-0.4471021890640259,
1.703553318977356,
-0.40576809644699097,
0.49370303750038147,
1.1481244564056396,
-0.34237027168273926,
-1.1551082134246826,
-0.7309965491294861,
-1.2617107629776,
-0.638624906539917,
1.1259101629257202,
0.08125753700733185,
-1.114267110824585,
0.2880176603794098,
1.5262247323989868,
0.02963348478078842,
-0.4066013991832733,
0.6983596086502075,
0.3855864703655243,
-0.8493353724479675,
-0.09340010583400726,
-0.9615633487701416,
0.5154450535774231,
-0.2743864357471466,
-0.3399408161640167,
0.386542946100235,
0.47912752628326416,
1.3820343017578125,
0.00368392001837492,
0.17814098298549652,
1.106298804283142,
-1.4593685865402222,
1.4869871139526367,
-0.7667415738105774,
0.3007473647594452,
-2.322366237640381,
1.3242570161819458,
-0.7571386694908142,
1.9956679344177246,
-2.651571750640869,
0.4268435835838318,
-0.5761978626251221,
-0.4257076680660248,
0.28473302721977234,
-0.30411839485168457,
0.09652189165353775,
-0.056351952254772186,
-1.1823700666427612,
-0.030381660908460617,
-0.67929607629776,
0.48431849479675293,
1.2265324592590332,
1.3401774168014526,
-1.0505659580230713,
-0.24285544455051422,
-1.713810682296753,
-0.14679966866970062,
-0.7274350523948669,
0.2961518168449402,
-1.9785172939300537,
-0.19305777549743652,
-1.7888380289077759,
-2.335594415664673,
-1.2202625274658203,
-0.8405134677886963,
1.1834405660629272,
0.09546074271202087,
-0.9177148938179016,
1.3848637342453003,
-0.32166236639022827,
-1.8208314180374146,
1.144755482673645,
-2.1944212913513184
] |
https://github.com/huggingface/datasets/issues/5284 | Features of IterableDataset set to None by remove column | @asennoussi alternatively you can just call `._resolve_features()` from your `IterableDataset` and it will pre-fetch the data to resolve the features, but note that feature-inference is not as accurate as if you manually specify which features and feature-types the `IterableDataset` has, as mentioned in the comment above, the alternative is to provide `features` param to `.map` :hugs: | ### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq | 399 | 56 | Features of IterableDataset set to None by remove column
### Describe the bug
The `remove_column` method of the IterableDataset sets the dataset features to None.
### Steps to reproduce the bug
```python
from datasets import Audio, load_dataset
# load LS in streaming mode
dataset = load_dataset("librispeech_asr", "clean", split="validation", streaming=True)
# check original features
print("Original features: ", dataset.features.keys())
# define features to remove: we KEEP audio and text
COLUMNS_TO_REMOVE = ['chapter_id', 'speaker_id', 'file', 'id']
dataset = dataset.remove_columns(COLUMNS_TO_REMOVE)
# check processed features, uh-oh!
print("Processed features: ", dataset.features)
# streaming the first audio sample still works
print("First sample:", next(iter(ds)))
```
**Print Output:**
```
Original features: dict_keys(['file', 'audio', 'text', 'speaker_id', 'chapter_id', 'id'])
Processed features: None
First sample: {'audio': {'path': '2277-149896-0000.flac', 'array': array([ 0.00186157, 0.0005188 , 0.00024414, ..., -0.00097656,
-0.00109863, -0.00146484]), 'sampling_rate': 16000}, 'text': "HE WAS IN A FEVERED STATE OF MIND OWING TO THE BLIGHT HIS WIFE'S ACTION THREATENED TO CAST UPON HIS ENTIRE FUTURE"}
```
### Expected behavior
The features should be those **not** removed by the `remove_column` method, i.e. audio and text.
### Environment info
- `datasets` version: 2.7.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
(Running on Google Colab for a blog post: https://colab.research.google.com/drive/1ySCQREPZEl4msLfxb79pYYOWjUZhkr9y#scrollTo=8pRDGiVmH2ml)
cc @polinaeterna @lhoestq
@asennoussi alternatively you can just call `._resolve_features()` from your `IterableDataset` and it will pre-fetch the data to resolve the features, but note that feature-inference is not as accurate as if you manually specify which features and feature-types the `IterableDataset` has, as mentioned in the comment above, the alternative is to provide `features` param to `.map` :hugs: | [
-1.1740634441375732,
-0.986666202545166,
-0.724602222442627,
1.5060685873031616,
-0.16580796241760254,
-1.1591317653656006,
0.15898366272449493,
-0.9965685606002808,
1.6621525287628174,
-0.7151062488555908,
0.23000434041023254,
-1.7126665115356445,
-0.02927146479487419,
-0.7022446990013123,
-0.7006533741950989,
-0.7825727462768555,
-0.44418010115623474,
-0.6750337481498718,
1.0712870359420776,
2.4491422176361084,
1.126986026763916,
-1.3972970247268677,
2.685581922531128,
0.7613965272903442,
-0.12701305747032166,
-1.0008825063705444,
0.5279032588005066,
-0.020517751574516296,
-1.3073084354400635,
-0.42334243655204773,
-0.9414310455322266,
-0.07282167673110962,
-0.5671327710151672,
-0.5041792392730713,
-0.025721069425344467,
0.4836001694202423,
-0.2883168160915375,
-0.5188636779785156,
-0.5447405576705933,
-0.7822561860084534,
0.42035073041915894,
-0.4502526521682739,
0.9208778738975525,
-0.29555532336235046,
1.740590214729309,
-0.4802614450454712,
0.45731407403945923,
0.6671180725097656,
1.34443998336792,
0.20132403075695038,
0.030259549617767334,
0.41033735871315,
0.39441317319869995,
-0.0029080482199788094,
0.5537984371185303,
1.1025899648666382,
0.6618925333023071,
0.36606088280677795,
0.7998780012130737,
-2.3302223682403564,
1.2639623880386353,
-1.031832218170166,
0.34414738416671753,
1.4194467067718506,
-0.8958433866500854,
0.4459843039512634,
-1.7529118061065674,
-0.007573788054287434,
0.5610712170600891,
-2.1671433448791504,
0.3541838228702545,
-1.2952206134796143,
-0.47434526681900024,
0.9894115328788757,
0.4395764470100403,
-1.2181364297866821,
0.07624826580286026,
-0.40268027782440186,
0.9985519051551819,
0.3970577120780945,
1.0239136219024658,
-1.6703805923461914,
-0.04444468393921852,
-0.2624271512031555,
0.09642571955919266,
-1.1816489696502686,
-1.5338526964187622,
0.5620894432067871,
0.6283164024353027,
0.6010218262672424,
-0.15023596584796906,
0.9470357298851013,
-1.0917648077011108,
0.7073898911476135,
-1.0668425559997559,
-1.7771267890930176,
-1.3901079893112183,
-2.2986836433410645,
-2.224368095397949,
0.7559497356414795,
-0.3860224187374115,
-0.49577969312667847,
2.041194438934326,
-0.9477006196975708,
-1.703643798828125,
1.2458834648132324,
0.3050755560398102,
-0.009852706454694271,
2.3928639888763428,
0.20134879648685455,
-0.7178375124931335,
0.5246604681015015,
-0.8768110275268555,
0.7294706702232361,
-0.41770586371421814,
1.361526370048523,
0.3342323899269104,
-0.961638867855072,
1.6295228004455566,
-0.40626806020736694,
0.575508177280426,
-0.6553776860237122,
-0.4834022521972656,
-0.7370169758796692,
0.3387547433376312,
1.8843703269958496,
-0.20112334191799164,
1.4273878335952759,
-0.2915476858615875,
-1.5425004959106445,
-1.5800426006317139,
0.8945232033729553,
0.4263899028301239,
-0.7969486117362976,
0.041500240564346313,
-0.3811860978603363,
0.17679442465305328,
-0.11817335337400436,
1.1077804565429688,
1.302406907081604,
0.6923899054527283,
-0.3055030107498169,
-0.9190441370010376,
0.18349774181842804,
-0.0732884332537651,
-0.7539286017417908,
-1.766400694847107,
-0.3068983256816864,
0.09623584151268005,
0.6425536274909973,
-1.2173820734024048,
1.6314822435379028,
0.888975203037262,
1.9507960081100464,
1.0327134132385254,
-0.4389415681362152,
1.5339652299880981,
0.18591564893722534,
1.864121437072754,
-0.5879107713699341,
0.6467631459236145,
-0.36720311641693115,
-1.1390960216522217,
0.8660203218460083,
-0.2920052707195282,
-2.054614305496216,
-0.6985463500022888,
-0.8338853120803833,
-0.27518439292907715,
-0.7877715229988098,
0.9064380526542664,
-0.3264041244983673,
-1.4582703113555908,
0.22949132323265076,
-0.8331968784332275,
0.25477561354637146,
-1.216995358467102,
0.35080358386039734,
0.7394037842750549,
-0.5631515979766846,
0.11184360831975937,
-0.25755876302719116,
-1.3025919198989868,
-0.4285743236541748,
0.4408356249332428,
1.798865556716919,
-0.7781767845153809,
0.8737159967422485,
1.0752553939819336,
-0.6607528328895569,
-0.030051197856664658,
0.25174376368522644,
-0.2575992941856384,
0.8487302660942078,
-1.0488066673278809,
-0.6335503458976746,
1.1974314451217651,
-0.2621570825576782,
-0.5677669644355774,
1.4236652851104736,
0.7370242476463318,
-1.020390510559082,
-0.23789538443088531,
-0.12291788309812546,
-0.8111027479171753,
0.03446507826447487,
-1.6387282609939575,
-0.13712634146213531,
0.45346108078956604,
-1.5445802211761475,
-0.511365532875061,
-0.22956083714962006,
1.2745977640151978,
-0.08931765705347061,
1.3814016580581665,
-0.34371238946914673,
-0.1811835616827011,
-0.3242795467376709,
-0.43145430088043213,
0.17091530561447144,
-0.27696147561073303,
-0.5547698736190796,
0.16688266396522522,
-0.7897278070449829,
0.3840920627117157,
1.4557623863220215,
0.34986594319343567,
0.03164688125252724,
0.5524382591247559,
1.0789194107055664,
0.4136938154697418,
0.01859385520219803,
-0.8538756966590881,
-1.5574651956558228,
2.004110336303711,
-1.5403445959091187,
1.9855172634124756,
0.6471446752548218,
0.004418067634105682,
-1.762105941772461,
-1.9000847339630127,
1.3794058561325073,
1.0739269256591797,
2.281036138534546,
0.5556668043136597,
0.4193519949913025,
-0.8817763328552246,
-0.7039327025413513,
0.2391435205936432,
-0.9229901432991028,
-0.6900538206100464,
0.14477819204330444,
2.4524648189544678,
1.7735214233398438,
-0.391728013753891,
-0.1463700383901596,
-1.0272901058197021,
1.472538709640503,
-0.22413264214992523,
0.296032577753067,
1.9633708000183105,
-0.19710709154605865,
-1.0477186441421509,
1.3101067543029785,
-2.430807590484619,
0.21800540387630463,
1.9894654750823975,
0.25136351585388184,
0.12834864854812622,
-1.3406041860580444,
-0.6989707946777344,
-0.2523651719093323,
-0.3618276119232178,
-1.2168259620666504,
0.5204461216926575,
-0.19417671859264374,
-0.7570129036903381,
-1.4673807621002197,
0.2007729858160019,
-1.1301296949386597,
-1.6235263347625732,
0.19802169501781464,
1.9439700841903687,
2.0469813346862793,
-0.7388483881950378,
1.5983428955078125,
-0.20277033746242523,
0.2316572219133377,
1.25314462184906,
1.2497632503509521,
3.0391342639923096,
1.9332236051559448,
-1.2589603662490845,
0.5884714722633362,
-0.10421610623598099,
-0.4660125970840454,
1.128513216972351,
-1.22151780128479,
1.261224389076233,
-0.1223948746919632,
-1.1922967433929443,
-1.1751385927200317,
0.8911329507827759,
0.4807963967323303,
0.018271759152412415,
-0.4794355034828186,
1.0946100950241089,
-0.017145587131381035,
1.300018072128296,
0.6534950733184814,
-0.3251863121986389,
0.5727750062942505,
-0.3684099316596985,
-0.4896842837333679,
1.5210942029953003,
0.16602595150470734,
-1.4960638284683228,
-2.252255439758301,
-0.23709633946418762,
-0.8344295024871826,
0.02612973004579544,
-0.6469669342041016,
-1.0421806573867798,
1.6097761392593384,
0.3150186836719513,
-1.106411337852478,
-0.25407296419143677,
-0.28113439679145813,
-0.4653162360191345,
2.7521893978118896,
-1.3727673292160034,
-0.369506299495697,
-0.9822364449501038,
-0.6867644190788269,
1.6629829406738281,
-1.140742540359497,
-0.1680440604686737,
-1.047851324081421,
-0.5585007667541504,
-1.2625632286071777,
-0.5022638440132141,
-0.01261946652084589,
-0.9607892036437988,
0.9490216374397278,
0.24997656047344208,
-1.273635745048523,
-0.30040493607521057,
-1.010167121887207,
0.9102311730384827,
-0.20412032306194305,
0.13574881851673126,
1.8789029121398926,
0.3868274986743927,
-0.30071595311164856,
0.8381085395812988,
1.1608433723449707,
0.6595677733421326,
-0.6416675448417664,
0.20485641062259674,
-0.622679591178894,
0.4078461229801178,
-1.2567288875579834,
0.3002992570400238,
-2.8814287185668945,
0.5772916078567505,
-0.04750595986843109,
-0.07260485738515854,
-0.014310870319604874,
-1.3685790300369263,
1.1411206722259521,
2.5246238708496094,
-1.2405511140823364,
0.540179431438446,
0.31308960914611816,
1.3201801776885986,
-1.6488773822784424,
0.30366477370262146,
-0.43925151228904724,
2.146209716796875,
0.11532788723707199,
1.1828489303588867,
-0.4796656668186188,
-2.405769109725952,
0.5725910663604736,
-1.285487413406372,
-1.0892844200134277,
0.5760021805763245,
-0.8826748132705688,
0.17135070264339447,
-1.4390827417373657,
-0.25266918540000916,
-0.8373715281486511,
-1.212345838546753,
0.6514226794242859,
0.14764532446861267,
0.37637996673583984,
-0.5833077430725098,
0.37175679206848145,
-2.2661848068237305,
-1.437279462814331,
-0.2414645552635193,
-0.881189227104187,
0.5709286332130432,
-0.40921708941459656,
0.7099315524101257,
-0.19441565871238708,
-0.0830283835530281,
0.2884077727794647,
1.490281105041504,
3.430873394012451,
0.1405719816684723,
0.3486906588077545,
-0.191218763589859,
-0.962834358215332,
1.4740816354751587,
0.9456469416618347,
-0.09642041474580765,
-0.5491443872451782,
-1.0648458003997803,
1.339535117149353,
2.0104949474334717,
1.0104788541793823,
0.014308185316622257,
-0.7778764963150024,
-0.7166679501533508,
-0.0013722144067287445,
0.21560192108154297,
0.4618178606033325,
0.8817300200462341,
0.11114297062158585,
0.038151782006025314,
1.4403002262115479,
1.1349486112594604,
-0.36639270186424255,
0.31349900364875793,
-0.8439265489578247,
-0.4549533426761627,
0.5096615552902222,
0.22128351032733917,
-0.09854587912559509,
0.32620906829833984,
-1.0784913301467896,
-0.1932654231786728,
-0.38969483971595764,
-0.7888396382331848,
-0.7237638235092163,
-0.30670294165611267,
-0.405322790145874,
1.6498875617980957,
0.24833251535892487,
-0.6347332000732422,
-0.04334746301174164,
-0.682330846786499,
-0.07347244769334793,
-1.0291318893432617,
0.26515859365463257,
-0.1682129204273224,
-0.0963517352938652,
-0.1580209732055664,
1.7363427877426147,
-0.926306426525116,
-2.108243227005005,
0.08693306893110275,
0.2563703656196594,
-0.24405871331691742,
0.1650504767894745,
1.6397802829742432,
0.555199146270752,
1.4672791957855225,
1.3989925384521484,
0.9704632759094238,
-0.6554832458496094,
-1.369896411895752,
0.6247709393501282,
1.0219173431396484,
-1.3660075664520264,
0.7574595808982849,
0.002986043691635132,
-0.5812757015228271,
0.6140861511230469,
1.387833595275879,
0.45213639736175537,
-2.051330804824829,
0.8066007494926453,
-1.0934420824050903,
0.8830718398094177,
0.7621008157730103,
0.7252550721168518,
0.26766717433929443,
0.7512490749359131,
-1.3064016103744507,
-1.0745222568511963,
-0.7645248770713806,
-0.7171022891998291,
2.0211024284362793,
-0.31213074922561646,
0.566371500492096,
-0.13526730239391327,
-1.3239555358886719,
-0.030996102839708328,
0.6026800870895386,
0.3995935022830963,
-0.5054895281791687,
0.743327796459198,
-0.6708906888961792,
-1.1373894214630127,
-1.3377716541290283,
-0.5344031453132629,
-1.0233769416809082,
-0.9924033284187317,
0.9817649126052856,
0.8214259147644043,
0.367506742477417,
1.807085394859314,
0.682091236114502,
0.1905786097049713,
-2.5962562561035156,
0.8878418207168579,
0.339345782995224,
-0.15858958661556244,
0.747962236404419,
0.38450056314468384,
1.112421989440918,
-0.05916773900389671,
0.6365931034088135,
-2.456975221633911,
2.2702832221984863,
-0.21865874528884888,
0.7594698667526245,
-0.051954109221696854,
-0.013750312849879265,
1.040590524673462,
0.5211355090141296,
0.5294734239578247,
-0.9792267084121704,
0.6967198848724365,
-0.5824718475341797,
1.267713189125061,
0.9366497993469238,
-0.7415249347686768,
-0.0008157938718795776,
1.3940365314483643,
0.43769571185112,
-0.6509130597114563,
-0.983001708984375,
-0.9074679613113403,
0.9208577275276184,
1.7006614208221436,
-0.1653354912996292,
-0.002173737622797489,
0.8512538075447083,
0.6234742403030396,
-1.268680453300476,
-0.004062732215970755,
-0.6441185474395752,
-0.6026046872138977,
1.6840944290161133,
2.1201398372650146,
-0.25677773356437683,
-0.16135530173778534,
-0.6934025287628174,
-1.3219597339630127,
0.7064563035964966,
-0.008150614798069,
0.061984408646821976,
0.6571457386016846,
-0.6217408180236816,
1.0545248985290527,
0.7852839231491089,
0.8895999193191528,
0.17373211681842804,
0.24436058104038239,
0.3819495737552643,
-0.42601558566093445,
-1.092199444770813,
-0.26906782388687134,
-1.0757273435592651,
-2.5266270637512207,
0.37727272510528564,
-0.18500027060508728,
-1.4026498794555664,
0.07881521433591843,
-1.0611692667007446,
1.0458030700683594,
-0.5773220062255859,
-1.1405603885650635,
-1.4439078569412231,
0.21610723435878754,
-0.0035534691996872425,
0.8791910409927368,
-1.6585475206375122,
-0.1971995085477829,
1.2269518375396729,
0.9060130715370178,
-0.7073821425437927,
0.9742433428764343,
0.22939425706863403,
1.0474903583526611,
0.7783599495887756,
-0.3462286591529846,
0.5166594982147217,
-0.023816997185349464,
-1.3114570379257202,
0.5055352449417114,
1.2744219303131104,
0.1810510903596878,
1.464521884918213,
-0.5142164826393127,
-0.0740513727068901,
0.4136642813682556,
-0.5035879611968994,
-0.4333741068840027,
-0.48563313484191895,
0.577750563621521,
0.0037860963493585587,
-0.8908194303512573,
-0.006730595137923956,
0.06933529675006866,
-0.24579617381095886,
0.15225788950920105,
-1.513261318206787,
-0.1730610728263855,
-0.3317522406578064,
-0.5933164358139038,
-1.1877479553222656,
-0.15910027921199799,
1.344093680381775,
-0.6787469983100891,
-0.23009413480758667,
0.5877452492713928,
0.34264659881591797,
0.5027912855148315,
0.6106637716293335,
-0.7018746733665466,
-0.32449817657470703,
-0.16287794709205627,
-0.38122275471687317,
0.29338425397872925,
1.4310283660888672,
-0.09995400160551071,
-1.0302542448043823,
0.6759065985679626,
-0.3696446120738983,
0.11928727477788925,
1.8796970844268799,
0.0032298648729920387,
-0.8382757306098938,
0.2579130232334137,
-0.731110692024231,
1.9820353984832764,
1.6909674406051636,
1.3109478950500488,
-0.2079307585954666,
-0.9382466077804565,
0.6484934687614441,
-0.36321312189102173,
-0.3855263590812683,
0.7931091785430908,
0.434207022190094,
-0.21879246830940247,
-1.4250761270523071,
0.7810091972351074,
1.2220083475112915,
-0.8701730966567993,
-0.8362335562705994,
0.2040329873561859,
-0.7865044474601746,
1.2100863456726074,
0.5704458951950073,
0.3885285556316376,
0.26488766074180603,
1.6749430894851685,
0.7839793562889099,
-0.4830368757247925,
0.5305950045585632,
0.5899040699005127,
-0.2549073398113251,
-2.117297649383545,
-1.2228984832763672,
0.2386598438024521,
-0.5105786919593811,
-1.6498724222183228,
1.3856914043426514,
-1.1283546686172485,
-0.9055264592170715,
0.5615368485450745,
0.19742968678474426,
1.441979169845581,
0.47002822160720825,
1.498322606086731,
1.998225212097168,
0.8818400502204895,
0.5101339817047119,
1.26248300075531,
-0.1928892582654953,
-0.4471021890640259,
1.703553318977356,
-0.40576809644699097,
0.49370303750038147,
1.1481244564056396,
-0.34237027168273926,
-1.1551082134246826,
-0.7309965491294861,
-1.2617107629776,
-0.638624906539917,
1.1259101629257202,
0.08125753700733185,
-1.114267110824585,
0.2880176603794098,
1.5262247323989868,
0.02963348478078842,
-0.4066013991832733,
0.6983596086502075,
0.3855864703655243,
-0.8493353724479675,
-0.09340010583400726,
-0.9615633487701416,
0.5154450535774231,
-0.2743864357471466,
-0.3399408161640167,
0.386542946100235,
0.47912752628326416,
1.3820343017578125,
0.00368392001837492,
0.17814098298549652,
1.106298804283142,
-1.4593685865402222,
1.4869871139526367,
-0.7667415738105774,
0.3007473647594452,
-2.322366237640381,
1.3242570161819458,
-0.7571386694908142,
1.9956679344177246,
-2.651571750640869,
0.4268435835838318,
-0.5761978626251221,
-0.4257076680660248,
0.28473302721977234,
-0.30411839485168457,
0.09652189165353775,
-0.056351952254772186,
-1.1823700666427612,
-0.030381660908460617,
-0.67929607629776,
0.48431849479675293,
1.2265324592590332,
1.3401774168014526,
-1.0505659580230713,
-0.24285544455051422,
-1.713810682296753,
-0.14679966866970062,
-0.7274350523948669,
0.2961518168449402,
-1.9785172939300537,
-0.19305777549743652,
-1.7888380289077759,
-2.335594415664673,
-1.2202625274658203,
-0.8405134677886963,
1.1834405660629272,
0.09546074271202087,
-0.9177148938179016,
1.3848637342453003,
-0.32166236639022827,
-1.8208314180374146,
1.144755482673645,
-2.1944212913513184
] |
https://github.com/huggingface/datasets/issues/5281 | Support cloud storage in load_dataset | Or for example an archive on GitHub releases! Before I added support for JXL (locally only, PR still pending) I was considering hosting my files on GitHub instead... | Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2) | 400 | 28 | Support cloud storage in load_dataset
Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2)
Or for example an archive on GitHub releases! Before I added support for JXL (locally only, PR still pending) I was considering hosting my files on GitHub instead... | [
-1.1481211185455322,
-0.8668554425239563,
-0.7009403109550476,
1.5864934921264648,
-0.11684641242027283,
-1.2785141468048096,
0.226686030626297,
-0.9447305202484131,
1.6145557165145874,
-0.7712887525558472,
0.4066356420516968,
-1.7100402116775513,
0.02905506268143654,
-0.5384873747825623,
-0.7861442565917969,
-0.9036567211151123,
-0.4506279230117798,
-0.6565319895744324,
0.9927622675895691,
2.446319818496704,
1.2850627899169922,
-1.3281017541885376,
2.6316442489624023,
0.6300913095474243,
-0.22163040935993195,
-1.0581295490264893,
0.4801023006439209,
0.12187383323907852,
-1.2089464664459229,
-0.3780972361564636,
-0.8897010087966919,
-0.10756507515907288,
-0.5489991307258606,
-0.59312903881073,
0.08256913721561432,
0.4705795645713806,
-0.2889214754104614,
-0.36663201451301575,
-0.48755523562431335,
-0.7942289113998413,
0.5367910265922546,
-0.35954082012176514,
0.9649052619934082,
-0.35625389218330383,
1.7971954345703125,
-0.6698997616767883,
0.5113757848739624,
0.6309899091720581,
1.330331563949585,
0.15235410630702972,
-0.020786438137292862,
0.31250494718551636,
0.40259435772895813,
0.09247604012489319,
0.5106335282325745,
1.1493951082229614,
0.5853907465934753,
0.5130583643913269,
0.6673243641853333,
-2.2122249603271484,
1.327008605003357,
-1.0212126970291138,
0.21938326954841614,
1.3114559650421143,
-0.9862840175628662,
0.34832024574279785,
-1.752159595489502,
-0.12012741714715958,
0.5419427752494812,
-2.2429215908050537,
0.17482620477676392,
-1.3028546571731567,
-0.5110159516334534,
1.030669927597046,
0.30954626202583313,
-1.2707958221435547,
0.2451297640800476,
-0.39184045791625977,
0.9904362559318542,
0.5019175410270691,
1.072965383529663,
-1.69101083278656,
0.0616406574845314,
-0.1964433342218399,
0.14844506978988647,
-1.3209670782089233,
-1.5177465677261353,
0.5314359664916992,
0.6474748253822327,
0.6673679351806641,
-0.13682182133197784,
0.9567136764526367,
-0.9475524425506592,
0.8776325583457947,
-1.0056161880493164,
-1.7030853033065796,
-1.3594529628753662,
-2.298905372619629,
-2.412445068359375,
0.8043344616889954,
-0.4381001889705658,
-0.43029412627220154,
1.9564948081970215,
-0.9965420961380005,
-1.819955587387085,
1.0114338397979736,
0.24541404843330383,
-0.03251007944345474,
2.297456979751587,
0.18845869600772858,
-0.7333171367645264,
0.4584215581417084,
-0.7851806282997131,
0.7116727232933044,
-0.3485608994960785,
1.3946861028671265,
0.5854325890541077,
-1.1426745653152466,
1.6542468070983887,
-0.3823343813419342,
0.5651026368141174,
-0.7382493019104004,
-0.5426225662231445,
-0.7438278794288635,
0.2568938732147217,
1.9695448875427246,
-0.35989347100257874,
1.5749237537384033,
-0.2900141179561615,
-1.519872784614563,
-1.5113226175308228,
0.8953155875205994,
0.47457990050315857,
-0.7665478587150574,
0.11909084767103195,
-0.33380770683288574,
0.08921580761671066,
-0.025203395634889603,
1.1566733121871948,
1.2012401819229126,
0.7644763588905334,
-0.36181893944740295,
-0.7852552533149719,
0.23953673243522644,
-0.004897049628198147,
-0.602109968662262,
-1.8486582040786743,
-0.387725830078125,
0.3181186616420746,
0.6300457119941711,
-1.166082739830017,
1.8338919878005981,
0.791850209236145,
1.9280370473861694,
1.0009289979934692,
-0.38449808955192566,
1.5369644165039062,
-0.05281350761651993,
1.9462462663650513,
-0.4940968453884125,
0.6572935581207275,
-0.36991551518440247,
-1.1628438234329224,
0.803868293762207,
-0.28214332461357117,
-2.010028600692749,
-0.707240104675293,
-0.8531591892242432,
-0.1501448005437851,
-0.754736065864563,
0.9656701683998108,
-0.21965758502483368,
-1.488256812095642,
0.14505155384540558,
-0.6639744639396667,
0.19213484227657318,
-1.2180750370025635,
0.275236576795578,
0.7868341207504272,
-0.675059974193573,
0.03712574020028114,
-0.2506014406681061,
-1.322408676147461,
-0.5663432478904724,
0.41968652606010437,
1.861520767211914,
-0.7145711183547974,
0.9751464128494263,
1.012630581855774,
-0.7698503136634827,
0.045706696808338165,
0.31723129749298096,
-0.38131803274154663,
0.7801880240440369,
-1.0137829780578613,
-0.4260566234588623,
1.1935988664627075,
-0.2263563871383667,
-0.6762073636054993,
1.4932024478912354,
0.8374606966972351,
-0.9195566177368164,
-0.19883091747760773,
-0.2661485970020294,
-0.7607130408287048,
0.005234303884208202,
-1.5190019607543945,
-0.1267155110836029,
0.34703925251960754,
-1.4779704809188843,
-0.4300491213798523,
-0.18097534775733948,
1.3210885524749756,
-0.24700525403022766,
1.4674805402755737,
-0.16251374781131744,
-0.2875589430332184,
-0.35830575227737427,
-0.4309236407279968,
0.15524370968341827,
-0.13519375026226044,
-0.6728672385215759,
0.2933848202228546,
-0.7874501347541809,
0.4180130660533905,
1.421534538269043,
0.25848454236984253,
0.053136877715587616,
0.5201995968818665,
1.1578973531723022,
0.3362824022769928,
-0.08942770212888718,
-0.916026771068573,
-1.6135284900665283,
2.0288517475128174,
-1.330888032913208,
2.011482000350952,
0.665935218334198,
-0.11657462269067764,
-1.8005576133728027,
-1.8161342144012451,
1.3655483722686768,
1.1287105083465576,
2.4132978916168213,
0.5936917662620544,
0.33977022767066956,
-0.7803725600242615,
-0.6700421571731567,
0.3240446448326111,
-1.0080338716506958,
-0.7335383892059326,
0.19084779918193817,
2.3822617530822754,
1.7530945539474487,
-0.5864858627319336,
-0.23834066092967987,
-1.0833649635314941,
1.393160104751587,
-0.30176466703414917,
0.24879053235054016,
2.049508571624756,
-0.2729170024394989,
-1.064239501953125,
1.314658761024475,
-2.3911194801330566,
0.25980255007743835,
2.063262701034546,
0.2392510324716568,
0.03948820382356644,
-1.4495530128479004,
-0.6475154757499695,
-0.25712811946868896,
-0.5425293445587158,
-1.2358477115631104,
0.46088454127311707,
-0.22167935967445374,
-0.8832960724830627,
-1.3682893514633179,
0.08624108135700226,
-1.1096599102020264,
-1.7410309314727783,
0.33793535828590393,
1.8459643125534058,
1.9656301736831665,
-0.7328092455863953,
1.4813379049301147,
-0.27042579650878906,
0.1750076562166214,
1.3306455612182617,
1.286690354347229,
3.1090476512908936,
1.8947985172271729,
-1.2327440977096558,
0.7977451682090759,
-0.21675150096416473,
-0.5049322247505188,
1.2971439361572266,
-1.1038669347763062,
1.2110347747802734,
-0.25561171770095825,
-1.2254893779754639,
-1.319626808166504,
1.0569223165512085,
0.47746986150741577,
0.10262373089790344,
-0.5481064319610596,
1.182267665863037,
0.2018890380859375,
1.293381690979004,
0.5455100536346436,
-0.3562517464160919,
0.5667657256126404,
-0.3771476745605469,
-0.5146862268447876,
1.5600545406341553,
0.17024460434913635,
-1.4395840167999268,
-2.313323497772217,
-0.19219271838665009,
-0.9238561987876892,
-0.14578592777252197,
-0.5738171935081482,
-1.0060114860534668,
1.6092157363891602,
0.46666401624679565,
-1.251006841659546,
-0.18908540904521942,
-0.30231085419654846,
-0.5916355848312378,
2.7612318992614746,
-1.3180676698684692,
-0.16449511051177979,
-1.0025122165679932,
-0.6570417881011963,
1.6854692697525024,
-1.206764817237854,
-0.1667058914899826,
-1.0023629665374756,
-0.5774002075195312,
-1.4308720827102661,
-0.5280861854553223,
-0.0001145973801612854,
-0.9065452218055725,
0.6638407111167908,
0.03509941324591637,
-1.1738835573196411,
-0.3893072009086609,
-0.8354965448379517,
0.9495676755905151,
-0.13751983642578125,
0.22009293735027313,
1.871277928352356,
0.444673627614975,
-0.3780933916568756,
0.7217596769332886,
1.121996521949768,
0.6158176064491272,
-0.610476016998291,
0.3157593905925751,
-0.7003547549247742,
0.22389979660511017,
-1.388779878616333,
0.2829197645187378,
-2.8640379905700684,
0.6653660535812378,
-0.06065523624420166,
-0.157969132065773,
-0.11747077852487564,
-1.317380428314209,
1.1315301656723022,
2.618232011795044,
-1.2279127836227417,
0.4426858723163605,
0.3788059651851654,
1.107851505279541,
-1.500313639640808,
0.2171625941991806,
-0.4193185865879059,
2.0984723567962646,
0.172034353017807,
1.1688919067382812,
-0.4750971794128418,
-2.152801036834717,
0.6141983866691589,
-1.2445323467254639,
-1.1443723440170288,
0.8124800324440002,
-0.8545138239860535,
0.14293049275875092,
-1.372117519378662,
-0.13195830583572388,
-0.9244540333747864,
-1.2829617261886597,
0.7596752047538757,
0.08432886004447937,
0.4620518386363983,
-0.5743721127510071,
0.41337621212005615,
-2.1316115856170654,
-1.3649200201034546,
-0.2125721424818039,
-0.9558777213096619,
0.4781709313392639,
-0.2815626263618469,
0.6180368661880493,
-0.11941326409578323,
0.019877344369888306,
0.250131756067276,
1.4696191549301147,
3.342357635498047,
0.16467298567295074,
0.27162888646125793,
-0.08887028694152832,
-0.9738255143165588,
1.4748308658599854,
0.9616311192512512,
-0.11555863916873932,
-0.5047912001609802,
-0.9527596831321716,
1.2314136028289795,
2.007702112197876,
1.0851490497589111,
0.07555876672267914,
-0.8943766951560974,
-0.8442047238349915,
0.04607093334197998,
0.10926540195941925,
0.5202161073684692,
0.9430499076843262,
0.08246900886297226,
0.05308128148317337,
1.2952061891555786,
1.2752920389175415,
-0.31651437282562256,
0.4021369218826294,
-0.9230685234069824,
-0.3578648567199707,
0.46439722180366516,
0.307833194732666,
0.0714101642370224,
0.47263094782829285,
-1.029166579246521,
-0.2001790553331375,
-0.33002105355262756,
-0.9424610733985901,
-0.7982591986656189,
-0.5307523608207703,
-0.4949139356613159,
1.6565033197402954,
-0.036743853241205215,
-0.497700035572052,
0.01011666003614664,
-0.8193534016609192,
-0.12956532835960388,
-0.9453677535057068,
0.24187982082366943,
-0.11565650254487991,
-0.031727273017168045,
-0.15006744861602783,
1.698184609413147,
-1.0102460384368896,
-2.1545209884643555,
0.24040591716766357,
0.21883291006088257,
-0.5122646689414978,
0.21610035002231598,
1.6547726392745972,
0.5172787308692932,
1.4051319360733032,
1.3723118305206299,
1.0143181085586548,
-0.5879356861114502,
-1.271315097808838,
0.6677052974700928,
0.9496541023254395,
-1.4799065589904785,
0.8907726407051086,
-0.032521720975637436,
-0.40597695112228394,
0.6703388094902039,
1.148687720298767,
0.3652079403400421,
-1.9947044849395752,
0.7121455669403076,
-0.8672499656677246,
0.7713488936424255,
0.680950939655304,
0.7425566911697388,
0.2074083387851715,
0.8812575936317444,
-1.2187867164611816,
-1.0730431079864502,
-0.7521125078201294,
-0.6164857149124146,
1.8744637966156006,
-0.2191777229309082,
0.5734256505966187,
-0.15159708261489868,
-1.3032714128494263,
-0.11445445567369461,
0.8349259495735168,
0.3945457935333252,
-0.5206882953643799,
0.8710095882415771,
-0.6214559078216553,
-0.9808835387229919,
-1.2466833591461182,
-0.5594086050987244,
-1.0098624229431152,
-0.8926541209220886,
0.9991088509559631,
0.7981058359146118,
0.4122796654701233,
1.9174515008926392,
0.5779736042022705,
0.2629813253879547,
-2.732145309448242,
0.8357405066490173,
0.25279882550239563,
0.0508318692445755,
0.9063307046890259,
0.27804845571517944,
1.0801912546157837,
-0.17493247985839844,
0.6592890024185181,
-2.389702320098877,
2.193669557571411,
-0.2208225578069687,
0.5733994245529175,
-0.0038553480990231037,
-0.17451192438602448,
1.0723063945770264,
0.5267337560653687,
0.5803911089897156,
-1.2016175985336304,
0.7584781050682068,
-0.6275869607925415,
1.2108893394470215,
0.8042886257171631,
-0.9092167615890503,
-0.026896066963672638,
1.4101849794387817,
0.45902490615844727,
-0.35833504796028137,
-0.9421954154968262,
-0.8980954885482788,
0.9379957914352417,
1.6120136976242065,
-0.054182641208171844,
-0.05220518633723259,
0.9907774329185486,
0.6550719141960144,
-1.4019356966018677,
0.09287342429161072,
-0.7050525546073914,
-0.6282249689102173,
1.7778280973434448,
2.01747989654541,
-0.08000607788562775,
-0.20341213047504425,
-0.8254320025444031,
-1.1429872512817383,
0.7748686671257019,
0.07329080253839493,
0.023145757615566254,
0.6817076802253723,
-0.6821416616439819,
1.1210665702819824,
0.7716817259788513,
0.9472336769104004,
0.12220830470323563,
0.35822975635528564,
0.28427621722221375,
-0.412474125623703,
-1.2559738159179688,
-0.32534483075141907,
-1.128928780555725,
-2.604980707168579,
0.43148812651634216,
-0.30150744318962097,
-1.4054009914398193,
0.06393420696258545,
-1.1617323160171509,
0.787630021572113,
-0.6387720108032227,
-1.1583529710769653,
-1.3803976774215698,
0.2357051819562912,
-0.139876127243042,
0.9269894957542419,
-1.6233888864517212,
0.018771696835756302,
1.20184326171875,
0.8709332346916199,
-0.6334418654441833,
0.9806773066520691,
0.26408109068870544,
1.0558569431304932,
0.8711867928504944,
-0.3593827188014984,
0.5819743275642395,
0.13160723447799683,
-1.386271595954895,
0.4886207580566406,
1.166319489479065,
0.2102428823709488,
1.4212392568588257,
-0.581210196018219,
0.1299165040254593,
0.45407673716545105,
-0.67351233959198,
-0.555485725402832,
-0.6050406694412231,
0.7429256439208984,
0.04067607969045639,
-1.016570806503296,
0.06776493042707443,
-0.03962511941790581,
-0.14785785973072052,
0.17386190593242645,
-1.523728847503662,
-0.17199110984802246,
-0.2593667209148407,
-0.6376280188560486,
-1.2316316366195679,
0.006183789111673832,
1.2413359880447388,
-0.7701744437217712,
-0.11556614935398102,
0.4885713756084442,
0.29989683628082275,
0.5535961389541626,
0.5374098420143127,
-0.6816171407699585,
-0.32920578122138977,
-0.34893593192100525,
-0.318507581949234,
0.3950250446796417,
1.2677706480026245,
-0.11682584136724472,
-0.9861491918563843,
0.766781210899353,
-0.41480138897895813,
0.11509547382593155,
2.0221924781799316,
0.020934022963047028,
-0.7975702881813049,
0.3179776966571808,
-0.6743183732032776,
1.8453689813613892,
1.752630591392517,
1.3320103883743286,
-0.08412124961614609,
-0.8987663984298706,
0.5413809418678284,
-0.35351866483688354,
-0.39049506187438965,
0.9026092886924744,
0.4110518991947174,
-0.1925056427717209,
-1.3079653978347778,
0.6236487030982971,
1.3282276391983032,
-0.8985413312911987,
-0.8092697262763977,
0.18258413672447205,
-0.862099826335907,
1.130051612854004,
0.6781629323959351,
0.31176626682281494,
0.2514565587043762,
1.524694561958313,
0.691864013671875,
-0.3911636471748352,
0.5300915837287903,
0.4918527603149414,
-0.2095097303390503,
-2.0180447101593018,
-1.12569260597229,
0.34414738416671753,
-0.5201625823974609,
-1.5983192920684814,
1.3143203258514404,
-1.226517915725708,
-0.9345418214797974,
0.5570786595344543,
0.18414689600467682,
1.4963895082473755,
0.2944648563861847,
1.6111493110656738,
2.046154022216797,
0.8338536024093628,
0.31258150935173035,
1.2876458168029785,
-0.047030746936798096,
-0.48288196325302124,
1.7956455945968628,
-0.4897041618824005,
0.6154071092605591,
1.1010679006576538,
-0.29618513584136963,
-1.0339038372039795,
-0.9068283438682556,
-1.233160376548767,
-0.5866440534591675,
1.2026605606079102,
0.17706720530986786,
-1.0980907678604126,
0.22541864216327667,
1.5709208250045776,
0.05523703992366791,
-0.27631470561027527,
0.6467990279197693,
0.3267456889152527,
-0.7340075373649597,
-0.0013823583722114563,
-0.9022670388221741,
0.5359078049659729,
-0.15488362312316895,
-0.3083142042160034,
0.2934453785419464,
0.4419426918029785,
1.1500540971755981,
-0.03461441397666931,
0.18364572525024414,
1.2338672876358032,
-1.412800669670105,
1.5369703769683838,
-0.6659954190254211,
0.36436548829078674,
-2.3795278072357178,
1.3882509469985962,
-0.8738741874694824,
1.8910515308380127,
-2.6321847438812256,
0.38468077778816223,
-0.5021625757217407,
-0.519385576248169,
0.21569497883319855,
-0.4548799991607666,
0.0747348889708519,
-0.16444814205169678,
-1.0882195234298706,
-0.04989137127995491,
-0.8722133636474609,
0.5533193349838257,
1.1579065322875977,
1.3775970935821533,
-1.137233853340149,
-0.33749035000801086,
-1.8265886306762695,
-0.10878860950469971,
-0.6790908575057983,
0.45907410979270935,
-1.8995286226272583,
-0.12184049934148788,
-1.9434025287628174,
-2.436624765396118,
-1.3560534715652466,
-0.8034421801567078,
0.9996502995491028,
0.05200815200805664,
-0.8482086658477783,
1.0853850841522217,
-0.3473244905471802,
-1.8188457489013672,
1.1273400783538818,
-2.204890489578247
] |
https://github.com/huggingface/datasets/issues/5281 | Support cloud storage in load_dataset | +1 to this. I would like to use 'audiofolder' with a data_dir that's on S3, for example. I don't want to upload my dataset to the Hub, but I would find all the fingerprinting/caching features useful. | Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2) | 400 | 36 | Support cloud storage in load_dataset
Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2)
+1 to this. I would like to use 'audiofolder' with a data_dir that's on S3, for example. I don't want to upload my dataset to the Hub, but I would find all the fingerprinting/caching features useful. | [
-1.1301863193511963,
-0.887853741645813,
-0.7564798593521118,
1.556461215019226,
-0.11461750417947769,
-1.2745490074157715,
0.21984700858592987,
-0.9521751403808594,
1.6449880599975586,
-0.7799682021141052,
0.39993906021118164,
-1.7132654190063477,
0.010704532265663147,
-0.5761101841926575,
-0.7987145781517029,
-0.8848809003829956,
-0.43724697828292847,
-0.638944149017334,
0.9531275033950806,
2.4484755992889404,
1.237762689590454,
-1.3993531465530396,
2.6597790718078613,
0.6446720957756042,
-0.1424340009689331,
-1.0735787153244019,
0.46721452474594116,
0.10786064714193344,
-1.21195650100708,
-0.3680335283279419,
-0.8609476685523987,
-0.06882712990045547,
-0.6124504804611206,
-0.5929942727088928,
0.1000719964504242,
0.46258097887039185,
-0.2868746519088745,
-0.3839341998100281,
-0.516703724861145,
-0.7627683281898499,
0.5462228655815125,
-0.4001144766807556,
0.974680483341217,
-0.34564340114593506,
1.786669135093689,
-0.6062611937522888,
0.48663240671157837,
0.703368604183197,
1.3590030670166016,
0.16630224883556366,
0.01989895850419998,
0.3257558345794678,
0.4195789694786072,
0.04264894872903824,
0.4883190393447876,
1.1356749534606934,
0.5365025997161865,
0.5159337520599365,
0.661887526512146,
-2.2748258113861084,
1.3152459859848022,
-1.0448071956634521,
0.2731397747993469,
1.2940032482147217,
-0.9710147380828857,
0.3778333067893982,
-1.7940008640289307,
-0.09752483665943146,
0.5798624157905579,
-2.2071309089660645,
0.19858668744564056,
-1.2717938423156738,
-0.4928247928619385,
0.9767856001853943,
0.2862023711204529,
-1.2473094463348389,
0.22026988863945007,
-0.4119694232940674,
1.0226582288742065,
0.49846208095550537,
1.1005500555038452,
-1.7279713153839111,
0.08970003575086594,
-0.22506630420684814,
0.13883547484874725,
-1.303909182548523,
-1.5379952192306519,
0.5252541899681091,
0.6395387053489685,
0.620819628238678,
-0.1261427402496338,
0.9509117007255554,
-0.9835423231124878,
0.8597848415374756,
-1.0213465690612793,
-1.6953316926956177,
-1.376713514328003,
-2.2726058959960938,
-2.4090347290039062,
0.7528173327445984,
-0.43756407499313354,
-0.42563360929489136,
1.946344017982483,
-0.9909713268280029,
-1.8114081621170044,
1.0540930032730103,
0.2714918851852417,
-0.019363773986697197,
2.285529136657715,
0.15635405480861664,
-0.719120979309082,
0.48432254791259766,
-0.7687931656837463,
0.7383130192756653,
-0.35085976123809814,
1.3693643808364868,
0.5677267909049988,
-1.0888845920562744,
1.6736421585083008,
-0.4043835401535034,
0.5691702365875244,
-0.7494078278541565,
-0.4961342215538025,
-0.783847987651825,
0.24132756888866425,
1.9168912172317505,
-0.3355363607406616,
1.555662989616394,
-0.2908852696418762,
-1.5111051797866821,
-1.547484040260315,
0.9239155054092407,
0.4627200961112976,
-0.7810669541358948,
0.08497697860002518,
-0.37193870544433594,
0.13170403242111206,
-0.045344073325395584,
1.1401509046554565,
1.1816169023513794,
0.7438531517982483,
-0.37300193309783936,
-0.8235529065132141,
0.22297637164592743,
-0.019682658836245537,
-0.591184675693512,
-1.883750557899475,
-0.35608959197998047,
0.2923719882965088,
0.6136390566825867,
-1.1831074953079224,
1.8229870796203613,
0.8114486336708069,
1.9586011171340942,
1.0010908842086792,
-0.37955760955810547,
1.5315700769424438,
-0.031674861907958984,
1.944015622138977,
-0.48954474925994873,
0.6428579092025757,
-0.3424251675605774,
-1.1337559223175049,
0.8182370662689209,
-0.2915896773338318,
-2.0374269485473633,
-0.7103941440582275,
-0.8465247750282288,
-0.18288907408714294,
-0.7361525893211365,
0.953652024269104,
-0.19799746572971344,
-1.502683401107788,
0.14354056119918823,
-0.6405823230743408,
0.17923115193843842,
-1.185325264930725,
0.2732664942741394,
0.7504898905754089,
-0.7182276844978333,
0.06227985769510269,
-0.2872610092163086,
-1.3568974733352661,
-0.5268856287002563,
0.4196472764015198,
1.8555766344070435,
-0.69626784324646,
0.931502640247345,
0.9721951484680176,
-0.7540903091430664,
0.04413852468132973,
0.2874610424041748,
-0.3369513750076294,
0.7840427160263062,
-1.0278677940368652,
-0.47027909755706787,
1.1921411752700806,
-0.23821304738521576,
-0.7036673426628113,
1.4872362613677979,
0.8322939276695251,
-0.9454073905944824,
-0.17446483671665192,
-0.26052671670913696,
-0.7877606749534607,
-0.004890928044915199,
-1.518411636352539,
-0.10171672701835632,
0.32175755500793457,
-1.4701390266418457,
-0.43177884817123413,
-0.21482360363006592,
1.2748957872390747,
-0.22539456188678741,
1.4712599515914917,
-0.18601475656032562,
-0.2935050129890442,
-0.3663773536682129,
-0.4521765112876892,
0.18564294278621674,
-0.1194952055811882,
-0.7164245247840881,
0.2556731700897217,
-0.8084269762039185,
0.4303401708602905,
1.3997608423233032,
0.27947282791137695,
0.05100512504577637,
0.5493083000183105,
1.1600425243377686,
0.3697308897972107,
-0.030001714825630188,
-0.9081001281738281,
-1.571323275566101,
1.9969762563705444,
-1.3243558406829834,
1.9965332746505737,
0.6599367260932922,
-0.08879401534795761,
-1.8047300577163696,
-1.7856937646865845,
1.377394437789917,
1.1372911930084229,
2.400200366973877,
0.5458109378814697,
0.3445799946784973,
-0.7919079661369324,
-0.720898449420929,
0.3447384834289551,
-0.9610258936882019,
-0.7271836996078491,
0.14900891482830048,
2.356621026992798,
1.773869276046753,
-0.5668696761131287,
-0.21013489365577698,
-1.0799000263214111,
1.40155029296875,
-0.26089245080947876,
0.27338701486587524,
2.0687832832336426,
-0.2805178165435791,
-1.0717254877090454,
1.32680082321167,
-2.409733533859253,
0.27265602350234985,
2.0354843139648438,
0.21613042056560516,
0.02653665468096733,
-1.4233276844024658,
-0.6954971551895142,
-0.251269668340683,
-0.4845999479293823,
-1.2658392190933228,
0.48037683963775635,
-0.24733033776283264,
-0.8623580932617188,
-1.4114922285079956,
0.07680115848779678,
-1.1324574947357178,
-1.687701940536499,
0.3394060730934143,
1.8859643936157227,
2.006342649459839,
-0.7069960236549377,
1.4717154502868652,
-0.24163572490215302,
0.19421960413455963,
1.333916425704956,
1.267706274986267,
3.0958266258239746,
1.8934406042099,
-1.23671293258667,
0.7591648101806641,
-0.19788384437561035,
-0.5450692176818848,
1.2896592617034912,
-1.0763695240020752,
1.194780707359314,
-0.2515668570995331,
-1.1897292137145996,
-1.3017085790634155,
1.0617389678955078,
0.4793475270271301,
0.08313953876495361,
-0.5398932695388794,
1.1942322254180908,
0.17125391960144043,
1.3066041469573975,
0.5751493573188782,
-0.40911757946014404,
0.5734676718711853,
-0.36126601696014404,
-0.5439278483390808,
1.5729625225067139,
0.13929390907287598,
-1.4307994842529297,
-2.329023838043213,
-0.20143839716911316,
-0.9217122793197632,
-0.1270069032907486,
-0.6003275513648987,
-0.9894039630889893,
1.6171655654907227,
0.42741328477859497,
-1.276145339012146,
-0.20421788096427917,
-0.32485681772232056,
-0.5987632870674133,
2.7102863788604736,
-1.3104900121688843,
-0.22377169132232666,
-1.0187110900878906,
-0.6220697164535522,
1.6481913328170776,
-1.1799521446228027,
-0.15464287996292114,
-1.0384474992752075,
-0.5778710842132568,
-1.4509607553482056,
-0.5160810947418213,
0.006303487345576286,
-0.8966094851493835,
0.7241002917289734,
0.028996635228395462,
-1.1967904567718506,
-0.37180471420288086,
-0.8872761130332947,
0.9251712560653687,
-0.14903832972049713,
0.25835615396499634,
1.854565978050232,
0.44036442041397095,
-0.39109206199645996,
0.71926349401474,
1.118457317352295,
0.6620039939880371,
-0.6206465363502502,
0.2900775671005249,
-0.6949576735496521,
0.2318778932094574,
-1.3570584058761597,
0.28350234031677246,
-2.8759140968322754,
0.710138738155365,
-0.06354115903377533,
-0.1346065104007721,
-0.10185127705335617,
-1.3212891817092896,
1.0859096050262451,
2.589175224304199,
-1.2328790426254272,
0.4162362217903137,
0.3891332745552063,
1.1454532146453857,
-1.517055630683899,
0.2428942769765854,
-0.43224483728408813,
2.0987539291381836,
0.1723104566335678,
1.1528375148773193,
-0.49742811918258667,
-2.147891044616699,
0.5846596956253052,
-1.2388588190078735,
-1.1656426191329956,
0.8330563306808472,
-0.8284383416175842,
0.16936473548412323,
-1.3896234035491943,
-0.14155155420303345,
-0.9527660012245178,
-1.289467215538025,
0.7847342491149902,
0.12930822372436523,
0.4531327486038208,
-0.5802096724510193,
0.4059290885925293,
-2.171935796737671,
-1.3744255304336548,
-0.24725966155529022,
-0.9498612284660339,
0.49667787551879883,
-0.2848065495491028,
0.6440137028694153,
-0.12257112562656403,
0.04568885639309883,
0.25008904933929443,
1.4451234340667725,
3.3898651599884033,
0.19965188205242157,
0.31941288709640503,
-0.11585403978824615,
-0.9520233273506165,
1.5054665803909302,
0.955083429813385,
-0.09578837454319,
-0.49817991256713867,
-1.008868932723999,
1.2688806056976318,
2.016037702560425,
1.1105588674545288,
0.08677665889263153,
-0.8776336908340454,
-0.7925414443016052,
0.0165352001786232,
0.10148591548204422,
0.48607730865478516,
0.9436277151107788,
0.09953595697879791,
0.09095906466245651,
1.3487656116485596,
1.313542366027832,
-0.3321956992149353,
0.4006578326225281,
-0.8919192552566528,
-0.36925411224365234,
0.4690208435058594,
0.3241656422615051,
0.06104862689971924,
0.4158424735069275,
-1.050280213356018,
-0.20062585175037384,
-0.398662805557251,
-0.9324167966842651,
-0.7817581295967102,
-0.5286098122596741,
-0.5066115260124207,
1.6518774032592773,
0.04408760368824005,
-0.5043811798095703,
-0.007244533393532038,
-0.7818568348884583,
-0.09087427705526352,
-0.9635169506072998,
0.2610277533531189,
-0.12895168364048004,
-0.03449765592813492,
-0.18899738788604736,
1.6987700462341309,
-1.0178427696228027,
-2.1483850479125977,
0.1953125,
0.22718536853790283,
-0.462285578250885,
0.21657706797122955,
1.6386065483093262,
0.5031107664108276,
1.393784523010254,
1.387328863143921,
0.9893144965171814,
-0.6028624176979065,
-1.2726867198944092,
0.6273766160011292,
0.9520161151885986,
-1.4579066038131714,
0.8709675669670105,
0.003558090887963772,
-0.46691060066223145,
0.7164784669876099,
1.1727495193481445,
0.3341395854949951,
-2.0305373668670654,
0.698308527469635,
-0.8482145667076111,
0.7627933025360107,
0.6695321202278137,
0.7445490956306458,
0.2282366156578064,
0.8700274229049683,
-1.2184677124023438,
-1.08298921585083,
-0.7607653737068176,
-0.606092631816864,
1.8949633836746216,
-0.25080418586730957,
0.5880953073501587,
-0.15198326110839844,
-1.3158239126205444,
-0.10087248682975769,
0.8147567510604858,
0.41775184869766235,
-0.5149083733558655,
0.830906093120575,
-0.6224533319473267,
-1.0224493741989136,
-1.2507389783859253,
-0.5295984148979187,
-1.049230933189392,
-0.8949902653694153,
1.0106440782546997,
0.8043146729469299,
0.4094468951225281,
1.9021004438400269,
0.5833903551101685,
0.2573714256286621,
-2.7635018825531006,
0.8585766553878784,
0.2636888027191162,
0.039906226098537445,
0.8614052534103394,
0.3013424277305603,
1.1250178813934326,
-0.1482313573360443,
0.69432133436203,
-2.4065535068511963,
2.1895358562469482,
-0.226385697722435,
0.6193798184394836,
-0.05784979835152626,
-0.15727116167545319,
1.1115522384643555,
0.5217414498329163,
0.571955680847168,
-1.1436890363693237,
0.746692419052124,
-0.6226102113723755,
1.187493920326233,
0.858144998550415,
-0.8928045034408569,
-0.02136426977813244,
1.3966220617294312,
0.4660186171531677,
-0.36386018991470337,
-0.9567822217941284,
-0.8472504615783691,
0.9357249736785889,
1.6508946418762207,
-0.07908326387405396,
-0.04357085004448891,
0.9826584458351135,
0.662153959274292,
-1.360332727432251,
0.10285090655088425,
-0.7085887789726257,
-0.6660777926445007,
1.7394845485687256,
2.001729965209961,
-0.10019619017839432,
-0.1814199835062027,
-0.8241462707519531,
-1.192650318145752,
0.7727648615837097,
0.07968080788850784,
0.04728125408291817,
0.679402768611908,
-0.6660509705543518,
1.0983147621154785,
0.7177424430847168,
0.9525303244590759,
0.06560688465833664,
0.3449958562850952,
0.326153039932251,
-0.39486193656921387,
-1.238945484161377,
-0.3125351667404175,
-1.1249723434448242,
-2.5392191410064697,
0.4270625710487366,
-0.28502321243286133,
-1.4453539848327637,
0.05165533348917961,
-1.1103724241256714,
0.8235771656036377,
-0.6001002788543701,
-1.1772801876068115,
-1.4238884449005127,
0.2573222517967224,
-0.11992257833480835,
0.8857071995735168,
-1.6212897300720215,
0.019283581525087357,
1.1890136003494263,
0.8670466542243958,
-0.6049613356590271,
0.9838871359825134,
0.2534938454627991,
1.0025616884231567,
0.876521646976471,
-0.3393104672431946,
0.5472722053527832,
0.12260529398918152,
-1.3591208457946777,
0.461994469165802,
1.1477749347686768,
0.2108115404844284,
1.418843388557434,
-0.5656757950782776,
0.14507491886615753,
0.4325217008590698,
-0.6380854249000549,
-0.5144373774528503,
-0.584558367729187,
0.7430751323699951,
0.025365568697452545,
-0.9832095503807068,
0.04815581068396568,
-0.03905635327100754,
-0.16189929842948914,
0.15662804245948792,
-1.4873005151748657,
-0.16339421272277832,
-0.2767897844314575,
-0.6403301358222961,
-1.2059139013290405,
0.0028625214472413063,
1.2653285264968872,
-0.717888593673706,
-0.14758290350437164,
0.5232585668563843,
0.34251564741134644,
0.5634124875068665,
0.5243921279907227,
-0.6591150164604187,
-0.3324083089828491,
-0.3167576789855957,
-0.2889043092727661,
0.3661543130874634,
1.2567873001098633,
-0.13516195118427277,
-1.0207159519195557,
0.7903711199760437,
-0.4327399730682373,
0.11332453042268753,
2.0209741592407227,
0.04513302445411682,
-0.78499436378479,
0.3240094780921936,
-0.6819146871566772,
1.8654167652130127,
1.826643943786621,
1.3391849994659424,
-0.07940158247947693,
-0.8999758958816528,
0.5460814237594604,
-0.3922736644744873,
-0.3890717029571533,
0.9051088094711304,
0.3886372447013855,
-0.14003869891166687,
-1.3010365962982178,
0.653303861618042,
1.341886043548584,
-0.8513275980949402,
-0.8197896480560303,
0.17458045482635498,
-0.87281334400177,
1.143101692199707,
0.6547687649726868,
0.3630185127258301,
0.2179529219865799,
1.5422677993774414,
0.6895560026168823,
-0.42650455236434937,
0.5375813841819763,
0.53523850440979,
-0.23177197575569153,
-2.0361363887786865,
-1.1585619449615479,
0.3228375315666199,
-0.5069222450256348,
-1.6200193166732788,
1.3167881965637207,
-1.2189466953277588,
-0.9458696246147156,
0.5601013898849487,
0.14919866621494293,
1.4575388431549072,
0.31800538301467896,
1.5908288955688477,
2.0445141792297363,
0.7981245517730713,
0.3883025646209717,
1.3010845184326172,
-0.041105661541223526,
-0.4770349860191345,
1.8235281705856323,
-0.47045570611953735,
0.6016624569892883,
1.116977572441101,
-0.31846630573272705,
-1.0335160493850708,
-0.8723950982093811,
-1.2091670036315918,
-0.6094716787338257,
1.200103759765625,
0.16816866397857666,
-1.084097146987915,
0.21526317298412323,
1.5636051893234253,
0.06012008339166641,
-0.3100016117095947,
0.6948439478874207,
0.3137162923812866,
-0.7140726447105408,
0.021320614963769913,
-0.9024182558059692,
0.5337464809417725,
-0.17785903811454773,
-0.28629225492477417,
0.29878681898117065,
0.44128215312957764,
1.1641069650650024,
-0.042775291949510574,
0.19261237978935242,
1.2515170574188232,
-1.4169591665267944,
1.517606496810913,
-0.6356208920478821,
0.35185760259628296,
-2.440687894821167,
1.3808130025863647,
-0.8333525657653809,
1.869041085243225,
-2.609513759613037,
0.3328997492790222,
-0.5386248826980591,
-0.5046819448471069,
0.23608605563640594,
-0.3951016068458557,
0.05460173636674881,
-0.15519745647907257,
-1.0699098110198975,
0.006413597613573074,
-0.8576599359512329,
0.5188363790512085,
1.1652233600616455,
1.3555375337600708,
-1.1445521116256714,
-0.30936360359191895,
-1.8080670833587646,
-0.1291351020336151,
-0.6768029928207397,
0.4653860926628113,
-1.9454587697982788,
-0.14501920342445374,
-1.9360594749450684,
-2.4314045906066895,
-1.352404236793518,
-0.8066278696060181,
1.0163294076919556,
0.06344635784626007,
-0.8497092723846436,
1.1155327558517456,
-0.34039103984832764,
-1.841339349746704,
1.1091362237930298,
-2.169084310531616
] |
https://github.com/huggingface/datasets/issues/5281 | Support cloud storage in load_dataset | Adding to the conversation, Dask also uses `fsspec` for this feature.
[Dask: How to connect to remote data](https://docs.dask.org/en/stable/how-to/connect-to-remote-data.html)
Happy to help on this feature :D | Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2) | 400 | 25 | Support cloud storage in load_dataset
Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2)
Adding to the conversation, Dask also uses `fsspec` for this feature.
[Dask: How to connect to remote data](https://docs.dask.org/en/stable/how-to/connect-to-remote-data.html)
Happy to help on this feature :D | [
-1.1261876821517944,
-0.865461528301239,
-0.7369795441627502,
1.5711097717285156,
-0.07206477969884872,
-1.266869306564331,
0.1847299188375473,
-0.9479480981826782,
1.653198003768921,
-0.7508422136306763,
0.4013937711715698,
-1.6984187364578247,
-0.013095520436763763,
-0.5696078538894653,
-0.7751345634460449,
-0.8681220412254333,
-0.44401514530181885,
-0.6381496787071228,
0.9396372437477112,
2.4560670852661133,
1.2978469133377075,
-1.3776785135269165,
2.6387479305267334,
0.6808155179023743,
-0.17853613197803497,
-1.0190669298171997,
0.4192255437374115,
0.12018518149852753,
-1.259095311164856,
-0.34877488017082214,
-0.8673614263534546,
-0.09730865061283112,
-0.5663520097732544,
-0.6057059168815613,
0.0871216207742691,
0.47331124544143677,
-0.2912459373474121,
-0.363701194524765,
-0.5217271447181702,
-0.8425138592720032,
0.5290572643280029,
-0.33690714836120605,
0.9401305317878723,
-0.3785848319530487,
1.7542914152145386,
-0.6620000600814819,
0.5037479996681213,
0.6531453728675842,
1.3029873371124268,
0.12677215039730072,
-0.007422281429171562,
0.35899829864501953,
0.3663189709186554,
0.09783139079809189,
0.5421785116195679,
1.1653313636779785,
0.5556745529174805,
0.4880778193473816,
0.6230119466781616,
-2.2692337036132812,
1.2977803945541382,
-1.0151606798171997,
0.24769426882266998,
1.2714636325836182,
-0.9849725365638733,
0.3396860659122467,
-1.7874484062194824,
-0.16906185448169708,
0.5866837501525879,
-2.2299304008483887,
0.18256781995296478,
-1.275549292564392,
-0.5358734130859375,
1.0606181621551514,
0.3129909336566925,
-1.2440848350524902,
0.23214329779148102,
-0.41869622468948364,
1.018165946006775,
0.47529274225234985,
1.0803648233413696,
-1.7164140939712524,
0.07148832082748413,
-0.23237070441246033,
0.11508974432945251,
-1.329192876815796,
-1.5605014562606812,
0.5328430533409119,
0.6661991477012634,
0.635597825050354,
-0.11648261547088623,
0.9209808707237244,
-0.9859574437141418,
0.8637481331825256,
-1.0469201803207397,
-1.7269556522369385,
-1.3700898885726929,
-2.2881200313568115,
-2.376798391342163,
0.7500000596046448,
-0.4189896285533905,
-0.4017435312271118,
1.9323978424072266,
-0.9452732801437378,
-1.8471405506134033,
1.0214040279388428,
0.28854888677597046,
-0.05268733948469162,
2.3017547130584717,
0.15978629887104034,
-0.6944599151611328,
0.47647789120674133,
-0.7832823395729065,
0.7009746432304382,
-0.3183893859386444,
1.365706205368042,
0.5671872496604919,
-1.1552674770355225,
1.64503014087677,
-0.4090198874473572,
0.5525321960449219,
-0.7815532088279724,
-0.520945131778717,
-0.7158122062683105,
0.22488360106945038,
1.9291476011276245,
-0.3388618230819702,
1.5554635524749756,
-0.2622711956501007,
-1.4580965042114258,
-1.514726996421814,
0.8764470219612122,
0.48114025592803955,
-0.7643682956695557,
0.08225861191749573,
-0.3520002067089081,
0.1489066630601883,
-0.02455616369843483,
1.1481472253799438,
1.1611696481704712,
0.7372242212295532,
-0.35075074434280396,
-0.8157714009284973,
0.21136246621608734,
0.029466303065419197,
-0.6208850741386414,
-1.8813358545303345,
-0.3145911991596222,
0.2999874949455261,
0.5704560875892639,
-1.20615553855896,
1.8511791229248047,
0.7877901792526245,
1.9841880798339844,
0.9996694326400757,
-0.3689941465854645,
1.5786287784576416,
-0.04430690407752991,
2.0007002353668213,
-0.42908143997192383,
0.6450157165527344,
-0.3467143177986145,
-1.1360676288604736,
0.8510090112686157,
-0.29922977089881897,
-2.088128089904785,
-0.680837094783783,
-0.8658152222633362,
-0.16976624727249146,
-0.7323168516159058,
0.9913414716720581,
-0.14923310279846191,
-1.4813480377197266,
0.12157867848873138,
-0.6733551621437073,
0.1354706883430481,
-1.2043246030807495,
0.2402995377779007,
0.7653262615203857,
-0.6865811347961426,
0.07942411303520203,
-0.3016031086444855,
-1.3603640794754028,
-0.5466868877410889,
0.4583362936973572,
1.8736435174942017,
-0.6779934167861938,
0.9112353324890137,
1.0207502841949463,
-0.757990300655365,
0.04909151792526245,
0.29924318194389343,
-0.3775894343852997,
0.8106600642204285,
-1.0312879085540771,
-0.45022979378700256,
1.1787948608398438,
-0.18167376518249512,
-0.7549712061882019,
1.5028225183486938,
0.8154010772705078,
-0.9437596201896667,
-0.22432421147823334,
-0.251785010099411,
-0.7556123733520508,
0.05821724236011505,
-1.5457382202148438,
-0.09217818826436996,
0.32134929299354553,
-1.4662920236587524,
-0.41826683282852173,
-0.1903458535671234,
1.3247437477111816,
-0.2597988247871399,
1.450943946838379,
-0.1588139832019806,
-0.25067946314811707,
-0.38896486163139343,
-0.470563679933548,
0.13437238335609436,
-0.12417111545801163,
-0.6731141805648804,
0.2896214723587036,
-0.7974563837051392,
0.3897523880004883,
1.4087350368499756,
0.26875072717666626,
0.06591401249170303,
0.5168180465698242,
1.124772071838379,
0.3520410656929016,
-0.09987165033817291,
-0.9074514508247375,
-1.6392115354537964,
2.0366454124450684,
-1.3159724473953247,
1.9867154359817505,
0.6727746725082397,
-0.053372323513031006,
-1.8330957889556885,
-1.8079118728637695,
1.367160677909851,
1.0944828987121582,
2.4327588081359863,
0.5683728456497192,
0.38099128007888794,
-0.7951282262802124,
-0.6639636754989624,
0.36072537302970886,
-0.9298142790794373,
-0.7528405785560608,
0.18276092410087585,
2.380312919616699,
1.76249098777771,
-0.5433441996574402,
-0.19658544659614563,
-1.0550893545150757,
1.385878562927246,
-0.28128740191459656,
0.254759281873703,
2.062110662460327,
-0.28571927547454834,
-1.0351661443710327,
1.332720160484314,
-2.412153959274292,
0.2777387201786041,
2.0127553939819336,
0.22919851541519165,
0.07327635586261749,
-1.4312413930892944,
-0.675275444984436,
-0.28996580839157104,
-0.5094221234321594,
-1.2042572498321533,
0.45333385467529297,
-0.20816536247730255,
-0.8828063607215881,
-1.403260588645935,
0.06500934809446335,
-1.1133478879928589,
-1.757680892944336,
0.31793445348739624,
1.8378692865371704,
2.001481056213379,
-0.7590821385383606,
1.4896928071975708,
-0.2664172649383545,
0.1369345635175705,
1.3471128940582275,
1.2781840562820435,
3.090583086013794,
1.9021532535552979,
-1.2615562677383423,
0.8353416323661804,
-0.18633003532886505,
-0.5068607330322266,
1.296869158744812,
-1.110044002532959,
1.2015788555145264,
-0.25042009353637695,
-1.2500685453414917,
-1.3245198726654053,
1.1060746908187866,
0.5015225410461426,
0.0937611535191536,
-0.5613602995872498,
1.1668119430541992,
0.18452422320842743,
1.3103049993515015,
0.5519959330558777,
-0.3683777153491974,
0.5384087562561035,
-0.3793085217475891,
-0.5318145751953125,
1.5789291858673096,
0.16138559579849243,
-1.419960379600525,
-2.3666887283325195,
-0.18130993843078613,
-0.9564693570137024,
-0.15751031041145325,
-0.6565485000610352,
-0.9723628163337708,
1.631125569343567,
0.45778167247772217,
-1.2975105047225952,
-0.18655894696712494,
-0.30564484000205994,
-0.5864838361740112,
2.708827495574951,
-1.3149501085281372,
-0.204445019364357,
-1.0353540182113647,
-0.6140602827072144,
1.657738447189331,
-1.1727453470230103,
-0.18428966403007507,
-1.0016164779663086,
-0.6332293152809143,
-1.3878859281539917,
-0.5332064032554626,
0.03882617503404617,
-0.9088262319564819,
0.7036435008049011,
-0.030450699850916862,
-1.1893640756607056,
-0.36203905940055847,
-0.8989695310592651,
0.9468995332717896,
-0.12346849590539932,
0.22677642107009888,
1.8257629871368408,
0.45287036895751953,
-0.4073011875152588,
0.698066234588623,
1.1358388662338257,
0.6470369100570679,
-0.6285087466239929,
0.31481248140335083,
-0.7081445455551147,
0.269580602645874,
-1.3964296579360962,
0.3017157316207886,
-2.8774516582489014,
0.6717960834503174,
-0.061309799551963806,
-0.12244386225938797,
-0.10527412593364716,
-1.3008800745010376,
1.1186100244522095,
2.6207058429718018,
-1.2219867706298828,
0.445054829120636,
0.38982200622558594,
1.1224740743637085,
-1.4875906705856323,
0.23253943026065826,
-0.4398910105228424,
2.1016299724578857,
0.12724845111370087,
1.1103781461715698,
-0.4918040335178375,
-2.0887551307678223,
0.6160479784011841,
-1.2369332313537598,
-1.127032995223999,
0.833465576171875,
-0.8271045684814453,
0.17579609155654907,
-1.3698055744171143,
-0.14055299758911133,
-0.934821605682373,
-1.2659180164337158,
0.7323224544525146,
0.09296784549951553,
0.5007303953170776,
-0.5645110011100769,
0.40055757761001587,
-2.136021852493286,
-1.3526934385299683,
-0.21535521745681763,
-0.9544374942779541,
0.4942739009857178,
-0.25401920080184937,
0.6483503580093384,
-0.08867331594228745,
0.04289230704307556,
0.25795042514801025,
1.4169503450393677,
3.356691598892212,
0.16509824991226196,
0.29127591848373413,
-0.10588818788528442,
-0.9586410522460938,
1.4585398435592651,
0.9441899061203003,
-0.11109548807144165,
-0.4764297902584076,
-0.9426571726799011,
1.245129942893982,
2.022397518157959,
1.1184719800949097,
0.10046204179525375,
-0.9576935768127441,
-0.8581719398498535,
0.04332953691482544,
0.1241568922996521,
0.48650938272476196,
0.9387044906616211,
0.08911289274692535,
0.09084708243608475,
1.345296025276184,
1.352748155593872,
-0.29781872034072876,
0.4431508779525757,
-0.9300486445426941,
-0.32539427280426025,
0.48418375849723816,
0.3159353733062744,
0.12749971449375153,
0.426246702671051,
-1.0614631175994873,
-0.18881410360336304,
-0.3478517532348633,
-0.9132283329963684,
-0.8079200983047485,
-0.5476671457290649,
-0.5204481482505798,
1.682296872138977,
-0.03039996139705181,
-0.4624617099761963,
0.027331223711371422,
-0.8149886131286621,
-0.10685959458351135,
-0.9775205254554749,
0.3088449239730835,
-0.1323818862438202,
-0.014966975897550583,
-0.19594846665859222,
1.7262609004974365,
-1.0352098941802979,
-2.154534339904785,
0.23079194128513336,
0.20794552564620972,
-0.5233976244926453,
0.22149066627025604,
1.683060884475708,
0.5592541098594666,
1.3929433822631836,
1.3446444272994995,
1.016096830368042,
-0.5935158133506775,
-1.2737884521484375,
0.6530590057373047,
0.9701985716819763,
-1.463688611984253,
0.8712297677993774,
0.016115961596369743,
-0.3996542692184448,
0.6811490058898926,
1.16657292842865,
0.2960507273674011,
-1.9992138147354126,
0.7211633920669556,
-0.8408119082450867,
0.7843659520149231,
0.6578874588012695,
0.7128552198410034,
0.21081306040287018,
0.8632789850234985,
-1.2249153852462769,
-1.0612258911132812,
-0.7765408754348755,
-0.5908604860305786,
1.8347456455230713,
-0.2314656674861908,
0.5737059116363525,
-0.17104259133338928,
-1.3799655437469482,
-0.0623035728931427,
0.8340068459510803,
0.4262073040008545,
-0.5546934604644775,
0.8505074381828308,
-0.5836235880851746,
-0.9780654907226562,
-1.1959518194198608,
-0.5628568530082703,
-1.0365674495697021,
-0.8624024391174316,
0.9993808269500732,
0.792843759059906,
0.43964752554893494,
1.9248919486999512,
0.5634451508522034,
0.30994707345962524,
-2.7514045238494873,
0.8541212677955627,
0.247160866856575,
0.023236745968461037,
0.8894178867340088,
0.3052811324596405,
1.103021502494812,
-0.18973423540592194,
0.6696345210075378,
-2.3631200790405273,
2.197094202041626,
-0.1847241073846817,
0.5790761113166809,
0.02301502414047718,
-0.15722380578517914,
1.0650873184204102,
0.5043343901634216,
0.5592700839042664,
-1.1762140989303589,
0.7566927075386047,
-0.6433905363082886,
1.190650224685669,
0.7767300009727478,
-0.9132351875305176,
-0.03875158354640007,
1.335498571395874,
0.49603140354156494,
-0.36356234550476074,
-0.8955920338630676,
-0.8690388202667236,
0.981534481048584,
1.6036345958709717,
-0.05123972147703171,
-0.03692455589771271,
1.0352556705474854,
0.6540017127990723,
-1.3478463888168335,
0.08627758175134659,
-0.7218537330627441,
-0.6238868236541748,
1.7387464046478271,
2.008145570755005,
-0.09780563414096832,
-0.1984281837940216,
-0.831779956817627,
-1.2006856203079224,
0.7458315491676331,
0.045981504023075104,
0.034958064556121826,
0.6739131808280945,
-0.6453574299812317,
1.121978759765625,
0.7390198707580566,
0.9761747121810913,
0.055824436247348785,
0.35348713397979736,
0.28454580903053284,
-0.45747295022010803,
-1.2617809772491455,
-0.3514949381351471,
-1.0906777381896973,
-2.571380138397217,
0.4472719132900238,
-0.2625643312931061,
-1.422102928161621,
0.04278649389743805,
-1.1272647380828857,
0.8394424915313721,
-0.6084796190261841,
-1.1602524518966675,
-1.4101381301879883,
0.31516799330711365,
-0.1607184112071991,
0.9265238046646118,
-1.633453369140625,
0.030125340446829796,
1.1802372932434082,
0.8770216107368469,
-0.6131492853164673,
0.9671109914779663,
0.26556381583213806,
1.0332802534103394,
0.8824395537376404,
-0.35268810391426086,
0.5555230379104614,
0.18941190838813782,
-1.360210657119751,
0.4157762825489044,
1.1503477096557617,
0.21427850425243378,
1.3800474405288696,
-0.5900650024414062,
0.15822148323059082,
0.43133604526519775,
-0.6059601902961731,
-0.5383506417274475,
-0.6036401987075806,
0.7908403873443604,
0.02726777456700802,
-1.0382336378097534,
0.013828478753566742,
-0.021582774817943573,
-0.14026935398578644,
0.1443692445755005,
-1.4797987937927246,
-0.12942661345005035,
-0.2239033281803131,
-0.6298679709434509,
-1.2233290672302246,
0.01026860624551773,
1.2361267805099487,
-0.7879421710968018,
-0.11668496578931808,
0.5022812485694885,
0.28191041946411133,
0.567306637763977,
0.5587562918663025,
-0.6567014455795288,
-0.3420313596725464,
-0.32843127846717834,
-0.2676723897457123,
0.3725675046443939,
1.274819016456604,
-0.07166412472724915,
-1.0168687105178833,
0.8164671063423157,
-0.45545318722724915,
0.18389587104320526,
2.0401992797851562,
0.045558080077171326,
-0.800486147403717,
0.36650821566581726,
-0.6642336845397949,
1.8575475215911865,
1.8122215270996094,
1.3349909782409668,
-0.07369458675384521,
-0.897854745388031,
0.538356363773346,
-0.378648966550827,
-0.35916998982429504,
0.916877269744873,
0.3787483274936676,
-0.16763298213481903,
-1.2982757091522217,
0.5973604321479797,
1.3574286699295044,
-0.8824987411499023,
-0.8231202960014343,
0.21538428962230682,
-0.8775495886802673,
1.139088749885559,
0.6970353126525879,
0.28417670726776123,
0.2451511174440384,
1.428364872932434,
0.6680494546890259,
-0.42218977212905884,
0.5455890893936157,
0.5122119188308716,
-0.2125352919101715,
-2.0284230709075928,
-1.1453015804290771,
0.32968828082084656,
-0.5228177309036255,
-1.5879087448120117,
1.309350848197937,
-1.2382296323776245,
-0.9352326393127441,
0.5588844418525696,
0.1727672964334488,
1.4746315479278564,
0.2633512020111084,
1.6211405992507935,
2.0828709602355957,
0.8179627060890198,
0.31789615750312805,
1.3078510761260986,
-0.04646993428468704,
-0.4837927222251892,
1.8167487382888794,
-0.5067858099937439,
0.600982129573822,
1.075676679611206,
-0.3093663156032562,
-1.04240083694458,
-0.8974847793579102,
-1.2257473468780518,
-0.6645376682281494,
1.2328540086746216,
0.16570115089416504,
-1.0897867679595947,
0.21405979990959167,
1.5971792936325073,
0.03823792189359665,
-0.2858334481716156,
0.6593737006187439,
0.28557083010673523,
-0.7353349328041077,
-0.012327068485319614,
-0.8823443055152893,
0.5651634335517883,
-0.17796914279460907,
-0.26410284638404846,
0.2676442861557007,
0.4154481589794159,
1.125115156173706,
0.006320372223854065,
0.18254855275154114,
1.1960570812225342,
-1.3821040391921997,
1.5728925466537476,
-0.6259620785713196,
0.3891378939151764,
-2.3849122524261475,
1.3810011148452759,
-0.8739957809448242,
1.8246673345565796,
-2.6327693462371826,
0.3542480766773224,
-0.4993250072002411,
-0.5126534700393677,
0.18082807958126068,
-0.405589759349823,
0.07855957746505737,
-0.14398302137851715,
-1.081252932548523,
-0.05460410565137863,
-0.8248106837272644,
0.5117677450180054,
1.1498278379440308,
1.3469266891479492,
-1.143748164176941,
-0.34146443009376526,
-1.8268530368804932,
-0.09962904453277588,
-0.6640909314155579,
0.4403828978538513,
-1.900061011314392,
-0.15282346308231354,
-1.9201768636703491,
-2.468015432357788,
-1.3846579790115356,
-0.8376941680908203,
0.9986745119094849,
0.049601808190345764,
-0.8561960458755493,
1.0870835781097412,
-0.37836048007011414,
-1.8177196979522705,
1.1213070154190063,
-2.210008382797241
] |
https://github.com/huggingface/datasets/issues/5281 | Support cloud storage in load_dataset | +1 to this feature request since I think it also tackles my use-case. I am collaborating with a team, working with a loading script which takes some time to generate the dataset artifacts. It would be very handy to use this as a cloud cache to avoid duplicating the effort.
Currently we could use `builder.download_and_prepare(path_to_cloud_storage, storage_options, ...)` to cache the artifacts to cloud storage, but then `builder.as_dataset()` yields `NotImplementedError: Loading a dataset cached in SomeCloudFileSystem is not supported` | Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2) | 400 | 78 | Support cloud storage in load_dataset
Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2)
+1 to this feature request since I think it also tackles my use-case. I am collaborating with a team, working with a loading script which takes some time to generate the dataset artifacts. It would be very handy to use this as a cloud cache to avoid duplicating the effort.
Currently we could use `builder.download_and_prepare(path_to_cloud_storage, storage_options, ...)` to cache the artifacts to cloud storage, but then `builder.as_dataset()` yields `NotImplementedError: Loading a dataset cached in SomeCloudFileSystem is not supported` | [
-1.1604654788970947,
-0.8987336158752441,
-0.6765923500061035,
1.4956525564193726,
-0.12263771891593933,
-1.270355463027954,
0.20320464670658112,
-1.019025206565857,
1.624469518661499,
-0.7517934441566467,
0.37090015411376953,
-1.6710683107376099,
-0.02991263009607792,
-0.5710994601249695,
-0.7814521193504333,
-0.8594748973846436,
-0.5203840136528015,
-0.6624907851219177,
1.0104737281799316,
2.4654393196105957,
1.2323683500289917,
-1.389498233795166,
2.6042189598083496,
0.6371006965637207,
-0.14780844748020172,
-1.0211296081542969,
0.4529506266117096,
0.08389180898666382,
-1.2762242555618286,
-0.38633716106414795,
-0.8460924625396729,
-0.09948369860649109,
-0.6499183177947998,
-0.5411097407341003,
0.06702730059623718,
0.46056145429611206,
-0.27200305461883545,
-0.3502407670021057,
-0.5203781723976135,
-0.7967132925987244,
0.5372795462608337,
-0.3760581314563751,
0.9962096214294434,
-0.30200281739234924,
1.7635945081710815,
-0.630133867263794,
0.5513114929199219,
0.6752834916114807,
1.3283867835998535,
0.1436755210161209,
0.012546200305223465,
0.3259719908237457,
0.41399747133255005,
0.03185085207223892,
0.5389922261238098,
1.148902177810669,
0.5764498114585876,
0.5209730863571167,
0.6457118391990662,
-2.298792600631714,
1.32028329372406,
-1.022948145866394,
0.31449636816978455,
1.2869987487792969,
-0.9235037565231323,
0.3272833228111267,
-1.7861692905426025,
-0.10385598242282867,
0.5631980299949646,
-2.191589593887329,
0.21519798040390015,
-1.3056459426879883,
-0.462471604347229,
1.0005770921707153,
0.3261156678199768,
-1.2152132987976074,
0.2036937028169632,
-0.3761202394962311,
1.0270981788635254,
0.49485543370246887,
1.1176201105117798,
-1.734847903251648,
0.06829466670751572,
-0.23441174626350403,
0.17583271861076355,
-1.273698329925537,
-1.5396674871444702,
0.4318694472312927,
0.6468717455863953,
0.59726482629776,
-0.10276725888252258,
1.0000485181808472,
-0.9866765737533569,
0.8415587544441223,
-1.0362441539764404,
-1.6989372968673706,
-1.419293999671936,
-2.2788355350494385,
-2.430051326751709,
0.7215436100959778,
-0.4718115031719208,
-0.47032907605171204,
1.9929537773132324,
-0.9584848284721375,
-1.7923898696899414,
1.0448678731918335,
0.21637901663780212,
-0.015786435455083847,
2.304713249206543,
0.15325786173343658,
-0.712827742099762,
0.4915672838687897,
-0.7826404571533203,
0.7120389938354492,
-0.3375494182109833,
1.3657646179199219,
0.49997904896736145,
-1.1236131191253662,
1.6233391761779785,
-0.3935989737510681,
0.5908510684967041,
-0.7468951344490051,
-0.5348935723304749,
-0.7423362135887146,
0.25633329153060913,
1.921621322631836,
-0.2898539900779724,
1.539272427558899,
-0.33989012241363525,
-1.5233087539672852,
-1.5519648790359497,
0.9986097812652588,
0.4596613347530365,
-0.7281522154808044,
0.03739079833030701,
-0.3317469656467438,
0.1189955472946167,
-0.04648463428020477,
1.1197912693023682,
1.2429077625274658,
0.7542062997817993,
-0.43567949533462524,
-0.8208820223808289,
0.18672800064086914,
-0.07116074860095978,
-0.639819860458374,
-1.8409595489501953,
-0.319595068693161,
0.25825268030166626,
0.5733762383460999,
-1.150925874710083,
1.870355486869812,
0.854496419429779,
1.970414400100708,
0.9940195083618164,
-0.35471656918525696,
1.531766414642334,
-0.016671042889356613,
1.9448999166488647,
-0.4423966109752655,
0.60422283411026,
-0.3324529528617859,
-1.1229629516601562,
0.8773180842399597,
-0.2727009654045105,
-2.0249853134155273,
-0.7160488963127136,
-0.8192225098609924,
-0.18662752211093903,
-0.7007277607917786,
0.9338088035583496,
-0.1401505470275879,
-1.4937422275543213,
0.11433474719524384,
-0.678746223449707,
0.17397917807102203,
-1.182460904121399,
0.2900254726409912,
0.7293651103973389,
-0.7086685299873352,
0.09954522550106049,
-0.2816486060619354,
-1.3130968809127808,
-0.5295447111129761,
0.4290378987789154,
1.8388457298278809,
-0.6815028786659241,
0.9046528935432434,
1.0761091709136963,
-0.7281957268714905,
-0.006312517449259758,
0.27363768219947815,
-0.33332034945487976,
0.7996886372566223,
-1.0268853902816772,
-0.39449208974838257,
1.1981288194656372,
-0.21848949790000916,
-0.6962921023368835,
1.5072957277297974,
0.7737483978271484,
-0.9631913304328918,
-0.16283215582370758,
-0.2075091302394867,
-0.7970934510231018,
0.0032233772799372673,
-1.5584545135498047,
-0.07928348332643509,
0.3242538571357727,
-1.5198328495025635,
-0.4366181194782257,
-0.1905534714460373,
1.3110802173614502,
-0.2053299844264984,
1.5045695304870605,
-0.21068093180656433,
-0.18659570813179016,
-0.3695265054702759,
-0.4434269368648529,
0.12453398108482361,
-0.10393291711807251,
-0.6368165612220764,
0.30857181549072266,
-0.7715620994567871,
0.3902989625930786,
1.425775408744812,
0.23383291065692902,
0.05578716844320297,
0.4462706744670868,
1.1270760297775269,
0.3622230887413025,
-0.04683978855609894,
-0.8787364363670349,
-1.5760927200317383,
2.037888765335083,
-1.3758589029312134,
1.97645103931427,
0.6979898810386658,
-0.018181992694735527,
-1.8235424757003784,
-1.801266074180603,
1.372063398361206,
1.099183201789856,
2.408606767654419,
0.5095632672309875,
0.3457651734352112,
-0.8183682560920715,
-0.6200934052467346,
0.3775084912776947,
-0.9652243256568909,
-0.7267558574676514,
0.19719374179840088,
2.3795278072357178,
1.7265897989273071,
-0.5003209114074707,
-0.15360189974308014,
-1.04587984085083,
1.433161973953247,
-0.22115689516067505,
0.2534838914871216,
2.0509376525878906,
-0.22864128649234772,
-1.0550588369369507,
1.3269758224487305,
-2.3885562419891357,
0.26297810673713684,
2.045039176940918,
0.22303247451782227,
0.09723633527755737,
-1.3965396881103516,
-0.6346094608306885,
-0.25450435280799866,
-0.4753761291503906,
-1.2055473327636719,
0.5078767538070679,
-0.2522973120212555,
-0.786720335483551,
-1.4495097398757935,
0.10790654271841049,
-1.149017572402954,
-1.709414005279541,
0.2910623252391815,
1.8594894409179688,
1.9890755414962769,
-0.7019543051719666,
1.4867925643920898,
-0.2542169988155365,
0.11554878950119019,
1.292394757270813,
1.250847339630127,
3.0989599227905273,
1.9357784986495972,
-1.2624622583389282,
0.7321711182594299,
-0.2228497862815857,
-0.5238476991653442,
1.2288495302200317,
-1.1434895992279053,
1.272377371788025,
-0.2379782795906067,
-1.1956851482391357,
-1.3183497190475464,
1.0837247371673584,
0.49633726477622986,
0.09700287133455276,
-0.5552577376365662,
1.1722294092178345,
0.21632638573646545,
1.2713874578475952,
0.5390568375587463,
-0.38309937715530396,
0.6044508814811707,
-0.38179096579551697,
-0.5616708993911743,
1.5543380975723267,
0.21240590512752533,
-1.405637264251709,
-2.331205368041992,
-0.19927625358104706,
-0.9674365520477295,
-0.09032325446605682,
-0.6015920639038086,
-0.9827142357826233,
1.6180367469787598,
0.40681278705596924,
-1.2802788019180298,
-0.21942123770713806,
-0.3093391954898834,
-0.6079095005989075,
2.7558741569519043,
-1.3161003589630127,
-0.1988266259431839,
-0.9779803156852722,
-0.6951773166656494,
1.6366727352142334,
-1.2434931993484497,
-0.20349794626235962,
-1.04972505569458,
-0.5504109859466553,
-1.3115109205245972,
-0.5197173953056335,
0.017626821994781494,
-0.9436090588569641,
0.7410135269165039,
0.08370893448591232,
-1.2438392639160156,
-0.3760225474834442,
-0.909868597984314,
0.9516897201538086,
-0.11478863656520844,
0.23033784329891205,
1.8217862844467163,
0.4304581880569458,
-0.39324167370796204,
0.7062447667121887,
1.1565358638763428,
0.5940082669258118,
-0.6299953460693359,
0.2960614860057831,
-0.6962305903434753,
0.28660470247268677,
-1.3769140243530273,
0.31716233491897583,
-2.858344793319702,
0.6423959136009216,
-0.04851251095533371,
-0.08708901703357697,
-0.0984358862042427,
-1.3449431657791138,
1.0719341039657593,
2.561206340789795,
-1.2466390132904053,
0.4786796271800995,
0.409373939037323,
1.1142551898956299,
-1.5458288192749023,
0.28633618354797363,
-0.46787068247795105,
2.102675199508667,
0.17024923861026764,
1.1136064529418945,
-0.49454861879348755,
-2.2416880130767822,
0.5476953387260437,
-1.245978832244873,
-1.1837809085845947,
0.78485107421875,
-0.8896072506904602,
0.12517857551574707,
-1.3268158435821533,
-0.16809864342212677,
-0.923983097076416,
-1.2482541799545288,
0.7170332074165344,
0.12660378217697144,
0.4852171242237091,
-0.6028199195861816,
0.40287551283836365,
-2.2053380012512207,
-1.3542542457580566,
-0.29556262493133545,
-0.9041689038276672,
0.4785962700843811,
-0.29112863540649414,
0.6382015943527222,
-0.19137191772460938,
0.008474791422486305,
0.27757787704467773,
1.4165363311767578,
3.4324522018432617,
0.1644284427165985,
0.3056846261024475,
-0.14298036694526672,
-0.9826614856719971,
1.4684207439422607,
0.9607388973236084,
-0.14050781726837158,
-0.5632935166358948,
-1.012292504310608,
1.2532377243041992,
2.0155062675476074,
1.0995502471923828,
0.007890012115240097,
-0.8709527254104614,
-0.8175164461135864,
0.03673410415649414,
0.10998950153589249,
0.5030071139335632,
0.9694473147392273,
0.13154320418834686,
0.12019224464893341,
1.321885108947754,
1.2710237503051758,
-0.3224623501300812,
0.36913996934890747,
-0.8850609660148621,
-0.35206329822540283,
0.4628017842769623,
0.3424304723739624,
0.0439024418592453,
0.39850106835365295,
-0.9994264841079712,
-0.16837307810783386,
-0.4216189384460449,
-0.95856112241745,
-0.7901130318641663,
-0.5402081608772278,
-0.4740048348903656,
1.7108725309371948,
0.015357675030827522,
-0.4499055743217468,
0.0014367830008268356,
-0.7625151872634888,
-0.11606147140264511,
-1.004084587097168,
0.2699024975299835,
-0.0902857631444931,
-0.046198293566703796,
-0.14017589390277863,
1.7592369318008423,
-1.0008327960968018,
-2.1184940338134766,
0.2798011004924774,
0.17113357782363892,
-0.4425393342971802,
0.25566568970680237,
1.6299742460250854,
0.5078811049461365,
1.3939237594604492,
1.3802543878555298,
1.0032505989074707,
-0.621681272983551,
-1.295711636543274,
0.6492131948471069,
1.0141676664352417,
-1.4521406888961792,
0.8780896663665771,
0.02895045466721058,
-0.41678550839424133,
0.6836847066879272,
1.1974232196807861,
0.36889007687568665,
-2.0628485679626465,
0.7411920428276062,
-0.8958858847618103,
0.8114438652992249,
0.7104690074920654,
0.7310066819190979,
0.18905924260616302,
0.8308202624320984,
-1.1825050115585327,
-1.1397161483764648,
-0.7440629005432129,
-0.6878187656402588,
1.8891513347625732,
-0.26701125502586365,
0.613720178604126,
-0.1476827710866928,
-1.3758267164230347,
-0.1024872437119484,
0.8405418992042542,
0.43482738733291626,
-0.5588382482528687,
0.8178579211235046,
-0.59466153383255,
-1.0131371021270752,
-1.2949116230010986,
-0.5104002356529236,
-1.085964560508728,
-0.8964296579360962,
0.9779070615768433,
0.7553358674049377,
0.3952591121196747,
1.8794126510620117,
0.597174346446991,
0.3084252178668976,
-2.752469301223755,
0.8565829396247864,
0.31584155559539795,
0.01608731411397457,
0.881140947341919,
0.36229389905929565,
1.0553175210952759,
-0.09729357063770294,
0.7354257702827454,
-2.462987184524536,
2.246448278427124,
-0.21241995692253113,
0.6110312938690186,
-0.021678179502487183,
-0.16595901548862457,
1.077075481414795,
0.5667524337768555,
0.5169342756271362,
-1.1592872142791748,
0.722507894039154,
-0.6372517347335815,
1.1434035301208496,
0.8042328953742981,
-0.8277744054794312,
-0.015486317686736584,
1.3695889711380005,
0.4382776916027069,
-0.43225154280662537,
-0.929449737071991,
-0.8887243270874023,
0.9649108052253723,
1.6442102193832397,
-0.08128156512975693,
-0.04613872617483139,
0.9662632346153259,
0.6486949920654297,
-1.3385666608810425,
0.0972856804728508,
-0.7178112864494324,
-0.6920964121818542,
1.6877217292785645,
2.005190849304199,
-0.08520948141813278,
-0.18227703869342804,
-0.7821348905563354,
-1.2410088777542114,
0.7703690528869629,
0.01787400245666504,
0.06112027168273926,
0.6252858638763428,
-0.5955900549888611,
1.1204785108566284,
0.7514462471008301,
0.9673689603805542,
0.1001647412776947,
0.25724542140960693,
0.352802038192749,
-0.39322665333747864,
-1.1815216541290283,
-0.2756716012954712,
-1.0803486108779907,
-2.5471723079681396,
0.41097840666770935,
-0.2648198902606964,
-1.4583029747009277,
0.02001272886991501,
-1.0650721788406372,
0.8219655752182007,
-0.5622297525405884,
-1.1870037317276,
-1.4255311489105225,
0.20896829664707184,
-0.10016778111457825,
0.9072747230529785,
-1.6088734865188599,
-0.05890396982431412,
1.1524394750595093,
0.8622148633003235,
-0.6770994067192078,
1.0310856103897095,
0.2114124447107315,
0.9938678741455078,
0.8930689692497253,
-0.3576194941997528,
0.5638625621795654,
0.1323940008878708,
-1.3299291133880615,
0.4263511300086975,
1.1439508199691772,
0.15233246982097626,
1.391422986984253,
-0.5968095660209656,
0.1094922348856926,
0.3941773772239685,
-0.6209915280342102,
-0.5204916596412659,
-0.5612571239471436,
0.7407413125038147,
0.0019448213279247284,
-0.9640325903892517,
0.0368068590760231,
-0.04941181838512421,
-0.10825658589601517,
0.1188541054725647,
-1.4830158948898315,
-0.137076273560524,
-0.3100738525390625,
-0.5780236124992371,
-1.2296867370605469,
-0.028767570853233337,
1.289599895477295,
-0.7281043529510498,
-0.14654868841171265,
0.5019513964653015,
0.34340715408325195,
0.5498873591423035,
0.592017412185669,
-0.6230313181877136,
-0.324959933757782,
-0.298531174659729,
-0.2787495255470276,
0.40957698225975037,
1.3165051937103271,
-0.07587748020887375,
-0.9534187912940979,
0.7909225225448608,
-0.44268691539764404,
0.1217021644115448,
2.0107810497283936,
0.08334334194660187,
-0.7727103233337402,
0.3260917067527771,
-0.6741962432861328,
1.8625941276550293,
1.8554130792617798,
1.3268274068832397,
-0.0577235221862793,
-0.9386714100837708,
0.5802150964736938,
-0.39822298288345337,
-0.3829008936882019,
0.9092370867729187,
0.38020214438438416,
-0.1906355917453766,
-1.309618353843689,
0.5997642278671265,
1.3021504878997803,
-0.7556815147399902,
-0.7985270023345947,
0.13193930685520172,
-0.8703108429908752,
1.0614683628082275,
0.6574415564537048,
0.3231399357318878,
0.190501406788826,
1.54331636428833,
0.7115018367767334,
-0.44840434193611145,
0.5828560590744019,
0.5244082808494568,
-0.21575380861759186,
-2.0539588928222656,
-1.2076542377471924,
0.33510148525238037,
-0.5359336137771606,
-1.605123519897461,
1.3706960678100586,
-1.2478878498077393,
-0.9876326322555542,
0.5754901766777039,
0.0635082945227623,
1.4727064371109009,
0.31033122539520264,
1.6280696392059326,
2.1085832118988037,
0.863957405090332,
0.4491950273513794,
1.3239911794662476,
-0.07141980528831482,
-0.45629850029945374,
1.8505252599716187,
-0.48790720105171204,
0.5237930417060852,
1.0980403423309326,
-0.3069070279598236,
-0.9972301721572876,
-0.848389208316803,
-1.2349181175231934,
-0.6470893621444702,
1.1832157373428345,
0.10817419737577438,
-1.0599350929260254,
0.26525139808654785,
1.5982694625854492,
0.09311608225107193,
-0.25163939595222473,
0.6491882801055908,
0.32866889238357544,
-0.8411782383918762,
-0.03182877600193024,
-0.9586807489395142,
0.528344452381134,
-0.19954173266887665,
-0.32462772727012634,
0.31756719946861267,
0.4269252419471741,
1.159622311592102,
-0.003335841465741396,
0.20984722673892975,
1.1865227222442627,
-1.4208259582519531,
1.5088119506835938,
-0.6424974799156189,
0.34407854080200195,
-2.3774936199188232,
1.4023698568344116,
-0.7838249802589417,
1.8662617206573486,
-2.6486592292785645,
0.33160433173179626,
-0.5346231460571289,
-0.5241329073905945,
0.2638642191886902,
-0.3615313768386841,
0.04272525757551193,
-0.16825485229492188,
-1.1432210206985474,
-0.040794625878334045,
-0.7725943326950073,
0.552365779876709,
1.1152385473251343,
1.318237543106079,
-1.0980380773544312,
-0.3719218969345093,
-1.7744580507278442,
-0.13000403344631195,
-0.6442471146583557,
0.41152653098106384,
-1.9068098068237305,
-0.1311388462781906,
-1.9477767944335938,
-2.405888557434082,
-1.37497878074646,
-0.8205336332321167,
1.0507049560546875,
0.09629333019256592,
-0.8324844241142273,
1.1128872632980347,
-0.37685486674308777,
-1.863688349723816,
1.1055684089660645,
-2.1604859828948975
] |
https://github.com/huggingface/datasets/issues/5281 | Support cloud storage in load_dataset | Makes sense ! If you want to load locally a dataset that you download_and_prepared on a cloud storage, you would use `load_dataset(path_to_cloud_storage)` indeed. It would download the data from the cloud storage, cache them locally, and return a `Dataset`. | Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2) | 400 | 39 | Support cloud storage in load_dataset
Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2)
Makes sense ! If you want to load locally a dataset that you download_and_prepared on a cloud storage, you would use `load_dataset(path_to_cloud_storage)` indeed. It would download the data from the cloud storage, cache them locally, and return a `Dataset`. | [
-1.1247591972351074,
-0.8659507632255554,
-0.7190048694610596,
1.5625264644622803,
-0.10728877782821655,
-1.3009120225906372,
0.19700269401073456,
-0.9690713286399841,
1.6566994190216064,
-0.806896448135376,
0.38287004828453064,
-1.6959503889083862,
-0.002525700256228447,
-0.5851249694824219,
-0.7599285840988159,
-0.9110324382781982,
-0.45748960971832275,
-0.6655256152153015,
0.9838538765907288,
2.3890645503997803,
1.2828131914138794,
-1.3698900938034058,
2.604127883911133,
0.6465288996696472,
-0.1640235334634781,
-1.023608684539795,
0.414212703704834,
0.08937578648328781,
-1.2057793140411377,
-0.36494219303131104,
-0.8707081079483032,
-0.0868949145078659,
-0.583479642868042,
-0.5854015350341797,
0.042384687811136246,
0.47339847683906555,
-0.33796924352645874,
-0.34496042132377625,
-0.48155760765075684,
-0.8240494728088379,
0.5421876907348633,
-0.35233619809150696,
0.9926213622093201,
-0.3494645953178406,
1.7685115337371826,
-0.6363188624382019,
0.5176122188568115,
0.6577531099319458,
1.2829238176345825,
0.1293398141860962,
0.025146063417196274,
0.31073084473609924,
0.4080004394054413,
0.0648006796836853,
0.519610583782196,
1.1831488609313965,
0.5636048913002014,
0.5315700769424438,
0.6590849161148071,
-2.278045654296875,
1.3320378065109253,
-1.0468761920928955,
0.2707557678222656,
1.2734057903289795,
-0.9708375930786133,
0.3178834915161133,
-1.7471214532852173,
-0.13567139208316803,
0.5683054327964783,
-2.226444721221924,
0.24418561160564423,
-1.2930653095245361,
-0.4987735152244568,
1.0059202909469604,
0.3388561010360718,
-1.2110984325408936,
0.2544662654399872,
-0.3790011405944824,
1.042860984802246,
0.5180326700210571,
1.0349270105361938,
-1.7769583463668823,
0.06031259894371033,
-0.22475269436836243,
0.15001066029071808,
-1.3303465843200684,
-1.5675466060638428,
0.5041794776916504,
0.6396198868751526,
0.6646912097930908,
-0.15708023309707642,
0.978162944316864,
-0.9995190501213074,
0.8627061247825623,
-1.0588912963867188,
-1.6628295183181763,
-1.3615912199020386,
-2.2780299186706543,
-2.450254440307617,
0.7594761252403259,
-0.45781567692756653,
-0.43305453658103943,
1.9349806308746338,
-0.9783011674880981,
-1.7935304641723633,
1.0268183946609497,
0.2482452243566513,
-0.048344094306230545,
2.29001784324646,
0.1611505150794983,
-0.7166451811790466,
0.49146950244903564,
-0.7565999031066895,
0.7256305813789368,
-0.31267574429512024,
1.3467715978622437,
0.5622150301933289,
-1.1526517868041992,
1.6182392835617065,
-0.42099469900131226,
0.5644496083259583,
-0.7599382400512695,
-0.5607500672340393,
-0.7808699607849121,
0.20945954322814941,
1.89576256275177,
-0.3265584707260132,
1.562557578086853,
-0.2716982066631317,
-1.4834699630737305,
-1.5798832178115845,
0.9388591051101685,
0.4079568684101105,
-0.7606508135795593,
0.06776905804872513,
-0.3383758068084717,
0.13448470830917358,
-0.05974852666258812,
1.1781924962997437,
1.1869213581085205,
0.7601768970489502,
-0.39707180857658386,
-0.7666797637939453,
0.20726564526557922,
-0.031349603086709976,
-0.598815381526947,
-1.8573867082595825,
-0.33423030376434326,
0.2998400628566742,
0.5783506035804749,
-1.1468631029129028,
1.872973918914795,
0.793951690196991,
1.9513914585113525,
0.9876331090927124,
-0.3829532861709595,
1.516305685043335,
-0.03791235014796257,
1.9667350053787231,
-0.4904913008213043,
0.6463615894317627,
-0.31637999415397644,
-1.1262688636779785,
0.8695198893547058,
-0.28460946679115295,
-2.040297031402588,
-0.704975426197052,
-0.8637984991073608,
-0.1381099820137024,
-0.7054775357246399,
0.9775267839431763,
-0.1810593158006668,
-1.5390657186508179,
0.09134967625141144,
-0.6278859376907349,
0.16968779265880585,
-1.164070963859558,
0.2731007933616638,
0.7726715207099915,
-0.7011075019836426,
0.042643241584300995,
-0.26107150316238403,
-1.3286086320877075,
-0.5177435874938965,
0.4716964364051819,
1.871196985244751,
-0.675055205821991,
0.9192686676979065,
1.0406358242034912,
-0.7618849873542786,
0.059747546911239624,
0.2520281970500946,
-0.31821057200431824,
0.7533131837844849,
-1.0334922075271606,
-0.40952083468437195,
1.225472092628479,
-0.2437819391489029,
-0.7174883484840393,
1.4926552772521973,
0.7951515316963196,
-0.9567629098892212,
-0.1081065833568573,
-0.2729807198047638,
-0.782465934753418,
-0.03485458716750145,
-1.4791711568832397,
-0.0816674530506134,
0.36417156457901,
-1.4815386533737183,
-0.4121272563934326,
-0.18739667534828186,
1.3098417520523071,
-0.28249391913414,
1.4682565927505493,
-0.20296458899974823,
-0.2579250633716583,
-0.340586394071579,
-0.4073857367038727,
0.14181719720363617,
-0.13925962150096893,
-0.6479542851448059,
0.26310428977012634,
-0.8115022778511047,
0.3745497465133667,
1.4281468391418457,
0.2607933282852173,
0.09126801788806915,
0.48739373683929443,
1.1451870203018188,
0.367897629737854,
-0.07290874421596527,
-0.8674591779708862,
-1.59237802028656,
2.036233901977539,
-1.3098483085632324,
1.9778112173080444,
0.6461413502693176,
-0.09535561501979828,
-1.8113417625427246,
-1.7806953191757202,
1.3484101295471191,
1.1317228078842163,
2.416597843170166,
0.5406644940376282,
0.3434367775917053,
-0.8118485808372498,
-0.7000914216041565,
0.39138177037239075,
-0.9671594500541687,
-0.6841925382614136,
0.1864619106054306,
2.3872427940368652,
1.7672407627105713,
-0.5535951852798462,
-0.2185870110988617,
-1.0751906633377075,
1.4210164546966553,
-0.29355716705322266,
0.27937835454940796,
2.0363032817840576,
-0.3117787539958954,
-1.071501612663269,
1.3672703504562378,
-2.402787208557129,
0.237466961145401,
2.086921453475952,
0.2303505837917328,
0.04965517297387123,
-1.3969206809997559,
-0.6562870740890503,
-0.2746937572956085,
-0.5183643102645874,
-1.2608212232589722,
0.45491349697113037,
-0.2908172905445099,
-0.8173272609710693,
-1.3987630605697632,
0.09105915576219559,
-1.0879864692687988,
-1.7298539876937866,
0.289153516292572,
1.8466823101043701,
1.9650979042053223,
-0.710254430770874,
1.4814252853393555,
-0.23474889993667603,
0.178575336933136,
1.354163408279419,
1.2962690591812134,
3.117169141769409,
1.9030998945236206,
-1.2668285369873047,
0.7942847013473511,
-0.17568954825401306,
-0.5501667857170105,
1.2976220846176147,
-1.1436283588409424,
1.2140567302703857,
-0.23264747858047485,
-1.2240933179855347,
-1.316657543182373,
1.0789402723312378,
0.47019121050834656,
0.13296613097190857,
-0.5963871479034424,
1.213133454322815,
0.18538545072078705,
1.2714718580245972,
0.5913320183753967,
-0.4143575131893158,
0.5584373474121094,
-0.4109897315502167,
-0.5825047492980957,
1.5554038286209106,
0.20661181211471558,
-1.3995907306671143,
-2.3172245025634766,
-0.19263802468776703,
-0.9335148334503174,
-0.13550463318824768,
-0.5769704580307007,
-0.960111141204834,
1.6200144290924072,
0.4346894919872284,
-1.2980272769927979,
-0.19526533782482147,
-0.30834874510765076,
-0.5611371397972107,
2.7773447036743164,
-1.2828752994537354,
-0.18408513069152832,
-1.0273323059082031,
-0.6576133370399475,
1.6782509088516235,
-1.2365328073501587,
-0.18143784999847412,
-1.0427930355072021,
-0.6087233424186707,
-1.3980257511138916,
-0.4878137409687042,
0.010296105407178402,
-0.8910711407661438,
0.7136828303337097,
0.04692003130912781,
-1.2339916229248047,
-0.3843473494052887,
-0.8833420276641846,
0.9568593502044678,
-0.1684628427028656,
0.24792753159999847,
1.824658751487732,
0.44093990325927734,
-0.43421024084091187,
0.7143326997756958,
1.1316732168197632,
0.6399348378181458,
-0.6312058568000793,
0.29222702980041504,
-0.6936374306678772,
0.2599560618400574,
-1.394726037979126,
0.2847922742366791,
-2.883207321166992,
0.6529823541641235,
-0.10828404873609543,
-0.17324672639369965,
-0.10759095102548599,
-1.3603307008743286,
1.0759823322296143,
2.5769712924957275,
-1.2503066062927246,
0.4383067190647125,
0.3973129987716675,
1.1207191944122314,
-1.532423973083496,
0.24432255327701569,
-0.46605193614959717,
2.071046829223633,
0.17886458337306976,
1.1449754238128662,
-0.4958685636520386,
-2.1443493366241455,
0.5786409974098206,
-1.218145728111267,
-1.1506942510604858,
0.8305802941322327,
-0.8717049360275269,
0.2233479917049408,
-1.342930793762207,
-0.15282294154167175,
-0.9262394905090332,
-1.2862751483917236,
0.7586591243743896,
0.10699109733104706,
0.46368682384490967,
-0.5441495776176453,
0.4090798795223236,
-2.0991287231445312,
-1.3330458402633667,
-0.25184711813926697,
-0.9381781220436096,
0.4921920895576477,
-0.2986904978752136,
0.628206729888916,
-0.13802292943000793,
-0.0057740965858101845,
0.28168976306915283,
1.4463918209075928,
3.358182191848755,
0.1723664402961731,
0.29346174001693726,
-0.08260700106620789,
-0.9639472365379333,
1.4812008142471313,
0.9734319448471069,
-0.09772174805402756,
-0.5038761496543884,
-0.9972123503684998,
1.2863740921020508,
2.016556978225708,
1.0874418020248413,
0.03132154047489166,
-0.8398931622505188,
-0.8169542551040649,
0.06419693678617477,
0.10929423570632935,
0.4899212718009949,
0.9297061562538147,
0.1419128030538559,
0.09058602899312973,
1.3329598903656006,
1.29021418094635,
-0.29369407892227173,
0.41044697165489197,
-0.8999797701835632,
-0.38574787974357605,
0.47968512773513794,
0.3268718421459198,
0.06330325454473495,
0.4665391445159912,
-1.0261515378952026,
-0.21992380917072296,
-0.38669854402542114,
-0.9303943514823914,
-0.7759759426116943,
-0.5770519375801086,
-0.5224401950836182,
1.6993951797485352,
-0.03498682752251625,
-0.5036635398864746,
-0.0008282149210572243,
-0.7910583019256592,
-0.14846761524677277,
-0.9706237316131592,
0.3079281747341156,
-0.11004847288131714,
-0.03480367362499237,
-0.15835197269916534,
1.6949137449264526,
-1.0122325420379639,
-2.1461844444274902,
0.22859320044517517,
0.20080728828907013,
-0.4493914842605591,
0.22232386469841003,
1.647261381149292,
0.49175596237182617,
1.3927940130233765,
1.3498793840408325,
1.0207436084747314,
-0.5920735001564026,
-1.264259696006775,
0.6980903744697571,
0.9643244743347168,
-1.465826392173767,
0.8891432285308838,
0.013358392752707005,
-0.4354967772960663,
0.686195969581604,
1.127399206161499,
0.3346318006515503,
-2.009361505508423,
0.7113935351371765,
-0.8968535661697388,
0.7760529518127441,
0.7048656344413757,
0.7146444916725159,
0.1972755491733551,
0.9079577922821045,
-1.2245506048202515,
-1.1195603609085083,
-0.7502010464668274,
-0.655267596244812,
1.8426711559295654,
-0.25996723771095276,
0.632298469543457,
-0.1528356522321701,
-1.3405838012695312,
-0.11496637016534805,
0.8846960663795471,
0.415061891078949,
-0.5622258186340332,
0.8497072458267212,
-0.6090350151062012,
-0.9290328621864319,
-1.229433298110962,
-0.541077196598053,
-1.1259926557540894,
-0.8867974281311035,
0.9884098172187805,
0.7837188839912415,
0.3911570906639099,
1.9219179153442383,
0.6095646619796753,
0.32733362913131714,
-2.7319087982177734,
0.844873309135437,
0.24131275713443756,
0.03158039599657059,
0.8747345209121704,
0.3425753712654114,
1.0784424543380737,
-0.1304730623960495,
0.7100995182991028,
-2.4292008876800537,
2.195945978164673,
-0.21676820516586304,
0.5662533640861511,
-0.03816140815615654,
-0.1982349455356598,
1.092052936553955,
0.5490596294403076,
0.48743176460266113,
-1.1588029861450195,
0.7378604412078857,
-0.6029452085494995,
1.1582897901535034,
0.8103935718536377,
-0.911519467830658,
-0.027291256934404373,
1.390874981880188,
0.45327869057655334,
-0.3913711905479431,
-0.9365742206573486,
-0.879062831401825,
0.9449743032455444,
1.577576994895935,
-0.07647218555212021,
-0.06936652213335037,
0.9996537566184998,
0.6648461818695068,
-1.3053447008132935,
0.1464705467224121,
-0.6936030387878418,
-0.668985903263092,
1.7525012493133545,
1.9824126958847046,
-0.11003568768501282,
-0.13958920538425446,
-0.8190793395042419,
-1.1486834287643433,
0.7859723567962646,
0.06536655128002167,
0.017867770045995712,
0.6498998403549194,
-0.6723875403404236,
1.0692119598388672,
0.7417295575141907,
0.9324132800102234,
0.09863457828760147,
0.3398962914943695,
0.3523131012916565,
-0.4070013165473938,
-1.2450056076049805,
-0.29609909653663635,
-1.1132802963256836,
-2.596320629119873,
0.4430222511291504,
-0.2792557179927826,
-1.431232213973999,
0.05566387623548508,
-1.1273857355117798,
0.8135835528373718,
-0.6051809787750244,
-1.1892420053482056,
-1.4023187160491943,
0.2510526180267334,
-0.09920451045036316,
0.9472801685333252,
-1.6219456195831299,
0.017918787896633148,
1.1681365966796875,
0.8353196382522583,
-0.6635323166847229,
0.992466151714325,
0.2239021211862564,
1.0577698945999146,
0.8858915567398071,
-0.3475704789161682,
0.5820935368537903,
0.16865698993206024,
-1.3792223930358887,
0.4456559121608734,
1.1513017416000366,
0.17287644743919373,
1.4258157014846802,
-0.5530129075050354,
0.1458974927663803,
0.4734976589679718,
-0.6496590375900269,
-0.534847617149353,
-0.5882743000984192,
0.7628309726715088,
0.05465579777956009,
-0.9724084138870239,
0.04123935103416443,
-0.026684101670980453,
-0.1880561113357544,
0.12326563149690628,
-1.4922069311141968,
-0.14632335305213928,
-0.2681197226047516,
-0.5868392586708069,
-1.2412220239639282,
-0.004984358325600624,
1.262879490852356,
-0.6892074346542358,
-0.13525086641311646,
0.5321725010871887,
0.3340231776237488,
0.5351682901382446,
0.5252063870429993,
-0.6548985838890076,
-0.2808316946029663,
-0.3138296902179718,
-0.2904182970523834,
0.40754234790802,
1.2949472665786743,
-0.11271708458662033,
-1.0087237358093262,
0.8192381262779236,
-0.423725426197052,
0.12360427528619766,
2.0131945610046387,
0.06578990072011948,
-0.7499570846557617,
0.3096120357513428,
-0.6927927136421204,
1.8554679155349731,
1.8866608142852783,
1.3094329833984375,
-0.06255761533975601,
-0.9059696197509766,
0.5299277305603027,
-0.4067049026489258,
-0.38053098320961,
0.9308366179466248,
0.37568047642707825,
-0.2013525813817978,
-1.3162237405776978,
0.6703292727470398,
1.3001599311828613,
-0.8543563485145569,
-0.816501259803772,
0.16517490148544312,
-0.8473868370056152,
1.132575273513794,
0.6496759653091431,
0.3150545060634613,
0.2458631545305252,
1.5255365371704102,
0.6923941969871521,
-0.37025120854377747,
0.5801804661750793,
0.5489610433578491,
-0.21066875755786896,
-2.0417122840881348,
-1.2100234031677246,
0.35253384709358215,
-0.554781436920166,
-1.588103175163269,
1.35088312625885,
-1.2173078060150146,
-0.9915972352027893,
0.5526136755943298,
0.128584623336792,
1.5085541009902954,
0.30748724937438965,
1.5856223106384277,
2.100076675415039,
0.8181492686271667,
0.37826594710350037,
1.3214482069015503,
-0.07013703882694244,
-0.47686758637428284,
1.8304002285003662,
-0.4827865660190582,
0.5735109448432922,
1.0664925575256348,
-0.3004627227783203,
-1.0420342683792114,
-0.854232907295227,
-1.2266225814819336,
-0.6081002950668335,
1.1829540729522705,
0.11276716738939285,
-1.0508134365081787,
0.2223867028951645,
1.568598747253418,
0.053023479878902435,
-0.2658554017543793,
0.6541804671287537,
0.2814582884311676,
-0.7734131813049316,
-0.008587701246142387,
-0.9148153066635132,
0.5717881321907043,
-0.18777701258659363,
-0.2835799753665924,
0.2860167920589447,
0.4429965615272522,
1.1358551979064941,
-0.019901923835277557,
0.20186695456504822,
1.1984670162200928,
-1.4102004766464233,
1.5445064306259155,
-0.6569947004318237,
0.35066309571266174,
-2.4049859046936035,
1.377699851989746,
-0.8345550894737244,
1.8594642877578735,
-2.6092965602874756,
0.3758021891117096,
-0.4898112416267395,
-0.5794657468795776,
0.29750749468803406,
-0.41952165961265564,
0.054944925010204315,
-0.17103232443332672,
-1.0808441638946533,
0.014659414999186993,
-0.8242083787918091,
0.5162757039070129,
1.1351802349090576,
1.3556431531906128,
-1.1266405582427979,
-0.3708370327949524,
-1.7957313060760498,
-0.11260437965393066,
-0.6880484223365784,
0.46606314182281494,
-1.9186815023422241,
-0.09653912484645844,
-1.9235366582870483,
-2.4491689205169678,
-1.3701255321502686,
-0.8390754461288452,
1.0197006464004517,
0.060785673558712006,
-0.8634278774261475,
1.120702862739563,
-0.34011110663414,
-1.8476884365081787,
1.0900238752365112,
-2.19663405418396
] |
https://github.com/huggingface/datasets/issues/5281 | Support cloud storage in load_dataset | It seems currently the `cached_path` function handles all URLs by `get_from_cache` that only supports `ftp` and `http(s)` here:
https://github.com/huggingface/datasets/blob/b5672a956d5de864e6f5550e493527d962d6ae55/src/datasets/utils/file_utils.py#L181
I guess one can add another condition that handles `s3://` or `gs://` URLs via `fsspec` here. | Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2) | 400 | 35 | Support cloud storage in load_dataset
Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2)
It seems currently the `cached_path` function handles all URLs by `get_from_cache` that only supports `ftp` and `http(s)` here:
https://github.com/huggingface/datasets/blob/b5672a956d5de864e6f5550e493527d962d6ae55/src/datasets/utils/file_utils.py#L181
I guess one can add another condition that handles `s3://` or `gs://` URLs via `fsspec` here. | [
-1.1119447946548462,
-0.8206652402877808,
-0.7333627343177795,
1.5866179466247559,
-0.06604381650686264,
-1.2926174402236938,
0.2216891348361969,
-0.9680379033088684,
1.628993034362793,
-0.7275192737579346,
0.40322235226631165,
-1.7049504518508911,
-0.05162134766578674,
-0.5773789286613464,
-0.7376155853271484,
-0.8989843726158142,
-0.41727393865585327,
-0.738166093826294,
0.9598438143730164,
2.4590582847595215,
1.2964229583740234,
-1.328795075416565,
2.6480937004089355,
0.6090877056121826,
-0.2381199449300766,
-1.034835934638977,
0.4414590895175934,
0.07137370109558105,
-1.216095209121704,
-0.43902069330215454,
-0.8693751096725464,
-0.10339729487895966,
-0.5683732628822327,
-0.5692514777183533,
0.09041862934827805,
0.516221284866333,
-0.27074965834617615,
-0.3294934332370758,
-0.5324421525001526,
-0.8181421756744385,
0.5169145464897156,
-0.35877931118011475,
0.948269248008728,
-0.3413011431694031,
1.8005726337432861,
-0.6409033536911011,
0.4613620340824127,
0.6650434732437134,
1.3467894792556763,
0.16308680176734924,
0.002133704721927643,
0.3082566559314728,
0.354938805103302,
0.039442650973796844,
0.5316066741943359,
1.2336708307266235,
0.5783542990684509,
0.4937847852706909,
0.6611006855964661,
-2.2887444496154785,
1.2614578008651733,
-0.9617058038711548,
0.2608028054237366,
1.3041038513183594,
-0.9547142386436462,
0.2951379120349884,
-1.8324476480484009,
-0.06139633432030678,
0.543125331401825,
-2.228848934173584,
0.20486822724342346,
-1.296350359916687,
-0.4908192753791809,
1.0553771257400513,
0.2829846441745758,
-1.2663286924362183,
0.19306299090385437,
-0.36652418971061707,
1.0456855297088623,
0.43429648876190186,
1.1161284446716309,
-1.7300841808319092,
0.01661534607410431,
-0.24914918839931488,
0.12403953820466995,
-1.2715779542922974,
-1.6012754440307617,
0.4842676520347595,
0.6867730617523193,
0.6301853060722351,
-0.17288123071193695,
0.9978267550468445,
-0.9134852290153503,
0.8071632981300354,
-0.9847674369812012,
-1.753330945968628,
-1.3965171575546265,
-2.239266872406006,
-2.3668408393859863,
0.7625789046287537,
-0.49062439799308777,
-0.42695289850234985,
1.9407345056533813,
-0.9409522414207458,
-1.834591031074524,
0.9883619546890259,
0.32489633560180664,
-0.038412485271692276,
2.2493577003479004,
0.2028694748878479,
-0.7333654165267944,
0.4269694685935974,
-0.728812575340271,
0.7502209544181824,
-0.2902069389820099,
1.4068968296051025,
0.5305841565132141,
-1.1438302993774414,
1.621066927909851,
-0.400579035282135,
0.6022149920463562,
-0.7846693992614746,
-0.5177022218704224,
-0.7344064116477966,
0.2670108675956726,
1.950974464416504,
-0.3601899743080139,
1.5699352025985718,
-0.298573762178421,
-1.5382455587387085,
-1.5097949504852295,
0.8639814853668213,
0.4583708941936493,
-0.7397010326385498,
0.06467755138874054,
-0.37900200486183167,
0.12253328412771225,
-0.024469366297125816,
1.1500437259674072,
1.2011469602584839,
0.7293503284454346,
-0.39680197834968567,
-0.8240807056427002,
0.25990501046180725,
0.005265726707875729,
-0.6501517295837402,
-1.7773867845535278,
-0.34395456314086914,
0.3263320028781891,
0.556486964225769,
-1.2119120359420776,
1.8540195226669312,
0.7657920122146606,
2.003148078918457,
0.9744848012924194,
-0.4112020432949066,
1.5695440769195557,
-0.021547961980104446,
1.9750877618789673,
-0.45453253388404846,
0.5828191041946411,
-0.3145284950733185,
-1.1792000532150269,
0.8649817705154419,
-0.30587226152420044,
-2.046232223510742,
-0.7421474456787109,
-0.8491026759147644,
-0.1258230060338974,
-0.717627227306366,
0.8821364045143127,
-0.21019870042800903,
-1.5350594520568848,
0.08266420662403107,
-0.6617519855499268,
0.1554521769285202,
-1.264132022857666,
0.25915345549583435,
0.7919768691062927,
-0.7312268018722534,
0.0410134382545948,
-0.2960483133792877,
-1.3208948373794556,
-0.541215181350708,
0.40360015630722046,
1.9230782985687256,
-0.6082456707954407,
0.9382297992706299,
1.0955555438995361,
-0.7689045667648315,
0.09333812445402145,
0.2651817798614502,
-0.3618086576461792,
0.8440904021263123,
-1.0940529108047485,
-0.40140047669410706,
1.1844971179962158,
-0.15932410955429077,
-0.7178797125816345,
1.510115385055542,
0.8681542277336121,
-1.0072396993637085,
-0.19475482404232025,
-0.22407196462154388,
-0.7425730228424072,
0.05329034850001335,
-1.4999126195907593,
-0.0905957743525505,
0.3536597788333893,
-1.450061559677124,
-0.45266371965408325,
-0.2209973931312561,
1.3542845249176025,
-0.22743718326091766,
1.4309654235839844,
-0.19501805305480957,
-0.24473214149475098,
-0.3572005331516266,
-0.4411719739437103,
0.10920283943414688,
-0.18929041922092438,
-0.7254262566566467,
0.2888878881931305,
-0.7414036989212036,
0.39774906635284424,
1.3945541381835938,
0.25065767765045166,
0.04199880734086037,
0.5024875998497009,
1.2241955995559692,
0.3667416572570801,
-0.04296382516622543,
-0.8953487277030945,
-1.5868418216705322,
1.9785678386688232,
-1.3305102586746216,
1.9453998804092407,
0.726287305355072,
-0.022673193365335464,
-1.7514718770980835,
-1.8005690574645996,
1.3492482900619507,
1.1177034378051758,
2.420628786087036,
0.566080629825592,
0.40015166997909546,
-0.8341057896614075,
-0.6826845407485962,
0.36018073558807373,
-0.9662123918533325,
-0.6980854272842407,
0.19553090631961823,
2.403447389602661,
1.7219898700714111,
-0.5407989621162415,
-0.2517178952693939,
-1.009360432624817,
1.354022741317749,
-0.2950223684310913,
0.20035618543624878,
2.0473127365112305,
-0.20968812704086304,
-1.0406420230865479,
1.3258203268051147,
-2.3560631275177,
0.28530243039131165,
2.0706233978271484,
0.235162615776062,
0.03697608783841133,
-1.4392015933990479,
-0.6922779083251953,
-0.2796696722507477,
-0.48420658707618713,
-1.2281794548034668,
0.48736467957496643,
-0.213031604886055,
-0.8435865640640259,
-1.428888201713562,
0.12260206788778305,
-1.1181163787841797,
-1.7270077466964722,
0.2956750690937042,
1.89540696144104,
1.9050439596176147,
-0.7484434843063354,
1.4629275798797607,
-0.2884363830089569,
0.11009703576564789,
1.337414026260376,
1.3177505731582642,
3.1148393154144287,
1.8743313550949097,
-1.225368618965149,
0.8036720156669617,
-0.2022981494665146,
-0.508287787437439,
1.2878327369689941,
-1.125882625579834,
1.2041302919387817,
-0.3022264242172241,
-1.2419023513793945,
-1.3298178911209106,
1.0428905487060547,
0.5180801153182983,
0.06959245353937149,
-0.5499685406684875,
1.1666613817214966,
0.19926460087299347,
1.2915704250335693,
0.543606698513031,
-0.41663941740989685,
0.5987871885299683,
-0.33216503262519836,
-0.5280477404594421,
1.5687042474746704,
0.17102131247520447,
-1.36326265335083,
-2.3364665508270264,
-0.20284728705883026,
-0.9118507504463196,
-0.09934614598751068,
-0.6343300342559814,
-1.0244865417480469,
1.6129595041275024,
0.4588465988636017,
-1.2572382688522339,
-0.2546243369579315,
-0.33338531851768494,
-0.5602338314056396,
2.722175359725952,
-1.3005598783493042,
-0.13100242614746094,
-1.010477900505066,
-0.5656246542930603,
1.7023100852966309,
-1.180860996246338,
-0.22927305102348328,
-1.0199699401855469,
-0.5881816148757935,
-1.3433822393417358,
-0.5573998689651489,
0.014970491640269756,
-0.8650021553039551,
0.6864613890647888,
0.03739587217569351,
-1.202008843421936,
-0.374329537153244,
-0.8932297825813293,
1.0365688800811768,
-0.16200484335422516,
0.16294145584106445,
1.8434723615646362,
0.49273109436035156,
-0.4118763208389282,
0.7146800756454468,
1.1336239576339722,
0.581186830997467,
-0.597075343132019,
0.30035942792892456,
-0.6583811044692993,
0.2293466478586197,
-1.461410641670227,
0.2568835914134979,
-2.8814423084259033,
0.6770027875900269,
-0.0715365782380104,
-0.10292116552591324,
-0.09274376928806305,
-1.3348004817962646,
1.1096217632293701,
2.5758721828460693,
-1.2366825342178345,
0.4029422998428345,
0.417247474193573,
1.104613184928894,
-1.5764228105545044,
0.24290984869003296,
-0.4428419768810272,
2.0810391902923584,
0.11151803284883499,
1.2095575332641602,
-0.5170919895172119,
-2.191986322402954,
0.531400203704834,
-1.213156819343567,
-1.1087197065353394,
0.8617357611656189,
-0.8722792267799377,
0.14807437360286713,
-1.362428903579712,
-0.20003539323806763,
-0.9286231994628906,
-1.257537603378296,
0.7698906660079956,
0.06790515035390854,
0.45326027274131775,
-0.6004446744918823,
0.3933621346950531,
-2.124755382537842,
-1.4149547815322876,
-0.24033202230930328,
-0.9738953113555908,
0.4706476032733917,
-0.2925136685371399,
0.6225413084030151,
-0.08116582781076431,
0.008792472071945667,
0.268754243850708,
1.4679512977600098,
3.3479905128479004,
0.19702202081680298,
0.30700400471687317,
-0.07050344347953796,
-1.0092418193817139,
1.4314587116241455,
0.8951179385185242,
-0.14737407863140106,
-0.49398094415664673,
-0.9613857865333557,
1.2296340465545654,
2.026878833770752,
1.1923094987869263,
0.05182388424873352,
-0.9157301187515259,
-0.9036903381347656,
-0.010257214307785034,
0.14333759248256683,
0.5183392763137817,
0.9286625981330872,
0.12083939462900162,
0.09448075294494629,
1.2834467887878418,
1.1942342519760132,
-0.3445016145706177,
0.4237637519836426,
-0.9335079789161682,
-0.37745916843414307,
0.43823152780532837,
0.2723315954208374,
0.07550736516714096,
0.4426209628582001,
-1.0747528076171875,
-0.22402219474315643,
-0.3467712998390198,
-0.9147151708602905,
-0.8040196895599365,
-0.5567784905433655,
-0.4207061231136322,
1.6686956882476807,
-0.04233906418085098,
-0.4842517375946045,
0.04132399708032608,
-0.7559536695480347,
-0.10999792069196701,
-1.0336230993270874,
0.2377784550189972,
-0.17134016752243042,
-0.04294217750430107,
-0.1475052535533905,
1.6501587629318237,
-1.0269626379013062,
-2.1267199516296387,
0.2222360372543335,
0.2546350657939911,
-0.49735385179519653,
0.22922907769680023,
1.6816964149475098,
0.5462221503257751,
1.3835935592651367,
1.335074543952942,
1.0542761087417603,
-0.6615228056907654,
-1.2650874853134155,
0.6379734873771667,
0.972506046295166,
-1.3804070949554443,
0.8887027502059937,
-0.04413666948676109,
-0.4130183160305023,
0.6401721239089966,
1.2721303701400757,
0.3781091868877411,
-2.030430316925049,
0.7210150957107544,
-0.7897205352783203,
0.7292539477348328,
0.6677173972129822,
0.7715959548950195,
0.19823993742465973,
0.8305169939994812,
-1.2231590747833252,
-1.1219732761383057,
-0.6743131279945374,
-0.6331580281257629,
1.8714988231658936,
-0.23146557807922363,
0.5890868902206421,
-0.17198853194713593,
-1.366786241531372,
-0.08738712966442108,
0.8670850396156311,
0.43036937713623047,
-0.5918280482292175,
0.8656616806983948,
-0.5723172426223755,
-0.9567974805831909,
-1.2367254495620728,
-0.5265998840332031,
-1.0464894771575928,
-0.9315118193626404,
0.942481279373169,
0.7793357968330383,
0.4356948435306549,
1.914744257926941,
0.6586751937866211,
0.27781420946121216,
-2.7183611392974854,
0.8556967377662659,
0.31646087765693665,
0.010156421922147274,
0.890421986579895,
0.3060489892959595,
1.1403026580810547,
-0.0692111924290657,
0.6799002289772034,
-2.3584673404693604,
2.2157461643218994,
-0.18991930782794952,
0.581723690032959,
-0.048808034509420395,
-0.253410279750824,
1.07008957862854,
0.5101063251495361,
0.5828360319137573,
-1.2161551713943481,
0.7431439757347107,
-0.6574494242668152,
1.0741122961044312,
0.7798978090286255,
-0.9344865679740906,
0.03158729895949364,
1.4446666240692139,
0.49202269315719604,
-0.3974746763706207,
-0.9705583453178406,
-0.8527031540870667,
0.9841641187667847,
1.603743553161621,
-0.02363765612244606,
-0.011151540093123913,
0.9663279056549072,
0.6677104234695435,
-1.358029842376709,
0.13247022032737732,
-0.6814581155776978,
-0.7019778490066528,
1.7632858753204346,
2.0035173892974854,
-0.11765442788600922,
-0.2676369845867157,
-0.8590970039367676,
-1.131203532218933,
0.7538260817527771,
0.011271263472735882,
0.042128752917051315,
0.6539827585220337,
-0.6545013189315796,
1.1616127490997314,
0.7114661335945129,
0.9742018580436707,
0.07047659903764725,
0.34011340141296387,
0.35269594192504883,
-0.41781485080718994,
-1.2528530359268188,
-0.3329774737358093,
-1.1374317407608032,
-2.5924618244171143,
0.46671828627586365,
-0.256207674741745,
-1.397794485092163,
0.048488400876522064,
-1.1195608377456665,
0.8153901696205139,
-0.6741347908973694,
-1.1681489944458008,
-1.4166162014007568,
0.27712565660476685,
-0.12308843433856964,
0.8785401582717896,
-1.6059458255767822,
-0.04327614605426788,
1.226902961730957,
0.8945332765579224,
-0.6240921020507812,
0.9052026271820068,
0.2085082232952118,
1.0264540910720825,
0.9340194463729858,
-0.3178960978984833,
0.595758855342865,
0.13128314912319183,
-1.3446532487869263,
0.45303136110305786,
1.1659486293792725,
0.20784340798854828,
1.466788411140442,
-0.5465648174285889,
0.11907289177179337,
0.44504043459892273,
-0.598560094833374,
-0.5426075458526611,
-0.6331716179847717,
0.6970881223678589,
0.03703601285815239,
-1.0232584476470947,
0.09382303804159164,
-0.04284553602337837,
-0.1127881184220314,
0.1897881180047989,
-1.5234699249267578,
-0.18935386836528778,
-0.2195664793252945,
-0.5710195302963257,
-1.2347371578216553,
-0.010597391985356808,
1.2415953874588013,
-0.715140163898468,
-0.16492396593093872,
0.5012540221214294,
0.280880868434906,
0.5391607284545898,
0.5170778036117554,
-0.6791931986808777,
-0.27544012665748596,
-0.3337934613227844,
-0.3388116955757141,
0.3579593300819397,
1.2343451976776123,
-0.0778547003865242,
-0.9738172888755798,
0.7899001836776733,
-0.42763882875442505,
0.1597195267677307,
2.0452377796173096,
0.059077899903059006,
-0.7848779559135437,
0.3166348338127136,
-0.6608687043190002,
1.820969581604004,
1.8110980987548828,
1.3006702661514282,
-0.0719698891043663,
-0.901617169380188,
0.5905854105949402,
-0.38247326016426086,
-0.40011823177337646,
0.9453194737434387,
0.3571081757545471,
-0.18298771977424622,
-1.3619771003723145,
0.6238753795623779,
1.3804267644882202,
-0.854199230670929,
-0.8258998394012451,
0.1422577202320099,
-0.8747979402542114,
1.1311668157577515,
0.6446442008018494,
0.2773362994194031,
0.2273143082857132,
1.48624849319458,
0.6960300207138062,
-0.33131346106529236,
0.5948351621627808,
0.500490665435791,
-0.18899895250797272,
-2.0382308959960938,
-1.1462652683258057,
0.3433675169944763,
-0.48696744441986084,
-1.617501974105835,
1.3420741558074951,
-1.240075945854187,
-1.016001582145691,
0.5426087975502014,
0.11825766414403915,
1.5272276401519775,
0.30124548077583313,
1.6553491353988647,
2.100724697113037,
0.810649037361145,
0.3074112832546234,
1.211533546447754,
-0.03686897084116936,
-0.46092596650123596,
1.8394763469696045,
-0.51680988073349,
0.5567274689674377,
1.0775214433670044,
-0.3115330636501312,
-1.067573070526123,
-0.9171172976493835,
-1.2575119733810425,
-0.6708992123603821,
1.226735234260559,
0.13077177107334137,
-1.1114816665649414,
0.2991909980773926,
1.5978773832321167,
0.08798366039991379,
-0.26643624901771545,
0.7175135612487793,
0.359791100025177,
-0.7865771055221558,
0.021164488047361374,
-0.892541766166687,
0.48568636178970337,
-0.0889524593949318,
-0.27639710903167725,
0.2941876947879791,
0.5042389035224915,
1.2165353298187256,
0.02426932007074356,
0.12259101122617722,
1.185367226600647,
-1.381550669670105,
1.5674480199813843,
-0.6663550138473511,
0.3703135550022125,
-2.407944917678833,
1.400962471961975,
-0.837451696395874,
1.8452422618865967,
-2.5602171421051025,
0.3931468427181244,
-0.46421241760253906,
-0.5067898035049438,
0.26495689153671265,
-0.46772900223731995,
0.08770965784788132,
-0.13518835604190826,
-1.0536538362503052,
-0.07099657505750656,
-0.8193284869194031,
0.5719754695892334,
1.1641653776168823,
1.3929632902145386,
-1.0976005792617798,
-0.3333593010902405,
-1.8264667987823486,
-0.12261784076690674,
-0.5919340252876282,
0.4479873478412628,
-1.8924617767333984,
-0.14879019558429718,
-1.9657899141311646,
-2.422065019607544,
-1.3149534463882446,
-0.8028475642204285,
0.9514495730400085,
0.08521940559148788,
-0.8586400747299194,
1.078392744064331,
-0.38031354546546936,
-1.8135451078414917,
1.0973320007324219,
-2.163804054260254
] |
https://github.com/huggingface/datasets/issues/5281 | Support cloud storage in load_dataset | I could use this functionality, so I put together a PR using @kyamagu's suggestion to use `fsspec` in `datasets.utils.file_utils`
https://github.com/huggingface/datasets/pull/5580 | Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2) | 400 | 20 | Support cloud storage in load_dataset
Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2)
I could use this functionality, so I put together a PR using @kyamagu's suggestion to use `fsspec` in `datasets.utils.file_utils`
https://github.com/huggingface/datasets/pull/5580 | [
-1.0952835083007812,
-0.8498707413673401,
-0.7236981987953186,
1.5619399547576904,
-0.08013491332530975,
-1.2700855731964111,
0.22350482642650604,
-0.9411389231681824,
1.6429386138916016,
-0.7555069923400879,
0.39713624119758606,
-1.700418472290039,
-0.03550271317362785,
-0.5758442282676697,
-0.7779064774513245,
-0.8806451559066772,
-0.4650934934616089,
-0.6544592380523682,
0.9772980213165283,
2.4396235942840576,
1.2788102626800537,
-1.3674626350402832,
2.6481869220733643,
0.6368429660797119,
-0.166270449757576,
-1.0752060413360596,
0.4621541500091553,
0.1168726310133934,
-1.2061694860458374,
-0.37029531598091125,
-0.8695772290229797,
-0.08831945806741714,
-0.5970965623855591,
-0.5844676494598389,
0.08683638274669647,
0.4663049578666687,
-0.2986415922641754,
-0.3275086581707001,
-0.5138451457023621,
-0.8136594295501709,
0.545307993888855,
-0.3700996935367584,
0.95831698179245,
-0.353748083114624,
1.7605575323104858,
-0.6282925605773926,
0.49688389897346497,
0.6929700970649719,
1.3323782682418823,
0.16062279045581818,
0.008887839503586292,
0.33912959694862366,
0.4022068381309509,
0.10023027658462524,
0.5268492698669434,
1.1874421834945679,
0.5524249076843262,
0.47649532556533813,
0.6401654481887817,
-2.2741239070892334,
1.2785199880599976,
-0.9924572706222534,
0.2541620433330536,
1.273727297782898,
-0.9578770399093628,
0.3351669907569885,
-1.7906219959259033,
-0.09458708018064499,
0.5797622799873352,
-2.220670223236084,
0.2062927633523941,
-1.3123834133148193,
-0.48694419860839844,
1.0230177640914917,
0.3326811194419861,
-1.2629677057266235,
0.21486371755599976,
-0.38569188117980957,
1.0110831260681152,
0.5019330978393555,
1.1058785915374756,
-1.7236024141311646,
0.03368499502539635,
-0.22966904938220978,
0.12574787437915802,
-1.2804192304611206,
-1.5440236330032349,
0.5092268586158752,
0.6274063587188721,
0.6768290400505066,
-0.15234604477882385,
0.9411357045173645,
-0.952484130859375,
0.8292456269264221,
-1.0260260105133057,
-1.7234890460968018,
-1.3672524690628052,
-2.2823610305786133,
-2.417048454284668,
0.7801457047462463,
-0.4345093071460724,
-0.3897222876548767,
1.9318729639053345,
-0.968721330165863,
-1.8249818086624146,
1.0112909078598022,
0.2884248197078705,
-0.006593060214072466,
2.2733306884765625,
0.1765647530555725,
-0.7799198627471924,
0.4708642363548279,
-0.7789034843444824,
0.6996544599533081,
-0.32428640127182007,
1.4001286029815674,
0.6004583239555359,
-1.1056349277496338,
1.660884976387024,
-0.4090641438961029,
0.5419784784317017,
-0.7627864480018616,
-0.5217068791389465,
-0.7372655868530273,
0.22062896192073822,
1.9315862655639648,
-0.35356569290161133,
1.5725884437561035,
-0.29320088028907776,
-1.5198482275009155,
-1.527658462524414,
0.9089738130569458,
0.4560787081718445,
-0.7631406188011169,
0.07731437683105469,
-0.356947124004364,
0.12543058395385742,
-0.060899097472429276,
1.1432678699493408,
1.1565192937850952,
0.7466675043106079,
-0.3731292486190796,
-0.7961715459823608,
0.22008104622364044,
-0.008152282796800137,
-0.6210539937019348,
-1.859039306640625,
-0.32854989171028137,
0.3240107297897339,
0.5768676400184631,
-1.1911208629608154,
1.8689818382263184,
0.7888996005058289,
1.9887374639511108,
0.9646728038787842,
-0.37709474563598633,
1.5445176362991333,
-0.04127385839819908,
1.9794514179229736,
-0.4424026310443878,
0.6187283992767334,
-0.3185723125934601,
-1.1422981023788452,
0.8585590720176697,
-0.302041620016098,
-2.035245418548584,
-0.7082540988922119,
-0.8749369382858276,
-0.12411347031593323,
-0.7119370102882385,
0.961870014667511,
-0.18259401619434357,
-1.5104576349258423,
0.11353182792663574,
-0.6689385771751404,
0.16849268972873688,
-1.2291197776794434,
0.2519260048866272,
0.7736192941665649,
-0.7225756645202637,
0.03118155524134636,
-0.27057066559791565,
-1.3578333854675293,
-0.5703350305557251,
0.4062603712081909,
1.8748345375061035,
-0.662967324256897,
0.9541389346122742,
1.0305075645446777,
-0.7903839945793152,
0.0904126912355423,
0.2974523901939392,
-0.3897579610347748,
0.7766713500022888,
-1.0554654598236084,
-0.4187421202659607,
1.2150685787200928,
-0.21769651770591736,
-0.7141284942626953,
1.4761707782745361,
0.8620222210884094,
-0.9698835611343384,
-0.19029797613620758,
-0.26186123490333557,
-0.7639904618263245,
0.029174599796533585,
-1.5172865390777588,
-0.08490009605884552,
0.3312893509864807,
-1.457288146018982,
-0.425298810005188,
-0.2075713723897934,
1.3287783861160278,
-0.24452409148216248,
1.4395854473114014,
-0.15413881838321686,
-0.22408241033554077,
-0.37060484290122986,
-0.4647446274757385,
0.15243704617023468,
-0.16273906826972961,
-0.708687961101532,
0.3166312575340271,
-0.7979795336723328,
0.4105827212333679,
1.4111708402633667,
0.26294127106666565,
0.04146423935890198,
0.518571674823761,
1.1625820398330688,
0.32927757501602173,
-0.07364220172166824,
-0.8975128531455994,
-1.6033738851547241,
2.0084362030029297,
-1.3060044050216675,
1.9810625314712524,
0.6551851630210876,
-0.07476796209812164,
-1.7830634117126465,
-1.8117046356201172,
1.3562260866165161,
1.0949268341064453,
2.4395952224731445,
0.5782402753829956,
0.3618829846382141,
-0.7797835469245911,
-0.7057895660400391,
0.3369130492210388,
-0.9704939723014832,
-0.7325037717819214,
0.18797002732753754,
2.382197856903076,
1.7507907152175903,
-0.5647220611572266,
-0.22102192044258118,
-1.0441163778305054,
1.371025800704956,
-0.29028818011283875,
0.2823924124240875,
2.068052053451538,
-0.29366108775138855,
-1.0556614398956299,
1.318800449371338,
-2.3969359397888184,
0.3021734058856964,
2.0536184310913086,
0.2311284989118576,
0.07175524532794952,
-1.4260237216949463,
-0.704363226890564,
-0.270780473947525,
-0.5342496633529663,
-1.2311369180679321,
0.47471749782562256,
-0.25671473145484924,
-0.8882873058319092,
-1.3840793371200562,
0.10837537050247192,
-1.0998480319976807,
-1.7491848468780518,
0.35521161556243896,
1.8768463134765625,
1.9699091911315918,
-0.7468787431716919,
1.445732831954956,
-0.2402583509683609,
0.15563708543777466,
1.3642939329147339,
1.301265835762024,
3.0841689109802246,
1.9086248874664307,
-1.2389212846755981,
0.8340606689453125,
-0.20083290338516235,
-0.5351767539978027,
1.2773927450180054,
-1.1115790605545044,
1.1709833145141602,
-0.29228881001472473,
-1.206352710723877,
-1.3324049711227417,
1.052110195159912,
0.5149111151695251,
0.09030533581972122,
-0.5381453633308411,
1.1968739032745361,
0.18278619647026062,
1.3032023906707764,
0.5760188698768616,
-0.4069471061229706,
0.5704575777053833,
-0.33311793208122253,
-0.5166780948638916,
1.5632569789886475,
0.1598358303308487,
-1.452772855758667,
-2.332817554473877,
-0.2027938961982727,
-0.9693495631217957,
-0.1717696487903595,
-0.6195651888847351,
-0.9828681349754333,
1.5966943502426147,
0.4837779998779297,
-1.2752039432525635,
-0.1866454780101776,
-0.2910724878311157,
-0.5719247460365295,
2.728026866912842,
-1.3025225400924683,
-0.18156331777572632,
-1.0106837749481201,
-0.6067646741867065,
1.6996232271194458,
-1.1734319925308228,
-0.1794755905866623,
-1.0108565092086792,
-0.6161447167396545,
-1.4251906871795654,
-0.5331197381019592,
0.02038075029850006,
-0.8649279475212097,
0.699887752532959,
0.016513917595148087,
-1.1761468648910522,
-0.35996881127357483,
-0.8964095115661621,
0.9801589846611023,
-0.15828700363636017,
0.23172977566719055,
1.8500094413757324,
0.4633026123046875,
-0.4011249840259552,
0.6973881125450134,
1.126136064529419,
0.6279897689819336,
-0.6091830134391785,
0.3107186257839203,
-0.7119113206863403,
0.23008514940738678,
-1.4363644123077393,
0.2722424268722534,
-2.883512496948242,
0.7054328322410583,
-0.07585686445236206,
-0.13220593333244324,
-0.11967523396015167,
-1.347963571548462,
1.139752745628357,
2.594608783721924,
-1.2408530712127686,
0.4398745596408844,
0.40581807494163513,
1.1156458854675293,
-1.5460691452026367,
0.21282725036144257,
-0.436788409948349,
2.0893664360046387,
0.14662854373455048,
1.1543954610824585,
-0.46236544847488403,
-2.12368106842041,
0.6084268689155579,
-1.2326269149780273,
-1.1032540798187256,
0.8384965658187866,
-0.8457581996917725,
0.19696088135242462,
-1.3782566785812378,
-0.11772304773330688,
-0.9193013310432434,
-1.2821415662765503,
0.755622386932373,
0.11325895041227341,
0.46266689896583557,
-0.5862275958061218,
0.4283160865306854,
-2.1247072219848633,
-1.3653441667556763,
-0.2532367408275604,
-0.9474631547927856,
0.5015778541564941,
-0.25199612975120544,
0.6288027763366699,
-0.09947346150875092,
0.004227060824632645,
0.2793622612953186,
1.4323768615722656,
3.3856887817382812,
0.17449210584163666,
0.27307188510894775,
-0.07494286447763443,
-0.9824724197387695,
1.471971869468689,
0.9509273171424866,
-0.1266929656267166,
-0.5005007982254028,
-0.9632120132446289,
1.2505589723587036,
2.0292773246765137,
1.1401642560958862,
0.09401166439056396,
-0.8947100639343262,
-0.845845103263855,
0.04993414133787155,
0.13708925247192383,
0.4770856499671936,
0.9405146837234497,
0.09556180983781815,
0.06586939841508865,
1.2958921194076538,
1.2954472303390503,
-0.29623091220855713,
0.41722965240478516,
-0.9459162354469299,
-0.3480150103569031,
0.46824905276298523,
0.283098429441452,
0.10019812732934952,
0.4546568691730499,
-1.076343059539795,
-0.2085874229669571,
-0.334972083568573,
-0.932755708694458,
-0.7972202897071838,
-0.5516486763954163,
-0.5024129748344421,
1.6583168506622314,
-0.02431049756705761,
-0.48178863525390625,
0.03264821693301201,
-0.7631255984306335,
-0.12075150012969971,
-0.9792277216911316,
0.2586410939693451,
-0.1295442134141922,
-0.025204099714756012,
-0.20452918112277985,
1.6806048154830933,
-1.0208523273468018,
-2.162968397140503,
0.2245662808418274,
0.23959916830062866,
-0.5006194710731506,
0.2226428985595703,
1.6816545724868774,
0.4984535276889801,
1.3680490255355835,
1.3519749641418457,
1.0351285934448242,
-0.5963004231452942,
-1.257554531097412,
0.659853994846344,
0.973025381565094,
-1.4254010915756226,
0.8711301684379578,
-0.023854147642850876,
-0.43289268016815186,
0.6804922819137573,
1.1813303232192993,
0.32865431904792786,
-1.9881783723831177,
0.7094681859016418,
-0.8012550473213196,
0.7707955241203308,
0.6474857926368713,
0.7421082258224487,
0.19937871396541595,
0.8816448450088501,
-1.2240713834762573,
-1.0820845365524292,
-0.7444267272949219,
-0.6078017950057983,
1.865222692489624,
-0.2042716145515442,
0.5801151990890503,
-0.1317492574453354,
-1.3149126768112183,
-0.11389746516942978,
0.8421091437339783,
0.3993659019470215,
-0.5517517924308777,
0.8464506268501282,
-0.5792984962463379,
-0.9654231667518616,
-1.2259986400604248,
-0.5083257555961609,
-1.0668584108352661,
-0.8949127197265625,
1.004258632659912,
0.7900444269180298,
0.44901278614997864,
1.9015133380889893,
0.6043553352355957,
0.2888021767139435,
-2.7636892795562744,
0.8569283485412598,
0.2803560495376587,
0.029492277652025223,
0.8765937089920044,
0.28865566849708557,
1.1214169263839722,
-0.1645893007516861,
0.7007665038108826,
-2.381866693496704,
2.1753475666046143,
-0.19583018124103546,
0.578460693359375,
-0.009656659327447414,
-0.18447710573673248,
1.051182508468628,
0.5021742582321167,
0.5356265902519226,
-1.2033683061599731,
0.7600932121276855,
-0.639488935470581,
1.1186131238937378,
0.7947635650634766,
-0.9290087819099426,
0.004964075051248074,
1.3675346374511719,
0.484390527009964,
-0.3492986857891083,
-0.9460201859474182,
-0.8455245494842529,
0.9625179767608643,
1.591713309288025,
-0.08840887248516083,
-0.06380555033683777,
1.0175940990447998,
0.6491409540176392,
-1.344023585319519,
0.07660038024187088,
-0.6751026511192322,
-0.6374337077140808,
1.7858573198318481,
2.00472354888916,
-0.05650399997830391,
-0.22563205659389496,
-0.8573405742645264,
-1.1504740715026855,
0.7570044994354248,
0.06715532392263412,
0.020398054271936417,
0.6806119084358215,
-0.6807466745376587,
1.152159571647644,
0.6919057369232178,
0.9421215057373047,
0.059470284730196,
0.32552477717399597,
0.32017382979393005,
-0.4233979880809784,
-1.2543058395385742,
-0.3528163433074951,
-1.1132867336273193,
-2.5931050777435303,
0.46058914065361023,
-0.28409749269485474,
-1.418326497077942,
0.04433340206742287,
-1.140542984008789,
0.8021460175514221,
-0.6306486129760742,
-1.171976923942566,
-1.3845990896224976,
0.2846413254737854,
-0.1360679268836975,
0.8722804188728333,
-1.6318504810333252,
0.0049306172877550125,
1.2138594388961792,
0.8608996272087097,
-0.6372290849685669,
0.9639657735824585,
0.26815736293792725,
1.0634074211120605,
0.8670451641082764,
-0.31871655583381653,
0.6072291135787964,
0.15633921325206757,
-1.3660231828689575,
0.4564969539642334,
1.147186040878296,
0.17279596626758575,
1.428379774093628,
-0.5684181451797485,
0.16743384301662445,
0.460919052362442,
-0.6405606865882874,
-0.5891101956367493,
-0.6092599630355835,
0.7544928193092346,
0.028682906180620193,
-1.0556936264038086,
0.05454722419381142,
-0.06502673774957657,
-0.13000057637691498,
0.1522289514541626,
-1.491062879562378,
-0.17415253818035126,
-0.24929140508174896,
-0.5854536294937134,
-1.196848750114441,
0.0026082005351781845,
1.251495599746704,
-0.7541031837463379,
-0.14031827449798584,
0.5463444590568542,
0.27900171279907227,
0.537831723690033,
0.5359447002410889,
-0.6636714935302734,
-0.3070070147514343,
-0.3233163058757782,
-0.29346176981925964,
0.3657323122024536,
1.2582454681396484,
-0.07436112314462662,
-1.031585931777954,
0.8141787052154541,
-0.4404124915599823,
0.14929111301898956,
2.011395215988159,
0.038467321544885635,
-0.7918072938919067,
0.326008141040802,
-0.6633317470550537,
1.859195590019226,
1.8196375370025635,
1.3279508352279663,
-0.0813402384519577,
-0.8862596154212952,
0.5427030324935913,
-0.38051098585128784,
-0.37847888469696045,
0.9130422472953796,
0.3677237033843994,
-0.18744495511054993,
-1.304797887802124,
0.5917323231697083,
1.3514454364776611,
-0.8602777123451233,
-0.8175749182701111,
0.1570151448249817,
-0.8766208291053772,
1.148390531539917,
0.6819483041763306,
0.32000967860221863,
0.24692565202713013,
1.4659550189971924,
0.6866753697395325,
-0.3756381869316101,
0.5354183912277222,
0.5193648338317871,
-0.20058493316173553,
-2.0250325202941895,
-1.143534541130066,
0.35452306270599365,
-0.5212486386299133,
-1.5964150428771973,
1.3222540616989136,
-1.2085398435592651,
-0.937138557434082,
0.5365918874740601,
0.16058067977428436,
1.4968832731246948,
0.3126089870929718,
1.6181325912475586,
2.0887646675109863,
0.8147833943367004,
0.3300796449184418,
1.2746803760528564,
-0.05236116424202919,
-0.49226415157318115,
1.8224905729293823,
-0.49143797159194946,
0.5961816310882568,
1.0703922510147095,
-0.3129301369190216,
-1.0587764978408813,
-0.9029264450073242,
-1.236228585243225,
-0.6139034628868103,
1.2221335172653198,
0.14269904792308807,
-1.0920944213867188,
0.22276142239570618,
1.5788072347640991,
0.04908844456076622,
-0.27138757705688477,
0.6886845827102661,
0.280938059091568,
-0.7458627820014954,
0.026661407202482224,
-0.8990949392318726,
0.5309872627258301,
-0.14185473322868347,
-0.284687876701355,
0.28128159046173096,
0.45201629400253296,
1.15534508228302,
-0.024326611310243607,
0.18067435920238495,
1.2440969944000244,
-1.4098687171936035,
1.5566102266311646,
-0.6854734420776367,
0.3724747896194458,
-2.406358242034912,
1.379999041557312,
-0.8547216057777405,
1.8270750045776367,
-2.616044282913208,
0.34884142875671387,
-0.47793227434158325,
-0.5084186792373657,
0.2003985196352005,
-0.4696703255176544,
0.07737454026937485,
-0.14518167078495026,
-1.092035174369812,
-0.06914570927619934,
-0.8383892774581909,
0.5440115928649902,
1.143178105354309,
1.3761234283447266,
-1.1230517625808716,
-0.3733280897140503,
-1.828352689743042,
-0.13086947798728943,
-0.6731758713722229,
0.4679003953933716,
-1.9010018110275269,
-0.09524171054363251,
-1.9499984979629517,
-2.431851863861084,
-1.3558387756347656,
-0.8142001032829285,
0.9949842095375061,
0.05315559729933739,
-0.847580075263977,
1.0819014310836792,
-0.36772096157073975,
-1.8292713165283203,
1.0886688232421875,
-2.216782569885254
] |
https://github.com/huggingface/datasets/issues/5281 | Support cloud storage in load_dataset | Thanks @dwyatte for adding support for fsspec urls
Let me just reopen this since the original issue is not resolved | Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2) | 400 | 20 | Support cloud storage in load_dataset
Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2)
Thanks @dwyatte for adding support for fsspec urls
Let me just reopen this since the original issue is not resolved | [
-1.1162397861480713,
-0.8388081789016724,
-0.6944715976715088,
1.6116211414337158,
-0.1191871166229248,
-1.2930155992507935,
0.19488219916820526,
-0.9393096566200256,
1.6099915504455566,
-0.7943482995033264,
0.4006102979183197,
-1.6975775957107544,
0.011448396369814873,
-0.5964275598526001,
-0.7617213726043701,
-0.9074597954750061,
-0.4406964182853699,
-0.638222873210907,
0.9674532413482666,
2.446138620376587,
1.2997881174087524,
-1.3414418697357178,
2.6619491577148438,
0.63714200258255,
-0.22153939306735992,
-1.0653035640716553,
0.46730491518974304,
0.09720563888549805,
-1.2164089679718018,
-0.3653903603553772,
-0.889805257320404,
-0.11474379897117615,
-0.56673264503479,
-0.5865914821624756,
0.08721049129962921,
0.4989878535270691,
-0.32668742537498474,
-0.3135264217853546,
-0.5348646640777588,
-0.8414231538772583,
0.5636591911315918,
-0.36770716309547424,
0.9812541007995605,
-0.374313086271286,
1.8004412651062012,
-0.6504701375961304,
0.4722921848297119,
0.6491947770118713,
1.302727460861206,
0.11964011192321777,
-0.020271871238946915,
0.3188329339027405,
0.3973877727985382,
0.10077133774757385,
0.5072802901268005,
1.1649659872055054,
0.5599107146263123,
0.5022715330123901,
0.6403325796127319,
-2.244661808013916,
1.3451488018035889,
-1.0006126165390015,
0.19796621799468994,
1.3014545440673828,
-0.9963357448577881,
0.36643868684768677,
-1.7598114013671875,
-0.12233614921569824,
0.5419177412986755,
-2.2244136333465576,
0.18091824650764465,
-1.2860323190689087,
-0.5091371536254883,
1.0123608112335205,
0.3215624988079071,
-1.2597367763519287,
0.21359634399414062,
-0.408230185508728,
1.0268269777297974,
0.4870283305644989,
1.038111925125122,
-1.7352455854415894,
0.06991946697235107,
-0.22242282330989838,
0.13109290599822998,
-1.3477429151535034,
-1.5213727951049805,
0.5383360981941223,
0.6832816004753113,
0.6588298082351685,
-0.10481946170330048,
0.9384258985519409,
-0.9652454257011414,
0.8511256575584412,
-1.0095922946929932,
-1.7210613489151,
-1.3671797513961792,
-2.309143543243408,
-2.403315305709839,
0.7602612972259521,
-0.4486546218395233,
-0.4376688003540039,
1.925389289855957,
-0.9702821969985962,
-1.809299349784851,
1.024094820022583,
0.2011309117078781,
-0.023052779957652092,
2.3022565841674805,
0.16414251923561096,
-0.7434571385383606,
0.4903489947319031,
-0.7589197754859924,
0.7181955575942993,
-0.32556676864624023,
1.3853716850280762,
0.5780815482139587,
-1.1444861888885498,
1.685534119606018,
-0.39949101209640503,
0.5698423981666565,
-0.7428805828094482,
-0.547996997833252,
-0.7295582294464111,
0.2666090726852417,
1.9494051933288574,
-0.39047402143478394,
1.5399982929229736,
-0.2784382104873657,
-1.5017337799072266,
-1.533444881439209,
0.9119217395782471,
0.43939903378486633,
-0.7444851398468018,
0.12115459144115448,
-0.35298049449920654,
0.08467799425125122,
-0.019271433353424072,
1.1776055097579956,
1.1804742813110352,
0.735357940196991,
-0.3700587749481201,
-0.8016700148582458,
0.2588312327861786,
-0.0046805450692772865,
-0.6048781275749207,
-1.854004144668579,
-0.3580840229988098,
0.3096795678138733,
0.6304445862770081,
-1.1618901491165161,
1.86030113697052,
0.7942436933517456,
1.9620963335037231,
1.0265374183654785,
-0.3327062427997589,
1.529552698135376,
-0.06788676977157593,
1.9499553442001343,
-0.48065248131752014,
0.6223210096359253,
-0.3515327274799347,
-1.156797170639038,
0.8389553427696228,
-0.27526843547821045,
-2.030050754547119,
-0.7217473387718201,
-0.8685073852539062,
-0.16109372675418854,
-0.7401658296585083,
0.9811646938323975,
-0.20381328463554382,
-1.482844591140747,
0.1484609991312027,
-0.6430186033248901,
0.18886302411556244,
-1.197304606437683,
0.2621091902256012,
0.7715677618980408,
-0.694762110710144,
0.039755791425704956,
-0.25801947712898254,
-1.3351337909698486,
-0.5525525212287903,
0.41243302822113037,
1.8883227109909058,
-0.6745278239250183,
0.9290899038314819,
1.0060080289840698,
-0.7643094658851624,
0.062182750552892685,
0.2854849696159363,
-0.4037121534347534,
0.7520092725753784,
-1.0332459211349487,
-0.43394753336906433,
1.1857722997665405,
-0.23136687278747559,
-0.7033844590187073,
1.511581540107727,
0.8304965496063232,
-0.9532777070999146,
-0.20368465781211853,
-0.26917678117752075,
-0.7603402137756348,
0.02697460725903511,
-1.5360358953475952,
-0.1288895308971405,
0.3358493149280548,
-1.4639461040496826,
-0.43513578176498413,
-0.16502384841442108,
1.3116276264190674,
-0.22980032861232758,
1.4413279294967651,
-0.1741728037595749,
-0.2726125717163086,
-0.3817904591560364,
-0.4678713381290436,
0.133348286151886,
-0.10588924586772919,
-0.6889199614524841,
0.29392752051353455,
-0.8102702498435974,
0.4352278709411621,
1.4094501733779907,
0.24213294684886932,
0.059694912284612656,
0.5324691534042358,
1.1780263185501099,
0.3325328826904297,
-0.07279466092586517,
-0.9026748538017273,
-1.6175594329833984,
2.0024380683898926,
-1.3268266916275024,
1.9990836381912231,
0.6648944020271301,
-0.07008380442857742,
-1.8158416748046875,
-1.8091984987258911,
1.3562878370285034,
1.1254514455795288,
2.3666117191314697,
0.5879666209220886,
0.3237225115299225,
-0.7832262516021729,
-0.6949049830436707,
0.3742310702800751,
-1.0076552629470825,
-0.7083041071891785,
0.18567724525928497,
2.3895392417907715,
1.7745248079299927,
-0.5716402530670166,
-0.21720221638679504,
-1.043507695198059,
1.3716248273849487,
-0.2628462016582489,
0.23608669638633728,
2.052365779876709,
-0.27031007409095764,
-1.0635905265808105,
1.320422649383545,
-2.3894872665405273,
0.2927321791648865,
2.0617785453796387,
0.22451697289943695,
0.06226779893040657,
-1.431206226348877,
-0.6783451437950134,
-0.24778924882411957,
-0.49781709909439087,
-1.2565587759017944,
0.44215670228004456,
-0.26310062408447266,
-0.8971787691116333,
-1.385156273841858,
0.10801161825656891,
-1.109910249710083,
-1.7156472206115723,
0.36001673340797424,
1.8333946466445923,
2.0005781650543213,
-0.7286939024925232,
1.504898190498352,
-0.22987483441829681,
0.16617648303508759,
1.3418796062469482,
1.2975389957427979,
3.1092522144317627,
1.9138197898864746,
-1.2259399890899658,
0.8071829080581665,
-0.2020193189382553,
-0.4868539869785309,
1.305857539176941,
-1.1231279373168945,
1.2386246919631958,
-0.29857462644577026,
-1.22563898563385,
-1.337629795074463,
1.0726006031036377,
0.4803239703178406,
0.08160071074962616,
-0.5387949347496033,
1.1933996677398682,
0.18815509974956512,
1.2928451299667358,
0.5443286299705505,
-0.3773351013660431,
0.5555288791656494,
-0.38127943873405457,
-0.4985564947128296,
1.544563889503479,
0.19532430171966553,
-1.4147063493728638,
-2.2887327671051025,
-0.1724371314048767,
-0.9043963551521301,
-0.15168343484401703,
-0.6245943307876587,
-1.0016604661941528,
1.6032558679580688,
0.4372257888317108,
-1.2795544862747192,
-0.19127066433429718,
-0.3418014943599701,
-0.5775933265686035,
2.7481958866119385,
-1.3426027297973633,
-0.17444869875907898,
-1.03291916847229,
-0.6382724642753601,
1.6897459030151367,
-1.2246267795562744,
-0.1675007939338684,
-0.9961898922920227,
-0.6033471822738647,
-1.417972445487976,
-0.5115196108818054,
-0.014147365465760231,
-0.9053537249565125,
0.6637541055679321,
0.018166590481996536,
-1.179262399673462,
-0.3918361961841583,
-0.8646668791770935,
0.9687860012054443,
-0.17323192954063416,
0.2054835557937622,
1.8439947366714478,
0.41155683994293213,
-0.41078153252601624,
0.7181264758110046,
1.1306827068328857,
0.6435373425483704,
-0.6465704441070557,
0.32070329785346985,
-0.6809089779853821,
0.2516143321990967,
-1.3916497230529785,
0.31100547313690186,
-2.8854095935821533,
0.6542383432388306,
-0.05138718709349632,
-0.13188597559928894,
-0.08868373930454254,
-1.3222764730453491,
1.1217713356018066,
2.6056320667266846,
-1.2523382902145386,
0.4195729196071625,
0.35960057377815247,
1.1125656366348267,
-1.5320727825164795,
0.221188485622406,
-0.4589272439479828,
2.1011550426483154,
0.14159396290779114,
1.1507500410079956,
-0.49032628536224365,
-2.143427610397339,
0.6232286691665649,
-1.2317744493484497,
-1.104719638824463,
0.7909190654754639,
-0.8314055800437927,
0.14530512690544128,
-1.3532605171203613,
-0.14809314906597137,
-0.9708498120307922,
-1.2962472438812256,
0.766227126121521,
0.09266337752342224,
0.4459247589111328,
-0.5399999022483826,
0.3734622299671173,
-2.0978641510009766,
-1.3693944215774536,
-0.2318112850189209,
-0.9421555399894714,
0.49896496534347534,
-0.28500351309776306,
0.6183310747146606,
-0.1229405552148819,
0.00573384016752243,
0.24930424988269806,
1.4277433156967163,
3.361356735229492,
0.13804538547992706,
0.28992724418640137,
-0.10492300987243652,
-0.9820086359977722,
1.4571175575256348,
0.9613597393035889,
-0.09565064311027527,
-0.5040121674537659,
-0.9371883869171143,
1.2603659629821777,
2.0097126960754395,
1.093435525894165,
0.09086120128631592,
-0.9140688180923462,
-0.8310760259628296,
0.047143906354904175,
0.139986053109169,
0.5219660401344299,
0.9247843027114868,
0.10878856480121613,
0.05421014502644539,
1.293989658355713,
1.2851245403289795,
-0.2996954321861267,
0.3617572486400604,
-0.9214864373207092,
-0.31310978531837463,
0.49937790632247925,
0.3162726163864136,
0.07753732800483704,
0.4393833875656128,
-1.0368050336837769,
-0.20318852365016937,
-0.3203710913658142,
-0.9419229030609131,
-0.8133723139762878,
-0.5526747107505798,
-0.5120497345924377,
1.6561285257339478,
-0.008727816864848137,
-0.4974324405193329,
0.005821408703923225,
-0.8254970908164978,
-0.1375616192817688,
-0.9523126482963562,
0.25791898369789124,
-0.11649429798126221,
-0.06899285316467285,
-0.18139797449111938,
1.7099759578704834,
-1.0183496475219727,
-2.1766226291656494,
0.24160970747470856,
0.2222292721271515,
-0.4793896973133087,
0.18499745428562164,
1.633732557296753,
0.5198606848716736,
1.4037045240402222,
1.356257438659668,
1.0161012411117554,
-0.6008104681968689,
-1.2916452884674072,
0.630057156085968,
0.967286229133606,
-1.4983670711517334,
0.8901764154434204,
-0.02910486049950123,
-0.3905640244483948,
0.6664550304412842,
1.1795276403427124,
0.34519892930984497,
-1.9729512929916382,
0.6692674160003662,
-0.855613648891449,
0.7769100666046143,
0.7088232636451721,
0.7235820889472961,
0.21305380761623383,
0.8739499449729919,
-1.19792640209198,
-1.0790457725524902,
-0.7465029358863831,
-0.6168782711029053,
1.8823570013046265,
-0.23611590266227722,
0.6139631867408752,
-0.14261411130428314,
-1.3367966413497925,
-0.06514570116996765,
0.8392472267150879,
0.39280104637145996,
-0.5093005299568176,
0.8813570737838745,
-0.6399772763252258,
-0.9688298106193542,
-1.241379737854004,
-0.5424020290374756,
-1.0417426824569702,
-0.9172074794769287,
1.0156755447387695,
0.7903283834457397,
0.4118834435939789,
1.9484765529632568,
0.5833727121353149,
0.2670193612575531,
-2.7497589588165283,
0.8516772389411926,
0.2591956555843353,
0.07882925868034363,
0.9283764958381653,
0.27714085578918457,
1.0893938541412354,
-0.15897755324840546,
0.6781537532806396,
-2.3839025497436523,
2.203084945678711,
-0.19498060643672943,
0.5704557299613953,
-0.01593547686934471,
-0.17229647934436798,
1.0544168949127197,
0.5386414527893066,
0.5614534616470337,
-1.1779899597167969,
0.7894503474235535,
-0.6270495057106018,
1.188424825668335,
0.7991272807121277,
-0.8915379643440247,
0.0081588514149189,
1.3895792961120605,
0.4862639605998993,
-0.3998032808303833,
-0.912045419216156,
-0.8702172040939331,
0.9195007085800171,
1.5933964252471924,
-0.02743166871368885,
-0.054089516401290894,
0.9827384352684021,
0.6377440690994263,
-1.3472927808761597,
0.11014236509799957,
-0.6676057577133179,
-0.623075544834137,
1.7530230283737183,
1.9918566942214966,
-0.08213040232658386,
-0.18252331018447876,
-0.824219286441803,
-1.1446352005004883,
0.7808645367622375,
0.08090406656265259,
0.021702341735363007,
0.6750062704086304,
-0.6715319156646729,
1.1339714527130127,
0.735844075679779,
0.9501239657402039,
0.07517284154891968,
0.3945830464363098,
0.3381895124912262,
-0.41483911871910095,
-1.265347957611084,
-0.33770105242729187,
-1.0981361865997314,
-2.6230409145355225,
0.46788161993026733,
-0.2961025834083557,
-1.4048455953598022,
0.04315616935491562,
-1.1560416221618652,
0.8047081828117371,
-0.6217502951622009,
-1.1950874328613281,
-1.396389365196228,
0.2535187005996704,
-0.14195892214775085,
0.9155596494674683,
-1.655031681060791,
-0.0028907754458487034,
1.225975513458252,
0.8799787759780884,
-0.6363460421562195,
1.0116498470306396,
0.26459529995918274,
1.0716842412948608,
0.8791876435279846,
-0.32367080450057983,
0.5730626583099365,
0.14226758480072021,
-1.385237693786621,
0.4627043306827545,
1.1517612934112549,
0.19193878769874573,
1.405207633972168,
-0.5552109479904175,
0.1569712609052658,
0.4455336928367615,
-0.6593012809753418,
-0.5368714332580566,
-0.6103684902191162,
0.791330099105835,
0.049621157348155975,
-0.9872597455978394,
0.04943694919347763,
-0.061788056045770645,
-0.1498519331216812,
0.1401728242635727,
-1.490423321723938,
-0.15955142676830292,
-0.2895360291004181,
-0.6163061261177063,
-1.2370996475219727,
-0.020583413541316986,
1.2600457668304443,
-0.7564392685890198,
-0.09962645173072815,
0.50417560338974,
0.3065585494041443,
0.547652006149292,
0.5391673445701599,
-0.6611785888671875,
-0.3328700661659241,
-0.3175104260444641,
-0.2909373641014099,
0.3827550411224365,
1.2643734216690063,
-0.07789544761180878,
-1.004780650138855,
0.8003218173980713,
-0.4310390055179596,
0.16435116529464722,
2.040149450302124,
0.03517593443393707,
-0.7996088862419128,
0.32489946484565735,
-0.690576434135437,
1.8566069602966309,
1.750500202178955,
1.3241114616394043,
-0.06806689500808716,
-0.8901009559631348,
0.5712109208106995,
-0.33272960782051086,
-0.37781211733818054,
0.9022457003593445,
0.39488402009010315,
-0.19874274730682373,
-1.3106684684753418,
0.6141704320907593,
1.3119479417800903,
-0.8463398218154907,
-0.7751052975654602,
0.15763293206691742,
-0.8577099442481995,
1.1062195301055908,
0.6387397646903992,
0.2932514548301697,
0.23612332344055176,
1.4884754419326782,
0.6719643473625183,
-0.4070928692817688,
0.5438629388809204,
0.4947749376296997,
-0.20385664701461792,
-2.0268666744232178,
-1.1346485614776611,
0.3775389790534973,
-0.5393043756484985,
-1.614134669303894,
1.311779260635376,
-1.2427953481674194,
-0.9672843813896179,
0.5277435779571533,
0.1617080122232437,
1.4852279424667358,
0.28179243206977844,
1.6086852550506592,
2.050743579864502,
0.7809178233146667,
0.34283772110939026,
1.2798302173614502,
-0.03863067924976349,
-0.48547106981277466,
1.807590126991272,
-0.5108596086502075,
0.6288732290267944,
1.103147268295288,
-0.307068407535553,
-1.0374809503555298,
-0.8734486103057861,
-1.2025893926620483,
-0.6056901812553406,
1.195162057876587,
0.1633579283952713,
-1.0907336473464966,
0.21683841943740845,
1.5810513496398926,
0.06248461827635765,
-0.2664982080459595,
0.6261576414108276,
0.3201722502708435,
-0.7565317153930664,
0.012065181508660316,
-0.8966183662414551,
0.536927342414856,
-0.1474064588546753,
-0.2777019441127777,
0.31130194664001465,
0.4497390687465668,
1.1326799392700195,
-0.021023008972406387,
0.22384601831436157,
1.2224100828170776,
-1.3966865539550781,
1.5400595664978027,
-0.6524102091789246,
0.3380538821220398,
-2.430501699447632,
1.4111793041229248,
-0.8630877137184143,
1.8825604915618896,
-2.602820873260498,
0.3597566485404968,
-0.5084593296051025,
-0.5201647877693176,
0.23665444552898407,
-0.4103648364543915,
0.07145792245864868,
-0.1581808179616928,
-1.0552109479904175,
-0.010251658037304878,
-0.8450034856796265,
0.5649142861366272,
1.1922810077667236,
1.3604025840759277,
-1.147355318069458,
-0.32138556241989136,
-1.852259874343872,
-0.09886229038238525,
-0.6559711694717407,
0.4494369626045227,
-1.926113486289978,
-0.1360318809747696,
-1.9335973262786865,
-2.457878828048706,
-1.3775990009307861,
-0.8094189167022705,
0.9913007616996765,
0.06537871062755585,
-0.843065083026886,
1.0763083696365356,
-0.34981244802474976,
-1.801326870918274,
1.1037819385528564,
-2.1585450172424316
] |
https://github.com/huggingface/datasets/issues/5281 | Support cloud storage in load_dataset | I'm not yet understanding how to use https://github.com/huggingface/datasets/pull/5580 in order to use `load_dataset(data_files="s3://...")`. Any help/example would be much appreciated :) thanks! | Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2) | 400 | 21 | Support cloud storage in load_dataset
Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2)
I'm not yet understanding how to use https://github.com/huggingface/datasets/pull/5580 in order to use `load_dataset(data_files="s3://...")`. Any help/example would be much appreciated :) thanks! | [
-1.0874907970428467,
-0.874066174030304,
-0.7081629037857056,
1.5715142488479614,
-0.09644901752471924,
-1.2539818286895752,
0.1999494582414627,
-0.9408275485038757,
1.6259489059448242,
-0.7350842952728271,
0.38461852073669434,
-1.6943416595458984,
-0.04317580536007881,
-0.5396792888641357,
-0.7633416652679443,
-0.8879666924476624,
-0.47916218638420105,
-0.6431980729103088,
0.9684944748878479,
2.4652631282806396,
1.3109252452850342,
-1.365693211555481,
2.6278839111328125,
0.6322968602180481,
-0.16814304888248444,
-1.0664204359054565,
0.4518376886844635,
0.12566237151622772,
-1.2050319910049438,
-0.35568463802337646,
-0.8771487474441528,
-0.06671620905399323,
-0.5604963302612305,
-0.574360191822052,
0.10377024114131927,
0.4704672396183014,
-0.28802695870399475,
-0.3326309323310852,
-0.5386855602264404,
-0.7863298654556274,
0.5421535968780518,
-0.3660966455936432,
0.9690566658973694,
-0.3428424596786499,
1.7787052392959595,
-0.6529316306114197,
0.529954731464386,
0.6847863793373108,
1.3114609718322754,
0.14762045443058014,
0.03413565829396248,
0.31927189230918884,
0.41037651896476746,
0.09507368505001068,
0.5230063199996948,
1.1997971534729004,
0.5352181792259216,
0.4716755747795105,
0.6287845969200134,
-2.26084303855896,
1.2714149951934814,
-0.9796438217163086,
0.23862645030021667,
1.265618920326233,
-0.9390872716903687,
0.3297683000564575,
-1.7684694528579712,
-0.11821834743022919,
0.5867753028869629,
-2.207838773727417,
0.20504389703273773,
-1.3084328174591064,
-0.5049991011619568,
1.0305213928222656,
0.29921621084213257,
-1.249426007270813,
0.2066946029663086,
-0.41303008794784546,
1.0088926553726196,
0.5221014618873596,
1.1047356128692627,
-1.7026407718658447,
0.04726298525929451,
-0.21617357432842255,
0.13025479018688202,
-1.2915033102035522,
-1.544970989227295,
0.49919694662094116,
0.6538591980934143,
0.6874831914901733,
-0.13008765876293182,
0.9476221203804016,
-0.9812794923782349,
0.891262412071228,
-1.0236750841140747,
-1.708073377609253,
-1.3687065839767456,
-2.289551019668579,
-2.411519765853882,
0.7621484398841858,
-0.4382902979850769,
-0.38221678137779236,
1.9364806413650513,
-0.9596632719039917,
-1.8281254768371582,
1.010338544845581,
0.2830239534378052,
-0.021585091948509216,
2.282428741455078,
0.16547593474388123,
-0.7291389107704163,
0.45808643102645874,
-0.7630755305290222,
0.6989615559577942,
-0.31405800580978394,
1.393022894859314,
0.5843443274497986,
-1.1395448446273804,
1.6486704349517822,
-0.41060373187065125,
0.5519116520881653,
-0.7761581540107727,
-0.5118632316589355,
-0.7382595539093018,
0.2187769114971161,
1.9430938959121704,
-0.39550352096557617,
1.5632683038711548,
-0.26849985122680664,
-1.5130739212036133,
-1.5470737218856812,
0.8944590091705322,
0.46606171131134033,
-0.7479209899902344,
0.0592363141477108,
-0.40142443776130676,
0.1060115247964859,
-0.04788992181420326,
1.136335015296936,
1.1690534353256226,
0.7751281261444092,
-0.3847922384738922,
-0.8059884905815125,
0.20077013969421387,
-0.023817338049411774,
-0.5898697376251221,
-1.869965672492981,
-0.3713713586330414,
0.33170953392982483,
0.582339346408844,
-1.206533670425415,
1.8691041469573975,
0.7922067046165466,
1.975917100906372,
0.9740475416183472,
-0.37499335408210754,
1.555604100227356,
-0.07023066282272339,
1.9752253293991089,
-0.4716123044490814,
0.6185773015022278,
-0.2968901991844177,
-1.1652251482009888,
0.8225657939910889,
-0.29528123140335083,
-2.025200366973877,
-0.7233229279518127,
-0.8723464608192444,
-0.14925044775009155,
-0.6986007690429688,
0.958057701587677,
-0.18045176565647125,
-1.5047646760940552,
0.08658236265182495,
-0.6572398543357849,
0.1516922563314438,
-1.2092500925064087,
0.24368144571781158,
0.7847382426261902,
-0.7205771207809448,
0.043485235422849655,
-0.2617003321647644,
-1.3413081169128418,
-0.5481970310211182,
0.43051260709762573,
1.878857135772705,
-0.6637650728225708,
0.9236205220222473,
1.0345144271850586,
-0.7758582830429077,
0.1350320428609848,
0.2726653814315796,
-0.40922290086746216,
0.7833243608474731,
-1.040058970451355,
-0.42175114154815674,
1.2100014686584473,
-0.2077140510082245,
-0.7582333087921143,
1.504889965057373,
0.852427065372467,
-0.9685910940170288,
-0.20374952256679535,
-0.23553580045700073,
-0.7427918314933777,
0.020545093342661858,
-1.512819766998291,
-0.07338231801986694,
0.3086532950401306,
-1.4323070049285889,
-0.44550126791000366,
-0.22552073001861572,
1.345100998878479,
-0.25810378789901733,
1.4573324918746948,
-0.16237513720989227,
-0.2578112781047821,
-0.3952721059322357,
-0.44858869910240173,
0.1631905734539032,
-0.14816772937774658,
-0.705998957157135,
0.28199532628059387,
-0.8306928873062134,
0.40305599570274353,
1.4412509202957153,
0.2840654253959656,
0.057440776377916336,
0.5368885397911072,
1.1638476848602295,
0.3516197204589844,
-0.07051140069961548,
-0.9148491621017456,
-1.6438710689544678,
2.0021541118621826,
-1.2830302715301514,
1.999179720878601,
0.6588556170463562,
-0.10021114349365234,
-1.8278807401657104,
-1.8311583995819092,
1.318367838859558,
1.1214680671691895,
2.4418439865112305,
0.5521628856658936,
0.3623652458190918,
-0.7823415994644165,
-0.7160637378692627,
0.37242284417152405,
-0.9657588005065918,
-0.7304115295410156,
0.19855718314647675,
2.379671573638916,
1.7743549346923828,
-0.5765679478645325,
-0.21766388416290283,
-1.0657180547714233,
1.3799550533294678,
-0.28156283497810364,
0.27025291323661804,
2.0724809169769287,
-0.2668648362159729,
-1.0509223937988281,
1.3054840564727783,
-2.3853070735931396,
0.30013176798820496,
2.040138006210327,
0.23067277669906616,
0.06367062032222748,
-1.4505254030227661,
-0.6735478639602661,
-0.2809096872806549,
-0.5435536503791809,
-1.2200219631195068,
0.45701220631599426,
-0.26285320520401,
-0.9450374841690063,
-1.3852204084396362,
0.07556810975074768,
-1.1316074132919312,
-1.7358289957046509,
0.33796489238739014,
1.8414397239685059,
1.9582926034927368,
-0.7570899128913879,
1.473253607749939,
-0.2401828020811081,
0.1377069056034088,
1.3357917070388794,
1.3266783952713013,
3.0912232398986816,
1.9026384353637695,
-1.2485077381134033,
0.826654851436615,
-0.20130008459091187,
-0.539036214351654,
1.3049589395523071,
-1.126486897468567,
1.188559651374817,
-0.3157239258289337,
-1.2240424156188965,
-1.3169840574264526,
1.1099178791046143,
0.5013388395309448,
0.09701785445213318,
-0.5600491166114807,
1.189085602760315,
0.20837616920471191,
1.2987035512924194,
0.6027087569236755,
-0.4121078848838806,
0.5769663453102112,
-0.36364927887916565,
-0.5065876841545105,
1.5457754135131836,
0.16638240218162537,
-1.4395967721939087,
-2.3497278690338135,
-0.20550855994224548,
-0.9814552664756775,
-0.1693381369113922,
-0.5879088640213013,
-0.9874016642570496,
1.5968074798583984,
0.44939279556274414,
-1.3043107986450195,
-0.20865415036678314,
-0.2889157235622406,
-0.5581361651420593,
2.7539005279541016,
-1.2914155721664429,
-0.17636370658874512,
-1.0146458148956299,
-0.5964264869689941,
1.700822114944458,
-1.1713403463363647,
-0.17058254778385162,
-1.031571388244629,
-0.6214191317558289,
-1.4232208728790283,
-0.5340169668197632,
0.02976052835583687,
-0.8933367729187012,
0.7034763097763062,
-0.003994358237832785,
-1.1558079719543457,
-0.36730751395225525,
-0.894834041595459,
1.0113720893859863,
-0.1420695036649704,
0.20998446643352509,
1.8538769483566284,
0.4547855257987976,
-0.41112610697746277,
0.7093597054481506,
1.1331658363342285,
0.6213793754577637,
-0.6230067610740662,
0.3061307370662689,
-0.7050396203994751,
0.19621311128139496,
-1.4340674877166748,
0.2709999680519104,
-2.8645901679992676,
0.6887788772583008,
-0.06695638597011566,
-0.12247060239315033,
-0.13542048633098602,
-1.3103184700012207,
1.129207968711853,
2.5955922603607178,
-1.25571870803833,
0.4340675175189972,
0.4013816714286804,
1.1155402660369873,
-1.5184214115142822,
0.20857015252113342,
-0.4573981761932373,
2.0745396614074707,
0.1630319058895111,
1.1696161031723022,
-0.49553433060646057,
-2.0803191661834717,
0.6193345189094543,
-1.2463254928588867,
-1.093997597694397,
0.8510289788246155,
-0.8693644404411316,
0.23683908581733704,
-1.3772883415222168,
-0.12702912092208862,
-0.934958815574646,
-1.2878687381744385,
0.7396602034568787,
0.07818324863910675,
0.4539431035518646,
-0.556893527507782,
0.4288136661052704,
-2.1001057624816895,
-1.35688316822052,
-0.25266316533088684,
-0.9587718844413757,
0.4950098395347595,
-0.23911382257938385,
0.6274705529212952,
-0.10708840191364288,
0.03903935104608536,
0.25918835401535034,
1.4095330238342285,
3.3542442321777344,
0.18640269339084625,
0.24998728930950165,
-0.055401258170604706,
-0.9831801056861877,
1.4829944372177124,
0.9604687690734863,
-0.12360380589962006,
-0.5001283288002014,
-0.9537849426269531,
1.2450071573257446,
2.007288694381714,
1.1687966585159302,
0.07954402267932892,
-0.937502384185791,
-0.8644205331802368,
0.028455637395381927,
0.11303560435771942,
0.4904854893684387,
0.9254607558250427,
0.08714844286441803,
0.06972810626029968,
1.32584547996521,
1.3168174028396606,
-0.2910011112689972,
0.4077635705471039,
-0.9457055926322937,
-0.37915411591529846,
0.47726017236709595,
0.2890978753566742,
0.11557413637638092,
0.489931583404541,
-1.088291049003601,
-0.21566234529018402,
-0.3508138358592987,
-0.9415623545646667,
-0.7837944626808167,
-0.5663568377494812,
-0.5043655633926392,
1.6482118368148804,
-0.021403469145298004,
-0.46200162172317505,
0.028377432376146317,
-0.805696964263916,
-0.1027897447347641,
-0.9752129912376404,
0.272409588098526,
-0.1323002576828003,
-0.01272642333060503,
-0.20690354704856873,
1.683190107345581,
-1.0210473537445068,
-2.1486268043518066,
0.22575104236602783,
0.23141855001449585,
-0.5242440104484558,
0.24292252957820892,
1.6636542081832886,
0.515419602394104,
1.364390254020691,
1.320950984954834,
1.0041886568069458,
-0.5743580460548401,
-1.242592692375183,
0.6315056681632996,
0.9878004789352417,
-1.4567116498947144,
0.8697641491889954,
-0.021664956584572792,
-0.4168523848056793,
0.6959221363067627,
1.174662470817566,
0.3197120726108551,
-1.9657461643218994,
0.7094656229019165,
-0.799801230430603,
0.7772258520126343,
0.664557695388794,
0.7306198477745056,
0.1940002143383026,
0.8547384142875671,
-1.2269868850708008,
-1.082618236541748,
-0.7655335664749146,
-0.6147253513336182,
1.8641548156738281,
-0.21021349728107452,
0.5656203031539917,
-0.15658482909202576,
-1.3176606893539429,
-0.11193995177745819,
0.8313884735107422,
0.4043651223182678,
-0.5592251420021057,
0.8939056992530823,
-0.5962693691253662,
-0.9435034394264221,
-1.1989911794662476,
-0.5210085511207581,
-1.0383210182189941,
-0.8920055031776428,
1.0026684999465942,
0.7694345712661743,
0.4445853531360626,
1.9300870895385742,
0.5729190111160278,
0.310261070728302,
-2.756448984146118,
0.8600283265113831,
0.2812463045120239,
0.035148538649082184,
0.8793080449104309,
0.2456175833940506,
1.122039794921875,
-0.18648876249790192,
0.6979984045028687,
-2.3779096603393555,
2.170504570007324,
-0.2005484253168106,
0.559448778629303,
-0.00522511126473546,
-0.18909040093421936,
1.0745750665664673,
0.5277434587478638,
0.5603951215744019,
-1.198914647102356,
0.742246150970459,
-0.6242454051971436,
1.1520555019378662,
0.7729472517967224,
-0.9244526624679565,
0.015843532979488373,
1.3603966236114502,
0.4879865050315857,
-0.3383408784866333,
-0.9188404679298401,
-0.8646080493927002,
0.9589574337005615,
1.5956716537475586,
-0.062271855771541595,
-0.058784179389476776,
1.024016261100769,
0.6427433490753174,
-1.350339412689209,
0.08154027163982391,
-0.7162778973579407,
-0.5898990035057068,
1.752323865890503,
2.028548002243042,
-0.0674934834241867,
-0.21586617827415466,
-0.8092378377914429,
-1.1681641340255737,
0.753628671169281,
0.05309717729687691,
0.0638180822134018,
0.6969255208969116,
-0.6490715146064758,
1.1090078353881836,
0.680734395980835,
0.9831675291061401,
0.02843315154314041,
0.3457293212413788,
0.29894304275512695,
-0.4060889184474945,
-1.2811120748519897,
-0.3476671576499939,
-1.0829142332077026,
-2.5805468559265137,
0.44115498661994934,
-0.27465084195137024,
-1.4059942960739136,
0.06173395738005638,
-1.146471381187439,
0.8328539729118347,
-0.607230007648468,
-1.1675297021865845,
-1.380006194114685,
0.2704746425151825,
-0.15108872950077057,
0.9198957681655884,
-1.620180368423462,
0.0062682293355464935,
1.2021446228027344,
0.8605231046676636,
-0.6067381501197815,
0.9700279235839844,
0.28382110595703125,
1.0532413721084595,
0.8683709502220154,
-0.3215446472167969,
0.59124755859375,
0.1315005123615265,
-1.3744494915008545,
0.4129510819911957,
1.1475244760513306,
0.21817070245742798,
1.4243625402450562,
-0.5911949872970581,
0.17461472749710083,
0.4589426517486572,
-0.6847264766693115,
-0.5775709748268127,
-0.5768707990646362,
0.7617881894111633,
0.029710382223129272,
-1.0581620931625366,
0.036122292280197144,
-0.04416470229625702,
-0.13545632362365723,
0.16605691611766815,
-1.4944238662719727,
-0.14274844527244568,
-0.22513580322265625,
-0.6159123182296753,
-1.1932158470153809,
0.042083270847797394,
1.2251062393188477,
-0.7713735103607178,
-0.12624332308769226,
0.5117001533508301,
0.2656320035457611,
0.5828336477279663,
0.5327328443527222,
-0.6928368210792542,
-0.315213680267334,
-0.3182140290737152,
-0.27754661440849304,
0.36631208658218384,
1.2622733116149902,
-0.10182748734951019,
-1.0060335397720337,
0.8146111965179443,
-0.4606820344924927,
0.17521579563617706,
2.0417730808258057,
0.04330791160464287,
-0.788514256477356,
0.31543001532554626,
-0.6902579069137573,
1.8205629587173462,
1.7873921394348145,
1.3398467302322388,
-0.0923728495836258,
-0.8606000542640686,
0.5327404737472534,
-0.4054320156574249,
-0.36655622720718384,
0.8984008431434631,
0.41424959897994995,
-0.1667414903640747,
-1.2843457460403442,
0.6125470399856567,
1.3396588563919067,
-0.9002718329429626,
-0.7639399170875549,
0.18064887821674347,
-0.8846876621246338,
1.143942952156067,
0.6888286471366882,
0.30351948738098145,
0.2360735833644867,
1.4596742391586304,
0.69080650806427,
-0.38069868087768555,
0.5185076594352722,
0.5312204957008362,
-0.21000315248966217,
-2.000753402709961,
-1.1077516078948975,
0.34462082386016846,
-0.521728515625,
-1.6268408298492432,
1.3052421808242798,
-1.2375330924987793,
-0.9662109017372131,
0.548751711845398,
0.17066790163516998,
1.4984004497528076,
0.3094322681427002,
1.633971929550171,
2.0727975368499756,
0.8175989985466003,
0.3349241316318512,
1.2797040939331055,
0.02014632150530815,
-0.4975958466529846,
1.8184819221496582,
-0.4944659173488617,
0.5959359407424927,
1.0617929697036743,
-0.32370516657829285,
-1.0563416481018066,
-0.8797993063926697,
-1.224202275276184,
-0.596960186958313,
1.238693118095398,
0.15340183675289154,
-1.086208701133728,
0.22111867368221283,
1.5877424478530884,
0.04125959426164627,
-0.27636176347732544,
0.7033663392066956,
0.2793237566947937,
-0.7296653985977173,
0.031232837587594986,
-0.8727870583534241,
0.5131199955940247,
-0.13799627125263214,
-0.2840753495693207,
0.24781541526317596,
0.44187161326408386,
1.1618765592575073,
-0.02753434330224991,
0.18964090943336487,
1.2465472221374512,
-1.3860907554626465,
1.5658880472183228,
-0.6652625799179077,
0.35844701528549194,
-2.4631686210632324,
1.3876248598098755,
-0.9035435914993286,
1.821049690246582,
-2.602046489715576,
0.38669073581695557,
-0.4867021143436432,
-0.514430820941925,
0.19117487967014313,
-0.44613170623779297,
0.042907968163490295,
-0.14016355574131012,
-1.0705885887145996,
-0.04908115416765213,
-0.8537243604660034,
0.5520226359367371,
1.1777657270431519,
1.3716810941696167,
-1.1707792282104492,
-0.3450194299221039,
-1.8550595045089722,
-0.12162426114082336,
-0.6979166865348816,
0.5011641979217529,
-1.9037562608718872,
-0.13644929230213165,
-1.9300291538238525,
-2.422124147415161,
-1.3688514232635498,
-0.8276042938232422,
0.9786757826805115,
0.07716985046863556,
-0.8515774607658386,
1.062960147857666,
-0.347551554441452,
-1.838748574256897,
1.0920617580413818,
-2.2430777549743652
] |
https://github.com/huggingface/datasets/issues/5281 | Support cloud storage in load_dataset | It's still not officially supported x) But you can try to update `request_etag` in `file_utils.py` to use `fsspec_head` instead of `http_head`. It is responsible of getting the ETags of the remote files for caching. This change may do the trick for S3 urls | Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2) | 400 | 43 | Support cloud storage in load_dataset
Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2)
It's still not officially supported x) But you can try to update `request_etag` in `file_utils.py` to use `fsspec_head` instead of `http_head`. It is responsible of getting the ETags of the remote files for caching. This change may do the trick for S3 urls | [
-1.0978657007217407,
-0.8224558234214783,
-0.7115296721458435,
1.6014676094055176,
-0.09623211622238159,
-1.293861985206604,
0.23310768604278564,
-0.9644601941108704,
1.6769380569458008,
-0.8170479536056519,
0.4120827317237854,
-1.6851418018341064,
0.04258618503808975,
-0.5588087439537048,
-0.7710750699043274,
-0.9287002682685852,
-0.4575065076351166,
-0.6542280316352844,
0.9670009016990662,
2.447061777114868,
1.2913974523544312,
-1.3810927867889404,
2.6342697143554688,
0.6439543962478638,
-0.17567726969718933,
-1.0509400367736816,
0.3798743188381195,
0.07690851390361786,
-1.1840227842330933,
-0.37529417872428894,
-0.863813579082489,
-0.12167185544967651,
-0.5889863967895508,
-0.6098849773406982,
0.06974445283412933,
0.4813380241394043,
-0.3469010591506958,
-0.3757551312446594,
-0.5176602005958557,
-0.8501833081245422,
0.5113500952720642,
-0.39862507581710815,
0.9403760433197021,
-0.37907707691192627,
1.7756928205490112,
-0.617092490196228,
0.4847685694694519,
0.6788396835327148,
1.332741379737854,
0.18201357126235962,
-0.05022914707660675,
0.3279552459716797,
0.3558942377567291,
0.05652613937854767,
0.5468237400054932,
1.1726220846176147,
0.573436975479126,
0.5074180364608765,
0.6571168899536133,
-2.2833356857299805,
1.2820600271224976,
-1.0271414518356323,
0.24974581599235535,
1.25981867313385,
-0.9639538526535034,
0.3264666795730591,
-1.7595571279525757,
-0.09492849558591843,
0.5855595469474792,
-2.2121822834014893,
0.20474731922149658,
-1.2941596508026123,
-0.47154271602630615,
1.0636045932769775,
0.31254085898399353,
-1.2493702173233032,
0.17463445663452148,
-0.36865946650505066,
1.0421302318572998,
0.464119017124176,
1.0644690990447998,
-1.7302789688110352,
0.05926396697759628,
-0.2505531311035156,
0.1314566433429718,
-1.3021798133850098,
-1.5369805097579956,
0.5033026337623596,
0.6914992928504944,
0.6239609718322754,
-0.13148704171180725,
0.9734473824501038,
-0.964553952217102,
0.8390666246414185,
-1.0484063625335693,
-1.7283450365066528,
-1.368515133857727,
-2.2643680572509766,
-2.3968429565429688,
0.7656078338623047,
-0.42350777983665466,
-0.4469307065010071,
1.9643821716308594,
-0.9511038064956665,
-1.7936763763427734,
1.0294725894927979,
0.2509280741214752,
-0.02680950239300728,
2.2750890254974365,
0.1564614176750183,
-0.7561150193214417,
0.4621090292930603,
-0.7377423048019409,
0.6953471302986145,
-0.3427917957305908,
1.3750954866409302,
0.5743861198425293,
-1.1848887205123901,
1.6686205863952637,
-0.38457024097442627,
0.5671117901802063,
-0.7535472512245178,
-0.5242964625358582,
-0.7217308282852173,
0.2601485848426819,
1.9260742664337158,
-0.3498254120349884,
1.577405571937561,
-0.26464033126831055,
-1.468750238418579,
-1.5676666498184204,
0.9080972671508789,
0.43754568696022034,
-0.7094268798828125,
0.08393226563930511,
-0.3381596803665161,
0.13692769408226013,
-0.07522869855165482,
1.1459680795669556,
1.1946059465408325,
0.7671777009963989,
-0.3839043378829956,
-0.8050104379653931,
0.20389807224273682,
0.000180855393409729,
-0.6042903065681458,
-1.8548424243927002,
-0.34287336468696594,
0.2730155289173126,
0.5698596239089966,
-1.158418893814087,
1.862655520439148,
0.7774515151977539,
1.9439479112625122,
1.0112652778625488,
-0.34552711248397827,
1.5612479448318481,
-0.027514830231666565,
1.9832403659820557,
-0.4417904317378998,
0.6282418370246887,
-0.31457120180130005,
-1.137303352355957,
0.8362695574760437,
-0.2662757635116577,
-2.0626399517059326,
-0.7031380534172058,
-0.8018096685409546,
-0.12838926911354065,
-0.7042251825332642,
0.9241806864738464,
-0.17572617530822754,
-1.5041548013687134,
0.1636647880077362,
-0.655467689037323,
0.1537809669971466,
-1.1977266073226929,
0.28976768255233765,
0.7730151414871216,
-0.7291783094406128,
0.11939128488302231,
-0.2886621952056885,
-1.3162330389022827,
-0.5598585605621338,
0.40976250171661377,
1.9158945083618164,
-0.6716494560241699,
0.8697057366371155,
1.0691426992416382,
-0.7794421911239624,
0.05846855789422989,
0.307067334651947,
-0.3733832836151123,
0.7536717057228088,
-1.0789746046066284,
-0.4256753921508789,
1.2207249402999878,
-0.23842495679855347,
-0.7424229383468628,
1.4837913513183594,
0.8129510283470154,
-0.9750127792358398,
-0.14078211784362793,
-0.26247990131378174,
-0.7803502082824707,
0.06455640494823456,
-1.537308931350708,
-0.09055248647928238,
0.3735244572162628,
-1.4635080099105835,
-0.4027135372161865,
-0.17677801847457886,
1.3564468622207642,
-0.25848883390426636,
1.4417365789413452,
-0.20029234886169434,
-0.24453523755073547,
-0.344320684671402,
-0.4161831736564636,
0.11868300288915634,
-0.13579365611076355,
-0.688850462436676,
0.2600727081298828,
-0.7421370148658752,
0.4402625560760498,
1.3817492723464966,
0.22732535004615784,
0.04707734286785126,
0.5153377056121826,
1.164358377456665,
0.33409398794174194,
-0.052988201379776,
-0.8930047750473022,
-1.5647640228271484,
2.0110857486724854,
-1.2818005084991455,
2.011645793914795,
0.7014780640602112,
-0.056645434349775314,
-1.8069539070129395,
-1.771927833557129,
1.3503978252410889,
1.0967438220977783,
2.3917412757873535,
0.5695323348045349,
0.37704339623451233,
-0.7985796332359314,
-0.6864787936210632,
0.36489957571029663,
-0.9987314939498901,
-0.7239753603935242,
0.19506961107254028,
2.4191107749938965,
1.7525129318237305,
-0.4951131343841553,
-0.21290507912635803,
-1.0347682237625122,
1.394205927848816,
-0.2659074366092682,
0.25644516944885254,
2.0613672733306885,
-0.23962506651878357,
-1.1077356338500977,
1.32722008228302,
-2.3757708072662354,
0.2814830541610718,
2.0616445541381836,
0.20047029852867126,
0.027610652148723602,
-1.4291150569915771,
-0.6518248319625854,
-0.2496996521949768,
-0.4693972170352936,
-1.2470757961273193,
0.46951204538345337,
-0.24749836325645447,
-0.8211519718170166,
-1.374342679977417,
0.15239539742469788,
-1.1027307510375977,
-1.7088098526000977,
0.29682016372680664,
1.8884568214416504,
1.9415514469146729,
-0.7042586803436279,
1.520422339439392,
-0.24264487624168396,
0.15217506885528564,
1.365118384361267,
1.3070290088653564,
3.1199727058410645,
1.9028985500335693,
-1.2834725379943848,
0.7543693780899048,
-0.20084798336029053,
-0.5036608576774597,
1.266506552696228,
-1.1336742639541626,
1.2349135875701904,
-0.24244830012321472,
-1.2364712953567505,
-1.3360130786895752,
1.0663636922836304,
0.521247148513794,
0.08352325111627579,
-0.5247535109519958,
1.1840490102767944,
0.20544376969337463,
1.2638046741485596,
0.5332375168800354,
-0.3911648392677307,
0.5795163512229919,
-0.37742292881011963,
-0.5238626599311829,
1.5527949333190918,
0.19395408034324646,
-1.3871002197265625,
-2.3148162364959717,
-0.1768966019153595,
-0.9475433230400085,
-0.1362970769405365,
-0.6235101819038391,
-0.9905003309249878,
1.6336698532104492,
0.42298948764801025,
-1.2779470682144165,
-0.22091540694236755,
-0.3029298782348633,
-0.5920330286026001,
2.7501766681671143,
-1.3215216398239136,
-0.21533533930778503,
-1.0429518222808838,
-0.6272873878479004,
1.6868627071380615,
-1.2230653762817383,
-0.17012137174606323,
-0.9828270077705383,
-0.5759690403938293,
-1.383241891860962,
-0.5558173656463623,
0.0011336375027894974,
-0.8505052924156189,
0.7302629351615906,
0.11709413677453995,
-1.2134102582931519,
-0.4164629280567169,
-0.8734959959983826,
0.9391531944274902,
-0.1503634750843048,
0.22405442595481873,
1.8089572191238403,
0.42560580372810364,
-0.42563602328300476,
0.7282229065895081,
1.1173059940338135,
0.6515063643455505,
-0.5735445618629456,
0.34964126348495483,
-0.6550540924072266,
0.25600889325141907,
-1.3907413482666016,
0.3034835755825043,
-2.9063310623168945,
0.6711675524711609,
-0.10561217367649078,
-0.10788905620574951,
-0.1080600768327713,
-1.3248709440231323,
1.0730419158935547,
2.6389591693878174,
-1.2206906080245972,
0.4285341501235962,
0.3743622601032257,
1.1317046880722046,
-1.5572547912597656,
0.23696178197860718,
-0.43596115708351135,
2.11140775680542,
0.1323046088218689,
1.153917908668518,
-0.492021381855011,
-2.202285051345825,
0.579030454158783,
-1.2133656740188599,
-1.152145504951477,
0.8512747883796692,
-0.8498267531394958,
0.1343194842338562,
-1.3517059087753296,
-0.18607792258262634,
-0.8891472220420837,
-1.2879054546356201,
0.779148280620575,
0.09883435070514679,
0.46422696113586426,
-0.5727471113204956,
0.33491379022598267,
-2.121734857559204,
-1.3826825618743896,
-0.2486705780029297,
-0.9579709768295288,
0.4689890146255493,
-0.27714046835899353,
0.6494300365447998,
-0.12283680588006973,
0.00496042612940073,
0.2620069980621338,
1.4862816333770752,
3.3568031787872314,
0.17566734552383423,
0.28786733746528625,
-0.11345379799604416,
-0.9640040397644043,
1.440499186515808,
0.9249900579452515,
-0.12035909295082092,
-0.5083143711090088,
-1.0101051330566406,
1.1852954626083374,
2.029183864593506,
1.0475330352783203,
0.09024365991353989,
-0.8867377042770386,
-0.8312596082687378,
-0.0003554057329893112,
0.13503488898277283,
0.48986053466796875,
0.9177377820014954,
0.13475432991981506,
0.04915142059326172,
1.3245351314544678,
1.2874109745025635,
-0.3615092933177948,
0.37620654702186584,
-0.905078649520874,
-0.359277606010437,
0.49995189905166626,
0.3283610939979553,
0.06617872416973114,
0.39020252227783203,
-1.051004409790039,
-0.18643274903297424,
-0.3633851408958435,
-0.9106276631355286,
-0.821912944316864,
-0.5643428564071655,
-0.4738098084926605,
1.6763861179351807,
-0.019784796983003616,
-0.5230185985565186,
0.019865117967128754,
-0.8113433718681335,
-0.10449159890413284,
-0.99318528175354,
0.27026888728141785,
-0.14395734667778015,
-0.08617702126502991,
-0.18094661831855774,
1.6669936180114746,
-1.0087605714797974,
-2.1430389881134033,
0.23468449711799622,
0.20472151041030884,
-0.47220078110694885,
0.2549329996109009,
1.6856735944747925,
0.49554580450057983,
1.3908088207244873,
1.3728421926498413,
1.0121524333953857,
-0.637624204158783,
-1.2708367109298706,
0.6407819986343384,
0.9674859642982483,
-1.4691768884658813,
0.8509554862976074,
0.010956991463899612,
-0.37783506512641907,
0.6814566254615784,
1.1781232357025146,
0.3848685622215271,
-2.0228776931762695,
0.7146866917610168,
-0.8521276712417603,
0.7532559633255005,
0.7080575823783875,
0.7019827365875244,
0.18063399195671082,
0.863447368144989,
-1.1876795291900635,
-1.1170361042022705,
-0.7337522506713867,
-0.6598760485649109,
1.8436726331710815,
-0.2384730875492096,
0.6112952828407288,
-0.10690233111381531,
-1.405566930770874,
-0.08890185505151749,
0.8447171449661255,
0.4350813627243042,
-0.5536336898803711,
0.8549205660820007,
-0.6314975023269653,
-0.9571442604064941,
-1.258075475692749,
-0.5553906559944153,
-1.088762640953064,
-0.9190424680709839,
0.9950212240219116,
0.7910649180412292,
0.3798084855079651,
1.916128158569336,
0.6291177272796631,
0.28926825523376465,
-2.7383763790130615,
0.8531737923622131,
0.28330469131469727,
0.026452355086803436,
0.9182785153388977,
0.2950955927371979,
1.0712274312973022,
-0.12119073420763016,
0.6805003881454468,
-2.3951523303985596,
2.240861654281616,
-0.21116703748703003,
0.5567811727523804,
-0.04172229766845703,
-0.19822800159454346,
1.0451604127883911,
0.4857688844203949,
0.5359329581260681,
-1.16233229637146,
0.745522677898407,
-0.6769346594810486,
1.1841918230056763,
0.791145920753479,
-0.9039810299873352,
-0.024128228425979614,
1.3727856874465942,
0.4505128562450409,
-0.41757771372795105,
-0.9214953184127808,
-0.9357672929763794,
0.9010906219482422,
1.6249264478683472,
-0.06025438383221626,
-0.05578931048512459,
0.9993079900741577,
0.6725882887840271,
-1.3457510471343994,
0.12979626655578613,
-0.7055055499076843,
-0.6769329905509949,
1.7244768142700195,
1.974898099899292,
-0.1059790551662445,
-0.23958691954612732,
-0.8367334604263306,
-1.1490923166275024,
0.7633539438247681,
0.06497882306575775,
-0.028174014762043953,
0.6421962380409241,
-0.6873289346694946,
1.1025326251983643,
0.8075499534606934,
0.9442828297615051,
0.1140405610203743,
0.40203678607940674,
0.3470984995365143,
-0.44036898016929626,
-1.2563923597335815,
-0.2942119538784027,
-1.0988833904266357,
-2.625354051589966,
0.43002381920814514,
-0.26151782274246216,
-1.414395809173584,
0.0067598856985569,
-1.125869870185852,
0.7954654097557068,
-0.567318320274353,
-1.2292332649230957,
-1.3931336402893066,
0.22264614701271057,
-0.10796761512756348,
0.9212249517440796,
-1.5837750434875488,
0.0172599907964468,
1.204502820968628,
0.886513888835907,
-0.6637080311775208,
0.9578210115432739,
0.26269060373306274,
1.0786774158477783,
0.9194101691246033,
-0.3334369361400604,
0.5720723271369934,
0.11062193661928177,
-1.3224565982818604,
0.47029873728752136,
1.1327563524246216,
0.15022671222686768,
1.4475396871566772,
-0.5801076889038086,
0.11096023768186569,
0.41546812653541565,
-0.6432821154594421,
-0.5369498133659363,
-0.6432192921638489,
0.7868680953979492,
-0.009458956308662891,
-0.9539458751678467,
0.09858673810958862,
-0.03681487590074539,
-0.15503564476966858,
0.12302391976118088,
-1.5217405557632446,
-0.10430474579334259,
-0.2562551498413086,
-0.5864859819412231,
-1.2029792070388794,
-0.0031873532570898533,
1.2321052551269531,
-0.7187018990516663,
-0.1624332070350647,
0.5007142424583435,
0.31537073850631714,
0.5687239766120911,
0.5310977697372437,
-0.6318628787994385,
-0.359603613615036,
-0.31895163655281067,
-0.27417105436325073,
0.4237874448299408,
1.2840890884399414,
-0.0663638561964035,
-1.0281476974487305,
0.8506685495376587,
-0.43897050619125366,
0.14006087183952332,
1.997899055480957,
0.081985704600811,
-0.8136154413223267,
0.32390597462654114,
-0.6961891651153564,
1.8576233386993408,
1.870285153388977,
1.2971073389053345,
-0.06640708446502686,
-0.9443981647491455,
0.6073945760726929,
-0.4195266664028168,
-0.3887241780757904,
0.9021154046058655,
0.39707326889038086,
-0.18584030866622925,
-1.2954708337783813,
0.6494539380073547,
1.3167376518249512,
-0.814732015132904,
-0.8106778264045715,
0.18913865089416504,
-0.8401218056678772,
1.1024357080459595,
0.6761181354522705,
0.3094777762889862,
0.26038095355033875,
1.4838311672210693,
0.7131967544555664,
-0.35954636335372925,
0.5792783498764038,
0.5116497278213501,
-0.2003420889377594,
-2.026562452316284,
-1.1839674711227417,
0.36031395196914673,
-0.5321232080459595,
-1.6266576051712036,
1.3457165956497192,
-1.2516226768493652,
-0.9880795478820801,
0.5189493894577026,
0.14961710572242737,
1.5117716789245605,
0.2668186128139496,
1.6068559885025024,
2.0704264640808105,
0.8224047422409058,
0.37382009625434875,
1.2864232063293457,
-0.06824067234992981,
-0.4916175603866577,
1.8033806085586548,
-0.54928058385849,
0.5392408967018127,
1.0870342254638672,
-0.2755526304244995,
-1.042335033416748,
-0.8908191919326782,
-1.2199386358261108,
-0.6453956961631775,
1.1773741245269775,
0.14011788368225098,
-1.1000186204910278,
0.27358874678611755,
1.5800070762634277,
0.04211888834834099,
-0.2661198675632477,
0.6382047533988953,
0.31328636407852173,
-0.7771903276443481,
0.007409371435642242,
-0.8779659271240234,
0.5251462459564209,
-0.18263214826583862,
-0.28660231828689575,
0.313595712184906,
0.42054152488708496,
1.1699349880218506,
-0.020381981506943703,
0.18675893545150757,
1.2055081129074097,
-1.412589430809021,
1.5266622304916382,
-0.6720868349075317,
0.3766143023967743,
-2.395284414291382,
1.3835316896438599,
-0.8663445115089417,
1.8699145317077637,
-2.5992822647094727,
0.40922167897224426,
-0.4840967357158661,
-0.49150970578193665,
0.25285813212394714,
-0.4427517056465149,
0.09323780238628387,
-0.14254814386367798,
-1.1142104864120483,
-0.08211689442396164,
-0.8224473595619202,
0.5404965877532959,
1.1551687717437744,
1.3738244771957397,
-1.1228163242340088,
-0.3202417194843292,
-1.7834784984588623,
-0.08355572074651718,
-0.6480535864830017,
0.4729752242565155,
-1.9264686107635498,
-0.12967906892299652,
-1.9529753923416138,
-2.4143805503845215,
-1.336463212966919,
-0.7883607149124146,
0.97185879945755,
0.021939769387245178,
-0.8068092465400696,
1.0872135162353516,
-0.3548790216445923,
-1.833872675895691,
1.0934268236160278,
-2.154067277908325
] |
https://github.com/huggingface/datasets/issues/5281 | Support cloud storage in load_dataset | Thank you for your guys help on this and merging in #5580. I manually pulled the changes to my local datasets package (datasets.utils.file_utils.py) since it only seemed to be this file that was changed in the PR and I'm getting the error:
InvalidSchema: No connection adapters were found for 's3://bucket/folder/'. I'm calling load_dataset using the S3 URI. When I use the S3 URL I get HTTPError: 403 Client Error.
Am I not supposed to use the S3 URI? How do I pull in the changes from this merge? I'm running datasets 2.10.1. | Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2) | 400 | 92 | Support cloud storage in load_dataset
Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2)
Thank you for your guys help on this and merging in #5580. I manually pulled the changes to my local datasets package (datasets.utils.file_utils.py) since it only seemed to be this file that was changed in the PR and I'm getting the error:
InvalidSchema: No connection adapters were found for 's3://bucket/folder/'. I'm calling load_dataset using the S3 URI. When I use the S3 URL I get HTTPError: 403 Client Error.
Am I not supposed to use the S3 URI? How do I pull in the changes from this merge? I'm running datasets 2.10.1. | [
-1.1877988576889038,
-0.9315599799156189,
-0.7374240756034851,
1.5009020566940308,
-0.11799561232328415,
-1.2380927801132202,
0.1705128252506256,
-1.006676197052002,
1.680005431175232,
-0.7602040767669678,
0.33744391798973083,
-1.6719021797180176,
-0.020392054691910744,
-0.5125157833099365,
-0.7451186776161194,
-0.9363409876823425,
-0.47845658659935,
-0.7390297651290894,
1.0345509052276611,
2.4991157054901123,
1.2341500520706177,
-1.4382191896438599,
2.6781253814697266,
0.6105799078941345,
-0.1501258909702301,
-1.0768791437149048,
0.477125883102417,
0.06157898157835007,
-1.2889498472213745,
-0.3789861500263214,
-0.9128061532974243,
-0.03143926337361336,
-0.5733667612075806,
-0.5477638244628906,
0.09089213609695435,
0.42313647270202637,
-0.275702565908432,
-0.3895905315876007,
-0.5346241593360901,
-0.8123304843902588,
0.503361165523529,
-0.38757389783859253,
0.9556743502616882,
-0.30694636702537537,
1.798230767250061,
-0.5415259599685669,
0.4665006697177887,
0.7301581501960754,
1.3257359266281128,
0.14002804458141327,
0.007307956926524639,
0.3526073098182678,
0.39487773180007935,
0.04011479392647743,
0.4615132808685303,
1.1552742719650269,
0.5411408543586731,
0.4397777020931244,
0.6725060939788818,
-2.2698519229888916,
1.2663390636444092,
-0.9678323864936829,
0.3214375674724579,
1.296264410018921,
-0.9769580960273743,
0.3416629433631897,
-1.8301150798797607,
-0.05290428176522255,
0.5986007452011108,
-2.1772449016571045,
0.2092740833759308,
-1.2973341941833496,
-0.4582667648792267,
1.0366616249084473,
0.2533508241176605,
-1.220286250114441,
0.2015446126461029,
-0.4496815800666809,
1.057211995124817,
0.511592447757721,
1.1614551544189453,
-1.722751259803772,
0.048174332827329636,
-0.255580335855484,
0.13716116547584534,
-1.2659424543380737,
-1.5685501098632812,
0.5192906856536865,
0.6641275882720947,
0.6229972243309021,
-0.10772494226694107,
0.9769881963729858,
-0.9507961869239807,
0.8267168998718262,
-0.9920311570167542,
-1.7051031589508057,
-1.4079293012619019,
-2.354006767272949,
-2.3802101612091064,
0.7756796479225159,
-0.4674551784992218,
-0.4358810782432556,
2.0011627674102783,
-0.983939528465271,
-1.831520676612854,
1.0760221481323242,
0.27229365706443787,
-0.00549406697973609,
2.2515599727630615,
0.17514589428901672,
-0.7789726257324219,
0.42520302534103394,
-0.7308007478713989,
0.7451006770133972,
-0.2688746750354767,
1.3465880155563354,
0.5394468307495117,
-1.055326223373413,
1.6165331602096558,
-0.38340187072753906,
0.5619238018989563,
-0.7383793592453003,
-0.4798923134803772,
-0.7808732986450195,
0.29871049523353577,
1.9146560430526733,
-0.34754374623298645,
1.603041648864746,
-0.3173029124736786,
-1.5484087467193604,
-1.5343266725540161,
0.8680631518363953,
0.5056511759757996,
-0.741522490978241,
0.07790092378854752,
-0.33322009444236755,
0.04760637879371643,
-0.019051576033234596,
1.1401208639144897,
1.233312726020813,
0.71452397108078,
-0.3558979332447052,
-0.9009276628494263,
0.2022470384836197,
-0.08349872380495071,
-0.6274095773696899,
-1.819279670715332,
-0.35553982853889465,
0.27701812982559204,
0.6163651943206787,
-1.2301509380340576,
1.7650145292282104,
0.8302179574966431,
1.9956045150756836,
1.0429681539535522,
-0.3705868422985077,
1.5547534227371216,
0.06188913434743881,
1.8990923166275024,
-0.4541049599647522,
0.5736194252967834,
-0.2685796022415161,
-1.1546392440795898,
0.8432093262672424,
-0.288179874420166,
-2.03192400932312,
-0.7157641649246216,
-0.850909411907196,
-0.16498108208179474,
-0.6800808310508728,
0.9198361039161682,
-0.2276952862739563,
-1.4881582260131836,
0.1750161200761795,
-0.6328928470611572,
0.1329849660396576,
-1.1882458925247192,
0.2398926019668579,
0.748729944229126,
-0.691232442855835,
0.058237411081790924,
-0.3269743323326111,
-1.3671245574951172,
-0.5470936894416809,
0.4472229480743408,
1.8046436309814453,
-0.6857640147209167,
0.9445918798446655,
1.0601308345794678,
-0.7581079006195068,
0.08889605849981308,
0.2430984228849411,
-0.3629049062728882,
0.8381714820861816,
-1.035794734954834,
-0.4276221692562103,
1.141737937927246,
-0.2669510841369629,
-0.6940277218818665,
1.4524598121643066,
0.7684970498085022,
-0.9981896281242371,
-0.2271798700094223,
-0.2169267237186432,
-0.8342480063438416,
0.006023007445037365,
-1.547650694847107,
-0.1524568647146225,
0.26194244623184204,
-1.5254809856414795,
-0.47249117493629456,
-0.24339604377746582,
1.349500060081482,
-0.1576922982931137,
1.4741131067276,
-0.24718663096427917,
-0.24474158883094788,
-0.37363195419311523,
-0.44994258880615234,
0.18928885459899902,
-0.16161943972110748,
-0.6816782355308533,
0.2706696689128876,
-0.8209985494613647,
0.39048144221305847,
1.4188224077224731,
0.30390989780426025,
0.04034582898020744,
0.5578674674034119,
1.1487562656402588,
0.3569127917289734,
-0.042571261525154114,
-0.8604253530502319,
-1.6246974468231201,
2.030430316925049,
-1.3553177118301392,
1.9483273029327393,
0.7009711265563965,
-0.10262848436832428,
-1.7920968532562256,
-1.7981514930725098,
1.3722814321517944,
1.1036444902420044,
2.354013204574585,
0.5844113230705261,
0.37581145763397217,
-0.7624147534370422,
-0.7164702415466309,
0.3455328941345215,
-0.9395620226860046,
-0.7577090859413147,
0.15534229576587677,
2.3812522888183594,
1.7197929620742798,
-0.5233243107795715,
-0.2151392251253128,
-0.9802284240722656,
1.4303851127624512,
-0.22672121226787567,
0.22207234799861908,
2.02923846244812,
-0.2043733298778534,
-1.0575965642929077,
1.3164492845535278,
-2.344813108444214,
0.2889624834060669,
2.07330584526062,
0.21041634678840637,
0.04560753330588341,
-1.4578351974487305,
-0.7078661918640137,
-0.23244716227054596,
-0.493789404630661,
-1.2452927827835083,
0.5172830820083618,
-0.29300689697265625,
-0.856469452381134,
-1.4434969425201416,
0.12777701020240784,
-1.1252100467681885,
-1.7063467502593994,
0.2890804409980774,
1.925882339477539,
1.9873021841049194,
-0.7238059043884277,
1.4822880029678345,
-0.25257229804992676,
0.16360458731651306,
1.2836359739303589,
1.2419216632843018,
3.1018753051757812,
1.9400790929794312,
-1.2060216665267944,
0.7404311299324036,
-0.14101679623126984,
-0.5138919949531555,
1.2038153409957886,
-1.0942119359970093,
1.24172842502594,
-0.2307479828596115,
-1.1868290901184082,
-1.2632862329483032,
1.0713794231414795,
0.5369609594345093,
0.07108820974826813,
-0.5379797220230103,
1.2055232524871826,
0.1376739889383316,
1.24033784866333,
0.5044220685958862,
-0.40280115604400635,
0.595604419708252,
-0.36919674277305603,
-0.6042892932891846,
1.5773824453353882,
0.15248295664787292,
-1.4442957639694214,
-2.312962293624878,
-0.2550959289073944,
-0.8774358630180359,
-0.08839929103851318,
-0.618154764175415,
-0.9723765850067139,
1.583379864692688,
0.4577620327472687,
-1.2676429748535156,
-0.2471863478422165,
-0.36978718638420105,
-0.6162445545196533,
2.6984496116638184,
-1.279589056968689,
-0.19298645853996277,
-0.9803183078765869,
-0.5884873867034912,
1.6415563821792603,
-1.1657124757766724,
-0.18452002108097076,
-1.0359569787979126,
-0.6192066669464111,
-1.3632689714431763,
-0.5711588263511658,
0.00040743686258792877,
-0.8754072785377502,
0.7211077213287354,
0.07652760297060013,
-1.1568602323532104,
-0.3018456995487213,
-0.8845346570014954,
0.9757103323936462,
-0.09156578779220581,
0.19267012178897858,
1.9073959589004517,
0.4305303692817688,
-0.3951372802257538,
0.7035988569259644,
1.1179330348968506,
0.6246894001960754,
-0.6227716207504272,
0.27725404500961304,
-0.6865106821060181,
0.2512193024158478,
-1.368419885635376,
0.2923153042793274,
-2.9243967533111572,
0.7062473297119141,
-0.03626471385359764,
-0.08710718154907227,
-0.08201242983341217,
-1.287580966949463,
1.0904924869537354,
2.6299521923065186,
-1.2278978824615479,
0.45614388585090637,
0.4387819468975067,
1.1229106187820435,
-1.5630239248275757,
0.27206024527549744,
-0.40670186281204224,
2.0909860134124756,
0.1168491542339325,
1.1888697147369385,
-0.5097194910049438,
-2.1934750080108643,
0.5857486724853516,
-1.2073107957839966,
-1.1606961488723755,
0.7749415040016174,
-0.8472772240638733,
0.15147867798805237,
-1.3844534158706665,
-0.1641370803117752,
-0.8857370018959045,
-1.2660573720932007,
0.7127805352210999,
0.11596360802650452,
0.4438501000404358,
-0.5862807631492615,
0.37727925181388855,
-2.182591438293457,
-1.4163609743118286,
-0.2491256594657898,
-0.9805452227592468,
0.4662613570690155,
-0.2960768938064575,
0.6512060761451721,
-0.10678181052207947,
0.052087195217609406,
0.21358349919319153,
1.393385410308838,
3.395925521850586,
0.14294962584972382,
0.27469372749328613,
-0.06811846792697906,
-0.9476408362388611,
1.4989203214645386,
0.9805361032485962,
-0.15003643929958344,
-0.4973822236061096,
-1.0410429239273071,
1.2322298288345337,
2.046238899230957,
1.0990006923675537,
0.09894435852766037,
-0.8729281425476074,
-0.7988316416740417,
0.01702617108821869,
0.13306152820587158,
0.5496905446052551,
0.9303534626960754,
0.10175659507513046,
0.09804060310125351,
1.400694489479065,
1.210180640220642,
-0.33396217226982117,
0.40427809953689575,
-0.905222475528717,
-0.41149529814720154,
0.43575093150138855,
0.30182069540023804,
0.05409383773803711,
0.4406978487968445,
-1.055658221244812,
-0.2005336433649063,
-0.3647575080394745,
-0.9367336630821228,
-0.7467786073684692,
-0.4627658724784851,
-0.4233935475349426,
1.6564064025878906,
0.06413112580776215,
-0.5146679282188416,
-0.0021205605007708073,
-0.7442063689231873,
-0.09409984201192856,
-0.9990140795707703,
0.2663472890853882,
-0.13208146393299103,
-0.02716701105237007,
-0.16267608106136322,
1.6633107662200928,
-0.9948994517326355,
-2.15705943107605,
0.1975858062505722,
0.24037156999111176,
-0.44707849621772766,
0.2632799744606018,
1.6344335079193115,
0.5066965222358704,
1.3618345260620117,
1.337220311164856,
0.9926676750183105,
-0.6173389554023743,
-1.2817420959472656,
0.6019144654273987,
0.993122935295105,
-1.406426191329956,
0.83831787109375,
-0.0336843840777874,
-0.4905296862125397,
0.7089925408363342,
1.2664902210235596,
0.3831224739551544,
-2.0622992515563965,
0.7958076000213623,
-0.8028600215911865,
0.7604276537895203,
0.6472107172012329,
0.7514846324920654,
0.16321854293346405,
0.8573629260063171,
-1.2115978002548218,
-1.106628179550171,
-0.7468572854995728,
-0.6791204214096069,
1.909350037574768,
-0.25921112298965454,
0.5669563412666321,
-0.19256307184696198,
-1.3802272081375122,
-0.09437084943056107,
0.7457703948020935,
0.3903203308582306,
-0.47608017921447754,
0.8605694770812988,
-0.6674695611000061,
-1.0556398630142212,
-1.287806510925293,
-0.4617128372192383,
-1.0099749565124512,
-0.8967557549476624,
1.0023225545883179,
0.7630363702774048,
0.4181075394153595,
1.9346219301223755,
0.6030016541481018,
0.24361549317836761,
-2.735502243041992,
0.8883519172668457,
0.3322910964488983,
0.023689504712820053,
0.8948937654495239,
0.23472213745117188,
1.1405283212661743,
-0.12881067395210266,
0.6797743439674377,
-2.3351757526397705,
2.1801083087921143,
-0.23302261531352997,
0.6591733694076538,
0.018847182393074036,
-0.1845979541540146,
1.065688967704773,
0.5449551343917847,
0.6666713356971741,
-1.1642132997512817,
0.8033202886581421,
-0.6164401173591614,
1.1532353162765503,
0.8496903777122498,
-0.8696617484092712,
-0.04239317402243614,
1.3962348699569702,
0.4945920407772064,
-0.42625942826271057,
-0.9414433240890503,
-0.9230722784996033,
0.9472346305847168,
1.6297833919525146,
-0.05567673593759537,
0.025601737201213837,
0.9419440031051636,
0.6502100229263306,
-1.3690202236175537,
0.07096824049949646,
-0.7387020587921143,
-0.6695656776428223,
1.7074326276779175,
2.065641403198242,
-0.061452098190784454,
-0.24494938552379608,
-0.7798651456832886,
-1.2092119455337524,
0.722954511642456,
0.0018713949248194695,
0.04645315930247307,
0.6400583386421204,
-0.6444590091705322,
1.108022689819336,
0.7461573481559753,
0.9274362325668335,
0.06548651307821274,
0.3219050168991089,
0.29852432012557983,
-0.33749502897262573,
-1.2511279582977295,
-0.33585265278816223,
-1.0309466123580933,
-2.4692494869232178,
0.42322924733161926,
-0.18797457218170166,
-1.4587957859039307,
0.023798786103725433,
-1.0662283897399902,
0.8303931951522827,
-0.5942798256874084,
-1.1930210590362549,
-1.417415976524353,
0.23497766256332397,
-0.13337701559066772,
0.8717368841171265,
-1.5898139476776123,
-0.05024004355072975,
1.232094645500183,
0.905687153339386,
-0.6745299100875854,
1.0212531089782715,
0.2357398420572281,
0.9963469505310059,
0.867379367351532,
-0.35769644379615784,
0.5431168079376221,
0.1150078997015953,
-1.3357889652252197,
0.46249452233314514,
1.1144754886627197,
0.2066175788640976,
1.4168813228607178,
-0.6266961097717285,
0.09583259373903275,
0.45807120203971863,
-0.5964100360870361,
-0.5028762817382812,
-0.6003588438034058,
0.7219812870025635,
-0.029132992029190063,
-0.9275652170181274,
0.07491984218358994,
-0.06572061032056808,
-0.1443760246038437,
0.19833365082740784,
-1.5147466659545898,
-0.16943775117397308,
-0.2927190363407135,
-0.5652010440826416,
-1.2638342380523682,
0.034450680017471313,
1.3069032430648804,
-0.7738642692565918,
-0.1576911211013794,
0.48585113883018494,
0.37969493865966797,
0.5630865097045898,
0.563569962978363,
-0.6486780047416687,
-0.29412978887557983,
-0.3041508197784424,
-0.2834208607673645,
0.33037135004997253,
1.2464333772659302,
-0.11549464613199234,
-1.0185902118682861,
0.7768025994300842,
-0.4273621439933777,
0.12828302383422852,
2.0129659175872803,
0.08612808585166931,
-0.7854892015457153,
0.3008705973625183,
-0.7012982368469238,
1.842582106590271,
1.7676798105239868,
1.3643455505371094,
-0.13168944418430328,
-0.9081745147705078,
0.5737392902374268,
-0.34722205996513367,
-0.39488786458969116,
0.9439812898635864,
0.4404236972332001,
-0.12593649327754974,
-1.3038400411605835,
0.6192417740821838,
1.3259464502334595,
-0.8588292598724365,
-0.8119394183158875,
0.16297802329063416,
-0.8411049842834473,
1.0903394222259521,
0.696769654750824,
0.356851726770401,
0.20727679133415222,
1.5554348230361938,
0.7466397881507874,
-0.456920862197876,
0.5497011542320251,
0.5617209076881409,
-0.19363977015018463,
-2.0184476375579834,
-1.1279373168945312,
0.33802276849746704,
-0.48467642068862915,
-1.6600137948989868,
1.336789608001709,
-1.2381917238235474,
-0.9939712882041931,
0.5247848629951477,
0.053388580679893494,
1.477948784828186,
0.29140016436576843,
1.5980068445205688,
2.1062939167022705,
0.8637444972991943,
0.40622273087501526,
1.2772371768951416,
-0.041716765612363815,
-0.46626079082489014,
1.855316162109375,
-0.48572877049446106,
0.5458608269691467,
1.1437703371047974,
-0.37992024421691895,
-1.0068631172180176,
-0.8711209893226624,
-1.1926780939102173,
-0.566659688949585,
1.1486339569091797,
0.12563827633857727,
-1.1378144025802612,
0.26889848709106445,
1.5569322109222412,
0.10600613802671432,
-0.29124879837036133,
0.6985788345336914,
0.366244375705719,
-0.776364803314209,
-0.014961330220103264,
-0.934403657913208,
0.49596646428108215,
-0.19249318540096283,
-0.3452625870704651,
0.28963014483451843,
0.41269636154174805,
1.2453786134719849,
-0.04825188219547272,
0.16965825855731964,
1.2551997900009155,
-1.3941136598587036,
1.5154484510421753,
-0.6641241908073425,
0.3762965798377991,
-2.4136621952056885,
1.3874932527542114,
-0.826058030128479,
1.882318139076233,
-2.607560634613037,
0.36122390627861023,
-0.5603446960449219,
-0.48991212248802185,
0.2611735165119171,
-0.39462944865226746,
0.06165764480829239,
-0.13604888319969177,
-1.0715787410736084,
-0.06471937149763107,
-0.803854763507843,
0.588187038898468,
1.2017635107040405,
1.3520039319992065,
-1.0815984010696411,
-0.29478520154953003,
-1.782191276550293,
-0.16806086897850037,
-0.6678508520126343,
0.48657578229904175,
-1.9448790550231934,
-0.1852860152721405,
-1.9489436149597168,
-2.439784526824951,
-1.284029245376587,
-0.8279357552528381,
0.9974877834320068,
0.07799521088600159,
-0.9198175072669983,
1.1235390901565552,
-0.3570053279399872,
-1.833618402481079,
1.1211575269699097,
-2.154080390930176
] |
https://github.com/huggingface/datasets/issues/5281 | Support cloud storage in load_dataset | The current implementation depends on gcsfs/s3fs being able to authenticate through some other means e.g., environmental variables. For AWS, it looks like you can set `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_SESSION_TOKEN`
Note that while testing this just now, I did note a discrepancy between gcsfs and s3fs that we might want to address where gcsfs passes the timeout from `storage_options` [here](https://github.com/huggingface/datasets/blob/3e6269979fc80ae8939294d26298897f0db5b84d/src/datasets/utils/file_utils.py#L333) down into the `aiohttp.ClientSession.request`, but s3fs does not handle this (tries to pass to the `aiobotocore.session.AioSession` constructor raising `TypeError: __init__() got an unexpected keyword argument 'requests_timeout'`).
It seems like some work trying to unify kwargs across different fsspec implementations, so if the plan is to pass down `storage_options`, I wonder if we should just let users control the timeout (and other kwargs) using that and if not specified, use the default? | Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2) | 400 | 130 | Support cloud storage in load_dataset
Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2)
The current implementation depends on gcsfs/s3fs being able to authenticate through some other means e.g., environmental variables. For AWS, it looks like you can set `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_SESSION_TOKEN`
Note that while testing this just now, I did note a discrepancy between gcsfs and s3fs that we might want to address where gcsfs passes the timeout from `storage_options` [here](https://github.com/huggingface/datasets/blob/3e6269979fc80ae8939294d26298897f0db5b84d/src/datasets/utils/file_utils.py#L333) down into the `aiohttp.ClientSession.request`, but s3fs does not handle this (tries to pass to the `aiobotocore.session.AioSession` constructor raising `TypeError: __init__() got an unexpected keyword argument 'requests_timeout'`).
It seems like some work trying to unify kwargs across different fsspec implementations, so if the plan is to pass down `storage_options`, I wonder if we should just let users control the timeout (and other kwargs) using that and if not specified, use the default? | [
-1.1259617805480957,
-0.8903080821037292,
-0.7191109657287598,
1.5024460554122925,
-0.09601156413555145,
-1.2793055772781372,
0.1703445017337799,
-1.0465589761734009,
1.6725752353668213,
-0.7534469366073608,
0.30338990688323975,
-1.6468414068222046,
-0.00529266195371747,
-0.5900700688362122,
-0.7838209867477417,
-0.8325836062431335,
-0.4153982996940613,
-0.8006234765052795,
1.0001373291015625,
2.4476935863494873,
1.2480522394180298,
-1.3287473917007446,
2.6709516048431396,
0.6876159310340881,
-0.23455703258514404,
-1.0180217027664185,
0.4439234137535095,
-0.018629616126418114,
-1.2915233373641968,
-0.4059884548187256,
-0.8796030879020691,
-0.03254104405641556,
-0.6146949529647827,
-0.569778561592102,
0.09122578799724579,
0.472800076007843,
-0.31495726108551025,
-0.3833447992801666,
-0.601474404335022,
-0.796921968460083,
0.5135884881019592,
-0.3499797284603119,
0.9842018485069275,
-0.25747764110565186,
1.7750078439712524,
-0.6143726706504822,
0.4631974995136261,
0.6868059039115906,
1.3490468263626099,
0.17572477459907532,
0.012021344155073166,
0.2852483093738556,
0.3522164821624756,
0.02588646113872528,
0.4750804603099823,
1.226571798324585,
0.6756031513214111,
0.4998643100261688,
0.6779502630233765,
-2.291435718536377,
1.3144484758377075,
-0.9594590067863464,
0.28026795387268066,
1.29239821434021,
-0.9611397385597229,
0.2877095639705658,
-1.8432961702346802,
-0.018391862511634827,
0.595474362373352,
-2.214334011077881,
0.2734115719795227,
-1.2869654893875122,
-0.4774458706378937,
1.0313231945037842,
0.32622402906417847,
-1.2273231744766235,
0.2512173354625702,
-0.435848206281662,
1.0686863660812378,
0.43542689085006714,
1.1191811561584473,
-1.738358497619629,
-0.005048560909926891,
-0.22513750195503235,
0.15850210189819336,
-1.2651541233062744,
-1.60780668258667,
0.5246322751045227,
0.6487954258918762,
0.6524388194084167,
-0.14752641320228577,
1.0222983360290527,
-0.969734787940979,
0.8359294533729553,
-1.0266828536987305,
-1.6918420791625977,
-1.3998792171478271,
-2.2513792514801025,
-2.32694149017334,
0.7388304471969604,
-0.45166462659835815,
-0.4280429482460022,
2.0277998447418213,
-0.9759641289710999,
-1.817004919052124,
1.058616042137146,
0.27191489934921265,
-0.02652840130031109,
2.275682210922241,
0.20672933757305145,
-0.7425517439842224,
0.4174332916736603,
-0.7426726818084717,
0.7377766966819763,
-0.3183240592479706,
1.366051197052002,
0.5136858224868774,
-1.090074062347412,
1.5845109224319458,
-0.3418678939342499,
0.6246740818023682,
-0.7238096594810486,
-0.5458710789680481,
-0.7713403105735779,
0.2902175188064575,
1.8936758041381836,
-0.36640289425849915,
1.5838860273361206,
-0.32692816853523254,
-1.5730913877487183,
-1.5802329778671265,
0.9162108302116394,
0.5192701816558838,
-0.7990942597389221,
0.04352915287017822,
-0.44508448243141174,
0.13004818558692932,
-0.0947890430688858,
1.1608277559280396,
1.259174108505249,
0.7310062050819397,
-0.3834182918071747,
-0.8219831585884094,
0.2069130837917328,
-0.017270516604185104,
-0.6531814336776733,
-1.8247730731964111,
-0.3550243079662323,
0.2829948663711548,
0.5928803086280823,
-1.2039788961410522,
1.8104743957519531,
0.8449053168296814,
1.9901189804077148,
1.0094659328460693,
-0.4105161726474762,
1.552985668182373,
0.008974911645054817,
1.9244822263717651,
-0.47247231006622314,
0.5982977747917175,
-0.3409164845943451,
-1.1858564615249634,
0.9004420042037964,
-0.2905476987361908,
-2.0576369762420654,
-0.6686668992042542,
-0.7768067121505737,
-0.1803228259086609,
-0.7087016105651855,
0.8933504819869995,
-0.2305987924337387,
-1.5380526781082153,
0.11560651659965515,
-0.6816813349723816,
0.18274369835853577,
-1.163792371749878,
0.2567408084869385,
0.7546926736831665,
-0.6968214511871338,
0.07997842133045197,
-0.2322176992893219,
-1.302200198173523,
-0.5080720782279968,
0.41817575693130493,
1.8580644130706787,
-0.6506707668304443,
0.9133535623550415,
1.1211211681365967,
-0.7310502529144287,
0.10087017714977264,
0.28802645206451416,
-0.3437139093875885,
0.8377378582954407,
-1.109766960144043,
-0.3677487075328827,
1.1834266185760498,
-0.20724418759346008,
-0.6316213607788086,
1.4367598295211792,
0.8099004030227661,
-1.0335818529129028,
-0.19693556427955627,
-0.1567193865776062,
-0.7824256420135498,
0.05464816465973854,
-1.5601588487625122,
-0.12454061210155487,
0.4041288197040558,
-1.5336500406265259,
-0.443759024143219,
-0.24815459549427032,
1.3905761241912842,
-0.2036888748407364,
1.4254287481307983,
-0.2188715785741806,
-0.17357361316680908,
-0.2988555431365967,
-0.44719621539115906,
0.16425368189811707,
-0.14275941252708435,
-0.6281241178512573,
0.28238919377326965,
-0.7705430388450623,
0.37776410579681396,
1.4547144174575806,
0.24190658330917358,
0.03040497750043869,
0.4777945876121521,
1.1553494930267334,
0.39697322249412537,
-0.03731713443994522,
-0.8766235709190369,
-1.5751731395721436,
2.020960569381714,
-1.3910458087921143,
1.996593713760376,
0.7622169852256775,
-0.044536177068948746,
-1.7424660921096802,
-1.8689969778060913,
1.3659677505493164,
1.0676151514053345,
2.418487787246704,
0.5065464377403259,
0.39540576934814453,
-0.7804861068725586,
-0.6753233075141907,
0.41807374358177185,
-0.9866164326667786,
-0.6746626496315002,
0.16085202991962433,
2.4038455486297607,
1.705625295639038,
-0.4957689344882965,
-0.27113550901412964,
-0.9985984563827515,
1.3527007102966309,
-0.2374080866575241,
0.2536485493183136,
2.0370452404022217,
-0.23752442002296448,
-1.0703752040863037,
1.3336472511291504,
-2.38167142868042,
0.2996010482311249,
2.03593373298645,
0.18417519330978394,
0.05731818452477455,
-1.4329817295074463,
-0.6141480207443237,
-0.25233060121536255,
-0.46636247634887695,
-1.2017210721969604,
0.48506689071655273,
-0.21574215590953827,
-0.7959935069084167,
-1.4470511674880981,
0.09692701697349548,
-1.1523672342300415,
-1.684499979019165,
0.30439135432243347,
1.9540153741836548,
1.9826425313949585,
-0.7344734072685242,
1.4880897998809814,
-0.32750385999679565,
0.06634984910488129,
1.2586727142333984,
1.323567271232605,
3.0898969173431396,
1.8014439344406128,
-1.299196720123291,
0.7365077137947083,
-0.18267306685447693,
-0.5008289813995361,
1.1567949056625366,
-1.1223257780075073,
1.2371981143951416,
-0.21469585597515106,
-1.1814079284667969,
-1.2794958353042603,
1.0325812101364136,
0.5155268907546997,
0.06380553543567657,
-0.5027954578399658,
1.1607204675674438,
0.15079081058502197,
1.2852349281311035,
0.5539371371269226,
-0.38975760340690613,
0.5979264974594116,
-0.3369534909725189,
-0.5702964067459106,
1.538478970527649,
0.19181875884532928,
-1.3958932161331177,
-2.317791700363159,
-0.1875370591878891,
-0.8943114876747131,
-0.022655777633190155,
-0.6359817981719971,
-0.9762492775917053,
1.5981857776641846,
0.38355255126953125,
-1.2716349363327026,
-0.21402311325073242,
-0.30254194140434265,
-0.5154933333396912,
2.6738505363464355,
-1.3169094324111938,
-0.1865822672843933,
-0.9830120205879211,
-0.6097922325134277,
1.640746831893921,
-1.1445828676223755,
-0.28272926807403564,
-1.0219333171844482,
-0.557697594165802,
-1.2962415218353271,
-0.555805504322052,
0.04301333427429199,
-0.8827610611915588,
0.7441369295120239,
0.10219737887382507,
-1.2122983932495117,
-0.3191811144351959,
-0.8813679218292236,
1.0155946016311646,
-0.1623372882604599,
0.184914693236351,
1.849267601966858,
0.42131832242012024,
-0.40646490454673767,
0.736668586730957,
1.1524757146835327,
0.6224607229232788,
-0.6029289364814758,
0.21534451842308044,
-0.6885551810264587,
0.25420165061950684,
-1.4148799180984497,
0.2912750244140625,
-2.876760482788086,
0.692470371723175,
-0.05841889977455139,
-0.07569099962711334,
-0.06538573652505875,
-1.3788137435913086,
1.0284146070480347,
2.62758469581604,
-1.2349284887313843,
0.42240110039711,
0.42105525732040405,
1.1086138486862183,
-1.5535409450531006,
0.21124084293842316,
-0.4422346353530884,
2.101574182510376,
0.16968776285648346,
1.2046732902526855,
-0.46862655878067017,
-2.2420542240142822,
0.5771569609642029,
-1.271976351737976,
-1.1485140323638916,
0.8509134650230408,
-0.8886265158653259,
0.1475231796503067,
-1.3686347007751465,
-0.21209976077079773,
-0.9221644997596741,
-1.2472741603851318,
0.7089157700538635,
0.11378100514411926,
0.4599837064743042,
-0.6287832856178284,
0.38348421454429626,
-2.1404500007629395,
-1.3608335256576538,
-0.21681097149848938,
-0.9932619333267212,
0.5164815187454224,
-0.34420883655548096,
0.5986968278884888,
-0.11519135534763336,
0.008687011897563934,
0.3159225881099701,
1.4679417610168457,
3.3802902698516846,
0.16212767362594604,
0.25783953070640564,
-0.13936704397201538,
-0.9704533219337463,
1.4301495552062988,
0.9119096994400024,
-0.10060842335224152,
-0.5860186219215393,
-1.0000813007354736,
1.2610429525375366,
2.032351493835449,
1.1355328559875488,
0.04053368419408798,
-0.8789862394332886,
-0.8396036624908447,
0.00021611060947179794,
0.1320868879556656,
0.47787609696388245,
0.9155009388923645,
0.09208978712558746,
0.06494453549385071,
1.3280483484268188,
1.2130792140960693,
-0.37612900137901306,
0.4079439640045166,
-0.8882290124893188,
-0.4145875573158264,
0.40940311551094055,
0.319860577583313,
0.031868238002061844,
0.4244047999382019,
-1.0828578472137451,
-0.1525883823633194,
-0.3933119773864746,
-0.8638564348220825,
-0.813671350479126,
-0.4878321588039398,
-0.41150540113449097,
1.655389428138733,
0.06077391281723976,
-0.45789411664009094,
0.0025268271565437317,
-0.7182218432426453,
-0.12968960404396057,
-0.9819299578666687,
0.27798566222190857,
-0.12523217499256134,
-0.08678041398525238,
-0.13280320167541504,
1.6345747709274292,
-0.9837901592254639,
-2.0964698791503906,
0.20417402684688568,
0.1611950546503067,
-0.42768993973731995,
0.1908601075410843,
1.7100948095321655,
0.5204228162765503,
1.3818961381912231,
1.3645180463790894,
0.9995627403259277,
-0.6754843592643738,
-1.2536022663116455,
0.6865849494934082,
0.963469922542572,
-1.4031906127929688,
0.84517902135849,
-0.08382725715637207,
-0.4659057855606079,
0.6590436697006226,
1.2987003326416016,
0.43217819929122925,
-2.0841643810272217,
0.7968526482582092,
-0.8958628177642822,
0.7601715326309204,
0.6737590432167053,
0.7555441856384277,
0.226654052734375,
0.8423332571983337,
-1.2172034978866577,
-1.137148141860962,
-0.6705388426780701,
-0.7118708491325378,
1.918351411819458,
-0.24428172409534454,
0.5630380511283875,
-0.13990408182144165,
-1.3383911848068237,
-0.15304748713970184,
0.8042917251586914,
0.40703290700912476,
-0.5593050718307495,
0.8096553683280945,
-0.6605736017227173,
-1.0002893209457397,
-1.249380350112915,
-0.5407422780990601,
-1.0758657455444336,
-0.9209257960319519,
0.9683023691177368,
0.757573664188385,
0.4399852156639099,
1.9340317249298096,
0.5800684690475464,
0.3076952397823334,
-2.657775402069092,
0.8358976244926453,
0.3697723150253296,
-0.05763966962695122,
0.9293898940086365,
0.31102678179740906,
1.087274432182312,
-0.05083359032869339,
0.6600322127342224,
-2.3780910968780518,
2.251157760620117,
-0.1920464038848877,
0.6669391989707947,
0.002880536951124668,
-0.21107837557792664,
1.1165305376052856,
0.5143545866012573,
0.5563660860061646,
-1.134666085243225,
0.745322048664093,
-0.6176618337631226,
1.1281065940856934,
0.8151583075523376,
-0.8947352170944214,
0.01190623827278614,
1.373556137084961,
0.42359140515327454,
-0.4763047993183136,
-0.9291484951972961,
-0.9502625465393066,
0.9364616870880127,
1.682150959968567,
-0.045152612030506134,
0.037946321070194244,
0.936518669128418,
0.6890228986740112,
-1.3170801401138306,
0.046704571694135666,
-0.7042377591133118,
-0.7266890406608582,
1.6753818988800049,
1.9891784191131592,
-0.1149810254573822,
-0.2144193947315216,
-0.8058450222015381,
-1.1969618797302246,
0.7894040942192078,
-0.005331454332917929,
0.042100939899683,
0.6121822595596313,
-0.6387158632278442,
1.1517670154571533,
0.7640770077705383,
0.9641204476356506,
0.07495538890361786,
0.31915515661239624,
0.37699708342552185,
-0.4133327901363373,
-1.1875048875808716,
-0.34582191705703735,
-1.0656471252441406,
-2.581285238265991,
0.48634806275367737,
-0.17953906953334808,
-1.4431458711624146,
0.023594308644533157,
-1.064137578010559,
0.8511149287223816,
-0.6031582355499268,
-1.1633270978927612,
-1.4548019170761108,
0.32407617568969727,
-0.1471029371023178,
0.8972460031509399,
-1.6282590627670288,
-0.11534681916236877,
1.1337034702301025,
0.8873158097267151,
-0.6608588099479675,
0.9480522274971008,
0.1829262375831604,
0.9757983088493347,
0.8836855292320251,
-0.3410641551017761,
0.5530496835708618,
0.11427061259746552,
-1.3654617071151733,
0.42799878120422363,
1.1872373819351196,
0.15803022682666779,
1.4386955499649048,
-0.5505938529968262,
0.07589566707611084,
0.4406401515007019,
-0.5959216952323914,
-0.5157290101051331,
-0.5463118553161621,
0.7222883105278015,
-0.00466983113437891,
-0.9420008659362793,
0.027986735105514526,
-0.06593068689107895,
-0.1801992803812027,
0.16895760595798492,
-1.513088583946228,
-0.20029222965240479,
-0.3296544551849365,
-0.5753235220909119,
-1.2587443590164185,
0.007302062585949898,
1.3235946893692017,
-0.70656418800354,
-0.23188118636608124,
0.5111272931098938,
0.37783876061439514,
0.5330232977867126,
0.5872344374656677,
-0.682819128036499,
-0.36711931228637695,
-0.2986147701740265,
-0.39668869972229004,
0.39315834641456604,
1.2856130599975586,
-0.06589250266551971,
-0.9580292701721191,
0.7850029468536377,
-0.3973173499107361,
0.13481439650058746,
1.9623465538024902,
0.063359335064888,
-0.7824337482452393,
0.32410478591918945,
-0.6894860863685608,
1.8513240814208984,
1.7912817001342773,
1.277768850326538,
-0.09941333532333374,
-0.9547702670097351,
0.6603381037712097,
-0.37229013442993164,
-0.3481293022632599,
0.9705724716186523,
0.3664010465145111,
-0.21888016164302826,
-1.3831267356872559,
0.646933376789093,
1.3300334215164185,
-0.8210716247558594,
-0.7899433970451355,
0.14131863415241241,
-0.7886419296264648,
1.1409580707550049,
0.6118192076683044,
0.29325544834136963,
0.23687976598739624,
1.5513592958450317,
0.7177315950393677,
-0.40810489654541016,
0.5835660099983215,
0.48445525765419006,
-0.19888770580291748,
-2.130182981491089,
-1.1410857439041138,
0.3191489279270172,
-0.4485737085342407,
-1.6181691884994507,
1.3850879669189453,
-1.1932836771011353,
-1.0118050575256348,
0.48434194922447205,
0.06930911540985107,
1.4145314693450928,
0.31078851222991943,
1.6372286081314087,
2.1461243629455566,
0.821605384349823,
0.3985520005226135,
1.2728067636489868,
-0.11075828969478607,
-0.42666080594062805,
1.825291395187378,
-0.5201523303985596,
0.5163857936859131,
1.074534296989441,
-0.34316879510879517,
-1.0440038442611694,
-0.8423824310302734,
-1.188162922859192,
-0.6668112277984619,
1.190050721168518,
0.1038876622915268,
-1.110202670097351,
0.2987501621246338,
1.6055943965911865,
0.08934091031551361,
-0.22801841795444489,
0.7188031673431396,
0.3898925185203552,
-0.7236672043800354,
-0.06454713642597198,
-0.8464881181716919,
0.5111265182495117,
-0.232320174574852,
-0.32251444458961487,
0.3198486864566803,
0.4713747501373291,
1.2272027730941772,
-0.02600410394370556,
0.11772856116294861,
1.110777735710144,
-1.4672808647155762,
1.5376983880996704,
-0.6492394804954529,
0.35125938057899475,
-2.423616647720337,
1.3944015502929688,
-0.7819865942001343,
1.9129010438919067,
-2.5615651607513428,
0.3751773238182068,
-0.5100408792495728,
-0.4779673218727112,
0.26324209570884705,
-0.35153859853744507,
0.07417739927768707,
-0.1684734970331192,
-1.0669955015182495,
-0.07985134422779083,
-0.770691454410553,
0.6377667188644409,
1.1396868228912354,
1.3393776416778564,
-1.1240787506103516,
-0.2750800549983978,
-1.785714864730835,
-0.1295543909072876,
-0.6323379874229431,
0.3237910270690918,
-1.9324125051498413,
-0.14936213195323944,
-1.9953218698501587,
-2.415715217590332,
-1.325106143951416,
-0.8211220502853394,
1.0488355159759521,
0.11325463652610779,
-0.8828682899475098,
1.1504013538360596,
-0.3388705849647522,
-1.8527740240097046,
1.1062911748886108,
-2.2104175090789795
] |
https://github.com/huggingface/datasets/issues/5281 | Support cloud storage in load_dataset | > Note that while testing this just now, I did note a discrepancy between gcsfs and s3fs that we might want to address where gcsfs passes the timeout from storage_options [here](https://github.com/huggingface/datasets/blob/3e6269979fc80ae8939294d26298897f0db5b84d/src/datasets/utils/file_utils.py#L333) down into the aiohttp.ClientSession.request, but s3fs does not handle this (tries to pass to the aiobotocore.session.AioSession constructor raising TypeError: __init__() got an unexpected keyword argument 'requests_timeout').
> It seems like some work trying to unify kwargs across different fsspec implementations, so if the plan is to pass down storage_options, I wonder if we should just let users control the timeout (and other kwargs) and if not specified, use the default?
@lhoestq here's a small PR for this: https://github.com/huggingface/datasets/pull/5673
| Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2) | 400 | 109 | Support cloud storage in load_dataset
Would be nice to be able to do
```python
load_dataset("s3://...")
```
or even
```python
data_files=["gs://..."]
storage_options = {...}
load_dataset(..., data_files=data_files, storage_options=storage_options)
```
The idea would be to use `fsspec` as in `download_and_prepare` and `save_to_disk`.
This has been requested several times already. Some users want to use their data from private cloud storage to train models
related:
https://github.com/huggingface/datasets/issues/3490
https://github.com/huggingface/datasets/issues/5244
[forum](https://discuss.huggingface.co/t/how-to-use-s3-path-with-load-dataset-with-streaming-true/25739/2)
> Note that while testing this just now, I did note a discrepancy between gcsfs and s3fs that we might want to address where gcsfs passes the timeout from storage_options [here](https://github.com/huggingface/datasets/blob/3e6269979fc80ae8939294d26298897f0db5b84d/src/datasets/utils/file_utils.py#L333) down into the aiohttp.ClientSession.request, but s3fs does not handle this (tries to pass to the aiobotocore.session.AioSession constructor raising TypeError: __init__() got an unexpected keyword argument 'requests_timeout').
> It seems like some work trying to unify kwargs across different fsspec implementations, so if the plan is to pass down storage_options, I wonder if we should just let users control the timeout (and other kwargs) and if not specified, use the default?
@lhoestq here's a small PR for this: https://github.com/huggingface/datasets/pull/5673
| [
-1.1931078433990479,
-0.8865266442298889,
-0.7406773567199707,
1.4943337440490723,
-0.12763677537441254,
-1.2567174434661865,
0.1296108514070511,
-1.0605189800262451,
1.6105358600616455,
-0.7359844446182251,
0.3050369322299957,
-1.6380168199539185,
-0.007218174636363983,
-0.5785457491874695,
-0.76219242811203,
-0.8504489064216614,
-0.44475167989730835,
-0.7849339246749878,
1.039162516593933,
2.500696897506714,
1.2562891244888306,
-1.408907175064087,
2.703787326812744,
0.6650987863540649,
-0.22304299473762512,
-1.0292342901229858,
0.4617689847946167,
0.012948689050972462,
-1.2868298292160034,
-0.4106594920158386,
-0.8869914412498474,
-0.0335819385945797,
-0.5928848385810852,
-0.5266306400299072,
0.06940881907939911,
0.44874584674835205,
-0.26871398091316223,
-0.36725348234176636,
-0.5963278412818909,
-0.7669104337692261,
0.5265841484069824,
-0.3378702700138092,
0.9282823801040649,
-0.23278158903121948,
1.7681410312652588,
-0.6016288995742798,
0.42983758449554443,
0.6800285577774048,
1.3654464483261108,
0.1834886223077774,
0.013259890489280224,
0.3173060715198517,
0.3603653907775879,
-0.005764062516391277,
0.47653812170028687,
1.1943964958190918,
0.6649294495582581,
0.4472855031490326,
0.6678488254547119,
-2.2351391315460205,
1.3151918649673462,
-0.9482239484786987,
0.2841007709503174,
1.3204909563064575,
-0.9383311867713928,
0.3498857319355011,
-1.839379906654358,
-0.03238525614142418,
0.5813193321228027,
-2.241360902786255,
0.2664180099964142,
-1.2376139163970947,
-0.4866984188556671,
1.0162161588668823,
0.2968299388885498,
-1.221193552017212,
0.24538008868694305,
-0.4807891845703125,
1.042480230331421,
0.43959328532218933,
1.1441514492034912,
-1.7368234395980835,
0.006567307747900486,
-0.22292287647724152,
0.16154232621192932,
-1.2973144054412842,
-1.6059577465057373,
0.5231828689575195,
0.6243771314620972,
0.6412551403045654,
-0.10964236408472061,
0.9847356677055359,
-0.9472693800926208,
0.8580701351165771,
-0.9991983771324158,
-1.656446933746338,
-1.4349110126495361,
-2.2824485301971436,
-2.324658155441284,
0.7618223428726196,
-0.473755419254303,
-0.4490329921245575,
2.0264973640441895,
-0.9902358055114746,
-1.8029565811157227,
1.0749709606170654,
0.2886599898338318,
-0.015819653868675232,
2.3081281185150146,
0.200795516371727,
-0.7363569736480713,
0.46985357999801636,
-0.7451345324516296,
0.7625083327293396,
-0.31457415223121643,
1.3666797876358032,
0.49489137530326843,
-1.0677649974822998,
1.579942226409912,
-0.34964895248413086,
0.5796729922294617,
-0.7353932857513428,
-0.5449299216270447,
-0.7846694588661194,
0.28199687600135803,
1.897270679473877,
-0.34727925062179565,
1.6013082265853882,
-0.3725009858608246,
-1.5536969900131226,
-1.588563084602356,
0.9162856936454773,
0.4986092746257782,
-0.8123993873596191,
0.09170913696289062,
-0.43234121799468994,
0.09911522269248962,
-0.04774301126599312,
1.104366421699524,
1.272825837135315,
0.7049388289451599,
-0.39062705636024475,
-0.8447740077972412,
0.17839637398719788,
-0.046927984803915024,
-0.6317991018295288,
-1.827172040939331,
-0.3511071801185608,
0.2611391544342041,
0.5955883264541626,
-1.2402409315109253,
1.7805228233337402,
0.86977219581604,
1.9747161865234375,
1.0275450944900513,
-0.4269948899745941,
1.5365312099456787,
0.02762395516037941,
1.8951621055603027,
-0.5009720325469971,
0.6298556923866272,
-0.32054388523101807,
-1.1755962371826172,
0.8469333648681641,
-0.3087478578090668,
-2.0538229942321777,
-0.7063997387886047,
-0.7829937934875488,
-0.21401280164718628,
-0.7141391634941101,
0.9039577841758728,
-0.22971980273723602,
-1.481992244720459,
0.15660224854946136,
-0.6489612460136414,
0.20359288156032562,
-1.1730058193206787,
0.2597603499889374,
0.7666284441947937,
-0.7142739295959473,
0.05620308592915535,
-0.2416139543056488,
-1.3057146072387695,
-0.5212161540985107,
0.39883244037628174,
1.8665763139724731,
-0.6627867221832275,
0.9071775674819946,
1.0839680433273315,
-0.7219154834747314,
0.09914107620716095,
0.29137417674064636,
-0.3386487066745758,
0.8534318804740906,
-1.0925229787826538,
-0.40391120314598083,
1.169189691543579,
-0.22422075271606445,
-0.6194674372673035,
1.4240919351577759,
0.7885076999664307,
-1.0161508321762085,
-0.24266374111175537,
-0.14178785681724548,
-0.8028585314750671,
0.01980876922607422,
-1.5521321296691895,
-0.1457262486219406,
0.321780800819397,
-1.5437899827957153,
-0.4348108768463135,
-0.2713397145271301,
1.3488001823425293,
-0.1918507218360901,
1.4400923252105713,
-0.2289661467075348,
-0.15862107276916504,
-0.31763115525245667,
-0.453534334897995,
0.16424140334129333,
-0.17287273705005646,
-0.6107941269874573,
0.27416694164276123,
-0.7951882481575012,
0.3646070063114166,
1.4530677795410156,
0.29452958703041077,
0.054172102361917496,
0.48348379135131836,
1.1213486194610596,
0.41157805919647217,
-0.03676025569438934,
-0.8453271389007568,
-1.5853919982910156,
2.0301454067230225,
-1.410643458366394,
1.9767764806747437,
0.8278598189353943,
-0.050262387841939926,
-1.7485520839691162,
-1.8322510719299316,
1.3600503206253052,
1.1148567199707031,
2.4290263652801514,
0.5154145359992981,
0.4022851884365082,
-0.7991270422935486,
-0.6684191823005676,
0.3775477707386017,
-0.979626476764679,
-0.7355110049247742,
0.14054939150810242,
2.4341683387756348,
1.7374707460403442,
-0.5033121705055237,
-0.24514047801494598,
-1.0068899393081665,
1.3172693252563477,
-0.20955510437488556,
0.25125065445899963,
2.040783166885376,
-0.22446459531784058,
-1.0797747373580933,
1.3294413089752197,
-2.4046030044555664,
0.24130575358867645,
2.0201053619384766,
0.2287597358226776,
0.06807605177164078,
-1.405808448791504,
-0.659479558467865,
-0.242428258061409,
-0.4851302206516266,
-1.2006258964538574,
0.5083370804786682,
-0.24273386597633362,
-0.815694272518158,
-1.4768866300582886,
0.06698828190565109,
-1.180847406387329,
-1.6718541383743286,
0.33018308877944946,
1.9124138355255127,
2.0161821842193604,
-0.7744089961051941,
1.4753265380859375,
-0.30817580223083496,
0.07981526106595993,
1.2491776943206787,
1.310914158821106,
3.1083998680114746,
1.8061914443969727,
-1.2887601852416992,
0.7190046906471252,
-0.19690515100955963,
-0.5045678615570068,
1.1699614524841309,
-1.111936330795288,
1.256558895111084,
-0.22706235945224762,
-1.1895248889923096,
-1.284195065498352,
1.0495357513427734,
0.5195263624191284,
0.07570169121026993,
-0.5071025490760803,
1.1757652759552002,
0.15816836059093475,
1.268922209739685,
0.5439562201499939,
-0.36878567934036255,
0.5746893882751465,
-0.3672272562980652,
-0.5659070611000061,
1.534655213356018,
0.15610124170780182,
-1.4431151151657104,
-2.3262526988983154,
-0.20537105202674866,
-0.875705361366272,
-0.059682972729206085,
-0.6376534104347229,
-1.0016398429870605,
1.568100094795227,
0.376860648393631,
-1.2619431018829346,
-0.25861212611198425,
-0.30646324157714844,
-0.5334372520446777,
2.628653049468994,
-1.3682562112808228,
-0.20774495601654053,
-0.9505268335342407,
-0.5806217193603516,
1.625342845916748,
-1.1422250270843506,
-0.2616526186466217,
-1.0374820232391357,
-0.6190334558486938,
-1.3304779529571533,
-0.5258622169494629,
0.012154282070696354,
-0.9178457856178284,
0.6994538307189941,
0.11597155779600143,
-1.1378287076950073,
-0.29216086864471436,
-0.863707959651947,
0.9822698831558228,
-0.12876635789871216,
0.21141767501831055,
1.855117678642273,
0.42209509015083313,
-0.41231322288513184,
0.7587186098098755,
1.1582084894180298,
0.6045231223106384,
-0.6423340439796448,
0.14970846474170685,
-0.7077128291130066,
0.285980224609375,
-1.4036269187927246,
0.33574655652046204,
-2.8759288787841797,
0.6969985961914062,
-0.023016225546598434,
-0.0633687749505043,
-0.02549559623003006,
-1.3366540670394897,
1.088619589805603,
2.6180386543273926,
-1.200394630432129,
0.45581504702568054,
0.4329795241355896,
1.104905605316162,
-1.5631325244903564,
0.25921308994293213,
-0.4269082248210907,
2.1047515869140625,
0.18204863369464874,
1.189310908317566,
-0.4949478209018707,
-2.260164976119995,
0.5525399446487427,
-1.2852015495300293,
-1.1554604768753052,
0.7941819429397583,
-0.8852148652076721,
0.15260107815265656,
-1.415229320526123,
-0.2042502462863922,
-0.918837308883667,
-1.264249324798584,
0.7102784514427185,
0.10275861620903015,
0.442250519990921,
-0.6116843223571777,
0.3717533051967621,
-2.1397528648376465,
-1.3875434398651123,
-0.18843968212604523,
-0.9689218401908875,
0.49487069249153137,
-0.3566848337650299,
0.6593089699745178,
-0.10941442847251892,
0.005996990948915482,
0.27942919731140137,
1.428444504737854,
3.3949649333953857,
0.17770279943943024,
0.27545303106307983,
-0.12807998061180115,
-0.9642230868339539,
1.4915800094604492,
0.943047046661377,
-0.12128106504678726,
-0.5767145752906799,
-1.0119935274124146,
1.274251103401184,
2.0279126167297363,
1.113456130027771,
0.036887843161821365,
-0.8819906115531921,
-0.8180585503578186,
0.011573011986911297,
0.16554218530654907,
0.4845618009567261,
0.9558854699134827,
0.050961755216121674,
0.09531586617231369,
1.3594040870666504,
1.2786837816238403,
-0.40237313508987427,
0.39708298444747925,
-0.8911516666412354,
-0.4399811327457428,
0.4242474436759949,
0.29610833525657654,
0.035662245005369186,
0.4535609483718872,
-1.077478289604187,
-0.1979638934135437,
-0.4032924771308899,
-0.9034080505371094,
-0.7737098932266235,
-0.47017139196395874,
-0.4197766184806824,
1.6403433084487915,
0.08646467328071594,
-0.46411725878715515,
-0.002379484474658966,
-0.7532771825790405,
-0.13319221138954163,
-0.9916484355926514,
0.2917095124721527,
-0.10116858780384064,
-0.07142852991819382,
-0.130955308675766,
1.6604214906692505,
-0.9626906514167786,
-2.147747039794922,
0.19221138954162598,
0.20577597618103027,
-0.404845654964447,
0.16958022117614746,
1.6946707963943481,
0.49171289801597595,
1.4306639432907104,
1.3213222026824951,
0.9987459182739258,
-0.6374075412750244,
-1.233860731124878,
0.6952962875366211,
0.9928566217422485,
-1.3921650648117065,
0.847891628742218,
-0.10079795867204666,
-0.4810495972633362,
0.6729651093482971,
1.2737852334976196,
0.43170657753944397,
-2.066716194152832,
0.8145294785499573,
-0.8858181834220886,
0.8078775405883789,
0.6643508672714233,
0.7561911344528198,
0.21249225735664368,
0.8349196910858154,
-1.2427384853363037,
-1.1388256549835205,
-0.7075274586677551,
-0.6877109408378601,
1.937113881111145,
-0.2667463421821594,
0.5616773962974548,
-0.14889530837535858,
-1.3165396451950073,
-0.13716746866703033,
0.798787534236908,
0.3743744492530823,
-0.5210118889808655,
0.8108644485473633,
-0.6712425947189331,
-1.0508126020431519,
-1.266932725906372,
-0.5116087794303894,
-1.030615210533142,
-0.9003443717956543,
0.9948604106903076,
0.7665665149688721,
0.38497084379196167,
1.9439266920089722,
0.571627140045166,
0.2666550278663635,
-2.6979713439941406,
0.8714266419410706,
0.3307512700557709,
-0.018264545127749443,
0.9818852543830872,
0.2941988706588745,
1.0948200225830078,
-0.00716697471216321,
0.6430787444114685,
-2.370948314666748,
2.2397193908691406,
-0.15856407582759857,
0.6614984273910522,
-0.02063380554318428,
-0.20128120481967926,
1.1122114658355713,
0.5250828862190247,
0.557898759841919,
-1.1174455881118774,
0.7587116956710815,
-0.5856451988220215,
1.1163605451583862,
0.8055548667907715,
-0.8819448351860046,
0.013210230506956577,
1.3511103391647339,
0.4434860646724701,
-0.4509516954421997,
-0.9249568581581116,
-0.9237416982650757,
0.9368836283683777,
1.731096863746643,
-0.07727757841348648,
0.05019014701247215,
0.893592894077301,
0.6594666838645935,
-1.348374843597412,
0.04344724118709564,
-0.6877853870391846,
-0.7114156484603882,
1.6941523551940918,
1.9996803998947144,
-0.08678174763917923,
-0.22313861548900604,
-0.7284931540489197,
-1.2141550779342651,
0.7917357087135315,
-0.014966346323490143,
0.11000993102788925,
0.6206733584403992,
-0.6636562347412109,
1.1490072011947632,
0.7426279783248901,
0.9616009593009949,
0.06064385548233986,
0.30405449867248535,
0.4016098976135254,
-0.39552465081214905,
-1.1696693897247314,
-0.33576956391334534,
-1.072618007659912,
-2.5542612075805664,
0.45049139857292175,
-0.1934896856546402,
-1.4322017431259155,
0.02433944121003151,
-1.0446444749832153,
0.8670721650123596,
-0.5977060198783875,
-1.117039442062378,
-1.4663331508636475,
0.2649196982383728,
-0.15736937522888184,
0.8948964476585388,
-1.6383323669433594,
-0.09215723723173141,
1.1671299934387207,
0.8878555297851562,
-0.6296253204345703,
0.9669623970985413,
0.22802811861038208,
0.9683478474617004,
0.868123471736908,
-0.3069647550582886,
0.5347998142242432,
0.14068573713302612,
-1.363045573234558,
0.41420742869377136,
1.1962615251541138,
0.15847045183181763,
1.4383825063705444,
-0.553999662399292,
0.06388513743877411,
0.4516737461090088,
-0.5762019157409668,
-0.49124574661254883,
-0.5290102362632751,
0.7082909345626831,
0.009178434498608112,
-0.9535771608352661,
0.028225313872098923,
-0.09535419940948486,
-0.22014360129833221,
0.1512668877840042,
-1.4996622800827026,
-0.18684135377407074,
-0.384759783744812,
-0.5690370798110962,
-1.2844725847244263,
0.04330413416028023,
1.3335082530975342,
-0.772495687007904,
-0.20464982092380524,
0.5147725939750671,
0.412082701921463,
0.49783268570899963,
0.6213332414627075,
-0.6712201833724976,
-0.3603094518184662,
-0.26929140090942383,
-0.36411356925964355,
0.34044596552848816,
1.2394779920578003,
-0.0703820139169693,
-0.9985973834991455,
0.7958822250366211,
-0.41799110174179077,
0.11995673924684525,
1.9628777503967285,
0.047731637954711914,
-0.7576267719268799,
0.3168196380138397,
-0.6838237047195435,
1.8726452589035034,
1.7346642017364502,
1.3170889616012573,
-0.10981391370296478,
-0.922488272190094,
0.6442399024963379,
-0.32007884979248047,
-0.329906165599823,
0.9762271046638489,
0.3985723555088043,
-0.20977318286895752,
-1.4298758506774902,
0.6139373183250427,
1.3103669881820679,
-0.8610489964485168,
-0.7556306719779968,
0.13062921166419983,
-0.8318721652030945,
1.1421221494674683,
0.6512800455093384,
0.32639873027801514,
0.19836373627185822,
1.5529861450195312,
0.716706395149231,
-0.4454611837863922,
0.5690314173698425,
0.5005186796188354,
-0.19257590174674988,
-2.1056876182556152,
-1.1020318269729614,
0.2735016345977783,
-0.4256322681903839,
-1.5794281959533691,
1.3348252773284912,
-1.1794393062591553,
-1.011690616607666,
0.49145880341529846,
0.04375271499156952,
1.4119031429290771,
0.28185439109802246,
1.623762607574463,
2.144756317138672,
0.830517590045929,
0.3699776232242584,
1.2522921562194824,
-0.08910840004682541,
-0.43376582860946655,
1.8436143398284912,
-0.48739638924598694,
0.5298451781272888,
1.0954533815383911,
-0.3504194915294647,
-1.0023113489151,
-0.8359478116035461,
-1.1857205629348755,
-0.6675785183906555,
1.1744563579559326,
0.10858643054962158,
-1.106641173362732,
0.27912437915802,
1.5815092325210571,
0.12976700067520142,
-0.24580878019332886,
0.6582654118537903,
0.43526211380958557,
-0.7454726696014404,
-0.06158066168427467,
-0.872772753238678,
0.5173690915107727,
-0.21259444952011108,
-0.32013222575187683,
0.3061584234237671,
0.42946287989616394,
1.2309255599975586,
-0.032319340854883194,
0.13594754040241241,
1.150847315788269,
-1.4527662992477417,
1.544659972190857,
-0.6348990201950073,
0.31839561462402344,
-2.421989917755127,
1.4257586002349854,
-0.7688502073287964,
1.9356541633605957,
-2.553770065307617,
0.39568397402763367,
-0.562813401222229,
-0.4747058153152466,
0.29594168066978455,
-0.3562367558479309,
0.08852416276931763,
-0.17433477938175201,
-1.049386978149414,
-0.0713530108332634,
-0.7510985136032104,
0.590096116065979,
1.1868422031402588,
1.310128927230835,
-1.0818241834640503,
-0.27398884296417236,
-1.7554808855056763,
-0.16111336648464203,
-0.6547339558601379,
0.33778297901153564,
-1.9393787384033203,
-0.13212329149246216,
-1.9932886362075806,
-2.397664785385132,
-1.3380532264709473,
-0.8207364082336426,
1.0708556175231934,
0.1406804919242859,
-0.896205723285675,
1.171881079673767,
-0.36860397458076477,
-1.8302533626556396,
1.138585090637207,
-2.191154956817627
] |
https://github.com/huggingface/datasets/issues/5280 | Import error | Hi,
3.8.13
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Quentin Lhoest ***@***.***>
Sent: Tuesday, November 22, 2022 2:37:02 PM
To: huggingface/datasets ***@***.***>
Cc: feketedavid1012 ***@***.***>; Author ***@***.***>
Subject: Re: [huggingface/datasets] Import error (Issue #5280)
Hi ! Can you
import platform
print(platform.python_version())
to see that it returns ?
—
Reply to this email directly, view it on GitHub<https://github.com/huggingface/datasets/issues/5280#issuecomment-1323691385>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJW7F5YGG32W6WABYC25NJTWJTD75ANCNFSM6AAAAAASHZJ2AU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
| https://github.com/huggingface/datasets/blob/cd3d8e637cfab62d352a3f4e5e60e96597b5f0e9/src/datasets/__init__.py#L28
Hy,
I have error at the above line. I have python version 3.8.13, the message says I need python>=3.7, which is True, but I think the if statement not working properly (or the message wrong) | 401 | 69 | Import error
https://github.com/huggingface/datasets/blob/cd3d8e637cfab62d352a3f4e5e60e96597b5f0e9/src/datasets/__init__.py#L28
Hy,
I have error at the above line. I have python version 3.8.13, the message says I need python>=3.7, which is True, but I think the if statement not working properly (or the message wrong)
Hi,
3.8.13
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Quentin Lhoest ***@***.***>
Sent: Tuesday, November 22, 2022 2:37:02 PM
To: huggingface/datasets ***@***.***>
Cc: feketedavid1012 ***@***.***>; Author ***@***.***>
Subject: Re: [huggingface/datasets] Import error (Issue #5280)
Hi ! Can you
import platform
print(platform.python_version())
to see that it returns ?
—
Reply to this email directly, view it on GitHub<https://github.com/huggingface/datasets/issues/5280#issuecomment-1323691385>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJW7F5YGG32W6WABYC25NJTWJTD75ANCNFSM6AAAAAASHZJ2AU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
| [
-1.2245451211929321,
-0.9519438147544861,
-0.5376725792884827,
1.4114515781402588,
-0.18234844505786896,
-1.2721543312072754,
0.1501534879207611,
-1.0091004371643066,
1.595414638519287,
-0.5358529090881348,
0.1921544373035431,
-1.6243865489959717,
-0.10301874577999115,
-0.5325057506561279,
-0.7701870799064636,
-0.730669379234314,
-0.39149826765060425,
-0.8951537013053894,
0.9755666255950928,
2.4728803634643555,
1.2581123113632202,
-1.4003493785858154,
2.7055883407592773,
0.631826639175415,
-0.25958359241485596,
-1.0347859859466553,
0.4719254672527313,
0.053879719227552414,
-1.1880120038986206,
-0.616159975528717,
-0.7988844513893127,
-0.1191909983754158,
-0.500491201877594,
-0.36266836524009705,
0.08412358909845352,
0.44362330436706543,
-0.09304524958133698,
-0.2757791578769684,
-0.6257391571998596,
-0.6704872250556946,
0.5635616779327393,
-0.3726615607738495,
0.85158371925354,
-0.3733431398868561,
1.7263089418411255,
-0.7023147344589233,
0.5440625548362732,
0.7323612570762634,
1.3595253229141235,
0.17298583686351776,
-0.04741809889674187,
0.3595755994319916,
0.43029332160949707,
-0.03781120851635933,
0.42921605706214905,
1.131285309791565,
0.693760335445404,
0.47392037510871887,
0.6028293371200562,
-2.184438467025757,
1.4065485000610352,
-0.9518537521362305,
0.33471131324768066,
1.4935883283615112,
-0.9529485702514648,
0.2980862557888031,
-1.8613269329071045,
0.008648510091006756,
0.5751422047615051,
-2.413001775741577,
0.23703734576702118,
-1.4182777404785156,
-0.7224982380867004,
0.9516009092330933,
0.27048754692077637,
-1.3758820295333862,
0.171087384223938,
-0.5617783069610596,
1.0398492813110352,
0.376556932926178,
0.9910435080528259,
-1.7629286050796509,
-0.2443835735321045,
-0.07419967651367188,
0.025060411542654037,
-1.2456523180007935,
-1.6592833995819092,
0.7097415924072266,
0.4472253918647766,
0.6158702969551086,
-0.10914614796638489,
0.9191699624061584,
-1.0157877206802368,
0.9924916625022888,
-1.1161377429962158,
-1.61656653881073,
-1.4953534603118896,
-2.408328056335449,
-2.1811118125915527,
0.8338676691055298,
-0.4968966841697693,
-0.42757442593574524,
1.9333873987197876,
-1.010659098625183,
-1.6216814517974854,
1.050018310546875,
0.22264447808265686,
0.16629132628440857,
2.325076103210449,
0.24062801897525787,
-0.6536057591438293,
0.3005685806274414,
-0.8490487933158875,
0.8459882140159607,
-0.2692304253578186,
1.3959729671478271,
0.4734097719192505,
-0.9792932271957397,
1.5629189014434814,
-0.3965134620666504,
0.5481300354003906,
-0.5802825093269348,
-0.6660997867584229,
-0.8045655488967896,
0.35135215520858765,
1.9362914562225342,
-0.2504231035709381,
1.577199935913086,
-0.3514375686645508,
-1.6626571416854858,
-1.459229588508606,
0.8737703561782837,
0.5427679419517517,
-0.9546888470649719,
0.019857030361890793,
-0.5669450759887695,
0.07723049074411392,
-0.11135900020599365,
1.1245609521865845,
1.2537963390350342,
0.6637718677520752,
-0.5522070527076721,
-0.8422034978866577,
0.1432507336139679,
-0.13713039457798004,
-0.7363668084144592,
-1.8846876621246338,
-0.3719457685947418,
0.20854929089546204,
0.697926938533783,
-1.222403883934021,
1.656161904335022,
0.9500341415405273,
1.9891483783721924,
0.9618543982505798,
-0.478000670671463,
1.324605107307434,
-0.008913922123610973,
1.8030115365982056,
-0.7426859736442566,
0.7025259137153625,
-0.3299958109855652,
-0.9891799688339233,
0.9365860223770142,
-0.3661022484302521,
-2.0707592964172363,
-0.776373565196991,
-0.8075630068778992,
-0.27431657910346985,
-0.7927690744400024,
0.9042392373085022,
-0.26924070715904236,
-1.3246877193450928,
0.16531266272068024,
-0.7004190683364868,
0.27578189969062805,
-1.2789621353149414,
0.29276636242866516,
0.8262232542037964,
-0.5294431447982788,
-0.08548124134540558,
-0.15551476180553436,
-1.2856954336166382,
-0.5665057897567749,
0.29380303621292114,
1.9213889837265015,
-0.5335723161697388,
1.0296638011932373,
0.9685226082801819,
-0.6643438339233398,
0.13250942528247833,
0.2914484739303589,
-0.2776632308959961,
0.8680805563926697,
-1.1434423923492432,
-0.328199565410614,
1.0048788785934448,
-0.2964531183242798,
-0.43958041071891785,
1.5170787572860718,
0.8504424691200256,
-1.0473648309707642,
-0.33398526906967163,
-0.23588787019252777,
-0.8263595104217529,
0.06769250333309174,
-1.5401010513305664,
-0.16608880460262299,
0.33213940262794495,
-1.518130898475647,
-0.4691907465457916,
-0.18320083618164062,
1.4799281358718872,
-0.2194083333015442,
1.326341152191162,
-0.2768441140651703,
-0.3016488552093506,
-0.3579626679420471,
-0.3797124922275543,
0.22722047567367554,
-0.30877599120140076,
-0.5615214109420776,
0.184709832072258,
-0.8498692512512207,
0.33865228295326233,
1.5151360034942627,
0.3815518617630005,
-0.03696013242006302,
0.4053514003753662,
1.0847219228744507,
0.2890673279762268,
-0.1295480579137802,
-0.8659151792526245,
-1.5629160404205322,
2.018878936767578,
-1.4939875602722168,
1.9548543691635132,
0.8810886740684509,
-0.12687744200229645,
-1.6880112886428833,
-1.8508455753326416,
1.1466381549835205,
1.1451048851013184,
2.3506815433502197,
0.5140261650085449,
0.4112401008605957,
-0.8747265338897705,
-0.6911911368370056,
0.30293798446655273,
-1.043390154838562,
-0.6491129398345947,
0.03388753533363342,
2.388218879699707,
1.8331682682037354,
-0.6348404884338379,
-0.20940546691417694,
-0.9426482319831848,
1.3843798637390137,
-0.1580185443162918,
0.28749415278434753,
2.0607030391693115,
-0.21568086743354797,
-1.1143337488174438,
1.2696444988250732,
-2.3516347408294678,
0.2952592968940735,
2.1028432846069336,
0.42069894075393677,
0.16811059415340424,
-1.4150888919830322,
-0.5227487087249756,
-0.43452706933021545,
-0.3890681266784668,
-1.2106696367263794,
0.570172131061554,
-0.225365549325943,
-0.8933021426200867,
-1.4903552532196045,
0.09124978631734848,
-1.1352108716964722,
-1.7434722185134888,
0.45732763409614563,
1.892226219177246,
2.027628183364868,
-0.6440553665161133,
1.381636619567871,
-0.3457517921924591,
0.046848610043525696,
1.2070552110671997,
1.346678614616394,
3.064359664916992,
1.9175702333450317,
-1.1717503070831299,
0.6592395901679993,
-0.1996208280324936,
-0.4540775418281555,
1.0267759561538696,
-1.0679495334625244,
1.1663845777511597,
-0.17703676223754883,
-1.165726900100708,
-1.214941143989563,
1.023319125175476,
0.4906892478466034,
0.05467105284333229,
-0.5288658142089844,
1.1650363206863403,
0.09670998901128769,
1.426478624343872,
0.5975544452667236,
-0.4110034704208374,
0.5696389079093933,
-0.4721951484680176,
-0.5435540676116943,
1.633133053779602,
0.27734479308128357,
-1.6236215829849243,
-2.3340892791748047,
-0.26919788122177124,
-0.871629536151886,
0.029297292232513428,
-0.5894593596458435,
-1.0981003046035767,
1.562214970588684,
0.4962911307811737,
-1.284864068031311,
-0.32002168893814087,
-0.3056374788284302,
-0.5839868187904358,
2.6165711879730225,
-1.3204033374786377,
-0.12471477687358856,
-0.9585809707641602,
-0.577242374420166,
1.698646068572998,
-1.2817656993865967,
-0.24892911314964294,
-1.0857754945755005,
-0.6662908792495728,
-1.1165626049041748,
-0.4343690574169159,
-0.11886273324489594,
-0.9771409630775452,
0.7478740811347961,
0.051887016743421555,
-1.0260586738586426,
-0.3131084144115448,
-0.8244934678077698,
0.9157427549362183,
-0.11077462881803513,
0.0961400717496872,
1.770628809928894,
0.26694804430007935,
-0.3322019577026367,
0.767210841178894,
1.223934292793274,
0.6470085382461548,
-0.7071982026100159,
-0.048361886292696,
-0.5399083495140076,
0.32816025614738464,
-1.3269835710525513,
0.29547029733657837,
-2.928389549255371,
0.7021932005882263,
-0.13895255327224731,
-0.1246851235628128,
-0.06779322773218155,
-1.4553543329238892,
1.2550199031829834,
2.514569044113159,
-1.213394284248352,
0.5571421980857849,
0.4863867163658142,
1.064453363418579,
-1.6386644840240479,
0.44528523087501526,
-0.4252746105194092,
2.2025294303894043,
0.24151267111301422,
1.2521058320999146,
-0.6123058795928955,
-2.2138195037841797,
0.5825557112693787,
-1.1030340194702148,
-1.15599524974823,
0.536199152469635,
-0.8971419930458069,
0.19933617115020752,
-1.557888388633728,
-0.1912926435470581,
-0.9316101670265198,
-1.3097425699234009,
0.6569426655769348,
0.0898091197013855,
0.31816366314888,
-0.6133133172988892,
0.33727991580963135,
-2.210508346557617,
-1.3513681888580322,
-0.25932908058166504,
-0.9828317761421204,
0.6190010905265808,
-0.43140673637390137,
0.6415189504623413,
0.05936704948544502,
0.14561067521572113,
0.3272080421447754,
1.530564546585083,
3.397672653198242,
0.1276806741952896,
0.2208615094423294,
-0.09739129990339279,
-0.8511714935302734,
1.416080355644226,
0.9957978129386902,
0.08550986647605896,
-0.5667212605476379,
-0.9445618987083435,
1.3768469095230103,
2.0372185707092285,
0.9862566590309143,
0.10064481198787689,
-0.8505457639694214,
-0.634137749671936,
-0.012762966565787792,
0.33049508929252625,
0.47947412729263306,
1.0043929815292358,
0.06086679920554161,
0.0407879613339901,
1.3407154083251953,
1.2477092742919922,
-0.42649880051612854,
0.4002474546432495,
-0.9616987109184265,
-0.4183287024497986,
0.2914365530014038,
0.30903297662734985,
-0.06495150178670883,
0.4529638886451721,
-1.0156770944595337,
-0.23691603541374207,
-0.2440057247877121,
-0.8839750289916992,
-0.7918627858161926,
-0.44712552428245544,
-0.4815027117729187,
1.5956894159317017,
0.09408383816480637,
-0.44078412652015686,
0.06849093735218048,
-0.5928395390510559,
-0.115882009267807,
-1.2358492612838745,
0.28852754831314087,
0.008764191530644894,
0.03418278321623802,
-0.22204796969890594,
1.71168851852417,
-0.8439212441444397,
-2.1399717330932617,
0.17997287213802338,
0.3655862808227539,
-0.5642842650413513,
0.11391445249319077,
1.652065634727478,
0.5180482268333435,
1.525495171546936,
1.2624753713607788,
1.0274908542633057,
-0.6099436283111572,
-1.2432390451431274,
0.7034462690353394,
0.9040391445159912,
-1.4087601900100708,
0.7508358359336853,
-0.08050598204135895,
-0.43578118085861206,
0.7352342009544373,
1.420432686805725,
0.4321591258049011,
-2.025984048843384,
0.9610537886619568,
-0.9270550608634949,
0.918023407459259,
0.6915867328643799,
0.7371442317962646,
0.3499211370944977,
0.9213670492172241,
-1.3527626991271973,
-1.0380700826644897,
-0.8186296224594116,
-0.6236140131950378,
2.076375961303711,
-0.33292222023010254,
0.5568667054176331,
-0.228526771068573,
-1.1014065742492676,
-0.10130156576633453,
0.8346899151802063,
0.5139049291610718,
-0.30501022934913635,
0.8531458377838135,
-0.59220290184021,
-1.0582231283187866,
-1.229838490486145,
-0.36044934391975403,
-0.8415812849998474,
-0.9905972480773926,
0.9192721843719482,
0.8245129585266113,
0.5605093836784363,
1.963296890258789,
0.5137754082679749,
0.29233866930007935,
-2.5844430923461914,
0.8915897607803345,
0.3009732961654663,
-0.09717255085706711,
1.0550616979599,
0.31824466586112976,
1.1782536506652832,
0.15477746725082397,
0.4643440544605255,
-2.3980441093444824,
2.1991071701049805,
-0.12512560188770294,
0.71900874376297,
0.023707233369350433,
-0.20809374749660492,
1.2522392272949219,
0.6321120858192444,
0.45278263092041016,
-1.0924140214920044,
0.7547004222869873,
-0.5157699584960938,
1.1532856225967407,
0.7444533705711365,
-0.6762311458587646,
0.0562991164624691,
1.3029794692993164,
0.4942285120487213,
-0.49413204193115234,
-1.0652483701705933,
-0.8101397752761841,
0.858119785785675,
1.6793739795684814,
-0.12821948528289795,
-0.07798357307910919,
0.6596689224243164,
0.7498270273208618,
-1.1574076414108276,
0.12864388525485992,
-0.6730469465255737,
-0.7472752332687378,
1.563826084136963,
2.1380410194396973,
-0.03419231250882149,
-0.1734827309846878,
-0.6638044714927673,
-1.3267972469329834,
0.742135226726532,
-0.06731931865215302,
0.09399177134037018,
0.5585443377494812,
-0.5673165321350098,
1.0692036151885986,
0.7022073864936829,
1.0458742380142212,
-0.04794260114431381,
0.4449364244937897,
0.4371679425239563,
-0.3115759491920471,
-1.1498453617095947,
-0.4685880243778229,
-1.2655142545700073,
-2.5506062507629395,
0.5250781178474426,
-0.33088016510009766,
-1.4464654922485352,
0.050425935536623,
-1.1084721088409424,
0.8714035153388977,
-0.7385713458061218,
-1.1262454986572266,
-1.6315736770629883,
0.19193135201931,
-0.10937429219484329,
0.9945546984672546,
-1.6259044408798218,
-0.2237040400505066,
1.165067195892334,
0.6344211101531982,
-0.5209513902664185,
0.9607993364334106,
0.25320830941200256,
0.9853963255882263,
0.6740061640739441,
-0.4135392904281616,
0.5295515656471252,
0.1193593442440033,
-1.4431699514389038,
0.5697026252746582,
1.3297940492630005,
0.25889644026756287,
1.3986971378326416,
-0.4595029056072235,
0.2114323526620865,
0.5032421946525574,
-0.6621181964874268,
-0.5332333445549011,
-0.31104931235313416,
0.7645033597946167,
0.11175093799829483,
-1.060629963874817,
-0.012125557288527489,
-0.2598891258239746,
-0.19903914630413055,
0.18458260595798492,
-1.4298285245895386,
-0.3703158497810364,
-0.5009667873382568,
-0.46410900354385376,
-1.2723902463912964,
-0.14579108357429504,
1.373138427734375,
-0.6753068566322327,
-0.19381475448608398,
0.5543931722640991,
0.5727561116218567,
0.5691846609115601,
0.71147221326828,
-0.7036696672439575,
-0.31315597891807556,
-0.3727465867996216,
-0.28062477707862854,
0.29420921206474304,
1.144760012626648,
-0.08699522167444229,
-0.9524138569831848,
0.5796304941177368,
-0.4047122895717621,
0.1260683387517929,
2.018979787826538,
0.022522583603858948,
-0.6731173396110535,
0.41872891783714294,
-0.7126272916793823,
1.881021499633789,
1.5240869522094727,
1.2178179025650024,
-0.1347634345293045,
-0.9460375308990479,
0.4845468997955322,
-0.204684317111969,
-0.3536241948604584,
0.8714479207992554,
0.4909916818141937,
-0.23562954366207123,
-1.4179643392562866,
0.6344919204711914,
1.3038582801818848,
-0.9867129921913147,
-0.7950405478477478,
0.19191837310791016,
-0.82787024974823,
1.2405797243118286,
0.451664537191391,
0.4406580626964569,
0.2523910105228424,
1.6732169389724731,
0.6004197597503662,
-0.3964637815952301,
0.46668872237205505,
0.525731086730957,
-0.3145100176334381,
-2.1078579425811768,
-1.2395679950714111,
0.318699449300766,
-0.5760841965675354,
-1.5014749765396118,
1.3476715087890625,
-1.0275681018829346,
-1.0067864656448364,
0.4945150315761566,
0.18023991584777832,
1.3664275407791138,
0.39944958686828613,
1.7742208242416382,
2.048576831817627,
0.820783793926239,
0.3973357677459717,
1.3131276369094849,
-0.0023353081196546555,
-0.6324610710144043,
1.8296215534210205,
-0.3894507586956024,
0.5531556606292725,
1.1868799924850464,
-0.4175029397010803,
-1.2244504690170288,
-0.843122661113739,
-1.0473618507385254,
-0.6826692819595337,
1.2128161191940308,
0.11394664645195007,
-1.08778977394104,
0.19345825910568237,
1.522816777229309,
0.21689704060554504,
-0.2131517082452774,
0.48435133695602417,
0.2979336678981781,
-0.7048507332801819,
-0.1117834821343422,
-1.0243566036224365,
0.4743841290473938,
-0.26756882667541504,
-0.35899341106414795,
0.2069723755121231,
0.6495086550712585,
1.2243655920028687,
-0.17255491018295288,
0.10646961629390717,
1.084531307220459,
-1.4980028867721558,
1.5486539602279663,
-0.5458598732948303,
0.2514137029647827,
-2.3321585655212402,
1.402921438217163,
-0.588619589805603,
1.9643200635910034,
-2.6499135494232178,
0.2929173409938812,
-0.5345166325569153,
-0.43931853771209717,
0.2943805754184723,
-0.25677016377449036,
0.20061081647872925,
-0.14090926945209503,
-1.1266884803771973,
-0.05900542438030243,
-0.7566865086555481,
0.6381861567497253,
1.2024364471435547,
1.4591453075408936,
-1.0919464826583862,
-0.13413086533546448,
-1.726805329322815,
-0.1479959338903427,
-0.8312743306159973,
0.2582067549228668,
-1.9668335914611816,
0.024693910032510757,
-1.9369803667068481,
-2.1295480728149414,
-1.3050657510757446,
-0.8555604219436646,
0.9162597060203552,
0.19940797984600067,
-0.794360876083374,
1.108299970626831,
-0.29937297105789185,
-1.6520109176635742,
1.006137490272522,
-2.2187600135803223
] |
https://github.com/huggingface/datasets/issues/5280 | Import error | Then it should work as expected if you use the same python when using `datasets`
Please make sure you're running your code in the right environment | https://github.com/huggingface/datasets/blob/cd3d8e637cfab62d352a3f4e5e60e96597b5f0e9/src/datasets/__init__.py#L28
Hy,
I have error at the above line. I have python version 3.8.13, the message says I need python>=3.7, which is True, but I think the if statement not working properly (or the message wrong) | 401 | 26 | Import error
https://github.com/huggingface/datasets/blob/cd3d8e637cfab62d352a3f4e5e60e96597b5f0e9/src/datasets/__init__.py#L28
Hy,
I have error at the above line. I have python version 3.8.13, the message says I need python>=3.7, which is True, but I think the if statement not working properly (or the message wrong)
Then it should work as expected if you use the same python when using `datasets`
Please make sure you're running your code in the right environment | [
-1.2907732725143433,
-0.8051122426986694,
-0.8636984825134277,
1.4544912576675415,
-0.15099065005779266,
-1.2534384727478027,
0.03319337218999863,
-1.0669690370559692,
1.4942463636398315,
-0.7183879017829895,
0.19982896745204926,
-1.6829895973205566,
-0.06631534546613693,
-0.3932638466358185,
-0.7391709089279175,
-0.8874427676200867,
-0.28592151403427124,
-0.9377985000610352,
1.0032916069030762,
2.521214485168457,
1.1911132335662842,
-1.3509937524795532,
2.774286985397339,
0.593720018863678,
-0.20898249745368958,
-1.1028975248336792,
0.7095804810523987,
0.02347046136856079,
-1.0380293130874634,
-0.5900896787643433,
-1.0318124294281006,
0.009793234057724476,
-0.5345051288604736,
-0.512222945690155,
-0.00817166082561016,
0.4116811752319336,
-0.22707465291023254,
-0.21458199620246887,
-0.36238837242126465,
-0.7691409587860107,
0.5739567875862122,
-0.36131104826927185,
0.8504278659820557,
-0.38570836186408997,
1.749438762664795,
-0.479902446269989,
0.384013831615448,
0.7500454187393188,
1.4170583486557007,
0.20119763910770416,
-0.0907585546374321,
0.307924747467041,
0.34791043400764465,
-0.017603125423192978,
0.40316492319107056,
1.1341991424560547,
0.556628942489624,
0.6497560739517212,
0.6384559273719788,
-2.153377056121826,
1.4157062768936157,
-1.0002299547195435,
0.18171103298664093,
1.4518448114395142,
-1.0802419185638428,
0.3378274738788605,
-1.8408632278442383,
-0.04396049678325653,
0.4697386622428894,
-2.4835171699523926,
0.2617287337779999,
-1.2846503257751465,
-0.5562387108802795,
1.0246412754058838,
0.29000139236450195,
-1.4049211740493774,
0.10551062226295471,
-0.49559181928634644,
1.0476946830749512,
0.5081130862236023,
1.1165128946304321,
-1.7157365083694458,
-0.016970617696642876,
-0.2460763156414032,
0.01851298287510872,
-1.4014654159545898,
-1.5807650089263916,
0.4993550777435303,
0.5216083526611328,
0.6222155690193176,
0.020510684698820114,
0.9864112138748169,
-0.9759350419044495,
0.8044868111610413,
-0.7842265367507935,
-1.566559076309204,
-1.300089955329895,
-2.4170377254486084,
-2.2778966426849365,
0.8258478045463562,
-0.5486363768577576,
-0.5138630867004395,
2.0126020908355713,
-1.1679083108901978,
-1.7819863557815552,
1.1283957958221436,
0.2557629346847534,
0.004593374207615852,
2.4655823707580566,
0.267424076795578,
-0.8024625778198242,
0.42327627539634705,
-0.7993282675743103,
0.8630990982055664,
-0.31150636076927185,
1.3804904222488403,
0.6736493110656738,
-0.9097151160240173,
1.7597019672393799,
-0.4605310261249542,
0.5552251935005188,
-0.6151809692382812,
-0.619276762008667,
-0.9545473456382751,
0.38261520862579346,
2.0425729751586914,
-0.3858221173286438,
1.586927056312561,
-0.3021298050880432,
-1.5852909088134766,
-1.4702121019363403,
0.8313325047492981,
0.4939269423484802,
-0.8907956480979919,
0.15902936458587646,
-0.35944944620132446,
0.10358260571956635,
0.016556721180677414,
1.0547261238098145,
1.2569580078125,
0.6821811199188232,
-0.38606247305870056,
-1.02354896068573,
0.2932952344417572,
-0.13182485103607178,
-0.5380148887634277,
-1.9129008054733276,
-0.3980705440044403,
0.06438369303941727,
0.7577383518218994,
-1.2024414539337158,
1.7043390274047852,
0.940437376499176,
1.9310760498046875,
0.8980445265769958,
-0.41510143876075745,
1.376526117324829,
-0.1050875186920166,
1.9109312295913696,
-0.5130446553230286,
0.739619255065918,
-0.24872195720672607,
-1.1241904497146606,
0.9131744503974915,
-0.31866613030433655,
-1.8770391941070557,
-0.9241642951965332,
-0.9353023767471313,
-0.2257758378982544,
-0.7613913416862488,
1.0488789081573486,
-0.3818005323410034,
-1.386895775794983,
0.2697373926639557,
-0.6291800141334534,
0.16997484862804413,
-1.420170783996582,
0.291603147983551,
0.7004098296165466,
-0.6443790793418884,
-0.08187636733055115,
-0.21782831847667694,
-1.3659027814865112,
-0.5075193643569946,
0.18728820979595184,
2.0141890048980713,
-0.6240102648735046,
1.0543776750564575,
0.9773468971252441,
-0.797771155834198,
-0.062345489859580994,
0.4041752517223358,
-0.22835659980773926,
0.8830538988113403,
-1.106356143951416,
-0.3817831873893738,
1.1360349655151367,
-0.1924252063035965,
-0.6887127757072449,
1.4223620891571045,
0.919995129108429,
-1.06147038936615,
-0.19387786090373993,
-0.2848168611526489,
-0.812498152256012,
-0.0429697260260582,
-1.5161446332931519,
-0.19565440714359283,
0.2750975787639618,
-1.4611577987670898,
-0.43332794308662415,
-0.0929802805185318,
1.4540162086486816,
-0.17359855771064758,
1.5011706352233887,
-0.3109952509403229,
-0.20872823894023895,
-0.32546988129615784,
-0.44949695467948914,
0.2676215171813965,
-0.1778153032064438,
-0.5289678573608398,
0.24809497594833374,
-0.8413175344467163,
0.23781727254390717,
1.4372626543045044,
0.4249460995197296,
0.031003382056951523,
0.5375131964683533,
1.14499831199646,
0.36433178186416626,
-0.14438021183013916,
-0.9294068217277527,
-1.5238077640533447,
2.009073257446289,
-1.4780820608139038,
1.9297866821289062,
0.7933686971664429,
-0.1751885861158371,
-1.6754978895187378,
-1.798113226890564,
1.3163995742797852,
1.2369247674942017,
2.3172006607055664,
0.6014496088027954,
0.35378411412239075,
-0.8478603959083557,
-0.7313591241836548,
0.4070493280887604,
-1.202630877494812,
-0.7117224335670471,
0.039954833686351776,
2.291079044342041,
1.76353120803833,
-0.5496129393577576,
-0.19762022793293,
-0.9189625978469849,
1.1166149377822876,
-0.14082185924053192,
0.2695007920265198,
1.914269208908081,
-0.32170626521110535,
-1.195225715637207,
1.1302008628845215,
-2.3663880825042725,
0.1288490891456604,
2.072197198867798,
0.34604060649871826,
0.1379244178533554,
-1.4927705526351929,
-0.6649227738380432,
-0.16104695200920105,
-0.4725761413574219,
-1.3149187564849854,
0.6821509003639221,
-0.30374693870544434,
-0.9314215183258057,
-1.3579882383346558,
0.13158082962036133,
-1.057960867881775,
-1.8023053407669067,
0.47284239530563354,
1.860668420791626,
2.1465251445770264,
-0.8171400427818298,
1.455551028251648,
-0.19685567915439606,
0.1694507598876953,
1.256388545036316,
1.2482069730758667,
3.02384352684021,
1.8078290224075317,
-1.1502022743225098,
0.6846452951431274,
-0.11592894047498703,
-0.5395482182502747,
1.2656093835830688,
-0.987928569316864,
1.221858263015747,
-0.2077677696943283,
-1.186363935470581,
-1.2621593475341797,
0.8496041893959045,
0.35735124349594116,
0.06357355415821075,
-0.37334147095680237,
1.2817624807357788,
0.11690476536750793,
1.3164302110671997,
0.5489375591278076,
-0.39017558097839355,
0.6560631394386292,
-0.42852920293807983,
-0.5258816480636597,
1.6861456632614136,
0.17741620540618896,
-1.5463618040084839,
-2.32059645652771,
-0.3002171814441681,
-0.7419145107269287,
0.014707759954035282,
-0.5436120629310608,
-1.0282777547836304,
1.53988516330719,
0.5192902088165283,
-1.1374706029891968,
-0.4116884171962738,
-0.4041457772254944,
-0.6728152632713318,
2.5747933387756348,
-1.3561397790908813,
-0.1600191295146942,
-0.9494190216064453,
-0.5660061836242676,
1.6030522584915161,
-1.28801429271698,
-0.11705467849969864,
-1.0064399242401123,
-0.699680507183075,
-1.4028593301773071,
-0.4681813418865204,
-0.13516542315483093,
-0.9796807169914246,
0.5632409453392029,
0.21461136639118195,
-0.9975821375846863,
-0.22859440743923187,
-0.7469773888587952,
0.8496538996696472,
-0.07378590106964111,
0.28805458545684814,
1.7574760913848877,
0.3054221272468567,
-0.39791202545166016,
0.8000093102455139,
1.1162961721420288,
0.5428749918937683,
-0.6181314587593079,
0.1395471692085266,
-0.6782318353652954,
0.3045051395893097,
-1.2952933311462402,
0.17399829626083374,
-3.027400493621826,
0.6324205994606018,
-0.20746365189552307,
-0.12249613553285599,
-0.07896526902914047,
-1.2964463233947754,
1.2620769739151,
2.4885339736938477,
-1.1615945100784302,
0.5201517343521118,
0.33360445499420166,
1.1791999340057373,
-1.5155322551727295,
0.37504276633262634,
-0.48337429761886597,
2.220877170562744,
0.15839894115924835,
1.2033159732818604,
-0.5475226640701294,
-2.1328020095825195,
0.6251609921455383,
-1.142863392829895,
-1.262686848640442,
0.7619799971580505,
-0.8265169262886047,
0.12170951068401337,
-1.4103442430496216,
-0.1513115018606186,
-0.9648840427398682,
-1.2874770164489746,
0.8368480205535889,
0.1658952236175537,
0.43742603063583374,
-0.5296130180358887,
0.4024861454963684,
-2.0746216773986816,
-1.2622854709625244,
-0.17407716810703278,
-0.9978329539299011,
0.4918760657310486,
-0.2759818136692047,
0.5485346913337708,
-0.1622592657804489,
0.18605957925319672,
0.38492217659950256,
1.365119218826294,
3.4040229320526123,
0.21020883321762085,
0.3621756434440613,
-0.03350692242383957,
-0.9678815603256226,
1.4995160102844238,
1.0931047201156616,
-0.09531902521848679,
-0.6363593339920044,
-0.9227165579795837,
1.3648673295974731,
2.003837823867798,
0.9439800381660461,
0.10106535255908966,
-0.833112895488739,
-0.5112643837928772,
-0.07075085490942001,
0.14960616827011108,
0.5328567624092102,
1.0223139524459839,
-0.06569132208824158,
-0.010767669416964054,
1.3697361946105957,
1.2065075635910034,
-0.4747883081436157,
0.4438890218734741,
-1.0226835012435913,
-0.3633180856704712,
0.40552401542663574,
0.27074915170669556,
-0.028947163373231888,
0.46935340762138367,
-0.938907265663147,
-0.2705933451652527,
-0.16108818352222443,
-1.0063520669937134,
-0.7744566798210144,
-0.36562174558639526,
-0.3517259955406189,
1.6256928443908691,
0.04420390725135803,
-0.49222418665885925,
0.06841465830802917,
-0.814764678478241,
-0.10943327099084854,
-1.091229796409607,
0.140927255153656,
-0.08961467444896698,
-0.1437380462884903,
-0.10144913196563721,
1.7154319286346436,
-0.9820811152458191,
-2.1917946338653564,
0.29368385672569275,
0.3947797417640686,
-0.3259181082248688,
0.17120423913002014,
1.654119849205017,
0.5380734205245972,
1.4740911722183228,
1.242078185081482,
1.0213887691497803,
-0.638781726360321,
-1.2562223672866821,
0.7524735331535339,
0.9303150177001953,
-1.4439260959625244,
0.8114394545555115,
-0.04197857901453972,
-0.5413382053375244,
0.6519700288772583,
1.2163448333740234,
0.5166125893592834,
-1.9449354410171509,
0.8699684739112854,
-0.8442792296409607,
0.7980693578720093,
0.5968862771987915,
0.8008780479431152,
0.25047025084495544,
0.9089376330375671,
-1.1952509880065918,
-1.1161609888076782,
-0.8048620223999023,
-0.6751091480255127,
1.9427320957183838,
-0.20922034978866577,
0.5870168805122375,
-0.19651678204536438,
-1.1058846712112427,
-0.18051813542842865,
0.7233372926712036,
0.3115856945514679,
-0.28425315022468567,
0.8548656702041626,
-0.64264315366745,
-1.1623302698135376,
-1.4950588941574097,
-0.44498947262763977,
-0.9479779005050659,
-0.9321810603141785,
0.9324595332145691,
0.6521086096763611,
0.2770030200481415,
1.9151029586791992,
0.515103280544281,
0.179343581199646,
-2.6426074504852295,
0.9646807909011841,
0.3519367277622223,
0.03410312905907631,
0.9794278740882874,
0.3472691774368286,
1.180945634841919,
0.06725407391786575,
0.41581717133522034,
-2.28418231010437,
2.1906790733337402,
-0.29967284202575684,
0.6167214512825012,
0.10203145444393158,
-0.27449214458465576,
1.110476016998291,
0.5417907238006592,
0.6625365614891052,
-1.1378259658813477,
0.7458058595657349,
-0.6405842900276184,
1.2408756017684937,
0.9924660921096802,
-0.7894672751426697,
0.10697352141141891,
1.3715975284576416,
0.4986259341239929,
-0.37161985039711,
-0.9521416425704956,
-0.8387773633003235,
0.9599452614784241,
1.6866512298583984,
-0.08790090680122375,
-0.05154523625969887,
0.6070125102996826,
0.6607679128646851,
-1.2632904052734375,
0.057247139513492584,
-0.7614969611167908,
-0.8321782946586609,
1.7036573886871338,
2.0426688194274902,
-0.039798080921173096,
-0.3254309892654419,
-0.8495792746543884,
-1.293400764465332,
0.8453347086906433,
0.01014839019626379,
0.11820767819881439,
0.6692470908164978,
-0.7061704993247986,
1.1348514556884766,
0.7240554690361023,
0.8902513384819031,
0.08227913826704025,
0.36240825057029724,
0.3712984621524811,
-0.16795744001865387,
-1.0743430852890015,
-0.35243597626686096,
-1.151688575744629,
-2.747408866882324,
0.4122965633869171,
-0.33220750093460083,
-1.439418077468872,
0.022366024553775787,
-1.0737082958221436,
0.8226190209388733,
-0.6305768489837646,
-1.0062283277511597,
-1.5631617307662964,
0.22323353588581085,
-0.20547737181186676,
0.830833375453949,
-1.6236388683319092,
-0.06741545349359512,
1.3902242183685303,
0.958981990814209,
-0.6142717599868774,
1.0755743980407715,
0.2941567003726959,
1.0962845087051392,
0.7041985988616943,
-0.5186288952827454,
0.5943678617477417,
0.08603949844837189,
-1.4648182392120361,
0.5298711061477661,
1.264635682106018,
0.14584684371948242,
1.4795244932174683,
-0.35780203342437744,
0.05935250222682953,
0.48079121112823486,
-0.6015946865081787,
-0.6123076677322388,
-0.4724600315093994,
0.854381799697876,
0.059022948145866394,
-0.9171628355979919,
0.1446552872657776,
-0.18184435367584229,
-0.1070483922958374,
0.34221068024635315,
-1.485556960105896,
-0.44738733768463135,
-0.4581705927848816,
-0.554578959941864,
-1.3381381034851074,
-0.022223182022571564,
1.3155012130737305,
-0.7373982071876526,
-0.22141116857528687,
0.4725348949432373,
0.47470566630363464,
0.43690574169158936,
0.5352783203125,
-0.741553544998169,
-0.3350847661495209,
-0.3642992079257965,
-0.3289978802204132,
0.38368988037109375,
1.049835205078125,
-0.21627825498580933,
-1.0037221908569336,
0.6771054267883301,
-0.19178806245326996,
0.004666369408369064,
1.915074110031128,
-0.05323823168873787,
-0.7531848549842834,
0.31633785367012024,
-0.6644724607467651,
1.8822898864746094,
1.3907767534255981,
1.2703857421875,
-0.11796871572732925,
-0.7646289467811584,
0.5747519731521606,
-0.14477616548538208,
-0.33445239067077637,
0.9656566381454468,
0.5487145781517029,
-0.13952523469924927,
-1.4205213785171509,
0.5033928751945496,
1.195311188697815,
-0.8590578436851501,
-0.7218454480171204,
-0.11660879105329514,
-0.7966229319572449,
1.128326177597046,
0.7705512642860413,
0.5313274264335632,
0.19196449220180511,
1.6668413877487183,
0.6453942060470581,
-0.5476693511009216,
0.48847150802612305,
0.4197915494441986,
-0.1209845021367073,
-2.0987281799316406,
-1.039667010307312,
0.2971044182777405,
-0.42971187829971313,
-1.486908197402954,
1.3421357870101929,
-1.0556459426879883,
-0.960099458694458,
0.48562613129615784,
0.17420408129692078,
1.3707281351089478,
0.2509881258010864,
1.7339004278182983,
1.9215959310531616,
0.9100878834724426,
0.21154266595840454,
1.290966272354126,
-0.16450294852256775,
-0.4062843918800354,
1.852826714515686,
-0.4142657220363617,
0.5278284549713135,
1.0917948484420776,
-0.3829796016216278,
-0.9555277228355408,
-0.8559960722923279,
-1.114510178565979,
-0.6082361936569214,
1.2014275789260864,
0.1910676807165146,
-1.13002610206604,
0.10969774425029755,
1.4747459888458252,
0.1984177529811859,
-0.19289469718933105,
0.617112398147583,
0.5219923853874207,
-0.6345299482345581,
-0.057385411113500595,
-0.8875889778137207,
0.44621214270591736,
-0.1548224240541458,
-0.4019259810447693,
0.28619489073753357,
0.4543364346027374,
1.307135820388794,
-0.09273232519626617,
0.26305779814720154,
1.2204786539077759,
-1.3705918788909912,
1.5785969495773315,
-0.6253003478050232,
0.22507451474666595,
-2.3183059692382812,
1.3496559858322144,
-0.7636113166809082,
1.9257457256317139,
-2.6296656131744385,
0.3775399923324585,
-0.6056193709373474,
-0.3872080445289612,
0.35526204109191895,
-0.5004767179489136,
0.18468229472637177,
-0.2644745409488678,
-1.003753662109375,
-0.11353933811187744,
-0.78862065076828,
0.6529280543327332,
1.0845123529434204,
1.3435159921646118,
-0.9618602991104126,
-0.13254979252815247,
-1.8608373403549194,
-0.2168380320072174,
-0.7190225124359131,
0.33897265791893005,
-2.190251588821411,
-0.16368554532527924,
-2.115769863128662,
-2.216754674911499,
-1.2569841146469116,
-0.8670211434364319,
1.1148487329483032,
0.28946971893310547,
-0.8326988816261292,
1.0641802549362183,
-0.30776819586753845,
-1.6519120931625366,
1.1532436609268188,
-2.0993053913116455
] |
https://github.com/huggingface/datasets/issues/5280 | Import error | It's the right environment. But in if statement I have
"3.8.13" < 3.7
And in the error message is Python>=3.7 which is true in my case (3.8.13 is greater then 3.7), so I don't understand my python should be below the 3.7 which case the if statement is right, but the message is wrong, or above 3.7 which case if statement is wrong, error message is right.
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Quentin Lhoest ***@***.***>
Sent: Tuesday, November 22, 2022 2:41:43 PM
To: huggingface/datasets ***@***.***>
Cc: feketedavid1012 ***@***.***>; Author ***@***.***>
Subject: Re: [huggingface/datasets] Import error (Issue #5280)
Then it should work as expected if you use the same python when using datasets
Please make sure you're running your code in the right environment
—
Reply to this email directly, view it on GitHub<https://github.com/huggingface/datasets/issues/5280#issuecomment-1323697094>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJW7F54JURTAJJWWDO2QGI3WJTERPANCNFSM6AAAAAASHZJ2AU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
| https://github.com/huggingface/datasets/blob/cd3d8e637cfab62d352a3f4e5e60e96597b5f0e9/src/datasets/__init__.py#L28
Hy,
I have error at the above line. I have python version 3.8.13, the message says I need python>=3.7, which is True, but I think the if statement not working properly (or the message wrong) | 401 | 147 | Import error
https://github.com/huggingface/datasets/blob/cd3d8e637cfab62d352a3f4e5e60e96597b5f0e9/src/datasets/__init__.py#L28
Hy,
I have error at the above line. I have python version 3.8.13, the message says I need python>=3.7, which is True, but I think the if statement not working properly (or the message wrong)
It's the right environment. But in if statement I have
"3.8.13" < 3.7
And in the error message is Python>=3.7 which is true in my case (3.8.13 is greater then 3.7), so I don't understand my python should be below the 3.7 which case the if statement is right, but the message is wrong, or above 3.7 which case if statement is wrong, error message is right.
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Quentin Lhoest ***@***.***>
Sent: Tuesday, November 22, 2022 2:41:43 PM
To: huggingface/datasets ***@***.***>
Cc: feketedavid1012 ***@***.***>; Author ***@***.***>
Subject: Re: [huggingface/datasets] Import error (Issue #5280)
Then it should work as expected if you use the same python when using datasets
Please make sure you're running your code in the right environment
—
Reply to this email directly, view it on GitHub<https://github.com/huggingface/datasets/issues/5280#issuecomment-1323697094>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJW7F54JURTAJJWWDO2QGI3WJTERPANCNFSM6AAAAAASHZJ2AU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
| [
-1.2348964214324951,
-0.9628428816795349,
-0.5841107368469238,
1.4090332984924316,
-0.2059527337551117,
-1.2893599271774292,
0.14153769612312317,
-1.034083604812622,
1.5843340158462524,
-0.6413482427597046,
0.1616053581237793,
-1.6310269832611084,
-0.13474372029304504,
-0.5262941718101501,
-0.7615615129470825,
-0.7446145415306091,
-0.39154914021492004,
-0.9203220009803772,
0.9740692377090454,
2.486701488494873,
1.2329200506210327,
-1.3905448913574219,
2.7366247177124023,
0.5857838988304138,
-0.23481181263923645,
-1.0323941707611084,
0.5732269287109375,
0.026650842279195786,
-1.1723980903625488,
-0.6032537221908569,
-0.8943054676055908,
-0.07024846971035004,
-0.5065489411354065,
-0.40203019976615906,
0.07963262498378754,
0.41927799582481384,
-0.12518824636936188,
-0.3069566488265991,
-0.568379819393158,
-0.699689507484436,
0.5230761170387268,
-0.328351229429245,
0.9086342453956604,
-0.36893898248672485,
1.7544629573822021,
-0.6453768014907837,
0.47365066409111023,
0.7483808994293213,
1.3696995973587036,
0.2070688009262085,
-0.03857631981372833,
0.3251727819442749,
0.4338301420211792,
-0.02750694379210472,
0.442486435174942,
1.1130095720291138,
0.6406856775283813,
0.4826297461986542,
0.6604037284851074,
-2.1939399242401123,
1.4357208013534546,
-0.9874942898750305,
0.32025039196014404,
1.4859609603881836,
-0.9649288654327393,
0.29214364290237427,
-1.8636902570724487,
0.0697488933801651,
0.5900408625602722,
-2.4116625785827637,
0.24465930461883545,
-1.3626935482025146,
-0.6535782814025879,
0.9608052372932434,
0.24785077571868896,
-1.2810202836990356,
0.182255357503891,
-0.5923861861228943,
1.0264711380004883,
0.37735775113105774,
1.02729332447052,
-1.7321375608444214,
-0.23574957251548767,
-0.0565645657479763,
0.09548071771860123,
-1.2481160163879395,
-1.6830923557281494,
0.688395082950592,
0.5206276178359985,
0.5814176201820374,
-0.13341358304023743,
0.9641395807266235,
-1.023248314857483,
0.9076113104820251,
-1.049240231513977,
-1.6436811685562134,
-1.4733800888061523,
-2.358093500137329,
-2.180525064468384,
0.7929680943489075,
-0.524165153503418,
-0.4575340747833252,
1.9841902256011963,
-1.0207645893096924,
-1.6585304737091064,
1.0902920961380005,
0.23808109760284424,
0.17727944254875183,
2.3672780990600586,
0.2362637221813202,
-0.6941108107566833,
0.3310414254665375,
-0.8494968414306641,
0.8028042316436768,
-0.29627740383148193,
1.3512805700302124,
0.4635602533817291,
-0.9699103832244873,
1.5803097486495972,
-0.4201677739620209,
0.5462522506713867,
-0.5702442526817322,
-0.6239894032478333,
-0.7891542315483093,
0.34355849027633667,
1.9981907606124878,
-0.2936035096645355,
1.540985345840454,
-0.3966580927371979,
-1.649052381515503,
-1.5099663734436035,
0.8478706479072571,
0.5228139162063599,
-0.947812557220459,
0.04349209740757942,
-0.5401030778884888,
0.14285096526145935,
-0.12077610939741135,
1.084027886390686,
1.2994765043258667,
0.6728238463401794,
-0.45859766006469727,
-0.8871581554412842,
0.15096589922904968,
-0.19091534614562988,
-0.6758009791374207,
-1.858250617980957,
-0.37270471453666687,
0.2144172489643097,
0.7418506741523743,
-1.203832745552063,
1.6597846746444702,
0.9780547618865967,
1.9367196559906006,
0.9230459928512573,
-0.48384803533554077,
1.3340084552764893,
0.04402327910065651,
1.7938566207885742,
-0.7416399717330933,
0.6837811470031738,
-0.3426165282726288,
-1.0082247257232666,
0.9057880640029907,
-0.35818034410476685,
-1.9883332252502441,
-0.7735308408737183,
-0.8062452673912048,
-0.27338480949401855,
-0.7642764449119568,
0.9297727942466736,
-0.24361401796340942,
-1.3365668058395386,
0.186079740524292,
-0.6896375417709351,
0.25682055950164795,
-1.2587876319885254,
0.29971081018447876,
0.8077934384346008,
-0.5664702653884888,
-0.04475341737270355,
-0.18307778239250183,
-1.3436886072158813,
-0.5595842599868774,
0.2988452613353729,
1.933445692062378,
-0.6049764752388,
1.0269767045974731,
0.9756506085395813,
-0.6642773747444153,
0.1285485327243805,
0.3302071690559387,
-0.2987173795700073,
0.8485644459724426,
-1.1332498788833618,
-0.37013229727745056,
1.0571222305297852,
-0.3181650638580322,
-0.49254631996154785,
1.4886524677276611,
0.8730128407478333,
-1.060441255569458,
-0.2860338091850281,
-0.24501457810401917,
-0.7963802814483643,
0.044296056032180786,
-1.5212875604629517,
-0.17953231930732727,
0.29556381702423096,
-1.535876750946045,
-0.48987409472465515,
-0.21542289853096008,
1.479722499847412,
-0.1646384298801422,
1.4025026559829712,
-0.24164721369743347,
-0.2224712371826172,
-0.3475973904132843,
-0.3466307818889618,
0.22039714455604553,
-0.31608128547668457,
-0.5185434222221375,
0.22655290365219116,
-0.8975957632064819,
0.32149726152420044,
1.4810620546340942,
0.3571893274784088,
-0.03301578015089035,
0.43811190128326416,
1.0691379308700562,
0.32273992896080017,
-0.09192583709955215,
-0.915797233581543,
-1.5540850162506104,
2.0417730808258057,
-1.527871012687683,
1.9290651082992554,
0.8575044870376587,
-0.08818025887012482,
-1.6760947704315186,
-1.8795702457427979,
1.1998780965805054,
1.1572327613830566,
2.3878259658813477,
0.5110424160957336,
0.43361711502075195,
-0.8166689276695251,
-0.655439019203186,
0.29896119236946106,
-1.064037799835205,
-0.6468281149864197,
0.047285664826631546,
2.391226053237915,
1.7737880945205688,
-0.613019585609436,
-0.19297164678573608,
-0.9496628046035767,
1.3749921321868896,
-0.14983564615249634,
0.29961490631103516,
2.026949167251587,
-0.23344111442565918,
-1.0613524913787842,
1.2466926574707031,
-2.3897173404693604,
0.2719423472881317,
2.0884456634521484,
0.32924842834472656,
0.1687757968902588,
-1.4355096817016602,
-0.5263603329658508,
-0.4039718508720398,
-0.35937410593032837,
-1.259497880935669,
0.595961332321167,
-0.20858970284461975,
-0.8808150887489319,
-1.5189001560211182,
0.11616154760122299,
-1.1722115278244019,
-1.7518540620803833,
0.4321356415748596,
1.892741322517395,
2.064110279083252,
-0.7427375912666321,
1.4455757141113281,
-0.3012390434741974,
0.0805174708366394,
1.1965442895889282,
1.3549937009811401,
3.082805871963501,
1.9211137294769287,
-1.166990041732788,
0.6673449873924255,
-0.21133628487586975,
-0.4591110944747925,
1.0842864513397217,
-1.0735903978347778,
1.1921100616455078,
-0.15378829836845398,
-1.16874098777771,
-1.2114778757095337,
1.003463625907898,
0.4743155241012573,
-0.002274405211210251,
-0.4819372892379761,
1.1705949306488037,
0.09608808159828186,
1.405355453491211,
0.5779471397399902,
-0.4517001807689667,
0.6142151951789856,
-0.48157599568367004,
-0.5033538341522217,
1.6441901922225952,
0.23480883240699768,
-1.5889918804168701,
-2.3052687644958496,
-0.31563109159469604,
-0.8604894280433655,
0.0660364106297493,
-0.5700678825378418,
-1.0846601724624634,
1.581264853477478,
0.46204671263694763,
-1.257063865661621,
-0.33062776923179626,
-0.3268074691295624,
-0.6089761853218079,
2.5503666400909424,
-1.3206373453140259,
-0.14746803045272827,
-0.9444252252578735,
-0.5664477348327637,
1.637977957725525,
-1.344825029373169,
-0.2154540717601776,
-1.1111994981765747,
-0.6608919501304626,
-1.1575491428375244,
-0.42379462718963623,
-0.12422369420528412,
-0.928701639175415,
0.7435762882232666,
0.11442852020263672,
-1.059120774269104,
-0.3078947365283966,
-0.837881326675415,
0.931923508644104,
-0.08832941204309464,
0.10889499634504318,
1.760543942451477,
0.26750367879867554,
-0.368548721075058,
0.7721721529960632,
1.2118115425109863,
0.5779116153717041,
-0.6845512390136719,
-0.019862301647663116,
-0.6117887496948242,
0.3133186101913452,
-1.3358521461486816,
0.2834692597389221,
-2.9436075687408447,
0.6613687872886658,
-0.17919179797172546,
-0.11863911151885986,
-0.05837469920516014,
-1.4040158987045288,
1.2701706886291504,
2.520559549331665,
-1.184740424156189,
0.5023375749588013,
0.44433292746543884,
1.134088158607483,
-1.6310330629348755,
0.4373886287212372,
-0.4304038882255554,
2.192411422729492,
0.22441864013671875,
1.2154302597045898,
-0.5378831624984741,
-2.241159200668335,
0.5417541861534119,
-1.1150025129318237,
-1.1159042119979858,
0.5862112641334534,
-0.8806308507919312,
0.1443767547607422,
-1.5545175075531006,
-0.20721828937530518,
-0.9489722847938538,
-1.3112704753875732,
0.6774771809577942,
0.09262546896934509,
0.3411547839641571,
-0.603626012802124,
0.3516651391983032,
-2.1662726402282715,
-1.321347951889038,
-0.24986132979393005,
-0.9550734758377075,
0.608174741268158,
-0.42796146869659424,
0.6524252891540527,
-0.024882536381483078,
0.13246679306030273,
0.3579828441143036,
1.4872004985809326,
3.392261505126953,
0.15315783023834229,
0.26593413949012756,
-0.1223507970571518,
-0.8925001621246338,
1.4251430034637451,
1.0529853105545044,
0.019829440861940384,
-0.5627847909927368,
-0.9731037020683289,
1.3636807203292847,
2.0476253032684326,
0.9102540612220764,
0.11551817506551743,
-0.8420858383178711,
-0.6188804507255554,
-0.025489630177617073,
0.25201377272605896,
0.5228850841522217,
1.022784948348999,
0.021791797131299973,
0.044793177396059036,
1.4067482948303223,
1.2404249906539917,
-0.3838651180267334,
0.4074738621711731,
-0.9713751077651978,
-0.44004836678504944,
0.33849212527275085,
0.3083096146583557,
-0.05142570659518242,
0.4715403616428375,
-1.0106664896011353,
-0.20244181156158447,
-0.2486741840839386,
-0.8853254318237305,
-0.7465894818305969,
-0.4473385810852051,
-0.40982726216316223,
1.6148377656936646,
0.12714353203773499,
-0.4885021448135376,
0.09586752951145172,
-0.6345771551132202,
-0.08947152644395828,
-1.1689237356185913,
0.26057150959968567,
-0.008983699604868889,
-0.023147275671362877,
-0.20658817887306213,
1.711242914199829,
-0.8381019234657288,
-2.1053433418273926,
0.20074468851089478,
0.30230143666267395,
-0.4821999967098236,
0.14522171020507812,
1.6676955223083496,
0.5228379368782043,
1.5170444250106812,
1.2838740348815918,
1.0545099973678589,
-0.6004656553268433,
-1.2863996028900146,
0.702987551689148,
0.8814775943756104,
-1.4079238176345825,
0.7703593373298645,
-0.09016560763120651,
-0.45825260877609253,
0.7138065099716187,
1.36215341091156,
0.42900750041007996,
-2.007216215133667,
0.937910258769989,
-0.9586480259895325,
0.8897124528884888,
0.7017216682434082,
0.7480855584144592,
0.28370845317840576,
0.9053171277046204,
-1.2594329118728638,
-1.0866670608520508,
-0.8398619294166565,
-0.6654593348503113,
2.0813543796539307,
-0.3147801160812378,
0.5257852077484131,
-0.21095257997512817,
-1.168473243713379,
-0.17772269248962402,
0.7881550788879395,
0.4454573690891266,
-0.356621116399765,
0.8523498773574829,
-0.6099786162376404,
-1.058715581893921,
-1.2394723892211914,
-0.3861311674118042,
-0.885915994644165,
-1.0059818029403687,
0.9429733157157898,
0.8164486885070801,
0.5002406239509583,
1.9247593879699707,
0.5264875292778015,
0.26680806279182434,
-2.601922035217285,
0.9072257280349731,
0.3343803882598877,
-0.09366081655025482,
1.0492713451385498,
0.2981550097465515,
1.2142208814620972,
0.1446642279624939,
0.5179027318954468,
-2.375823497772217,
2.1988487243652344,
-0.16264459490776062,
0.7490835785865784,
0.042216431349515915,
-0.22823423147201538,
1.1990299224853516,
0.5755621790885925,
0.5239447355270386,
-1.0841764211654663,
0.709129810333252,
-0.5519838333129883,
1.1555569171905518,
0.7889429926872253,
-0.7116250991821289,
0.050005704164505005,
1.3098410367965698,
0.48713240027427673,
-0.513788640499115,
-1.0288938283920288,
-0.8801351189613342,
0.8952951431274414,
1.6702600717544556,
-0.14320650696754456,
-0.05151048302650452,
0.6443291306495667,
0.7553608417510986,
-1.1949717998504639,
0.09366437792778015,
-0.6849822998046875,
-0.7542757391929626,
1.5940035581588745,
2.172306537628174,
-0.013925818726420403,
-0.16530531644821167,
-0.6603214740753174,
-1.3220069408416748,
0.7073783874511719,
-0.04170732945203781,
0.1003754585981369,
0.5998870730400085,
-0.5773391723632812,
1.0668398141860962,
0.6618874669075012,
1.0250358581542969,
-0.013643324375152588,
0.4165339767932892,
0.42209574580192566,
-0.33447903394699097,
-1.0705159902572632,
-0.43667906522750854,
-1.2201859951019287,
-2.545576572418213,
0.5100823044776917,
-0.29394593834877014,
-1.4564467668533325,
0.033236607909202576,
-1.0697613954544067,
0.8535647988319397,
-0.6993007063865662,
-1.1187987327575684,
-1.5948537588119507,
0.18192514777183533,
-0.11980927735567093,
0.9696140289306641,
-1.6021053791046143,
-0.19073298573493958,
1.2095414400100708,
0.72042316198349,
-0.5330110192298889,
0.9982262253761292,
0.2802374064922333,
1.0480068922042847,
0.7069016098976135,
-0.3581913113594055,
0.5523874759674072,
0.10480072349309921,
-1.414690375328064,
0.5324737429618835,
1.2794609069824219,
0.23141968250274658,
1.4232072830200195,
-0.44954735040664673,
0.17568573355674744,
0.537136435508728,
-0.6565502285957336,
-0.5324785709381104,
-0.3385944962501526,
0.7437254786491394,
0.09083056449890137,
-1.003416895866394,
0.005378672853112221,
-0.23555698990821838,
-0.21399229764938354,
0.19745856523513794,
-1.4410887956619263,
-0.34569409489631653,
-0.4789960980415344,
-0.4636209011077881,
-1.2858128547668457,
-0.10014417767524719,
1.3871346712112427,
-0.7006540298461914,
-0.2295328676700592,
0.5251895785331726,
0.5879089832305908,
0.522104799747467,
0.6584348082542419,
-0.7138550281524658,
-0.3178413212299347,
-0.3201819062232971,
-0.3269091546535492,
0.2986705005168915,
1.1747115850448608,
-0.11201662570238113,
-0.9864726662635803,
0.6006679534912109,
-0.38471922278404236,
0.08452363312244415,
1.9694033861160278,
0.0010634083300828934,
-0.6994233131408691,
0.39885321259498596,
-0.7244359850883484,
1.8704248666763306,
1.5395795106887817,
1.2472907304763794,
-0.11877389252185822,
-0.9394083023071289,
0.5319279432296753,
-0.21516305208206177,
-0.3634241223335266,
0.8689202070236206,
0.48876214027404785,
-0.24517887830734253,
-1.4274648427963257,
0.5867435932159424,
1.269231915473938,
-0.9781833291053772,
-0.7669374346733093,
0.15422949194908142,
-0.8162745833396912,
1.2227540016174316,
0.5249578356742859,
0.45662161707878113,
0.2043270468711853,
1.6574206352233887,
0.6750237941741943,
-0.48427829146385193,
0.48541975021362305,
0.5313023924827576,
-0.27926966547966003,
-2.099189281463623,
-1.215646743774414,
0.3061159551143646,
-0.5317262411117554,
-1.5226444005966187,
1.3309491872787476,
-1.0508631467819214,
-1.0093642473220825,
0.4534623920917511,
0.1564309298992157,
1.3286648988723755,
0.37603554129600525,
1.7492358684539795,
2.037879467010498,
0.8780462741851807,
0.4174816906452179,
1.3187611103057861,
-0.05471499636769295,
-0.58968585729599,
1.8364250659942627,
-0.3888762891292572,
0.5324406027793884,
1.2303823232650757,
-0.4063137173652649,
-1.123448371887207,
-0.827595055103302,
-1.0519887208938599,
-0.6313877105712891,
1.1959409713745117,
0.09284113347530365,
-1.1119776964187622,
0.21566376090049744,
1.5079306364059448,
0.2101711928844452,
-0.21558713912963867,
0.5128946304321289,
0.39309367537498474,
-0.6810943484306335,
-0.12435993552207947,
-0.9605728983879089,
0.46513038873672485,
-0.26418495178222656,
-0.3741975426673889,
0.2691943049430847,
0.5935763716697693,
1.2832111120224,
-0.12423400580883026,
0.16031450033187866,
1.1302525997161865,
-1.4786484241485596,
1.5525188446044922,
-0.6140782833099365,
0.2695435881614685,
-2.3152191638946533,
1.3670918941497803,
-0.6410844326019287,
1.9995945692062378,
-2.648322105407715,
0.31340643763542175,
-0.6070294380187988,
-0.4427306354045868,
0.3109756410121918,
-0.2825392484664917,
0.17333772778511047,
-0.18332627415657043,
-1.1430346965789795,
-0.028802935034036636,
-0.7580402493476868,
0.6552685499191284,
1.1472446918487549,
1.4419071674346924,
-1.069103717803955,
-0.14503642916679382,
-1.7647556066513062,
-0.16758936643600464,
-0.8811725974082947,
0.2552754580974579,
-2.02268385887146,
-0.016898177564144135,
-1.9748740196228027,
-2.1754417419433594,
-1.3464428186416626,
-0.8621882796287537,
0.9221569299697876,
0.218889057636261,
-0.8173096776008606,
1.1390879154205322,
-0.3208637237548828,
-1.6487048864364624,
1.0496283769607544,
-2.1634819507598877
] |
https://github.com/huggingface/datasets/issues/5278 | load_dataset does not read jsonl metadata file properly | Can you try to remove "drop_labels=false" ? It may force the loader to infer the labels instead of reading the metadata | ### Describe the bug
Hi, I'm following [this page](https://huggingface.co/docs/datasets/image_dataset) to create a dataset of images and captions via an image folder and a metadata.json file, but I can't seem to get the dataloader to recognize the "text" column. It just spits out "image" and "label" as features.
Below is code to reproduce my exact example/problem.
### Steps to reproduce the bug
```ruby
dataset_link="19Unu89Ih_kP6zsE7f9Mkw8dy3NwHopRF"
id = dataset_link
output = 'Godardv01.zip'
gdown.download(id=id, output=output, quiet=False)
ds = load_dataset("imagefolder", data_dir="/kaggle/working/Volumes/TOSHIBA/Godard_imgs/Volumes/TOSHIBA/Godard_imgs/Full/train", split="train", drop_labels=False)
print(ds)
```
### Expected behavior
I would expect that it returned "image" and "text" columns from the code above.
### Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.15.65+-x86_64-with-debian-bullseye-sid
- Python version: 3.7.12
- PyArrow version: 5.0.0
- Pandas version: 1.3.5 | 402 | 21 | load_dataset does not read jsonl metadata file properly
### Describe the bug
Hi, I'm following [this page](https://huggingface.co/docs/datasets/image_dataset) to create a dataset of images and captions via an image folder and a metadata.json file, but I can't seem to get the dataloader to recognize the "text" column. It just spits out "image" and "label" as features.
Below is code to reproduce my exact example/problem.
### Steps to reproduce the bug
```ruby
dataset_link="19Unu89Ih_kP6zsE7f9Mkw8dy3NwHopRF"
id = dataset_link
output = 'Godardv01.zip'
gdown.download(id=id, output=output, quiet=False)
ds = load_dataset("imagefolder", data_dir="/kaggle/working/Volumes/TOSHIBA/Godard_imgs/Volumes/TOSHIBA/Godard_imgs/Full/train", split="train", drop_labels=False)
print(ds)
```
### Expected behavior
I would expect that it returned "image" and "text" columns from the code above.
### Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.15.65+-x86_64-with-debian-bullseye-sid
- Python version: 3.7.12
- PyArrow version: 5.0.0
- Pandas version: 1.3.5
Can you try to remove "drop_labels=false" ? It may force the loader to infer the labels instead of reading the metadata | [
-1.1722538471221924,
-0.9874001741409302,
-0.759548544883728,
1.489896535873413,
-0.1571158766746521,
-1.2294549942016602,
0.1569814831018448,
-1.0602964162826538,
1.5801401138305664,
-0.8204648494720459,
0.28715646266937256,
-1.6882760524749756,
-0.015584716573357582,
-0.5398836731910706,
-0.7026465535163879,
-0.883536159992218,
-0.3731705844402313,
-0.6888322830200195,
1.071744441986084,
2.518195390701294,
1.264556884765625,
-1.3335630893707275,
2.736597776412964,
0.7432311773300171,
-0.1970779150724411,
-0.9633749723434448,
0.5526660680770874,
0.04181838780641556,
-1.2469923496246338,
-0.4200582206249237,
-0.8831859827041626,
-0.04752051830291748,
-0.546777069568634,
-0.4493429660797119,
0.019923822954297066,
0.44440168142318726,
-0.3505118191242218,
-0.423228919506073,
-0.6076966524124146,
-0.7721567153930664,
0.49623891711235046,
-0.44037777185440063,
0.9404237270355225,
-0.39698630571365356,
1.8310766220092773,
-0.5829459428787231,
0.4505568742752075,
0.7371060252189636,
1.2714866399765015,
0.22679011523723602,
0.10155895352363586,
0.305813729763031,
0.38842007517814636,
-0.08770906180143356,
0.5024071335792542,
1.193953275680542,
0.6188018918037415,
0.5108579993247986,
0.6733547449111938,
-2.185786485671997,
1.2881882190704346,
-0.9543812870979309,
0.2819749116897583,
1.4123799800872803,
-0.9206044673919678,
0.4270915389060974,
-1.7638839483261108,
-0.084805428981781,
0.5882531404495239,
-2.248960018157959,
0.29136887192726135,
-1.2813974618911743,
-0.5686339735984802,
1.000549554824829,
0.33050796389579773,
-1.1872578859329224,
0.11464449763298035,
-0.48791584372520447,
0.9920246005058289,
0.4680497348308563,
1.082567572593689,
-1.652326226234436,
-0.0999985933303833,
-0.2903435230255127,
0.08230844140052795,
-1.3602001667022705,
-1.5469261407852173,
0.46418648958206177,
0.6450235247612,
0.622161328792572,
-0.08634106069803238,
1.0174150466918945,
-1.000986099243164,
0.7589622139930725,
-0.8924973607063293,
-1.7013989686965942,
-1.455928921699524,
-2.360302209854126,
-2.275744915008545,
0.765602171421051,
-0.4453801214694977,
-0.5625734329223633,
2.0584797859191895,
-1.0195298194885254,
-1.7586263418197632,
1.1165533065795898,
0.2836887240409851,
-0.012298592366278172,
2.4456331729888916,
0.21054936945438385,
-0.7354047894477844,
0.4859403669834137,
-0.7419147491455078,
0.7280775308609009,
-0.4780219495296478,
1.297247290611267,
0.44866958260536194,
-1.0873708724975586,
1.5623763799667358,
-0.40355047583580017,
0.6534011363983154,
-0.6958020329475403,
-0.4431259334087372,
-0.841472864151001,
0.25653699040412903,
1.8186947107315063,
-0.2919815480709076,
1.5321717262268066,
-0.20718328654766083,
-1.5402356386184692,
-1.6858694553375244,
0.8602365851402283,
0.46594053506851196,
-0.7212660908699036,
0.17614564299583435,
-0.381817489862442,
0.14700289070606232,
-0.029694542288780212,
1.0701173543930054,
1.2945492267608643,
0.6726265549659729,
-0.3059673607349396,
-0.8551950454711914,
0.2522684633731842,
-0.11741854250431061,
-0.6959772109985352,
-1.7567781209945679,
-0.3167131841182709,
0.18107062578201294,
0.531272828578949,
-1.263617992401123,
1.7386137247085571,
0.9061506986618042,
1.9417041540145874,
1.0204061269760132,
-0.36507242918014526,
1.4987815618515015,
0.08148076385259628,
1.79478120803833,
-0.4787311553955078,
0.6752346754074097,
-0.2947241961956024,
-1.1507248878479004,
0.752947211265564,
-0.32883402705192566,
-2.0275344848632812,
-0.7837841510772705,
-0.8320882320404053,
-0.13093380630016327,
-0.7371706366539001,
0.8532260060310364,
-0.3315747082233429,
-1.384442925453186,
0.25128868222236633,
-0.7059598565101624,
0.05476704239845276,
-1.2977969646453857,
0.3296419084072113,
0.6583122611045837,
-0.6238781809806824,
-0.009488030336797237,
-0.23795939981937408,
-1.216918706893921,
-0.39146700501441956,
0.34753191471099854,
1.9083690643310547,
-0.7030124664306641,
0.9092528820037842,
1.0258796215057373,
-0.8125128149986267,
0.0878567323088646,
0.36883142590522766,
-0.36214521527290344,
0.8748210668563843,
-1.0479514598846436,
-0.44302770495414734,
1.1978081464767456,
-0.25153592228889465,
-0.6864452958106995,
1.4840303659439087,
0.7376541495323181,
-1.0015183687210083,
-0.23697678744792938,
-0.14779052138328552,
-0.8192074298858643,
0.037027209997177124,
-1.5613746643066406,
-0.07567290961742401,
0.33530861139297485,
-1.4803569316864014,
-0.4835447072982788,
-0.22807875275611877,
1.333919882774353,
-0.20191121101379395,
1.4274436235427856,
-0.320133775472641,
-0.17151769995689392,
-0.34540146589279175,
-0.45504239201545715,
0.11981920897960663,
-0.22373266518115997,
-0.6423014402389526,
0.25402435660362244,
-0.7780331373214722,
0.2986716032028198,
1.420105218887329,
0.36956626176834106,
0.031905397772789,
0.534385621547699,
1.0552021265029907,
0.4057977497577667,
-0.09994911402463913,
-0.9083236455917358,
-1.5187405347824097,
1.9678863286972046,
-1.3964793682098389,
2.005701780319214,
0.819997251033783,
-0.05160021036863327,
-1.7917449474334717,
-1.8985408544540405,
1.361297369003296,
1.1639714241027832,
2.404921770095825,
0.5580163598060608,
0.44961661100387573,
-0.8511426448822021,
-0.7978397607803345,
0.2647063434123993,
-1.0331259965896606,
-0.738048791885376,
0.1728964000940323,
2.368692398071289,
1.768796443939209,
-0.46334365010261536,
-0.1762302964925766,
-1.0600380897521973,
1.3512150049209595,
-0.17786811292171478,
0.19352908432483673,
2.0724589824676514,
-0.21108216047286987,
-1.0197513103485107,
1.3253909349441528,
-2.2833752632141113,
0.1387931853532791,
1.9354890584945679,
0.29718342423439026,
0.040940992534160614,
-1.3656915426254272,
-0.7174450159072876,
-0.3231951892375946,
-0.4092090129852295,
-1.2191855907440186,
0.4768439829349518,
-0.23419171571731567,
-0.7708694934844971,
-1.4209834337234497,
0.11641457676887512,
-1.1456407308578491,
-1.6414607763290405,
0.24036845564842224,
1.8861651420593262,
2.0571484565734863,
-0.8195078372955322,
1.5101155042648315,
-0.17909692227840424,
0.08266273885965347,
1.1942495107650757,
1.267655611038208,
3.1268832683563232,
1.8825302124023438,
-1.2869256734848022,
0.6791948676109314,
-0.13691647350788116,
-0.44792839884757996,
1.179349422454834,
-1.2022545337677002,
1.2407892942428589,
-0.18981067836284637,
-1.148948311805725,
-1.2778416872024536,
0.9146297574043274,
0.48885995149612427,
0.007280025631189346,
-0.49688801169395447,
1.191752314567566,
0.13846711814403534,
1.384981393814087,
0.5839203000068665,
-0.3511302173137665,
0.602068305015564,
-0.3554716408252716,
-0.5189058780670166,
1.6082209348678589,
0.15367932617664337,
-1.470990777015686,
-2.3126204013824463,
-0.2506922781467438,
-0.8666222095489502,
0.016402633860707283,
-0.6225956678390503,
-1.0188450813293457,
1.703637719154358,
0.3533720374107361,
-1.163033366203308,
-0.31292158365249634,
-0.3491470217704773,
-0.6504085659980774,
2.7085325717926025,
-1.410321593284607,
-0.15627838671207428,
-0.9498260617256165,
-0.6188605427742004,
1.5705920457839966,
-1.1953998804092407,
-0.24277517199516296,
-1.0745784044265747,
-0.6160070896148682,
-1.2802170515060425,
-0.5403483510017395,
0.02146800048649311,
-0.9464336633682251,
0.8349322080612183,
0.16860844194889069,
-1.122076392173767,
-0.27817636728286743,
-0.9314333200454712,
0.9279995560646057,
-0.11410775035619736,
0.21605217456817627,
1.831465721130371,
0.45161953568458557,
-0.3282880485057831,
0.7353963255882263,
1.1460423469543457,
0.6148043274879456,
-0.6854024529457092,
0.19308900833129883,
-0.7475939393043518,
0.26847440004348755,
-1.2538779973983765,
0.29673975706100464,
-2.8620712757110596,
0.5986850261688232,
-0.058416418731212616,
-0.08106169104576111,
-0.07283714413642883,
-1.1681264638900757,
1.0974512100219727,
2.573415517807007,
-1.1667776107788086,
0.515068769454956,
0.3113897442817688,
1.1825357675552368,
-1.644659399986267,
0.2698986828327179,
-0.42232412099838257,
2.0534310340881348,
0.13354745507240295,
1.1912072896957397,
-0.5125950574874878,
-2.290639638900757,
0.6297368407249451,
-1.2518515586853027,
-1.1494996547698975,
0.8012492060661316,
-0.8631178736686707,
0.15030254423618317,
-1.3779047727584839,
-0.2645302414894104,
-0.8342736959457397,
-1.2358378171920776,
0.6819007396697998,
0.10977249592542648,
0.458281010389328,
-0.49179807305336,
0.3547082841396332,
-2.2354490756988525,
-1.3689792156219482,
-0.2736741900444031,
-0.9376888871192932,
0.4994122087955475,
-0.35888952016830444,
0.7625367641448975,
-0.17211860418319702,
0.062042951583862305,
0.3372577428817749,
1.399453043937683,
3.335829496383667,
0.20895837247371674,
0.3198626637458801,
-0.08246565610170364,
-0.997237503528595,
1.4702805280685425,
0.862641453742981,
-0.14010919630527496,
-0.5827886462211609,
-1.1232715845108032,
1.2889150381088257,
1.9202240705490112,
1.14008367061615,
0.08937571942806244,
-0.8754393458366394,
-0.7563920617103577,
-0.03866991400718689,
0.17569094896316528,
0.43339499831199646,
0.9088377356529236,
0.03718607872724533,
0.11596152931451797,
1.4693511724472046,
1.243057370185852,
-0.3716990053653717,
0.31504955887794495,
-0.8427299857139587,
-0.46620187163352966,
0.4845300018787384,
0.26432767510414124,
0.020372895523905754,
0.3716955780982971,
-1.050681710243225,
-0.2486226111650467,
-0.36083975434303284,
-0.9040541052818298,
-0.6963974833488464,
-0.46845367550849915,
-0.39427825808525085,
1.6735183000564575,
0.12630461156368256,
-0.47434136271476746,
-0.06233257055282593,
-0.7987431287765503,
-0.09137360751628876,
-1.1465051174163818,
0.21760839223861694,
-0.11298016458749771,
-0.09237545728683472,
-0.14207468926906586,
1.795289397239685,
-0.9555552005767822,
-2.1509382724761963,
0.2089599370956421,
0.31255266070365906,
-0.27678972482681274,
0.17639656364917755,
1.697513461112976,
0.5066388249397278,
1.399977207183838,
1.2748050689697266,
0.9683598279953003,
-0.6930565237998962,
-1.2401009798049927,
0.6166180372238159,
1.0024341344833374,
-1.3287910223007202,
0.8559098243713379,
-0.05400598794221878,
-0.5123053193092346,
0.534903347492218,
1.2703986167907715,
0.43738216161727905,
-1.9759241342544556,
0.8139070272445679,
-0.9597943425178528,
0.7838158011436462,
0.7561397552490234,
0.7406389713287354,
0.19536136090755463,
0.7913994193077087,
-1.2525670528411865,
-1.1134693622589111,
-0.7211154103279114,
-0.6201881766319275,
1.9484226703643799,
-0.2620164453983307,
0.5670681595802307,
-0.22947311401367188,
-1.2867790460586548,
-0.0021616541780531406,
0.6926016807556152,
0.378674179315567,
-0.3847319185733795,
0.8548306226730347,
-0.6455038785934448,
-1.0769764184951782,
-1.425479531288147,
-0.39326047897338867,
-1.0418449640274048,
-0.9136438369750977,
1.0395033359527588,
0.793860673904419,
0.31506088376045227,
1.8479467630386353,
0.6995461583137512,
0.30433833599090576,
-2.64630126953125,
0.8894854187965393,
0.2906852662563324,
-0.010373370721936226,
0.8919017314910889,
0.2899456322193146,
1.0685433149337769,
0.004213741049170494,
0.517749547958374,
-2.4507126808166504,
2.311507225036621,
-0.20501893758773804,
0.6753132343292236,
0.03431853652000427,
-0.15674570202827454,
1.138153314590454,
0.5584505796432495,
0.5649101734161377,
-1.0979443788528442,
0.7111226916313171,
-0.5386935472488403,
1.1914862394332886,
0.9320681691169739,
-0.8541719317436218,
-0.006725093349814415,
1.3607527017593384,
0.5046967267990112,
-0.470122367143631,
-0.9282354712486267,
-0.9175616502761841,
0.9191359877586365,
1.8117189407348633,
-0.014748670160770416,
0.07264890521764755,
0.8838557600975037,
0.6184906363487244,
-1.3613643646240234,
0.059584684669971466,
-0.7018313407897949,
-0.6751349568367004,
1.6578282117843628,
2.055516004562378,
-0.12789645791053772,
-0.2971285879611969,
-0.6940022706985474,
-1.285936713218689,
0.8204628229141235,
-0.07702097296714783,
0.19303296506404877,
0.7021691799163818,
-0.7171943187713623,
1.0559481382369995,
0.8547793030738831,
0.9903231859207153,
0.16289803385734558,
0.23256658017635345,
0.4199891686439514,
-0.3871985673904419,
-1.21052885055542,
-0.2421579360961914,
-1.0287925004959106,
-2.5318491458892822,
0.47229522466659546,
-0.20912007987499237,
-1.3990002870559692,
-0.03571559488773346,
-1.0371700525283813,
0.9941646456718445,
-0.5943061709403992,
-1.043272852897644,
-1.5383939743041992,
0.14937862753868103,
-0.2211928367614746,
0.8788822889328003,
-1.5410511493682861,
-0.2370043247938156,
1.2288445234298706,
0.9374375939369202,
-0.6454386711120605,
0.9699254631996155,
0.134937584400177,
1.0004812479019165,
0.8049026131629944,
-0.3475615084171295,
0.5235422253608704,
0.06415893882513046,
-1.3091672658920288,
0.4259680211544037,
1.1599361896514893,
0.2229885458946228,
1.5017451047897339,
-0.5582972764968872,
0.06607311218976974,
0.35840246081352234,
-0.4697248041629791,
-0.5231761932373047,
-0.5555219650268555,
0.6413301229476929,
0.0029884809628129005,
-0.9817688465118408,
-0.005074216518551111,
-0.0890413224697113,
-0.16660350561141968,
0.12737607955932617,
-1.496778964996338,
-0.08699049055576324,
-0.34058907628059387,
-0.6476877927780151,
-1.2449331283569336,
0.021925102919340134,
1.3361326456069946,
-0.8144229054450989,
-0.18059737980365753,
0.44732943177223206,
0.30880963802337646,
0.5827691555023193,
0.6009901762008667,
-0.7445108294487,
-0.21105371415615082,
-0.2644980847835541,
-0.3304344117641449,
0.32547175884246826,
1.3414926528930664,
-0.1265547275543213,
-0.9600541591644287,
0.660940408706665,
-0.34837666153907776,
0.11745385825634003,
2.018874406814575,
0.09337154775857925,
-0.7413420081138611,
0.2980964779853821,
-0.7514904141426086,
1.9166063070297241,
1.6851494312286377,
1.415862798690796,
-0.13594000041484833,
-0.9124971628189087,
0.5905277729034424,
-0.31143149733543396,
-0.3724207282066345,
0.9312043190002441,
0.4672050476074219,
-0.25563204288482666,
-1.4535341262817383,
0.6764771938323975,
1.3050538301467896,
-0.8684695959091187,
-0.8158913254737854,
0.14831607043743134,
-0.8682217597961426,
1.1043665409088135,
0.6690499186515808,
0.3975781798362732,
0.279030442237854,
1.627458930015564,
0.7785285711288452,
-0.5762682557106018,
0.44879889488220215,
0.5771123766899109,
-0.18567600846290588,
-1.9922490119934082,
-1.1357977390289307,
0.37231454253196716,
-0.6093353629112244,
-1.5695821046829224,
1.407171368598938,
-1.1197466850280762,
-1.010178804397583,
0.6029465794563293,
0.10738826543092728,
1.3964855670928955,
0.32768169045448303,
1.5902539491653442,
2.0179927349090576,
0.8964660167694092,
0.38974863290786743,
1.2293815612792969,
-0.16574351489543915,
-0.4306917190551758,
1.8294426202774048,
-0.4413687288761139,
0.43971458077430725,
1.1100833415985107,
-0.3063768446445465,
-1.0966606140136719,
-0.7613887786865234,
-1.1665091514587402,
-0.7275160551071167,
1.2333766222000122,
0.14253275096416473,
-0.9843208193778992,
0.2034897357225418,
1.6491750478744507,
0.12518829107284546,
-0.3287718594074249,
0.6712910532951355,
0.4099957346916199,
-0.810600757598877,
0.0014733057469129562,
-0.976010262966156,
0.5698344111442566,
-0.1467980146408081,
-0.3739616870880127,
0.24493558704853058,
0.4757654070854187,
1.3439319133758545,
-0.06716536730527878,
0.15176664292812347,
1.2121472358703613,
-1.3267078399658203,
1.5265088081359863,
-0.6901042461395264,
0.22175686061382294,
-2.384174346923828,
1.45108163356781,
-0.7945441603660583,
1.9142768383026123,
-2.5443944931030273,
0.48822668194770813,
-0.6133459210395813,
-0.41827264428138733,
0.23782691359519958,
-0.44706231355667114,
0.09123916923999786,
-0.12163397669792175,
-1.1009210348129272,
-0.07495640218257904,
-0.7222505211830139,
0.5770090222358704,
1.1878182888031006,
1.363769769668579,
-1.0643935203552246,
-0.27675339579582214,
-1.7508586645126343,
-0.21809153258800507,
-0.7696185111999512,
0.38018253445625305,
-1.9522734880447388,
-0.29136377573013306,
-1.9268419742584229,
-2.393510580062866,
-1.3489145040512085,
-0.8231204748153687,
1.1396825313568115,
0.10792925208806992,
-0.9464255571365356,
1.199230432510376,
-0.41431453824043274,
-1.8673042058944702,
1.1499290466308594,
-2.207050323486328
] |
https://github.com/huggingface/datasets/issues/5278 | load_dataset does not read jsonl metadata file properly | Okay, now it seems to actually load the metadata and create the train_split, but it still says only returns "image" and "label", which is always 0 since all images are from same folder | ### Describe the bug
Hi, I'm following [this page](https://huggingface.co/docs/datasets/image_dataset) to create a dataset of images and captions via an image folder and a metadata.json file, but I can't seem to get the dataloader to recognize the "text" column. It just spits out "image" and "label" as features.
Below is code to reproduce my exact example/problem.
### Steps to reproduce the bug
```ruby
dataset_link="19Unu89Ih_kP6zsE7f9Mkw8dy3NwHopRF"
id = dataset_link
output = 'Godardv01.zip'
gdown.download(id=id, output=output, quiet=False)
ds = load_dataset("imagefolder", data_dir="/kaggle/working/Volumes/TOSHIBA/Godard_imgs/Volumes/TOSHIBA/Godard_imgs/Full/train", split="train", drop_labels=False)
print(ds)
```
### Expected behavior
I would expect that it returned "image" and "text" columns from the code above.
### Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.15.65+-x86_64-with-debian-bullseye-sid
- Python version: 3.7.12
- PyArrow version: 5.0.0
- Pandas version: 1.3.5 | 402 | 33 | load_dataset does not read jsonl metadata file properly
### Describe the bug
Hi, I'm following [this page](https://huggingface.co/docs/datasets/image_dataset) to create a dataset of images and captions via an image folder and a metadata.json file, but I can't seem to get the dataloader to recognize the "text" column. It just spits out "image" and "label" as features.
Below is code to reproduce my exact example/problem.
### Steps to reproduce the bug
```ruby
dataset_link="19Unu89Ih_kP6zsE7f9Mkw8dy3NwHopRF"
id = dataset_link
output = 'Godardv01.zip'
gdown.download(id=id, output=output, quiet=False)
ds = load_dataset("imagefolder", data_dir="/kaggle/working/Volumes/TOSHIBA/Godard_imgs/Volumes/TOSHIBA/Godard_imgs/Full/train", split="train", drop_labels=False)
print(ds)
```
### Expected behavior
I would expect that it returned "image" and "text" columns from the code above.
### Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.15.65+-x86_64-with-debian-bullseye-sid
- Python version: 3.7.12
- PyArrow version: 5.0.0
- Pandas version: 1.3.5
Okay, now it seems to actually load the metadata and create the train_split, but it still says only returns "image" and "label", which is always 0 since all images are from same folder | [
-1.1759647130966187,
-0.9833332896232605,
-0.7441419959068298,
1.4840329885482788,
-0.15907064080238342,
-1.2307698726654053,
0.1437048763036728,
-1.065576195716858,
1.5801584720611572,
-0.8430256247520447,
0.2931825816631317,
-1.6919947862625122,
-0.019899562001228333,
-0.5299819707870483,
-0.7055526971817017,
-0.8939786553382874,
-0.35730454325675964,
-0.6920806169509888,
1.0790925025939941,
2.503631353378296,
1.2667115926742554,
-1.3421778678894043,
2.7324118614196777,
0.7097494006156921,
-0.1925325244665146,
-0.9682977795600891,
0.568805456161499,
0.025732334703207016,
-1.2607710361480713,
-0.41777026653289795,
-0.9066287279129028,
-0.041337620466947556,
-0.5524225831031799,
-0.46297499537467957,
-0.004587013274431229,
0.451941579580307,
-0.35931196808815,
-0.43062064051628113,
-0.6021629571914673,
-0.7715938091278076,
0.5091102719306946,
-0.4113539159297943,
0.9375856518745422,
-0.3879834711551666,
1.8365622758865356,
-0.5726993083953857,
0.4558793604373932,
0.7281177639961243,
1.2696713209152222,
0.21842306852340698,
0.1019984781742096,
0.28923752903938293,
0.38477617502212524,
-0.08943876624107361,
0.5097849369049072,
1.1904250383377075,
0.6151732802391052,
0.5344112515449524,
0.6724657416343689,
-2.190509557723999,
1.298607587814331,
-0.9646782875061035,
0.2752076983451843,
1.4105031490325928,
-0.9193604588508606,
0.4079226851463318,
-1.7714245319366455,
-0.08845824003219604,
0.5616024136543274,
-2.2274885177612305,
0.2793203592300415,
-1.2567955255508423,
-0.5460922122001648,
0.994752049446106,
0.35173705220222473,
-1.1671288013458252,
0.12420382350683212,
-0.47799167037010193,
0.9740583896636963,
0.4592333436012268,
1.08296537399292,
-1.6431423425674438,
-0.11920116096735,
-0.2835138440132141,
0.09596242010593414,
-1.3514457941055298,
-1.5795880556106567,
0.4700300097465515,
0.6463249325752258,
0.6093354821205139,
-0.09654873609542847,
1.0317370891571045,
-1.0223283767700195,
0.7537150979042053,
-0.898421049118042,
-1.6810455322265625,
-1.4527339935302734,
-2.359159469604492,
-2.281215190887451,
0.7734547257423401,
-0.4600847065448761,
-0.5644279718399048,
2.0607898235321045,
-1.0265452861785889,
-1.7304179668426514,
1.1192926168441772,
0.28539979457855225,
-0.015680529177188873,
2.453167676925659,
0.23567883670330048,
-0.7170846462249756,
0.5132008194923401,
-0.7621385455131531,
0.7515009641647339,
-0.47425544261932373,
1.2956233024597168,
0.4391491115093231,
-1.0854390859603882,
1.5597319602966309,
-0.37693527340888977,
0.6631051301956177,
-0.6761600375175476,
-0.4548323154449463,
-0.838939905166626,
0.2754732668399811,
1.8312675952911377,
-0.32375335693359375,
1.5213770866394043,
-0.2028219848871231,
-1.5344618558883667,
-1.679316520690918,
0.8703700304031372,
0.4578167498111725,
-0.7164952158927917,
0.13902805745601654,
-0.3766987919807434,
0.15393377840518951,
-0.022488288581371307,
1.0709781646728516,
1.2952189445495605,
0.6704909205436707,
-0.31909748911857605,
-0.8639332056045532,
0.24896568059921265,
-0.11707110702991486,
-0.6984211802482605,
-1.7396855354309082,
-0.33124759793281555,
0.17907969653606415,
0.5424292087554932,
-1.251473307609558,
1.7560851573944092,
0.9332846403121948,
1.9499589204788208,
0.9934024810791016,
-0.3783184289932251,
1.4816793203353882,
0.09089820086956024,
1.7950350046157837,
-0.4727762043476105,
0.6784599423408508,
-0.3036873936653137,
-1.1646803617477417,
0.7616799473762512,
-0.3334241211414337,
-2.00296950340271,
-0.7985751032829285,
-0.8600376844406128,
-0.15611472725868225,
-0.7449823021888733,
0.8759333491325378,
-0.3170657157897949,
-1.3926516771316528,
0.24946966767311096,
-0.6911072134971619,
0.04314008355140686,
-1.2901474237442017,
0.2995656132698059,
0.6647207140922546,
-0.6157046556472778,
0.0019244682043790817,
-0.2089938521385193,
-1.2040573358535767,
-0.370285302400589,
0.33978718519210815,
1.9228280782699585,
-0.7073692679405212,
0.9332026839256287,
1.0307836532592773,
-0.8110649585723877,
0.0907985270023346,
0.3538745939731598,
-0.34950897097587585,
0.8614163994789124,
-1.0345627069473267,
-0.4416410028934479,
1.214489459991455,
-0.25381070375442505,
-0.6827186346054077,
1.483260989189148,
0.7250251173973083,
-1.0035862922668457,
-0.2299237698316574,
-0.13298135995864868,
-0.7951173782348633,
0.05283056199550629,
-1.5517299175262451,
-0.06416939198970795,
0.35040566325187683,
-1.4908400774002075,
-0.48239803314208984,
-0.23323974013328552,
1.3219773769378662,
-0.21993407607078552,
1.425958514213562,
-0.3140055239200592,
-0.2053486406803131,
-0.3343704640865326,
-0.44897255301475525,
0.12571778893470764,
-0.21394938230514526,
-0.6145058870315552,
0.2620770037174225,
-0.8052369356155396,
0.2978816628456116,
1.4331111907958984,
0.34126922488212585,
0.04081476107239723,
0.5288838148117065,
1.0454037189483643,
0.4234357476234436,
-0.09086938202381134,
-0.9193756580352783,
-1.5041296482086182,
1.9868942499160767,
-1.409021019935608,
2.0062005519866943,
0.8275414109230042,
-0.058768924325704575,
-1.7998673915863037,
-1.8995721340179443,
1.3551477193832397,
1.170058012008667,
2.408374786376953,
0.5571431517601013,
0.4476720988750458,
-0.8720244765281677,
-0.7878663539886475,
0.2971494197845459,
-1.0241918563842773,
-0.7143370509147644,
0.16735446453094482,
2.3554575443267822,
1.7754693031311035,
-0.4506763517856598,
-0.18010184168815613,
-1.055739164352417,
1.3548489809036255,
-0.1658300906419754,
0.21783165633678436,
2.0637640953063965,
-0.22027502954006195,
-1.0395526885986328,
1.3341408967971802,
-2.282515287399292,
0.1285623461008072,
1.944303274154663,
0.3140612244606018,
0.03708972409367561,
-1.375630497932434,
-0.7197287678718567,
-0.31930840015411377,
-0.40976661443710327,
-1.2274624109268188,
0.47587960958480835,
-0.21937525272369385,
-0.7707614898681641,
-1.430409550666809,
0.1265089064836502,
-1.1428977251052856,
-1.6547138690948486,
0.2207891345024109,
1.8849087953567505,
2.066915988922119,
-0.8398187756538391,
1.5084484815597534,
-0.17096252739429474,
0.08638876676559448,
1.1815612316131592,
1.2532165050506592,
3.1251683235168457,
1.8635127544403076,
-1.2874932289123535,
0.6735793352127075,
-0.14675089716911316,
-0.4493226110935211,
1.1758277416229248,
-1.204636573791504,
1.2567660808563232,
-0.1916278600692749,
-1.1587518453598022,
-1.2622085809707642,
0.9242789149284363,
0.44924378395080566,
0.015572947449982166,
-0.478890597820282,
1.198475956916809,
0.1287861466407776,
1.3669592142105103,
0.5893835425376892,
-0.3404465615749359,
0.6163638830184937,
-0.3691948354244232,
-0.5172337293624878,
1.60989511013031,
0.16872663795948029,
-1.4794921875,
-2.290282726287842,
-0.26617223024368286,
-0.8727080225944519,
0.04551181197166443,
-0.5993937253952026,
-1.0192269086837769,
1.6926592588424683,
0.35151180624961853,
-1.159085750579834,
-0.30432066321372986,
-0.35314008593559265,
-0.6449283957481384,
2.72529935836792,
-1.3831876516342163,
-0.16893434524536133,
-0.9453293085098267,
-0.6315820217132568,
1.5535777807235718,
-1.1880202293395996,
-0.2245354950428009,
-1.0695921182632446,
-0.5929303169250488,
-1.2953300476074219,
-0.521283745765686,
0.04060573875904083,
-0.9496711492538452,
0.8086113929748535,
0.18668794631958008,
-1.108320951461792,
-0.28157439827919006,
-0.9255198240280151,
0.9007208347320557,
-0.10567120462656021,
0.20925813913345337,
1.8336617946624756,
0.41710591316223145,
-0.32056736946105957,
0.752493679523468,
1.164152979850769,
0.6321219205856323,
-0.6991439461708069,
0.18685108423233032,
-0.7501894235610962,
0.25960859656333923,
-1.2430652379989624,
0.2814129590988159,
-2.8501856327056885,
0.5990375280380249,
-0.08961612731218338,
-0.08878598362207413,
-0.06660225242376328,
-1.1898362636566162,
1.1050771474838257,
2.5707523822784424,
-1.1689324378967285,
0.5104125738143921,
0.31745511293411255,
1.1834419965744019,
-1.630138635635376,
0.28190842270851135,
-0.4378923773765564,
2.052752733230591,
0.15911519527435303,
1.1886584758758545,
-0.5252397656440735,
-2.3019661903381348,
0.625869631767273,
-1.2668871879577637,
-1.1627947092056274,
0.8061916828155518,
-0.8522607088088989,
0.15115924179553986,
-1.3782871961593628,
-0.2502930760383606,
-0.8404863476753235,
-1.2370164394378662,
0.6625198721885681,
0.08213794231414795,
0.45238906145095825,
-0.4841580390930176,
0.3568359613418579,
-2.2508859634399414,
-1.4078751802444458,
-0.24540559947490692,
-0.9603548049926758,
0.4874472916126251,
-0.38373687863349915,
0.7729287147521973,
-0.17662158608436584,
0.049107179045677185,
0.37553322315216064,
1.4062575101852417,
3.356539726257324,
0.21912482380867004,
0.3240654766559601,
-0.08792188763618469,
-1.0107663869857788,
1.5035290718078613,
0.88670414686203,
-0.12694771587848663,
-0.5693261623382568,
-1.1197073459625244,
1.2735308408737183,
1.9475021362304688,
1.1188995838165283,
0.05498599261045456,
-0.857379674911499,
-0.7505112886428833,
-0.04153876379132271,
0.15863196551799774,
0.44180089235305786,
0.8999456763267517,
0.04996088892221451,
0.13194014132022858,
1.4624515771865845,
1.2416988611221313,
-0.3849252164363861,
0.2930663526058197,
-0.8384221792221069,
-0.45625242590904236,
0.4910988211631775,
0.2676267623901367,
0.05702506750822067,
0.3984934091567993,
-1.0582078695297241,
-0.2583615183830261,
-0.36132293939590454,
-0.8826215863227844,
-0.7065629959106445,
-0.46917426586151123,
-0.38235560059547424,
1.6770955324172974,
0.1032119169831276,
-0.5023030638694763,
-0.03900926187634468,
-0.8248659372329712,
-0.09591387212276459,
-1.1287696361541748,
0.20944038033485413,
-0.11118011921644211,
-0.11185558140277863,
-0.1277075558900833,
1.7832810878753662,
-0.9612156748771667,
-2.142465591430664,
0.1838103085756302,
0.3232513964176178,
-0.2759975492954254,
0.1425434947013855,
1.691884160041809,
0.5150759816169739,
1.4135758876800537,
1.287683129310608,
0.9663112759590149,
-0.7009757161140442,
-1.2480053901672363,
0.6414875388145447,
0.9708636403083801,
-1.3204474449157715,
0.8634278774261475,
-0.06137332320213318,
-0.5162122249603271,
0.5319274067878723,
1.2610070705413818,
0.459828644990921,
-1.973097801208496,
0.7798868417739868,
-0.947788417339325,
0.7893453240394592,
0.7439880967140198,
0.7633128762245178,
0.18543417751789093,
0.7627024054527283,
-1.2425998449325562,
-1.1000220775604248,
-0.6965358853340149,
-0.6144146919250488,
1.9536800384521484,
-0.27437901496887207,
0.5713870525360107,
-0.2538321912288666,
-1.2920693159103394,
-0.009650025516748428,
0.6968865394592285,
0.3683135509490967,
-0.4105369746685028,
0.8482962846755981,
-0.6425359845161438,
-1.0893324613571167,
-1.4318758249282837,
-0.40421029925346375,
-1.0579969882965088,
-0.9411678314208984,
1.0656869411468506,
0.7627801895141602,
0.3197423219680786,
1.8592828512191772,
0.7152382135391235,
0.2984491288661957,
-2.6331915855407715,
0.9053722620010376,
0.2607858180999756,
-0.006926336791366339,
0.8976775407791138,
0.2932129502296448,
1.0509471893310547,
0.002341093495488167,
0.541575014591217,
-2.4410626888275146,
2.3217759132385254,
-0.20698417723178864,
0.676113486289978,
0.03213055804371834,
-0.1878095120191574,
1.1547578573226929,
0.5701808929443359,
0.5525069236755371,
-1.1208192110061646,
0.7054871320724487,
-0.5221344232559204,
1.1874343156814575,
0.9438136219978333,
-0.8468472957611084,
0.026272393763065338,
1.3591657876968384,
0.5122329592704773,
-0.44681093096733093,
-0.9393410682678223,
-0.9290028810501099,
0.9210425615310669,
1.7977944612503052,
-0.0374288335442543,
0.06108022481203079,
0.8772476315498352,
0.6135731339454651,
-1.3632663488388062,
0.05647151917219162,
-0.6847214698791504,
-0.6728355884552002,
1.6838359832763672,
2.0494327545166016,
-0.12169387191534042,
-0.2911953628063202,
-0.6731574535369873,
-1.2965096235275269,
0.822111189365387,
-0.05800963193178177,
0.21096409857273102,
0.6915409564971924,
-0.7110711336135864,
1.0555319786071777,
0.8442662358283997,
0.9702646136283875,
0.16414909064769745,
0.2141869068145752,
0.42399415373802185,
-0.4032987654209137,
-1.1703455448150635,
-0.2532522976398468,
-1.0348455905914307,
-2.563965320587158,
0.48008638620376587,
-0.216973215341568,
-1.400651454925537,
-0.027605906128883362,
-1.0312131643295288,
0.9851909279823303,
-0.6009503602981567,
-1.0139213800430298,
-1.5337634086608887,
0.14701808989048004,
-0.21796873211860657,
0.8958092927932739,
-1.5695000886917114,
-0.2496107518672943,
1.2291873693466187,
0.936687171459198,
-0.6432648301124573,
0.988970160484314,
0.11598429828882217,
0.9939396381378174,
0.7869154810905457,
-0.34491997957229614,
0.5382131934165955,
0.0895506739616394,
-1.3398152589797974,
0.41743144392967224,
1.1674679517745972,
0.19607608020305634,
1.5090681314468384,
-0.5294271111488342,
0.09612635523080826,
0.36398813128471375,
-0.47866106033325195,
-0.5367527008056641,
-0.5418383479118347,
0.6501265168190002,
0.0033431630581617355,
-0.9784112572669983,
0.001220344565808773,
-0.09894484281539917,
-0.16473406553268433,
0.13816425204277039,
-1.4705570936203003,
-0.09196264296770096,
-0.35608795285224915,
-0.6604135036468506,
-1.2394154071807861,
0.016501761972904205,
1.356615662574768,
-0.8092908263206482,
-0.1707371324300766,
0.4354878067970276,
0.30478692054748535,
0.5748556852340698,
0.6282869577407837,
-0.7301164865493774,
-0.22198674082756042,
-0.2596573233604431,
-0.33144593238830566,
0.35317546129226685,
1.337276816368103,
-0.13481788337230682,
-0.9766718149185181,
0.647777795791626,
-0.34944072365760803,
0.11780773848295212,
2.006943941116333,
0.0738568902015686,
-0.7377969622612,
0.31620699167251587,
-0.7425448298454285,
1.896633267402649,
1.6901836395263672,
1.4102363586425781,
-0.1038454920053482,
-0.893829345703125,
0.5956184267997742,
-0.2923828065395355,
-0.3562704920768738,
0.9339529275894165,
0.412055104970932,
-0.26518335938453674,
-1.4788891077041626,
0.6697918176651001,
1.3070391416549683,
-0.8663061261177063,
-0.8102538585662842,
0.15417207777500153,
-0.8776304125785828,
1.118043303489685,
0.6432567238807678,
0.4122271239757538,
0.2940402328968048,
1.6412594318389893,
0.802224338054657,
-0.5575678944587708,
0.4660738408565521,
0.5448778867721558,
-0.19473056495189667,
-2.0053670406341553,
-1.132454752922058,
0.3778041899204254,
-0.629911482334137,
-1.5664044618606567,
1.4168845415115356,
-1.1140321493148804,
-1.0144734382629395,
0.6039522290229797,
0.10261188447475433,
1.3761578798294067,
0.32465478777885437,
1.592913269996643,
2.0091686248779297,
0.868806779384613,
0.3638928532600403,
1.1982390880584717,
-0.18856388330459595,
-0.43569236993789673,
1.8176181316375732,
-0.4525047242641449,
0.4459836483001709,
1.1184718608856201,
-0.3075214624404907,
-1.0927724838256836,
-0.7618788480758667,
-1.1718894243240356,
-0.7354925870895386,
1.2320815324783325,
0.13969990611076355,
-1.0275508165359497,
0.20887406170368195,
1.6605019569396973,
0.1122436448931694,
-0.3218015730381012,
0.6556153297424316,
0.4202544689178467,
-0.7990500926971436,
0.005140882916748524,
-0.9626162052154541,
0.5828065276145935,
-0.16513758897781372,
-0.37643831968307495,
0.25253820419311523,
0.48618319630622864,
1.3568315505981445,
-0.08678241819143295,
0.1573658138513565,
1.1994702816009521,
-1.3184986114501953,
1.5353065729141235,
-0.6830942630767822,
0.2038203775882721,
-2.351921796798706,
1.4155347347259521,
-0.7716436386108398,
1.9179295301437378,
-2.5387160778045654,
0.47859904170036316,
-0.611323893070221,
-0.43227845430374146,
0.267225980758667,
-0.45274659991264343,
0.10830157995223999,
-0.14423349499702454,
-1.0842260122299194,
-0.09633943438529968,
-0.7420815825462341,
0.5726611614227295,
1.1703193187713623,
1.363203763961792,
-1.0610134601593018,
-0.2982882857322693,
-1.7471281290054321,
-0.18462535738945007,
-0.7632752060890198,
0.3416242301464081,
-1.9614695310592651,
-0.300447940826416,
-1.9165678024291992,
-2.405977964401245,
-1.3391060829162598,
-0.8331889510154724,
1.141715168952942,
0.1249827966094017,
-0.9472787380218506,
1.2045649290084839,
-0.4016696810722351,
-1.8619216680526733,
1.1424846649169922,
-2.209954261779785
] |
https://github.com/huggingface/datasets/issues/5278 | load_dataset does not read jsonl metadata file properly | > Can you try updating `datasets` ? Metadata support was added in `datasets` 2.4
Update: This was the issue. | ### Describe the bug
Hi, I'm following [this page](https://huggingface.co/docs/datasets/image_dataset) to create a dataset of images and captions via an image folder and a metadata.json file, but I can't seem to get the dataloader to recognize the "text" column. It just spits out "image" and "label" as features.
Below is code to reproduce my exact example/problem.
### Steps to reproduce the bug
```ruby
dataset_link="19Unu89Ih_kP6zsE7f9Mkw8dy3NwHopRF"
id = dataset_link
output = 'Godardv01.zip'
gdown.download(id=id, output=output, quiet=False)
ds = load_dataset("imagefolder", data_dir="/kaggle/working/Volumes/TOSHIBA/Godard_imgs/Volumes/TOSHIBA/Godard_imgs/Full/train", split="train", drop_labels=False)
print(ds)
```
### Expected behavior
I would expect that it returned "image" and "text" columns from the code above.
### Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.15.65+-x86_64-with-debian-bullseye-sid
- Python version: 3.7.12
- PyArrow version: 5.0.0
- Pandas version: 1.3.5 | 402 | 19 | load_dataset does not read jsonl metadata file properly
### Describe the bug
Hi, I'm following [this page](https://huggingface.co/docs/datasets/image_dataset) to create a dataset of images and captions via an image folder and a metadata.json file, but I can't seem to get the dataloader to recognize the "text" column. It just spits out "image" and "label" as features.
Below is code to reproduce my exact example/problem.
### Steps to reproduce the bug
```ruby
dataset_link="19Unu89Ih_kP6zsE7f9Mkw8dy3NwHopRF"
id = dataset_link
output = 'Godardv01.zip'
gdown.download(id=id, output=output, quiet=False)
ds = load_dataset("imagefolder", data_dir="/kaggle/working/Volumes/TOSHIBA/Godard_imgs/Volumes/TOSHIBA/Godard_imgs/Full/train", split="train", drop_labels=False)
print(ds)
```
### Expected behavior
I would expect that it returned "image" and "text" columns from the code above.
### Environment info
- `datasets` version: 2.1.0
- Platform: Linux-5.15.65+-x86_64-with-debian-bullseye-sid
- Python version: 3.7.12
- PyArrow version: 5.0.0
- Pandas version: 1.3.5
> Can you try updating `datasets` ? Metadata support was added in `datasets` 2.4
Update: This was the issue. | [
-1.1760004758834839,
-0.9716751575469971,
-0.7537791728973389,
1.4831427335739136,
-0.15419664978981018,
-1.2533154487609863,
0.1560819000005722,
-1.051365613937378,
1.6201120615005493,
-0.7968655824661255,
0.27176833152770996,
-1.7120777368545532,
-0.039096683263778687,
-0.5449911952018738,
-0.7119678258895874,
-0.892183244228363,
-0.3745715022087097,
-0.6971076726913452,
1.0607010126113892,
2.5159976482391357,
1.2572838068008423,
-1.3226854801177979,
2.718661308288574,
0.725814938545227,
-0.19411645829677582,
-0.9581865668296814,
0.5650607347488403,
0.03513917699456215,
-1.2605479955673218,
-0.3890085220336914,
-0.8837941884994507,
-0.05692428722977638,
-0.5616813898086548,
-0.4811333417892456,
0.0147446533665061,
0.4614831209182739,
-0.3560650050640106,
-0.4380477964878082,
-0.5802916288375854,
-0.7537920475006104,
0.4857330620288849,
-0.41513505578041077,
0.9358991384506226,
-0.40287166833877563,
1.8282945156097412,
-0.5869567394256592,
0.45329323410987854,
0.7284760475158691,
1.2675269842147827,
0.22439631819725037,
0.08933587372303009,
0.3158215284347534,
0.3810708224773407,
-0.07702400535345078,
0.48892414569854736,
1.186966896057129,
0.6260319352149963,
0.4899887144565582,
0.6768006682395935,
-2.2089548110961914,
1.2811036109924316,
-0.9363027215003967,
0.30026164650917053,
1.4104005098342896,
-0.9236333966255188,
0.4076306223869324,
-1.765070915222168,
-0.07980740815401077,
0.5914828777313232,
-2.231191873550415,
0.27765440940856934,
-1.2943439483642578,
-0.5476908087730408,
1.0097044706344604,
0.3570438027381897,
-1.1904795169830322,
0.11857247352600098,
-0.4735512137413025,
0.9970995783805847,
0.45996665954589844,
1.102279543876648,
-1.6652754545211792,
-0.08829086273908615,
-0.29425516724586487,
0.08833003789186478,
-1.339239478111267,
-1.5526167154312134,
0.4782973527908325,
0.6532106995582581,
0.6535011529922485,
-0.11232256889343262,
1.0014432668685913,
-0.9926729798316956,
0.7144221663475037,
-0.8817729353904724,
-1.7435716390609741,
-1.4524500370025635,
-2.343830108642578,
-2.2967536449432373,
0.7632978558540344,
-0.43561702966690063,
-0.5370679497718811,
2.0534651279449463,
-1.0155829191207886,
-1.78061842918396,
1.1131263971328735,
0.3013630509376526,
-0.039283573627471924,
2.4070706367492676,
0.25952890515327454,
-0.741477370262146,
0.48475882411003113,
-0.7496445775032043,
0.7098032832145691,
-0.44974011182785034,
1.3022054433822632,
0.4464317262172699,
-1.0819602012634277,
1.5600781440734863,
-0.4099172353744507,
0.6743190884590149,
-0.6942844986915588,
-0.4286842346191406,
-0.83778315782547,
0.26150283217430115,
1.8351755142211914,
-0.29087239503860474,
1.5256956815719604,
-0.22937245666980743,
-1.559690237045288,
-1.6671631336212158,
0.8473243713378906,
0.47928473353385925,
-0.7014055848121643,
0.1593436896800995,
-0.3854430615901947,
0.1402849704027176,
-0.013697188347578049,
1.0918183326721191,
1.2756298780441284,
0.6838947534561157,
-0.3121878206729889,
-0.8602470755577087,
0.27010786533355713,
-0.08709292858839035,
-0.7129600048065186,
-1.7558189630508423,
-0.30759143829345703,
0.19146744906902313,
0.543485701084137,
-1.252383828163147,
1.7248826026916504,
0.8822801113128662,
1.948424220085144,
1.0087743997573853,
-0.36484238505363464,
1.4967061281204224,
0.07241237163543701,
1.8221412897109985,
-0.4618382453918457,
0.6720204949378967,
-0.27880287170410156,
-1.137636423110962,
0.7633085250854492,
-0.32265999913215637,
-2.035352945327759,
-0.7810194492340088,
-0.8547125458717346,
-0.1254129409790039,
-0.7450809478759766,
0.8626255393028259,
-0.2977449595928192,
-1.4097480773925781,
0.2612449824810028,
-0.7255713939666748,
0.04762786999344826,
-1.2964224815368652,
0.29065102338790894,
0.6764890551567078,
-0.6114275455474854,
0.0004731016233563423,
-0.2282598316669464,
-1.2428349256515503,
-0.3835536241531372,
0.3324762284755707,
1.9053492546081543,
-0.7277549505233765,
0.9484654068946838,
1.033359408378601,
-0.8155326247215271,
0.08491004258394241,
0.36022499203681946,
-0.35105064511299133,
0.8879127502441406,
-1.0477951765060425,
-0.4188416004180908,
1.1814974546432495,
-0.2290017455816269,
-0.6826630234718323,
1.49161958694458,
0.7254921197891235,
-0.982729434967041,
-0.20931752026081085,
-0.16480079293251038,
-0.7984044551849365,
0.023729577660560608,
-1.590041995048523,
-0.08001087605953217,
0.35749489068984985,
-1.473771095275879,
-0.49093446135520935,
-0.220481276512146,
1.3274097442626953,
-0.17852607369422913,
1.3989927768707275,
-0.3045080602169037,
-0.1727627068758011,
-0.3448812961578369,
-0.4404829740524292,
0.12074592709541321,
-0.22245685756206512,
-0.6420708894729614,
0.271309494972229,
-0.7916364669799805,
0.30152738094329834,
1.400668978691101,
0.35228896141052246,
0.03214467316865921,
0.5514532923698425,
1.0657575130462646,
0.4019690752029419,
-0.10418744385242462,
-0.8988068103790283,
-1.543272852897644,
1.9812252521514893,
-1.392399549484253,
1.9900883436203003,
0.7858049273490906,
-0.05354386940598488,
-1.806598424911499,
-1.92349374294281,
1.3782932758331299,
1.1593680381774902,
2.4160072803497314,
0.5716842412948608,
0.4466914236545563,
-0.8372117877006531,
-0.7876154780387878,
0.25531283020973206,
-1.012606143951416,
-0.7363126277923584,
0.17361758649349213,
2.3562984466552734,
1.7609748840332031,
-0.4773326516151428,
-0.1818084418773651,
-1.066072940826416,
1.3471397161483765,
-0.18755657970905304,
0.18552303314208984,
2.0765717029571533,
-0.2181803286075592,
-1.0298023223876953,
1.3438897132873535,
-2.284522533416748,
0.14110557734966278,
1.9451936483383179,
0.2737060785293579,
0.053415268659591675,
-1.3682855367660522,
-0.7289626598358154,
-0.3169247508049011,
-0.41745325922966003,
-1.2216695547103882,
0.49400007724761963,
-0.21368646621704102,
-0.7846308946609497,
-1.4205023050308228,
0.12280233204364777,
-1.1160677671432495,
-1.6564713716506958,
0.2210833579301834,
1.903978943824768,
2.047760248184204,
-0.8232066631317139,
1.520104169845581,
-0.18671667575836182,
0.11371664702892303,
1.202333927154541,
1.249454140663147,
3.128274917602539,
1.8806662559509277,
-1.293986201286316,
0.7116954922676086,
-0.12491608411073685,
-0.4485836625099182,
1.1866661310195923,
-1.1997581720352173,
1.231618881225586,
-0.2053588330745697,
-1.1613537073135376,
-1.2670273780822754,
0.915256917476654,
0.4885013699531555,
0.003765079192817211,
-0.5060223340988159,
1.1972920894622803,
0.10642919689416885,
1.3751471042633057,
0.5773907899856567,
-0.3501334488391876,
0.6131031513214111,
-0.3560655117034912,
-0.4989143908023834,
1.6080883741378784,
0.17144298553466797,
-1.4507554769515991,
-2.323550224304199,
-0.25067847967147827,
-0.8731953501701355,
0.003917458467185497,
-0.6099163889884949,
-1.0066231489181519,
1.6787914037704468,
0.38497039675712585,
-1.1628719568252563,
-0.2918577492237091,
-0.3369317650794983,
-0.6405594348907471,
2.7156832218170166,
-1.393477439880371,
-0.1532544493675232,
-0.9538813233375549,
-0.613867998123169,
1.5734881162643433,
-1.178443431854248,
-0.2511022984981537,
-1.074581503868103,
-0.6104896068572998,
-1.3009895086288452,
-0.5552775263786316,
0.030815858393907547,
-0.9602296948432922,
0.8340142369270325,
0.14719440042972565,
-1.141649842262268,
-0.27321314811706543,
-0.9382010698318481,
0.9259725213050842,
-0.1225099116563797,
0.21001067757606506,
1.8423752784729004,
0.45348620414733887,
-0.32522445917129517,
0.7127795219421387,
1.1330828666687012,
0.6294946074485779,
-0.687734842300415,
0.208220973610878,
-0.7507516741752625,
0.2618580162525177,
-1.2560545206069946,
0.2743910253047943,
-2.8557815551757812,
0.6147366762161255,
-0.06338020414113998,
-0.059780217707157135,
-0.0740010142326355,
-1.1843117475509644,
1.094233512878418,
2.5787129402160645,
-1.1883095502853394,
0.5027042031288147,
0.3080042898654938,
1.1735663414001465,
-1.6211342811584473,
0.25320252776145935,
-0.43005457520484924,
2.0695788860321045,
0.12022744119167328,
1.2138017416000366,
-0.48933541774749756,
-2.2780115604400635,
0.6257323026657104,
-1.2723053693771362,
-1.1468168497085571,
0.8198598623275757,
-0.8569900989532471,
0.15009506046772003,
-1.3671680688858032,
-0.24514839053153992,
-0.8356172442436218,
-1.2328425645828247,
0.697532057762146,
0.09979373961687088,
0.44765153527259827,
-0.5020431280136108,
0.3723096251487732,
-2.232228994369507,
-1.3841924667358398,
-0.26944196224212646,
-0.957777202129364,
0.48474881052970886,
-0.33632564544677734,
0.7545524835586548,
-0.1790112406015396,
0.037774693220853806,
0.34974780678749084,
1.3864796161651611,
3.327164649963379,
0.197361558675766,
0.2993150055408478,
-0.06551212817430496,
-1.0086486339569092,
1.48618745803833,
0.8790334463119507,
-0.14997637271881104,
-0.5788035988807678,
-1.1210668087005615,
1.272733211517334,
1.938163161277771,
1.1389520168304443,
0.08022016286849976,
-0.8778349757194519,
-0.7551419138908386,
-0.006430528592318296,
0.16950127482414246,
0.4416722059249878,
0.8928983807563782,
0.06503429263830185,
0.12303748726844788,
1.461426854133606,
1.217545986175537,
-0.3560943901538849,
0.3409079909324646,
-0.8419856429100037,
-0.46751314401626587,
0.48502227663993835,
0.2801676094532013,
0.05374710634350777,
0.37686991691589355,
-1.0852503776550293,
-0.2319032996892929,
-0.33476999402046204,
-0.8970614075660706,
-0.7193655371665955,
-0.466417521238327,
-0.3912416100502014,
1.6618536710739136,
0.10134351253509521,
-0.48614501953125,
-0.06781359761953354,
-0.8018043637275696,
-0.06011996045708656,
-1.1087125539779663,
0.24671570956707,
-0.13215002417564392,
-0.07654520124197006,
-0.1433747261762619,
1.780894160270691,
-0.9633908867835999,
-2.1376075744628906,
0.19864220917224884,
0.31921690702438354,
-0.2945456802845001,
0.1595839262008667,
1.6792851686477661,
0.5454040765762329,
1.4094959497451782,
1.2830452919006348,
0.9863114356994629,
-0.7041427493095398,
-1.2521594762802124,
0.6238309741020203,
0.9879786372184753,
-1.3253542184829712,
0.841955304145813,
-0.03712073341012001,
-0.5129960775375366,
0.5311994552612305,
1.2926706075668335,
0.43406686186790466,
-1.9917991161346436,
0.774741530418396,
-0.9347264766693115,
0.7654107809066772,
0.7430561780929565,
0.7746461033821106,
0.17395956814289093,
0.779600203037262,
-1.2858160734176636,
-1.0967315435409546,
-0.7175823450088501,
-0.6076042652130127,
1.9392039775848389,
-0.25126123428344727,
0.5557581782341003,
-0.2396751195192337,
-1.3001235723495483,
-0.010662415996193886,
0.6842878460884094,
0.37832263112068176,
-0.4164012670516968,
0.8435304760932922,
-0.6193167567253113,
-1.0869872570037842,
-1.410162091255188,
-0.4084501266479492,
-1.0329842567443848,
-0.9134226441383362,
1.019824743270874,
0.7925866842269897,
0.34376975893974304,
1.829006314277649,
0.6852525472640991,
0.26939767599105835,
-2.65584659576416,
0.8955708146095276,
0.27502989768981934,
-0.005344201810657978,
0.8883873224258423,
0.30416715145111084,
1.0733544826507568,
-0.011979075148701668,
0.5573286414146423,
-2.421872615814209,
2.2983529567718506,
-0.2073325216770172,
0.6560153961181641,
0.04094354435801506,
-0.15758298337459564,
1.1222760677337646,
0.5622662901878357,
0.5753766298294067,
-1.102040410041809,
0.7149308323860168,
-0.5453775525093079,
1.207207441329956,
0.9484348893165588,
-0.8498109579086304,
-0.01302788220345974,
1.3687922954559326,
0.5017348527908325,
-0.44299688935279846,
-0.9435341358184814,
-0.9286654591560364,
0.9387970566749573,
1.7831451892852783,
-0.030934210866689682,
0.06103314086794853,
0.8811029195785522,
0.6259302496910095,
-1.3765908479690552,
0.03608999028801918,
-0.7051892876625061,
-0.6624319553375244,
1.6790400743484497,
2.0605905055999756,
-0.11803141236305237,
-0.29689204692840576,
-0.716656506061554,
-1.2707581520080566,
0.8270607590675354,
-0.047971054911613464,
0.16932716965675354,
0.7201319932937622,
-0.7018880248069763,
1.073318362236023,
0.8474663496017456,
0.9844279289245605,
0.16999948024749756,
0.22659984230995178,
0.3935621380805969,
-0.36638492345809937,
-1.2069329023361206,
-0.2503247857093811,
-1.027403712272644,
-2.516862630844116,
0.4834648668766022,
-0.2144726663827896,
-1.395569086074829,
-0.032400742173194885,
-1.04886794090271,
0.9780345559120178,
-0.603805422782898,
-1.0469468832015991,
-1.5214686393737793,
0.17519253492355347,
-0.20469924807548523,
0.8792358040809631,
-1.5581828355789185,
-0.21456703543663025,
1.2538115978240967,
0.9406691789627075,
-0.6594758629798889,
0.973413348197937,
0.1351916491985321,
0.9726282358169556,
0.8150820136070251,
-0.3402031660079956,
0.5203049182891846,
0.0634237602353096,
-1.3089854717254639,
0.43957802653312683,
1.1492010354995728,
0.1889001876115799,
1.4968817234039307,
-0.5716584920883179,
0.06367278844118118,
0.3656363785266876,
-0.47686830163002014,
-0.5100570321083069,
-0.5822668671607971,
0.6436927318572998,
0.04790974408388138,
-0.9762324690818787,
0.014924327842891216,
-0.07219264656305313,
-0.13957299292087555,
0.16100701689720154,
-1.4949562549591064,
-0.08783998340368271,
-0.31589362025260925,
-0.6551409363746643,
-1.2187209129333496,
0.0017190845683217049,
1.323211908340454,
-0.8155373334884644,
-0.18415093421936035,
0.4597684144973755,
0.2970724403858185,
0.6050134301185608,
0.6014655828475952,
-0.7298644185066223,
-0.2098310887813568,
-0.29343438148498535,
-0.33147701621055603,
0.3208034336566925,
1.3490794897079468,
-0.1159537136554718,
-0.9916958212852478,
0.6834083199501038,
-0.3638915419578552,
0.10064052045345306,
2.0217032432556152,
0.08974950015544891,
-0.7656707167625427,
0.29072442650794983,
-0.7445502877235413,
1.9056956768035889,
1.6877487897872925,
1.4072997570037842,
-0.10703887790441513,
-0.9233310222625732,
0.5703860521316528,
-0.2954253852367401,
-0.38854527473449707,
0.9362293481826782,
0.45387887954711914,
-0.2563604414463043,
-1.4334888458251953,
0.6870446801185608,
1.322627067565918,
-0.8790897727012634,
-0.8338832855224609,
0.14627613127231598,
-0.8735327124595642,
1.0999761819839478,
0.6835178732872009,
0.38212403655052185,
0.2736206352710724,
1.6182111501693726,
0.7675766348838806,
-0.5535954833030701,
0.4482579231262207,
0.5497274994850159,
-0.18212857842445374,
-1.9849092960357666,
-1.127813458442688,
0.375696063041687,
-0.5932642221450806,
-1.5903801918029785,
1.4107224941253662,
-1.1258211135864258,
-0.9882417321205139,
0.6086509823799133,
0.10925068706274033,
1.4039087295532227,
0.3359947204589844,
1.5976642370224,
2.022320508956909,
0.8811042308807373,
0.36932694911956787,
1.2266619205474854,
-0.17692230641841888,
-0.44190713763237,
1.803431510925293,
-0.4464942514896393,
0.46176958084106445,
1.1094093322753906,
-0.30904921889305115,
-1.0932859182357788,
-0.7859033346176147,
-1.1787906885147095,
-0.7340579032897949,
1.227169394493103,
0.15893030166625977,
-1.0226054191589355,
0.21657274663448334,
1.6435128450393677,
0.11672309041023254,
-0.32599541544914246,
0.6765974164009094,
0.378730833530426,
-0.8162305355072021,
-0.00345701165497303,
-0.9754460453987122,
0.5607666969299316,
-0.1498698890209198,
-0.3719240427017212,
0.24814487993717194,
0.4858179986476898,
1.347286343574524,
-0.04122862219810486,
0.14959116280078888,
1.2198021411895752,
-1.315773844718933,
1.5326690673828125,
-0.6691824197769165,
0.23051463067531586,
-2.371971607208252,
1.4309393167495728,
-0.7997819781303406,
1.9039928913116455,
-2.555173873901367,
0.4804684817790985,
-0.5880376696586609,
-0.4165586829185486,
0.23557013273239136,
-0.4454188942909241,
0.11548783630132675,
-0.1326817274093628,
-1.1203500032424927,
-0.10225223004817963,
-0.7482390999794006,
0.5651914477348328,
1.1712795495986938,
1.3716700077056885,
-1.0784168243408203,
-0.28348416090011597,
-1.755420446395874,
-0.21284429728984833,
-0.75499027967453,
0.39385029673576355,
-1.942930817604065,
-0.2865760922431946,
-1.9134310483932495,
-2.4315185546875,
-1.327531337738037,
-0.8301938772201538,
1.1418399810791016,
0.09760978072881699,
-0.9484951496124268,
1.1823852062225342,
-0.4029490649700165,
-1.868287444114685,
1.135310173034668,
-2.2203235626220703
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | Sounds like one of the file is not a valid one, can you make sure you uploaded valid mp3 files ? | ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 21 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
Sounds like one of the file is not a valid one, can you make sure you uploaded valid mp3 files ? | [
-1.2023125886917114,
-1.0082038640975952,
-0.7943263053894043,
1.4618934392929077,
-0.19647520780563354,
-1.2047638893127441,
0.1335814893245697,
-1.0326474905014038,
1.6041899919509888,
-0.8130604028701782,
0.2604953646659851,
-1.6522417068481445,
0.10070887953042984,
-0.5118575096130371,
-0.7610486745834351,
-0.9496120810508728,
-0.3616863787174225,
-0.7624987363815308,
1.0720977783203125,
2.5364344120025635,
1.2488174438476562,
-1.3338747024536133,
2.710664987564087,
0.6594752669334412,
-0.22902904450893402,
-0.957508385181427,
0.4944584369659424,
0.10506276041269302,
-1.2682732343673706,
-0.4307865798473358,
-0.9153211116790771,
-0.08317761868238449,
-0.6258077025413513,
-0.5923042297363281,
-0.04683283343911171,
0.4565540552139282,
-0.3074916899204254,
-0.39543819427490234,
-0.445968896150589,
-0.787626326084137,
0.5330485105514526,
-0.4603150486946106,
1.0154848098754883,
-0.3915090262889862,
1.9359991550445557,
-0.5392158627510071,
0.40060633420944214,
0.6456195712089539,
1.376001238822937,
0.21604707837104797,
-0.05588030070066452,
0.3090243339538574,
0.3682789206504822,
-0.029698513448238373,
0.3866603374481201,
1.0985665321350098,
0.6446390151977539,
0.5347479581832886,
0.6800950169563293,
-2.111422538757324,
1.3113529682159424,
-0.990177571773529,
0.311428964138031,
1.3722652196884155,
-1.0274306535720825,
0.40856269001960754,
-1.6975021362304688,
-0.15532344579696655,
0.5518938302993774,
-2.2617433071136475,
0.2627817392349243,
-1.2203848361968994,
-0.5520844459533691,
0.9084224104881287,
0.3591711223125458,
-1.3226276636123657,
0.006779545918107033,
-0.5352739691734314,
1.1043473482131958,
0.4359995424747467,
1.1735045909881592,
-1.682075023651123,
-0.030377626419067383,
-0.2707536220550537,
0.10623794794082642,
-1.3658089637756348,
-1.5191633701324463,
0.4350730776786804,
0.6493691205978394,
0.5895652174949646,
-0.01592399924993515,
0.8947511315345764,
-1.0194844007492065,
0.8269328474998474,
-0.9204967021942139,
-1.6551791429519653,
-1.3683255910873413,
-2.3628110885620117,
-2.3293662071228027,
0.7541698813438416,
-0.4062645137310028,
-0.5715229511260986,
2.025554895401001,
-1.0282238721847534,
-1.7276512384414673,
1.2285044193267822,
0.19358544051647186,
-0.05611786991357803,
2.4150500297546387,
0.13838809728622437,
-0.7922253012657166,
0.5035757422447205,
-0.754443347454071,
0.9006774425506592,
-0.47574934363365173,
1.4072504043579102,
0.45781707763671875,
-1.0612576007843018,
1.5744258165359497,
-0.42206835746765137,
0.5562008619308472,
-0.6743303537368774,
-0.5238204002380371,
-0.8191295266151428,
0.27686357498168945,
1.8528721332550049,
-0.29272395372390747,
1.7103815078735352,
-0.34335142374038696,
-1.524269938468933,
-1.577231764793396,
0.9328991174697876,
0.42933136224746704,
-0.7828963994979858,
0.11559807509183884,
-0.3369518220424652,
0.10778011381626129,
0.06350038945674896,
1.0232774019241333,
1.2840304374694824,
0.5964017510414124,
-0.26542145013809204,
-0.9321852922439575,
0.24452456831932068,
-0.18651995062828064,
-0.6286908984184265,
-1.8309190273284912,
-0.26004478335380554,
0.05253619700670242,
0.7001727819442749,
-1.3119425773620605,
1.6468526124954224,
0.8059948682785034,
1.93879234790802,
0.9436619281768799,
-0.3020156919956207,
1.4952679872512817,
0.06469574570655823,
1.8076746463775635,
-0.4760785698890686,
0.7484157085418701,
-0.3797433078289032,
-1.1009893417358398,
0.7152060270309448,
-0.4063405692577362,
-1.9743133783340454,
-0.8144015669822693,
-0.8248595595359802,
-0.11437961459159851,
-0.8049010634422302,
0.9608704447746277,
-0.3640916049480438,
-1.3519906997680664,
0.4446123242378235,
-0.7439650893211365,
0.11241431534290314,
-1.2675901651382446,
0.39347413182258606,
0.7498337626457214,
-0.6317905187606812,
0.07580679655075073,
-0.24383246898651123,
-1.2430014610290527,
-0.482807457447052,
0.38842347264289856,
1.9308557510375977,
-0.7501534223556519,
0.8566646575927734,
0.9538103938102722,
-0.6455798149108887,
-0.024583101272583008,
0.3790726661682129,
-0.27063485980033875,
0.8048538565635681,
-1.1132532358169556,
-0.34264668822288513,
1.1181483268737793,
-0.2737375795841217,
-0.6512207984924316,
1.4129278659820557,
0.7919116020202637,
-0.9837679266929626,
-0.10518460720777512,
-0.08419179171323776,
-0.7721197009086609,
0.01038400363177061,
-1.6501209735870361,
-0.12611745297908783,
0.3252505362033844,
-1.5615313053131104,
-0.4540199935436249,
-0.23530064523220062,
1.239791989326477,
-0.13558876514434814,
1.4961961507797241,
-0.33771413564682007,
-0.2352885603904724,
-0.3635123074054718,
-0.45935097336769104,
0.1427551656961441,
-0.19530847668647766,
-0.5400992631912231,
0.22845414280891418,
-0.7722364068031311,
0.41265252232551575,
1.3523248434066772,
0.35647618770599365,
0.045959074050188065,
0.5332410335540771,
1.0752767324447632,
0.36251506209373474,
-0.09985323995351791,
-0.8281151652336121,
-1.5447579622268677,
2.0203754901885986,
-1.4203351736068726,
2.005749464035034,
0.8848074674606323,
-0.10631272941827774,
-1.7507861852645874,
-1.8647676706314087,
1.308144211769104,
1.2395684719085693,
2.2611825466156006,
0.6663989424705505,
0.4161018133163452,
-0.845308780670166,
-0.6559031009674072,
0.2965950071811676,
-1.090969204902649,
-0.7475429177284241,
0.12449948489665985,
2.3896682262420654,
1.646223545074463,
-0.3873841464519501,
-0.14151276648044586,
-1.128480076789856,
1.347510576248169,
-0.07431752234697342,
0.20842045545578003,
2.0194332599639893,
-0.2918480932712555,
-1.1678012609481812,
1.2637875080108643,
-2.2399678230285645,
0.09487669169902802,
2.0060269832611084,
0.260652095079422,
0.0074840122833848,
-1.461525797843933,
-0.6945303082466125,
-0.2726198732852936,
-0.2627229690551758,
-1.2436693906784058,
0.5952026844024658,
-0.3132686913013458,
-0.7559723258018494,
-1.5474692583084106,
0.1374860256910324,
-1.112382173538208,
-1.6083087921142578,
0.36119309067726135,
1.9052218198776245,
2.055466413497925,
-0.6740983128547668,
1.5592806339263916,
-0.136792853474617,
0.2053932547569275,
1.2726759910583496,
1.1535415649414062,
3.15779185295105,
1.9484241008758545,
-1.2437872886657715,
0.589117705821991,
-0.07525322586297989,
-0.46635451912879944,
1.1822491884231567,
-1.1876012086868286,
1.299073576927185,
-0.19697794318199158,
-1.208349585533142,
-1.3108402490615845,
0.9974054098129272,
0.47073936462402344,
0.0705195888876915,
-0.4293399751186371,
1.2780436277389526,
0.04022817686200142,
1.3447166681289673,
0.4689745604991913,
-0.25387895107269287,
0.6071528792381287,
-0.43728527426719666,
-0.5139443874359131,
1.6268190145492554,
0.22297252714633942,
-1.4499915838241577,
-2.412003993988037,
-0.25604790449142456,
-0.7487751245498657,
-0.023535650223493576,
-0.7022594213485718,
-1.0935397148132324,
1.682189702987671,
0.4455265998840332,
-1.1524136066436768,
-0.4010080099105835,
-0.35021665692329407,
-0.6508981585502625,
2.604893207550049,
-1.4947991371154785,
-0.2890457510948181,
-0.9398438930511475,
-0.6324813365936279,
1.5647451877593994,
-1.2905126810073853,
-0.2486494928598404,
-1.0194956064224243,
-0.6358877420425415,
-1.237411618232727,
-0.6035463809967041,
-0.07824932783842087,
-0.9137813448905945,
0.7269935011863708,
0.24072611331939697,
-1.0855226516723633,
-0.21014483273029327,
-0.8786584734916687,
0.8350257873535156,
-0.020962174981832504,
0.31682875752449036,
1.8001140356063843,
0.43756088614463806,
-0.4271150827407837,
0.7389613389968872,
1.1615368127822876,
0.6898720264434814,
-0.7423961758613586,
0.09135764837265015,
-0.729769229888916,
0.19069896638393402,
-1.221548080444336,
0.34505897760391235,
-2.870309829711914,
0.5341129899024963,
-0.15357093513011932,
-0.19910398125648499,
0.0033603720366954803,
-1.3236174583435059,
1.1523818969726562,
2.6021056175231934,
-1.1078544855117798,
0.4256455600261688,
0.2648780941963196,
1.2825874090194702,
-1.6514241695404053,
0.3916477560997009,
-0.45397868752479553,
2.0619187355041504,
0.26180922985076904,
1.2227909564971924,
-0.5313612818717957,
-2.304230213165283,
0.699172854423523,
-1.244490623474121,
-1.2387244701385498,
0.7619534730911255,
-0.8974584341049194,
0.0026445453986525536,
-1.360849380493164,
-0.2670097053050995,
-0.8370225429534912,
-1.3697752952575684,
0.6589350700378418,
0.1495186984539032,
0.502400815486908,
-0.5023723840713501,
0.34436067938804626,
-2.1377522945404053,
-1.3972880840301514,
-0.26286622881889343,
-0.9417498111724854,
0.349708616733551,
-0.38024044036865234,
0.6575330495834351,
-0.30147939920425415,
0.048304036259651184,
0.3400150239467621,
1.3932290077209473,
3.4214987754821777,
0.2559950351715088,
0.41442954540252686,
-0.09723789244890213,
-0.9070649147033691,
1.4730064868927002,
0.9586169719696045,
-0.11991357058286667,
-0.6279115676879883,
-0.9640047550201416,
1.3251103162765503,
1.9659724235534668,
0.9824504852294922,
0.07669219374656677,
-0.6726463437080383,
-0.5907326936721802,
-0.04431721568107605,
0.2697165608406067,
0.45041629672050476,
0.9296043515205383,
0.008461914025247097,
0.08578774333000183,
1.4389368295669556,
1.313301682472229,
-0.5422444343566895,
0.39116421341896057,
-0.7705144882202148,
-0.48504748940467834,
0.5022537112236023,
0.3644234240055084,
-0.09126731008291245,
0.39100080728530884,
-0.9652273058891296,
-0.2505040764808655,
-0.4399561583995819,
-0.9523337483406067,
-0.7533466219902039,
-0.3766675889492035,
-0.3264998197555542,
1.7044414281845093,
0.11924217641353607,
-0.5182297229766846,
-0.11273428052663803,
-0.7722163200378418,
-0.20642028748989105,
-1.1543700695037842,
0.19876018166542053,
-0.15478335320949554,
-0.0871131420135498,
0.06373926997184753,
1.8759671449661255,
-1.0033228397369385,
-2.2165050506591797,
0.21962755918502808,
0.2660684883594513,
-0.29398608207702637,
0.16037656366825104,
1.6249669790267944,
0.47477471828460693,
1.3441956043243408,
1.348907709121704,
0.9319665431976318,
-0.7193410992622375,
-1.3099963665008545,
0.6906680464744568,
0.9473894238471985,
-1.4961504936218262,
0.7097050547599792,
-0.022608652710914612,
-0.6243140697479248,
0.76346355676651,
1.214709997177124,
0.5070477724075317,
-1.9131543636322021,
0.8057413101196289,
-0.9131735563278198,
0.8207902908325195,
0.703687310218811,
0.6495018601417542,
0.25885045528411865,
0.7947783470153809,
-1.2507721185684204,
-1.077224612236023,
-0.8099037408828735,
-0.6046767234802246,
1.875127911567688,
-0.25649526715278625,
0.4989028573036194,
-0.11166641116142273,
-1.2536637783050537,
-0.06277631968259811,
0.7206542491912842,
0.388614684343338,
-0.3378525972366333,
0.8073359727859497,
-0.709969699382782,
-1.1430611610412598,
-1.400925636291504,
-0.40264517068862915,
-0.9478237628936768,
-0.9064337015151978,
1.1141958236694336,
0.7233290076255798,
0.2556613087654114,
1.938523292541504,
0.6232408881187439,
0.2951835095882416,
-2.6453685760498047,
0.9100819230079651,
0.33962157368659973,
-0.000886356458067894,
0.9337961673736572,
0.28478604555130005,
1.008676290512085,
0.03345199301838875,
0.446275532245636,
-2.331454277038574,
2.2438690662384033,
-0.35464081168174744,
0.7470441460609436,
0.00036514922976493835,
-0.040454644709825516,
1.1548963785171509,
0.4955555200576782,
0.5640790462493896,
-1.055337905883789,
0.8371707797050476,
-0.58473140001297,
1.2326468229293823,
0.9820097088813782,
-0.8812741041183472,
-0.05894762650132179,
1.2954665422439575,
0.47698020935058594,
-0.4780030846595764,
-0.8329134583473206,
-0.863883912563324,
0.8899614810943604,
1.7964078187942505,
-0.03582039475440979,
0.11445485055446625,
0.9126454591751099,
0.5755610466003418,
-1.3331953287124634,
0.05572239309549332,
-0.7899940013885498,
-0.7556816935539246,
1.7647005319595337,
1.9969419240951538,
-0.1292058229446411,
-0.2513902485370636,
-0.7336451411247253,
-1.3272318840026855,
0.8432714939117432,
-0.01145208440721035,
0.1976100355386734,
0.6209250688552856,
-0.7093773484230042,
1.0825761556625366,
0.8876073360443115,
0.9723007678985596,
0.17397397756576538,
0.2586241662502289,
0.4350123405456543,
-0.24248485267162323,
-1.0675915479660034,
-0.2516843378543854,
-1.0857206583023071,
-2.475379705429077,
0.42392054200172424,
-0.30267590284347534,
-1.4200257062911987,
0.058186426758766174,
-1.0215214490890503,
0.9499210715293884,
-0.4861254096031189,
-0.9859545826911926,
-1.5580826997756958,
0.2513689696788788,
-0.17297597229480743,
0.845679521560669,
-1.606961727142334,
-0.0762593001127243,
1.241080641746521,
0.8018243908882141,
-0.6319604516029358,
1.0916945934295654,
0.18912281095981598,
1.016927719116211,
0.834428071975708,
-0.43852293491363525,
0.4128709137439728,
0.11762169003486633,
-1.2919167280197144,
0.5110731720924377,
1.152581810951233,
0.1371266394853592,
1.5453678369522095,
-0.5795482397079468,
-0.09696174412965775,
0.40499815344810486,
-0.4594131410121918,
-0.5474107265472412,
-0.5556134581565857,
0.7190356850624084,
0.09425289928913116,
-0.7966053485870361,
0.021598774939775467,
-0.2081260085105896,
-0.30984190106391907,
0.21023644506931305,
-1.5865581035614014,
-0.1671745926141739,
-0.4597657322883606,
-0.6728402376174927,
-1.3134535551071167,
0.06461737304925919,
1.4014593362808228,
-0.7527159452438354,
-0.25138479471206665,
0.4114396870136261,
0.4827727675437927,
0.5029819011688232,
0.6324775815010071,
-0.6189618706703186,
-0.398774653673172,
-0.3108983337879181,
-0.28701940178871155,
0.35057172179222107,
1.2631824016571045,
-0.21884386241436005,
-1.1191362142562866,
0.7454025745391846,
-0.3556565046310425,
0.11641959846019745,
1.9403132200241089,
0.1485956907272339,
-0.8113176822662354,
0.22126825153827667,
-0.7781336903572083,
2.014369010925293,
1.6318215131759644,
1.4651527404785156,
-0.08414382487535477,
-0.9437203407287598,
0.6806506514549255,
-0.15177907049655914,
-0.3954809904098511,
0.8809974193572998,
0.5408879518508911,
-0.16658754646778107,
-1.4036478996276855,
0.6082991361618042,
1.2636715173721313,
-0.8969919681549072,
-0.7341273427009583,
0.07334583252668381,
-0.7897124290466309,
1.0678088665008545,
0.6824778318405151,
0.46795377135276794,
0.23366181552410126,
1.6595280170440674,
0.7192805409431458,
-0.5953077077865601,
0.5544462203979492,
0.4564388692378998,
-0.11587981134653091,
-2.071420907974243,
-1.097144603729248,
0.43289417028427124,
-0.4384169280529022,
-1.5509884357452393,
1.360817551612854,
-1.1262539625167847,
-0.92851322889328,
0.5704602003097534,
0.10505411028862,
1.4604836702346802,
0.16411465406417847,
1.5616037845611572,
2.0244839191436768,
0.9368743896484375,
0.4299745261669159,
1.2416350841522217,
-0.13075116276741028,
-0.4207512140274048,
1.8012648820877075,
-0.4086620509624481,
0.4764064848423004,
1.1136168241500854,
-0.419805645942688,
-1.0510988235473633,
-0.6286571025848389,
-1.1380082368850708,
-0.6131129264831543,
1.0851361751556396,
0.1633405238389969,
-1.1774863004684448,
0.20108187198638916,
1.5060288906097412,
0.07944467663764954,
-0.3271891474723816,
0.37169933319091797,
0.46675580739974976,
-0.7118843793869019,
-0.0955464243888855,
-0.9883486032485962,
0.5092085003852844,
-0.20827867090702057,
-0.390170156955719,
0.32782819867134094,
0.4412897825241089,
1.244697093963623,
-0.07902750372886658,
0.13665412366390228,
1.291538119316101,
-1.357663869857788,
1.4473316669464111,
-0.5645132064819336,
0.2571185529232025,
-2.3406643867492676,
1.4322181940078735,
-0.7742282152175903,
1.900596022605896,
-2.636631488800049,
0.38152530789375305,
-0.703648567199707,
-0.33942118287086487,
0.3925749361515045,
-0.30877038836479187,
0.15845362842082977,
-0.23674719035625458,
-1.0628798007965088,
-0.13684386014938354,
-0.8027366399765015,
0.6155239343643188,
1.1520081758499146,
1.2424150705337524,
-1.0834885835647583,
-0.1793786734342575,
-1.5899277925491333,
-0.21800360083580017,
-0.6319799423217773,
0.3156379759311676,
-2.111989974975586,
-0.16813351213932037,
-2.009462594985962,
-2.3412997722625732,
-1.2925288677215576,
-0.7900221347808838,
1.087063193321228,
0.19151484966278076,
-0.9466134309768677,
1.2254973649978638,
-0.32349398732185364,
-1.7833569049835205,
1.1564568281173706,
-2.1756744384765625
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | Well I just sharded the original commonVoice dataset and pushed a small chunk of it in a private rep
What did go wrong?
Holen Sie sich Outlook für iOS<https://aka.ms/o0ukef>
________________________________
Von: Quentin Lhoest ***@***.***>
Gesendet: Tuesday, November 22, 2022 3:03:40 PM
An: huggingface/datasets ***@***.***>
Cc: capsabogdan ***@***.***>; Author ***@***.***>
Betreff: Re: [huggingface/datasets] Bug in downloading common_voice data and snall chunk of it to one's own hub (Issue #5276)
Sounds like one of the file is not a valid one, can you make sure you uploaded valid mp3 files ?
—
Reply to this email directly, view it on GitHub<https://github.com/huggingface/datasets/issues/5276#issuecomment-1323727434>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALSIFOAPAL2V4TBJTSPMAULWJTHDZANCNFSM6AAAAAASHQJ63U>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
| ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 112 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
Well I just sharded the original commonVoice dataset and pushed a small chunk of it in a private rep
What did go wrong?
Holen Sie sich Outlook für iOS<https://aka.ms/o0ukef>
________________________________
Von: Quentin Lhoest ***@***.***>
Gesendet: Tuesday, November 22, 2022 3:03:40 PM
An: huggingface/datasets ***@***.***>
Cc: capsabogdan ***@***.***>; Author ***@***.***>
Betreff: Re: [huggingface/datasets] Bug in downloading common_voice data and snall chunk of it to one's own hub (Issue #5276)
Sounds like one of the file is not a valid one, can you make sure you uploaded valid mp3 files ?
—
Reply to this email directly, view it on GitHub<https://github.com/huggingface/datasets/issues/5276#issuecomment-1323727434>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALSIFOAPAL2V4TBJTSPMAULWJTHDZANCNFSM6AAAAAASHQJ63U>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
| [
-1.2165149450302124,
-1.038955569267273,
-0.6129095554351807,
1.4359979629516602,
-0.19989962875843048,
-1.2486038208007812,
0.18720325827598572,
-1.0107054710388184,
1.6350244283676147,
-0.6475505232810974,
0.18775707483291626,
-1.6260625123977661,
-0.013724486343562603,
-0.5671889185905457,
-0.7940347790718079,
-0.8391556739807129,
-0.44313502311706543,
-0.840768039226532,
1.0719201564788818,
2.4515864849090576,
1.2651511430740356,
-1.4117517471313477,
2.7075319290161133,
0.6370638012886047,
-0.23862145841121674,
-0.9590128660202026,
0.42946648597717285,
0.10037480294704437,
-1.2706753015518188,
-0.5232616662979126,
-0.8041000962257385,
-0.14733344316482544,
-0.5584589838981628,
-0.4316534996032715,
0.05411012843251228,
0.47159600257873535,
-0.19755752384662628,
-0.38505715131759644,
-0.6125171780586243,
-0.7081079483032227,
0.4982419013977051,
-0.40318554639816284,
0.9442390203475952,
-0.39663639664649963,
1.8062620162963867,
-0.6927764415740967,
0.4603680372238159,
0.6935943365097046,
1.3426342010498047,
0.1953774243593216,
-0.004334556870162487,
0.3029244542121887,
0.408385694026947,
-0.04610123112797737,
0.412415474653244,
1.1538859605789185,
0.6764746904373169,
0.5114245414733887,
0.6756337285041809,
-2.1590566635131836,
1.3279236555099487,
-0.9376550912857056,
0.39746081829071045,
1.4637870788574219,
-0.9534907341003418,
0.372928261756897,
-1.7721705436706543,
0.008355818688869476,
0.6499744057655334,
-2.3224010467529297,
0.28246286511421204,
-1.3106391429901123,
-0.6568869948387146,
0.878819465637207,
0.3160364031791687,
-1.2861378192901611,
0.13517867028713226,
-0.6096555590629578,
1.0987225770950317,
0.38141825795173645,
1.0661907196044922,
-1.75204336643219,
-0.16238103806972504,
-0.09522770345211029,
0.09413774311542511,
-1.263588786125183,
-1.5981876850128174,
0.6004266142845154,
0.5683379173278809,
0.593622624874115,
-0.12469059228897095,
0.9386772513389587,
-1.0749199390411377,
0.8957515954971313,
-1.0912504196166992,
-1.635980486869812,
-1.4755312204360962,
-2.338566303253174,
-2.213960647583008,
0.8013917207717896,
-0.45135852694511414,
-0.48969146609306335,
1.9889041185379028,
-0.9627649784088135,
-1.6347137689590454,
1.1547240018844604,
0.241865336894989,
0.10133866965770721,
2.351731061935425,
0.17101050913333893,
-0.7140200734138489,
0.4431404173374176,
-0.8017597794532776,
0.862282931804657,
-0.3736693561077118,
1.3527491092681885,
0.36098194122314453,
-1.0300883054733276,
1.478494644165039,
-0.3886621594429016,
0.6294010281562805,
-0.6302963495254517,
-0.6075674891471863,
-0.773128092288971,
0.2862105667591095,
1.9033982753753662,
-0.20704101026058197,
1.6094415187835693,
-0.3635573089122772,
-1.6389307975769043,
-1.5552151203155518,
0.9550273418426514,
0.47830289602279663,
-0.8719884157180786,
0.032143570482730865,
-0.5305971503257751,
0.11685752868652344,
-0.0920017808675766,
1.081519365310669,
1.2830737829208374,
0.6590510606765747,
-0.42276307940483093,
-0.8237818479537964,
0.14420552551746368,
-0.1756512075662613,
-0.698947548866272,
-1.8241970539093018,
-0.29178211092948914,
0.2097671627998352,
0.6246118545532227,
-1.242708444595337,
1.6548175811767578,
0.8714585900306702,
2.018320322036743,
0.9617921113967896,
-0.3679901361465454,
1.4218010902404785,
0.1108090877532959,
1.7918351888656616,
-0.6477441191673279,
0.6881114840507507,
-0.3466435372829437,
-0.9964208006858826,
0.8342012763023376,
-0.42437395453453064,
-2.044213056564331,
-0.7617750763893127,
-0.7369312644004822,
-0.2284526377916336,
-0.7661237120628357,
0.8923361897468567,
-0.30386775732040405,
-1.366203784942627,
0.2564839720726013,
-0.7312709093093872,
0.2553129196166992,
-1.2024729251861572,
0.31958985328674316,
0.8314022421836853,
-0.5762209296226501,
-0.02779182605445385,
-0.18968918919563293,
-1.2676187753677368,
-0.5180718302726746,
0.421636700630188,
1.919535517692566,
-0.6143908500671387,
0.9308132529258728,
0.9594275951385498,
-0.65215003490448,
0.1049228310585022,
0.2657315135002136,
-0.27960193157196045,
0.7938000559806824,
-1.1457489728927612,
-0.365511953830719,
1.0550882816314697,
-0.3453862965106964,
-0.5499531626701355,
1.4720513820648193,
0.781096875667572,
-0.9917536973953247,
-0.23234325647354126,
-0.11785189807415009,
-0.8176690936088562,
0.06413665413856506,
-1.5647814273834229,
-0.12031807005405426,
0.380464106798172,
-1.5598982572555542,
-0.46736761927604675,
-0.2586941719055176,
1.3030290603637695,
-0.1958136111497879,
1.3800266981124878,
-0.2792944610118866,
-0.2214643806219101,
-0.3614038825035095,
-0.4453725218772888,
0.17176970839500427,
-0.3100780248641968,
-0.5408132076263428,
0.15965145826339722,
-0.8177345395088196,
0.4063432514667511,
1.4310284852981567,
0.3495079576969147,
-0.0007559498772025108,
0.4500652253627777,
1.1048920154571533,
0.34876251220703125,
-0.09493148326873779,
-0.8104075789451599,
-1.5531796216964722,
1.9970859289169312,
-1.488568902015686,
1.9475212097167969,
0.8705167174339294,
-0.12216870486736298,
-1.698013186454773,
-1.901808738708496,
1.1813030242919922,
1.1729449033737183,
2.3415544033050537,
0.5349332094192505,
0.43757060170173645,
-0.8342412114143372,
-0.6906179189682007,
0.20750799775123596,
-1.0482109785079956,
-0.6710798144340515,
0.12713833153247833,
2.4162724018096924,
1.747112512588501,
-0.5118262767791748,
-0.1878681629896164,
-1.0407567024230957,
1.4481168985366821,
-0.13421380519866943,
0.2914864718914032,
2.067793130874634,
-0.2092757672071457,
-1.0632147789001465,
1.3272950649261475,
-2.2785961627960205,
0.22592128813266754,
2.080242395401001,
0.3357301950454712,
0.12579889595508575,
-1.390974760055542,
-0.5454789996147156,
-0.42894572019577026,
-0.28988292813301086,
-1.2660578489303589,
0.5887562036514282,
-0.25316712260246277,
-0.7959490418434143,
-1.5046905279159546,
0.1625708043575287,
-1.1217057704925537,
-1.6233245134353638,
0.3738616406917572,
1.9495118856430054,
2.0408637523651123,
-0.6452544331550598,
1.482448697090149,
-0.3008493185043335,
0.051074378192424774,
1.1835942268371582,
1.2493109703063965,
3.124844551086426,
1.9534401893615723,
-1.178719162940979,
0.5778111815452576,
-0.21065862476825714,
-0.4645322263240814,
1.0370490550994873,
-1.1879613399505615,
1.253542184829712,
-0.17011448740959167,
-1.1573635339736938,
-1.2709826231002808,
1.0723419189453125,
0.5674623847007751,
0.09455595910549164,
-0.5147727131843567,
1.2019858360290527,
0.042053163051605225,
1.3765032291412354,
0.5385449528694153,
-0.36366936564445496,
0.5641230940818787,
-0.4529913067817688,
-0.5576452612876892,
1.6510801315307617,
0.2570207715034485,
-1.5211139917373657,
-2.335458278656006,
-0.2926228642463684,
-0.8470315933227539,
0.03845827654004097,
-0.6824401617050171,
-1.0790212154388428,
1.6558263301849365,
0.42553654313087463,
-1.2761043310165405,
-0.3156660497188568,
-0.2684345841407776,
-0.6239649057388306,
2.639402389526367,
-1.3638343811035156,
-0.19748079776763916,
-0.907898485660553,
-0.6077573895454407,
1.6727274656295776,
-1.3003002405166626,
-0.30935078859329224,
-1.1083810329437256,
-0.6336951851844788,
-1.0690460205078125,
-0.4776100814342499,
-0.07389064133167267,
-0.9424920082092285,
0.8483002185821533,
0.13251826167106628,
-1.1531013250350952,
-0.26591843366622925,
-0.9119983911514282,
0.9338085055351257,
-0.09398473799228668,
0.15856434404850006,
1.775040626525879,
0.3157089352607727,
-0.39739641547203064,
0.7722752690315247,
1.1948720216751099,
0.693104088306427,
-0.7914153933525085,
-0.04180845990777016,
-0.5943488478660583,
0.30486035346984863,
-1.2941380739212036,
0.36394211649894714,
-2.8977842330932617,
0.6305447816848755,
-0.10805948078632355,
-0.1735055297613144,
0.00024266541004180908,
-1.400289535522461,
1.2071508169174194,
2.5734894275665283,
-1.1755805015563965,
0.47345462441444397,
0.40695106983184814,
1.1951261758804321,
-1.7032685279846191,
0.4161897301673889,
-0.44100576639175415,
2.1112310886383057,
0.25305187702178955,
1.246835470199585,
-0.5661442875862122,
-2.3052048683166504,
0.586937427520752,
-1.1737769842147827,
-1.1691336631774902,
0.6222278475761414,
-0.9382806420326233,
0.15077818930149078,
-1.5153189897537231,
-0.2875210642814636,
-0.8954278826713562,
-1.329195499420166,
0.6054707169532776,
0.12898433208465576,
0.372040718793869,
-0.5925187468528748,
0.3071307837963104,
-2.215284824371338,
-1.4034597873687744,
-0.3064216673374176,
-0.9164111018180847,
0.5159843564033508,
-0.4738210141658783,
0.6480114459991455,
-0.08459757268428802,
0.08391031622886658,
0.30714261531829834,
1.500413179397583,
3.381014585494995,
0.1618950515985489,
0.26799631118774414,
-0.14160272479057312,
-0.8411176204681396,
1.404279351234436,
0.9550584554672241,
0.022045660763978958,
-0.6011126637458801,
-0.9365905523300171,
1.3600497245788574,
2.0455715656280518,
1.0106996297836304,
0.033944375813007355,
-0.770679235458374,
-0.6356578469276428,
-0.03300239518284798,
0.2968854606151581,
0.4904026985168457,
0.9380522966384888,
0.026195839047431946,
0.10752791166305542,
1.3991564512252808,
1.22588050365448,
-0.4263710677623749,
0.3951912522315979,
-0.8407198190689087,
-0.47791510820388794,
0.3954099416732788,
0.328337162733078,
-0.08442087471485138,
0.39165666699409485,
-1.0418517589569092,
-0.22727417945861816,
-0.3708496391773224,
-0.8681071400642395,
-0.7725554704666138,
-0.3871992826461792,
-0.4345351755619049,
1.666426181793213,
0.14917127788066864,
-0.4897744655609131,
-0.012641746550798416,
-0.6236692070960999,
-0.1474256068468094,
-1.230491280555725,
0.29077088832855225,
-0.0839429646730423,
-0.041455741971731186,
-0.10539691150188446,
1.7700083255767822,
-0.9063283205032349,
-2.1609787940979004,
0.14708936214447021,
0.2983400225639343,
-0.4353903830051422,
0.11223900318145752,
1.6800646781921387,
0.47294649481773376,
1.4459984302520752,
1.3155698776245117,
0.9813836216926575,
-0.6597808003425598,
-1.3232964277267456,
0.6593429446220398,
0.9088379144668579,
-1.3673794269561768,
0.7442262172698975,
-0.08344334363937378,
-0.5557531118392944,
0.7770910859107971,
1.333510160446167,
0.46084868907928467,
-2.037424325942993,
0.9120641946792603,
-1.058009147644043,
0.8763061761856079,
0.7661480903625488,
0.6723534464836121,
0.314283162355423,
0.8843799233436584,
-1.2932113409042358,
-1.0823744535446167,
-0.8334835767745972,
-0.6688855290412903,
2.0138111114501953,
-0.35490188002586365,
0.47315505146980286,
-0.12471956014633179,
-1.185713529586792,
-0.06472451984882355,
0.7978161573410034,
0.5258004665374756,
-0.30990785360336304,
0.805191695690155,
-0.6788027882575989,
-1.0474704504013062,
-1.2290935516357422,
-0.3851485550403595,
-0.9062966704368591,
-0.9657548069953918,
1.0033289194107056,
0.7919725179672241,
0.4613671898841858,
1.9266661405563354,
0.6227098107337952,
0.37972861528396606,
-2.5782251358032227,
0.8850669860839844,
0.3204035460948944,
-0.09878011047840118,
0.9696146845817566,
0.3380347490310669,
1.0952398777008057,
0.14468970894813538,
0.4784683287143707,
-2.415440797805786,
2.1827540397644043,
-0.2273191213607788,
0.7326933741569519,
-0.02276591956615448,
-0.12144917249679565,
1.2351274490356445,
0.5536986589431763,
0.42014747858047485,
-1.022882103919983,
0.8034245371818542,
-0.4973207712173462,
1.156976580619812,
0.764509379863739,
-0.7548170685768127,
0.00542906578630209,
1.318511962890625,
0.48813048005104065,
-0.5385546684265137,
-0.9744861721992493,
-0.8268033266067505,
0.8695406317710876,
1.721588373184204,
-0.08871011435985565,
0.016591530293226242,
0.8020675778388977,
0.6534096002578735,
-1.2103387117385864,
0.08714555203914642,
-0.697344958782196,
-0.7298284769058228,
1.651039958000183,
2.0875768661499023,
-0.09265315532684326,
-0.1094837635755539,
-0.6294168829917908,
-1.3311861753463745,
0.7587790489196777,
-0.0626998245716095,
0.1373942345380783,
0.5601323843002319,
-0.6331081390380859,
1.004366397857666,
0.7701025605201721,
1.0476027727127075,
-0.006409546360373497,
0.335889607667923,
0.48281130194664,
-0.31334763765335083,
-1.1064369678497314,
-0.3867476284503937,
-1.1567699909210205,
-2.4325578212738037,
0.4395846426486969,
-0.27647897601127625,
-1.4471819400787354,
0.07019513845443726,
-1.072219729423523,
0.943650484085083,
-0.6166534423828125,
-1.0606368780136108,
-1.6270127296447754,
0.23186469078063965,
-0.1028001457452774,
0.9489988684654236,
-1.5975786447525024,
-0.2389020323753357,
1.1022253036499023,
0.6422895193099976,
-0.5925643444061279,
0.9844905138015747,
0.16797135770320892,
0.9737523794174194,
0.7565546631813049,
-0.4108137786388397,
0.45173293352127075,
0.1393136978149414,
-1.3635591268539429,
0.544385552406311,
1.2286747694015503,
0.16430290043354034,
1.4601202011108398,
-0.5432068705558777,
-0.012650548480451107,
0.45854252576828003,
-0.5895936489105225,
-0.49413275718688965,
-0.38987329602241516,
0.6769317388534546,
0.06730739772319794,
-0.9486621618270874,
-0.03653775900602341,
-0.25040993094444275,
-0.3249858021736145,
0.19362801313400269,
-1.5196490287780762,
-0.21535184979438782,
-0.5016998648643494,
-0.5360772013664246,
-1.2812707424163818,
0.014823367819190025,
1.417976975440979,
-0.6490949988365173,
-0.2749843895435333,
0.5007774829864502,
0.6097214818000793,
0.5304834842681885,
0.7140954732894897,
-0.6875537633895874,
-0.282972127199173,
-0.3262012302875519,
-0.2907164394855499,
0.2676023840904236,
1.3182919025421143,
-0.11996358633041382,
-1.027858018875122,
0.6724557876586914,
-0.4817306697368622,
0.10821923613548279,
2.028433322906494,
0.13686950504779816,
-0.732184648513794,
0.31121695041656494,
-0.8158065676689148,
1.929790735244751,
1.6247178316116333,
1.3665579557418823,
-0.09573240578174591,
-0.9718315601348877,
0.5835122466087341,
-0.21577870845794678,
-0.43352454900741577,
0.8526064157485962,
0.502220869064331,
-0.2786881625652313,
-1.4386006593704224,
0.6550253629684448,
1.2697649002075195,
-0.9242969751358032,
-0.776517927646637,
0.2161591500043869,
-0.8214266300201416,
1.2004667520523071,
0.5455011129379272,
0.45625796914100647,
0.24891480803489685,
1.6321767568588257,
0.6950331926345825,
-0.4732859432697296,
0.5140666365623474,
0.5412757396697998,
-0.23739883303642273,
-2.103549003601074,
-1.2568165063858032,
0.40822160243988037,
-0.5058899521827698,
-1.5226502418518066,
1.3548105955123901,
-1.0691672563552856,
-1.0003372430801392,
0.5144078135490417,
0.12364327907562256,
1.3945714235305786,
0.3410819172859192,
1.6569188833236694,
2.0857739448547363,
0.8933855891227722,
0.49872809648513794,
1.2971675395965576,
-0.07555072009563446,
-0.5859168767929077,
1.852067470550537,
-0.4408383369445801,
0.5362443327903748,
1.1582788228988647,
-0.44877371191978455,
-1.2012860774993896,
-0.6960748434066772,
-1.074280858039856,
-0.6401959657669067,
1.1144700050354004,
0.09582976996898651,
-1.154988169670105,
0.2357327789068222,
1.537731647491455,
0.18410319089889526,
-0.2620672583580017,
0.4546319544315338,
0.36130958795547485,
-0.7863430976867676,
-0.08938878774642944,
-1.0208660364151,
0.489231139421463,
-0.26431694626808167,
-0.3534742593765259,
0.25888338685035706,
0.575245201587677,
1.2525224685668945,
-0.13694606721401215,
0.07779160141944885,
1.135468602180481,
-1.4608460664749146,
1.4491750001907349,
-0.5671088695526123,
0.27383744716644287,
-2.3585572242736816,
1.4173495769500732,
-0.6218433976173401,
1.9559215307235718,
-2.643371105194092,
0.3427724838256836,
-0.6360310912132263,
-0.42097610235214233,
0.38684552907943726,
-0.24181640148162842,
0.18650875985622406,
-0.14115476608276367,
-1.1623421907424927,
-0.0033317720517516136,
-0.7778672575950623,
0.6659438014030457,
1.1894396543502808,
1.396428108215332,
-1.1026396751403809,
-0.161424458026886,
-1.613834023475647,
-0.1851075142621994,
-0.7678683400154114,
0.27567920088768005,
-2.0009665489196777,
-0.060411132872104645,
-1.930136799812317,
-2.198383331298828,
-1.277936577796936,
-0.8376350998878479,
0.9652026295661926,
0.23928019404411316,
-0.8988646864891052,
1.2388794422149658,
-0.3402574956417084,
-1.7278416156768799,
1.0600606203079224,
-2.2057418823242188
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | It should be all good then !
Could you share a link to your repository for me to investigate what went wrong ? | ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 23 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
It should be all good then !
Could you share a link to your repository for me to investigate what went wrong ? | [
-1.2314778566360474,
-0.997174084186554,
-0.7661173939704895,
1.4328819513320923,
-0.18563005328178406,
-1.1878058910369873,
0.1385161578655243,
-1.0476622581481934,
1.5914175510406494,
-0.8040013313293457,
0.24579352140426636,
-1.6527099609375,
0.09208837896585464,
-0.5104434490203857,
-0.7547081708908081,
-0.9196726679801941,
-0.4065639078617096,
-0.7530105113983154,
1.075211524963379,
2.531606912612915,
1.2174235582351685,
-1.3824812173843384,
2.734818458557129,
0.6666553616523743,
-0.19254302978515625,
-0.9580978751182556,
0.5038024187088013,
0.12249452620744705,
-1.2935749292373657,
-0.40871989727020264,
-0.9317057132720947,
-0.09746214747428894,
-0.6235005259513855,
-0.5850830078125,
-0.002328546717762947,
0.45097702741622925,
-0.2669112980365753,
-0.42128145694732666,
-0.45290908217430115,
-0.75398850440979,
0.5183883309364319,
-0.45246976613998413,
1.02903413772583,
-0.3982369601726532,
1.8917735815048218,
-0.5192098617553711,
0.43269041180610657,
0.632999837398529,
1.3866978883743286,
0.20290249586105347,
-0.05397180840373039,
0.3205854296684265,
0.38456466794013977,
-0.0316372886300087,
0.36957499384880066,
1.0990129709243774,
0.655725359916687,
0.5499415397644043,
0.6681220531463623,
-2.1001036167144775,
1.299803376197815,
-0.9769713282585144,
0.3311464190483093,
1.3978122472763062,
-0.9875801205635071,
0.4055255651473999,
-1.7206977605819702,
-0.14358803629875183,
0.5482326149940491,
-2.27331805229187,
0.25852879881858826,
-1.1899642944335938,
-0.5709223747253418,
0.9342129826545715,
0.3470185101032257,
-1.314893364906311,
0.023284055292606354,
-0.5515134930610657,
1.1206318140029907,
0.39906439185142517,
1.1449767351150513,
-1.6675658226013184,
-0.03653332591056824,
-0.30193573236465454,
0.10119090974330902,
-1.3248577117919922,
-1.5248441696166992,
0.4412379860877991,
0.6776829957962036,
0.5763576030731201,
-0.002726570703089237,
0.8548023104667664,
-1.0214216709136963,
0.847585916519165,
-0.9349983334541321,
-1.6237537860870361,
-1.3518627882003784,
-2.3553738594055176,
-2.3368465900421143,
0.778335690498352,
-0.3977169692516327,
-0.5560250878334045,
1.9828770160675049,
-1.0025068521499634,
-1.7329801321029663,
1.2155786752700806,
0.21097558736801147,
-0.058248091489076614,
2.3975372314453125,
0.12469706684350967,
-0.7716973423957825,
0.5197068452835083,
-0.756934404373169,
0.8938325047492981,
-0.5154407024383545,
1.407251238822937,
0.4676385223865509,
-1.0409938097000122,
1.577017068862915,
-0.4193139374256134,
0.5705410838127136,
-0.7147505283355713,
-0.5467263460159302,
-0.8435447812080383,
0.28439828753471375,
1.889555811882019,
-0.27264806628227234,
1.6976244449615479,
-0.3406851291656494,
-1.5407689809799194,
-1.5706785917282104,
0.9436379075050354,
0.44180750846862793,
-0.7687517404556274,
0.1289980709552765,
-0.32837480306625366,
0.12177365273237228,
0.047262560576200485,
1.0061389207839966,
1.2787659168243408,
0.624518871307373,
-0.24474528431892395,
-0.9471802711486816,
0.23202133178710938,
-0.1860889494419098,
-0.6314671635627747,
-1.8470494747161865,
-0.28620049357414246,
0.06788726896047592,
0.6774346828460693,
-1.3130213022232056,
1.6455765962600708,
0.7864055037498474,
1.9394886493682861,
0.9443122148513794,
-0.3106485605239868,
1.5151045322418213,
0.08844690024852753,
1.7970107793807983,
-0.4889777600765228,
0.7496213912963867,
-0.3613552451133728,
-1.0845239162445068,
0.7318235635757446,
-0.39983636140823364,
-1.9898964166641235,
-0.780931293964386,
-0.8052168488502502,
-0.1557866930961609,
-0.787754476070404,
0.9641559720039368,
-0.38003283739089966,
-1.3338912725448608,
0.4613017439842224,
-0.7264680862426758,
0.15226373076438904,
-1.2394843101501465,
0.40251484513282776,
0.757763683795929,
-0.6214373111724854,
0.08617745339870453,
-0.2639252841472626,
-1.2448985576629639,
-0.462595671415329,
0.373399943113327,
1.9099739789962769,
-0.7623903751373291,
0.8421036601066589,
0.9382678866386414,
-0.6337157487869263,
-0.05586889013648033,
0.3877190351486206,
-0.2693505585193634,
0.82784503698349,
-1.134864330291748,
-0.3488215208053589,
1.1243470907211304,
-0.2852884531021118,
-0.6111739277839661,
1.422876000404358,
0.8014421463012695,
-0.976094663143158,
-0.1166367456316948,
-0.08032304048538208,
-0.8112465143203735,
0.0233471542596817,
-1.663832426071167,
-0.14392903447151184,
0.299814373254776,
-1.5644567012786865,
-0.45748257637023926,
-0.2520119845867157,
1.2238017320632935,
-0.1632014513015747,
1.5038667917251587,
-0.3202331066131592,
-0.23941254615783691,
-0.36881330609321594,
-0.4759877324104309,
0.10548673570156097,
-0.19881895184516907,
-0.5675098299980164,
0.23809945583343506,
-0.7505694627761841,
0.42401841282844543,
1.366378903388977,
0.3526393175125122,
0.06230858713388443,
0.5400311350822449,
1.0516009330749512,
0.3582598865032196,
-0.09113825857639313,
-0.8343467712402344,
-1.5730963945388794,
2.0249674320220947,
-1.4469237327575684,
1.9893107414245605,
0.8826822638511658,
-0.12157678604125977,
-1.7532434463500977,
-1.8438971042633057,
1.3299494981765747,
1.234523892402649,
2.3017070293426514,
0.6644124388694763,
0.44469431042671204,
-0.8704498410224915,
-0.6516968011856079,
0.29242950677871704,
-1.0656050443649292,
-0.7827590107917786,
0.1333726942539215,
2.378232002258301,
1.6433769464492798,
-0.41012299060821533,
-0.1281275749206543,
-1.1175754070281982,
1.3621238470077515,
-0.07201540470123291,
0.21646466851234436,
2.027703285217285,
-0.28661680221557617,
-1.1518337726593018,
1.2538018226623535,
-2.233438014984131,
0.10193298757076263,
2.009319305419922,
0.25116172432899475,
0.021499881520867348,
-1.444879174232483,
-0.6881462931632996,
-0.29450085759162903,
-0.257400780916214,
-1.2286380529403687,
0.5941532254219055,
-0.2792102098464966,
-0.7338261604309082,
-1.5443618297576904,
0.13856929540634155,
-1.1407982110977173,
-1.5806490182876587,
0.3631154000759125,
1.8992475271224976,
2.062687397003174,
-0.6850035190582275,
1.540516972541809,
-0.14755693078041077,
0.21713721752166748,
1.2752857208251953,
1.1150447130203247,
3.1642088890075684,
1.9443624019622803,
-1.2292261123657227,
0.6099268198013306,
-0.11234308779239655,
-0.4685240387916565,
1.1727956533432007,
-1.1666821241378784,
1.315772533416748,
-0.18176013231277466,
-1.1846060752868652,
-1.286017894744873,
1.007022500038147,
0.4884360134601593,
0.08173426985740662,
-0.44936540722846985,
1.2679178714752197,
0.03338661044836044,
1.339022159576416,
0.43017327785491943,
-0.24204692244529724,
0.5773652195930481,
-0.42196646332740784,
-0.5256298184394836,
1.626039743423462,
0.23208126425743103,
-1.472334384918213,
-2.4092957973480225,
-0.2643589675426483,
-0.7623351812362671,
-0.040438152849674225,
-0.7149924635887146,
-1.10080087184906,
1.6757866144180298,
0.4203411042690277,
-1.1449854373931885,
-0.3966723680496216,
-0.3034929633140564,
-0.6533510088920593,
2.6021628379821777,
-1.509276032447815,
-0.3174874484539032,
-0.9523165225982666,
-0.5997900366783142,
1.5734195709228516,
-1.3020613193511963,
-0.23741796612739563,
-0.9781096577644348,
-0.6335004568099976,
-1.2330201864242554,
-0.5753630995750427,
-0.07862725108861923,
-0.9141535758972168,
0.7128366231918335,
0.23737305402755737,
-1.0887982845306396,
-0.19181972742080688,
-0.8882240056991577,
0.8104469776153564,
-0.015626855194568634,
0.3391425311565399,
1.8042128086090088,
0.44230595231056213,
-0.39817070960998535,
0.722253143787384,
1.1678457260131836,
0.6777008175849915,
-0.7482922077178955,
0.08878903836011887,
-0.7468551397323608,
0.2023356556892395,
-1.213416337966919,
0.3612443506717682,
-2.861924648284912,
0.5584990382194519,
-0.1022934764623642,
-0.2099456787109375,
0.01524902693927288,
-1.3090482950210571,
1.1375951766967773,
2.6052238941192627,
-1.1505709886550903,
0.4363851249217987,
0.28438419103622437,
1.2730623483657837,
-1.6369376182556152,
0.40438202023506165,
-0.42463594675064087,
2.0807671546936035,
0.2590799927711487,
1.1906932592391968,
-0.5559970736503601,
-2.348341464996338,
0.6698287725448608,
-1.2450811862945557,
-1.2538416385650635,
0.7255176305770874,
-0.9108152985572815,
-0.01908702403306961,
-1.3901726007461548,
-0.24405983090400696,
-0.8452814817428589,
-1.372930645942688,
0.6491026282310486,
0.136826753616333,
0.48415154218673706,
-0.5434028506278992,
0.3680804967880249,
-2.1232595443725586,
-1.4053603410720825,
-0.2745547592639923,
-0.9396848678588867,
0.37915119528770447,
-0.36364248394966125,
0.6687687635421753,
-0.26083847880363464,
0.07253174483776093,
0.3207107484340668,
1.3767223358154297,
3.4327287673950195,
0.2594204843044281,
0.40712103247642517,
-0.1194038987159729,
-0.8982001543045044,
1.4677892923355103,
0.9666780233383179,
-0.11070165783166885,
-0.628070056438446,
-0.9320526123046875,
1.3336588144302368,
1.9709950685501099,
0.9815099239349365,
0.06823927164077759,
-0.7039422392845154,
-0.595744788646698,
-0.041861988604068756,
0.24573123455047607,
0.42510753870010376,
0.9360840320587158,
0.020377706736326218,
0.11780577152967453,
1.4177086353302002,
1.3442074060440063,
-0.5252580642700195,
0.34047603607177734,
-0.7772108316421509,
-0.4827270209789276,
0.5150467157363892,
0.39342525601387024,
-0.08299374580383301,
0.378951758146286,
-0.9641863107681274,
-0.21930164098739624,
-0.46672534942626953,
-0.9753134846687317,
-0.7569777369499207,
-0.39671847224235535,
-0.3251185715198517,
1.698622465133667,
0.11360219866037369,
-0.5480833649635315,
-0.10283325612545013,
-0.8060108423233032,
-0.18903791904449463,
-1.1301313638687134,
0.19769465923309326,
-0.14140895009040833,
-0.0957329124212265,
0.08333295583724976,
1.8904764652252197,
-1.0044007301330566,
-2.225944995880127,
0.20152434706687927,
0.2726399600505829,
-0.2979523241519928,
0.15903916954994202,
1.6205111742019653,
0.4613364040851593,
1.3373122215270996,
1.3533660173416138,
0.919157087802887,
-0.705916702747345,
-1.3258057832717896,
0.6972647905349731,
0.9409242868423462,
-1.4936939477920532,
0.7088078856468201,
-0.01779136434197426,
-0.6107320785522461,
0.7796849608421326,
1.2081248760223389,
0.5126084089279175,
-1.890920877456665,
0.8112470507621765,
-0.9185963273048401,
0.8041191697120667,
0.7119249105453491,
0.6380677819252014,
0.26619037985801697,
0.8158177733421326,
-1.263338565826416,
-1.0704827308654785,
-0.8528892397880554,
-0.6111499071121216,
1.878748893737793,
-0.2605912983417511,
0.4681013226509094,
-0.09473133832216263,
-1.2605600357055664,
-0.06808729469776154,
0.7318492531776428,
0.40226149559020996,
-0.3278290033340454,
0.7804292440414429,
-0.7396824955940247,
-1.161417841911316,
-1.4011050462722778,
-0.4316510260105133,
-0.9296955466270447,
-0.9275052547454834,
1.1279854774475098,
0.7432026863098145,
0.2700554132461548,
1.9392595291137695,
0.6196312308311462,
0.2899421155452728,
-2.6673688888549805,
0.8940079212188721,
0.3180643618106842,
0.00987883098423481,
0.9653516411781311,
0.2914014160633087,
1.017533540725708,
0.02048165164887905,
0.45613935589790344,
-2.3249197006225586,
2.26509952545166,
-0.3673360347747803,
0.7350146770477295,
-0.009216767735779285,
-0.015290051698684692,
1.1694384813308716,
0.49062877893447876,
0.5445847511291504,
-1.0922623872756958,
0.8134703040122986,
-0.585673987865448,
1.2359609603881836,
0.9369734525680542,
-0.8705026507377625,
-0.05152364447712898,
1.2777904272079468,
0.45585542917251587,
-0.4792630970478058,
-0.8407033085823059,
-0.8578486442565918,
0.9045037031173706,
1.8006298542022705,
-0.029725022614002228,
0.12261936813592911,
0.9233771562576294,
0.5785540342330933,
-1.3598443269729614,
0.046041492372751236,
-0.7649312019348145,
-0.7649533748626709,
1.744398832321167,
2.0161168575286865,
-0.09750721603631973,
-0.2539263963699341,
-0.7217252850532532,
-1.349800944328308,
0.8287541270256042,
0.042464111000299454,
0.21651718020439148,
0.6077090501785278,
-0.6942708492279053,
1.0667320489883423,
0.9006952047348022,
0.9856235384941101,
0.12831395864486694,
0.26927274465560913,
0.4150550961494446,
-0.24228736758232117,
-1.0881743431091309,
-0.27293920516967773,
-1.0804394483566284,
-2.4986956119537354,
0.41066983342170715,
-0.2822878658771515,
-1.4280970096588135,
0.06499657034873962,
-1.001705288887024,
0.9331712126731873,
-0.49073195457458496,
-1.010167121887207,
-1.572179913520813,
0.24869728088378906,
-0.17935168743133545,
0.8650170564651489,
-1.614500641822815,
-0.10061265528202057,
1.2275947332382202,
0.8188183903694153,
-0.6098434925079346,
1.1071960926055908,
0.22797513008117676,
0.9700671434402466,
0.8337546586990356,
-0.4506603181362152,
0.4167986214160919,
0.13089320063591003,
-1.2997419834136963,
0.5295224785804749,
1.1462825536727905,
0.16838103532791138,
1.4933338165283203,
-0.6146925091743469,
-0.07397348433732986,
0.3844698965549469,
-0.47102880477905273,
-0.5216326713562012,
-0.5608430504798889,
0.7212655544281006,
0.11347632110118866,
-0.8309005498886108,
-0.008557765744626522,
-0.20728692412376404,
-0.28709861636161804,
0.1944548785686493,
-1.580547571182251,
-0.16895043849945068,
-0.4457104206085205,
-0.7009578943252563,
-1.2797362804412842,
0.06453776359558105,
1.416284441947937,
-0.7792410850524902,
-0.23587173223495483,
0.41464924812316895,
0.515209436416626,
0.5130096673965454,
0.6335177421569824,
-0.6393210887908936,
-0.3980003297328949,
-0.28326475620269775,
-0.2913864850997925,
0.35896310210227966,
1.2490222454071045,
-0.2276591956615448,
-1.1248589754104614,
0.7657361030578613,
-0.3679443895816803,
0.12475229054689407,
1.9260083436965942,
0.1466851532459259,
-0.8184388279914856,
0.21902397274971008,
-0.7703085541725159,
2.024024724960327,
1.6553771495819092,
1.4703820943832397,
-0.0796542838215828,
-0.9104747176170349,
0.6543712615966797,
-0.14572805166244507,
-0.37558916211128235,
0.8691176772117615,
0.5502653121948242,
-0.15909737348556519,
-1.4025418758392334,
0.5948680639266968,
1.2673301696777344,
-0.8977437019348145,
-0.743194580078125,
0.09594754874706268,
-0.7928870916366577,
1.0683459043502808,
0.712397575378418,
0.4854724407196045,
0.22155362367630005,
1.6513983011245728,
0.7189685702323914,
-0.5877894163131714,
0.5434989333152771,
0.47395169734954834,
-0.112705297768116,
-2.0446548461914062,
-1.089325189590454,
0.44023123383522034,
-0.4329110085964203,
-1.5488629341125488,
1.3462285995483398,
-1.1382819414138794,
-0.9320207238197327,
0.5328364372253418,
0.12120368331670761,
1.495245099067688,
0.1751231849193573,
1.5566049814224243,
2.001725673675537,
0.9483681917190552,
0.42083939909935,
1.2385174036026,
-0.13783103227615356,
-0.42268437147140503,
1.8430204391479492,
-0.40283316373825073,
0.4894905686378479,
1.1073189973831177,
-0.4339514970779419,
-1.042994499206543,
-0.61117023229599,
-1.1343660354614258,
-0.5789815187454224,
1.0931363105773926,
0.17893338203430176,
-1.174352765083313,
0.19359126687049866,
1.526752233505249,
0.05994664877653122,
-0.3069881796836853,
0.36783286929130554,
0.4636487066745758,
-0.707284688949585,
-0.08866099268198013,
-0.9893133044242859,
0.5317663550376892,
-0.22093725204467773,
-0.367866188287735,
0.3037635087966919,
0.44425809383392334,
1.2482575178146362,
-0.07369006425142288,
0.11258792877197266,
1.2743169069290161,
-1.3814319372177124,
1.3988375663757324,
-0.5861144661903381,
0.23814630508422852,
-2.3431172370910645,
1.4229458570480347,
-0.7351489663124084,
1.8953349590301514,
-2.6364219188690186,
0.36102062463760376,
-0.7368910312652588,
-0.3473369777202606,
0.3964378833770752,
-0.31800639629364014,
0.1567331850528717,
-0.25245919823646545,
-1.0655559301376343,
-0.138953298330307,
-0.8053198456764221,
0.6420052647590637,
1.1463003158569336,
1.2273402214050293,
-1.0613632202148438,
-0.16737708449363708,
-1.6123902797698975,
-0.21095359325408936,
-0.6190938353538513,
0.2872704565525055,
-2.11803936958313,
-0.1514471173286438,
-2.0083770751953125,
-2.3185198307037354,
-1.339036464691162,
-0.762976884841919,
1.0818465948104858,
0.18215954303741455,
-0.9171369075775146,
1.2363426685333252,
-0.3579345941543579,
-1.8010340929031372,
1.157610297203064,
-2.1856138706207275
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | https://huggingface.co/datasets/DTU54DL/common-voice-test16k
Am Di., 22. Nov. 2022 um 16:43 Uhr schrieb Quentin Lhoest <
***@***.***>:
> It should be all good then !
> Could you share a link to your repository for me to investigate what went
> wrong ?
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/5276#issuecomment-1323876682>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALSIFOEUJRZWXAM7DYA5VJDWJTS3NANCNFSM6AAAAAASHQJ63U>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
| ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 76 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
https://huggingface.co/datasets/DTU54DL/common-voice-test16k
Am Di., 22. Nov. 2022 um 16:43 Uhr schrieb Quentin Lhoest <
***@***.***>:
> It should be all good then !
> Could you share a link to your repository for me to investigate what went
> wrong ?
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/5276#issuecomment-1323876682>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALSIFOEUJRZWXAM7DYA5VJDWJTS3NANCNFSM6AAAAAASHQJ63U>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
| [
-1.1809501647949219,
-0.9750272035598755,
-0.6727975010871887,
1.3768119812011719,
-0.1401805430650711,
-1.2024718523025513,
0.16715672612190247,
-1.0679795742034912,
1.6264891624450684,
-0.629643976688385,
0.22449806332588196,
-1.691903829574585,
-0.04451072961091995,
-0.5420190095901489,
-0.7712634801864624,
-0.828056275844574,
-0.4278697371482849,
-0.8394280672073364,
0.9860599637031555,
2.5269522666931152,
1.2435071468353271,
-1.4087191820144653,
2.707822799682617,
0.6370635628700256,
-0.24979420006275177,
-0.9703162312507629,
0.4849625527858734,
0.06441494822502136,
-1.342094898223877,
-0.4887283146381378,
-0.8455842137336731,
-0.06857097148895264,
-0.6043176054954529,
-0.49684563279151917,
0.07011920213699341,
0.3971005976200104,
-0.18747550249099731,
-0.368937224149704,
-0.5391095280647278,
-0.7046425938606262,
0.4644852876663208,
-0.4182202219963074,
0.9246991872787476,
-0.34382888674736023,
1.7833781242370605,
-0.601868748664856,
0.4541965425014496,
0.6693614721298218,
1.3414214849472046,
0.24025769531726837,
-0.047212302684783936,
0.347369909286499,
0.3925021290779114,
-0.07083392888307571,
0.40026751160621643,
1.1625912189483643,
0.7146793603897095,
0.48656588792800903,
0.6692097783088684,
-2.1363589763641357,
1.327230453491211,
-0.8888004422187805,
0.3560965657234192,
1.4093937873840332,
-0.9055541753768921,
0.3618873059749603,
-1.8841001987457275,
-0.06633490324020386,
0.556138813495636,
-2.3400659561157227,
0.21954455971717834,
-1.311073660850525,
-0.6168268322944641,
0.9012303352355957,
0.25294309854507446,
-1.3126509189605713,
0.111217200756073,
-0.5085105299949646,
1.0251067876815796,
0.3812107741832733,
1.201632022857666,
-1.734697937965393,
-0.1224614679813385,
-0.2324383556842804,
0.1159452348947525,
-1.1806799173355103,
-1.6339281797409058,
0.5834016799926758,
0.5988842248916626,
0.5958170294761658,
-0.07451215386390686,
0.8522396683692932,
-0.9622423052787781,
0.8904849886894226,
-0.9724697470664978,
-1.6854493618011475,
-1.3815324306488037,
-2.2829248905181885,
-2.2710795402526855,
0.7981740832328796,
-0.5029942393302917,
-0.45914044976234436,
1.947836995124817,
-0.9754759073257446,
-1.7417041063308716,
1.0990952253341675,
0.2938964068889618,
-0.010802850127220154,
2.401801109313965,
0.1967524141073227,
-0.7315871119499207,
0.4489624798297882,
-0.7666335701942444,
0.8411093354225159,
-0.43137267231941223,
1.4400662183761597,
0.409974604845047,
-0.9707587957382202,
1.6078975200653076,
-0.41310346126556396,
0.5193076729774475,
-0.7036076784133911,
-0.5709546804428101,
-0.7646441459655762,
0.2750917673110962,
1.9322229623794556,
-0.3030921518802643,
1.67972731590271,
-0.3538583219051361,
-1.6095765829086304,
-1.5300030708312988,
0.886809766292572,
0.513236403465271,
-0.8564938902854919,
0.09140205383300781,
-0.45470115542411804,
0.13447102904319763,
0.020782887935638428,
1.0152560472488403,
1.3125543594360352,
0.6344510912895203,
-0.32763710618019104,
-0.9180705547332764,
0.17443789541721344,
-0.13358552753925323,
-0.6658546924591064,
-1.8711557388305664,
-0.2820471525192261,
0.16591902077198029,
0.6857393980026245,
-1.3392043113708496,
1.6284682750701904,
0.8489163517951965,
1.9841601848602295,
0.966210126876831,
-0.4590681791305542,
1.4911426305770874,
0.08373674750328064,
1.7753239870071411,
-0.5742012858390808,
0.6917091012001038,
-0.40166348218917847,
-1.0361684560775757,
0.8317993879318237,
-0.35819414258003235,
-1.9830889701843262,
-0.6911813020706177,
-0.8147892951965332,
-0.22236961126327515,
-0.8066474795341492,
0.9421006441116333,
-0.285458505153656,
-1.2862499952316284,
0.3587897717952728,
-0.7511817812919617,
0.15717285871505737,
-1.3133742809295654,
0.3066294491291046,
0.8125176429748535,
-0.5814756155014038,
0.05621960386633873,
-0.24465331435203552,
-1.3091623783111572,
-0.5512755513191223,
0.2874789834022522,
1.898305892944336,
-0.664438784122467,
0.91172194480896,
0.9654975533485413,
-0.7028382420539856,
0.03844549134373665,
0.4128907322883606,
-0.27640241384506226,
0.8344609141349792,
-1.1667804718017578,
-0.32017627358436584,
1.0204143524169922,
-0.2085707038640976,
-0.46959590911865234,
1.4174621105194092,
0.7580046653747559,
-1.003379225730896,
-0.21904173493385315,
-0.08588990569114685,
-0.8052257299423218,
0.04717462509870529,
-1.6736555099487305,
-0.14036236703395844,
0.2799655497074127,
-1.584710955619812,
-0.5122043490409851,
-0.2899751663208008,
1.2814419269561768,
-0.17559535801410675,
1.4291476011276245,
-0.25506794452667236,
-0.18254366517066956,
-0.38398855924606323,
-0.40450283885002136,
0.09501883387565613,
-0.3045927584171295,
-0.5971258282661438,
0.2825312614440918,
-0.8235234022140503,
0.362743616104126,
1.486398458480835,
0.3627845346927643,
0.009923789650201797,
0.4830704927444458,
1.0474799871444702,
0.3530353903770447,
-0.10777336359024048,
-0.8386373519897461,
-1.5474650859832764,
2.0465424060821533,
-1.520333170890808,
1.9500408172607422,
0.8807443976402283,
-0.10602441430091858,
-1.733968734741211,
-1.9204684495925903,
1.2890511751174927,
1.1540828943252563,
2.4222922325134277,
0.6862726211547852,
0.46540626883506775,
-0.7704704403877258,
-0.633675754070282,
0.26574066281318665,
-0.9998766779899597,
-0.8500354886054993,
0.13140828907489777,
2.3805766105651855,
1.6946675777435303,
-0.5589673519134521,
-0.16538174450397491,
-1.0145008563995361,
1.3640246391296387,
-0.08128666877746582,
0.2103690505027771,
2.045757293701172,
-0.2657791078090668,
-1.1459107398986816,
1.3104541301727295,
-2.260136365890503,
0.18678410351276398,
1.9967468976974487,
0.2767324149608612,
0.09560644626617432,
-1.3962780237197876,
-0.610088050365448,
-0.3457106649875641,
-0.33585551381111145,
-1.2114506959915161,
0.5507357120513916,
-0.2273753136396408,
-0.825579047203064,
-1.5923950672149658,
0.10497713088989258,
-1.1308475732803345,
-1.6337251663208008,
0.3804367780685425,
1.945273518562317,
2.075453758239746,
-0.7277234792709351,
1.437151551246643,
-0.26848047971725464,
0.11962202191352844,
1.1922869682312012,
1.1800496578216553,
3.1388628482818604,
1.9657024145126343,
-1.2243248224258423,
0.6512044072151184,
-0.16961826384067535,
-0.4790731966495514,
1.094128966331482,
-1.1367870569229126,
1.1616592407226562,
-0.22012808918952942,
-1.2230592966079712,
-1.2028344869613647,
1.0102109909057617,
0.4801914393901825,
0.0619281642138958,
-0.5260123014450073,
1.2072142362594604,
0.04046889767050743,
1.3824551105499268,
0.4652171730995178,
-0.28452983498573303,
0.596649706363678,
-0.4062463939189911,
-0.494584321975708,
1.6501818895339966,
0.22398634254932404,
-1.500234842300415,
-2.4352517127990723,
-0.2393755465745926,
-0.8621113896369934,
0.022958960384130478,
-0.6803780794143677,
-1.1347424983978271,
1.6138265132904053,
0.4718523919582367,
-1.1810816526412964,
-0.40137386322021484,
-0.3186662197113037,
-0.5963321328163147,
2.552855968475342,
-1.4677448272705078,
-0.21162143349647522,
-0.9259652495384216,
-0.5472466349601746,
1.6163266897201538,
-1.2174659967422485,
-0.22356897592544556,
-1.0183515548706055,
-0.6119313836097717,
-1.2267571687698364,
-0.5469209551811218,
-0.05046781152486801,
-0.878814697265625,
0.7293426990509033,
0.2238936871290207,
-1.0722968578338623,
-0.23453770577907562,
-0.9071080088615417,
0.8397879600524902,
-0.0813540667295456,
0.26155853271484375,
1.856963872909546,
0.4279138445854187,
-0.3485352396965027,
0.7190603613853455,
1.1906728744506836,
0.6429556012153625,
-0.7180583477020264,
0.031643763184547424,
-0.656527042388916,
0.26949822902679443,
-1.302329659461975,
0.33266741037368774,
-2.8176779747009277,
0.664301335811615,
-0.07709163427352905,
-0.10232241451740265,
0.00572593417018652,
-1.3594063520431519,
1.2063344717025757,
2.606276273727417,
-1.1308495998382568,
0.5356670022010803,
0.38544946908950806,
1.1970230340957642,
-1.6046479940414429,
0.32415032386779785,
-0.44647184014320374,
2.16304087638855,
0.21103866398334503,
1.19395112991333,
-0.5624902844429016,
-2.3628358840942383,
0.5715916156768799,
-1.1500505208969116,
-1.1785527467727661,
0.6718550324440002,
-0.9008938074111938,
-0.009617844596505165,
-1.4924887418746948,
-0.1838100552558899,
-0.9127505421638489,
-1.2898792028427124,
0.7211143374443054,
0.05908402428030968,
0.4237661361694336,
-0.6231419444084167,
0.3958754539489746,
-2.187130928039551,
-1.4132927656173706,
-0.2579236924648285,
-0.9770715832710266,
0.4775071144104004,
-0.3628722131252289,
0.7176016569137573,
-0.11877426505088806,
0.05641523376107216,
0.3452437222003937,
1.3727871179580688,
3.356919527053833,
0.15715734660625458,
0.32966986298561096,
-0.1343969851732254,
-0.9003568291664124,
1.4636564254760742,
0.9582048058509827,
-0.07349686324596405,
-0.5917118191719055,
-0.9636282324790955,
1.3233511447906494,
2.0259342193603516,
1.0073564052581787,
0.07752072811126709,
-0.8354101181030273,
-0.6653832197189331,
0.027658827602863312,
0.3421696722507477,
0.4123963713645935,
0.9665067195892334,
0.07670442759990692,
0.13295194506645203,
1.3405932188034058,
1.315834641456604,
-0.45350760221481323,
0.46775197982788086,
-0.8246322274208069,
-0.46602094173431396,
0.4077600836753845,
0.3496412932872772,
-0.012583782896399498,
0.3761172294616699,
-1.0083622932434082,
-0.22726675868034363,
-0.3495458960533142,
-0.9308453798294067,
-0.7884071469306946,
-0.3802330791950226,
-0.31767526268959045,
1.6640337705612183,
0.03621698170900345,
-0.49351537227630615,
0.01825666055083275,
-0.7056867480278015,
-0.13434526324272156,
-1.178112506866455,
0.2562881410121918,
-0.10695295035839081,
-0.0033894842490553856,
-0.022531935945153236,
1.8076560497283936,
-0.9110241532325745,
-2.149275779724121,
0.20264752209186554,
0.3534530997276306,
-0.4992489516735077,
0.15176083147525787,
1.6945598125457764,
0.49040505290031433,
1.4336552619934082,
1.3558645248413086,
0.9907705187797546,
-0.6740010976791382,
-1.2418688535690308,
0.6643108129501343,
0.9337471127510071,
-1.3893799781799316,
0.7462525367736816,
-0.06864799559116364,
-0.5504046082496643,
0.6973755955696106,
1.3031234741210938,
0.4177243113517761,
-1.9889200925827026,
0.9271875023841858,
-0.8711401224136353,
0.8464713096618652,
0.6624428629875183,
0.7862532734870911,
0.27229955792427063,
0.8259117603302002,
-1.3405914306640625,
-1.0469343662261963,
-0.8393474817276001,
-0.548176646232605,
1.9008821249008179,
-0.21695809066295624,
0.4560340344905853,
-0.1632096916437149,
-1.2495381832122803,
-0.08653780817985535,
0.7413937449455261,
0.47761067748069763,
-0.34273725748062134,
0.7716655135154724,
-0.6077936887741089,
-1.137311577796936,
-1.3072700500488281,
-0.39927488565444946,
-0.9053911566734314,
-0.9308654069900513,
1.0337821245193481,
0.823176920413971,
0.44626346230506897,
1.9590939283370972,
0.536124587059021,
0.2461300790309906,
-2.676645040512085,
0.9305487871170044,
0.34638503193855286,
-0.08931741118431091,
1.0400058031082153,
0.33387917280197144,
1.1147065162658691,
0.04624256491661072,
0.46231314539909363,
-2.3521974086761475,
2.247868776321411,
-0.23900249600410461,
0.7993461489677429,
0.01064458116889,
-0.06444293260574341,
1.101646900177002,
0.5127464532852173,
0.4963233470916748,
-1.1146680116653442,
0.7823297381401062,
-0.58925861120224,
1.1612848043441772,
0.8613094091415405,
-0.8166976571083069,
0.032163653522729874,
1.2067880630493164,
0.46024349331855774,
-0.4754193127155304,
-0.9595271944999695,
-0.799684464931488,
0.9021450877189636,
1.825941562652588,
-0.08108389377593994,
0.08104228973388672,
0.8497802019119263,
0.6385205388069153,
-1.338069200515747,
0.056515883654356,
-0.7050532102584839,
-0.7433043718338013,
1.7019679546356201,
2.0111827850341797,
-0.041597649455070496,
-0.22627992928028107,
-0.6988614201545715,
-1.3734759092330933,
0.800786018371582,
0.010793913155794144,
0.22808542847633362,
0.6482151746749878,
-0.6819504499435425,
1.1748827695846558,
0.78067946434021,
1.0308399200439453,
0.05750175192952156,
0.34721627831459045,
0.4421536922454834,
-0.30941715836524963,
-1.0749775171279907,
-0.32423752546310425,
-1.1871230602264404,
-2.4823508262634277,
0.5054467916488647,
-0.26486846804618835,
-1.386374592781067,
0.008487530052661896,
-0.9958005547523499,
0.9180764555931091,
-0.5999243855476379,
-1.0390573740005493,
-1.5393590927124023,
0.20245878398418427,
-0.1976146697998047,
0.9423978328704834,
-1.5968037843704224,
-0.1504470407962799,
1.181350827217102,
0.8429926633834839,
-0.5809058547019958,
1.0232796669006348,
0.2780471742153168,
0.9393730163574219,
0.818358838558197,
-0.4010584056377411,
0.43103912472724915,
0.1427510529756546,
-1.315332055091858,
0.4585109353065491,
1.2166439294815063,
0.23612217605113983,
1.3732954263687134,
-0.6146242618560791,
-0.002578683663159609,
0.43276771903038025,
-0.41529640555381775,
-0.4911552965641022,
-0.5379629731178284,
0.6723957061767578,
0.0916082113981247,
-1.0220152139663696,
-0.042434342205524445,
-0.22465075552463531,
-0.14241962134838104,
0.21700167655944824,
-1.5184441804885864,
-0.23000003397464752,
-0.4643517732620239,
-0.5348369479179382,
-1.2432256937026978,
-0.02890262007713318,
1.4224178791046143,
-0.795062243938446,
-0.2130267471075058,
0.4967637062072754,
0.4625331163406372,
0.5346728563308716,
0.6268216967582703,
-0.6499921083450317,
-0.4018668532371521,
-0.29917246103286743,
-0.36259207129478455,
0.3208882212638855,
1.2177836894989014,
-0.17157132923603058,
-1.0825409889221191,
0.6601825952529907,
-0.42659980058670044,
0.09880605340003967,
1.9678542613983154,
0.09064766764640808,
-0.8030127882957458,
0.24322539567947388,
-0.6705918312072754,
1.928693413734436,
1.6757744550704956,
1.409080147743225,
-0.1744193732738495,
-0.9496956467628479,
0.6028212308883667,
-0.2172778695821762,
-0.375699520111084,
0.8492563962936401,
0.5104001760482788,
-0.15926486253738403,
-1.4906872510910034,
0.5419009327888489,
1.3489024639129639,
-0.9812653660774231,
-0.7469339966773987,
0.09935504198074341,
-0.8216607570648193,
1.1238147020339966,
0.6715997457504272,
0.4117477238178253,
0.20868244767189026,
1.6357977390289307,
0.6697748303413391,
-0.4764675199985504,
0.5365989208221436,
0.4800390899181366,
-0.21491345763206482,
-2.0509188175201416,
-1.1874161958694458,
0.3366771638393402,
-0.377718061208725,
-1.5148828029632568,
1.3738704919815063,
-1.1318657398223877,
-0.9786146283149719,
0.4598962664604187,
0.17179496586322784,
1.4508435726165771,
0.2762180268764496,
1.6635323762893677,
2.072869300842285,
0.9271318912506104,
0.36008718609809875,
1.2621804475784302,
-0.11329612135887146,
-0.44747424125671387,
1.795966386795044,
-0.4348263144493103,
0.5687228441238403,
1.1217466592788696,
-0.4439018964767456,
-1.1073346138000488,
-0.724234938621521,
-1.2068967819213867,
-0.6627593040466309,
1.17794930934906,
0.0965668112039566,
-1.164759635925293,
0.26686862111091614,
1.596714735031128,
0.07135900855064392,
-0.3084746301174164,
0.4506016969680786,
0.45611485838890076,
-0.7435107827186584,
-0.12575122714042664,
-1.0088300704956055,
0.550226628780365,
-0.19811619818210602,
-0.3665541112422943,
0.23665104806423187,
0.5254802703857422,
1.239970088005066,
-0.042743466794490814,
0.08426634967327118,
1.2434719800949097,
-1.3642473220825195,
1.4799476861953735,
-0.635807454586029,
0.23725704848766327,
-2.3626151084899902,
1.4992437362670898,
-0.6989610195159912,
1.8890409469604492,
-2.6402406692504883,
0.39937201142311096,
-0.5843880772590637,
-0.3394659161567688,
0.31158530712127686,
-0.26637759804725647,
0.22430986166000366,
-0.23922514915466309,
-1.0709199905395508,
-0.19724957644939423,
-0.7550903558731079,
0.5981128811836243,
1.1446863412857056,
1.3500698804855347,
-1.0420658588409424,
-0.1505676507949829,
-1.6820343732833862,
-0.19861634075641632,
-0.6466957926750183,
0.25313523411750793,
-1.969617247581482,
-0.14691175520420074,
-1.9634757041931152,
-2.291212320327759,
-1.356270670890808,
-0.7871183156967163,
0.9911786913871765,
0.15509538352489471,
-0.8979600667953491,
1.179729700088501,
-0.3734748065471649,
-1.7850366830825806,
1.1232584714889526,
-2.2185750007629395
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | I see ! This is a bug with MP3 files.
When we store audio data in parquet, we store the bytes and the file name. From the file name extension we know if it's a WAV, an MP3 or else. But here it looks like the paths are all None.
It looks like it comes from here:
https://github.com/huggingface/datasets/blob/7feeb5648a63b6135a8259dedc3b1e19185ee4c7/src/datasets/features/audio.py#L212
Cc @polinaeterna maybe we should simply put the file name instead of None values ? | ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 73 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
I see ! This is a bug with MP3 files.
When we store audio data in parquet, we store the bytes and the file name. From the file name extension we know if it's a WAV, an MP3 or else. But here it looks like the paths are all None.
It looks like it comes from here:
https://github.com/huggingface/datasets/blob/7feeb5648a63b6135a8259dedc3b1e19185ee4c7/src/datasets/features/audio.py#L212
Cc @polinaeterna maybe we should simply put the file name instead of None values ? | [
-1.2237224578857422,
-0.9301946759223938,
-0.7563335299491882,
1.41595458984375,
-0.14739854633808136,
-1.2214552164077759,
0.12228212505578995,
-1.0183627605438232,
1.614269733428955,
-0.7715045809745789,
0.2577328085899353,
-1.6719316244125366,
0.040651775896549225,
-0.49856555461883545,
-0.7485959529876709,
-0.9448319673538208,
-0.42544451355934143,
-0.8094339370727539,
1.107424259185791,
2.4816067218780518,
1.2137612104415894,
-1.396524429321289,
2.718737840652466,
0.6226599812507629,
-0.22929935157299042,
-0.9759348630905151,
0.5223943591117859,
0.09581920504570007,
-1.3098299503326416,
-0.4646802842617035,
-0.874837338924408,
-0.06028041988611221,
-0.6052218079566956,
-0.5260575413703918,
0.022537434473633766,
0.4056360125541687,
-0.2271938920021057,
-0.38091781735420227,
-0.5189100503921509,
-0.7387028932571411,
0.4947032928466797,
-0.43339377641677856,
0.9618622064590454,
-0.34443244338035583,
1.885302186012268,
-0.5386812090873718,
0.39159348607063293,
0.6867105960845947,
1.3995641469955444,
0.23171359300613403,
0.03669097274541855,
0.2856488823890686,
0.37420764565467834,
-0.07019708305597305,
0.396959125995636,
1.1615411043167114,
0.6536597013473511,
0.4546312689781189,
0.652063250541687,
-2.114556312561035,
1.3016606569290161,
-0.95384281873703,
0.2799214720726013,
1.4240349531173706,
-0.9355437755584717,
0.4179348647594452,
-1.769252061843872,
-0.09788516163825989,
0.5441609621047974,
-2.328613042831421,
0.2090882658958435,
-1.2319223880767822,
-0.5096989274024963,
0.940769612789154,
0.29318949580192566,
-1.2738964557647705,
0.0984921082854271,
-0.5410727262496948,
1.1009342670440674,
0.41821354627609253,
1.2273507118225098,
-1.6733447313308716,
-0.10665303468704224,
-0.26466894149780273,
0.08706001192331314,
-1.294216513633728,
-1.5957446098327637,
0.41378992795944214,
0.6553034782409668,
0.5758830904960632,
-0.022630613297224045,
0.929180920124054,
-0.9713494181632996,
0.8416295051574707,
-0.9137551188468933,
-1.6340363025665283,
-1.4176005125045776,
-2.3285181522369385,
-2.3025379180908203,
0.8156946301460266,
-0.4423964023590088,
-0.545464813709259,
1.9753504991531372,
-1.049035906791687,
-1.7586948871612549,
1.1927716732025146,
0.26318931579589844,
-0.02208065241575241,
2.4121837615966797,
0.17149382829666138,
-0.7700182795524597,
0.47750645875930786,
-0.7403519153594971,
0.8589387536048889,
-0.46544769406318665,
1.3984580039978027,
0.46882104873657227,
-1.016194224357605,
1.5055235624313354,
-0.42334645986557007,
0.5654057860374451,
-0.7303282022476196,
-0.48927706480026245,
-0.8244893550872803,
0.2929529547691345,
1.8859829902648926,
-0.30798518657684326,
1.6955084800720215,
-0.3536209762096405,
-1.5714060068130493,
-1.5698412656784058,
0.8989230990409851,
0.46423906087875366,
-0.7775423526763916,
0.034916870296001434,
-0.34026262164115906,
0.10422441363334656,
0.07255208492279053,
0.978047251701355,
1.2406190633773804,
0.6502965092658997,
-0.3088238835334778,
-0.9372299909591675,
0.29941311478614807,
-0.15546774864196777,
-0.629266083240509,
-1.810745358467102,
-0.27518200874328613,
0.12895607948303223,
0.6682104468345642,
-1.3614941835403442,
1.672685980796814,
0.8493492603302002,
2.007612943649292,
0.9646115899085999,
-0.44095027446746826,
1.513116717338562,
0.08392883837223053,
1.8262568712234497,
-0.46511417627334595,
0.7312576770782471,
-0.3436599373817444,
-1.1536771059036255,
0.7674046754837036,
-0.367559015750885,
-2.001898765563965,
-0.8248268365859985,
-0.7909694314002991,
-0.13135313987731934,
-0.7663606405258179,
0.9314476847648621,
-0.31905391812324524,
-1.389664649963379,
0.31953173875808716,
-0.6782768368721008,
0.16054219007492065,
-1.2812749147415161,
0.32846832275390625,
0.7721675634384155,
-0.6626713871955872,
0.059100694954395294,
-0.22850194573402405,
-1.2840430736541748,
-0.4628860652446747,
0.3481287956237793,
1.8974953889846802,
-0.7089133858680725,
0.8470457196235657,
1.0186281204223633,
-0.6723596453666687,
0.06857208907604218,
0.3336699306964874,
-0.2811426818370819,
0.8340350389480591,
-1.1126526594161987,
-0.3657309114933014,
1.1404554843902588,
-0.24286818504333496,
-0.5940175652503967,
1.4005763530731201,
0.835490882396698,
-1.0155231952667236,
-0.1450856477022171,
-0.11453072726726532,
-0.8098657727241516,
0.021537158638238907,
-1.6358102560043335,
-0.11192392557859421,
0.27461230754852295,
-1.54722261428833,
-0.4375688135623932,
-0.31956538558006287,
1.2882988452911377,
-0.17886090278625488,
1.4827125072479248,
-0.3618713915348053,
-0.19490458071231842,
-0.4041113555431366,
-0.46086379885673523,
0.15277154743671417,
-0.2652354836463928,
-0.6193516850471497,
0.27936848998069763,
-0.7954457998275757,
0.34983155131340027,
1.423468828201294,
0.4061979651451111,
0.06647238880395889,
0.5131014585494995,
1.092738151550293,
0.4187401533126831,
-0.13487200438976288,
-0.8216975927352905,
-1.5381414890289307,
2.089780569076538,
-1.4523911476135254,
1.9947887659072876,
0.8683973550796509,
-0.08448381721973419,
-1.701276421546936,
-1.8264436721801758,
1.3057557344436646,
1.1849182844161987,
2.3334455490112305,
0.5982984304428101,
0.47765910625457764,
-0.8092855215072632,
-0.6796823740005493,
0.27284398674964905,
-1.045559048652649,
-0.76878422498703,
0.1237378641963005,
2.35549259185791,
1.676539659500122,
-0.4586741626262665,
-0.1584002673625946,
-1.0625147819519043,
1.3307892084121704,
-0.08107062429189682,
0.18871957063674927,
2.0487442016601562,
-0.22089914977550507,
-1.136844277381897,
1.2748042345046997,
-2.2671468257904053,
0.1532101035118103,
1.9785152673721313,
0.26503297686576843,
0.026525000110268593,
-1.4272511005401611,
-0.6601334810256958,
-0.32756704092025757,
-0.27376842498779297,
-1.2039294242858887,
0.584717333316803,
-0.2651984691619873,
-0.7508875727653503,
-1.553697943687439,
0.13459886610507965,
-1.1430141925811768,
-1.6399281024932861,
0.3429346978664398,
1.9089409112930298,
1.9984174966812134,
-0.7424121499061584,
1.4759563207626343,
-0.17292200028896332,
0.13005124032497406,
1.2334799766540527,
1.1495633125305176,
3.14084792137146,
1.9117329120635986,
-1.241212248802185,
0.6207554340362549,
-0.14057783782482147,
-0.48256438970565796,
1.0934953689575195,
-1.1735551357269287,
1.3144795894622803,
-0.17754240334033966,
-1.2348524332046509,
-1.245540976524353,
0.99470454454422,
0.546217143535614,
0.06413271278142929,
-0.5133249163627625,
1.2582557201385498,
0.04032453894615173,
1.3562124967575073,
0.45597541332244873,
-0.2736283242702484,
0.5637445449829102,
-0.41846907138824463,
-0.5950668454170227,
1.6309053897857666,
0.15718486905097961,
-1.5232828855514526,
-2.4075562953948975,
-0.2913612723350525,
-0.7662740349769592,
0.006376173347234726,
-0.684464156627655,
-1.032413363456726,
1.6642124652862549,
0.46349668502807617,
-1.1929709911346436,
-0.42117130756378174,
-0.3797987401485443,
-0.6349125504493713,
2.617497444152832,
-1.479493498802185,
-0.23215343058109283,
-0.9079688191413879,
-0.5637661814689636,
1.5673781633377075,
-1.2448301315307617,
-0.20813420414924622,
-1.0053353309631348,
-0.6436848640441895,
-1.2488765716552734,
-0.5550612211227417,
-0.03541252017021179,
-0.8873627185821533,
0.6555179953575134,
0.25955629348754883,
-1.0891761779785156,
-0.2869257926940918,
-0.9103668332099915,
0.8417595624923706,
-0.007231937721371651,
0.2908216416835785,
1.8168901205062866,
0.5035961866378784,
-0.3653886020183563,
0.741629421710968,
1.1992487907409668,
0.6175031661987305,
-0.7285118699073792,
0.045231208205223083,
-0.7125651836395264,
0.20760473608970642,
-1.298342227935791,
0.3561009466648102,
-2.819748878479004,
0.6314011216163635,
-0.14305609464645386,
-0.13192901015281677,
0.004309717565774918,
-1.2480323314666748,
1.1828665733337402,
2.589907646179199,
-1.1499930620193481,
0.4739968776702881,
0.38109728693962097,
1.2484406232833862,
-1.6317938566207886,
0.37888872623443604,
-0.42800650000572205,
2.11679744720459,
0.18492351472377777,
1.2126866579055786,
-0.5381141304969788,
-2.2981059551239014,
0.6118533611297607,
-1.193406343460083,
-1.161427617073059,
0.7889454364776611,
-0.9027232527732849,
0.025294626131653786,
-1.366604208946228,
-0.23206675052642822,
-0.8595507740974426,
-1.2990859746932983,
0.6797661185264587,
0.07533443719148636,
0.47640568017959595,
-0.563356876373291,
0.3905203640460968,
-2.2061924934387207,
-1.4345486164093018,
-0.2668122351169586,
-0.9676204323768616,
0.403217077255249,
-0.40504562854766846,
0.6751485466957092,
-0.1693347692489624,
0.03094603680074215,
0.3148711323738098,
1.3742119073867798,
3.382939577102661,
0.2621069848537445,
0.46169596910476685,
-0.10217487812042236,
-0.9335514903068542,
1.4444606304168701,
0.902461051940918,
-0.16771119832992554,
-0.5789613127708435,
-0.9743515253067017,
1.3102351427078247,
1.9782897233963013,
1.1202564239501953,
0.017269758507609367,
-0.7222291827201843,
-0.7147831320762634,
-0.002967566717416048,
0.28541281819343567,
0.4942225217819214,
0.9441540241241455,
-0.02672996185719967,
0.13046136498451233,
1.4395884275436401,
1.3060102462768555,
-0.5611034035682678,
0.39899942278862,
-0.788184404373169,
-0.48609620332717896,
0.4328882694244385,
0.33630284667015076,
-0.035527125000953674,
0.4564163386821747,
-0.9936045408248901,
-0.26601314544677734,
-0.4201989471912384,
-0.9112940430641174,
-0.7683542370796204,
-0.4053235650062561,
-0.3265763223171234,
1.6850203275680542,
0.08321335166692734,
-0.5070125460624695,
0.02654489316046238,
-0.7327278256416321,
-0.1535944640636444,
-1.1336098909378052,
0.23361791670322418,
-0.10356850922107697,
-0.07348569482564926,
0.013585776090621948,
1.8330414295196533,
-1.0070699453353882,
-2.213703155517578,
0.19627965986728668,
0.281644731760025,
-0.36237025260925293,
0.16720260679721832,
1.658998727798462,
0.4518986940383911,
1.3527216911315918,
1.3545323610305786,
0.9365078210830688,
-0.7303739786148071,
-1.3467754125595093,
0.7019538879394531,
0.9789347052574158,
-1.4221997261047363,
0.7529279589653015,
-0.05149633437395096,
-0.5902885794639587,
0.7251359820365906,
1.2744752168655396,
0.4557603895664215,
-1.9687414169311523,
0.8394578695297241,
-0.881393551826477,
0.7698372602462769,
0.6955887079238892,
0.6924753785133362,
0.22469089925289154,
0.8024617433547974,
-1.2559188604354858,
-1.1174099445343018,
-0.7788150310516357,
-0.6216360926628113,
1.852747917175293,
-0.22055365145206451,
0.46970033645629883,
-0.11058628559112549,
-1.2246878147125244,
-0.04755803942680359,
0.6818425059318542,
0.38453933596611023,
-0.3716220557689667,
0.81174236536026,
-0.6971168518066406,
-1.166473150253296,
-1.4165626764297485,
-0.43769046664237976,
-0.981052815914154,
-0.9151469469070435,
1.0947459936141968,
0.7770739197731018,
0.25910717248916626,
1.908240795135498,
0.6428073048591614,
0.25304165482521057,
-2.67203688621521,
0.9373520016670227,
0.3458085358142853,
-0.03614002466201782,
0.9187400341033936,
0.27242642641067505,
1.075905442237854,
0.06281550228595734,
0.4672339856624603,
-2.3590755462646484,
2.2688674926757812,
-0.3396129310131073,
0.771972119808197,
-0.04323726147413254,
-0.12155965715646744,
1.121561050415039,
0.5734515190124512,
0.5709060430526733,
-1.1416116952896118,
0.7769853472709656,
-0.6048107743263245,
1.177500605583191,
0.9478172063827515,
-0.8648578524589539,
0.001197710633277893,
1.309835433959961,
0.48980939388275146,
-0.4929080605506897,
-0.8928256034851074,
-0.8450005054473877,
0.9168540835380554,
1.7404439449310303,
-0.07229702174663544,
0.11016888171434402,
0.8916789889335632,
0.6037201285362244,
-1.3602136373519897,
0.09892236441373825,
-0.7473901510238647,
-0.7912866473197937,
1.7020683288574219,
2.0270745754241943,
-0.05876150727272034,
-0.275160551071167,
-0.7396399974822998,
-1.2916274070739746,
0.7943884134292603,
-0.036727678030729294,
0.2753579020500183,
0.61170893907547,
-0.739227294921875,
1.1376938819885254,
0.8192646503448486,
0.9664553999900818,
0.14307641983032227,
0.2048739194869995,
0.38931503891944885,
-0.2601991593837738,
-1.0899887084960938,
-0.2541337013244629,
-1.1474493741989136,
-2.4893598556518555,
0.3912182152271271,
-0.2519523501396179,
-1.4514816999435425,
0.06862203776836395,
-0.9913244843482971,
0.9154313206672668,
-0.5437982082366943,
-1.0129648447036743,
-1.4999499320983887,
0.22228972613811493,
-0.20089808106422424,
0.8461478352546692,
-1.6543426513671875,
-0.1476232260465622,
1.2479023933410645,
0.8537437319755554,
-0.5616598129272461,
1.047336459159851,
0.199509397149086,
0.9943597912788391,
0.84260094165802,
-0.41699573397636414,
0.44807860255241394,
0.15200676023960114,
-1.3208318948745728,
0.4662075936794281,
1.1514697074890137,
0.20298463106155396,
1.4990332126617432,
-0.5977991223335266,
-0.0031295567750930786,
0.3828890919685364,
-0.448097288608551,
-0.5357396602630615,
-0.5862607359886169,
0.6871776580810547,
0.07549530267715454,
-0.8981781601905823,
0.08612334728240967,
-0.26132383942604065,
-0.20531977713108063,
0.20728731155395508,
-1.564194917678833,
-0.25266212224960327,
-0.4074995815753937,
-0.5983331799507141,
-1.256126046180725,
0.03747271001338959,
1.4319883584976196,
-0.7989218831062317,
-0.24361376464366913,
0.46756669878959656,
0.502078652381897,
0.5096847414970398,
0.6402152180671692,
-0.6591995358467102,
-0.3691985607147217,
-0.2746722400188446,
-0.2812921702861786,
0.31357643008232117,
1.240595817565918,
-0.19919607043266296,
-1.0391604900360107,
0.7106899619102478,
-0.36956852674484253,
0.1167888343334198,
1.9728413820266724,
0.13811028003692627,
-0.8042327165603638,
0.259691059589386,
-0.7465521693229675,
1.9291962385177612,
1.6765055656433105,
1.4221986532211304,
-0.1421780288219452,
-0.9204972386360168,
0.6578425765037537,
-0.20145215094089508,
-0.36861738562583923,
0.9247792363166809,
0.48892396688461304,
-0.20895317196846008,
-1.4308534860610962,
0.5392739772796631,
1.2722876071929932,
-0.8621237277984619,
-0.7400314211845398,
0.03526128828525543,
-0.8522558212280273,
1.1011098623275757,
0.6949010491371155,
0.42701324820518494,
0.20109018683433533,
1.6563591957092285,
0.8232687711715698,
-0.5453468561172485,
0.5926799178123474,
0.4691239297389984,
-0.14644959568977356,
-2.0617401599884033,
-1.061525583267212,
0.37444058060646057,
-0.3977157771587372,
-1.5122551918029785,
1.3876667022705078,
-1.1317753791809082,
-0.9734819531440735,
0.5419206023216248,
0.09057673811912537,
1.4636552333831787,
0.22168700397014618,
1.5878887176513672,
2.072134256362915,
0.9464807510375977,
0.348471999168396,
1.2451496124267578,
-0.12972186505794525,
-0.41313374042510986,
1.815153956413269,
-0.41152042150497437,
0.46440431475639343,
1.051344633102417,
-0.45348167419433594,
-1.0168975591659546,
-0.7041745185852051,
-1.1548010110855103,
-0.6254236102104187,
1.1512774229049683,
0.12283570319414139,
-1.1068406105041504,
0.21854649484157562,
1.5475733280181885,
0.05917949974536896,
-0.32632720470428467,
0.48936665058135986,
0.5147687196731567,
-0.7272306084632874,
-0.10908759385347366,
-0.9655792117118835,
0.5113878846168518,
-0.11819485574960709,
-0.3658147156238556,
0.3083832561969757,
0.46968740224838257,
1.2786682844161987,
-0.0034319846890866756,
0.13985629379749298,
1.2616270780563354,
-1.355724811553955,
1.4252209663391113,
-0.5800392627716064,
0.24074943363666534,
-2.3714661598205566,
1.4681198596954346,
-0.7319125533103943,
1.9095475673675537,
-2.588564872741699,
0.4074473977088928,
-0.6874756813049316,
-0.4106152355670929,
0.4157048463821411,
-0.39979127049446106,
0.1784435659646988,
-0.21612028777599335,
-1.042270541191101,
-0.1924077719449997,
-0.7834336161613464,
0.6162768602371216,
1.1625282764434814,
1.3304376602172852,
-0.9850042462348938,
-0.23885491490364075,
-1.6379190683364868,
-0.18694482743740082,
-0.6188144087791443,
0.32165127992630005,
-2.0455574989318848,
-0.20285704731941223,
-2.026129961013794,
-2.321420907974243,
-1.3181087970733643,
-0.8108721375465393,
1.0711958408355713,
0.2150949239730835,
-0.937753438949585,
1.184743046760559,
-0.3759479522705078,
-1.811078667640686,
1.127561092376709,
-2.192676305770874
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | @lhoestq I remember we wanted to avoid storing redundant data but maybe it's not that crucial indeed to store one more string value.
Or we can store paths only for mp3s, considering that for other formats we don't have such a problem with reading from bytes without format specified. | ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 49 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
@lhoestq I remember we wanted to avoid storing redundant data but maybe it's not that crucial indeed to store one more string value.
Or we can store paths only for mp3s, considering that for other formats we don't have such a problem with reading from bytes without format specified. | [
-1.265916347503662,
-0.9846614003181458,
-0.7658290266990662,
1.4486602544784546,
-0.16831177473068237,
-1.2107670307159424,
0.14646321535110474,
-1.081231713294983,
1.5822337865829468,
-0.7880792617797852,
0.27461543679237366,
-1.6464152336120605,
0.07322409749031067,
-0.4983493387699127,
-0.7808843851089478,
-0.9080548882484436,
-0.3845541775226593,
-0.7784130573272705,
1.113213062286377,
2.4738690853118896,
1.2273365259170532,
-1.3919349908828735,
2.718942880630493,
0.6630374193191528,
-0.18774980306625366,
-0.9998473525047302,
0.4864930808544159,
0.11010761559009552,
-1.3028240203857422,
-0.43286290764808655,
-0.9037659764289856,
-0.1175617128610611,
-0.673353374004364,
-0.5583141446113586,
0.01681915484368801,
0.41083458065986633,
-0.2784576714038849,
-0.4336576759815216,
-0.5060147047042847,
-0.7221634387969971,
0.5164582133293152,
-0.4114457070827484,
0.9823901653289795,
-0.37638548016548157,
1.9033539295196533,
-0.5432271957397461,
0.4283612370491028,
0.6504157185554504,
1.4053021669387817,
0.20511752367019653,
0.0032714931294322014,
0.31016653776168823,
0.39222586154937744,
-0.045615099370479584,
0.39255034923553467,
1.1137996912002563,
0.6432560682296753,
0.5105064511299133,
0.6588003635406494,
-2.106975555419922,
1.2691210508346558,
-0.9952666163444519,
0.3081580698490143,
1.4013410806655884,
-0.9791130423545837,
0.4186488091945648,
-1.7559391260147095,
-0.09879553318023682,
0.5554088950157166,
-2.2441248893737793,
0.25704219937324524,
-1.1897701025009155,
-0.5501602292060852,
0.9285411238670349,
0.3065178096294403,
-1.3024839162826538,
0.10692009329795837,
-0.5563952922821045,
1.0799565315246582,
0.406296968460083,
1.1552661657333374,
-1.689935564994812,
-0.013077814131975174,
-0.2750331163406372,
0.12760111689567566,
-1.3149482011795044,
-1.5102533102035522,
0.4631198048591614,
0.6784752011299133,
0.5971084237098694,
-0.042949311435222626,
0.9235091209411621,
-1.0557729005813599,
0.8280777335166931,
-0.9424274563789368,
-1.6383305788040161,
-1.4280272722244263,
-2.338667631149292,
-2.3476433753967285,
0.7680110335350037,
-0.41741183400154114,
-0.5528972744941711,
2.023597240447998,
-1.0137605667114258,
-1.7518999576568604,
1.2322391271591187,
0.2477910816669464,
-0.05192829295992851,
2.412299633026123,
0.1360791027545929,
-0.7548503279685974,
0.5343503952026367,
-0.7667824625968933,
0.8591858148574829,
-0.48425132036209106,
1.3840934038162231,
0.42611056566238403,
-1.0259026288986206,
1.5419870615005493,
-0.4069959223270416,
0.5800141096115112,
-0.6941909193992615,
-0.4887344539165497,
-0.819883406162262,
0.3048074245452881,
1.9022235870361328,
-0.24220651388168335,
1.69100022315979,
-0.35875940322875977,
-1.528573989868164,
-1.577821135520935,
0.9385830163955688,
0.3954372704029083,
-0.7683417201042175,
0.14178451895713806,
-0.35719558596611023,
0.1631808876991272,
0.03832560405135155,
1.0079790353775024,
1.2823526859283447,
0.6566198468208313,
-0.2568933367729187,
-0.9539905786514282,
0.2518511414527893,
-0.1859578937292099,
-0.6349998712539673,
-1.817942500114441,
-0.33968985080718994,
0.07613636553287506,
0.6583329439163208,
-1.326255440711975,
1.6584906578063965,
0.8119775056838989,
1.9515087604522705,
0.9578717947006226,
-0.39160940051078796,
1.5016276836395264,
0.11563712358474731,
1.8292545080184937,
-0.46169358491897583,
0.7496684789657593,
-0.3924276828765869,
-1.1284252405166626,
0.749866247177124,
-0.4006606638431549,
-1.9983710050582886,
-0.8056641221046448,
-0.7845873832702637,
-0.1702355444431305,
-0.808107316493988,
0.9464681148529053,
-0.326954185962677,
-1.346280574798584,
0.433117538690567,
-0.7043592929840088,
0.18815116584300995,
-1.2597095966339111,
0.4108240008354187,
0.7797427773475647,
-0.632594883441925,
0.09770791232585907,
-0.24991777539253235,
-1.2917002439498901,
-0.4699358344078064,
0.3646533787250519,
1.9274077415466309,
-0.768367350101471,
0.857313871383667,
0.9354471564292908,
-0.6470410227775574,
-0.013063615188002586,
0.38086575269699097,
-0.2919275462627411,
0.8159738183021545,
-1.1280659437179565,
-0.3780722916126251,
1.1425760984420776,
-0.28951022028923035,
-0.6240077614784241,
1.3578696250915527,
0.8229475617408752,
-0.9747176766395569,
-0.12099510431289673,
-0.09370605647563934,
-0.8027374148368835,
0.0012271823361515999,
-1.6375995874404907,
-0.12961281836032867,
0.3130403459072113,
-1.5505295991897583,
-0.4837292730808258,
-0.23238466680049896,
1.22878098487854,
-0.14199408888816833,
1.5061298608779907,
-0.3273414969444275,
-0.17682161927223206,
-0.3848865032196045,
-0.4433964788913727,
0.14468349516391754,
-0.23897071182727814,
-0.6156873106956482,
0.23417291045188904,
-0.7893497943878174,
0.43560153245925903,
1.3726407289505005,
0.3500768840312958,
0.06492556631565094,
0.5143130421638489,
1.0716484785079956,
0.3969912528991699,
-0.08094365894794464,
-0.836686372756958,
-1.5552740097045898,
2.059234857559204,
-1.4237905740737915,
2.030465841293335,
0.8777045011520386,
-0.09165133535861969,
-1.7478625774383545,
-1.84291410446167,
1.354100227355957,
1.2305879592895508,
2.300713300704956,
0.6449181437492371,
0.42476141452789307,
-0.8863958716392517,
-0.6497295498847961,
0.25155574083328247,
-1.064900517463684,
-0.7698500156402588,
0.11540624499320984,
2.3994076251983643,
1.6858149766921997,
-0.43473824858665466,
-0.15045428276062012,
-1.098028302192688,
1.3545886278152466,
-0.12688109278678894,
0.24824824929237366,
1.9923207759857178,
-0.2993197739124298,
-1.1195244789123535,
1.2707514762878418,
-2.2873694896698,
0.1214732676744461,
1.981421709060669,
0.26424819231033325,
0.0018786340951919556,
-1.4409834146499634,
-0.6625164747238159,
-0.2798222303390503,
-0.23501119017601013,
-1.212140679359436,
0.5689820647239685,
-0.2501576542854309,
-0.7677515745162964,
-1.5320454835891724,
0.11116807162761688,
-1.1418025493621826,
-1.5818997621536255,
0.36645644903182983,
1.9068918228149414,
2.0165576934814453,
-0.7174000144004822,
1.5064802169799805,
-0.14807023108005524,
0.19974824786186218,
1.2749390602111816,
1.1412092447280884,
3.1499838829040527,
1.926285982131958,
-1.237388253211975,
0.590735673904419,
-0.11607331037521362,
-0.5177666544914246,
1.1474612951278687,
-1.1733155250549316,
1.336536169052124,
-0.18481849133968353,
-1.1695830821990967,
-1.2527880668640137,
0.9939560890197754,
0.46252790093421936,
0.05768514797091484,
-0.4798698425292969,
1.248895525932312,
0.0403178408741951,
1.3504232168197632,
0.43658336997032166,
-0.24946315586566925,
0.5698967576026917,
-0.42704227566719055,
-0.5393017530441284,
1.6054574251174927,
0.16450917720794678,
-1.5039242506027222,
-2.392709493637085,
-0.23183797299861908,
-0.7518777847290039,
0.00048417411744594574,
-0.6921296119689941,
-1.074289321899414,
1.6494628190994263,
0.4074164927005768,
-1.1783108711242676,
-0.37036043405532837,
-0.3307778835296631,
-0.6556862592697144,
2.640148401260376,
-1.4788122177124023,
-0.32473447918891907,
-0.924091637134552,
-0.6325746178627014,
1.5649334192276,
-1.2706074714660645,
-0.21294809877872467,
-1.0328161716461182,
-0.639576256275177,
-1.2348283529281616,
-0.568145751953125,
-0.04765373840928078,
-0.879180908203125,
0.7298773527145386,
0.2650763690471649,
-1.1190043687820435,
-0.25056394934654236,
-0.8840884566307068,
0.8368692398071289,
-0.027595633640885353,
0.34021061658859253,
1.799255609512329,
0.4623986482620239,
-0.41382330656051636,
0.7279670238494873,
1.1909078359603882,
0.6834104061126709,
-0.7356088161468506,
0.10531367361545563,
-0.722631573677063,
0.21756823360919952,
-1.2465471029281616,
0.3523567020893097,
-2.8320980072021484,
0.6090136766433716,
-0.09558545053005219,
-0.20641353726387024,
0.04659464582800865,
-1.296655535697937,
1.1529037952423096,
2.56717586517334,
-1.1301349401474,
0.4476611316204071,
0.33077436685562134,
1.2476688623428345,
-1.6084131002426147,
0.39814984798431396,
-0.40994638204574585,
2.1133506298065186,
0.2543426752090454,
1.1892318725585938,
-0.5671177506446838,
-2.3623785972595215,
0.6337841153144836,
-1.2452188730239868,
-1.2570314407348633,
0.76707923412323,
-0.9461004137992859,
0.02017970383167267,
-1.3949764966964722,
-0.26239120960235596,
-0.8825722932815552,
-1.336367130279541,
0.6817091703414917,
0.11189936101436615,
0.4887942969799042,
-0.556023359298706,
0.39527401328086853,
-2.1396944522857666,
-1.4258743524551392,
-0.23247365653514862,
-0.952318012714386,
0.3651948869228363,
-0.4215509593486786,
0.6929507851600647,
-0.26035556197166443,
0.03835224360227585,
0.3200928866863251,
1.4063193798065186,
3.3759825229644775,
0.25629475712776184,
0.42921721935272217,
-0.14273405075073242,
-0.897035539150238,
1.4973278045654297,
0.9236758351325989,
-0.13458354771137238,
-0.5772017240524292,
-0.952014684677124,
1.31316077709198,
1.9632606506347656,
0.9991682767868042,
0.030492685735225677,
-0.697373628616333,
-0.6544950604438782,
-0.03949186950922012,
0.22142066061496735,
0.4433751404285431,
0.931342363357544,
0.015746159479022026,
0.11344866454601288,
1.4182333946228027,
1.3195674419403076,
-0.5288938879966736,
0.3398938775062561,
-0.754591166973114,
-0.5414993762969971,
0.4916941225528717,
0.3884105384349823,
-0.06901434063911438,
0.3647092282772064,
-0.9595165848731995,
-0.2424164116382599,
-0.4563961625099182,
-0.9282016158103943,
-0.7606103420257568,
-0.4215654134750366,
-0.33357858657836914,
1.6824350357055664,
0.15448586642742157,
-0.5188380479812622,
-0.06680649518966675,
-0.809179425239563,
-0.1390363872051239,
-1.1365766525268555,
0.19691963493824005,
-0.1149539053440094,
-0.10958865284919739,
0.05409243330359459,
1.8568135499954224,
-0.992885410785675,
-2.1744744777679443,
0.17279689013957977,
0.25385552644729614,
-0.3007693290710449,
0.12710095942020416,
1.6702778339385986,
0.4394713342189789,
1.381168246269226,
1.3582197427749634,
0.9144272208213806,
-0.6864959001541138,
-1.3183170557022095,
0.7405980825424194,
0.9316405057907104,
-1.479404330253601,
0.7651017308235168,
-0.008706777356564999,
-0.624561071395874,
0.7180221080780029,
1.1933743953704834,
0.48043882846832275,
-1.933070421218872,
0.8127811551094055,
-0.9527105689048767,
0.8556013107299805,
0.7047149538993835,
0.649941086769104,
0.29886820912361145,
0.8392252922058105,
-1.2568066120147705,
-1.0889450311660767,
-0.8141358494758606,
-0.6145684719085693,
1.9210784435272217,
-0.29329800605773926,
0.4761362075805664,
-0.09487006068229675,
-1.2684988975524902,
-0.08484584093093872,
0.7168137431144714,
0.37668800354003906,
-0.37316274642944336,
0.7917839884757996,
-0.7459601163864136,
-1.1634490489959717,
-1.3672244548797607,
-0.4195707440376282,
-0.9562819004058838,
-0.9304693937301636,
1.1344918012619019,
0.8057444095611572,
0.2655215561389923,
1.918303370475769,
0.6411796808242798,
0.2965924143791199,
-2.655805826187134,
0.9221056699752808,
0.2919900715351105,
-0.03722696751356125,
0.9112319350242615,
0.2730811834335327,
1.0384002923965454,
0.026787884533405304,
0.4359804093837738,
-2.364999532699585,
2.2467479705810547,
-0.3429165482521057,
0.7546862959861755,
-0.04886000603437424,
-0.031170763075351715,
1.1979435682296753,
0.5296522378921509,
0.5515192747116089,
-1.094964861869812,
0.7772485613822937,
-0.5840450525283813,
1.2283287048339844,
0.995681643486023,
-0.8674411177635193,
-0.03026304580271244,
1.2870473861694336,
0.4537862241268158,
-0.5208768844604492,
-0.9101613163948059,
-0.8683611750602722,
0.9291806817054749,
1.7831132411956787,
-0.030626295134425163,
0.09330201148986816,
0.9187816381454468,
0.6194632649421692,
-1.3905705213546753,
0.10753084719181061,
-0.789212703704834,
-0.7864894270896912,
1.7295881509780884,
2.0470833778381348,
-0.08830723166465759,
-0.2381422519683838,
-0.6999050974845886,
-1.3552957773208618,
0.8413394689559937,
-0.0434427447617054,
0.2170470803976059,
0.5830911993980408,
-0.7226599454879761,
1.0560394525527954,
0.8953616619110107,
0.9576548933982849,
0.18710491061210632,
0.20602814853191376,
0.3928057849407196,
-0.2786261737346649,
-1.1213644742965698,
-0.23414908349514008,
-1.1046067476272583,
-2.4634928703308105,
0.40530329942703247,
-0.2733039855957031,
-1.4130964279174805,
0.07603862881660461,
-0.9916091561317444,
0.9442147016525269,
-0.49182623624801636,
-1.0142097473144531,
-1.5481778383255005,
0.21447719633579254,
-0.16122813522815704,
0.8530042767524719,
-1.6257468461990356,
-0.09621156752109528,
1.2177128791809082,
0.8184237480163574,
-0.5655741691589355,
1.0658208131790161,
0.22544023394584656,
0.9935123920440674,
0.8641422390937805,
-0.4121306240558624,
0.4491787552833557,
0.13493748009204865,
-1.311607003211975,
0.4620991051197052,
1.1291967630386353,
0.213457852602005,
1.4848949909210205,
-0.5758057832717896,
-0.05564381554722786,
0.3932546377182007,
-0.46921077370643616,
-0.5008799433708191,
-0.5645251274108887,
0.7015377283096313,
0.09123392403125763,
-0.7876867651939392,
-0.002707625739276409,
-0.20276744663715363,
-0.28009939193725586,
0.19315138459205627,
-1.6045325994491577,
-0.15881192684173584,
-0.4411923289299011,
-0.6692489385604858,
-1.237259864807129,
0.0828315019607544,
1.4192962646484375,
-0.7565068006515503,
-0.23064863681793213,
0.4264802634716034,
0.45394667983055115,
0.52703857421875,
0.6120567321777344,
-0.6232122182846069,
-0.38270875811576843,
-0.24159590899944305,
-0.27673229575157166,
0.35643577575683594,
1.2784401178359985,
-0.22625532746315002,
-1.060417890548706,
0.7037822604179382,
-0.38269370794296265,
0.09933164715766907,
1.9604278802871704,
0.12224079668521881,
-0.8160359263420105,
0.25980353355407715,
-0.802314043045044,
2.0005593299865723,
1.6747047901153564,
1.4220380783081055,
-0.14292003214359283,
-0.9290137887001038,
0.6780639290809631,
-0.20907354354858398,
-0.3729235529899597,
0.8781419992446899,
0.5067541599273682,
-0.16874752938747406,
-1.4097497463226318,
0.5968693494796753,
1.2528632879257202,
-0.8791943788528442,
-0.7666041851043701,
0.10310906171798706,
-0.8170814514160156,
1.098050594329834,
0.7093427181243896,
0.471354216337204,
0.20499899983406067,
1.614660382270813,
0.787158191204071,
-0.5747312903404236,
0.6020035147666931,
0.5299507975578308,
-0.12434004247188568,
-2.0508177280426025,
-1.0821436643600464,
0.42453572154045105,
-0.39979925751686096,
-1.5308674573898315,
1.37385094165802,
-1.1560488939285278,
-0.948497474193573,
0.5519095659255981,
0.10063585638999939,
1.4501510858535767,
0.206864133477211,
1.547189474105835,
2.042659044265747,
0.9477167725563049,
0.42101791501045227,
1.2371916770935059,
-0.13881658017635345,
-0.45250752568244934,
1.8126403093338013,
-0.4054299592971802,
0.4694954752922058,
1.0968549251556396,
-0.41331562399864197,
-1.0308713912963867,
-0.6738765239715576,
-1.1563879251480103,
-0.616037130355835,
1.1128102540969849,
0.1565709412097931,
-1.1391514539718628,
0.21001285314559937,
1.5346344709396362,
0.035837624222040176,
-0.3299543857574463,
0.41218605637550354,
0.4815371334552765,
-0.7040889859199524,
-0.07968807220458984,
-0.9518266320228577,
0.508413553237915,
-0.1861763447523117,
-0.36656486988067627,
0.34063783288002014,
0.3958832919597626,
1.2651900053024292,
-0.038241900503635406,
0.110706627368927,
1.228779673576355,
-1.4209896326065063,
1.421875238418579,
-0.5948777794837952,
0.25407373905181885,
-2.349673271179199,
1.4378360509872437,
-0.7283657193183899,
1.9229052066802979,
-2.6042959690093994,
0.3761437237262726,
-0.7460362911224365,
-0.38748353719711304,
0.41369643807411194,
-0.35677406191825867,
0.14274856448173523,
-0.21008993685245514,
-1.058048963546753,
-0.12506899237632751,
-0.8006128668785095,
0.6358019113540649,
1.1020418405532837,
1.2226961851119995,
-1.0232151746749878,
-0.21219240128993988,
-1.5940228700637817,
-0.18424059450626373,
-0.5946552753448486,
0.3156660497188568,
-2.041440486907959,
-0.1835334599018097,
-2.0465683937072754,
-2.3098576068878174,
-1.2885017395019531,
-0.742075502872467,
1.0938498973846436,
0.15465497970581055,
-0.9162564277648926,
1.22628653049469,
-0.3575111925601959,
-1.8079255819320679,
1.1495708227157593,
-2.1542913913726807
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | thanks for the help!
can I do anything on my side? we are doing a DL project and we need the
data really quick.
thanks
bogdan
> Message ID: ***@***.***>
>
| ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 31 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
thanks for the help!
can I do anything on my side? we are doing a DL project and we need the
data really quick.
thanks
bogdan
> Message ID: ***@***.***>
>
| [
-1.2627248764038086,
-0.9977168440818787,
-0.7200328707695007,
1.393822431564331,
-0.23218956589698792,
-1.2249743938446045,
0.15750783681869507,
-1.0767273902893066,
1.6008732318878174,
-0.7729817032814026,
0.20860140025615692,
-1.655421257019043,
0.019205667078495026,
-0.4889303743839264,
-0.7977694869041443,
-0.9264867305755615,
-0.4314100742340088,
-0.7646424174308777,
1.0420312881469727,
2.507906675338745,
1.2373079061508179,
-1.3866510391235352,
2.718271493911743,
0.6668030619621277,
-0.22340071201324463,
-0.954514741897583,
0.4897761046886444,
0.15605942904949188,
-1.3097470998764038,
-0.43075862526893616,
-0.8688439130783081,
-0.12531611323356628,
-0.5581835508346558,
-0.5438725352287292,
0.03514414280653,
0.4202393889427185,
-0.21941766142845154,
-0.409976989030838,
-0.48158949613571167,
-0.7319640517234802,
0.5243918299674988,
-0.48594653606414795,
0.9916272163391113,
-0.44505032896995544,
1.8939785957336426,
-0.5875869393348694,
0.47585752606391907,
0.6557909846305847,
1.3536326885223389,
0.21703077852725983,
-0.051850154995918274,
0.33981600403785706,
0.4480976164340973,
-0.022380175068974495,
0.34124428033828735,
1.093522548675537,
0.6346218585968018,
0.536041796207428,
0.6774088144302368,
-2.1009082794189453,
1.2874239683151245,
-0.9848462343215942,
0.33379295468330383,
1.4456098079681396,
-0.986369252204895,
0.42674127221107483,
-1.7458077669143677,
-0.12921416759490967,
0.5847046375274658,
-2.3225064277648926,
0.23439812660217285,
-1.238648533821106,
-0.623821496963501,
0.9084376692771912,
0.32840943336486816,
-1.3023993968963623,
0.038537830114364624,
-0.5946247577667236,
1.0770552158355713,
0.4253302812576294,
1.147239089012146,
-1.7262555360794067,
-0.1260111778974533,
-0.21222177147865295,
0.08350837230682373,
-1.3478833436965942,
-1.5177675485610962,
0.5040891766548157,
0.6606265902519226,
0.6041355133056641,
-0.02629556879401207,
0.8385951519012451,
-1.001239538192749,
0.860362708568573,
-0.9652154445648193,
-1.6221582889556885,
-1.4084299802780151,
-2.320046901702881,
-2.2716474533081055,
0.8137302398681641,
-0.38881513476371765,
-0.5603477358818054,
1.9692250490188599,
-0.9980255365371704,
-1.7292343378067017,
1.204889178276062,
0.21315966546535492,
-0.015161683782935143,
2.3795604705810547,
0.12890620529651642,
-0.7234135270118713,
0.5061089396476746,
-0.7808169722557068,
0.8489606380462646,
-0.5351551175117493,
1.3881638050079346,
0.4399764835834503,
-1.0007026195526123,
1.5557982921600342,
-0.45885637402534485,
0.589912474155426,
-0.7263323068618774,
-0.5302550196647644,
-0.8296276330947876,
0.3156730532646179,
1.904165267944336,
-0.2537304162979126,
1.6868269443511963,
-0.3357886075973511,
-1.576133370399475,
-1.5545685291290283,
0.9225747585296631,
0.45944860577583313,
-0.792949378490448,
0.1082162857055664,
-0.36191776394844055,
0.1122760996222496,
0.013874500058591366,
0.995498538017273,
1.2581496238708496,
0.6783145666122437,
-0.25134751200675964,
-0.9319639205932617,
0.2528367042541504,
-0.15754157304763794,
-0.710059642791748,
-1.8344017267227173,
-0.3073439598083496,
0.06371360272169113,
0.6623760461807251,
-1.307417869567871,
1.619928240776062,
0.8115613460540771,
1.9706439971923828,
0.9423266649246216,
-0.34831470251083374,
1.4674713611602783,
0.12895840406417847,
1.8201048374176025,
-0.520359992980957,
0.7913135886192322,
-0.3668031394481659,
-1.0454800128936768,
0.7173738479614258,
-0.42467910051345825,
-1.993604302406311,
-0.7605988383293152,
-0.8447227478027344,
-0.1669144332408905,
-0.8018109798431396,
0.9833495616912842,
-0.3307434618473053,
-1.31712806224823,
0.40616050362586975,
-0.7499623894691467,
0.2027653306722641,
-1.2563369274139404,
0.41953831911087036,
0.8224945664405823,
-0.5737696886062622,
0.05493922159075737,
-0.26466700434684753,
-1.2796339988708496,
-0.4976789355278015,
0.3480249047279358,
1.9362130165100098,
-0.7491434812545776,
0.8861660361289978,
0.880305290222168,
-0.6459658741950989,
-0.007671706844121218,
0.3690691292285919,
-0.285281240940094,
0.7914336919784546,
-1.13801109790802,
-0.2992694675922394,
1.1039820909500122,
-0.3018040955066681,
-0.5669297575950623,
1.433888554573059,
0.8108850121498108,
-0.9448530673980713,
-0.1508346050977707,
-0.1481800377368927,
-0.8036354780197144,
0.006468827836215496,
-1.6343419551849365,
-0.1253124177455902,
0.2876172661781311,
-1.5626829862594604,
-0.5070606470108032,
-0.25750085711479187,
1.2514325380325317,
-0.1589045226573944,
1.4540022611618042,
-0.3194088637828827,
-0.253243088722229,
-0.41840240359306335,
-0.4342295229434967,
0.17781473696231842,
-0.28228914737701416,
-0.5526646971702576,
0.20345047116279602,
-0.7387231588363647,
0.3971923589706421,
1.4173885583877563,
0.38953065872192383,
0.050781574100255966,
0.5297678112983704,
1.0438801050186157,
0.3314322531223297,
-0.1408684253692627,
-0.8232433199882507,
-1.5799471139907837,
2.055790662765503,
-1.4737310409545898,
1.951016902923584,
0.8698537945747375,
-0.12840372323989868,
-1.702088475227356,
-1.904496192932129,
1.2782752513885498,
1.2212858200073242,
2.301333427429199,
0.6739025712013245,
0.44128334522247314,
-0.8457317352294922,
-0.6372597217559814,
0.2370995283126831,
-1.0689266920089722,
-0.7853240370750427,
0.10911919921636581,
2.366943597793579,
1.6824456453323364,
-0.5078421235084534,
-0.14425617456436157,
-1.1142845153808594,
1.3971682786941528,
-0.07912884652614594,
0.2290026694536209,
2.0249996185302734,
-0.25610536336898804,
-1.1348124742507935,
1.2394911050796509,
-2.222745656967163,
0.08430177718400955,
1.99313223361969,
0.27458930015563965,
0.04441848397254944,
-1.4407994747161865,
-0.6753619909286499,
-0.3256061375141144,
-0.2299807369709015,
-1.2214899063110352,
0.5416892766952515,
-0.2680203318595886,
-0.7448357343673706,
-1.5487604141235352,
0.12761807441711426,
-1.0989265441894531,
-1.5773874521255493,
0.3497154712677002,
1.9131215810775757,
2.0099053382873535,
-0.6788632273674011,
1.5234581232070923,
-0.1779504120349884,
0.16075967252254486,
1.2529020309448242,
1.132987141609192,
3.151219606399536,
1.9754329919815063,
-1.2016044855117798,
0.6000881791114807,
-0.11316099762916565,
-0.45852628350257874,
1.1251599788665771,
-1.157308578491211,
1.3024160861968994,
-0.15518717467784882,
-1.1691490411758423,
-1.2645618915557861,
0.992679238319397,
0.5059323906898499,
0.10218922793865204,
-0.47443750500679016,
1.2285184860229492,
-0.006196849979460239,
1.3843755722045898,
0.4598434865474701,
-0.26420289278030396,
0.5854968428611755,
-0.44920194149017334,
-0.4899837076663971,
1.6422852277755737,
0.23990240693092346,
-1.488531231880188,
-2.4350085258483887,
-0.25239527225494385,
-0.7902632355690002,
0.012414404191076756,
-0.6956199407577515,
-1.0932129621505737,
1.6929161548614502,
0.48605501651763916,
-1.1429234743118286,
-0.3932797908782959,
-0.3353249132633209,
-0.6855205297470093,
2.630274534225464,
-1.4876997470855713,
-0.3059265613555908,
-0.8967021107673645,
-0.5890012979507446,
1.6222388744354248,
-1.311543583869934,
-0.2003631293773651,
-1.0285166501998901,
-0.6166921257972717,
-1.2117373943328857,
-0.5647940635681152,
-0.09077244251966476,
-0.9423830509185791,
0.7564703822135925,
0.21475781500339508,
-1.086065649986267,
-0.23914894461631775,
-0.8923640251159668,
0.7780365943908691,
-0.005941035225987434,
0.30137765407562256,
1.8422226905822754,
0.4349929988384247,
-0.37919601798057556,
0.7342339754104614,
1.1897467374801636,
0.6816099286079407,
-0.7951622009277344,
0.06758244335651398,
-0.7029095888137817,
0.19381141662597656,
-1.2382794618606567,
0.3341088891029358,
-2.8573007583618164,
0.5373736023902893,
-0.1151980459690094,
-0.20739002525806427,
0.03009767457842827,
-1.3151482343673706,
1.1729536056518555,
2.625998020172119,
-1.14299738407135,
0.4490090310573578,
0.30382049083709717,
1.2899008989334106,
-1.6705857515335083,
0.4257202744483948,
-0.4118959307670593,
2.118791341781616,
0.2718793451786041,
1.1768286228179932,
-0.5614119172096252,
-2.3434383869171143,
0.6558255553245544,
-1.1791603565216064,
-1.2828543186187744,
0.6546910405158997,
-0.9168131351470947,
-0.01141356397420168,
-1.4382723569869995,
-0.2102411985397339,
-0.8325330018997192,
-1.3164674043655396,
0.6720010638237,
0.11188492923974991,
0.48792707920074463,
-0.5790097117424011,
0.37172001600265503,
-2.158085584640503,
-1.4077813625335693,
-0.3177723288536072,
-0.9141668081283569,
0.39189204573631287,
-0.3927501142024994,
0.712455153465271,
-0.23712176084518433,
0.04909554123878479,
0.33799538016319275,
1.3813023567199707,
3.3653886318206787,
0.24456468224525452,
0.38608819246292114,
-0.0979023426771164,
-0.8654191493988037,
1.462881088256836,
0.9589051604270935,
-0.07349155843257904,
-0.599833071231842,
-0.908509373664856,
1.3334941864013672,
1.9966219663619995,
0.9719751477241516,
0.07361585646867752,
-0.6730675101280212,
-0.5879712104797363,
-0.05624859780073166,
0.27156245708465576,
0.43177521228790283,
0.9385965466499329,
0.009611154906451702,
0.09704700112342834,
1.4253675937652588,
1.3070505857467651,
-0.5185180902481079,
0.39063766598701477,
-0.77195143699646,
-0.5023780465126038,
0.4883244037628174,
0.4165756106376648,
-0.10906116664409637,
0.3652729094028473,
-0.9740346670150757,
-0.2201986312866211,
-0.40078407526016235,
-0.9171780347824097,
-0.7128039002418518,
-0.39398878812789917,
-0.36676928400993347,
1.709054708480835,
0.10134928673505783,
-0.5035996437072754,
-0.05878540500998497,
-0.7712922692298889,
-0.12556064128875732,
-1.1510270833969116,
0.24824166297912598,
-0.13849759101867676,
-0.059157125651836395,
0.07146007567644119,
1.8600258827209473,
-0.9465963840484619,
-2.2000558376312256,
0.18199220299720764,
0.28332075476646423,
-0.4123665392398834,
0.1112545058131218,
1.6106593608856201,
0.4958840310573578,
1.4195557832717896,
1.376063346862793,
0.9222027659416199,
-0.678598165512085,
-1.3224631547927856,
0.6851520538330078,
0.8914850354194641,
-1.4768414497375488,
0.7016550898551941,
0.022812332957983017,
-0.6289877891540527,
0.738910973072052,
1.216212272644043,
0.4498225450515747,
-1.9207738637924194,
0.825365424156189,
-0.922244131565094,
0.8404743671417236,
0.7475744485855103,
0.6495836973190308,
0.2798067629337311,
0.845823347568512,
-1.268805742263794,
-1.0651007890701294,
-0.899745523929596,
-0.5951902270317078,
1.9299774169921875,
-0.2656234800815582,
0.46803635358810425,
-0.12290160357952118,
-1.2045555114746094,
-0.04240807518362999,
0.6759513020515442,
0.44448786973953247,
-0.2791796028614044,
0.784005880355835,
-0.7057675123214722,
-1.1826989650726318,
-1.3630493879318237,
-0.41313353180885315,
-0.8972480297088623,
-0.9257248044013977,
1.0772004127502441,
0.8131685256958008,
0.3203830122947693,
1.9568638801574707,
0.6210911273956299,
0.27905720472335815,
-2.678377866744995,
0.9062447547912598,
0.3349921703338623,
-0.03499140962958336,
0.9655698537826538,
0.2789568305015564,
1.0620518922805786,
0.04808345064520836,
0.4163438677787781,
-2.3897273540496826,
2.2284181118011475,
-0.341884583234787,
0.7382952570915222,
0.014833693392574787,
-0.02228987030684948,
1.193199872970581,
0.5392115116119385,
0.5104407072067261,
-1.0653425455093384,
0.7958786487579346,
-0.5877604484558105,
1.2566072940826416,
0.9144257307052612,
-0.8012396693229675,
-0.04994284734129906,
1.2866491079330444,
0.502405047416687,
-0.5030661821365356,
-0.8990788459777832,
-0.8517867922782898,
0.8903763294219971,
1.7491787672042847,
-0.04653662443161011,
0.0786813348531723,
0.8771504163742065,
0.6140507459640503,
-1.3484272956848145,
0.04583476483821869,
-0.7854223251342773,
-0.7576650381088257,
1.719721794128418,
2.038313627243042,
-0.03782191872596741,
-0.21057966351509094,
-0.7004687190055847,
-1.380997657775879,
0.8271090984344482,
-0.005428913980722427,
0.24696499109268188,
0.6199652552604675,
-0.6897119283676147,
1.067315697669983,
0.8836391568183899,
0.9869648814201355,
0.1474352478981018,
0.29465252161026,
0.38621488213539124,
-0.26887863874435425,
-1.0693919658660889,
-0.26490268111228943,
-1.1418859958648682,
-2.428049087524414,
0.46576154232025146,
-0.2881981134414673,
-1.4367523193359375,
0.09827753156423569,
-1.0532063245773315,
0.9659424424171448,
-0.5740470886230469,
-1.014210820198059,
-1.5865719318389893,
0.20320330560207367,
-0.1635928452014923,
0.8699671626091003,
-1.6103161573410034,
-0.11984733492136002,
1.2006242275238037,
0.7345960736274719,
-0.5793207883834839,
1.0794039964675903,
0.23588909208774567,
1.0304155349731445,
0.8216162919998169,
-0.4347052574157715,
0.3860236704349518,
0.08738599717617035,
-1.356472134590149,
0.5446836948394775,
1.1491678953170776,
0.1782640814781189,
1.479377031326294,
-0.6100733280181885,
-0.04184485226869583,
0.39921414852142334,
-0.4418759346008301,
-0.4933985769748688,
-0.5507898330688477,
0.7122138738632202,
0.09062034636735916,
-0.8709710240364075,
0.0023573562502861023,
-0.21894162893295288,
-0.26631802320480347,
0.21725913882255554,
-1.5612584352493286,
-0.19817104935646057,
-0.4732745885848999,
-0.6549624800682068,
-1.2347861528396606,
0.03438183665275574,
1.4330779314041138,
-0.7880633473396301,
-0.20036637783050537,
0.4708694815635681,
0.5125715732574463,
0.5322490930557251,
0.6615816354751587,
-0.651042103767395,
-0.371558278799057,
-0.28785160183906555,
-0.30942901968955994,
0.31975772976875305,
1.2736362218856812,
-0.23028691112995148,
-1.0651962757110596,
0.6887142062187195,
-0.38484829664230347,
0.11272326111793518,
1.976719856262207,
0.14122676849365234,
-0.8061345219612122,
0.23294620215892792,
-0.7988444566726685,
2.001525402069092,
1.6328717470169067,
1.4490458965301514,
-0.09249351918697357,
-0.9287946224212646,
0.5536993741989136,
-0.15116578340530396,
-0.4042667746543884,
0.8107020854949951,
0.596297562122345,
-0.15606366097927094,
-1.3952112197875977,
0.5865545868873596,
1.239038109779358,
-0.9092149138450623,
-0.7668185234069824,
0.09690138697624207,
-0.7808153629302979,
1.0949660539627075,
0.7030643820762634,
0.4753822982311249,
0.2354305535554886,
1.6804341077804565,
0.7544010281562805,
-0.5538517832756042,
0.5327003598213196,
0.5282107591629028,
-0.1037965714931488,
-2.0703606605529785,
-1.1280429363250732,
0.40078282356262207,
-0.3882533311843872,
-1.5303986072540283,
1.3438491821289062,
-1.1233906745910645,
-0.9084022045135498,
0.5283890962600708,
0.1759021133184433,
1.5150994062423706,
0.21875052154064178,
1.582011342048645,
2.020230293273926,
0.9735760688781738,
0.41231611371040344,
1.2826025485992432,
-0.08863663673400879,
-0.478633314371109,
1.8176496028900146,
-0.3867042660713196,
0.5063843727111816,
1.1186250448226929,
-0.44799119234085083,
-1.0782642364501953,
-0.6543367505073547,
-1.1331266164779663,
-0.6274027228355408,
1.1015040874481201,
0.1579810380935669,
-1.1958163976669312,
0.18426327407360077,
1.5130228996276855,
0.05834517255425453,
-0.32449227571487427,
0.3650704026222229,
0.432555615901947,
-0.7143190503120422,
-0.0785287544131279,
-1.0417076349258423,
0.5320085287094116,
-0.18038883805274963,
-0.40167924761772156,
0.28739121556282043,
0.49739155173301697,
1.2327539920806885,
-0.0751059353351593,
0.14349617063999176,
1.2524898052215576,
-1.369707465171814,
1.4113376140594482,
-0.6172317862510681,
0.23760583996772766,
-2.3142595291137695,
1.4624712467193604,
-0.7348604202270508,
1.9164576530456543,
-2.6486661434173584,
0.327539324760437,
-0.7211167812347412,
-0.3244328796863556,
0.4125535786151886,
-0.3427591025829315,
0.19334961473941803,
-0.20637072622776031,
-1.115186333656311,
-0.10645154863595963,
-0.8361087441444397,
0.6304752826690674,
1.1415371894836426,
1.2888422012329102,
-1.0681740045547485,
-0.17303051054477692,
-1.6250303983688354,
-0.21074852347373962,
-0.6333373188972473,
0.3032628297805786,
-2.056190252304077,
-0.09810944646596909,
-1.9697941541671753,
-2.2606723308563232,
-1.3373831510543823,
-0.7864324450492859,
1.0181779861450195,
0.13115747272968292,
-0.9076958894729614,
1.2082494497299194,
-0.3522239029407501,
-1.7670989036560059,
1.1515746116638184,
-2.2317957878112793
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | I opened a pull requests here: https://github.com/huggingface/datasets/pull/5285, we'll do a new release soon with this fix.
Otherwise if you're really in a hurry you can install `datasets` from this PR | ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 30 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
I opened a pull requests here: https://github.com/huggingface/datasets/pull/5285, we'll do a new release soon with this fix.
Otherwise if you're really in a hurry you can install `datasets` from this PR | [
-1.2496193647384644,
-0.9765840768814087,
-0.786060094833374,
1.4415929317474365,
-0.17721234261989594,
-1.2027170658111572,
0.13879597187042236,
-1.0286753177642822,
1.6046327352523804,
-0.7760149240493774,
0.25483062863349915,
-1.6858975887298584,
0.014647134579718113,
-0.5268007516860962,
-0.781199038028717,
-0.9290818572044373,
-0.3900384306907654,
-0.7665585279464722,
1.0415928363800049,
2.4823496341705322,
1.2366573810577393,
-1.4136918783187866,
2.7326204776763916,
0.6527729034423828,
-0.17546451091766357,
-0.9768388867378235,
0.4957302510738373,
0.09704357385635376,
-1.2589685916900635,
-0.41416656970977783,
-0.9013911485671997,
-0.06530977785587311,
-0.6114014387130737,
-0.5757226943969727,
-0.0024727717973291874,
0.4365103542804718,
-0.29478856921195984,
-0.4022541642189026,
-0.4507807493209839,
-0.768136739730835,
0.5047003030776978,
-0.4178730845451355,
0.9691174030303955,
-0.40484675765037537,
1.9018549919128418,
-0.535219669342041,
0.4142734706401825,
0.6595659255981445,
1.3605486154556274,
0.20111794769763947,
0.010002612136304379,
0.29756513237953186,
0.36792683601379395,
-0.01243644766509533,
0.4213868975639343,
1.1471471786499023,
0.6514057517051697,
0.5305017828941345,
0.6478889584541321,
-2.1379716396331787,
1.288746953010559,
-0.9616739749908447,
0.331739217042923,
1.3723589181900024,
-0.9444682598114014,
0.40749043226242065,
-1.7512089014053345,
-0.10125204175710678,
0.5778493881225586,
-2.241204023361206,
0.27295050024986267,
-1.2110353708267212,
-0.5565337538719177,
0.9528501033782959,
0.304928183555603,
-1.3002402782440186,
0.09096919000148773,
-0.5374780297279358,
1.1175698041915894,
0.4443686902523041,
1.194619059562683,
-1.6569459438323975,
-0.006251963786780834,
-0.2271755188703537,
0.11495797336101532,
-1.2956234216690063,
-1.5372707843780518,
0.43529021739959717,
0.6793630719184875,
0.6244808435440063,
-0.05537014827132225,
0.893826961517334,
-1.0184353590011597,
0.8186094760894775,
-0.9415044188499451,
-1.647396445274353,
-1.4078432321548462,
-2.330585241317749,
-2.3546407222747803,
0.7653195261955261,
-0.41629263758659363,
-0.5237124562263489,
1.9841521978378296,
-0.9840418100357056,
-1.762948751449585,
1.1824818849563599,
0.28780627250671387,
-0.03826795890927315,
2.3607871532440186,
0.17087231576442719,
-0.7952948808670044,
0.5298545956611633,
-0.7708069086074829,
0.8406409025192261,
-0.5044514536857605,
1.40230393409729,
0.4830351173877716,
-1.0165818929672241,
1.590973973274231,
-0.4797036349773407,
0.5570840835571289,
-0.7341208457946777,
-0.48414933681488037,
-0.8201544880867004,
0.26936420798301697,
1.8419400453567505,
-0.28214478492736816,
1.686991810798645,
-0.3539401590824127,
-1.5484544038772583,
-1.562604308128357,
0.9083637595176697,
0.41447073221206665,
-0.7693500518798828,
0.12213508784770966,
-0.3628111779689789,
0.14087194204330444,
0.027431905269622803,
1.0171080827713013,
1.2257944345474243,
0.6679148077964783,
-0.2455843985080719,
-0.935702383518219,
0.2573275864124298,
-0.157111257314682,
-0.6279622912406921,
-1.827941656112671,
-0.2681535482406616,
0.11838336288928986,
0.6716569066047668,
-1.3108510971069336,
1.6620550155639648,
0.7968605160713196,
1.9665662050247192,
0.9596956372261047,
-0.36908629536628723,
1.517746925354004,
0.09481855481863022,
1.8453881740570068,
-0.4878765642642975,
0.7342329621315002,
-0.31488022208213806,
-1.1055421829223633,
0.7388834953308105,
-0.38977059721946716,
-2.0064589977264404,
-0.789044976234436,
-0.8026365041732788,
-0.12963449954986572,
-0.7798395752906799,
0.9695662260055542,
-0.3452669084072113,
-1.3568671941757202,
0.387671560049057,
-0.7392250299453735,
0.20098142325878143,
-1.2421704530715942,
0.33808135986328125,
0.7863429188728333,
-0.6320527195930481,
0.07702217996120453,
-0.26159533858299255,
-1.2753312587738037,
-0.4713066518306732,
0.41730934381484985,
1.916890263557434,
-0.7265496850013733,
0.8639984726905823,
0.973501443862915,
-0.6647034883499146,
-0.005383751355111599,
0.3760649561882019,
-0.28855055570602417,
0.8407303690910339,
-1.1135586500167847,
-0.40927553176879883,
1.1707242727279663,
-0.2764039635658264,
-0.6519290208816528,
1.410820484161377,
0.8455862998962402,
-0.9572576284408569,
-0.11759650707244873,
-0.13198281824588776,
-0.7756410241127014,
-0.005166719667613506,
-1.5990792512893677,
-0.10501477867364883,
0.3212747871875763,
-1.554465889930725,
-0.4585980176925659,
-0.262938529253006,
1.2452144622802734,
-0.16694004833698273,
1.5101121664047241,
-0.31590089201927185,
-0.22299689054489136,
-0.3834206163883209,
-0.45490968227386475,
0.14001481235027313,
-0.2323714941740036,
-0.5887478590011597,
0.22535769641399384,
-0.7565917372703552,
0.39349693059921265,
1.3703275918960571,
0.35800400376319885,
0.04226833954453468,
0.5599259734153748,
1.102089285850525,
0.36426931619644165,
-0.07673972845077515,
-0.7972139120101929,
-1.5743058919906616,
2.0294957160949707,
-1.4131509065628052,
1.9912998676300049,
0.845249593257904,
-0.10766105353832245,
-1.7593404054641724,
-1.8529783487319946,
1.3491356372833252,
1.2108039855957031,
2.3362362384796143,
0.6372569799423218,
0.4318969249725342,
-0.8550160527229309,
-0.6892912983894348,
0.27409860491752625,
-1.0505414009094238,
-0.7900869846343994,
0.12632042169570923,
2.391296863555908,
1.7028506994247437,
-0.4477810263633728,
-0.17293554544448853,
-1.0967389345169067,
1.3777488470077515,
-0.14578889310359955,
0.2183450609445572,
2.0116055011749268,
-0.3022693991661072,
-1.1025687456130981,
1.2766200304031372,
-2.3140666484832764,
0.1323961615562439,
2.034363031387329,
0.2636399567127228,
0.015795987099409103,
-1.4623565673828125,
-0.6768714189529419,
-0.28722691535949707,
-0.2742132842540741,
-1.230304479598999,
0.581947386264801,
-0.25508347153663635,
-0.7730095982551575,
-1.520623803138733,
0.12222118675708771,
-1.1012215614318848,
-1.6094461679458618,
0.34639066457748413,
1.8846195936203003,
2.016660690307617,
-0.7332091331481934,
1.5212711095809937,
-0.16540290415287018,
0.20850180089473724,
1.2875819206237793,
1.1671408414840698,
3.159240245819092,
1.9411492347717285,
-1.2570843696594238,
0.6366662383079529,
-0.09715646505355835,
-0.5214592218399048,
1.1580116748809814,
-1.17316734790802,
1.2656831741333008,
-0.20329460501670837,
-1.2221986055374146,
-1.278761625289917,
1.0139551162719727,
0.5197767019271851,
0.08712010085582733,
-0.47227200865745544,
1.2705466747283936,
0.0310138501226902,
1.3471043109893799,
0.4803762137889862,
-0.28684523701667786,
0.5695802569389343,
-0.394340842962265,
-0.5228395462036133,
1.6066077947616577,
0.18643046915531158,
-1.466528058052063,
-2.369986057281494,
-0.24173669517040253,
-0.794170081615448,
-0.08844247460365295,
-0.7051625847816467,
-1.0640770196914673,
1.6764079332351685,
0.44804179668426514,
-1.1594563722610474,
-0.3818703889846802,
-0.32966452836990356,
-0.6349077820777893,
2.6035637855529785,
-1.4658654928207397,
-0.28926190733909607,
-0.9459981918334961,
-0.6000272631645203,
1.5688021183013916,
-1.2547801733016968,
-0.19046391546726227,
-1.0049235820770264,
-0.6597902774810791,
-1.297824740409851,
-0.6017393469810486,
-0.060865506529808044,
-0.8881311416625977,
0.7259134650230408,
0.21251802146434784,
-1.1164714097976685,
-0.24459068477153778,
-0.8886692523956299,
0.8419631123542786,
-0.05660023167729378,
0.3187488615512848,
1.8078086376190186,
0.45462387800216675,
-0.4129822552204132,
0.7504637241363525,
1.1771845817565918,
0.6762738227844238,
-0.7400779128074646,
0.13738317787647247,
-0.7362820506095886,
0.2493939846754074,
-1.2787176370620728,
0.3004414737224579,
-2.8604848384857178,
0.5953661203384399,
-0.10428116470575333,
-0.19738130271434784,
-0.010826211422681808,
-1.292291283607483,
1.1539369821548462,
2.607980728149414,
-1.161757230758667,
0.42109400033950806,
0.34252309799194336,
1.2452117204666138,
-1.6308850049972534,
0.36362317204475403,
-0.4463951587677002,
2.0781102180480957,
0.20933282375335693,
1.205931305885315,
-0.5269715785980225,
-2.3061399459838867,
0.6243610978126526,
-1.2383259534835815,
-1.204100251197815,
0.7887353301048279,
-0.9191420674324036,
0.045936744660139084,
-1.3835914134979248,
-0.2161959558725357,
-0.9014397859573364,
-1.3524329662322998,
0.6866084337234497,
0.11902955174446106,
0.47167301177978516,
-0.5681408047676086,
0.4108908176422119,
-2.1223978996276855,
-1.3969662189483643,
-0.2762221395969391,
-0.9321088790893555,
0.3917131721973419,
-0.35761141777038574,
0.6803286075592041,
-0.22823384404182434,
0.0342167466878891,
0.34045717120170593,
1.3990139961242676,
3.382727861404419,
0.2622341811656952,
0.41833484172821045,
-0.04435422271490097,
-0.9199128746986389,
1.4953192472457886,
0.9451326131820679,
-0.14413943886756897,
-0.560081422328949,
-0.9338678121566772,
1.3237566947937012,
1.984129548072815,
1.0347744226455688,
0.056629739701747894,
-0.7192848324775696,
-0.6486180424690247,
0.009467731229960918,
0.212313711643219,
0.4188816249370575,
0.9080310463905334,
-0.015979520976543427,
0.10978913307189941,
1.4090489149093628,
1.3120133876800537,
-0.46270203590393066,
0.39839106798171997,
-0.7974525094032288,
-0.48894059658050537,
0.5180496573448181,
0.3522290885448456,
-0.07466384768486023,
0.41415393352508545,
-1.02170991897583,
-0.24308684468269348,
-0.41696158051490784,
-0.9491379857063293,
-0.7383304238319397,
-0.42218539118766785,
-0.3153619170188904,
1.644467830657959,
0.1028594821691513,
-0.531921923160553,
-0.0219138041138649,
-0.8055243492126465,
-0.14757506549358368,
-1.0898356437683105,
0.22408220171928406,
-0.1503022462129593,
-0.07120735198259354,
0.028850171715021133,
1.8218048810958862,
-1.0183429718017578,
-2.2031500339508057,
0.16754603385925293,
0.2830200791358948,
-0.32954442501068115,
0.1363053321838379,
1.6484260559082031,
0.4655475616455078,
1.3654162883758545,
1.3401134014129639,
0.9333360195159912,
-0.6966409683227539,
-1.2982544898986816,
0.7251269817352295,
0.9616867899894714,
-1.4518543481826782,
0.761116623878479,
-0.05376783758401871,
-0.6282487511634827,
0.7536288499832153,
1.1997126340866089,
0.4430522322654724,
-1.9193041324615479,
0.7903560400009155,
-0.8928753733634949,
0.8120555877685547,
0.6733862161636353,
0.6780850887298584,
0.24478034675121307,
0.8518475294113159,
-1.2893378734588623,
-1.0778874158859253,
-0.8189796209335327,
-0.6144811511039734,
1.8519796133041382,
-0.2605227530002594,
0.49739953875541687,
-0.11873692274093628,
-1.2948458194732666,
-0.09741757810115814,
0.7351352572441101,
0.38311344385147095,
-0.3997972309589386,
0.8176760077476501,
-0.7012109756469727,
-1.1297396421432495,
-1.3534629344940186,
-0.4099225699901581,
-0.9558966159820557,
-0.9174405932426453,
1.0965667963027954,
0.7924298644065857,
0.26693961024284363,
1.945922613143921,
0.6145951747894287,
0.25186535716056824,
-2.6741392612457275,
0.9134926199913025,
0.3328065574169159,
-0.026666764169931412,
0.9146751761436462,
0.2925875782966614,
1.0360746383666992,
0.026958856731653214,
0.48802247643470764,
-2.360400438308716,
2.2366838455200195,
-0.3275148570537567,
0.7295455932617188,
-0.016392719000577927,
-0.08027029782533646,
1.1620254516601562,
0.49264267086982727,
0.549767792224884,
-1.0854600667953491,
0.7970452308654785,
-0.593124270439148,
1.2193411588668823,
0.9670676589012146,
-0.8779555559158325,
-0.03369836509227753,
1.2976477146148682,
0.44862890243530273,
-0.4614151120185852,
-0.8961740136146545,
-0.8419349193572998,
0.9482634663581848,
1.7598005533218384,
0.0030987448990345,
0.0801907330751419,
0.951070249080658,
0.5911657214164734,
-1.3825644254684448,
0.05508001148700714,
-0.7602817416191101,
-0.7473161220550537,
1.7892812490463257,
2.0328218936920166,
-0.07890119403600693,
-0.2277790904045105,
-0.7498780488967896,
-1.3427176475524902,
0.7817848920822144,
-0.019039394333958626,
0.20054419338703156,
0.6935204267501831,
-0.7275615930557251,
1.0802955627441406,
0.8218835592269897,
0.9548804759979248,
0.12035560607910156,
0.24884431064128876,
0.386690229177475,
-0.29497990012168884,
-1.1294783353805542,
-0.2675473392009735,
-1.0988041162490845,
-2.474097967147827,
0.3961993157863617,
-0.2700453996658325,
-1.453691005706787,
0.08284793049097061,
-1.0235786437988281,
0.9599313139915466,
-0.5312365293502808,
-1.0230095386505127,
-1.510037899017334,
0.2700241506099701,
-0.14181843400001526,
0.8397773504257202,
-1.6012223958969116,
-0.08141782879829407,
1.246432900428772,
0.8126923441886902,
-0.6072604656219482,
1.0554981231689453,
0.22266097366809845,
1.03386652469635,
0.8474533557891846,
-0.3941856026649475,
0.43444493412971497,
0.1394280344247818,
-1.3276240825653076,
0.48731741309165955,
1.1464961767196655,
0.16315841674804688,
1.4847458600997925,
-0.5678375959396362,
-0.036718133836984634,
0.42731964588165283,
-0.47834116220474243,
-0.533136785030365,
-0.5629245042800903,
0.6758934855461121,
0.074576236307621,
-0.8602262735366821,
0.02277650684118271,
-0.16789793968200684,
-0.26481735706329346,
0.20799535512924194,
-1.591072678565979,
-0.20918039977550507,
-0.39095941185951233,
-0.6668898463249207,
-1.2466168403625488,
0.10901565104722977,
1.3949129581451416,
-0.7806521654129028,
-0.2477167695760727,
0.4636121988296509,
0.4190911650657654,
0.5510994791984558,
0.6240993738174438,
-0.645717203617096,
-0.36338648200035095,
-0.2935428321361542,
-0.3005082905292511,
0.3056522607803345,
1.2694499492645264,
-0.22615301609039307,
-1.1130502223968506,
0.7379137873649597,
-0.41757458448410034,
0.08732464164495468,
1.9257792234420776,
0.13557159900665283,
-0.7979265451431274,
0.27145975828170776,
-0.7696215510368347,
1.9518288373947144,
1.6735749244689941,
1.461168885231018,
-0.1106749102473259,
-0.9052096009254456,
0.6392876505851746,
-0.19601941108703613,
-0.4119812548160553,
0.8839865922927856,
0.5271768569946289,
-0.15548300743103027,
-1.3973230123519897,
0.5911126136779785,
1.247877836227417,
-0.9251884818077087,
-0.781956136226654,
0.09845966100692749,
-0.8298497200012207,
1.1306551694869995,
0.7250658273696899,
0.419026255607605,
0.2190324366092682,
1.6344311237335205,
0.7505547404289246,
-0.5533705353736877,
0.589491069316864,
0.5191358327865601,
-0.13817819952964783,
-2.045640707015991,
-1.075577735900879,
0.3910852074623108,
-0.3962559401988983,
-1.5557447671890259,
1.3226433992385864,
-1.1502525806427002,
-0.9590427875518799,
0.5329800248146057,
0.14023807644844055,
1.4549299478530884,
0.18527358770370483,
1.5679038763046265,
2.022874355316162,
0.9284378886222839,
0.3980650007724762,
1.2252197265625,
-0.15167802572250366,
-0.4334871172904968,
1.8232014179229736,
-0.42060646414756775,
0.5385180711746216,
1.0810399055480957,
-0.44358915090560913,
-1.0594148635864258,
-0.67056804895401,
-1.1614941358566284,
-0.5900653600692749,
1.1326916217803955,
0.16737982630729675,
-1.160834789276123,
0.19159182906150818,
1.5176786184310913,
0.058046191930770874,
-0.3416275978088379,
0.4698008894920349,
0.4528709352016449,
-0.7056372165679932,
-0.06754916161298752,
-0.9803693294525146,
0.5184202194213867,
-0.17368151247501373,
-0.33266928791999817,
0.3080047070980072,
0.4769119322299957,
1.2252776622772217,
-0.04479805380105972,
0.10297349095344543,
1.2579032182693481,
-1.3414860963821411,
1.451187252998352,
-0.6231926083564758,
0.2748677730560303,
-2.3634581565856934,
1.413527488708496,
-0.7386138439178467,
1.8616621494293213,
-2.6174914836883545,
0.39030659198760986,
-0.7020865082740784,
-0.38601768016815186,
0.4041106402873993,
-0.37359103560447693,
0.15454712510108948,
-0.234723299741745,
-1.045531988143921,
-0.12569814920425415,
-0.8173788189888,
0.6185992360115051,
1.1173747777938843,
1.2897758483886719,
-1.0844160318374634,
-0.19780904054641724,
-1.6242703199386597,
-0.21802720427513123,
-0.6671308279037476,
0.34323981404304504,
-2.0623373985290527,
-0.16353881359100342,
-2.018186330795288,
-2.3265016078948975,
-1.3139092922210693,
-0.7931138873100281,
1.05592679977417,
0.16702665388584137,
-0.9330118894577026,
1.2272623777389526,
-0.36065325140953064,
-1.8218820095062256,
1.1354093551635742,
-2.2042102813720703
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | any idea on what's going wrong here?
thanks
Am So., 27. Nov. 2022 um 13:53 Uhr schrieb Bogdan Capsa <
***@***.***>:
> [image: image.png]
>
>> Message ID: ***@***.***>
>>
>
| ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 31 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
any idea on what's going wrong here?
thanks
Am So., 27. Nov. 2022 um 13:53 Uhr schrieb Bogdan Capsa <
***@***.***>:
> [image: image.png]
>
>> Message ID: ***@***.***>
>>
>
| [
-1.236569881439209,
-1.0269745588302612,
-0.6960256695747375,
1.3576411008834839,
-0.2544994354248047,
-1.2162744998931885,
0.20918342471122742,
-1.0425646305084229,
1.6523768901824951,
-0.7125768661499023,
0.2279398888349533,
-1.6549357175827026,
-0.024651262909173965,
-0.496742844581604,
-0.8051366209983826,
-0.8862196207046509,
-0.4411759078502655,
-0.7730968594551086,
1.039628028869629,
2.505427837371826,
1.255141019821167,
-1.438762903213501,
2.7012107372283936,
0.6442093253135681,
-0.19510075449943542,
-0.9449927806854248,
0.4586412012577057,
0.1820327639579773,
-1.3135534524917603,
-0.45816418528556824,
-0.8283419013023376,
-0.13418413698673248,
-0.547403872013092,
-0.5236539244651794,
0.07844682037830353,
0.3784305155277252,
-0.1804659515619278,
-0.4287632405757904,
-0.4979582726955414,
-0.7144412398338318,
0.43156394362449646,
-0.5026357769966125,
0.9543676376342773,
-0.4366568624973297,
1.80928373336792,
-0.6541595458984375,
0.46167540550231934,
0.6666092276573181,
1.3504276275634766,
0.26028376817703247,
-0.07119034230709076,
0.364517480134964,
0.42529454827308655,
-0.03100917860865593,
0.35881510376930237,
1.09125554561615,
0.6604545712471008,
0.48046550154685974,
0.6926757097244263,
-2.141315221786499,
1.2659931182861328,
-0.9995460510253906,
0.37192437052726746,
1.4475258588790894,
-0.9772266149520874,
0.39984074234962463,
-1.7969805002212524,
-0.09977374970912933,
0.6154032349586487,
-2.3756754398345947,
0.22393792867660522,
-1.2521742582321167,
-0.6602410078048706,
0.8861238956451416,
0.31491318345069885,
-1.319823980331421,
0.047748345881700516,
-0.5904403924942017,
1.029358148574829,
0.3454531729221344,
1.1358263492584229,
-1.7662850618362427,
-0.12268659472465515,
-0.20137566328048706,
0.10518110543489456,
-1.2726484537124634,
-1.5626046657562256,
0.5652098655700684,
0.6116924285888672,
0.5825861692428589,
-0.051427096128463745,
0.785273015499115,
-1.0302197933197021,
0.8975211381912231,
-1.0050208568572998,
-1.6505142450332642,
-1.4219069480895996,
-2.2909624576568604,
-2.2507059574127197,
0.807181179523468,
-0.40596863627433777,
-0.5162278413772583,
1.9517930746078491,
-0.9197185635566711,
-1.6994297504425049,
1.216773271560669,
0.2524275481700897,
-0.001156882382929325,
2.395289421081543,
0.13055625557899475,
-0.6858218908309937,
0.4647257328033447,
-0.8271944522857666,
0.8631903529167175,
-0.4858611226081848,
1.4241317510604858,
0.3536446988582611,
-0.9615855813026428,
1.5575871467590332,
-0.4347913861274719,
0.5640880465507507,
-0.703441321849823,
-0.5465578436851501,
-0.8065652251243591,
0.29595422744750977,
1.9438607692718506,
-0.19901227951049805,
1.6818652153015137,
-0.3570094406604767,
-1.6057120561599731,
-1.540448546409607,
0.9415740370750427,
0.5007325410842896,
-0.8034734129905701,
0.10280278325080872,
-0.38846102356910706,
0.18124054372310638,
-0.00020706374198198318,
0.9874184727668762,
1.2814921140670776,
0.6947654485702515,
-0.33046334981918335,
-0.9296066761016846,
0.22599583864212036,
-0.1697065532207489,
-0.7115725874900818,
-1.8524585962295532,
-0.2720692753791809,
0.06809200346469879,
0.6559306979179382,
-1.3666274547576904,
1.5737444162368774,
0.7894566655158997,
2.0033204555511475,
0.9099218249320984,
-0.40858516097068787,
1.4713008403778076,
0.15674522519111633,
1.8278554677963257,
-0.6050606369972229,
0.7973079085350037,
-0.3659452497959137,
-0.9454817771911621,
0.8002855777740479,
-0.4209206700325012,
-2.024303674697876,
-0.74571293592453,
-0.8350104093551636,
-0.22699452936649323,
-0.7885347604751587,
0.9871318936347961,
-0.2654269337654114,
-1.3171132802963257,
0.3842828571796417,
-0.7678478360176086,
0.1568598598241806,
-1.2905406951904297,
0.4107493758201599,
0.8128594160079956,
-0.551072895526886,
0.04938117787241936,
-0.30067160725593567,
-1.3148247003555298,
-0.5067841410636902,
0.30459463596343994,
1.9436976909637451,
-0.7482342720031738,
0.9137183427810669,
0.8798420429229736,
-0.6852905750274658,
0.02641141787171364,
0.37823396921157837,
-0.29047393798828125,
0.8081030249595642,
-1.1897687911987305,
-0.3471519649028778,
1.0383977890014648,
-0.26614639163017273,
-0.46457335352897644,
1.428166389465332,
0.7628653049468994,
-0.9687570333480835,
-0.17183049023151398,
-0.1256328523159027,
-0.7753937840461731,
0.03556971251964569,
-1.6772297620773315,
-0.10738149285316467,
0.27047523856163025,
-1.5713050365447998,
-0.5317230820655823,
-0.27618247270584106,
1.2479263544082642,
-0.15153463184833527,
1.4313781261444092,
-0.283230185508728,
-0.2494431436061859,
-0.4092586040496826,
-0.414710134267807,
0.14844156801700592,
-0.32637885212898254,
-0.569275438785553,
0.23786844313144684,
-0.7823493480682373,
0.38816648721694946,
1.4175807237625122,
0.3994086682796478,
-0.017448056489229202,
0.5256614089012146,
0.9950326681137085,
0.3267655670642853,
-0.12507298588752747,
-0.8241403102874756,
-1.57008957862854,
2.0654237270355225,
-1.48759925365448,
1.9664276838302612,
0.8460091948509216,
-0.10611496865749359,
-1.652375340461731,
-1.9290356636047363,
1.2658158540725708,
1.2166115045547485,
2.3172240257263184,
0.68861323595047,
0.47445952892303467,
-0.8208659887313843,
-0.6290543675422668,
0.17647477984428406,
-1.050280213356018,
-0.8062275052070618,
0.10663161426782608,
2.403960943222046,
1.6397405862808228,
-0.5395288467407227,
-0.0751042291522026,
-1.0995194911956787,
1.4223377704620361,
-0.06509209424257278,
0.26429349184036255,
2.0364201068878174,
-0.2548782527446747,
-1.1385093927383423,
1.2302566766738892,
-2.2355194091796875,
0.13210541009902954,
1.9970030784606934,
0.29455047845840454,
0.07285686582326889,
-1.3944815397262573,
-0.6390583515167236,
-0.36819857358932495,
-0.2047467976808548,
-1.1952909231185913,
0.5534796118736267,
-0.21855874359607697,
-0.7451924681663513,
-1.5871154069900513,
0.12660759687423706,
-1.0572069883346558,
-1.584928274154663,
0.3169775903224945,
1.9339927434921265,
2.000718832015991,
-0.7064183354377747,
1.4636040925979614,
-0.2541635036468506,
0.09928244352340698,
1.206902027130127,
1.1035956144332886,
3.102780818939209,
2.018815040588379,
-1.1735875606536865,
0.6264196038246155,
-0.1420271247625351,
-0.45144250988960266,
1.106284499168396,
-1.1522303819656372,
1.225882887840271,
-0.1466837376356125,
-1.1497001647949219,
-1.2506062984466553,
0.9888531565666199,
0.5238543748855591,
0.047592878341674805,
-0.49529048800468445,
1.2521306276321411,
-0.02266872301697731,
1.4414782524108887,
0.4666247069835663,
-0.25996777415275574,
0.5765688419342041,
-0.4557996988296509,
-0.46567365527153015,
1.7078969478607178,
0.24293024837970734,
-1.5195821523666382,
-2.4580931663513184,
-0.24828551709651947,
-0.8301864266395569,
0.060935117304325104,
-0.6783345937728882,
-1.1250971555709839,
1.7155851125717163,
0.49165117740631104,
-1.127622365951538,
-0.39527636766433716,
-0.3018062710762024,
-0.6896018385887146,
2.620469570159912,
-1.513004183769226,
-0.3002975881099701,
-0.8970372080802917,
-0.5800461769104004,
1.6081578731536865,
-1.2775105237960815,
-0.21491749584674835,
-1.0158238410949707,
-0.5972453355789185,
-1.1697452068328857,
-0.5751074552536011,
-0.09964609891176224,
-0.9193990230560303,
0.7945711016654968,
0.205219566822052,
-1.1295055150985718,
-0.26120761036872864,
-0.9182179570198059,
0.7652094960212708,
0.022379469126462936,
0.32447418570518494,
1.8225746154785156,
0.42735612392425537,
-0.3567204177379608,
0.7370336055755615,
1.1936231851577759,
0.6960520148277283,
-0.7632417678833008,
0.04616561904549599,
-0.665255069732666,
0.24948428571224213,
-1.244923710823059,
0.3105308413505554,
-2.8460683822631836,
0.5731326341629028,
-0.12912505865097046,
-0.1555843949317932,
0.02982063964009285,
-1.34752357006073,
1.2690315246582031,
2.6253933906555176,
-1.1331791877746582,
0.48446908593177795,
0.3524811267852783,
1.2957195043563843,
-1.6289498805999756,
0.4256061911582947,
-0.39880087971687317,
2.1805613040924072,
0.29382410645484924,
1.1649250984191895,
-0.5652523040771484,
-2.3382108211517334,
0.6469578742980957,
-1.1703622341156006,
-1.2725863456726074,
0.6013508439064026,
-0.9273920655250549,
0.016425862908363342,
-1.534515380859375,
-0.2319204956293106,
-0.821998119354248,
-1.2971186637878418,
0.6365424394607544,
0.07540794461965561,
0.4244162440299988,
-0.6025009155273438,
0.38702717423439026,
-2.19095516204834,
-1.4017897844314575,
-0.3214370310306549,
-0.9295114278793335,
0.43657535314559937,
-0.3704461455345154,
0.768662691116333,
-0.18469876050949097,
0.0651576966047287,
0.3292015492916107,
1.3921535015106201,
3.3810980319976807,
0.20646412670612335,
0.39231443405151367,
-0.12877456843852997,
-0.8501392602920532,
1.4700533151626587,
0.9443607330322266,
-0.032579854130744934,
-0.5582132935523987,
-0.9776632785797119,
1.3661283254623413,
2.0315964221954346,
0.9631132483482361,
0.07526002824306488,
-0.7209367156028748,
-0.5597442984580994,
-0.021778196096420288,
0.30796799063682556,
0.4262879192829132,
0.9641546010971069,
0.038096990436315536,
0.11853326857089996,
1.4399933815002441,
1.3387420177459717,
-0.533525288105011,
0.4598311185836792,
-0.8001295328140259,
-0.5281201004981995,
0.4832661747932434,
0.40549856424331665,
-0.08303147554397583,
0.33715271949768066,
-0.9758259654045105,
-0.2309032678604126,
-0.36394283175468445,
-0.8881705403327942,
-0.716684103012085,
-0.3692634403705597,
-0.38720807433128357,
1.725638508796692,
0.10521217435598373,
-0.48441362380981445,
-0.06228566914796829,
-0.7056105136871338,
-0.039855509996414185,
-1.1977028846740723,
0.3018093407154083,
-0.10568153113126755,
-0.03771078959107399,
0.0014376761391758919,
1.880033254623413,
-0.894370973110199,
-2.1329784393310547,
0.1872413009405136,
0.34806180000305176,
-0.483383446931839,
0.13701868057250977,
1.642349362373352,
0.5012882351875305,
1.451798439025879,
1.3365038633346558,
0.9442322254180908,
-0.6770105361938477,
-1.326077938079834,
0.6196407675743103,
0.9007807970046997,
-1.424687147140503,
0.6411910653114319,
0.04590553045272827,
-0.5794806480407715,
0.6954143047332764,
1.2953182458877563,
0.451778769493103,
-1.9702531099319458,
0.8666713833808899,
-0.9167100787162781,
0.8797186613082886,
0.7353484034538269,
0.6871822476387024,
0.3082696795463562,
0.8529155850410461,
-1.3119248151779175,
-1.0208611488342285,
-0.9661009311676025,
-0.556142270565033,
1.9104810953140259,
-0.2678486704826355,
0.4132312536239624,
-0.1486883908510208,
-1.2184542417526245,
-0.06619299203157425,
0.6776526570320129,
0.49220597743988037,
-0.24534255266189575,
0.7638660669326782,
-0.604973554611206,
-1.1947115659713745,
-1.3087468147277832,
-0.40672236680984497,
-0.8973172307014465,
-0.9572405815124512,
1.0695077180862427,
0.8465731739997864,
0.39232638478279114,
1.9021663665771484,
0.544105589389801,
0.2350131869316101,
-2.6768391132354736,
0.9174384474754333,
0.32572147250175476,
-0.06979735195636749,
0.9728134870529175,
0.3463984727859497,
1.1194607019424438,
0.031794093549251556,
0.4371451139450073,
-2.3847856521606445,
2.22198224067688,
-0.3051041066646576,
0.8154279589653015,
0.041751429438591,
0.0016051661223173141,
1.1903659105300903,
0.5070633888244629,
0.4674914479255676,
-1.011913537979126,
0.7485944032669067,
-0.5996811389923096,
1.2595385313034058,
0.8924989700317383,
-0.7413435578346252,
-0.04086156561970711,
1.2291314601898193,
0.4690835177898407,
-0.47625887393951416,
-0.9508370757102966,
-0.8086577653884888,
0.9041900634765625,
1.768182396888733,
-0.09731321781873703,
0.050967227667570114,
0.8157747387886047,
0.6339053511619568,
-1.3246073722839355,
0.009171177633106709,
-0.8269866108894348,
-0.7322883009910583,
1.6845126152038574,
2.0701544284820557,
-0.03006122261285782,
-0.2301967740058899,
-0.6671949028968811,
-1.3887616395950317,
0.8129691481590271,
-0.01893521659076214,
0.26807570457458496,
0.6493379473686218,
-0.639285683631897,
1.0564128160476685,
0.8332793712615967,
1.0605045557022095,
0.09356801211833954,
0.3472091555595398,
0.379529744386673,
-0.2606154680252075,
-1.045179843902588,
-0.29739776253700256,
-1.217800259590149,
-2.4403624534606934,
0.44727179408073425,
-0.3504222631454468,
-1.392940640449524,
0.05626530200242996,
-1.0239717960357666,
0.9578636288642883,
-0.5620905160903931,
-1.0398333072662354,
-1.6071479320526123,
0.19187961518764496,
-0.16040384769439697,
0.9263808727264404,
-1.5787208080291748,
-0.14185351133346558,
1.1789072751998901,
0.7186107635498047,
-0.5695154070854187,
1.0640811920166016,
0.23865167796611786,
1.0193684101104736,
0.7966822981834412,
-0.3655076026916504,
0.37013334035873413,
0.11068389564752579,
-1.2949975728988647,
0.5484040379524231,
1.1551599502563477,
0.21492554247379303,
1.4523355960845947,
-0.6337199211120605,
-0.023104101419448853,
0.432201087474823,
-0.42569491267204285,
-0.5024364590644836,
-0.509276270866394,
0.7152112722396851,
0.07291384786367416,
-0.9504365921020508,
-0.022812619805336,
-0.216675266623497,
-0.20834247767925262,
0.220970019698143,
-1.5231783390045166,
-0.17046105861663818,
-0.47346192598342896,
-0.5942032337188721,
-1.2228429317474365,
-0.006799587048590183,
1.4090018272399902,
-0.7718589901924133,
-0.21365465223789215,
0.5015485286712646,
0.5295010805130005,
0.5560570955276489,
0.6888608336448669,
-0.6465480923652649,
-0.4108028709888458,
-0.3090650141239166,
-0.2849934995174408,
0.2833231985569,
1.238008737564087,
-0.20967310667037964,
-1.1193197965621948,
0.6816908717155457,
-0.3938574492931366,
0.07499834895133972,
1.9647094011306763,
0.11078642308712006,
-0.7867209911346436,
0.23729395866394043,
-0.7512338161468506,
1.9801051616668701,
1.6346027851104736,
1.4195107221603394,
-0.07681123912334442,
-1.0073378086090088,
0.5494920015335083,
-0.17092475295066833,
-0.43380072712898254,
0.7300130724906921,
0.6342881917953491,
-0.16557247936725616,
-1.4438883066177368,
0.555370569229126,
1.3037090301513672,
-0.9600955247879028,
-0.8217716813087463,
0.14786355197429657,
-0.7937174439430237,
1.0744986534118652,
0.6752932667732239,
0.49259626865386963,
0.24839787185192108,
1.6696341037750244,
0.7276470065116882,
-0.5684708952903748,
0.5089016556739807,
0.5387241840362549,
-0.18491099774837494,
-2.038635730743408,
-1.2203583717346191,
0.37854892015457153,
-0.41233164072036743,
-1.4958515167236328,
1.3700708150863647,
-1.1043909788131714,
-0.8839743137359619,
0.5252304673194885,
0.25076308846473694,
1.4717271327972412,
0.22371478378772736,
1.6259571313858032,
1.9925634860992432,
0.9552587270736694,
0.38710930943489075,
1.276147484779358,
-0.09177058190107346,
-0.5700581073760986,
1.8108035326004028,
-0.38891515135765076,
0.5056027770042419,
1.1538585424423218,
-0.45128777623176575,
-1.109147310256958,
-0.693217396736145,
-1.127358078956604,
-0.64593106508255,
1.1200881004333496,
0.15916384756565094,
-1.2187050580978394,
0.15920571982860565,
1.5229586362838745,
0.08498408645391464,
-0.359881192445755,
0.3573536276817322,
0.42177528142929077,
-0.7331829071044922,
-0.11116549372673035,
-1.0652204751968384,
0.4875005781650543,
-0.20890526473522186,
-0.3759716749191284,
0.23248447477817535,
0.5256732702255249,
1.2530248165130615,
-0.038313042372465134,
0.12649135291576385,
1.2380049228668213,
-1.363655686378479,
1.420256495475769,
-0.5608493089675903,
0.25408777594566345,
-2.3026294708251953,
1.4557887315750122,
-0.7103428840637207,
1.8848751783370972,
-2.6656148433685303,
0.3404434621334076,
-0.6749390959739685,
-0.24408376216888428,
0.33464041352272034,
-0.31246668100357056,
0.23497965931892395,
-0.17422372102737427,
-1.170228362083435,
-0.1264188289642334,
-0.8229357600212097,
0.6115801334381104,
1.1091166734695435,
1.3116520643234253,
-1.0562796592712402,
-0.16662289202213287,
-1.6314759254455566,
-0.20052391290664673,
-0.6754776239395142,
0.3052799105644226,
-2.0237581729888916,
-0.09297901391983032,
-1.9459344148635864,
-2.2119619846343994,
-1.3531463146209717,
-0.7892706394195557,
0.9551085829734802,
0.11275956779718399,
-0.8790746927261353,
1.1859474182128906,
-0.32342588901519775,
-1.749214768409729,
1.1443852186203003,
-2.233095407485962
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | I have attached this screenshot above . can u pls help? So can not pip from pull request

| ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 19 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
I have attached this screenshot above . can u pls help? So can not pip from pull request

| [
-1.2575498819351196,
-0.9444321990013123,
-0.7481180429458618,
1.4291225671768188,
-0.15634191036224365,
-1.1953096389770508,
0.13540786504745483,
-1.0080151557922363,
1.5977168083190918,
-0.7740605473518372,
0.29220643639564514,
-1.628374457359314,
0.033249884843826294,
-0.506635308265686,
-0.8018724322319031,
-0.9063221216201782,
-0.3576067090034485,
-0.7659021019935608,
1.0928921699523926,
2.5460619926452637,
1.223341703414917,
-1.3784737586975098,
2.728076696395874,
0.6614617705345154,
-0.2386830449104309,
-0.9594355821609497,
0.4265143573284149,
0.1038721576333046,
-1.3225934505462646,
-0.39684686064720154,
-0.9344264268875122,
-0.07347957044839859,
-0.609520673751831,
-0.5829963088035583,
0.009466815739870071,
0.41599851846694946,
-0.2792278826236725,
-0.4559379816055298,
-0.4324083626270294,
-0.744215190410614,
0.5148739218711853,
-0.4558177590370178,
0.9347977042198181,
-0.34447604417800903,
1.8719031810760498,
-0.5311657786369324,
0.4515175223350525,
0.6267922520637512,
1.3392988443374634,
0.22495418787002563,
-0.018245160579681396,
0.34601569175720215,
0.36955082416534424,
-0.02438904531300068,
0.39181751012802124,
1.1698307991027832,
0.6732112169265747,
0.49003052711486816,
0.6784867644309998,
-2.127021551132202,
1.2544516324996948,
-0.9770610332489014,
0.2609817683696747,
1.3830602169036865,
-1.0336213111877441,
0.4371008276939392,
-1.7754836082458496,
-0.16309517621994019,
0.5539302825927734,
-2.285529613494873,
0.2526264786720276,
-1.2299431562423706,
-0.5434824228286743,
0.9962207674980164,
0.3451105058193207,
-1.315340280532837,
0.03995465859770775,
-0.5732251405715942,
1.0822128057479858,
0.42897331714630127,
1.2247060537338257,
-1.6942144632339478,
-0.06911224126815796,
-0.2690112292766571,
0.1872384250164032,
-1.3410978317260742,
-1.5132323503494263,
0.4634687304496765,
0.6677038669586182,
0.6202335953712463,
-0.030280718579888344,
0.8589194416999817,
-1.0083047151565552,
0.8331530094146729,
-0.9497295618057251,
-1.6593356132507324,
-1.4162317514419556,
-2.345672607421875,
-2.318105459213257,
0.7782067656517029,
-0.3486189842224121,
-0.5826114416122437,
2.0042436122894287,
-1.0449345111846924,
-1.7208888530731201,
1.1609798669815063,
0.26415279507637024,
-0.054095711559057236,
2.42228102684021,
0.179444819688797,
-0.8482301235198975,
0.5682784914970398,
-0.7586715817451477,
0.827317476272583,
-0.48112472891807556,
1.4040310382843018,
0.46696096658706665,
-1.0514575242996216,
1.572953224182129,
-0.41930633783340454,
0.5274701714515686,
-0.7150166034698486,
-0.4675869345664978,
-0.8028156161308289,
0.29304611682891846,
1.898392915725708,
-0.22625821828842163,
1.6991111040115356,
-0.321156769990921,
-1.5400283336639404,
-1.5672739744186401,
0.8951475024223328,
0.4668941795825958,
-0.7762438058853149,
0.0958147719502449,
-0.3795127868652344,
0.12356162816286087,
0.05652546137571335,
0.9801009893417358,
1.2940864562988281,
0.6616718769073486,
-0.24501687288284302,
-0.9660893082618713,
0.23409658670425415,
-0.15278753638267517,
-0.6266887784004211,
-1.8196449279785156,
-0.2526673674583435,
0.06494754552841187,
0.6679858565330505,
-1.3513906002044678,
1.6823630332946777,
0.822658360004425,
1.9592018127441406,
0.9693984985351562,
-0.34900593757629395,
1.5079423189163208,
0.12212637811899185,
1.8556734323501587,
-0.46179091930389404,
0.7731606960296631,
-0.33856192231178284,
-1.0880460739135742,
0.6941662430763245,
-0.38632848858833313,
-2.0147221088409424,
-0.7415519952774048,
-0.7964891791343689,
-0.11391627788543701,
-0.8121718764305115,
0.949266791343689,
-0.2727067768573761,
-1.3788236379623413,
0.4448569715023041,
-0.7555996179580688,
0.16029882431030273,
-1.311768889427185,
0.3798668384552002,
0.805763840675354,
-0.6086891889572144,
0.10864891856908798,
-0.2682109773159027,
-1.285366415977478,
-0.455212265253067,
0.34167957305908203,
1.93119215965271,
-0.7183923125267029,
0.8568561673164368,
0.9838765263557434,
-0.6068224310874939,
-0.0056520262733101845,
0.4316112995147705,
-0.29245322942733765,
0.7950670123100281,
-1.1473186016082764,
-0.3297073245048523,
1.1507128477096558,
-0.29186928272247314,
-0.6282830834388733,
1.3798246383666992,
0.8170660138130188,
-0.9802439212799072,
-0.13766217231750488,
-0.07514669746160507,
-0.8053532242774963,
-0.006255936808884144,
-1.6492797136306763,
-0.09912330657243729,
0.31664857268333435,
-1.5219438076019287,
-0.4649368226528168,
-0.25624215602874756,
1.2672499418258667,
-0.17863211035728455,
1.4848459959030151,
-0.33794882893562317,
-0.16107866168022156,
-0.39223918318748474,
-0.4499930143356323,
0.1381475031375885,
-0.2236243486404419,
-0.6046342253684998,
0.27919039130210876,
-0.7351884245872498,
0.3649391829967499,
1.4021389484405518,
0.3908747136592865,
0.07095415145158768,
0.5498998761177063,
1.0847959518432617,
0.3453378677368164,
-0.10353390872478485,
-0.7857460379600525,
-1.613114833831787,
2.040322780609131,
-1.4237393140792847,
2.018490791320801,
0.8901278376579285,
-0.11887338757514954,
-1.7390073537826538,
-1.8375200033187866,
1.3316831588745117,
1.1687283515930176,
2.3424880504608154,
0.6599714756011963,
0.450573593378067,
-0.8126610517501831,
-0.6506430506706238,
0.29138052463531494,
-1.030519723892212,
-0.8091644644737244,
0.1348024606704712,
2.4193930625915527,
1.6471234560012817,
-0.4009593427181244,
-0.15868893265724182,
-1.0880934000015259,
1.3425006866455078,
-0.08574972301721573,
0.2215631902217865,
1.9827719926834106,
-0.2722301483154297,
-1.1229197978973389,
1.232531189918518,
-2.2857611179351807,
0.1587519645690918,
1.9832707643508911,
0.2674502730369568,
-0.04695969074964523,
-1.4502836465835571,
-0.6597903370857239,
-0.2832892835140228,
-0.25449007749557495,
-1.2202967405319214,
0.5581673383712769,
-0.2724113464355469,
-0.8145338296890259,
-1.5413422584533691,
0.0897572934627533,
-1.1254420280456543,
-1.5950952768325806,
0.37914302945137024,
1.850766658782959,
2.0153238773345947,
-0.7202190160751343,
1.5024199485778809,
-0.15682008862495422,
0.1992739737033844,
1.217445731163025,
1.176476240158081,
3.183499813079834,
1.9165465831756592,
-1.2927980422973633,
0.6315248012542725,
-0.11140799522399902,
-0.4649529457092285,
1.1138005256652832,
-1.188876748085022,
1.2643710374832153,
-0.18110695481300354,
-1.246280312538147,
-1.2523552179336548,
1.0031156539916992,
0.5086012482643127,
0.053614985197782516,
-0.4703194200992584,
1.26954984664917,
0.08626584708690643,
1.37729012966156,
0.453708678483963,
-0.20698609948158264,
0.5821947455406189,
-0.38165467977523804,
-0.5469536781311035,
1.6094062328338623,
0.16283315420150757,
-1.4838725328445435,
-2.3754043579101562,
-0.2716754972934723,
-0.7894512414932251,
-0.0010002409107983112,
-0.74209064245224,
-1.041279673576355,
1.6956729888916016,
0.4180700480937958,
-1.0999445915222168,
-0.34673070907592773,
-0.35350513458251953,
-0.6388775706291199,
2.6381871700286865,
-1.4873968362808228,
-0.33158427476882935,
-0.9463974237442017,
-0.5957762002944946,
1.5438727140426636,
-1.2136893272399902,
-0.18653184175491333,
-1.0141547918319702,
-0.632634699344635,
-1.2295180559158325,
-0.6278088092803955,
-0.08535339683294296,
-0.8585567474365234,
0.7052091956138611,
0.2460414171218872,
-1.1367485523223877,
-0.23795408010482788,
-0.9196619987487793,
0.8209564089775085,
-0.01973259635269642,
0.3059772551059723,
1.7682311534881592,
0.4134725332260132,
-0.4457293748855591,
0.7396627068519592,
1.1884199380874634,
0.6676148176193237,
-0.6854864954948425,
0.10646568238735199,
-0.7068225741386414,
0.21920061111450195,
-1.2111644744873047,
0.3163846433162689,
-2.856741189956665,
0.5818570852279663,
-0.1112852469086647,
-0.14592167735099792,
-0.02176246978342533,
-1.2930092811584473,
1.1173702478408813,
2.5972378253936768,
-1.0893141031265259,
0.48045265674591064,
0.32330521941185,
1.2331929206848145,
-1.6605621576309204,
0.3793594241142273,
-0.45513784885406494,
2.1195271015167236,
0.2532963156700134,
1.215065598487854,
-0.5631359815597534,
-2.3011295795440674,
0.6215420961380005,
-1.209641456604004,
-1.1862543821334839,
0.790450930595398,
-0.9475992918014526,
0.044457245618104935,
-1.3383108377456665,
-0.21531516313552856,
-0.8527678847312927,
-1.3235176801681519,
0.6361300349235535,
0.11098845303058624,
0.5413578152656555,
-0.5639139413833618,
0.3618120551109314,
-2.1470391750335693,
-1.406907558441162,
-0.27145299315452576,
-0.9443116188049316,
0.3740776479244232,
-0.33849138021469116,
0.6983575820922852,
-0.24252668023109436,
-0.0047935317270457745,
0.32654279470443726,
1.4131814241409302,
3.349048137664795,
0.2631985545158386,
0.42329826951026917,
-0.10680198669433594,
-0.9445859789848328,
1.4940130710601807,
0.911949098110199,
-0.17139196395874023,
-0.6366623640060425,
-0.9280993342399597,
1.3270981311798096,
1.993480920791626,
1.0356743335723877,
0.04228692501783371,
-0.7404120564460754,
-0.6552343964576721,
0.0036439551040530205,
0.22938647866249084,
0.3946840763092041,
0.9272233247756958,
-0.00856027938425541,
0.11132314056158066,
1.4463282823562622,
1.3248752355575562,
-0.5459128618240356,
0.44574159383773804,
-0.8122208714485168,
-0.46313098073005676,
0.4982631802558899,
0.38623321056365967,
-0.061638589948415756,
0.36152398586273193,
-1.0500284433364868,
-0.22208809852600098,
-0.38937467336654663,
-0.9203518629074097,
-0.7643927335739136,
-0.3782426714897156,
-0.31159329414367676,
1.7196420431137085,
0.0992145910859108,
-0.5099586844444275,
-0.036860398948192596,
-0.7952887415885925,
-0.12488478422164917,
-1.129586935043335,
0.2332383394241333,
-0.139754980802536,
-0.02626538835465908,
0.05181732773780823,
1.8502346277236938,
-0.9552267789840698,
-2.1952528953552246,
0.183450847864151,
0.29835671186447144,
-0.35736051201820374,
0.1689208745956421,
1.6714799404144287,
0.4670167565345764,
1.360663890838623,
1.3773285150527954,
0.9299860000610352,
-0.7287313342094421,
-1.302850365638733,
0.7071533799171448,
0.9501730799674988,
-1.4806734323501587,
0.7468377947807312,
-0.0332794263958931,
-0.5965173244476318,
0.727608859539032,
1.2632334232330322,
0.47207319736480713,
-1.9264676570892334,
0.8377735018730164,
-0.8933618068695068,
0.8134781122207642,
0.6665966510772705,
0.6379920840263367,
0.21365299820899963,
0.8200575113296509,
-1.2644230127334595,
-1.045972466468811,
-0.8273576498031616,
-0.5862103700637817,
1.845991849899292,
-0.2384360134601593,
0.4527244567871094,
-0.08599480241537094,
-1.2634607553482056,
-0.033664822578430176,
0.6775001287460327,
0.35350847244262695,
-0.3135782778263092,
0.7902780175209045,
-0.7443792819976807,
-1.1788076162338257,
-1.350967288017273,
-0.43076667189598083,
-0.9348542094230652,
-0.8908693194389343,
1.054974913597107,
0.7235040068626404,
0.2900106906890869,
1.9706557989120483,
0.6279730796813965,
0.25448235869407654,
-2.6765499114990234,
0.8957647681236267,
0.3706360161304474,
-0.00774067547172308,
0.9437116980552673,
0.2612461745738983,
1.0669634342193604,
0.034108590334653854,
0.4722525179386139,
-2.3590505123138428,
2.239881753921509,
-0.3748828172683716,
0.7850584983825684,
0.012967802584171295,
-0.06431867182254791,
1.118180751800537,
0.5057803988456726,
0.5533451437950134,
-1.1209324598312378,
0.8158513307571411,
-0.6589011549949646,
1.236910104751587,
0.9631352424621582,
-0.8984972834587097,
-0.003986555617302656,
1.203748106956482,
0.39950740337371826,
-0.43873003125190735,
-0.9235875010490417,
-0.8418389558792114,
0.8833207488059998,
1.7544243335723877,
-0.03159525245428085,
0.10088758915662766,
0.9272986054420471,
0.632571280002594,
-1.4050087928771973,
0.03653212636709213,
-0.7835983037948608,
-0.7828614711761475,
1.7811567783355713,
2.05083966255188,
-0.05773638188838959,
-0.2683075964450836,
-0.702814519405365,
-1.3841769695281982,
0.8527326583862305,
-0.04859495162963867,
0.24246132373809814,
0.6545105576515198,
-0.7142696976661682,
1.0629596710205078,
0.8459386229515076,
0.9491115808486938,
0.18557330965995789,
0.18882864713668823,
0.3749757707118988,
-0.2278696596622467,
-1.088351845741272,
-0.23816737532615662,
-1.0905890464782715,
-2.483900308609009,
0.41154634952545166,
-0.27131387591362,
-1.4639314413070679,
0.12082155793905258,
-1.0046449899673462,
0.8776964545249939,
-0.493856817483902,
-1.0519942045211792,
-1.4798526763916016,
0.23962438106536865,
-0.18835404515266418,
0.8215124607086182,
-1.6022939682006836,
-0.12997224926948547,
1.2080044746398926,
0.8471238017082214,
-0.5762093663215637,
1.0600730180740356,
0.2359437346458435,
1.0333935022354126,
0.8707042932510376,
-0.40965384244918823,
0.4260963201522827,
0.13182076811790466,
-1.3146916627883911,
0.4739551544189453,
1.2006605863571167,
0.20282325148582458,
1.5148080587387085,
-0.5508019328117371,
-0.05735582485795021,
0.4199918806552887,
-0.4684922993183136,
-0.5336934328079224,
-0.5902859568595886,
0.7140966653823853,
0.009950852021574974,
-0.8429449200630188,
0.008045950904488564,
-0.19593650102615356,
-0.2442319095134735,
0.21279752254486084,
-1.5778013467788696,
-0.1502091884613037,
-0.4018484652042389,
-0.6959646344184875,
-1.2893673181533813,
0.06950613111257553,
1.3610295057296753,
-0.8407627940177917,
-0.22294583916664124,
0.4446601867675781,
0.44291651248931885,
0.5400822758674622,
0.6408835053443909,
-0.6829366683959961,
-0.4063713252544403,
-0.2601888179779053,
-0.29452893137931824,
0.3584271967411041,
1.2489924430847168,
-0.17711710929870605,
-1.1177061796188354,
0.681390106678009,
-0.39112138748168945,
0.12641006708145142,
1.9352680444717407,
0.15196752548217773,
-0.808100163936615,
0.23284441232681274,
-0.7743992805480957,
1.9587266445159912,
1.6488258838653564,
1.454635739326477,
-0.13529500365257263,
-0.9540563821792603,
0.6681829690933228,
-0.2100326418876648,
-0.41020047664642334,
0.8420268297195435,
0.511745274066925,
-0.15075793862342834,
-1.4020696878433228,
0.5867058634757996,
1.250990629196167,
-0.8734672665596008,
-0.7501499056816101,
0.07286164164543152,
-0.8370623588562012,
1.117933750152588,
0.7181299328804016,
0.45645758509635925,
0.26497024297714233,
1.6637955904006958,
0.7671893835067749,
-0.595954954624176,
0.5194795727729797,
0.4945085048675537,
-0.1646837294101715,
-2.084158182144165,
-1.0465668439865112,
0.36664873361587524,
-0.3597288429737091,
-1.510419487953186,
1.3588114976882935,
-1.1604559421539307,
-0.9197798371315002,
0.5034663677215576,
0.12952959537506104,
1.435646414756775,
0.1973080039024353,
1.6044694185256958,
2.033705234527588,
0.979691207408905,
0.39707955718040466,
1.2363274097442627,
-0.17329910397529602,
-0.4417163133621216,
1.778570294380188,
-0.4252290725708008,
0.509239137172699,
1.1087462902069092,
-0.43331578373908997,
-1.0667026042938232,
-0.7154944539070129,
-1.119431972503662,
-0.6199796795845032,
1.0985454320907593,
0.15216219425201416,
-1.2123039960861206,
0.22745266556739807,
1.530428409576416,
0.028845977038145065,
-0.33675652742385864,
0.47145357728004456,
0.4842638373374939,
-0.6888425350189209,
-0.09611228108406067,
-0.976615309715271,
0.4954202175140381,
-0.2108578085899353,
-0.3892672061920166,
0.24512603878974915,
0.48073598742485046,
1.188310146331787,
-0.014565613120794296,
0.11266692727804184,
1.3050267696380615,
-1.3769373893737793,
1.4130799770355225,
-0.6494076251983643,
0.28708046674728394,
-2.3255536556243896,
1.4189367294311523,
-0.8020643591880798,
1.8632100820541382,
-2.618028402328491,
0.4131157398223877,
-0.6824242472648621,
-0.39113089442253113,
0.40530720353126526,
-0.35615137219429016,
0.17111536860466003,
-0.19956016540527344,
-1.0838960409164429,
-0.21279287338256836,
-0.8267164826393127,
0.6141394972801208,
1.1188246011734009,
1.2714214324951172,
-1.0266902446746826,
-0.1482122242450714,
-1.5871647596359253,
-0.2074395716190338,
-0.6343584060668945,
0.3023335337638855,
-2.0161492824554443,
-0.14774653315544128,
-2.09588623046875,
-2.3069369792938232,
-1.3307571411132812,
-0.8038842678070068,
1.0847342014312744,
0.15241369605064392,
-0.9456809163093567,
1.167467474937439,
-0.36594563722610474,
-1.809869647026062,
1.175208568572998,
-2.200340986251831
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | The pull request has been merged on `main`.
You can install `datasets` from `main` using
```
pip install git+https://github.com/huggingface/datasets.git
``` | ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 20 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
The pull request has been merged on `main`.
You can install `datasets` from `main` using
```
pip install git+https://github.com/huggingface/datasets.git
``` | [
-1.213504433631897,
-0.9395443797111511,
-0.7641224265098572,
1.4931994676589966,
-0.1710723638534546,
-1.2629755735397339,
0.16276653110980988,
-1.0390715599060059,
1.6553657054901123,
-0.7732201814651489,
0.27239540219306946,
-1.6769499778747559,
0.03538985922932625,
-0.5351313948631287,
-0.8340331315994263,
-0.9035422801971436,
-0.37746304273605347,
-0.7172161340713501,
1.0458990335464478,
2.457986354827881,
1.2530527114868164,
-1.3526207208633423,
2.721595525741577,
0.6595380306243896,
-0.19372674822807312,
-0.9415378570556641,
0.4542999863624573,
0.08145811408758163,
-1.2884111404418945,
-0.39993786811828613,
-0.8834163546562195,
-0.1265731304883957,
-0.6084017753601074,
-0.659497857093811,
0.007699775509536266,
0.46385443210601807,
-0.3286821246147156,
-0.46351420879364014,
-0.4510457515716553,
-0.777409553527832,
0.5067973732948303,
-0.4162696897983551,
0.9931078553199768,
-0.4033297896385193,
1.897280216217041,
-0.5440418720245361,
0.4345846176147461,
0.6378740072250366,
1.358689308166504,
0.20181408524513245,
-0.01308424398303032,
0.336365282535553,
0.39142829179763794,
0.020369816571474075,
0.42627254128456116,
1.156360149383545,
0.6502525210380554,
0.5388674139976501,
0.697477400302887,
-2.141616106033325,
1.267935872077942,
-0.9717392325401306,
0.28310754895210266,
1.3534475564956665,
-1.0013060569763184,
0.3808797299861908,
-1.7450759410858154,
-0.11706269532442093,
0.5164280533790588,
-2.250277519226074,
0.27941569685935974,
-1.2517261505126953,
-0.5214182734489441,
0.9926305413246155,
0.32721787691116333,
-1.3178491592407227,
0.07458935678005219,
-0.49394476413726807,
1.0799880027770996,
0.45047181844711304,
1.176680088043213,
-1.69588303565979,
-0.025252100080251694,
-0.2788349688053131,
0.1104922816157341,
-1.2874985933303833,
-1.4782466888427734,
0.439062237739563,
0.6732513308525085,
0.6194796562194824,
-0.08604761958122253,
0.9226612448692322,
-0.9912190437316895,
0.8088161945343018,
-0.9235965013504028,
-1.706479549407959,
-1.3982079029083252,
-2.2774879932403564,
-2.3485844135284424,
0.780957818031311,
-0.4080188274383545,
-0.5329926013946533,
2.002855062484741,
-0.9865880012512207,
-1.7856775522232056,
1.1234869956970215,
0.2712460458278656,
-0.07037705183029175,
2.348796844482422,
0.15484020113945007,
-0.7770798802375793,
0.5190984606742859,
-0.746137261390686,
0.8102151155471802,
-0.47650063037872314,
1.4099687337875366,
0.4985508620738983,
-1.077958106994629,
1.5791738033294678,
-0.4345097541809082,
0.6072589755058289,
-0.7441892623901367,
-0.47191014885902405,
-0.7670323848724365,
0.26078101992607117,
1.9063838720321655,
-0.3057364225387573,
1.6834981441497803,
-0.32096680998802185,
-1.5420241355895996,
-1.5383027791976929,
0.9311094284057617,
0.4243513345718384,
-0.7157376408576965,
0.09922484308481216,
-0.3549862504005432,
0.12413721531629562,
0.006840473972260952,
1.030609130859375,
1.2559123039245605,
0.6950856447219849,
-0.242518350481987,
-0.8799797296524048,
0.28608983755111694,
-0.08678990602493286,
-0.6447238326072693,
-1.8146930932998657,
-0.2898939549922943,
0.13718460500240326,
0.6359090209007263,
-1.2819820642471313,
1.6771135330200195,
0.7609258890151978,
1.9388062953948975,
0.941948413848877,
-0.3309999108314514,
1.482832670211792,
0.07575909048318863,
1.8955397605895996,
-0.4393310248851776,
0.7345602512359619,
-0.3613414764404297,
-1.1210203170776367,
0.7258651256561279,
-0.3818317949771881,
-2.0205581188201904,
-0.7526241540908813,
-0.8568490147590637,
-0.08236372470855713,
-0.7785879969596863,
0.9745000004768372,
-0.32314467430114746,
-1.3806544542312622,
0.3755037188529968,
-0.7603962421417236,
0.1739301234483719,
-1.2875078916549683,
0.36225494742393494,
0.8098872303962708,
-0.6449916958808899,
0.0960363820195198,
-0.2689339518547058,
-1.2551417350769043,
-0.49066880345344543,
0.4044632315635681,
1.9127776622772217,
-0.7595794796943665,
0.8869868516921997,
0.9644216299057007,
-0.6994229555130005,
-0.019832536578178406,
0.3817026913166046,
-0.3234216272830963,
0.8125277757644653,
-1.1257295608520508,
-0.3513866066932678,
1.1519898176193237,
-0.2386275827884674,
-0.6845482587814331,
1.4035395383834839,
0.8660871982574463,
-0.971511960029602,
-0.10559961944818497,
-0.09707295149564743,
-0.7917690277099609,
0.017742261290550232,
-1.6127724647521973,
-0.08843398839235306,
0.34959036111831665,
-1.5461013317108154,
-0.4990242123603821,
-0.2654980719089508,
1.2570160627365112,
-0.16002793610095978,
1.4831414222717285,
-0.25466710329055786,
-0.2244117110967636,
-0.3946938216686249,
-0.45889437198638916,
0.09138160943984985,
-0.2152411937713623,
-0.6031436920166016,
0.2450816035270691,
-0.7057686448097229,
0.43000736832618713,
1.3593158721923828,
0.3023245632648468,
0.01762126013636589,
0.5748081207275391,
1.1074782609939575,
0.35243573784828186,
-0.07647072523832321,
-0.8411441445350647,
-1.5975699424743652,
2.0091896057128906,
-1.4134191274642944,
1.9833334684371948,
0.8157707452774048,
-0.09730779379606247,
-1.7191894054412842,
-1.8944530487060547,
1.374419927597046,
1.2041646242141724,
2.334639310836792,
0.7083780765533447,
0.4214864671230316,
-0.8520783185958862,
-0.6553234457969666,
0.2751297056674957,
-1.0391324758529663,
-0.766823947429657,
0.1579575389623642,
2.411747932434082,
1.7058135271072388,
-0.4378614127635956,
-0.20297521352767944,
-1.1145790815353394,
1.3768210411071777,
-0.17604103684425354,
0.22447814047336578,
1.993696928024292,
-0.2746928930282593,
-1.0961490869522095,
1.2690236568450928,
-2.248995304107666,
0.12499631196260452,
2.0009727478027344,
0.24551135301589966,
0.01013245154172182,
-1.481338620185852,
-0.6899783611297607,
-0.2376602292060852,
-0.29414141178131104,
-1.222764253616333,
0.5485007762908936,
-0.24893531203269958,
-0.7379482984542847,
-1.488512635231018,
0.1379653364419937,
-1.076246738433838,
-1.616240382194519,
0.30804091691970825,
1.9021697044372559,
1.9417290687561035,
-0.7006748914718628,
1.5798587799072266,
-0.2056320756673813,
0.22525349259376526,
1.3020905256271362,
1.1791726350784302,
3.2072219848632812,
1.9119685888290405,
-1.2714744806289673,
0.663325846195221,
-0.0699373334646225,
-0.5316208600997925,
1.1986905336380005,
-1.1896976232528687,
1.270382046699524,
-0.25178053975105286,
-1.193650484085083,
-1.2848371267318726,
0.9735459089279175,
0.5108463168144226,
0.10245317220687866,
-0.46232765913009644,
1.2382992506027222,
0.03399217128753662,
1.36277437210083,
0.4600774347782135,
-0.2707464098930359,
0.643553614616394,
-0.39076951146125793,
-0.49484682083129883,
1.5758801698684692,
0.2091776728630066,
-1.3980381488800049,
-2.392240524291992,
-0.2346785068511963,
-0.796791672706604,
-0.05918702483177185,
-0.6739569902420044,
-1.0555468797683716,
1.675985336303711,
0.4450673758983612,
-1.1594066619873047,
-0.3663488030433655,
-0.302321195602417,
-0.6451664566993713,
2.636997938156128,
-1.4712408781051636,
-0.3094860017299652,
-0.9590224027633667,
-0.6204593181610107,
1.6078561544418335,
-1.2158119678497314,
-0.21521200239658356,
-1.0290231704711914,
-0.6025116443634033,
-1.292046070098877,
-0.662397027015686,
-0.03509145975112915,
-0.86402827501297,
0.765954315662384,
0.18925674259662628,
-1.149072527885437,
-0.22446386516094208,
-0.8837193846702576,
0.8497029542922974,
-0.0625438466668129,
0.2952735424041748,
1.8307305574417114,
0.48363083600997925,
-0.42425188422203064,
0.7193467617034912,
1.1257833242416382,
0.6742881536483765,
-0.7349459528923035,
0.2329334169626236,
-0.7216297388076782,
0.1663479208946228,
-1.2891591787338257,
0.32179296016693115,
-2.83703351020813,
0.5500525832176208,
-0.11460050940513611,
-0.1880703568458557,
0.005691978149116039,
-1.315773367881775,
1.1210628747940063,
2.6299736499786377,
-1.1547447443008423,
0.41863203048706055,
0.29799556732177734,
1.247431755065918,
-1.6325123310089111,
0.3344056308269501,
-0.4461050033569336,
2.0946996212005615,
0.19811676442623138,
1.2266268730163574,
-0.5027528405189514,
-2.274425745010376,
0.6375073790550232,
-1.263552188873291,
-1.2766515016555786,
0.8249515891075134,
-0.9114842414855957,
0.0005209045484662056,
-1.3483422994613647,
-0.19971829652786255,
-0.8507397174835205,
-1.3420027494430542,
0.7269346714019775,
0.1247880831360817,
0.48857617378234863,
-0.5742763876914978,
0.40575534105300903,
-2.0668914318084717,
-1.3863847255706787,
-0.2866804301738739,
-0.9481149315834045,
0.3759233057498932,
-0.31789490580558777,
0.6592844128608704,
-0.26212114095687866,
0.008718897588551044,
0.3475216031074524,
1.4151052236557007,
3.390608787536621,
0.23556256294250488,
0.3555282652378082,
-0.08660650998353958,
-0.9159911274909973,
1.500082015991211,
0.9409294724464417,
-0.14664924144744873,
-0.5544193983078003,
-0.909981369972229,
1.2612916231155396,
1.9940030574798584,
1.076299786567688,
0.02567683532834053,
-0.7516959309577942,
-0.6712162494659424,
-0.014646614901721478,
0.20717096328735352,
0.42107608914375305,
0.8886598348617554,
0.06452116370201111,
0.06581217050552368,
1.348245620727539,
1.2623202800750732,
-0.5135859847068787,
0.4054615795612335,
-0.7835124731063843,
-0.4886474609375,
0.5131635665893555,
0.39082425832748413,
-0.06234079971909523,
0.3499581217765808,
-1.0363043546676636,
-0.22879919409751892,
-0.4395895302295685,
-0.9488003253936768,
-0.7713436484336853,
-0.44225770235061646,
-0.33852702379226685,
1.6817091703414917,
0.0628599151968956,
-0.5141720771789551,
-0.0466228611767292,
-0.8225786685943604,
-0.12242026627063751,
-1.0812938213348389,
0.22508764266967773,
-0.17145875096321106,
-0.06092220917344093,
0.06165597215294838,
1.7957412004470825,
-1.029764175415039,
-2.1607487201690674,
0.20388056337833405,
0.2684357464313507,
-0.3661462962627411,
0.14613394439220428,
1.631617546081543,
0.48145943880081177,
1.370545744895935,
1.38065505027771,
0.9617043137550354,
-0.7221402525901794,
-1.3004035949707031,
0.6781853437423706,
0.9595956802368164,
-1.47057044506073,
0.7284879684448242,
-0.015270351432263851,
-0.5989254117012024,
0.7143412232398987,
1.209026575088501,
0.4489838182926178,
-1.923198938369751,
0.7501600980758667,
-0.8539153337478638,
0.7654603123664856,
0.6800686120986938,
0.6674385666847229,
0.23586900532245636,
0.8046010136604309,
-1.235276699066162,
-1.072011113166809,
-0.8048276901245117,
-0.6066588163375854,
1.841341257095337,
-0.21837444603443146,
0.4845283329486847,
-0.0918859913945198,
-1.299665093421936,
-0.08499714732170105,
0.7470577955245972,
0.4437462389469147,
-0.4048939645290375,
0.7861189246177673,
-0.6755099892616272,
-1.1077748537063599,
-1.3372896909713745,
-0.4542720317840576,
-0.9421123266220093,
-0.9312337040901184,
1.039062261581421,
0.7937924265861511,
0.30960097908973694,
1.9162957668304443,
0.6423219442367554,
0.2467746138572693,
-2.6628472805023193,
0.9252939820289612,
0.35996687412261963,
-0.03410067781805992,
0.8958671689033508,
0.2934505343437195,
1.0166186094284058,
-0.019441641867160797,
0.5092830061912537,
-2.3498144149780273,
2.237255334854126,
-0.30441519618034363,
0.6361374855041504,
0.013355248607695103,
-0.12785455584526062,
1.137826919555664,
0.4655100405216217,
0.5364935994148254,
-1.1070876121520996,
0.794185221195221,
-0.6391401886940002,
1.2590402364730835,
0.9360895752906799,
-0.9033132195472717,
-0.04095311090350151,
1.3086382150650024,
0.46144410967826843,
-0.46190086007118225,
-0.8976225256919861,
-0.875853955745697,
0.9435166120529175,
1.7299991846084595,
-0.02035253308713436,
0.0449272096157074,
0.9750545024871826,
0.6102215051651001,
-1.3808928728103638,
0.08644551783800125,
-0.7740212678909302,
-0.7546697854995728,
1.791874885559082,
2.009935140609741,
-0.10470852255821228,
-0.26274657249450684,
-0.8241655230522156,
-1.2895270586013794,
0.8295131921768188,
0.02661985531449318,
0.17326533794403076,
0.6872973442077637,
-0.6946206092834473,
1.1315431594848633,
0.8640190362930298,
0.9613455533981323,
0.15615896880626678,
0.28149423003196716,
0.3778597116470337,
-0.28928741812705994,
-1.1376169919967651,
-0.25027841329574585,
-1.0783884525299072,
-2.5082054138183594,
0.4403091073036194,
-0.2825250029563904,
-1.41487455368042,
0.07733999192714691,
-1.0238220691680908,
0.9325237274169922,
-0.5140030980110168,
-1.0371476411819458,
-1.5181201696395874,
0.24642735719680786,
-0.14525660872459412,
0.8307305574417114,
-1.6171600818634033,
-0.03440341725945473,
1.247976303100586,
0.8226498961448669,
-0.652694046497345,
1.0056042671203613,
0.19726666808128357,
1.0569233894348145,
0.902461051940918,
-0.40090763568878174,
0.4358583688735962,
0.09342951327562332,
-1.3560436964035034,
0.4964650571346283,
1.1460124254226685,
0.1654835045337677,
1.5063542127609253,
-0.5883870124816895,
-0.036216553300619125,
0.40831542015075684,
-0.4665922522544861,
-0.5392160415649414,
-0.6529479622840881,
0.6875376105308533,
0.05898616835474968,
-0.8493566513061523,
0.05215700343251228,
-0.15355663001537323,
-0.21857191622257233,
0.17225919663906097,
-1.5841717720031738,
-0.15199406445026398,
-0.32365038990974426,
-0.7175222039222717,
-1.201884388923645,
0.07439860701560974,
1.3573107719421387,
-0.7715283036231995,
-0.24071550369262695,
0.4694058299064636,
0.3930196762084961,
0.49898502230644226,
0.5568962693214417,
-0.6654049158096313,
-0.38163357973098755,
-0.2981927692890167,
-0.3397318422794342,
0.3615798056125641,
1.3042583465576172,
-0.20122738182544708,
-1.096397876739502,
0.753515362739563,
-0.4278896749019623,
0.07649345695972443,
1.935694694519043,
0.1273328810930252,
-0.8504908680915833,
0.2133869081735611,
-0.7536541819572449,
1.9492491483688354,
1.7043144702911377,
1.442620873451233,
-0.1048162654042244,
-0.9368362426757812,
0.6197777390480042,
-0.22884804010391235,
-0.4258303940296173,
0.886099100112915,
0.5206900835037231,
-0.13753023743629456,
-1.3845216035842896,
0.586959958076477,
1.308851957321167,
-0.9086034893989563,
-0.7972373366355896,
0.09927704930305481,
-0.8272114992141724,
1.0698879957199097,
0.7706056237220764,
0.4275379478931427,
0.24094831943511963,
1.596826195716858,
0.7576833963394165,
-0.4872376620769501,
0.5914900898933411,
0.4944242537021637,
-0.11544660478830338,
-2.0473437309265137,
-1.1089054346084595,
0.42919760942459106,
-0.41959506273269653,
-1.5743263959884644,
1.3284200429916382,
-1.1610738039016724,
-0.9325973391532898,
0.5524919629096985,
0.17128990590572357,
1.5222454071044922,
0.18775902688503265,
1.553282618522644,
2.018531560897827,
0.9296029806137085,
0.3839377164840698,
1.2211799621582031,
-0.1367012858390808,
-0.4694238305091858,
1.7911189794540405,
-0.46625491976737976,
0.5257527828216553,
1.074291706085205,
-0.3968348503112793,
-1.085081934928894,
-0.7166975736618042,
-1.2139713764190674,
-0.6089050769805908,
1.1704214811325073,
0.16100189089775085,
-1.2216930389404297,
0.22198306024074554,
1.5419436693191528,
0.06653916835784912,
-0.3396957516670227,
0.5042734742164612,
0.42833447456359863,
-0.7323336601257324,
-0.04333335533738136,
-0.9638082385063171,
0.5293080806732178,
-0.1415090262889862,
-0.3282632827758789,
0.3219279944896698,
0.4738561511039734,
1.2257070541381836,
-0.02729436755180359,
0.11317578703165054,
1.2498559951782227,
-1.3158608675003052,
1.4772875308990479,
-0.6520019769668579,
0.28191739320755005,
-2.3592867851257324,
1.4359495639801025,
-0.8050657510757446,
1.8351160287857056,
-2.605172634124756,
0.3751817047595978,
-0.6305765509605408,
-0.37343770265579224,
0.3970191180706024,
-0.3598369359970093,
0.14533983170986176,
-0.2337132692337036,
-1.0916286706924438,
-0.13323858380317688,
-0.8312427997589111,
0.6806877255439758,
1.12590754032135,
1.3099051713943481,
-1.0923594236373901,
-0.2109094262123108,
-1.6660469770431519,
-0.21934764087200165,
-0.6155206561088562,
0.39233464002609253,
-2.047786235809326,
-0.13860967755317688,
-2.0033068656921387,
-2.3932151794433594,
-1.3127564191818237,
-0.7629912495613098,
1.0470510721206665,
0.1437232345342636,
-0.8879525065422058,
1.1992634534835815,
-0.36306363344192505,
-1.8308446407318115,
1.1465588808059692,
-2.211989641189575
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | I've tried to load this dataset DTU54DL/common-voice-test16k, but am
getting the same error.
So the bug fix will fix only if I upload a new dataset, or also loading
previously uploaded datasets?
thanks
Am Mo., 28. Nov. 2022 um 19:51 Uhr schrieb Quentin Lhoest <
***@***.***>:
> The pull request has been merged on main.
> You can install datasets from main using
>
> pip install git+https://github.com/huggingface/datasets.git
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/5276#issuecomment-1329587334>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALSIFOCNYYIGHM2EX3ZIO6DWKT5MXANCNFSM6AAAAAASHQJ63U>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
| ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 103 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
I've tried to load this dataset DTU54DL/common-voice-test16k, but am
getting the same error.
So the bug fix will fix only if I upload a new dataset, or also loading
previously uploaded datasets?
thanks
Am Mo., 28. Nov. 2022 um 19:51 Uhr schrieb Quentin Lhoest <
***@***.***>:
> The pull request has been merged on main.
> You can install datasets from main using
>
> pip install git+https://github.com/huggingface/datasets.git
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/5276#issuecomment-1329587334>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALSIFOCNYYIGHM2EX3ZIO6DWKT5MXANCNFSM6AAAAAASHQJ63U>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
| [
-1.227881669998169,
-1.0120747089385986,
-0.6498963832855225,
1.3768483400344849,
-0.21116602420806885,
-1.2106375694274902,
0.16845373809337616,
-1.0729312896728516,
1.633545994758606,
-0.6536146998405457,
0.20996902883052826,
-1.6974087953567505,
-0.05560732260346413,
-0.525266706943512,
-0.7792176008224487,
-0.8638290166854858,
-0.40407854318618774,
-0.8566028475761414,
1.0182634592056274,
2.5144007205963135,
1.2328037023544312,
-1.376065969467163,
2.744276523590088,
0.6250162720680237,
-0.22773894667625427,
-0.9427433013916016,
0.5008735060691833,
0.06730981916189194,
-1.3568532466888428,
-0.4565058648586273,
-0.8517206907272339,
-0.06263894587755203,
-0.5600361824035645,
-0.5063747763633728,
0.06623753905296326,
0.3903515338897705,
-0.18018223345279694,
-0.39125606417655945,
-0.5596468448638916,
-0.6783617734909058,
0.46207115054130554,
-0.41043996810913086,
0.9479618668556213,
-0.31905099749565125,
1.780752420425415,
-0.6042425036430359,
0.4659283459186554,
0.6589851975440979,
1.3187812566757202,
0.23833617568016052,
-0.010608760640025139,
0.3082982301712036,
0.40338096022605896,
-0.056664615869522095,
0.418337881565094,
1.1720083951950073,
0.7028035521507263,
0.46914225816726685,
0.691293478012085,
-2.13930606842041,
1.2977136373519897,
-0.8769629001617432,
0.37473535537719727,
1.403351902961731,
-0.9332742691040039,
0.4039821922779083,
-1.8790404796600342,
-0.043344646692276,
0.5418097376823425,
-2.314826250076294,
0.23054257035255432,
-1.3002053499221802,
-0.6037690043449402,
0.9068743586540222,
0.24489542841911316,
-1.2899128198623657,
0.12567667663097382,
-0.5286974906921387,
1.0512343645095825,
0.3934940993785858,
1.2292896509170532,
-1.7135189771652222,
-0.09855835884809494,
-0.18829460442066193,
0.1457356959581375,
-1.1915836334228516,
-1.6101694107055664,
0.5849315524101257,
0.602725625038147,
0.6223128437995911,
-0.13390876352787018,
0.8889209032058716,
-0.9530091881752014,
0.857890784740448,
-0.9018083214759827,
-1.6955745220184326,
-1.4172369241714478,
-2.2718257904052734,
-2.2920682430267334,
0.786747932434082,
-0.48476529121398926,
-0.4657083749771118,
1.9775733947753906,
-0.9845392107963562,
-1.7787686586380005,
1.108374834060669,
0.30552950501441956,
-0.01036687009036541,
2.3802571296691895,
0.20981323719024658,
-0.7146151065826416,
0.45901963114738464,
-0.7579522132873535,
0.8167561292648315,
-0.399923175573349,
1.4332207441329956,
0.41358932852745056,
-0.9723501205444336,
1.5653249025344849,
-0.4329100549221039,
0.5562226176261902,
-0.6813068389892578,
-0.5414000749588013,
-0.7610265016555786,
0.22710466384887695,
1.916169285774231,
-0.30920588970184326,
1.651457667350769,
-0.35475292801856995,
-1.6255134344100952,
-1.548215389251709,
0.8975998759269714,
0.5261207818984985,
-0.8139564990997314,
0.08210768550634384,
-0.48135024309158325,
0.10544755309820175,
0.015363399870693684,
1.000930905342102,
1.3003767728805542,
0.679705798625946,
-0.3076147735118866,
-0.8954018950462341,
0.21243001520633698,
-0.12174336612224579,
-0.628951370716095,
-1.8896924257278442,
-0.25947535037994385,
0.1657267063856125,
0.665372908115387,
-1.322367787361145,
1.6172772645950317,
0.8315095901489258,
1.984697937965393,
0.9617881178855896,
-0.4752175211906433,
1.4760998487472534,
0.07844817638397217,
1.7856762409210205,
-0.5800089836120605,
0.6660661101341248,
-0.37729743123054504,
-1.0237399339675903,
0.7839115858078003,
-0.3513924777507782,
-2.000455617904663,
-0.710337221622467,
-0.8245616555213928,
-0.21170687675476074,
-0.7898600101470947,
0.9294440150260925,
-0.28558385372161865,
-1.3261971473693848,
0.3175875246524811,
-0.7132204174995422,
0.17166399955749512,
-1.306726336479187,
0.32149893045425415,
0.8238607048988342,
-0.5799338817596436,
0.03992842137813568,
-0.25525933504104614,
-1.310448408126831,
-0.5410767793655396,
0.308651328086853,
1.8853442668914795,
-0.6641953587532043,
0.9406232833862305,
0.9923537373542786,
-0.697151243686676,
0.03604097291827202,
0.3764522671699524,
-0.2702600657939911,
0.8091140985488892,
-1.1572269201278687,
-0.3223039507865906,
1.0594152212142944,
-0.2185075581073761,
-0.48529207706451416,
1.408951759338379,
0.7958834767341614,
-1.0016916990280151,
-0.20885105431079865,
-0.07896458357572556,
-0.7992093563079834,
0.0036877254024147987,
-1.6379108428955078,
-0.16574501991271973,
0.2979874312877655,
-1.5834949016571045,
-0.5382775068283081,
-0.3207382559776306,
1.2848601341247559,
-0.15977908670902252,
1.4338066577911377,
-0.23698543012142181,
-0.16803376376628876,
-0.41248446702957153,
-0.43132486939430237,
0.1447804868221283,
-0.29906150698661804,
-0.6020563244819641,
0.2592937648296356,
-0.8319219350814819,
0.34068989753723145,
1.4853060245513916,
0.3688078224658966,
-0.01645328849554062,
0.5034246444702148,
1.0457797050476074,
0.36756354570388794,
-0.11391133069992065,
-0.8349757194519043,
-1.5571229457855225,
2.0169031620025635,
-1.5099844932556152,
1.942992925643921,
0.8674417734146118,
-0.1284947693347931,
-1.7312346696853638,
-1.9282968044281006,
1.2823631763458252,
1.1856534481048584,
2.399409532546997,
0.666509211063385,
0.4396804869174957,
-0.7825971245765686,
-0.6374881863594055,
0.22963733971118927,
-1.016963005065918,
-0.8172174096107483,
0.1518988162279129,
2.3756563663482666,
1.734859585762024,
-0.5671696662902832,
-0.1854293942451477,
-1.0422132015228271,
1.364946961402893,
-0.10469529777765274,
0.22683033347129822,
2.017777442932129,
-0.2715696692466736,
-1.1216413974761963,
1.2968404293060303,
-2.2556474208831787,
0.19564589858055115,
1.9685170650482178,
0.28750211000442505,
0.10119883716106415,
-1.420802116394043,
-0.6295809745788574,
-0.31703001260757446,
-0.35518935322761536,
-1.2122751474380493,
0.5740434527397156,
-0.24237681925296783,
-0.8054537177085876,
-1.55544912815094,
0.11746907234191895,
-1.1219769716262817,
-1.641762614250183,
0.3431243300437927,
1.9385331869125366,
2.0577447414398193,
-0.7443735599517822,
1.4616631269454956,
-0.32130053639411926,
0.09430781751871109,
1.188907265663147,
1.1899489164352417,
3.146953821182251,
1.938122272491455,
-1.2251989841461182,
0.6527001857757568,
-0.17507947981357574,
-0.4561645984649658,
1.0966100692749023,
-1.1191457509994507,
1.200050711631775,
-0.21970626711845398,
-1.1848206520080566,
-1.1982197761535645,
1.0117243528366089,
0.5058887600898743,
0.05397167056798935,
-0.483976274728775,
1.2044429779052734,
0.024474162608385086,
1.4136677980422974,
0.47809600830078125,
-0.3217197060585022,
0.6093326807022095,
-0.39394983649253845,
-0.49499791860580444,
1.6294775009155273,
0.1922762244939804,
-1.4976011514663696,
-2.3901591300964355,
-0.2664988338947296,
-0.8689095377922058,
0.010805078782141209,
-0.6258875727653503,
-1.1206367015838623,
1.6097075939178467,
0.4919787347316742,
-1.167567491531372,
-0.3718901574611664,
-0.32465219497680664,
-0.5918867588043213,
2.5624001026153564,
-1.4617457389831543,
-0.2194911688566208,
-0.8869675993919373,
-0.5481566190719604,
1.6456032991409302,
-1.174554705619812,
-0.23672640323638916,
-1.0475916862487793,
-0.6433850526809692,
-1.2575629949569702,
-0.593599259853363,
-0.014651790261268616,
-0.9113466143608093,
0.7636191844940186,
0.1751403957605362,
-1.0905311107635498,
-0.22348880767822266,
-0.9023135900497437,
0.8989672660827637,
-0.07987218350172043,
0.24727579951286316,
1.8703346252441406,
0.4453774094581604,
-0.39542680978775024,
0.7237340211868286,
1.1564382314682007,
0.6460409760475159,
-0.75425785779953,
0.028307810425758362,
-0.6849310994148254,
0.28824445605278015,
-1.3369719982147217,
0.2854916453361511,
-2.8575100898742676,
0.6699427366256714,
-0.0708664283156395,
-0.10976434499025345,
0.04165966808795929,
-1.3598049879074097,
1.195378303527832,
2.6162259578704834,
-1.1717665195465088,
0.4926024377346039,
0.39854514598846436,
1.1958026885986328,
-1.6046806573867798,
0.3134567439556122,
-0.42133164405822754,
2.1396608352661133,
0.22286951541900635,
1.222504734992981,
-0.5393679141998291,
-2.3479537963867188,
0.5797233581542969,
-1.1680608987808228,
-1.201461672782898,
0.7120299339294434,
-0.9235266447067261,
-0.01145398709923029,
-1.490811824798584,
-0.1784583181142807,
-0.9191855788230896,
-1.2863891124725342,
0.7190203666687012,
0.07727591693401337,
0.4355759024620056,
-0.6374268531799316,
0.4143521785736084,
-2.14670991897583,
-1.3896814584732056,
-0.28360694646835327,
-0.9520279169082642,
0.45884716510772705,
-0.36896952986717224,
0.7423992156982422,
-0.12712545692920685,
0.041113387793302536,
0.3480282127857208,
1.3816466331481934,
3.3550240993499756,
0.16825109720230103,
0.306208997964859,
-0.1127704605460167,
-0.9136292934417725,
1.4721461534500122,
0.9626637697219849,
-0.09237756580114365,
-0.5716989040374756,
-0.9794992804527283,
1.3028762340545654,
2.01982045173645,
1.0534216165542603,
0.0706951916217804,
-0.8375976085662842,
-0.651172935962677,
0.050096627324819565,
0.29736825823783875,
0.44557711482048035,
0.954616129398346,
0.021622680127620697,
0.12278379499912262,
1.3624991178512573,
1.2724076509475708,
-0.47138550877571106,
0.4741455912590027,
-0.8292970657348633,
-0.5149142742156982,
0.42636409401893616,
0.3100098967552185,
-0.04378242790699005,
0.40723273158073425,
-1.0611846446990967,
-0.2133750021457672,
-0.36010655760765076,
-0.9525594711303711,
-0.7659178376197815,
-0.3859262466430664,
-0.32028138637542725,
1.634581208229065,
0.07997868210077286,
-0.4524790346622467,
0.022843878716230392,
-0.719028651714325,
-0.12311647087335587,
-1.1717652082443237,
0.258684903383255,
-0.1756473183631897,
0.00511192437261343,
-0.02946395054459572,
1.751899003982544,
-0.9047496318817139,
-2.1247382164001465,
0.20372070372104645,
0.33502915501594543,
-0.501985490322113,
0.15356509387493134,
1.6667635440826416,
0.5042304992675781,
1.458101749420166,
1.3216594457626343,
1.0011416673660278,
-0.6657583713531494,
-1.2161071300506592,
0.6915186643600464,
0.9381923675537109,
-1.3822245597839355,
0.7695989012718201,
-0.08393510431051254,
-0.5834699869155884,
0.6829367876052856,
1.3228306770324707,
0.41782909631729126,
-2.009537696838379,
0.9384913444519043,
-0.8646436333656311,
0.8337244987487793,
0.6770424842834473,
0.8002309203147888,
0.2253350019454956,
0.8601319193840027,
-1.3182024955749512,
-1.05666983127594,
-0.8095250725746155,
-0.5750828385353088,
1.8965457677841187,
-0.1798408180475235,
0.45223313570022583,
-0.1711152344942093,
-1.2231751680374146,
-0.10798534005880356,
0.7136357426643372,
0.46445390582084656,
-0.3290700316429138,
0.7865931391716003,
-0.6173290014266968,
-1.1307735443115234,
-1.2596228122711182,
-0.4108172357082367,
-0.9265339970588684,
-0.9103153944015503,
1.0193135738372803,
0.8453066349029541,
0.4717928171157837,
1.9285259246826172,
0.5624080896377563,
0.22841402888298035,
-2.6771674156188965,
0.9446018934249878,
0.36691078543663025,
-0.10724129527807236,
0.9925869107246399,
0.2987879812717438,
1.0925614833831787,
0.048894837498664856,
0.49259111285209656,
-2.3520312309265137,
2.1997480392456055,
-0.22201843559741974,
0.751724898815155,
0.027379434555768967,
-0.09494044631719589,
1.1071656942367554,
0.5325731039047241,
0.5277990698814392,
-1.1137690544128418,
0.8106653690338135,
-0.585445761680603,
1.1746739149093628,
0.8901157379150391,
-0.8214768767356873,
0.04068461060523987,
1.2485427856445312,
0.47553807497024536,
-0.47843798995018005,
-0.9536902904510498,
-0.8017933368682861,
0.9272316694259644,
1.818681001663208,
-0.09523847699165344,
0.08503224700689316,
0.8144380450248718,
0.6543234586715698,
-1.345205307006836,
0.03697201609611511,
-0.7282640337944031,
-0.7389224171638489,
1.6957714557647705,
2.0240395069122314,
-0.0501026026904583,
-0.21545609831809998,
-0.7094733715057373,
-1.3545171022415161,
0.8291957378387451,
-0.021599367260932922,
0.23946085572242737,
0.6954362988471985,
-0.6818416118621826,
1.1533368825912476,
0.7545663118362427,
1.013092041015625,
0.10860394686460495,
0.3476656675338745,
0.41961997747421265,
-0.28094756603240967,
-1.070863962173462,
-0.31318458914756775,
-1.1866949796676636,
-2.479508399963379,
0.483144611120224,
-0.2556590437889099,
-1.3858015537261963,
0.030319955199956894,
-0.9698401689529419,
0.9248647689819336,
-0.5928704142570496,
-1.0461207628250122,
-1.5281879901885986,
0.22323276102542877,
-0.17950528860092163,
0.9455435276031494,
-1.6150472164154053,
-0.1238393485546112,
1.2056368589401245,
0.8336457014083862,
-0.5845794081687927,
1.0124660730361938,
0.2672228217124939,
0.9445552229881287,
0.8265841007232666,
-0.3982890844345093,
0.41620272397994995,
0.11636077612638474,
-1.3342832326889038,
0.44621220231056213,
1.2104380130767822,
0.21572968363761902,
1.3844788074493408,
-0.5945723056793213,
-0.02622687816619873,
0.434848815202713,
-0.4411711096763611,
-0.5184680223464966,
-0.5068895220756531,
0.6581236124038696,
0.04425382986664772,
-0.9913800358772278,
-0.014675987884402275,
-0.21309329569339752,
-0.16832825541496277,
0.21961496770381927,
-1.5290863513946533,
-0.23168644309043884,
-0.4277879595756531,
-0.5510862469673157,
-1.2484041452407837,
-0.0023399400524795055,
1.4163756370544434,
-0.7958834171295166,
-0.24407541751861572,
0.49803850054740906,
0.4422076642513275,
0.5010128617286682,
0.6383177638053894,
-0.681172788143158,
-0.37464120984077454,
-0.3056254982948303,
-0.3351491391658783,
0.26365938782691956,
1.2670128345489502,
-0.19654370844364166,
-1.0666182041168213,
0.6590473651885986,
-0.4226842224597931,
0.09600330889225006,
1.9737982749938965,
0.11378642916679382,
-0.8041653633117676,
0.24440360069274902,
-0.7247282266616821,
1.9052982330322266,
1.678703784942627,
1.4141069650650024,
-0.17407847940921783,
-0.9421881437301636,
0.5510725378990173,
-0.2263285517692566,
-0.4112558364868164,
0.8639565110206604,
0.5431980490684509,
-0.16100150346755981,
-1.4710562229156494,
0.5688546299934387,
1.3529151678085327,
-0.9780901074409485,
-0.767961323261261,
0.10234589129686356,
-0.8018420934677124,
1.1334638595581055,
0.704813539981842,
0.4070493280887604,
0.2108304649591446,
1.62348210811615,
0.6947757005691528,
-0.5176246762275696,
0.533804714679718,
0.46886107325553894,
-0.17819197475910187,
-2.066927194595337,
-1.192588448524475,
0.318649023771286,
-0.36835166811943054,
-1.5208401679992676,
1.341583251953125,
-1.1136659383773804,
-0.9958263039588928,
0.4918930232524872,
0.16746126115322113,
1.4427142143249512,
0.26492059230804443,
1.6344020366668701,
2.0837409496307373,
0.9170270562171936,
0.3361024260520935,
1.2446602582931519,
-0.10256663709878922,
-0.49443715810775757,
1.8305187225341797,
-0.4268350601196289,
0.5488832592964172,
1.0891133546829224,
-0.45939239859580994,
-1.0878337621688843,
-0.7644910216331482,
-1.1648976802825928,
-0.6679514646530151,
1.2030725479125977,
0.1009392961859703,
-1.1831670999526978,
0.27519041299819946,
1.592151403427124,
0.0889735296368599,
-0.31585007905960083,
0.551664412021637,
0.4574300944805145,
-0.7405220866203308,
-0.10052481293678284,
-0.9900098443031311,
0.5176803469657898,
-0.17414140701293945,
-0.38153699040412903,
0.25268059968948364,
0.5376501679420471,
1.2369126081466675,
-0.026924006640911102,
0.057705558836460114,
1.2516028881072998,
-1.3362667560577393,
1.482762336730957,
-0.6190268397331238,
0.2630459666252136,
-2.39217209815979,
1.4885624647140503,
-0.7345955967903137,
1.8987935781478882,
-2.626865863800049,
0.38770461082458496,
-0.5748973488807678,
-0.35451287031173706,
0.295164555311203,
-0.3074796497821808,
0.1993885338306427,
-0.21928280591964722,
-1.0625287294387817,
-0.15906184911727905,
-0.7764333486557007,
0.6363392472267151,
1.1461536884307861,
1.3930686712265015,
-1.0723246335983276,
-0.16353295743465424,
-1.674463152885437,
-0.2369282841682434,
-0.6740155816078186,
0.33642545342445374,
-1.9820153713226318,
-0.17320574820041656,
-1.948218822479248,
-2.32698392868042,
-1.3210551738739014,
-0.8172616362571716,
1.0170470476150513,
0.16274088621139526,
-0.9136154055595398,
1.1875638961791992,
-0.37951403856277466,
-1.8082237243652344,
1.1447322368621826,
-2.23045015335083
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | > So the bug fix will fix only if I upload a new dataset, or also loading
previously uploaded datasets?
You have to reupload the dataset, sorry for the inconvenience | ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 30 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
> So the bug fix will fix only if I upload a new dataset, or also loading
previously uploaded datasets?
You have to reupload the dataset, sorry for the inconvenience | [
-1.2553917169570923,
-0.9863103032112122,
-0.7905780673027039,
1.447359561920166,
-0.21210473775863647,
-1.207574725151062,
0.12582971155643463,
-1.0731642246246338,
1.5865862369537354,
-0.8383920192718506,
0.26923415064811707,
-1.6797409057617188,
0.05695488676428795,
-0.5417887568473816,
-0.746372640132904,
-0.9761402606964111,
-0.3992955684661865,
-0.7955532073974609,
1.0645874738693237,
2.5049078464508057,
1.2151767015457153,
-1.342639684677124,
2.744649648666382,
0.6696141362190247,
-0.1937432736158371,
-0.9449363350868225,
0.5365915894508362,
0.08882848918437958,
-1.2780119180679321,
-0.413828581571579,
-0.8916395902633667,
-0.08092498779296875,
-0.6551180481910706,
-0.5692864656448364,
0.01677544414997101,
0.4160255491733551,
-0.3121960759162903,
-0.4148232042789459,
-0.4537542462348938,
-0.7655167579650879,
0.537880003452301,
-0.46257302165031433,
1.0066133737564087,
-0.4296015799045563,
1.9232362508773804,
-0.5184982419013977,
0.38842156529426575,
0.656988263130188,
1.3313684463500977,
0.22968271374702454,
-0.023029625415802002,
0.3179251253604889,
0.3851776421070099,
-0.006962524726986885,
0.3939233422279358,
1.0890626907348633,
0.6085771918296814,
0.5542989373207092,
0.6754565238952637,
-2.107571840286255,
1.2838493585586548,
-0.9781777858734131,
0.31670066714286804,
1.4194406270980835,
-0.9796665906906128,
0.41512376070022583,
-1.748558521270752,
-0.11197256296873093,
0.557561993598938,
-2.279650926589966,
0.2529926002025604,
-1.222440481185913,
-0.5577871203422546,
0.9355219006538391,
0.3532364070415497,
-1.2919971942901611,
0.06384927779436111,
-0.5595563650131226,
1.0937657356262207,
0.4180252254009247,
1.1903331279754639,
-1.6978058815002441,
-0.03518642857670784,
-0.2840783894062042,
0.12446242570877075,
-1.3589597940444946,
-1.509275197982788,
0.48660680651664734,
0.6718742251396179,
0.6055963635444641,
-0.03299854323267937,
0.8948677778244019,
-0.9897478222846985,
0.8100237846374512,
-0.9296951293945312,
-1.656816005706787,
-1.3885431289672852,
-2.3096988201141357,
-2.3449294567108154,
0.7850276231765747,
-0.41071563959121704,
-0.5724797248840332,
1.9975509643554688,
-1.0371543169021606,
-1.7218003273010254,
1.2432126998901367,
0.24573515355587006,
-0.06839028000831604,
2.4107253551483154,
0.13579852879047394,
-0.7611919045448303,
0.5279987454414368,
-0.7573072910308838,
0.900547444820404,
-0.45780518651008606,
1.3776047229766846,
0.47312822937965393,
-1.0499842166900635,
1.5866605043411255,
-0.45358961820602417,
0.594920814037323,
-0.6795372366905212,
-0.4990658462047577,
-0.8403552770614624,
0.28255605697631836,
1.887993335723877,
-0.26206064224243164,
1.6955307722091675,
-0.32878684997558594,
-1.5323566198349,
-1.5698750019073486,
0.9512149691581726,
0.41557759046554565,
-0.778108537197113,
0.1252056509256363,
-0.33514246344566345,
0.12433835864067078,
0.05985775217413902,
1.0166679620742798,
1.2959182262420654,
0.6678463220596313,
-0.2734606862068176,
-0.9204944968223572,
0.2403913289308548,
-0.18982140719890594,
-0.6796796917915344,
-1.831020474433899,
-0.27985841035842896,
0.04475611448287964,
0.6779174208641052,
-1.2824985980987549,
1.6452172994613647,
0.8282093405723572,
1.9174574613571167,
0.9695429801940918,
-0.33824342489242554,
1.4652910232543945,
0.09764157235622406,
1.8017464876174927,
-0.48256567120552063,
0.7539926171302795,
-0.3744974136352539,
-1.0671991109848022,
0.6950528621673584,
-0.3918522298336029,
-1.9889215230941772,
-0.8289486169815063,
-0.7909945249557495,
-0.14087055623531342,
-0.7757359743118286,
0.9723994135856628,
-0.3612462878227234,
-1.355893850326538,
0.43303927779197693,
-0.6963047981262207,
0.17234604060649872,
-1.2856391668319702,
0.3804079592227936,
0.7375117540359497,
-0.6080684065818787,
0.04704900085926056,
-0.2693755328655243,
-1.2708979845046997,
-0.45522361993789673,
0.3157680332660675,
1.91389799118042,
-0.7670630812644958,
0.8858641982078552,
0.9519414901733398,
-0.6744281649589539,
-0.038342926651239395,
0.36660152673721313,
-0.2835076153278351,
0.8034725785255432,
-1.112186312675476,
-0.3924095034599304,
1.1209475994110107,
-0.27528733015060425,
-0.6428768634796143,
1.4367425441741943,
0.8273026943206787,
-0.9767091870307922,
-0.12819981575012207,
-0.11483874171972275,
-0.8028180599212646,
0.0073079923167824745,
-1.634497880935669,
-0.16017509996891022,
0.3207983374595642,
-1.5609248876571655,
-0.46039196848869324,
-0.22794204950332642,
1.2029814720153809,
-0.14674140512943268,
1.4943745136260986,
-0.34403783082962036,
-0.24343286454677582,
-0.39687103033065796,
-0.45838311314582825,
0.15745478868484497,
-0.15514639019966125,
-0.5836473703384399,
0.211394801735878,
-0.7233192920684814,
0.3947896361351013,
1.3575468063354492,
0.3790317177772522,
0.04794452339410782,
0.5295429825782776,
1.0756042003631592,
0.32935839891433716,
-0.07543738931417465,
-0.8375568389892578,
-1.5469368696212769,
2.012272596359253,
-1.4382749795913696,
1.9920399188995361,
0.8638714551925659,
-0.11719009280204773,
-1.755577564239502,
-1.856008768081665,
1.336005449295044,
1.240771770477295,
2.252499580383301,
0.6654478311538696,
0.4388008415699005,
-0.8622395992279053,
-0.6437751054763794,
0.26400989294052124,
-1.056426763534546,
-0.7579115033149719,
0.13337068259716034,
2.3581793308258057,
1.68301522731781,
-0.45881134271621704,
-0.13246940076351166,
-1.1241564750671387,
1.3534643650054932,
-0.10184358060359955,
0.2082967758178711,
2.000509262084961,
-0.31230923533439636,
-1.1633944511413574,
1.2469414472579956,
-2.241790294647217,
0.08364030718803406,
1.994854211807251,
0.24367769062519073,
-0.00906998012214899,
-1.420723557472229,
-0.721068799495697,
-0.27737322449684143,
-0.26593315601348877,
-1.246904969215393,
0.5725297331809998,
-0.2935464680194855,
-0.7380666732788086,
-1.502437949180603,
0.10847682505846024,
-1.1128851175308228,
-1.5678372383117676,
0.33374762535095215,
1.9056729078292847,
2.0609934329986572,
-0.6946554780006409,
1.537688970565796,
-0.18720939755439758,
0.19344300031661987,
1.28404700756073,
1.153961420059204,
3.1798698902130127,
1.925352931022644,
-1.2718894481658936,
0.6162884831428528,
-0.10010626167058945,
-0.49856069684028625,
1.1858956813812256,
-1.1492235660552979,
1.3311394453048706,
-0.22211576998233795,
-1.1960465908050537,
-1.2711396217346191,
0.9791499972343445,
0.4787448048591614,
0.1043424904346466,
-0.45158806443214417,
1.2767903804779053,
-0.004125709179788828,
1.3502839803695679,
0.4387466013431549,
-0.2555609941482544,
0.5802345871925354,
-0.44306865334510803,
-0.533501923084259,
1.6400158405303955,
0.18030841648578644,
-1.4524133205413818,
-2.3861818313598633,
-0.28044524788856506,
-0.7633602023124695,
0.004114150069653988,
-0.6903332471847534,
-1.079534649848938,
1.668052077293396,
0.4257636070251465,
-1.155198574066162,
-0.4396646022796631,
-0.36482003331184387,
-0.6646637320518494,
2.605783462524414,
-1.540095567703247,
-0.3025939464569092,
-0.9078395962715149,
-0.5981438159942627,
1.5633082389831543,
-1.2742403745651245,
-0.2061891406774521,
-1.0086021423339844,
-0.6449639201164246,
-1.26644766330719,
-0.5713462233543396,
-0.08084627985954285,
-0.953591525554657,
0.7425059676170349,
0.2197442501783371,
-1.0814754962921143,
-0.20892734825611115,
-0.8591960072517395,
0.8064544796943665,
-0.04658769443631172,
0.3320017158985138,
1.8112775087356567,
0.45476284623146057,
-0.4332670271396637,
0.7176162600517273,
1.1721478700637817,
0.6959653496742249,
-0.7770714163780212,
0.07050762325525284,
-0.7423429489135742,
0.2041388899087906,
-1.235188603401184,
0.3102542459964752,
-2.878798723220825,
0.5641754865646362,
-0.10562047362327576,
-0.185648575425148,
0.024282027035951614,
-1.2965751886367798,
1.1205353736877441,
2.617906093597412,
-1.1647366285324097,
0.38086891174316406,
0.2765057682991028,
1.2654540538787842,
-1.6488289833068848,
0.3684883713722229,
-0.4343096911907196,
2.0661513805389404,
0.2388000786304474,
1.177247405052185,
-0.5370463728904724,
-2.3376941680908203,
0.6643948554992676,
-1.231919527053833,
-1.2610605955123901,
0.7868813872337341,
-0.9191297292709351,
0.02269403263926506,
-1.390157699584961,
-0.24361659586429596,
-0.8500005006790161,
-1.3089545965194702,
0.685433566570282,
0.13177372515201569,
0.498928427696228,
-0.5465851426124573,
0.3674570918083191,
-2.136046886444092,
-1.4405802488327026,
-0.268643856048584,
-0.944187581539154,
0.37625229358673096,
-0.43259915709495544,
0.6881506443023682,
-0.25654128193855286,
0.05402093753218651,
0.36300063133239746,
1.3675358295440674,
3.4184319972991943,
0.24794147908687592,
0.39430034160614014,
-0.10312681645154953,
-0.9049761295318604,
1.4633970260620117,
0.9552780985832214,
-0.11740680783987045,
-0.5943293571472168,
-0.9090613126754761,
1.3431837558746338,
1.9618120193481445,
0.985744059085846,
0.044379234313964844,
-0.6839632987976074,
-0.5732328295707703,
-0.02653912454843521,
0.24434374272823334,
0.4480392336845398,
0.88325035572052,
-0.003804702777415514,
0.1379663497209549,
1.4155317544937134,
1.2937302589416504,
-0.5323596596717834,
0.37634822726249695,
-0.7452054023742676,
-0.4960990846157074,
0.5423067808151245,
0.3759705722332001,
-0.0939449891448021,
0.4022655487060547,
-0.9849779605865479,
-0.23947131633758545,
-0.4344266653060913,
-0.9677414894104004,
-0.740433931350708,
-0.3905865550041199,
-0.3282599449157715,
1.6783558130264282,
0.11118721216917038,
-0.5051515698432922,
-0.084407739341259,
-0.7887333035469055,
-0.18007627129554749,
-1.1492561101913452,
0.2185036838054657,
-0.1650509238243103,
-0.1085837185382843,
0.03458084538578987,
1.8381766080856323,
-0.9879768490791321,
-2.184290885925293,
0.18135365843772888,
0.26544153690338135,
-0.29995957016944885,
0.1415034979581833,
1.62115478515625,
0.4278174340724945,
1.39408278465271,
1.3427624702453613,
0.9131045937538147,
-0.7217649817466736,
-1.2990916967391968,
0.71601802110672,
0.9240440726280212,
-1.4769946336746216,
0.7694341540336609,
-0.04379773885011673,
-0.6818026304244995,
0.769944965839386,
1.217502236366272,
0.4924051761627197,
-1.9008941650390625,
0.8042541742324829,
-0.9464803338050842,
0.8206688165664673,
0.705335795879364,
0.6555447578430176,
0.2474602609872818,
0.8441188931465149,
-1.2540253400802612,
-1.0951151847839355,
-0.8221001029014587,
-0.6089000701904297,
1.8738588094711304,
-0.21532924473285675,
0.4789835512638092,
-0.10646650940179825,
-1.2478307485580444,
-0.052151069045066833,
0.7070534825325012,
0.4116991460323334,
-0.3130505681037903,
0.7972890734672546,
-0.7207928895950317,
-1.1720612049102783,
-1.3902357816696167,
-0.37626519799232483,
-0.967046856880188,
-0.8835642337799072,
1.1198773384094238,
0.8068975210189819,
0.25052985548973083,
1.9089810848236084,
0.6564616560935974,
0.2706644833087921,
-2.648473024368286,
0.9319300055503845,
0.30212897062301636,
-0.032043203711509705,
0.9315784573554993,
0.2804814577102661,
1.0460654497146606,
0.0557367168366909,
0.4367254376411438,
-2.340573787689209,
2.2476806640625,
-0.377596378326416,
0.7129809260368347,
-0.01921432465314865,
-0.014067674987018108,
1.1536860466003418,
0.4997427463531494,
0.5523743033409119,
-1.079532265663147,
0.796123206615448,
-0.5642889738082886,
1.231667399406433,
0.9938830137252808,
-0.8558022975921631,
-0.043683331459760666,
1.3098392486572266,
0.49449747800827026,
-0.48893412947654724,
-0.850551962852478,
-0.8363514542579651,
0.90027916431427,
1.7966598272323608,
-0.032586000859737396,
0.09455906599760056,
0.9008911848068237,
0.6019459366798401,
-1.3858461380004883,
0.07130786776542664,
-0.7399011850357056,
-0.7767849564552307,
1.7521594762802124,
2.0371618270874023,
-0.07883851230144501,
-0.2192848175764084,
-0.7504819631576538,
-1.3581299781799316,
0.8585720062255859,
-0.002947404980659485,
0.2198948711156845,
0.6290540099143982,
-0.7161359786987305,
1.0871540307998657,
0.891945481300354,
0.9711276292800903,
0.1731506586074829,
0.25000184774398804,
0.4344552457332611,
-0.23881974816322327,
-1.0982224941253662,
-0.2538570761680603,
-1.076649785041809,
-2.5003130435943604,
0.4407580494880676,
-0.3118702173233032,
-1.4442743062973022,
0.05662241950631142,
-0.9971390962600708,
0.9537227749824524,
-0.5161216855049133,
-0.9816383719444275,
-1.5777654647827148,
0.2612314820289612,
-0.14514675736427307,
0.8663566708564758,
-1.6059207916259766,
-0.06698255985975266,
1.2329288721084595,
0.8036752939224243,
-0.6054719090461731,
1.0872344970703125,
0.2578456997871399,
0.9657434225082397,
0.8334385752677917,
-0.43055590987205505,
0.4304678738117218,
0.08209234476089478,
-1.3163264989852905,
0.4985474944114685,
1.1340179443359375,
0.1804007589817047,
1.4733312129974365,
-0.5624974966049194,
-0.08858291059732437,
0.3804314136505127,
-0.45580169558525085,
-0.508299708366394,
-0.5625306367874146,
0.7052054405212402,
0.10273897647857666,
-0.7910527586936951,
0.029451385140419006,
-0.19707521796226501,
-0.29125335812568665,
0.21903884410858154,
-1.5505938529968262,
-0.20270130038261414,
-0.48702600598335266,
-0.7056013345718384,
-1.2696200609207153,
0.060295794159173965,
1.4256619215011597,
-0.7570272088050842,
-0.2260633260011673,
0.44897618889808655,
0.4641985297203064,
0.5158301591873169,
0.6202326416969299,
-0.6418053507804871,
-0.3635141849517822,
-0.29125484824180603,
-0.28320038318634033,
0.3125873804092407,
1.293653130531311,
-0.2388150542974472,
-1.0975528955459595,
0.7655265927314758,
-0.3506419360637665,
0.10433220863342285,
1.961627721786499,
0.16080734133720398,
-0.7930687069892883,
0.2434973567724228,
-0.8092593550682068,
1.9635097980499268,
1.6871775388717651,
1.471580982208252,
-0.09203736484050751,
-0.941201388835907,
0.6053532361984253,
-0.15646898746490479,
-0.38405051827430725,
0.8732131123542786,
0.5431854128837585,
-0.14317432045936584,
-1.4192148447036743,
0.6307319402694702,
1.2597270011901855,
-0.8809041380882263,
-0.7301989793777466,
0.07031223177909851,
-0.7736362814903259,
1.078871488571167,
0.7028340101242065,
0.4747805893421173,
0.22114598751068115,
1.6260050535202026,
0.7267552614212036,
-0.601629912853241,
0.5238181948661804,
0.5104233622550964,
-0.12217656522989273,
-2.0619566440582275,
-1.0950630903244019,
0.40929555892944336,
-0.39321625232696533,
-1.5673739910125732,
1.325817584991455,
-1.1114228963851929,
-0.9431633353233337,
0.5413188934326172,
0.08130088448524475,
1.4898056983947754,
0.2031264454126358,
1.5701764822006226,
2.03125,
0.9726637601852417,
0.40517458319664,
1.2481268644332886,
-0.16469398140907288,
-0.41465187072753906,
1.8275904655456543,
-0.40041443705558777,
0.47996923327445984,
1.0904831886291504,
-0.42592769861221313,
-1.0115805864334106,
-0.6569420099258423,
-1.1374750137329102,
-0.5868781208992004,
1.1125985383987427,
0.15056104958057404,
-1.169381022453308,
0.19637452065944672,
1.5096161365509033,
0.07094178348779678,
-0.3192136585712433,
0.44958558678627014,
0.5140144228935242,
-0.7244922518730164,
-0.07455224543809891,
-0.9878119826316833,
0.5232517719268799,
-0.21193209290504456,
-0.3656666576862335,
0.33125942945480347,
0.4833316504955292,
1.2547776699066162,
-0.06552489846944809,
0.13054174184799194,
1.2744245529174805,
-1.3380980491638184,
1.407921552658081,
-0.5664811134338379,
0.25810641050338745,
-2.321396589279175,
1.441831350326538,
-0.7437215447425842,
1.883362889289856,
-2.6080031394958496,
0.3930843472480774,
-0.7418538331985474,
-0.3575415313243866,
0.42343074083328247,
-0.3558688759803772,
0.1772642284631729,
-0.2455536425113678,
-1.0553910732269287,
-0.09337461739778519,
-0.8291149139404297,
0.6386332511901855,
1.1452584266662598,
1.297457218170166,
-1.0896961688995361,
-0.18349067866802216,
-1.595715045928955,
-0.2209385186433792,
-0.6085017919540405,
0.31290802359580994,
-2.084674596786499,
-0.15235091745853424,
-2.033582925796509,
-2.3577818870544434,
-1.3035781383514404,
-0.7798227071762085,
1.1080260276794434,
0.18972237408161163,
-0.9191488027572632,
1.2102278470993042,
-0.3875229060649872,
-1.817740797996521,
1.198307752609253,
-2.1585898399353027
] |
https://github.com/huggingface/datasets/issues/5276 | Bug in downloading common_voice data and snall chunk of it to one's own hub | thank you so much for the help! works like a charm!
Am Di., 29. Nov. 2022 um 12:15 Uhr schrieb Quentin Lhoest <
***@***.***>:
> So the bug fix will fix only if I upload a new dataset, or also loading
> previously uploaded datasets?
>
> You have to reupload the dataset, sorry for the inconvenience
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/5276#issuecomment-1330468393>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALSIFOBKEFZO57BAKY4IGW3WKXQUZANCNFSM6AAAAAASHQJ63U>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
| ### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11 | 403 | 92 | Bug in downloading common_voice data and snall chunk of it to one's own hub
### Describe the bug
I'm trying to load the common voice dataset. Currently there is no implementation to download just par tof the data, and I need just one part of it, without downloading the entire dataset
Help please?

### Steps to reproduce the bug
So here is what I have done:
1. Download common_voice data
2. Trim part of it and publish it to my own repo.
3. Download data from my own repo, but am getting this error.
### Expected behavior
There shouldn't be an error in downloading part of the data and publishing it to one's own repo
### Environment info
common_voice 11
thank you so much for the help! works like a charm!
Am Di., 29. Nov. 2022 um 12:15 Uhr schrieb Quentin Lhoest <
***@***.***>:
> So the bug fix will fix only if I upload a new dataset, or also loading
> previously uploaded datasets?
>
> You have to reupload the dataset, sorry for the inconvenience
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/5276#issuecomment-1330468393>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALSIFOBKEFZO57BAKY4IGW3WKXQUZANCNFSM6AAAAAASHQJ63U>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
| [
-1.2216267585754395,
-1.0219714641571045,
-0.6812902688980103,
1.4104489088058472,
-0.1973455250263214,
-1.2055637836456299,
0.16963109374046326,
-1.08225417137146,
1.6632575988769531,
-0.6676566004753113,
0.23157230019569397,
-1.6840180158615112,
-0.03684938699007034,
-0.5427006483078003,
-0.7647506594657898,
-0.8779416680335999,
-0.4296342730522156,
-0.8719185590744019,
1.0234469175338745,
2.5365185737609863,
1.2324512004852295,
-1.4032007455825806,
2.7310054302215576,
0.6488199830055237,
-0.24176493287086487,
-0.9453610777854919,
0.4882966876029968,
0.05507811903953552,
-1.3437130451202393,
-0.4696894884109497,
-0.8286600708961487,
-0.07536686211824417,
-0.6014912724494934,
-0.5023118853569031,
0.06430325657129288,
0.3906872868537903,
-0.2100124955177307,
-0.39109423756599426,
-0.5228399038314819,
-0.6818627715110779,
0.4495294690132141,
-0.4302979111671448,
0.9248910546302795,
-0.352336049079895,
1.770939588546753,
-0.5802926421165466,
0.44727203249931335,
0.6673243641853333,
1.3254798650741577,
0.26823681592941284,
-0.03589266538619995,
0.2995363771915436,
0.4102766215801239,
-0.08683407306671143,
0.39850565791130066,
1.1457303762435913,
0.7246800661087036,
0.49776849150657654,
0.6998854875564575,
-2.1355056762695312,
1.3069645166397095,
-0.9294408559799194,
0.36697688698768616,
1.4087328910827637,
-0.9180080890655518,
0.3581704795360565,
-1.8635520935058594,
-0.06823249161243439,
0.5496427416801453,
-2.3322455883026123,
0.22840741276741028,
-1.2810672521591187,
-0.6107926964759827,
0.9095669388771057,
0.26632174849510193,
-1.3403712511062622,
0.09561757743358612,
-0.5258010625839233,
1.0407291650772095,
0.36689257621765137,
1.2058085203170776,
-1.780537486076355,
-0.12196512520313263,
-0.24174949526786804,
0.11216028034687042,
-1.2119275331497192,
-1.6044355630874634,
0.6056222915649414,
0.5795981884002686,
0.61612468957901,
-0.09457280486822128,
0.8939981460571289,
-0.9381259083747864,
0.8564498424530029,
-0.9594404697418213,
-1.6791425943374634,
-1.3864357471466064,
-2.2768442630767822,
-2.2617478370666504,
0.7741671204566956,
-0.4779590964317322,
-0.479508638381958,
1.9648703336715698,
-0.9774434566497803,
-1.7298966646194458,
1.1414021253585815,
0.32751280069351196,
-0.01682095229625702,
2.395857334136963,
0.21390506625175476,
-0.7267869114875793,
0.4533335268497467,
-0.766038179397583,
0.8468830585479736,
-0.4082127809524536,
1.4153071641921997,
0.3886743485927582,
-0.9768734574317932,
1.5559438467025757,
-0.42675867676734924,
0.5474299788475037,
-0.6864683032035828,
-0.5554676055908203,
-0.7998852729797363,
0.2836066484451294,
1.8953404426574707,
-0.3031156361103058,
1.6915969848632812,
-0.3725011348724365,
-1.601722240447998,
-1.5360803604125977,
0.906267523765564,
0.5276651978492737,
-0.833015501499176,
0.09954279661178589,
-0.44455796480178833,
0.10167302936315536,
0.03812481462955475,
1.008803367614746,
1.3442111015319824,
0.6730552911758423,
-0.330757200717926,
-0.9113457798957825,
0.17899015545845032,
-0.1429673135280609,
-0.7012659311294556,
-1.854093074798584,
-0.2682672441005707,
0.12669500708580017,
0.6684521436691284,
-1.3354383707046509,
1.5894749164581299,
0.8548460006713867,
1.9793959856033325,
0.9904285073280334,
-0.45732781291007996,
1.4552342891693115,
0.11129964143037796,
1.7531687021255493,
-0.5946387648582458,
0.6998518705368042,
-0.3732377290725708,
-1.013838291168213,
0.8123878836631775,
-0.34521979093551636,
-1.970888614654541,
-0.7060443758964539,
-0.8068658113479614,
-0.2154594361782074,
-0.8125995993614197,
0.9440561532974243,
-0.2685509920120239,
-1.3266838788986206,
0.3682853877544403,
-0.7266618609428406,
0.16147014498710632,
-1.304652452468872,
0.34109750390052795,
0.7718978524208069,
-0.5504189133644104,
0.04656118154525757,
-0.2516157329082489,
-1.3212833404541016,
-0.5345577597618103,
0.2516411244869232,
1.869390845298767,
-0.6930890679359436,
0.9431692957878113,
0.9729811549186707,
-0.6849347949028015,
0.030028413981199265,
0.38216570019721985,
-0.2813262641429901,
0.8431907892227173,
-1.1648180484771729,
-0.3476445972919464,
1.0184693336486816,
-0.2150689661502838,
-0.4689527451992035,
1.4032357931137085,
0.7398154735565186,
-1.0032072067260742,
-0.193282812833786,
-0.09582385420799255,
-0.8146079182624817,
-0.0017968090251088142,
-1.6766026020050049,
-0.18201744556427002,
0.30835244059562683,
-1.5697911977767944,
-0.5037502646446228,
-0.30238771438598633,
1.2675228118896484,
-0.14520719647407532,
1.401680588722229,
-0.2788953483104706,
-0.179952472448349,
-0.39234861731529236,
-0.3771742582321167,
0.1356457769870758,
-0.2854399085044861,
-0.5742821097373962,
0.24004998803138733,
-0.8065624833106995,
0.3346861004829407,
1.487947702407837,
0.37527137994766235,
-0.0011259778402745724,
0.482338547706604,
1.0327033996582031,
0.3740411102771759,
-0.08495790511369705,
-0.8135762810707092,
-1.5188087224960327,
2.032221555709839,
-1.487984299659729,
1.962724208831787,
0.8848063349723816,
-0.1064203605055809,
-1.7349001169204712,
-1.9345024824142456,
1.3063453435897827,
1.175262689590454,
2.3984920978546143,
0.668937087059021,
0.4801509380340576,
-0.7752349376678467,
-0.6277458071708679,
0.21734783053398132,
-1.0062450170516968,
-0.8366796970367432,
0.15490871667861938,
2.3783395290374756,
1.673403263092041,
-0.5686134696006775,
-0.14917391538619995,
-1.042921781539917,
1.370651364326477,
-0.06548553705215454,
0.22093164920806885,
2.0192408561706543,
-0.24456492066383362,
-1.1880979537963867,
1.2884571552276611,
-2.2468292713165283,
0.15561336278915405,
1.9895389080047607,
0.2753719687461853,
0.0812285915017128,
-1.3766309022903442,
-0.657636284828186,
-0.3184601962566376,
-0.36326152086257935,
-1.2159388065338135,
0.5438559055328369,
-0.2606572210788727,
-0.8080960512161255,
-1.5775012969970703,
0.08974062651395798,
-1.1029778718948364,
-1.6069515943527222,
0.3186184763908386,
1.9645895957946777,
2.0573177337646484,
-0.7206692695617676,
1.4703264236450195,
-0.29512491822242737,
0.08180098235607147,
1.1768947839736938,
1.1771695613861084,
3.130584955215454,
1.946499228477478,
-1.2553014755249023,
0.6264922618865967,
-0.13780367374420166,
-0.465907484292984,
1.0812216997146606,
-1.0958373546600342,
1.213134765625,
-0.2198176085948944,
-1.2049779891967773,
-1.2107144594192505,
0.9710376858711243,
0.5045015215873718,
0.07517282664775848,
-0.5302326083183289,
1.206575870513916,
0.017675362527370453,
1.3672879934310913,
0.48254531621932983,
-0.2816629111766815,
0.623092532157898,
-0.43441903591156006,
-0.5048074126243591,
1.659822702407837,
0.22387415170669556,
-1.4644254446029663,
-2.43265438079834,
-0.23123517632484436,
-0.8360893726348877,
0.0666152834892273,
-0.6471519470214844,
-1.1176705360412598,
1.6444956064224243,
0.48502883315086365,
-1.1846816539764404,
-0.409121036529541,
-0.3435714542865753,
-0.5813891291618347,
2.575974225997925,
-1.4634041786193848,
-0.22617468237876892,
-0.8898894190788269,
-0.5589654445648193,
1.6139791011810303,
-1.2146135568618774,
-0.22321155667304993,
-1.0141233205795288,
-0.6281296610832214,
-1.2379684448242188,
-0.565049409866333,
-0.03336699306964874,
-0.8991097211837769,
0.7778812646865845,
0.22947806119918823,
-1.1004672050476074,
-0.2185497283935547,
-0.8740627765655518,
0.8281855583190918,
-0.08195416629314423,
0.27674248814582825,
1.8557631969451904,
0.44223886728286743,
-0.38418760895729065,
0.73458331823349,
1.1797688007354736,
0.6391711831092834,
-0.7388623356819153,
0.010071864351630211,
-0.6885071396827698,
0.2790631949901581,
-1.2851026058197021,
0.2545580565929413,
-2.8695619106292725,
0.6498531103134155,
-0.07557886838912964,
-0.10861655324697495,
0.047941096127033234,
-1.346682071685791,
1.187119483947754,
2.604321002960205,
-1.1541328430175781,
0.48281940817832947,
0.37554508447647095,
1.2118092775344849,
-1.6257984638214111,
0.3137189745903015,
-0.4420366585254669,
2.1662099361419678,
0.22172003984451294,
1.2032997608184814,
-0.5755535960197449,
-2.368779182434082,
0.5794695615768433,
-1.1722816228866577,
-1.2113103866577148,
0.69016033411026,
-0.9110572934150696,
0.0028265435248613358,
-1.49728262424469,
-0.21104758977890015,
-0.8746137022972107,
-1.2818973064422607,
0.7242665886878967,
0.07349615544080734,
0.4270845353603363,
-0.6422306895256042,
0.3907999098300934,
-2.1860148906707764,
-1.4151391983032227,
-0.25797805190086365,
-0.980182945728302,
0.45748525857925415,
-0.4039018452167511,
0.7354258298873901,
-0.16900557279586792,
0.04758156090974808,
0.3360671401023865,
1.350380778312683,
3.3512041568756104,
0.16744622588157654,
0.3169417083263397,
-0.16128167510032654,
-0.8916381597518921,
1.4759777784347534,
0.9499927163124084,
-0.07760944962501526,
-0.6029128432273865,
-1.0106737613677979,
1.3504483699798584,
2.0259687900543213,
0.9915560483932495,
0.09680937230587006,
-0.8154870867729187,
-0.6181726455688477,
0.01141434907913208,
0.3516385555267334,
0.4215814173221588,
0.9475140571594238,
0.03238481655716896,
0.1161331832408905,
1.3810425996780396,
1.2797116041183472,
-0.4819590151309967,
0.48261746764183044,
-0.7945490479469299,
-0.49907323718070984,
0.44629520177841187,
0.35098716616630554,
-0.0342988446354866,
0.3903898298740387,
-1.0089662075042725,
-0.24313083291053772,
-0.3615085482597351,
-0.9345094561576843,
-0.7489362955093384,
-0.37038296461105347,
-0.31041207909584045,
1.6657947301864624,
0.052125439047813416,
-0.4602472484111786,
0.00897626020014286,
-0.704738438129425,
-0.08882945030927658,
-1.2002880573272705,
0.2733965516090393,
-0.15793484449386597,
-0.011076658964157104,
-0.0385206863284111,
1.7836114168167114,
-0.890423059463501,
-2.12699294090271,
0.19125896692276,
0.347564160823822,
-0.4988475441932678,
0.17178776860237122,
1.6748690605163574,
0.5033750534057617,
1.4706050157546997,
1.3488736152648926,
0.9890397191047668,
-0.6857237219810486,
-1.237936019897461,
0.6656232476234436,
0.921743631362915,
-1.3908318281173706,
0.7500145435333252,
-0.05967463180422783,
-0.614250123500824,
0.7035713195800781,
1.3242899179458618,
0.4588944911956787,
-2.0049378871917725,
0.9130690693855286,
-0.8843596577644348,
0.8699960112571716,
0.6740418672561646,
0.7957989573478699,
0.26320263743400574,
0.8297858238220215,
-1.3381532430648804,
-1.05099356174469,
-0.8064578771591187,
-0.5877182483673096,
1.9227697849273682,
-0.1874963939189911,
0.4672662019729614,
-0.19443315267562866,
-1.234092354774475,
-0.05380745604634285,
0.6996538043022156,
0.4835778474807739,
-0.31389471888542175,
0.7618269920349121,
-0.6225373148918152,
-1.1508582830429077,
-1.3111439943313599,
-0.3676197826862335,
-0.9194654822349548,
-0.8796809315681458,
1.0286839008331299,
0.8356040120124817,
0.4300198256969452,
1.9392272233963013,
0.5470592379570007,
0.25283312797546387,
-2.664546489715576,
0.9380325078964233,
0.3478100597858429,
-0.09955374896526337,
1.00335693359375,
0.34343022108078003,
1.1070919036865234,
0.06827908009290695,
0.45934566855430603,
-2.363266706466675,
2.2224373817443848,
-0.2499638795852661,
0.7838424444198608,
0.00687860231846571,
-0.0391012504696846,
1.1046005487442017,
0.52711021900177,
0.5070915818214417,
-1.117106556892395,
0.775488018989563,
-0.5719992518424988,
1.2058656215667725,
0.8883672952651978,
-0.7899163961410522,
-0.004078682977706194,
1.2310664653778076,
0.4800531566143036,
-0.5010503530502319,
-0.9420392513275146,
-0.8049832582473755,
0.8987434506416321,
1.8277385234832764,
-0.09929676353931427,
0.10766041278839111,
0.8141024708747864,
0.6487459540367126,
-1.3626585006713867,
0.05610416829586029,
-0.708811342716217,
-0.7867480516433716,
1.6871404647827148,
2.0258023738861084,
-0.03945145756006241,
-0.229894757270813,
-0.7148189544677734,
-1.3848108053207397,
0.8342995047569275,
-0.010550377890467644,
0.2222195863723755,
0.6356915235519409,
-0.6856538653373718,
1.147770881652832,
0.7922241687774658,
0.9976751208305359,
0.09326986968517303,
0.3611832857131958,
0.45604750514030457,
-0.26971936225891113,
-1.0751672983169556,
-0.2754833996295929,
-1.1743102073669434,
-2.46175479888916,
0.5206586122512817,
-0.25742653012275696,
-1.40762460231781,
0.014998510479927063,
-0.9745516180992126,
0.9217749834060669,
-0.5880072116851807,
-1.043137550354004,
-1.5474451780319214,
0.23104873299598694,
-0.15906792879104614,
0.96059250831604,
-1.5935041904449463,
-0.11949063837528229,
1.1878197193145752,
0.8392360210418701,
-0.5760546326637268,
1.0215777158737183,
0.26032331585884094,
0.9138132333755493,
0.8323649764060974,
-0.40681761503219604,
0.42610567808151245,
0.08658795058727264,
-1.3093571662902832,
0.4595758318901062,
1.2126516103744507,
0.2645174562931061,
1.397321343421936,
-0.6031045913696289,
-0.05084238573908806,
0.4287121891975403,
-0.4083001911640167,
-0.4809556305408478,
-0.513523519039154,
0.6446626782417297,
0.09856084734201431,
-0.9663259983062744,
-0.01762024685740471,
-0.2092403769493103,
-0.187272310256958,
0.23555144667625427,
-1.5055441856384277,
-0.2199592888355255,
-0.4814310073852539,
-0.5424839854240417,
-1.2353824377059937,
-0.0431477390229702,
1.4213206768035889,
-0.7787832021713257,
-0.21374616026878357,
0.5095047950744629,
0.453803151845932,
0.5500775575637817,
0.6263455748558044,
-0.6408793330192566,
-0.4063783884048462,
-0.31708279252052307,
-0.3580358624458313,
0.27707764506340027,
1.2672070264816284,
-0.18170005083084106,
-1.0704543590545654,
0.6811199188232422,
-0.3997673988342285,
0.09935704618692398,
1.969390630722046,
0.10637912154197693,
-0.8069799542427063,
0.22153306007385254,
-0.6977196931838989,
1.9255919456481934,
1.6669601202011108,
1.399949550628662,
-0.16158223152160645,
-0.9811023473739624,
0.5717371106147766,
-0.23517152667045593,
-0.4099487066268921,
0.8401209115982056,
0.5339745879173279,
-0.1551622748374939,
-1.4867150783538818,
0.5538970828056335,
1.3295056819915771,
-0.9644283056259155,
-0.7728983759880066,
0.07402834296226501,
-0.7669496536254883,
1.1276710033416748,
0.6763867139816284,
0.4164614677429199,
0.20742055773735046,
1.6632839441299438,
0.6937395930290222,
-0.5162603259086609,
0.536400318145752,
0.48630204796791077,
-0.2180255949497223,
-2.0631330013275146,
-1.2099040746688843,
0.31974512338638306,
-0.3991711735725403,
-1.5245393514633179,
1.3502548933029175,
-1.098967432975769,
-1.0010812282562256,
0.47724172472953796,
0.14713862538337708,
1.4674763679504395,
0.282210111618042,
1.6522983312606812,
2.0901191234588623,
0.9381780028343201,
0.35058459639549255,
1.2849438190460205,
-0.12556201219558716,
-0.4753035306930542,
1.814528465270996,
-0.41879111528396606,
0.516708254814148,
1.1080904006958008,
-0.450619637966156,
-1.0962684154510498,
-0.7577243447303772,
-1.1915185451507568,
-0.6935372352600098,
1.1417993307113647,
0.0888308733701706,
-1.157110571861267,
0.29243776202201843,
1.602816104888916,
0.0753297209739685,
-0.3258729577064514,
0.5077791810035706,
0.4668712913990021,
-0.7351714372634888,
-0.10533369332551956,
-1.0230751037597656,
0.5398296117782593,
-0.19132453203201294,
-0.39468052983283997,
0.23388326168060303,
0.5551615953445435,
1.2585453987121582,
-0.03877626359462738,
0.07167741656303406,
1.2602297067642212,
-1.3528481721878052,
1.4421250820159912,
-0.6012855768203735,
0.2667616009712219,
-2.3603122234344482,
1.5036530494689941,
-0.6637570261955261,
1.8967422246932983,
-2.654148578643799,
0.4088200628757477,
-0.6046072840690613,
-0.3603033125400543,
0.3245477080345154,
-0.28518226742744446,
0.24286898970603943,
-0.25808241963386536,
-1.0698716640472412,
-0.18405547738075256,
-0.7485406398773193,
0.5975788235664368,
1.138166069984436,
1.3547395467758179,
-1.073116660118103,
-0.15846815705299377,
-1.6311079263687134,
-0.1878032088279724,
-0.6220888495445251,
0.25956791639328003,
-2.0002167224884033,
-0.1501590609550476,
-1.9669743776321411,
-2.287101984024048,
-1.292506456375122,
-0.7840186357498169,
1.0309808254241943,
0.15138453245162964,
-0.9200065732002258,
1.205461025238037,
-0.35349351167678833,
-1.7907180786132812,
1.1419678926467896,
-2.214082717895508
] |
https://github.com/huggingface/datasets/issues/5275 | YAML integer keys are not preserved Hub server-side | @huggingface/datasets if you agree, I can make the bulk edit on the Hub to fix integer keys into strings. | After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets | 404 | 19 | YAML integer keys are not preserved Hub server-side
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
@huggingface/datasets if you agree, I can make the bulk edit on the Hub to fix integer keys into strings. | [
-1.0408730506896973,
-0.7701073288917542,
-0.7022444009780884,
1.6244213581085205,
-0.0046040830202400684,
-1.3531185388565063,
0.038567349314689636,
-0.9089091420173645,
1.5970324277877808,
-0.737040638923645,
0.4560614228248596,
-1.7285661697387695,
-0.056928135454654694,
-0.7012096047401428,
-0.691463828086853,
-0.5185955166816711,
-0.3688766658306122,
-0.6537396907806396,
1.0677032470703125,
2.383251905441284,
1.2606788873672485,
-1.3681923151016235,
2.7000386714935303,
0.6863099932670593,
-0.20013846457004547,
-0.8350132703781128,
0.3924037516117096,
-0.05357480049133301,
-1.3974602222442627,
-0.1870509386062622,
-0.9410507082939148,
-0.12258613109588623,
-0.7033438682556152,
-0.6584617495536804,
0.019157040864229202,
0.637058675289154,
-0.18058302998542786,
-0.48445436358451843,
-0.4225333631038666,
-0.8145272731781006,
0.6303462386131287,
-0.312856525182724,
0.8700832724571228,
-0.29414424300193787,
1.7370504140853882,
-0.6037698984146118,
0.47730115056037903,
0.5127712488174438,
1.2614033222198486,
0.1983277052640915,
-0.0177773330360651,
0.42146146297454834,
0.30988091230392456,
0.012505271472036839,
0.6535382270812988,
1.279472827911377,
0.6654226183891296,
0.515979528427124,
0.8554595112800598,
-2.2788949012756348,
1.2444804906845093,
-0.7941913604736328,
0.2137012481689453,
1.3158940076828003,
-1.061267614364624,
0.39781978726387024,
-1.904649257659912,
-0.02909719944000244,
0.3824917674064636,
-2.0829555988311768,
0.2042439877986908,
-1.1861679553985596,
-0.5012950897216797,
1.055898904800415,
0.2931826114654541,
-1.2912541627883911,
-0.08744693547487259,
-0.26252180337905884,
0.919524610042572,
0.3316324055194855,
1.1297425031661987,
-1.6694973707199097,
0.12115323543548584,
-0.2821483612060547,
0.32166680693626404,
-1.1286296844482422,
-1.5444263219833374,
0.5319427251815796,
0.6948263049125671,
0.6060218214988708,
-0.20582760870456696,
0.8273425698280334,
-1.0804189443588257,
0.7778181433677673,
-1.045493483543396,
-1.9227458238601685,
-1.3523812294006348,
-2.391176223754883,
-2.2934622764587402,
0.661237895488739,
-0.42349743843078613,
-0.3077097237110138,
2.0569915771484375,
-1.025778889656067,
-1.775640606880188,
1.0828548669815063,
0.4573945701122284,
0.02129504084587097,
2.295417308807373,
0.19760958850383759,
-0.9877180457115173,
0.7439398169517517,
-0.9401102066040039,
0.5762067437171936,
-0.3695654273033142,
1.2931021451950073,
0.3935571610927582,
-1.0366586446762085,
1.685412049293518,
-0.5121771693229675,
0.5569300055503845,
-0.7800008654594421,
-0.2768935263156891,
-0.4671497642993927,
0.16849371790885925,
1.9271962642669678,
-0.2057754248380661,
1.4139779806137085,
-0.15002644062042236,
-1.463492751121521,
-1.3343980312347412,
0.7291809320449829,
0.48337748646736145,
-0.8265796303749084,
0.21521823108196259,
-0.40567028522491455,
0.16746729612350464,
0.020606335252523422,
1.0636261701583862,
1.2474592924118042,
0.8398810029029846,
-0.17099305987358093,
-0.9709761738777161,
0.0742487832903862,
0.07293300330638885,
-0.6011219024658203,
-1.6788901090621948,
-0.2043614387512207,
0.26039302349090576,
0.6415389776229858,
-1.1934562921524048,
1.99076509475708,
0.8599629402160645,
2.088482141494751,
0.9035555124282837,
-0.3996222913265228,
1.6349469423294067,
0.07609384506940842,
1.945443034172058,
-0.26350677013397217,
0.6348891854286194,
-0.5097642540931702,
-1.2791908979415894,
0.756320059299469,
-0.27399933338165283,
-2.0181734561920166,
-0.3449425995349884,
-0.9857178330421448,
-0.08252639323472977,
-0.9213479161262512,
1.0473990440368652,
-0.12000450491905212,
-1.3481110334396362,
0.23320749402046204,
-0.724306583404541,
0.027955375611782074,
-1.3447948694229126,
0.2912006080150604,
0.7489147782325745,
-0.7527821660041809,
0.1119077131152153,
-0.45109039545059204,
-1.412293553352356,
-0.6787096858024597,
0.4985062777996063,
1.725153923034668,
-0.7304862141609192,
0.9494531750679016,
1.0372886657714844,
-0.5898350477218628,
-0.02776521071791649,
0.463804692029953,
-0.4305064380168915,
0.845798671245575,
-0.9634573459625244,
-0.5638775825500488,
1.084417700767517,
-0.21227508783340454,
-0.5548032522201538,
1.3445335626602173,
0.7508818507194519,
-0.9718801975250244,
-0.3900630474090576,
-0.12626953423023224,
-0.7336319088935852,
0.08494801074266434,
-1.6182565689086914,
-0.019440896809101105,
0.27579614520072937,
-1.4769539833068848,
-0.5107789635658264,
-0.09288667142391205,
1.2930506467819214,
0.019086547195911407,
1.2555031776428223,
-0.18616560101509094,
-0.08091138303279877,
-0.5424821376800537,
-0.5446280837059021,
0.10515490174293518,
-0.1121862605214119,
-0.696673572063446,
0.32595372200012207,
-0.7647159099578857,
0.23090924322605133,
1.4003318548202515,
0.2267809808254242,
0.1283995658159256,
0.4985145628452301,
1.2924346923828125,
0.3985799551010132,
0.005417167209088802,
-0.889101505279541,
-1.661258339881897,
2.0204756259918213,
-1.655457615852356,
1.9643040895462036,
0.7799001932144165,
0.05330521613359451,
-1.792585849761963,
-1.931237816810608,
1.5795061588287354,
1.1544057130813599,
2.5149662494659424,
0.6584175825119019,
0.4343487620353699,
-0.8979084491729736,
-0.5967490673065186,
0.49055609107017517,
-0.6916947364807129,
-0.9425269365310669,
0.1823262870311737,
2.374319314956665,
1.7020318508148193,
-0.32988953590393066,
-0.2248906046152115,
-0.909546971321106,
1.4707027673721313,
-0.18263036012649536,
0.3097199499607086,
1.9161713123321533,
-0.33854857087135315,
-1.012420892715454,
1.3118293285369873,
-2.4855422973632812,
0.36052262783050537,
2.0131924152374268,
0.33365097641944885,
0.09426869451999664,
-1.124778389930725,
-0.7769780158996582,
-0.04308142885565758,
-0.5035684108734131,
-1.1899759769439697,
0.4557609260082245,
-0.17818309366703033,
-0.8137859106063843,
-1.3974621295928955,
0.13013136386871338,
-1.1674543619155884,
-1.7139736413955688,
0.313245952129364,
1.7705079317092896,
2.1719024181365967,
-0.8913441896438599,
1.4191614389419556,
-0.301815003156662,
0.3165881633758545,
1.2513957023620605,
1.3141276836395264,
3.1897799968719482,
1.8967031240463257,
-1.2471660375595093,
0.682180643081665,
-0.19764161109924316,
-0.5523201823234558,
1.1920838356018066,
-1.068853497505188,
1.1319557428359985,
-0.35135993361473083,
-1.2441141605377197,
-1.177237629890442,
0.8626114726066589,
0.4644314646720886,
-0.0444849468767643,
-0.4621001183986664,
0.946323812007904,
0.26315855979919434,
1.296122431755066,
0.667824387550354,
-0.19986242055892944,
0.4984922707080841,
-0.28750669956207275,
-0.43956127762794495,
1.5225995779037476,
0.029296305030584335,
-1.3984919786453247,
-2.3589820861816406,
-0.10380403697490692,
-1.02935791015625,
-0.050608616322278976,
-0.8748688697814941,
-1.0553356409072876,
1.5050153732299805,
0.4685162901878357,
-1.0134224891662598,
-0.06807099282741547,
-0.41180434823036194,
-0.5092899799346924,
2.6001880168914795,
-1.4472012519836426,
-0.32191914319992065,
-0.9919608235359192,
-0.5703170299530029,
1.589681625366211,
-1.0551203489303589,
-0.2842560112476349,
-1.0690447092056274,
-0.4446946084499359,
-1.3127402067184448,
-0.5553953647613525,
-0.018003124743700027,
-0.6867199540138245,
0.7862802147865295,
0.04441823065280914,
-1.3490617275238037,
-0.34723934531211853,
-1.1434800624847412,
0.7916651964187622,
-0.3422718644142151,
0.1271107941865921,
1.7882983684539795,
0.29489263892173767,
-0.2789112627506256,
0.8114125728607178,
1.1643418073654175,
0.6632770895957947,
-0.45528632402420044,
0.40572410821914673,
-0.5578303933143616,
0.5078191757202148,
-1.2366617918014526,
0.3319423794746399,
-2.9038729667663574,
0.6342657208442688,
0.14570653438568115,
-0.013953193090856075,
-0.17745272815227509,
-1.5588409900665283,
0.9610621929168701,
2.426807403564453,
-1.1084243059158325,
0.5900624394416809,
0.2565639913082123,
1.2037568092346191,
-1.728782057762146,
-0.12202233076095581,
-0.6406611800193787,
2.1341006755828857,
-0.16545245051383972,
1.1323765516281128,
-0.5326627492904663,
-2.4419937133789062,
0.52796471118927,
-1.314199447631836,
-0.9750667810440063,
0.7465675473213196,
-0.8469306230545044,
0.20026586949825287,
-1.2300173044204712,
-0.13001024723052979,
-0.9778188467025757,
-1.1127808094024658,
0.5616105198860168,
0.032503917813301086,
0.6819432973861694,
-0.7271178960800171,
0.3242341876029968,
-2.2324423789978027,
-1.441817283630371,
-0.20400312542915344,
-0.8758860230445862,
0.5237598419189453,
-0.324349045753479,
0.7818187475204468,
-0.03759661689400673,
-0.061712510883808136,
0.2761937081813812,
1.427053451538086,
3.2185842990875244,
0.060967445373535156,
0.3864271342754364,
-0.27352941036224365,
-1.0488085746765137,
1.6458665132522583,
0.9091199040412903,
-0.2474960833787918,
-0.5725178122520447,
-0.9547584056854248,
1.3452516794204712,
1.9149171113967896,
1.0716217756271362,
0.023457977920770645,
-0.9380669593811035,
-0.8775374293327332,
0.09672161191701889,
0.10348507016897202,
0.44691747426986694,
0.9568676352500916,
0.1997697502374649,
0.10707499086856842,
1.3034738302230835,
1.0340514183044434,
-0.26597562432289124,
0.4176729917526245,
-0.8492412567138672,
-0.3892165422439575,
0.5946409702301025,
0.34779855608940125,
0.00789265800267458,
0.20877136290073395,
-1.0659061670303345,
-0.2726849317550659,
-0.19806385040283203,
-0.7639394998550415,
-0.7467139959335327,
-0.46909624338150024,
-0.3838854730129242,
1.6572763919830322,
-0.07539968937635422,
-0.6306440830230713,
-0.014076792635023594,
-0.8149074912071228,
-0.006860858295112848,
-0.9984377026557922,
0.2093280702829361,
-0.235490620136261,
0.06359823793172836,
-0.26886996626853943,
1.7000445127487183,
-0.9878244400024414,
-2.184363842010498,
0.20933891832828522,
0.33655819296836853,
-0.4435059130191803,
-0.0695173591375351,
1.8194265365600586,
0.556350588798523,
1.2980574369430542,
1.6040085554122925,
1.1274223327636719,
-0.707725465297699,
-1.2748966217041016,
0.6666622757911682,
1.015491008758545,
-1.3158138990402222,
0.9071686863899231,
-0.11535654962062836,
-0.48696884512901306,
0.44508326053619385,
1.3496758937835693,
0.3973340094089508,
-1.9237730503082275,
0.7824522256851196,
-1.0904064178466797,
0.9811438322067261,
0.8487024903297424,
0.8430540561676025,
0.08845198154449463,
0.7185457348823547,
-1.249273419380188,
-0.9521636962890625,
-0.5870260000228882,
-0.6941964626312256,
1.7942601442337036,
-0.3346031606197357,
0.36411917209625244,
-0.2322087287902832,
-1.3517719507217407,
0.04892566800117493,
0.6701324582099915,
0.30361491441726685,
-0.38671132922172546,
0.7008498907089233,
-0.6447710990905762,
-1.1046555042266846,
-1.2290254831314087,
-0.5194385647773743,
-0.9753630757331848,
-0.9278361797332764,
0.929904043674469,
0.795814573764801,
0.5080201625823975,
1.9814268350601196,
0.7990131974220276,
0.11676540970802307,
-2.607595443725586,
0.8353211283683777,
0.41900286078453064,
-0.09956737607717514,
0.7489778399467468,
0.29348599910736084,
1.202975869178772,
-0.265322744846344,
0.6642299890518188,
-2.3369877338409424,
2.2832887172698975,
-0.127031147480011,
0.7379521727561951,
0.01550393644720316,
-0.0452781617641449,
0.9185872673988342,
0.4424589276313782,
0.4685898423194885,
-1.108899474143982,
0.8403599858283997,
-0.6799681186676025,
1.1520942449569702,
0.7575534582138062,
-0.9108068943023682,
0.12982890009880066,
1.1311184167861938,
0.3452853560447693,
-0.6057058572769165,
-1.0294651985168457,
-0.792931318283081,
0.9432105422019958,
1.7808457612991333,
0.03503328189253807,
0.12218818068504333,
0.9078561067581177,
0.7405461668968201,
-1.3394864797592163,
-0.07451040297746658,
-0.5696659684181213,
-0.5966539978981018,
1.9529340267181396,
2.0272984504699707,
-0.12286516278982162,
-0.04912605509161949,
-0.8445611000061035,
-1.4400376081466675,
0.8633478879928589,
0.20065459609031677,
-0.15701322257518768,
0.7497331500053406,
-0.713571310043335,
1.2472150325775146,
0.7875136733055115,
0.79814612865448,
0.19243751466274261,
0.04107757285237312,
0.1839907467365265,
-0.38684460520744324,
-1.1512264013290405,
-0.303552508354187,
-1.003665566444397,
-2.5267751216888428,
0.46110525727272034,
-0.11406384408473969,
-1.360511302947998,
0.07107823342084885,
-0.9543542861938477,
0.7958982586860657,
-0.5245850086212158,
-1.188862919807434,
-1.2398793697357178,
0.3138774633407593,
-0.05866565555334091,
0.6957724690437317,
-1.636508822441101,
-0.10461944341659546,
1.1656336784362793,
1.027736783027649,
-0.8136901259422302,
0.8012029528617859,
0.23700067400932312,
0.9968034625053406,
0.9940078854560852,
-0.30843862891197205,
0.4392925202846527,
0.2519877254962921,
-1.3168622255325317,
0.3099089562892914,
1.407358169555664,
0.10361934453248978,
1.4023116827011108,
-0.4217624068260193,
0.005352209322154522,
0.40308985114097595,
-0.2833695113658905,
-0.5737597942352295,
-0.8054677844047546,
0.6005483865737915,
-0.049579109996557236,
-0.9548851251602173,
-0.008348710834980011,
0.15043479204177856,
-0.07422035932540894,
0.2795800566673279,
-1.5040781497955322,
-0.022431999444961548,
-0.2967975437641144,
-0.6201371550559998,
-1.3389893770217896,
-0.07616735249757767,
1.2673040628433228,
-0.7431545853614807,
-0.10197149217128754,
0.6102046370506287,
-0.019050465896725655,
0.47081097960472107,
0.6095697283744812,
-0.7401481866836548,
-0.3477274179458618,
-0.1090073361992836,
-0.4233863949775696,
0.314302533864975,
1.2795343399047852,
-0.05649885535240173,
-0.9980476498603821,
0.5338262319564819,
-0.2844947576522827,
0.16085566580295563,
1.848912000656128,
-0.0487179271876812,
-0.9405298829078674,
0.36312344670295715,
-0.7760326862335205,
1.8529170751571655,
1.6535853147506714,
1.310779333114624,
-0.16632072627544403,
-0.9688704609870911,
0.7532356977462769,
-0.4530012607574463,
-0.3815463185310364,
0.8496095538139343,
0.26048174500465393,
-0.3261968493461609,
-1.3793361186981201,
0.6827433705329895,
1.3927254676818848,
-0.8366569876670837,
-0.7990677952766418,
0.1829093098640442,
-0.7971938848495483,
1.2081416845321655,
0.7251547574996948,
0.3297564685344696,
0.35931456089019775,
1.633001685142517,
0.7058981657028198,
-0.43687883019447327,
0.5669860243797302,
0.4706328213214874,
-0.15268023312091827,
-1.9373629093170166,
-1.156838059425354,
0.30261698365211487,
-0.4739754796028137,
-1.5086233615875244,
1.4244873523712158,
-1.3560813665390015,
-1.0022145509719849,
0.6074708700180054,
0.14172488451004028,
1.3614490032196045,
0.35457125306129456,
1.6777043342590332,
1.9404462575912476,
0.8348367810249329,
0.5266101360321045,
1.0543056726455688,
-0.27027150988578796,
-0.27945420145988464,
1.619726538658142,
-0.575859010219574,
0.7199044823646545,
1.0747835636138916,
-0.3419831395149231,
-1.3154109716415405,
-0.8584495782852173,
-1.2854641675949097,
-0.8552103638648987,
1.0781124830245972,
0.18255022168159485,
-1.2114741802215576,
0.41192013025283813,
1.6945596933364868,
-0.06994128227233887,
-0.20833007991313934,
0.7418990731239319,
0.3072572648525238,
-0.7995828986167908,
-0.020034421235322952,
-0.9880983829498291,
0.5810849070549011,
-0.3334863483905792,
-0.2971791923046112,
0.21923232078552246,
0.5847113728523254,
1.2276207208633423,
0.2300586849451065,
0.09650817513465881,
1.2565641403198242,
-1.3880034685134888,
1.3085670471191406,
-1.1629966497421265,
0.38894301652908325,
-2.3074357509613037,
1.4772355556488037,
-0.9954094290733337,
2.040283441543579,
-2.719855546951294,
0.390784353017807,
-0.38673797249794006,
-0.6064528822898865,
0.1460481882095337,
-0.15022997558116913,
0.021434687077999115,
0.006470651365816593,
-1.0484589338302612,
-0.1230277419090271,
-0.8700222373008728,
0.42048388719558716,
1.2528958320617676,
1.3617801666259766,
-0.9650933146476746,
-0.38040754199028015,
-1.6467193365097046,
-0.20110931992530823,
-0.4388408064842224,
0.19003623723983765,
-1.7498329877853394,
-0.2441907823085785,
-2.0219802856445312,
-2.342684268951416,
-1.3235552310943604,
-1.0192370414733887,
1.3057262897491455,
0.05001576617360115,
-0.8890218138694763,
1.0725992918014526,
-0.4067283868789673,
-1.7346830368041992,
1.2338309288024902,
-2.1758241653442383
] |
Subsets and Splits